/* BDS shared dashboard design layer. Loaded after the master-page theme rules. */
:root {
    --bds-brand: #4f74ff;
    --bds-brand-strong: #3158dc;
    --bds-radius: 16px;
    --bds-radius-sm: 11px;
    --bds-shadow: 0 14px 38px rgba(0, 0, 0, .16);
    --bds-border: rgba(134, 153, 184, .2);
}

body {
    font-family: Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
    letter-spacing: .005em;
    text-rendering: optimizeLegibility;
}

    body[data-bs-theme="dark"] {
        --bds-page: #0c1422;
        --bds-surface: #141e2d;
        --bds-surface-raised: #19263a;
        --bds-text: #edf2fb;
        --bds-muted: #a5b2c8;
        --bds-border: rgba(164, 181, 211, .16);
        color: var(--bds-text);
    }

    body[data-bs-theme="light"] {
        --bds-page: #f3f6fb;
        --bds-surface: #fff;
        --bds-surface-raised: #f8faff;
        --bds-text: #1f2b40;
        --bds-muted: #64748b;
        --bds-border: rgba(91, 109, 139, .18);
        color: var(--bds-text);
    }

.body-bg {
    background: var(--bds-page) !important;
}

body[data-bs-theme="dark"] .body-bg {
    background: radial-gradient(ellipse at 75% -20%, rgba(55, 83, 147, .2), transparent 42%), var(--bds-page) !important;
}

body[data-bs-theme="light"] .body-bg {
    background: radial-gradient(ellipse at 75% -20%, rgba(79, 116, 255, .08), transparent 42%), var(--bds-page) !important;
}

.nftmax-smenu {
    top: 0 !important;
    height: 100vh;
    height: 100dvh;
}

.nftmax-header {
    position: sticky !important;
    top: 0 !important;
    border-bottom: 1px solid var(--bds-border) !important;
    box-shadow: 0 8px 28px rgba(3, 10, 24, .08);
}

body[data-bs-theme="dark"] .nftmax-header {
    background: rgba(17, 27, 43, .94) !important;
}

body[data-bs-theme="light"] .nftmax-header {
    background: rgba(255, 255, 255, .94) !important;
}

.nftmax-header__inner {
    min-height: 76px;
}

.header-left-controls .close-icon {
    border-radius: 12px !important;
}

.nftmax-header__amount {
    box-shadow: 0 6px 20px rgba(79, 116, 255, .22);
}

.profile-box {
    border: 1px solid var(--bds-border) !important;
    border-radius: 15px !important;
}

body[data-bs-theme="dark"] .mode-toggle #modeBtn {
    border-color: var(--bds-border);
    background: var(--bds-control-bg) !important;
    color: var(--bs-body-color) !important;
}

body[data-bs-theme="light"] .mode-toggle #modeBtn {
    border-color: var(--bds-border);
    background: #fff !important;
    color: #334155;
}

.mode-toggle {
    right: 18px !important;
    bottom: 132px !important;
    z-index: 1150 !important;
}

body:has(.patient-intake-content) .site-back-to-top {
    display: none !important;
}

.admin-menu {
    border-right: 1px solid rgba(255, 255, 255, .06);
}

.menu-bar__one li a {
    min-height: 42px;
    transition: background-color .18s ease, color .18s ease, box-shadow .18s ease !important;
}

    .menu-bar__one li a:hover {
        padding-left: 12px !important;
    }

.menu-bar__one li.active > a {
    box-shadow: inset 3px 0 var(--bds-brand), 0 4px 14px rgba(38, 84, 205, .12) !important;
}

@media (min-width: 1279px) {
    #dashboardNavigation.nftmax-close {
        width: 76px !important;
        overflow: visible;
    }

        #dashboardNavigation.nftmax-close .admin-menu {
            padding: 14px 8px !important;
            text-align: center;
        }

        #dashboardNavigation.nftmax-close .logo {
            display: flex;
            justify-content: center;
            margin: 0 0 14px !important;
            padding: 8px 0 14px !important;
        }

            #dashboardNavigation.nftmax-close .logo a {
                display: block !important;
                width: 48px;
                height: 48px;
                opacity: 1 !important;
                visibility: visible !important;
                transform: none !important;
            }

        #dashboardNavigation.nftmax-close .nftmax-logo__main {
            display: block;
            width: 48px;
            height: 48px;
            max-width: 48px;
            object-fit: contain;
        }

        #dashboardNavigation.nftmax-close .admin-menu__title,
        #dashboardNavigation.nftmax-close .menu-bar__name,
        #dashboardNavigation.nftmax-close .menu-bar__count,
        #dashboardNavigation.nftmax-close .submenu {
            display: none !important;
        }

        #dashboardNavigation.nftmax-close .menu-bar__text {
            display: flex;
            width: 100%;
            justify-content: center;
            align-items: center;
        }

        #dashboardNavigation.nftmax-close .menu-bar__one li {
            margin: 5px 0;
            text-align: center;
        }

            #dashboardNavigation.nftmax-close .menu-bar__one li > a {
                display: flex;
                min-height: 48px;
                justify-content: center;
                align-items: center;
                padding: 8px !important;
                overflow: hidden;
            }

        #dashboardNavigation.nftmax-close .nftmax-menu-icon {
            display: flex;
            width: 32px;
            height: 32px;
            margin: 0 !important;
            justify-content: center;
            align-items: center;
        }

            #dashboardNavigation.nftmax-close .nftmax-menu-icon img {
                display: block;
                width: 26px;
                height: 26px;
                object-fit: contain;
            }

        #dashboardNavigation.nftmax-close .menu-bar__one li > a::after {
            display: none !important;
        }
}

.nftmax-adashboard {
    padding-top: clamp(18px, 2vw, 30px) !important;
}

    .nftmax-adashboard > .container {
        width: 100%;
        max-width: 100%;
    }

.dashboard-content-shell {
    width: 100%;
    max-width: 1700px;
    margin-inline: auto;
    padding: clamp(18px, 2.2vw, 34px) !important;
    border: 1px solid var(--bds-border) !important;
    border-radius: var(--bds-radius) !important;
    background: var(--bds-surface) !important;
    box-shadow: var(--bds-shadow) !important;
    color: var(--bds-text);
}

    .dashboard-content-shell h1, .dashboard-content-shell h2, .dashboard-content-shell h3,
    .dashboard-content-shell h4, .dashboard-content-shell h5 {
        color: var(--bds-text);
        letter-spacing: -.02em;
    }

    .dashboard-content-shell h1 {
        font-size: clamp(1.55rem, 2.2vw, 2.1rem);
        font-weight: 750;
    }

    .dashboard-content-shell h2 {
        font-size: clamp(1.35rem, 1.8vw, 1.75rem);
        font-weight: 730;
    }

    .dashboard-content-shell p, .dashboard-content-shell .text-muted {
        color: var(--bds-muted);
    }

    .dashboard-content-shell .card, .dashboard-content-shell .profile-box,
    .dashboard-content-shell .admin-tools-container, .dashboard-content-shell .admin-financial-tab-content,
    .dashboard-content-shell .accordion-item, .dashboard-content-shell .list-group-item {
        border-color: var(--bds-border) !important;
        border-radius: var(--bds-radius-sm) !important;
    }

body[data-bs-theme="dark"] .dashboard-content-shell .card,
body[data-bs-theme="dark"] .dashboard-content-shell .accordion-item,
body[data-bs-theme="dark"] .dashboard-content-shell .list-group-item {
    background-color: var(--bds-surface-raised) !important;
    color: var(--bds-text);
}

body[data-bs-theme="light"] .dashboard-content-shell .card,
body[data-bs-theme="light"] .dashboard-content-shell .accordion-item,
body[data-bs-theme="light"] .dashboard-content-shell .list-group-item {
    background-color: var(--bds-surface) !important;
    color: var(--bds-text);
}

.dashboard-content-shell .card {
    box-shadow: 0 6px 20px rgba(6, 15, 32, .08);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

    .dashboard-content-shell .card:hover {
        border-color: rgba(79, 116, 255, .42) !important;
        box-shadow: 0 10px 28px rgba(6, 15, 32, .14);
    }

.dashboard-content-shell .card-header {
    border-bottom-color: var(--bds-border) !important;
    background: transparent;
    font-weight: 700;
}

.dashboard-content-shell .table-responsive {
    width: 100%;
    border: 1px solid var(--bds-border);
    border-radius: var(--bds-radius-sm);
}

.dashboard-content-shell table {
    width: 100% !important;
    margin-bottom: 0;
    border-color: var(--bds-border);
}

.dashboard-content-shell .table {
    --bs-table-bg: transparent;
    --bs-table-color: var(--bds-text);
    --bs-table-border-color: var(--bds-border);
}

.dashboard-content-shell thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: var(--bds-surface-raised) !important;
    color: var(--bds-text);
    font-size: .79rem;
    font-weight: 750;
    letter-spacing: .035em;
    text-transform: uppercase;
}

.dashboard-content-shell tbody tr {
    transition: background-color .15s ease;
}

    .dashboard-content-shell tbody tr:hover {
        --bs-table-bg: rgba(79, 116, 255, .075);
    }

.dashboard-content-shell td, .dashboard-content-shell th {
    vertical-align: middle;
}

.dashboard-content-shell .form-control, .dashboard-content-shell .form-select,
.dashboard-content-shell input:not([type="checkbox"]):not([type="radio"]),
.dashboard-content-shell select, .dashboard-content-shell textarea {
    min-height: 42px;
    border-radius: 10px;
    border-color: var(--bds-border);
    box-shadow: none;
    transition: border-color .18s ease, box-shadow .18s ease;
}

body[data-bs-theme="dark"] .dashboard-content-shell .form-control,
body[data-bs-theme="dark"] .dashboard-content-shell .form-select,
body[data-bs-theme="dark"] .dashboard-content-shell input:not([type="checkbox"]):not([type="radio"]),
body[data-bs-theme="dark"] .dashboard-content-shell select,
body[data-bs-theme="dark"] .dashboard-content-shell textarea {
    background-color: #101a29;
    color: var(--bds-text);
}

.dashboard-content-shell .form-control:focus, .dashboard-content-shell .form-select:focus,
.dashboard-content-shell input:focus, .dashboard-content-shell select:focus, .dashboard-content-shell textarea:focus {
    border-color: var(--bds-brand) !important;
    box-shadow: 0 0 0 .2rem rgba(79, 116, 255, .16) !important;
}

.dashboard-content-shell .btn {
    min-height: 38px;
    border-radius: 10px;
    font-weight: 650;
}

.dashboard-content-shell .btn-primary {
    border-color: var(--bds-brand-strong);
    background: var(--bds-brand-strong);
    box-shadow: 0 4px 12px rgba(49, 88, 220, .2);
}

    .dashboard-content-shell .btn-primary:hover {
        border-color: #2749be;
        background: #2749be;
        transform: translateY(-1px);
    }

.dashboard-content-shell .alert {
    border-radius: var(--bds-radius-sm);
}

.dashboard-content-shell .badge {
    border-radius: 999px;
    font-weight: 700;
}

.dashboard-content-shell .dashboard-actions {
    gap: 10px !important;
}

    .dashboard-content-shell .dashboard-actions .btn {
        min-height: 42px;
        box-shadow: 0 2px 8px rgba(8, 20, 44, .08);
    }

        .dashboard-content-shell .dashboard-actions .btn:hover {
            transform: translateY(-1px);
            box-shadow: 0 6px 16px rgba(8, 20, 44, .14);
        }

.site-footer {
    padding-top: 20px;
    padding-bottom: 22px;
}

.site-floating-contact {
    box-shadow: 0 8px 24px rgba(45, 81, 197, .28);
}

/* Sign-in and registration share the same theme and responsive form treatment. */
.nftmax-wc__form {
    min-height: 100vh;
    height: auto;
    padding: clamp(20px, 4vw, 48px);
    color: var(--bds-text);
}

.nftmax-wc__form-inner {
    width: min(100%, 640px);
    min-width: 0 !important;
    max-width: 640px !important;
    min-height: 0 !important;
    margin: 20px auto;
    padding: clamp(24px, 4vw, 46px) !important;
    border: 1px solid var(--bds-border);
    border-radius: 20px !important;
    background: var(--bds-surface) !important;
    box-shadow: 0 18px 48px rgba(21, 37, 67, .12);
}

.nftmax-wc__form-title {
    margin-bottom: 10px;
    padding-bottom: 10px;
    background-image: none !important;
    color: var(--bds-text);
    font-size: clamp(1.8rem, 3vw, 2.35rem);
    font-weight: 750;
    line-height: 1.2;
}

.nftmax-wc__form-label, .nftmax-wc__form-main label {
    color: var(--bds-text);
    font-size: .92rem;
    font-weight: 650;
}

.nftmax-wc__text, .nftmax-wc__form-main p, .nftmax-wc__forgot a {
    color: var(--bds-muted);
}

.nftmax-wc__form-main input[type="text"], .nftmax-wc__form-main input[type="email"],
.nftmax-wc__form-main input[type="tel"], .nftmax-wc__form-main input[type="password"],
.nftmax-wc__form-main input:not([type]),
.nftmax-wc__form-main .form-control, .nftmax-wc__form-main .form-select {
    width: 100%;
    min-height: 46px;
    height: auto;
    padding: 11px 14px;
    border: 1px solid var(--bds-border);
    border-radius: 11px;
    box-shadow: none;
    color: var(--bds-text);
    font-size: .96rem;
    transition: border-color .18s ease, box-shadow .18s ease;
}

    .nftmax-wc__form-main input::placeholder, .nftmax-wc__form-main .form-control::placeholder {
        color: var(--bds-muted);
        opacity: .9;
    }

    .nftmax-wc__form-main input:focus, .nftmax-wc__form-main .form-control:focus, .nftmax-wc__form-main .form-select:focus {
        border-color: var(--bds-brand) !important;
        box-shadow: 0 0 0 .2rem rgba(79, 116, 255, .15) !important;
    }

.nftmax-wc__form-main .ntfmax-wc__btn, .nftmax-wc__form-main .btn-primary {
    min-height: 48px;
    border-radius: 11px;
    background: var(--bds-brand-strong);
    color: #fff;
    font-weight: 700;
}

.nftmax-wc__bottom a {
    color: var(--bds-brand-strong);
    font-weight: 700;
}

.nftmax-wc__inner {
    min-height: 100vh;
    height: auto;
}

body[data-bs-theme="dark"] .nftmax-wc__form-inner {
    box-shadow: 0 18px 48px rgba(0, 0, 0, .25);
}

body[data-bs-theme="dark"] .nftmax-wc__form-main input[type="text"],
body[data-bs-theme="dark"] .nftmax-wc__form-main input[type="email"],
body[data-bs-theme="dark"] .nftmax-wc__form-main input[type="tel"],
body[data-bs-theme="dark"] .nftmax-wc__form-main input[type="password"],
body[data-bs-theme="dark"] .nftmax-wc__form-main input:not([type]),
body[data-bs-theme="dark"] .nftmax-wc__form-main .form-control,
body[data-bs-theme="dark"] .nftmax-wc__form-main .form-select {
    background: #101a29;
}

body[data-bs-theme="light"] .nftmax-wc__form-main input[type="text"],
body[data-bs-theme="light"] .nftmax-wc__form-main input[type="email"],
body[data-bs-theme="light"] .nftmax-wc__form-main input[type="tel"],
body[data-bs-theme="light"] .nftmax-wc__form-main input[type="password"],
body[data-bs-theme="light"] .nftmax-wc__form-main input:not([type]),
body[data-bs-theme="light"] .nftmax-wc__form-main .form-control,
body[data-bs-theme="light"] .nftmax-wc__form-main .form-select {
    background: #fff;
}

body[data-bs-theme="light"] .glass-modal {
    border-color: #dfe6f1;
    background: rgba(255, 255, 255, .98);
    color: #26354c;
}

body[data-bs-theme="light"] .glass-btn-cancel {
    border-color: #cbd5e1 !important;
    background: #f8faff !important;
    color: #334155 !important;
}

body[data-bs-theme="light"] #confirmModal .table tr:not(:last-child) {
    border-bottom-color: #e5eaf2;
}

@media (max-width: 767px) {
    .nftmax-wc__form {
        min-height: auto;
        padding: 12px;
    }

    .nftmax-wc__form-inner {
        max-width: 100% !important;
        padding: 22px 18px !important;
    }

    .nftmax-wc__inner {
        min-height: 38vh;
        padding: 34px 20px !important;
        border-radius: 0 0 18px 18px !important;
    }
}

/* Shared component styling for every page using Dashboard.Master. */
.nftmax-adashboard {
    color: var(--bds-text);
}

    .nftmax-adashboard h1, .nftmax-adashboard h2, .nftmax-adashboard h3,
    .nftmax-adashboard h4, .nftmax-adashboard h5, .nftmax-adashboard h6 {
        color: var(--bds-text);
        letter-spacing: -.018em;
    }

    .nftmax-adashboard .text-muted, .nftmax-adashboard small,
    .nftmax-adashboard .form-text {
        color: var(--bds-muted) !important;
    }

    .nftmax-adashboard .card:not([class*="bg-"]),
    .nftmax-adashboard .modal-content,
    .nftmax-adashboard .accordion-item,
    .nftmax-adashboard .list-group-item,
    .nftmax-adashboard .dropdown-menu {
        border-color: var(--bds-border) !important;
        border-radius: var(--bds-radius-sm);
        color: var(--bds-text);
    }

body[data-bs-theme="dark"] .nftmax-adashboard .card:not([class*="bg-"]),
body[data-bs-theme="dark"] .nftmax-adashboard .modal-content,
body[data-bs-theme="dark"] .nftmax-adashboard .accordion-item,
body[data-bs-theme="dark"] .nftmax-adashboard .list-group-item,
body[data-bs-theme="dark"] .nftmax-adashboard .dropdown-menu {
    background-color: var(--bds-surface-raised);
    color: var(--bds-text);
}

body[data-bs-theme="light"] .nftmax-adashboard .card:not([class*="bg-"]),
body[data-bs-theme="light"] .nftmax-adashboard .modal-content,
body[data-bs-theme="light"] .nftmax-adashboard .accordion-item,
body[data-bs-theme="light"] .nftmax-adashboard .list-group-item,
body[data-bs-theme="light"] .nftmax-adashboard .dropdown-menu {
    background-color: var(--bds-surface);
    color: var(--bds-text);
}

.nftmax-adashboard .card:not([class*="bg-"]) {
    box-shadow: 0 5px 18px rgba(6, 15, 32, .07);
}

.nftmax-adashboard .card-header {
    border-bottom-color: var(--bds-border);
    background: transparent;
    font-weight: 700;
}

.nftmax-adashboard .table-responsive {
    max-width: 100%;
    border: 1px solid var(--bds-border);
    border-radius: var(--bds-radius-sm);
}

.nftmax-adashboard table:not(.table-dark) {
    width: 100%;
    border-color: var(--bds-border);
}

.nftmax-adashboard .table:not(.table-dark) {
    --bs-table-bg: transparent;
    --bs-table-color: var(--bds-text);
    --bs-table-border-color: var(--bds-border);
    --bs-table-striped-color: var(--bds-text);
    --bs-table-hover-color: var(--bds-text);
    margin-bottom: 0;
}

.nftmax-adashboard table:not(.table-dark) thead th {
    background: var(--bds-surface-raised);
    color: var(--bds-text);
    font-weight: 700;
}

.nftmax-adashboard .table:not(.table-dark) tbody tr:hover {
    --bs-table-bg: rgba(79, 116, 255, .075);
}

.nftmax-adashboard .table td, .nftmax-adashboard .table th {
    vertical-align: middle;
}

.nftmax-adashboard .form-control, .nftmax-adashboard .form-select,
.nftmax-adashboard input[type="text"], .nftmax-adashboard input[type="email"],
.nftmax-adashboard input[type="number"], .nftmax-adashboard input[type="tel"],
.nftmax-adashboard input[type="search"], .nftmax-adashboard input[type="date"],
.nftmax-adashboard input[type="datetime-local"], .nftmax-adashboard input[type="password"],
.nftmax-adashboard input[type="time"],
.nftmax-adashboard select, .nftmax-adashboard textarea {
    min-height: 40px;
    border: 1px solid var(--bds-border);
    border-radius: 10px;
    box-shadow: none;
}

body[data-bs-theme="dark"] .nftmax-adashboard .form-control,
body[data-bs-theme="dark"] .nftmax-adashboard .form-select,
body[data-bs-theme="dark"] .nftmax-adashboard input[type="text"],
body[data-bs-theme="dark"] .nftmax-adashboard input[type="email"],
body[data-bs-theme="dark"] .nftmax-adashboard input[type="number"],
body[data-bs-theme="dark"] .nftmax-adashboard input[type="tel"],
body[data-bs-theme="dark"] .nftmax-adashboard input[type="search"],
body[data-bs-theme="dark"] .nftmax-adashboard input[type="date"],
body[data-bs-theme="dark"] .nftmax-adashboard input[type="datetime-local"],
body[data-bs-theme="dark"] .nftmax-adashboard input[type="password"],
body[data-bs-theme="dark"] .nftmax-adashboard input[type="time"],
body[data-bs-theme="dark"] .nftmax-adashboard select,
body[data-bs-theme="dark"] .nftmax-adashboard textarea {
    background-color: #101a29;
    color: var(--bds-text);
}

body[data-bs-theme="light"] .nftmax-adashboard .form-control,
body[data-bs-theme="light"] .nftmax-adashboard .form-select,
body[data-bs-theme="light"] .nftmax-adashboard input[type="text"],
body[data-bs-theme="light"] .nftmax-adashboard input[type="email"],
body[data-bs-theme="light"] .nftmax-adashboard input[type="number"],
body[data-bs-theme="light"] .nftmax-adashboard input[type="tel"],
body[data-bs-theme="light"] .nftmax-adashboard input[type="search"],
body[data-bs-theme="light"] .nftmax-adashboard input[type="date"],
body[data-bs-theme="light"] .nftmax-adashboard input[type="datetime-local"],
body[data-bs-theme="light"] .nftmax-adashboard input[type="password"],
body[data-bs-theme="light"] .nftmax-adashboard input[type="time"],
body[data-bs-theme="light"] .nftmax-adashboard select,
body[data-bs-theme="light"] .nftmax-adashboard textarea {
    background-color: #fff;
    color: var(--bds-text);
}

.nftmax-adashboard .form-control:focus, .nftmax-adashboard .form-select:focus,
.nftmax-adashboard input:focus, .nftmax-adashboard select:focus,
.nftmax-adashboard textarea:focus {
    border-color: var(--bds-brand) !important;
    box-shadow: 0 0 0 .2rem rgba(79, 116, 255, .16) !important;
}

.nftmax-adashboard .btn {
    min-height: 38px;
    border-radius: 10px;
    font-weight: 650;
}

.nftmax-adashboard .btn-primary {
    border-color: var(--bds-brand-strong);
    background: var(--bds-brand-strong);
    box-shadow: 0 4px 12px rgba(49, 88, 220, .18);
}

    .nftmax-adashboard .btn-primary:hover {
        border-color: #2749be;
        background: #2749be;
        transform: translateY(-1px);
    }

.nftmax-adashboard .alert {
    border-radius: var(--bds-radius-sm);
}

.nftmax-adashboard .badge {
    border-radius: 999px;
    font-weight: 700;
}

.nftmax-adashboard .pagination .page-link {
    border-color: var(--bds-border);
}

body[data-bs-theme="dark"] .nftmax-adashboard .pagination .page-link {
    background: var(--bds-surface-raised);
    color: var(--bds-text);
}

body[data-bs-theme="light"] .nftmax-adashboard .pagination .page-link {
    background: #fff;
    color: var(--bds-text);
}

.nftmax-adashboard .pagination .page-item.active .page-link {
    border-color: var(--bds-brand);
    background: var(--bds-brand);
    color: #fff;
}

@media (max-width: 767px) {
    .nftmax-header > .container {
        width: 100%;
        max-width: none;
    }

    .nftmax-header .g-50 > .col-12 {
        padding-block: 0 !important;
    }

    .nftmax-header__inner {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        flex-wrap: nowrap;
        width: 100%;
        height: 64px !important;
        min-height: 64px;
        padding: 0 !important;
        gap: 8px;
    }

    .header-left-controls {
        display: flex !important;
        flex: 1 1 auto !important;
        align-items: center;
        justify-content: flex-start !important;
        width: auto !important;
        min-width: 0;
        gap: 8px;
    }

    .header-left-controls .close-icon {
        display: inline-flex !important;
        flex: 0 0 auto !important;
        align-items: center;
        justify-content: center;
        width: auto !important;
        height: 42px !important;
        min-height: 42px !important;
        min-width: 0 !important;
        padding: 8px 10px !important;
        font-size: 14px !important;
        line-height: 1 !important;
        white-space: nowrap;
    }

    .header-left-controls .close-icon img {
        display: block;
        flex: 0 0 auto;
        width: 25px !important;
        height: 19px !important;
        max-width: none;
    }

    .nftmax-header__amount {
        display: flex;
        flex: 0 1 auto;
        align-items: center;
        width: auto !important;
        max-width: none !important;
        height: 42px !important;
        min-width: 0;
        gap: 7px;
        padding: 0 8px !important;
    }

    .nftmax-header-right {
        display: flex !important;
        flex: 0 0 auto;
        align-items: center;
        width: auto !important;
        min-width: 0;
        margin: 0 !important;
    }

    .mode-toggle {
        right: 12px !important;
        bottom: 142px !important;
    }

    .dashboard-content-shell {
        padding: 16px 12px !important;
        border-radius: 14px !important;
    }

        .dashboard-content-shell .table-responsive {
            margin-inline: 0;
        }

        .dashboard-content-shell .btn-group {
            flex-wrap: wrap;
        }

        /* Keep long dashboard labels and money values inside their cards. */
        .dashboard-content-shell .status-card .card-body,
        .dashboard-content-shell .income-card .card-body {
            min-width: 0;
        }

        .dashboard-content-shell .status-card .badge,
        .dashboard-content-shell .income-card .badge {
            max-width: 100%;
            white-space: normal;
            overflow-wrap: anywhere;
            line-height: 1.25;
        }

        /* Data tables scroll within their own frame instead of squeezing columns
           until labels and values collide or expanding the whole page. */
        .dashboard-content-shell .table-responsive > table {
            width: max-content !important;
            min-width: 100% !important;
        }

        .dashboard-content-shell .table-responsive th,
        .dashboard-content-shell .table-responsive td {
            overflow-wrap: normal;
            white-space: nowrap;
        }

    .site-footer {
        padding-bottom: 76px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dashboard-content-shell .card, .dashboard-content-shell tbody tr {
        transition: none;
    }
}

/* Consistent, theme-aware component layer for dashboard pages. */
:root[data-bs-theme="dark"],
body[data-bs-theme="dark"] {
    --bds-page: #0b1220;
    --bds-surface: #121c2b;
    --bds-surface-raised: #19263a;
    --bds-control-bg: #0e1726;
    --bds-text: #edf2fb;
    --bds-muted: #aab7ca;
    --bds-border: rgba(164, 181, 211, .16);
    --bs-body-bg: var(--bds-page);
    --bs-body-color: var(--bds-text);
    --bs-secondary-color: var(--bds-muted);
    --bs-secondary-bg: var(--bds-surface);
    --bs-tertiary-bg: var(--bds-surface-raised);
    --bs-border-color: var(--bds-border);
    color-scheme: dark;
}

:root[data-bs-theme="light"],
body[data-bs-theme="light"] {
    --bds-page: #f3f6fb;
    --bds-surface: #fff;
    --bds-surface-raised: #f8faff;
    --bds-control-bg: #fff;
    --bds-text: #1f2b40;
    --bds-muted: #586981;
    --bds-border: rgba(91, 109, 139, .2);
    --bs-body-bg: var(--bds-page);
    --bs-body-color: var(--bds-text);
    --bs-secondary-color: var(--bds-muted);
    --bs-secondary-bg: var(--bds-surface);
    --bs-tertiary-bg: var(--bds-surface-raised);
    --bs-border-color: var(--bds-border);
    color-scheme: light;
}

body[data-bs-theme] {
    color: var(--bds-text);
    background-color: var(--bds-page);
    transition: color .18s ease, background-color .18s ease;
}

.dashboard-content-shell {
    min-width: 0;
    color: var(--bds-text);
    background: var(--bds-surface) !important;
}

    .dashboard-content-shell :is(h1, h2, h3, h4, h5, h6, label, legend):not([class*="text-"]) {
        color: var(--bds-text);
    }

    .dashboard-content-shell :is(.text-muted, .form-text, .text-body-secondary, small:not([class*="text-"])) {
        color: var(--bds-muted) !important;
    }

    .dashboard-content-shell .card:not([class*="bg-"]),
    .dashboard-content-shell .modal-content,
    .dashboard-content-shell .dropdown-menu,
    .dashboard-content-shell .popover {
        color: var(--bds-text);
        background-color: var(--bds-surface-raised);
        border-color: var(--bds-border);
    }

        .dashboard-content-shell .card:not([class*="bg-"]) .card-header,
        .dashboard-content-shell .card:not([class*="bg-"]) .card-footer,
        .dashboard-content-shell .modal-header,
        .dashboard-content-shell .modal-footer {
            color: var(--bds-text);
            border-color: var(--bds-border);
            background: transparent;
        }

/* Neutral Bootstrap background helpers should follow the selected theme. */
body[data-bs-theme="dark"] .dashboard-content-shell :is(.bg-white, .bg-light, .bg-body-tertiary) {
    color: var(--bds-text) !important;
    background-color: var(--bds-surface-raised) !important;
}

body[data-bs-theme="dark"] .dashboard-content-shell .text-dark {
    color: var(--bds-text) !important;
}

.dashboard-content-shell :is(.form-control, .form-select, input:not([type="checkbox"]):not([type="radio"]), select, textarea) {
    min-width: 0;
    color: var(--bds-text);
    background-color: var(--bds-control-bg);
    border-color: var(--bds-border);
}

.dashboard-content-shell :is(input, select, textarea)::placeholder {
    color: var(--bds-muted);
    opacity: .85;
}

.dashboard-content-shell :is(input, select, textarea):disabled {
    opacity: .72;
    cursor: not-allowed;
}

.dashboard-content-shell :is(.btn, .page-link, .nav-link, .list-group-item-action) {
    transition: color .16s ease, background-color .16s ease, border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.dashboard-content-shell .btn:active {
    transform: translateY(1px);
}

.dashboard-content-shell :is(a:not(.btn), .link-primary) {
    text-underline-offset: 3px;
}

.dashboard-content-shell .table-responsive {
    max-width: 100%;
    overflow-x: auto;
    border-color: var(--bds-border);
    scrollbar-width: thin;
}

    .dashboard-content-shell .table-responsive table {
        display: table;
        width: 100% !important;
        min-width: 0 !important;
        table-layout: auto;
    }

.dashboard-content-shell :is(td, th) {
    overflow-wrap: anywhere;
}

.dashboard-content-shell .table-responsive thead th {
    top: 0;
}

.mode-toggle {
    z-index: 1040 !important;
}

.mobile-theme-menu-item {
    display: none;
}

.site-floating-contact {
    z-index: 1038;
}

.site-back-to-top {
    z-index: 1037;
}

body.modal-open .mode-toggle,
body.modal-open .site-floating-contact,
body.modal-open .site-back-to-top {
    visibility: hidden;
}

@media (max-width: 767px) {
    /* Mobile pages already expose these actions from the navigation menu.
       Keeping them fixed over the viewport hides form fields and table rows. */
    .mode-toggle,
    .site-floating-contact,
    .site-back-to-top {
        display: none !important;
    }

    .mobile-theme-menu-item {
        display: block;
    }

    .mobile-theme-menu-item > button {
        display: flex;
        align-items: center;
        width: 100%;
        min-height: 44px;
        padding: 8px 14px;
        border: 0;
        border-radius: 10px;
        background: transparent;
        color: var(--bs-body-color);
        text-align: left;
        font: inherit;
    }

    .mobile-theme-menu-item > button:hover,
    .mobile-theme-menu-item > button:focus-visible {
        background: var(--bs-tertiary-bg);
        outline: 2px solid var(--bs-primary);
        outline-offset: 1px;
    }

    .mobile-theme-menu-item .menu-bar__text {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .dashboard-content-shell {
        overflow-x: clip;
    }

        .dashboard-content-shell .row,
        .dashboard-content-shell [class*="col-"] {
            min-width: 0;
        }

        .dashboard-content-shell .table-responsive {
            margin-inline: 0;
        }

        .dashboard-content-shell .btn-group {
            flex-wrap: wrap;
        }

        .dashboard-content-shell .form-label {
            margin-bottom: .4rem;
        }

    .nftmax-header__inner {
        gap: 8px;
    }

    .nftmax-header {
        position: relative !important;
        top: auto !important;
    }

    .site-footer {
        padding-bottom: 24px;
    }
}

@media (max-width: 380px) {
    .nftmax-header__inner {
        gap: 4px;
    }

    .header-left-controls {
        flex: 0 1 auto !important;
        gap: 4px;
    }

    .header-left-controls .close-icon {
        gap: 4px;
        padding: 7px 7px !important;
        font-size: 12px !important;
    }

    .header-left-controls .close-icon img {
        width: 21px !important;
    }

    .nftmax-header__amount {
        gap: 4px;
        padding-inline: 6px !important;
    }

    .nftmax-amount__digit {
        font-size: 12px;
    }

    .nftmax-header-right,
    .nftmax-header-right .profile-container,
    .nftmax-header-right .profile-hover-zone,
    .nftmax-header-right .profile-box {
        flex: 0 0 42px !important;
        width: 42px !important;
        min-width: 42px !important;
        max-width: 42px !important;
    }

    .nftmax-header-right .profile-box {
        height: 42px;
        justify-content: center;
        padding: 3px !important;
    }

    .nftmax-header-right .profile-info {
        display: none !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    body[data-bs-theme] {
        transition: none;
    }

    .dashboard-content-shell :is(.btn, .page-link, .nav-link, .list-group-item-action) {
        transition: none;
    }
}
