:root {
    --navy: #0e1e4b;
    --navy-deep: #1e3180;
    --navy-mid: #162560;
    --navy-light: #1e3180;
    --accent: #3d8ef5;
    --accent-glow: #5ba3ff;
    --surface: rgba(255, 255, 255, 0.05);
    --surface2: rgba(255, 255, 255, 0.09);
    --border: rgba(255, 255, 255, 0.10);
    --text: #e8edf8;
    --text-muted: #8fa0c4;
    --text-dim: #5a6d98;
    --radius: 12px;
    --radius-sm: 8px;
    --header-h: 64px;
    --transition: 0.22s cubic-bezier(.4, 0, .2, 1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--navy-deep);
    color: var(--text);
    min-height: 100vh;
}

main {
    min-height: 80vh;
}

/* ══════════════════════════════════════════════
    TOP HEADER NAV
══════════════════════════════════════════════ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
    display: flex;
    flex-direction: column;
}

/* Top bar: logo + hamburger (mobile) */
.header-topbar {
    background: #0e1e4b;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
}

.header-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.header-logo img {
    height: 38px;
    object-fit: contain;
}

.logo-fallback {
    font-family: 'Playfair Display', serif;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
}

/* Nav bar below logo bar */
.header-navbar {
    background: #0e1e4b;
    border-bottom: 1px solid var(--border);
    height: var(--header-h);
    display: flex;
    align-items: center;
    padding: 0 28px;
}

/* Nav links */
.header-nav {
    display: flex;
    align-items: stretch;
    gap: 0;
    flex: 1;
    height: var(--header-h);
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 0 14px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 500;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    transition: color var(--transition), border-color var(--transition), background var(--transition);
    cursor: pointer;
}

.nav-link svg {
    width: 15px;
    height: 15px;
    opacity: .6;
    flex-shrink: 0;
}

.nav-link:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.04);
}

.nav-link.active {
    color: #fff;
    border-bottom-color: var(--accent);
}

.nav-link.active svg {
    opacity: 1;
}

.nav-sep {
    width: 1px;
    background: var(--border);
    margin: 14px 8px;
    flex-shrink: 0;
}

/* Right side */
.header-right {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-left: auto;
    flex-shrink: 0;
}

.user-pill {
    display: flex;
    align-items: center;
    gap: 9px;
}

.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--navy-light));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 12px;
    color: #fff;
    flex-shrink: 0;
}

.user-info {
    line-height: 1.25;
}

.user-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
}

.user-role {
    font-size: 10px;
    color: var(--text-dim);
}

.logout-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 13px;
    border-radius: var(--radius-sm);
    background: #b50000;
    border: 1px solid #b50000;
    color: #fff;
    font-size: 12.5px;
    font-family: inherit;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: background var(--transition), border-color var(--transition);
    white-space: nowrap;
}

.logout-btn:hover {
    background: #d40000;
    border-color: #d40000;
    color: #fff;
}

/* ── Mobile hamburger ──────────────────────── */
.hamburger {
    display: none;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 6px;
    flex-shrink: 0;
}

/* Mobile dropdown drawer */
.mobile-drawer {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--navy);
    border-bottom: 1px solid var(--border);
    z-index: 199;
    padding: 12px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, .4);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition), transform var(--transition);
}

.mobile-drawer.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 12px;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background var(--transition), color var(--transition);
    cursor: pointer;
}

.mobile-nav-link svg {
    width: 16px;
    height: 16px;
    opacity: .7;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    background: var(--surface2);
    color: #fff;
}

.mobile-nav-link.active svg {
    opacity: 1;
}

.mobile-sep {
    height: 1px;
    background: var(--border);
    margin: 8px 0;
}

.mobile-user {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
}

.drawer-overlay {
    display: none;
    position: fixed;
    inset: 0;
    top: 70px;
    background: rgba(0, 0, 0, .45);
    z-index: 198;
}

.drawer-overlay.open {
    display: block;
}

/* ══════════════════════════════════════════════
    MAIN CONTENT
══════════════════════════════════════════════ */
.main {
    padding: calc(var(--header-h) + 70px + 36px) 36px 48px;
    max-width: 1360px;
    margin: 0 auto;
}

.page-header {
    margin-bottom: 28px;
}

.page-title {
    font-family: 'DM Sans', sans-serif;
    font-size: 26px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #fff;
    margin-bottom: 3px;
}

.page-subtitle {
    font-size: 13px;
    color: var(--text-dim);
}

/* User Dashboard (dashboard.php): larger type — scoped to .aprx-user-dashboard-page */
.aprx-user-dashboard-page .page-title {
    font-size: 30px;
}

.aprx-dashboard-intro {
    font-size: 16px;
    line-height: 1.45;
    color: #fff;
    font-weight: 400;
}

@media (max-width: 600px) {
    .aprx-user-dashboard-page .page-title {
        font-size: 24px;
    }

    .aprx-dashboard-intro {
        font-size: 15px;
    }
}

.aprx-user-dashboard-page .filter-card .field-label {
    font-size: 12px;
}

.aprx-user-dashboard-page .filter-card .field-select,
.aprx-user-dashboard-page .filter-card .field-input {
    font-size: 15px;
    padding: 11px 15px;
}

.aprx-user-dashboard-page .filter-card .date-wrapper input.field-input.aprx-month-field {
    padding-right: 40px;
}

.aprx-user-dashboard-page .filter-card .filter-pharmacy-ms-wrap .ms-choice {
    min-height: 44px;
    line-height: 42px;
    --ms-choice-height: 44px;
    --ms-choice-line-height: 42px;
}

.aprx-user-dashboard-page .summary-table thead th {
    padding: 11px 14px;
    font-size: 11px;
}

.aprx-user-dashboard-page .summary-table tbody td {
    padding: 15px 12px;
    font-size: 15px;
}

.aprx-user-dashboard-page .summary-row-label {
    padding: 16px 18px;
}

.aprx-user-dashboard-page .row-label-title {
    font-size: 13px;
}

.aprx-user-dashboard-page .row-label-range {
    font-size: 12px;
}

.aprx-user-dashboard-page .summary-val {
    font-size: 18px;
}

.aprx-user-dashboard-page .aprx-pharmacy-empty-msg {
    font-size: 16px;
    padding: 14px 4px;
}

.aprx-user-dashboard-page .aprx_main_body_record_table .table-wrap.aprx-pharmacy-rebate-table-wrap table.sub_records {
    font-size: 15px;
}

.aprx-user-dashboard-page .aprx_main_body_record_table .table-wrap.aprx-pharmacy-rebate-table-wrap table.sub_records thead th,
.aprx-user-dashboard-page .aprx_main_body_record_table .table-wrap.aprx-pharmacy-rebate-table-wrap table.sub_records tbody tr.aprx-year-end-subthead th {
    font-size: 12px;
    padding: 13px 11px;
}

.aprx-user-dashboard-page .aprx_main_body_record_table .table-wrap.aprx-pharmacy-rebate-table-wrap table.sub_records tbody td {
    padding: 13px 11px;
    font-size: 14px;
}

.aprx-user-dashboard-page .aprx_main_body_record_table .table-wrap.aprx-pharmacy-rebate-table-wrap table.sub_records tbody tr.section-header-row td {
    font-size: 12px;
    padding: 11px 16px;
}

.aprx-user-dashboard-page .section-title {
    font-size: 16px;
}

.aprx-user-dashboard-page .meta-label {
    font-size: 11px;
}

.aprx-user-dashboard-page .meta-value {
    font-size: 15px;
}

.aprx-user-dashboard-page .btn {
    font-size: 14px;
    padding: 9px 17px;
}

.aprx-user-dashboard-page .aprx-pdf-popover-title {
    font-size: 18px;
}

.aprx-user-dashboard-page .aprx-pdf-popover-hint {
    font-size: 14px;
}

/* ── Filter card ───────────────────────────── */
.filter-card {
    background: #f0f2f7;
    border: 1px solid #d8dce8;
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 24px;
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    align-items: end;
}

.field-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-width: 0;
}

.field-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: #6b7a9e;
}

.field-select,
.field-input {
    background: #fff;
    border: 1px solid #cdd2e3;
    border-radius: var(--radius-sm);
    color: #1a2b5c;
    font-family: inherit;
    font-size: 14px;
    padding: 10px 14px;
    outline: none;
    transition: border-color var(--transition), background var(--transition);
    width: 100%;
}

.field-select {
    appearance: none;
    cursor: pointer;
    padding-right: 36px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7a9e' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-color: #fff;
}

.field-select option {
    background: #fff;
    color: #1a2b5c;
}

.field-select:focus,
.field-input:focus {
    border-color: var(--accent);
    background: #f4f8ff;
}

.date-wrapper {
    position: relative;
}

.date-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #9aa5c4;
    pointer-events: none;
}

.filter-card .date-wrapper input.field-input.aprx-month-field {
    padding-right: 38px;
}

/* Pharmacy: multiple-select-vanilla (Example 10: filter + showSearchClear) */
.filter-pharmacy-ms-wrap {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    position: relative;
    min-height: 42px;
}

/*
 * Native <select multiple> draws a tall listbox before the ESM bundle runs.
 * Keep it visually hidden until multipleSelect() finishes (see .aprx-pharmacy-ms-pending).
 */
select.aprx-pharmacy-ms-pending.aprx-pharmacy-multiselect {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
    border: 0 !important;
    appearance: none;
}

.filter-card .filter-pharmacy-ms-wrap .ms-parent {
    display: block;
    width: 100%;
    max-width: 100%;
}

.filter-card .filter-pharmacy-ms-wrap .ms-choice {
    border-color: #cdd2e3;
    border-radius: var(--radius-sm);
    min-height: 42px;
    line-height: 40px;
    height: auto;
    --ms-choice-height: 42px;
    --ms-choice-line-height: 40px;
}

.filter-card-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 4px;
    padding-top: 18px;
    border-top: 1px solid #d8dce8;
}

.filter-card-actions .filter-pharmacy-search-btn {
    display: inline-block;
    width: auto;
    min-width: 160px;
    padding: 10px 28px;
    border: none;
    border-radius: var(--radius-sm);
    background: var(--accent);
    color: #fff;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.filter-card-actions .filter-pharmacy-search-btn:hover {
    filter: brightness(1.05);
}

.filter-secondary {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid #d8dce8;
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.secondary-label {
    font-size: 12px;
    color: #6b7a9e;
    font-weight: 500;
}

.toggle-group {
    display: flex;
    gap: 6px;
}

.toggle-btn {
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    border: 1px solid #cdd2e3;
    background: transparent;
    color: #6b7a9e;
    transition: all var(--transition);
}

.toggle-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.toggle-btn:not(.active):hover {
    background: #e4e8f4;
    color: #1a2b5c;
}

/* ── Summary table ─────────────────────────── */
.summary-table-wrap {
    background: #f0f2f7;
    border: 1px solid #d8dce8;
    border-radius: var(--radius);
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    margin-bottom: 24px;
    width: 100%;
    max-width: 100%;
}

.summary-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: auto;
    min-width: max-content;
}

.summary-table thead tr {
    background: #e4e8f4;
}

.summary-table thead th {
    padding: 10px 14px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #6b7a9e;
    border-bottom: 1px solid #d8dce8;
    text-align: center;
}

.summary-table thead th.summary-row-label-col {
    width: 160px;
    text-align: left;
}

.summary-table tbody tr {
    border-bottom: 1px solid #d8dce8;
}

.summary-table tbody tr:last-child {
    border-bottom: none;
}

.summary-table tbody tr:last-child {
    background: #eceef6;
}

.summary-row-label {
    padding: 14px 16px;
    text-align: left;
    border-right: 1px solid #d8dce8;
}

.row-label-title {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--accent);
}

.row-label-range {
    font-size: 11px;
    color: #8a97bb;
    margin-top: 2px;
}

.summary-table tbody td {
    padding: 14px 10px;
    text-align: center;
    border-bottom: none;
}

.summary-val {
    font-size: 16px;
    font-weight: 700;
    color: #0e1e4b;
}

/* ── Table ─────────────────────────────────── */
.table-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    flex-wrap: wrap;
    gap: 10px;
}

.section-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.toolbar-actions {
    display: flex;
    gap: 10px;
}

.pharmacy-meta {
    display: flex;
    align-items: center;
    gap: 0;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 0 20px 0 0;
}

.meta-item:first-child {
    padding-left: 0;
}

.meta-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #a8bdd8;
}

.meta-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.meta-divider {
    width: 1px;
    height: 32px;
    background: rgba(255, 255, 255, 0.12);
    margin: 0 20px 0 0;
    flex-shrink: 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all var(--transition);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.07);
    border-color: var(--border);
    color: var(--text-muted);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.12);
    color: var(--text);
}

.btn-primary {
    background: var(--accent);
    color: #fff;
}

.btn-primary:hover {
    background: var(--accent-glow);
}

/* Per-pharmacy PDF row: matches dashboard-new <section class="table-toolbar"> — no filled card, border, or radius; layout from global .table-toolbar + .pharmacy-meta */
.aprx-pharmacy-record-block > .aprx_main_body_record_report {
    width: 100%;
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

.aprx-pharmacy-record-block .aprx-pdf-form {
    margin: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.aprx-pharmacy-record-block .aprx_main_body_record_report .table-toolbar .toolbar-actions {
    align-items: center;
}

.btn.btn-primary:disabled,
.btn.btn-primary.button-disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.btn.btn-primary:not(:disabled).button-abled {
    opacity: 1;
    cursor: pointer;
}

/* PDF export choice dialog */
.aprx-pdf-export-dialog {
    position: fixed;
    inset: 0;
    width: min(420px, calc(100vw - 32px));
    max-width: min(420px, calc(100vw - 32px));
    height: fit-content;
    max-height: min(90vh, calc(100vh - 32px));
    margin: auto;
    border: none;
    border-radius: var(--radius);
    padding: 0;
    box-shadow: 0 24px 48px rgba(14, 30, 75, 0.2);
    background: #fff;
    color: #1a2b5c;
    overflow: auto;
}

.aprx-pdf-export-dialog::backdrop {
    background: rgba(14, 30, 75, 0.4);
}

.aprx-pdf-export-dialog-inner {
    padding: 22px 24px 20px;
}

.aprx-pdf-popover-title {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 700;
    color: #0e1e4b;
}

.aprx-pdf-popover-hint {
    margin: 0 0 18px;
    font-size: 13px;
    color: #6b7a9e;
    line-height: 1.45;
}

.aprx-pdf-popover-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.aprx-pdf-popover-actions .aprx-pdf-popover-choice {
    width: 100%;
    justify-content: center;
    text-align: center;
    white-space: normal;
    line-height: 1.35;
    min-height: 44px;
}

.aprx-pdf-export-dialog .btn.btn-ghost {
    background: #f0f2f7;
    border-color: #cdd2e3;
    color: #1a2b5c;
}

.aprx-pdf-export-dialog .btn.btn-ghost:hover {
    background: #e4e8f4;
    color: #0e1e4b;
}

.aprx-pdf-popover-cancel {
    width: 100%;
    margin-top: 14px;
    justify-content: center;
}

.table-wrap {
    border-radius: var(--radius);
    border: 1px solid #d8dce8;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    background: #fff;
    width: 100%;
    max-width: 100%;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    table-layout: fixed;
    min-width: 100%;
}

thead tr {
    background: #f0f2f7;
}

th {
    padding: 12px 10px;
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: #6b7a9e;
    border-bottom: 1px solid #d8dce8;
    white-space: normal;
    word-break: break-word;
}

td {
    padding: 13px 10px;
    border-bottom: 1px solid #ebeef6;
    color: #4a5878;
    white-space: normal;
    word-break: break-word;
    text-align: center;
}

tr:last-child td {
    border-bottom: none;
}

tbody tr {
    background: #fff;
    transition: background var(--transition);
}

tbody tr:hover {
    background: #f7f8fc;
}

.year-end-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    table-layout: fixed;
}

.year-end-table thead th {
    padding: 12px 10px;
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: #6b7a9e;
    border-bottom: 1px solid #d8dce8;
    white-space: normal;
    word-break: break-word;
    background: #f0f2f7;
}

.year-end-table tbody tr {
    background: #fff;
    transition: background var(--transition);
}

.year-end-table tbody tr:hover {
    background: #f7f8fc;
}

.year-end-table td {
    padding: 13px 10px;
    border-bottom: 1px solid #ebeef6;
    color: #4a5878;
    text-align: center;
}

.section-header-row td {
    background: #e4e8f4;
    padding: 9px 16px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--accent);
    border-top: 2px solid #d8dce8;
    border-bottom: 1px solid #d8dce8;
    text-align: left;
}

.section-header-row:hover td {
    background: #e4e8f4 !important;
}

.empty-row td {
    text-align: center;
    padding: 52px;
    color: #9aa5c4;
    font-size: 14px;
}

.empty-icon {
    display: block;
    margin: 0 auto 12px;
    opacity: .35;
    color: #9aa5c4;
}

/* ══════════════════════════════════════════════
    RESPONSIVE
══════════════════════════════════════════════ */
@media (max-width: 960px) {
    .filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {

    .header-navbar {
    display: none;
    }

    .hamburger {
    display: flex;
    }

    .main {
    padding: calc(70px + 20px) 16px 32px;
    }

    .filter-grid {
    grid-template-columns: 1fr;
    }

    .filter-card-actions {
        justify-content: stretch;
    }

    .filter-card-actions .filter-pharmacy-search-btn {
        width: 100%;
        max-width: none;
    }

    .summary-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    }

    .summary-divider {
    width: 100%;
    height: 1px;
    }

    .stat-row {
    gap: 16px;
    }

    .table-toolbar {
    flex-direction: column;
    align-items: flex-start;
    }

    .aprx-pharmacy-record-block .aprx_main_body_record_report .table-toolbar .toolbar-actions.aprx-pdf-toolbar-actions {
        width: 100%;
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {
    .page-title {
    font-size: 22px;
    }

    .aprx-user-dashboard-page .page-title {
        font-size: 24px;
    }

    .toggle-group {
    flex-wrap: wrap;
    }

    .toolbar-actions {
    flex-wrap: wrap;
    }
}

.screen-reader-text,
.aprx-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Allow nested horizontal scroll regions to shrink within padded / flex layouts */
.aprx_main_body_record,
.aprx_main_body_record_table,
.aprx-pharmacy-tables-root,
.aprx-pharmacy-record-block {
    min-width: 0;
    max-width: 100%;
}

/* Per-pharmacy blocks: stack like dashboard-new (section.table-toolbar + section.table-wrap), no outer dark card */
.aprx-pharmacy-tables-root {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.aprx-pharmacy-empty-msg {
    margin: 0;
    padding: 12px 4px;
    font-size: 14px;
    color: var(--text-muted);
}

.aprx-pharmacy-record-block {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}

/* Pharmacy rebate tables (#sub_account): match dashboard-new .table-wrap + detail table styling */
.aprx_main_body_record_table .aprx-pharmacy-record-block .table-wrap.aprx-pharmacy-rebate-table-wrap {
    border-radius: var(--radius);
    border: 1px solid #d8dce8;
    overflow-x: auto;
    overflow-y: auto;
    max-height: min(60vh, 560px);
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    overscroll-behavior-y: auto;
    background: #fff;
    width: 100%;
    max-width: 100%;
}

.aprx_main_body_record_table .table-wrap.aprx-pharmacy-rebate-table-wrap table.sub_records {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 13px;
    table-layout: auto;
    min-width: max-content;
}

.aprx_main_body_record_table .table-wrap.aprx-pharmacy-rebate-table-wrap table.sub_records thead th,
.aprx_main_body_record_table .table-wrap.aprx-pharmacy-rebate-table-wrap table.sub_records tbody tr.aprx-year-end-subthead th {
    padding: 12px 10px;
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #6b7a9e;
    border-bottom: 1px solid #d8dce8;
    white-space: normal;
    word-break: break-word;
    background: #f0f2f7;
    vertical-align: middle;
}

.aprx_main_body_record_table .table-wrap.aprx-pharmacy-rebate-table-wrap table.sub_records thead tr {
    background: #f0f2f7;
}

.aprx_main_body_record_table .table-wrap.aprx-pharmacy-rebate-table-wrap table.sub_records thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    box-shadow: 0 1px 0 #d8dce8;
}

.aprx_main_body_record_table .table-wrap.aprx-pharmacy-rebate-table-wrap table.sub_records tbody tr.aprx-year-end-subthead {
    background: #f0f2f7;
}

.aprx_main_body_record_table .table-wrap.aprx-pharmacy-rebate-table-wrap table.sub_records tbody tr.aprx-year-end-subthead:hover {
    background: #f0f2f7;
}

.aprx_main_body_record_table .table-wrap.aprx-pharmacy-rebate-table-wrap table.sub_records tbody tr.aprx-year-end-subthead:hover th {
    background: #f0f2f7;
}

.aprx_main_body_record_table .table-wrap.aprx-pharmacy-rebate-table-wrap table.sub_records tbody td {
    padding: 13px 10px;
    border-bottom: 1px solid #ebeef6;
    color: #4a5878;
    white-space: normal;
    word-break: break-word;
    text-align: center;
    vertical-align: middle;
}

.aprx_main_body_record_table .table-wrap.aprx-pharmacy-rebate-table-wrap table.sub_records tbody tr {
    background: #fff;
    transition: background var(--transition);
}

.aprx_main_body_record_table .table-wrap.aprx-pharmacy-rebate-table-wrap table.sub_records tbody tr:hover {
    background: #f7f8fc;
}

.aprx_main_body_record_table .table-wrap.aprx-pharmacy-rebate-table-wrap table.sub_records tbody tr.section-header-row td {
    text-align: left;
    background: #e4e8f4;
    padding: 9px 16px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    border-top: 2px solid #d8dce8;
    border-bottom: 1px solid #d8dce8;
}

.aprx_main_body_record_table .table-wrap.aprx-pharmacy-rebate-table-wrap table.sub_records tbody tr.section-header-row:hover td {
    background: #e4e8f4 !important;
}

.aprx_main_body_record_table .table-wrap.aprx-pharmacy-rebate-table-wrap table.sub_records tbody tr.aprx-year-end-row {
    background: #fff;
}

.aprx_main_body_record_table .table-wrap.aprx-pharmacy-rebate-table-wrap table.sub_records tbody tr.aprx-year-end-row:hover {
    background: #f7f8fc;
}

/* Rebate row / header select column (th + td from aprxRebateTableTheadHtml / CreateFirstRows / CreateOtherRows) */
.aprx_main_body_record_table .table-wrap.aprx-pharmacy-rebate-table-wrap table.sub_records th.aprx-rebate-select-col,
.aprx_main_body_record_table .table-wrap.aprx-pharmacy-rebate-table-wrap table.sub_records td.aprx-rebate-select-col {
    width: 56px;
    min-width: 56px;
    text-align: center;
    vertical-align: middle;
    box-sizing: border-box;
    position: sticky;
    z-index: 1;
}

.aprx_main_body_record_table .table-wrap.aprx-pharmacy-rebate-table-wrap table.sub_records td.aprx-rebate-select-col {
    background: #fff;
    box-shadow: 1px 0 0 #ebeef6;
}

.aprx_main_body_record_table .table-wrap.aprx-pharmacy-rebate-table-wrap table.sub_records tbody tr:hover td.aprx-rebate-select-col {
    background: #f7f8fc;
}

.aprx_main_body_record_table .table-wrap.aprx-pharmacy-rebate-table-wrap table.sub_records thead th.aprx-rebate-select-col {
    z-index: 3;
    box-shadow: 1px 1px 0 #d8dce8;
}

@media (min-width: 769px) {
    .aprx_main_body_record_table .table-wrap.aprx-pharmacy-rebate-table-wrap table.sub_records th.aprx-rebate-select-col,
    .aprx_main_body_record_table .table-wrap.aprx-pharmacy-rebate-table-wrap table.sub_records td.aprx-rebate-select-col {
        right: 0;
        left: auto;
    }

    .aprx_main_body_record_table .table-wrap.aprx-pharmacy-rebate-table-wrap table.sub_records td.aprx-rebate-select-col {
        box-shadow: -1px 0 0 #ebeef6;
    }

    .aprx_main_body_record_table .table-wrap.aprx-pharmacy-rebate-table-wrap table.sub_records thead th.aprx-rebate-select-col {
        box-shadow: -1px 1px 0 #d8dce8;
    }
}

@media (max-width: 768px) {
    .aprx_main_body_record_table .table-wrap.aprx-pharmacy-rebate-table-wrap table.sub_records th.aprx-rebate-select-col,
    .aprx_main_body_record_table .table-wrap.aprx-pharmacy-rebate-table-wrap table.sub_records td.aprx-rebate-select-col {
        left: 0;
        right: auto;
    }

    .aprx_main_body_record_table .table-wrap.aprx-pharmacy-rebate-table-wrap table.sub_records td.aprx-rebate-select-col {
        box-shadow: 1px 0 0 #ebeef6;
    }
}

.aprx_main_body_record_table .table-wrap.aprx-pharmacy-rebate-table-wrap table.sub_records .aprx-rebate-select-col input[type="checkbox"] {
    width: 22px;
    height: 22px;
    margin: 0;
    cursor: pointer;
    accent-color: var(--accent);
    vertical-align: middle;
}

/* ── Member Documents (member_documents.php): dashboard v2 page-header + white table-wrap card */
.aprx-member-documents-page .page-title {
    font-size: 30px;
}

.aprx-member-documents-intro {
    font-size: 16px;
    line-height: 1.45;
    color: #fff;
    font-weight: 400;
}

@media (max-width: 600px) {
    .aprx-member-documents-page .page-title {
        font-size: 24px;
    }

    .aprx-member-documents-intro {
        font-size: 15px;
    }
}

.aprx-member-documents-shell {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.aprx-member-documents-wrap {
    width: 100%;
    max-width: 100%;
}

.aprx-member-documents-toolbar {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 18px;
}

.aprx-member-documents-search-label {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.aprx-member-documents-search-caption {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.78);
}

.aprx-member-documents-search-field {
    position: relative;
    display: block;
}

.aprx-member-documents-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #9aa5c4;
    line-height: 0;
    pointer-events: none;
}

.aprx-member-documents-search {
    padding-left: 42px;
}

.aprx-member-documents-search-meta {
    margin: 0;
    min-height: 1.2em;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.92);
}

.aprx-member-documents-title-query {
    font-weight: 500;
    opacity: 0.92;
}

.aprx-member-documents-title-query em {
    font-style: normal;
    font-weight: 700;
    color: #fff;
}

.aprx-member-documents-empty {
    margin: 0 0 16px;
    padding: 18px 16px;
    border: 1px dashed #d8dce8;
    border-radius: var(--radius-sm);
    background: #f7f8fc;
    color: #4a5878;
    font-size: 15px;
    text-align: center;
}

.aprx-member-documents-accordion {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.aprx-member-documents-panel {
    border: 1px solid #d8dce8;
    border-radius: var(--radius-sm);
    background: #fff;
    overflow: hidden;
}

.aprx-member-documents-panel.is-hidden-by-search {
    display: none;
}

.aprx-member-documents-panel-heading {
    margin: 0;
}

.aprx-member-documents-accordion-trigger {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    margin: 0;
    padding: 14px 16px;
    border: 0;
    background: #e4e8f4;
    color: var(--accent);
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: background var(--transition);
}

.aprx-member-documents-accordion-trigger:hover {
    background: #dce2f2;
}

.aprx-member-documents-accordion-trigger:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: -2px;
}

.aprx-member-documents-panel-title {
    flex: 1;
    min-width: 0;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.aprx-member-documents-panel-count {
    flex-shrink: 0;
    min-width: 1.75em;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(61, 142, 245, 0.14);
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0;
    text-align: center;
    text-transform: none;
}

.aprx-member-documents-chevron {
    flex-shrink: 0;
    color: var(--accent);
    transition: transform var(--transition);
}

.aprx-member-documents-panel.is-open .aprx-member-documents-chevron {
    transform: rotate(180deg);
}

.aprx-member-documents-panel-body {
    border-top: 1px solid #d8dce8;
}

.aprx-member-documents-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
    table-layout: auto;
}

.aprx-member-documents-table thead tr {
    background: #f0f2f7;
}

.aprx-member-documents-table thead th {
    padding: 14px 12px;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #6b7a9e;
    border-bottom: 1px solid #d8dce8;
    background: #f0f2f7;
    vertical-align: middle;
}

.aprx-member-documents-table thead th.aprx-member-documents-col-name {
    text-align: left;
    width: 62%;
}

.aprx-member-documents-table tbody td {
    padding: 15px 12px;
    border-bottom: 1px solid #ebeef6;
    color: #4a5878;
    text-align: left;
    vertical-align: middle;
}

.aprx-member-documents-table thead th.aprx-member-documents-col-download {
    text-align: right;
    width: 1%;
    white-space: nowrap;
}

.aprx-member-documents-doc-cell {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.aprx-member-documents-doc-icon {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--accent);
    line-height: 0;
}

.aprx-member-documents-doc-icon svg {
    display: block;
}

.aprx-member-documents-doc-text {
    flex: 1;
    min-width: 0;
}

.aprx-member-documents-table tbody td.aprx-member-documents-actions {
    text-align: right;
    vertical-align: middle;
}

.aprx-member-documents-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    min-height: 44px;
    box-sizing: border-box;
    border-radius: var(--radius-sm);
    color: var(--accent);
    background: rgba(61, 142, 245, 0.1);
    border: 1px solid rgba(61, 142, 245, 0.25);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    word-break: normal;
    transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
}

.aprx-member-documents-download-label {
    line-height: 1.2;
    white-space: nowrap;
    word-break: normal;
}

.aprx-member-documents-download:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.aprx-member-documents-download:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

button.aprx-member-documents-download {
    cursor: pointer;
    font: inherit;
    text-align: center;
    appearance: none;
    -webkit-appearance: none;
}

.aprx-member-documents-download-icon {
    display: block;
    flex-shrink: 0;
}

.aprx-member-documents-table tbody tr {
    background: #fff;
    transition: background var(--transition);
}

.aprx-member-documents-table tbody tr.is-hidden-by-search {
    display: none;
}

.aprx-member-documents-table tbody tr:hover {
    background: #f7f8fc;
}

.aprx-member-documents-doc-name {
    font-size: 16px;
    font-weight: 600;
    color: #1a2b5c;
    word-break: break-word;
}

.aprx-member-documents-mark {
    background: rgba(61, 142, 245, 0.35);
    color: #0e1e4b;
    padding: 0 1px;
    border-radius: 2px;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

.aprx-member-documents-table tbody tr:last-child td {
    border-bottom: none;
}

@media (max-width: 600px) {
    .aprx-member-documents-accordion-trigger {
        padding: 12px 14px;
        gap: 10px;
    }

    .aprx-member-documents-panel-title {
        font-size: 11px;
        letter-spacing: 0.06em;
    }
}

/* ── User Management (user_management.php) ───────────────── */
.aprx-user-mgmt-header-inner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.aprx-user-mgmt-header-text {
    flex: 1;
    min-width: 0;
}

.aprx-user-mgmt-add-btn {
    flex-shrink: 0;
    align-self: center;
}

.aprx-user-mgmt-list-section {
    margin-bottom: 28px;
}

.aprx-user-mgmt-table-wrap {
    margin-bottom: 0;
}

.aprx-user-mgmt-table thead th {
    text-align: left;
}

.aprx-user-mgmt-table thead th:nth-child(4) {
    text-align: center;
}

.aprx-user-mgmt-table th.aprx_sortable {
    cursor: pointer;
    user-select: none;
}

.aprx-user-mgmt-table .aprx_sort_indicator {
    display: inline-block;
    margin-left: 6px;
    font-size: 9px;
    color: #9aa5c4;
}

.aprx-user-mgmt-table .aprx_sort_indicator.asc::after {
    content: "▲";
}

.aprx-user-mgmt-table .aprx_sort_indicator.desc::after {
    content: "▼";
}

.aprx-user-mgmt-table tbody tr.aprx-user-mgmt-account-row td {
    padding: 12px 14px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    text-align: left;
    color: var(--accent);
    background: #eceef6;
    border-bottom: 1px solid #d8dce8;
}

.aprx-user-mgmt-table tbody tr.aprx-user-mgmt-data-row td {
    text-align: left;
    font-size: 14px;
    color: #1a2b5c;
}

.aprx-user-mgmt-table tbody tr.aprx-user-mgmt-data-row td:last-child,
.aprx-user-mgmt-table tbody tr.aprx-user-mgmt-data-row td:nth-last-child(2) {
    white-space: nowrap;
}

.aprx-user-mgmt-table tbody tr.aprx-user-mgmt-data-row td.aprx-user-mgmt-actions-cell {
    text-align: right;
    vertical-align: middle;
}

.aprx-user-mgmt-table .aprx-member-documents-download.aprx-user-mgmt-action--danger {
    color: #c62828;
    background: rgba(198, 40, 40, 0.08);
    border-color: rgba(198, 40, 40, 0.35);
}

.aprx-user-mgmt-table .aprx-member-documents-download.aprx-user-mgmt-action--danger:hover {
    background: #c62828;
    border-color: #c62828;
    color: #fff;
}

.aprx-user-mgmt-table .aprx-member-documents-download.aprx-user-mgmt-action--danger:focus-visible {
    outline-color: #c62828;
}

.aprx-user-mgmt-pagination {
    margin-top: 16px;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.aprx-user-mgmt-pagination .aprx-user-mgmt-entries-info {
    font-size: 13px;
    color: var(--text-muted);
}

.aprx-user-mgmt-pagination ul {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.aprx-user-mgmt-pagination ul li {
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    cursor: pointer;
    border: 1px solid transparent;
}

.aprx-user-mgmt-pagination ul li:hover:not(.disabled):not(.active) {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--border);
}

.aprx-user-mgmt-pagination ul li.disabled {
    opacity: 0.35;
    cursor: default;
}

.aprx-user-mgmt-pagination ul li.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

/* User management: native dialogs (same language as PDF export dialog) */
.aprx-user-mgmt-dialog {
    position: fixed;
    inset: 0;
    width: min(400px, calc(100vw - 32px));
    max-width: min(400px, calc(100vw - 32px));
    height: fit-content;
    max-height: min(90vh, calc(100vh - 32px));
    margin: auto;
    border: none;
    border-radius: var(--radius);
    padding: 0;
    box-shadow: 0 24px 48px rgba(14, 30, 75, 0.2);
    background: #fff;
    color: #1a2b5c;
    overflow: auto;
}

.aprx-user-mgmt-form-dialog {
    width: min(480px, calc(100vw - 24px));
    max-width: min(520px, calc(100vw - 24px));
}

.aprx-user-mgmt-dialog::backdrop {
    background: rgba(14, 30, 75, 0.45);
}

.aprx-user-mgmt-dialog-inner {
    padding: 22px 24px 20px;
}

.aprx-user-mgmt-form-inner {
    padding-bottom: 22px;
}

.aprx-user-mgmt-dialog-title {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 700;
    color: #0e1e4b;
}

.aprx-user-mgmt-dialog-text {
    margin: 0 0 16px;
    font-size: 14px;
    line-height: 1.5;
    color: #6b7a9e;
    font-weight: 500;
}

.aprx-user-mgmt-form-hint {
    margin: 0 0 18px;
    font-size: 13px;
    color: #6b7a9e;
    line-height: 1.45;
}

.aprx-user-mgmt-form-fields {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.aprx-user-mgmt-field {
    margin-bottom: 14px;
}

.aprx-user-mgmt-field .field-input.aprx_dropdown_checkbox_button {
    cursor: pointer;
    text-align: left;
    background-image: url("data:image/svg+xml,%3Csvg%20width=%2720%27%20height=%2720%27%20viewBox=%270%200%2020%2020%27%20fill=%27none%27%20xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cpath%20d=%27M6.175%206.9126L10%2010.7293L13.825%206.9126L15%208.0876L10%2013.0876L5%208.0876L6.175%206.9126Z%27%20fill=%27%23757575%27/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.aprx-user-mgmt-dialog .aprx_dropdown_checkbox {
    position: relative;
    display: flex;
    width: 100%;
}

.aprx-user-mgmt-dialog .aprx_dropdown_checkbox_content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 4px;
    background: #fff;
    width: 100%;
    max-height: 220px;
    overflow-y: auto;
    box-shadow: 0 8px 24px rgba(14, 30, 75, 0.12);
    z-index: 5;
    border-radius: var(--radius-sm);
    border: 1px solid #d8dce8;
    box-sizing: border-box;
}

.aprx-user-mgmt-dialog .aprx_dropdown_checkbox_content .checkbox-wrapper {
    padding: 10px 14px;
    cursor: pointer;
    border-bottom: 1px solid #eef0f6;
    display: flex;
    align-items: center;
    gap: 0;
    min-height: 44px;
}

.aprx-user-mgmt-dialog .aprx_dropdown_checkbox_content .checkbox-wrapper:last-child {
    border-bottom: none;
}

.aprx-user-mgmt-dialog .aprx_dropdown_checkbox_content input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.aprx-user-mgmt-dialog .aprx_dropdown_checkbox_content .custom-checkbox {
    position: relative;
    height: 18px;
    width: 18px;
    border: 1.5px solid #757575;
    display: inline-block;
    vertical-align: middle;
    margin-right: 10px;
    border-radius: 2px;
    background-color: #fff;
}

.aprx-user-mgmt-dialog .aprx_dropdown_checkbox_content .custom-checkbox.disabled {
    background-color: #f0f0f0;
    border-color: #ccc;
}

.aprx-user-mgmt-dialog .aprx_dropdown_checkbox_content input[type="checkbox"]:checked + .custom-checkbox {
    background-color: #34a853;
    border-color: #34a853;
}

.aprx-user-mgmt-dialog .aprx_dropdown_checkbox_content input[type="checkbox"]:checked + .custom-checkbox::after {
    content: '\2713';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 14px;
    line-height: 1;
}

.aprx-user-mgmt-dialog .aprx_dropdown_checkbox_content .checkbox-wrapper label {
    font-weight: 500;
    color: #1a2b5c;
    cursor: pointer;
    flex: 1;
    min-width: 0;
}

.aprx-user-mgmt-field-note {
    display: block;
    font-size: 11px;
    color: #6b7a9e;
    margin-top: -2px;
    margin-bottom: 6px;
    font-weight: 500;
}

.aprx-user-mgmt-dialog-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 8px;
}

.aprx-user-mgmt-dialog-actions-split {
    justify-content: flex-start;
    align-items: center;
}

.aprx-user-mgmt-dialog-actions-split .aprx_loading {
    margin-left: auto;
}

.aprx-user-mgmt-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-top: 18px;
    padding-top: 8px;
}

.aprx-user-mgmt-dialog .btn.btn-ghost {
    background: #f0f2f7;
    border-color: #cdd2e3;
    color: #1a2b5c;
}

.aprx-user-mgmt-dialog .btn.btn-ghost:hover {
    background: #e4e8f4;
    color: #0e1e4b;
}

.aprx-user-mgmt-inline-error {
    font-size: 13px;
    font-weight: 600;
    color: #c62828;
    margin-top: 8px;
}

.aprx-user-mgmt-dialog .aprx_error {
    color: #c62828 !important;
    font-size: 13px;
    margin-top: 6px;
}

.aprx-user-dashboard-page .aprx-user-mgmt-table thead th {
    font-size: 10px;
}

.aprx-user-dashboard-page .aprx-user-mgmt-table tbody td {
    font-size: 15px;
}

/* ══════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════ */
.site-footer {
    background: #0e1e4b;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 40px 36px 32px;
    margin-top: 48px;
}

.footer-inner {
    max-width: 1360px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
}

.footer-logo {
    height: 52px;
    width: auto;
    object-fit: contain;
    opacity: 0.92;
}

.footer-social {
    display: flex;
    gap: 14px;
    align-items: center;
}

.social-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: color var(--transition), border-color var(--transition), background var(--transition);
}

.social-icon:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.06);
}

.footer-address {
    font-size: 12px;
    color: #fff;
    letter-spacing: 0.03em;
    line-height: 1.6;
}

@media (max-width: 480px) {
    .footer-address {
    font-size: 11px;
    }
}
