html {
  font-size: 14px;

}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
    margin-bottom: 60px;
    font-family: "Lato", sans-serif !important;
}

.label--ereturn-1 {
    background-color: #00b5ad !important;
    color: #fff !important;
}

.label--ereturn-2 {
    background-color: #2185d0 !important;
    color: #fff !important;
}

.label--ereturn-3 {
    background-color: #a333c8 !important;
    color: #fff !important;
}

.label--ereturn-4 {
    background-color: #21ba45 !important;
    color: #fff !important;
}

.label--ereturn-5 {
    background-color: #db2828 !important;
    color: #fff !important;
}

.label--ereturn-6 {
    background-color: #db2828 !important;
    color: #fff !important;
}

.print {
    padding: 2rem;
}

.td--negative {
    color: #cc0000;
}

input.error {
    border-color: #db2828 !important;
}

.ims-nav-icon {
    float: right !important;
    margin-right: 5px;
}

.nav-link.active-nav .ims-nav-icon {
    color: #bf2e5d;
}

.nav-bc-logo {
    width: 100%;
}

.nav-item-ims {
    font-size: 16px;
    width: 100% !important;
    border-top: 1px solid rgba(255, 255, 255, 0.22);
}

    .nav-item-ims:hover {
        background-color: rgba(255, 255, 255, 0.10);
        border-top: 1px solid rgba(255, 255, 255, 0.22) !important;
    }


@media (min-width: 992px) {
    .ims-nav-height {
        height: 100vh !important;
    }

.ims-start {
    margin-bottom: 10px;
        }

input {
    border: 1px solid #aaa;
    font-size: 1.2rem;
    max-width: 100%;
    padding: 0.5rem;
        }

label {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: block;
    margin-top: 12px;
        }

.btn-payment {
    margin-left: 5px;
}

.button--submit {
    moz-border-radius: 0;
    -moz-box-shadow: 0 2px 0 #311e30;
    -moz-box-sizing: border-box;
    -webkit-appearance: none;
    -webkit-border-radius: 0;
    -webkit-box-shadow: 0 2px 0 #311e30;
    -webkit-box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    background-color: #5a3859;
    border: none;
    border-radius: 5px;
    box-shadow: 0 2px 0 #311e30;
    box-sizing: border-box;
    color: #fff;
    cursor: pointer;
    display: -moz-inline-stack;
    display: inline-block;
    line-height: 1.25;
    font-size: 1.2rem;
    padding: 0.5rem 1.5rem 0.5rem;
    position: relative;
    text-decoration: none;
    vertical-align: top;
    margin-top: 20px;
}

.button-center {
    width: 100%;
    float: none;
    margin-right: 0;
}
legend {
    border-bottom: 2px solid #eee;
    color: #5A3859;
    font-size: 1.75rem;
    padding-bottom: 0.75rem;
    width: 100%;
    font-weight: 600;
}

.button--main {
    padding: 1rem 2.5rem;
    font-weight: 600;
    border: 0;
}

    .button--main:hover {
        background-color: #e0dede;
}

.panel {
    background-color: #fff;
    border: 1px solid #ddd;
    margin-bottom: 1rem;
    padding: 1rem;
}

    .panel fieldset {
        border: 0;
}

.container--application {
    max-width: 100% !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    width: 100% !important;
}

.sidebar {
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1030;
    padding-left: 0px !important;
    padding-right: 0px !important;
}

.ims-title {
    font-size: 14px;
    font-weight: bold;
}

.active-nav {
    background: #111 !important;
    border-left: 5px solid #bf2e5d !important;
}

.ims-brd-link:link {
    text-decoration: none !important;
}

.logout-link:link {
    text-decoration: none !important;
}

.logout-link:hover {
    text-decoration: underline !important;
}

.ims-brd-nav {
    margin-left: -15px;
    margin-right: -15px;
    box-shadow: 0 0 6px 3px rgba(0, 0, 0, 0.2);
}

.forgotpass-link {
    text-decoration: none;
}

.forgotpass-link:hover {
    text-decoration: underline;
}

.btn-register {
    font-size: 20px;
    margin-top: 10px;
}

.select2-container--default .select2-selection--single {
    height: 37px !important;
    border: 1px solid #e0e4e4 !important;
}

    .select2-container--default .select2-selection--single .select2-selection__rendered {
        line-height: 37px !important;
}

    .select2-container--default .select2-selection--single .select2-selection__arrow {
        height: 37px !important;
}

.select2-container {
    width: 100%;
    }
}

#SourceItemFundCode {
    width: 20%;
}

/* Improved Pagination Styles */
.pagination-container {
    display: flex;
    justify-content: center;
    margin: 20px 0;
    padding: 0;
}

.pagination {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.pagination li {
    margin: 0;
    border: 1px solid #dee2e6;
    border-right: none;
}

.pagination li:first-child {
    border-top-left-radius: 6px;
    border-bottom-left-radius: 6px;
}

.pagination li:last-child {
    border-right: 1px solid #dee2e6;
    border-top-right-radius: 6px;
    border-bottom-right-radius: 6px;
}

.pagination li a,
.pagination li span {
    display: block;
    padding: 10px 15px;
    color: #5a3859;
    text-decoration: none;
    background-color: #fff;
    transition: all 0.2s ease-in-out;
    font-weight: 500;
    min-width: 45px;
    text-align: center;
    box-sizing: border-box;
}

.pagination li a:hover {
    background-color: #f8f9fa;
    color: #311e30;
    border-color: #adb5bd;
    z-index: 2;
}

.pagination li.active span,
.pagination li.PagedList-current span {
    background-color: #5a3859;
    border-color: #5a3859;
    color: #fff;
    font-weight: 600;
    cursor: default;
    pointer-events: none;
}

.pagination li.disabled span,
.pagination li.PagedList-skipToNext span,
.pagination li.PagedList-skipToPrevious span {
    color: #6c757d;
    background-color: #fff;
    border-color: #dee2e6;
    cursor: not-allowed;
    pointer-events: none;
}

.pagination li.PagedList-ellipses span {
    color: #6c757d;
    background-color: #fff;
    border-color: #dee2e6;
    cursor: default;
    pointer-events: none;
}

/* Ensure active links cannot be clicked */
.pagination li.active a,
.pagination li.PagedList-current a {
    pointer-events: none;
    cursor: default;
}

/* Table footer pagination wrapper */
.pagination-wrapper {
    text-align: center;
    padding: 5px 0;
    margin-top: 0;
}

/* Responsive pagination */
@media (max-width: 576px) {
    .pagination li a,
    .pagination li span {
        padding: 8px 10px;
        font-size: 14px;
        min-width: 35px;
    }
    
    .pagination li.PagedList-ellipses {
        display: none;
    }
    
    .pagination-container {
        margin: 15px 0;
    }
}

/* Override any conflicting Bootstrap styles */
.pagination li.PagedList-pageCountAndLocation span {
    background-color: transparent;
    border: none;
    color: #6c757d;
    font-size: 14px;
    padding: 5px 10px;
}

/* Page counter styles */
.pagination-info {
    text-align: center;
    margin-top: 10px;
    color: #6c757d;
    font-size: 14px;
    font-weight: 500;
}

.pagination-info .current-page {
    font-weight: 600;
    color: #5a3859;
}

.pagination-info .total-pages {
    font-weight: 600;
    color: #5a3859;
}

.center {
    text-align: center;
}

.ereturn-label {
    font-size: 14px;
}

.custom-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 20px;
    border-radius: 5px;
    width: 75%;
}

.btn-closejournal {
    font-size: 16px;
}

.btn-submitjournal {
    font-size: 16px;
}

.bg-orange {
    background-color: orange;
}

.badge-env {
    height: 28px !important;
    margin-top: 8px;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600 !important;
}

/* Modern Card Styles */
.card-modern {
    background: #ffffff;
    border-radius: 12px;
    border: none;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

    .card-modern:hover {
        transform: translateY(-4px);
    }

.shadow-modern {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
}

.card-modern:hover.shadow-modern {
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12), 0 4px 8px rgba(0, 0, 0, 0.08);
}

/* Modern Card Header */
.card-modern-header {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: white;
    position: relative;
    overflow: hidden;
}

    .card-modern-header::before {
        content: '';
        position: absolute;
        top: -50%;
        right: -10%;
        width: 100px;
        height: 200%;
        background: rgba(255, 255, 255, 0.1);
        transform: rotate(15deg);
    }

.card-modern-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    backdrop-filter: blur(10px);
    z-index: 1;
}

.card-modern-title {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    z-index: 1;
}

/* Gradient Backgrounds */
.bg-primary-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.bg-success-gradient {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.bg-warning-gradient {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

/* Modern List */
.list-modern {
    padding: 0;
    margin: 0;
}

.list-modern-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
}

    .list-modern-item:last-child {
        border-bottom: none;
    }

    .list-modern-item:hover {
        background-color: #f8f9fa;
    }

.list-modern-content {
    flex: 1;
    min-width: 0;
}

.list-modern-primary {
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.25rem;
    font-size: 0.9375rem;
}

.list-modern-secondary {
    font-size: 0.8125rem;
    color: #718096;
}

.list-modern-badge {
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8125rem;
    font-weight: 600;
    white-space: nowrap;
    margin-left: 1rem;
}

.badge-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.badge-success {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
}

.badge-warning {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

/* Card Footer */
.card-modern-footer {
    padding: 1rem 1.5rem;
    background: #f8f9fa;
    text-align: center;
    border-top: 1px solid #e9ecef;
}

.link-modern {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9375rem;
    display: inline-flex;
    align-items: center;
    transition: all 0.2s ease;
}

    .link-modern:hover {
        color: #764ba2;
        gap: 0.5rem;
    }

    .link-modern i {
        transition: transform 0.2s ease;
    }

    .link-modern:hover i {
        transform: translateX(4px);
    }

/* Empty State */
.card-modern-empty {
    padding: 3rem 1.5rem;
    text-align: center;
    color: #a0aec0;
}

    .card-modern-empty i {
        font-size: 3rem;
        margin-bottom: 1rem;
        opacity: 0.5;
    }

    .card-modern-empty p {
        margin: 0;
        font-size: 0.9375rem;
    }

/* Welcome Card */
.card-title-modern {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2d3748;
}

.card-subtitle-modern {
    color: #718096;
    font-size: 0.9375rem;
}

.icon-circle-modern {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

/* Section Header */
.section-header-modern {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2d3748;
    display: flex;
    align-items: center;
}

/* Modern Alert Styles */
.alert-modern {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    border-radius: 12px;
    border: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

    .alert-modern:hover {
        transform: translateX(4px);
    }

.alert-modern-info {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-left: 4px solid #667eea;
}

.alert-modern-warning {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.1) 0%, rgba(245, 158, 11, 0.1) 100%);
    border-left: 4px solid #f59e0b;
}

.alert-modern-danger {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(220, 38, 38, 0.1) 100%);
    border-left: 4px solid #ef4444;
}

.alert-modern-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 1.5rem;
}

.alert-modern-info .alert-modern-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.alert-modern-warning .alert-modern-icon {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: white;
}

.alert-modern-danger .alert-modern-icon {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

.alert-modern-content {
    flex: 1;
    min-width: 0;
}

.alert-modern-title {
    font-weight: 700;
    font-size: 1.125rem;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.alert-modern-message {
    color: #4a5568;
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.alert-modern-footer {
    font-size: 0.8125rem;
    color: #718096;
    display: flex;
    align-items: center;
}

/* Responsive Design */
@media (max-width: 991px) {
    .card-modern-header {
        padding: 1.25rem;
    }

    .card-modern-icon {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }

    .card-modern-title {
        font-size: 1rem;
    }
}

.welcome-section {
    margin-bottom: 15px;
}