/* =====================================================================
   Daily Taka — admin panel design system
   Added 2026-08-22 (Phase 4).

   NO BUILD STEP. No npm, no CDN, no @import, no webfont.

   Why it is written this way rather than as Tailwind:
     * the deployment target is Laravel 8 shared hosting, where `@vite` does
       not exist and running a Node build on the server is not practical;
     * the panel has to keep working if nobody ever runs `npm install`;
     * a compiled utility framework cannot be verified without compiling it,
       and this file's author cannot run a browser.
   Everything below is plain CSS that a browser applies directly, so what you
   read is exactly what ships.

   Layout is CSS grid + flexbox. Colour is CSS custom properties, so the dark
   theme is one block of variable overrides rather than a second stylesheet.
   ===================================================================== */

/* ---------------------------------------------------------------------
   1. Tokens
   --------------------------------------------------------------------- */

:root {
    /* Brand — the app's teal, so the panel and the phone look related. */
    --brand:            #0FA3A3;
    --brand-strong:     #0B7F7F;
    --brand-soft:       #E6F6F6;

    --bg:               #F4F6F8;
    --surface:          #FFFFFF;
    --surface-2:        #FAFBFC;
    --border:           #E2E6EA;
    --border-strong:    #CBD2D9;

    --text:             #1A2229;
    --text-muted:       #5B6771;
    --text-faint:       #8A959E;

    --ok:               #16A34A;
    --ok-soft:          #DCFCE7;
    --warn:             #D97706;
    --warn-soft:        #FEF3C7;
    --danger:           #DC2626;
    --danger-soft:      #FEE2E2;
    --info:             #2563EB;
    --info-soft:        #DBEAFE;

    --radius:           10px;
    --radius-sm:        6px;
    --shadow:           0 1px 2px rgba(16, 24, 32, .06), 0 4px 12px rgba(16, 24, 32, .05);
    --shadow-lg:        0 8px 32px rgba(16, 24, 32, .16);

    --sidebar-w:        248px;

    /* No webfont: a CDN is not available and a self-hosted font file would be
       another asset to deploy. This stack resolves to the platform UI font,
       and the Bengali entries matter because the panel carries Bangla labels —
       without them Windows falls back to a font with no Bengali conjuncts. */
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
            "Noto Sans Bengali", "Nirmala UI", "Vrinda", "Kalpurush",
            "Helvetica Neue", Arial, sans-serif;
    --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

/* Dark theme.

   Two selectors, on purpose:
     [data-theme="dark"]  — the user pressed the toggle
     prefers-color-scheme — the OS is dark and the user has not chosen
   The :not([data-theme="light"]) guard is what lets the toggle win in BOTH
   directions; without it, choosing "light" on a dark OS would have no effect. */
[data-theme="dark"],
:root:not([data-theme="light"]) {
    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg:            #10161B;
        --surface:       #171F26;
        --surface-2:     #1D262E;
        --border:        #2A353E;
        --border-strong: #3A4752;

        --text:          #E8EDF2;
        --text-muted:    #A0ADB8;
        --text-faint:    #6D7A85;

        --brand-soft:    #0C2F2F;
        --ok-soft:       #0E2A18;
        --warn-soft:     #2E2109;
        --danger-soft:   #2E1315;
        --info-soft:     #101F3D;

        --shadow:        0 1px 2px rgba(0, 0, 0, .4), 0 4px 12px rgba(0, 0, 0, .3);
        --shadow-lg:     0 8px 32px rgba(0, 0, 0, .5);

        color-scheme: dark;
    }
}

[data-theme="dark"] {
    --bg:            #10161B;
    --surface:       #171F26;
    --surface-2:     #1D262E;
    --border:        #2A353E;
    --border-strong: #3A4752;

    --text:          #E8EDF2;
    --text-muted:    #A0ADB8;
    --text-faint:    #6D7A85;

    --brand-soft:    #0C2F2F;
    --ok-soft:       #0E2A18;
    --warn-soft:     #2E2109;
    --danger-soft:   #2E1315;
    --info-soft:     #101F3D;

    --shadow:        0 1px 2px rgba(0, 0, 0, .4), 0 4px 12px rgba(0, 0, 0, .3);
    --shadow-lg:     0 8px 32px rgba(0, 0, 0, .5);

    color-scheme: dark;
}

/* ---------------------------------------------------------------------
   2. Reset
   --------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html, body { height: 100%; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 14px;
    line-height: 1.55;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { margin: 0; font-weight: 650; line-height: 1.3; }
h1 { font-size: 20px; }
h2 { font-size: 17px; }
h3 { font-size: 15px; }

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

code, pre { font-family: var(--mono); font-size: .92em; }

/* Visible focus for keyboard users only — the old panel had none at all, so
   the whole thing was unusable without a mouse. */
:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
    border-radius: 4px;
}

/* ---------------------------------------------------------------------
   3. Shell
   --------------------------------------------------------------------- */

.shell {
    display: grid;
    grid-template-columns: var(--sidebar-w) 1fr;
    min-height: 100vh;
}

/* --- sidebar --- */

.sidebar {
    background: var(--surface);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.sidebar__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px 18px 14px;
    font-weight: 700;
    font-size: 15px;
    color: var(--text);
    letter-spacing: -.01em;
}
.sidebar__brand:hover { text-decoration: none; }

.sidebar__mark {
    width: 30px; height: 30px;
    flex: 0 0 30px;
    border-radius: 8px;
    background: var(--brand);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 14px;
    font-weight: 700;
}

.sidebar__group {
    padding: 12px 12px 4px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--text-faint);
}

.sidebar__nav { padding: 0 10px 16px; }

.navlink {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    margin-bottom: 2px;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-weight: 500;
}
.navlink:hover {
    background: var(--surface-2);
    color: var(--text);
    text-decoration: none;
}
.navlink.is-active {
    background: var(--brand-soft);
    color: var(--brand-strong);
    font-weight: 600;
}
[data-theme="dark"] .navlink.is-active { color: var(--brand); }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .navlink.is-active { color: var(--brand); }
}

/* Icons are inline SVG in the markup, so there is no icon-font download. */
.navlink svg { width: 17px; height: 17px; flex: 0 0 17px; }

.navlink__count {
    margin-left: auto;
    font-size: 11px;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: 999px;
    background: var(--warn-soft);
    color: var(--warn);
}

/* --- main --- */

.main { min-width: 0; display: flex; flex-direction: column; }

.topbar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 20;
}

.topbar__title { flex: 1; min-width: 0; }
.topbar__title h1 { font-size: 17px; }
.topbar__title p { margin: 1px 0 0; font-size: 12px; color: var(--text-muted); }

.content { padding: 20px; flex: 1; }

.page-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* --- mobile --- */

.sidebar__toggle { display: none; }

/* The scrim is a direct child of .shell, so on desktop it would take a grid
   cell of its own - pushing the sidebar into column 2 and .main onto a second
   row. It only exists for the mobile off-canvas sidebar, so it is removed from
   layout entirely until that breakpoint. */
.scrim { display: none; }

@media (max-width: 900px) {
    .shell { grid-template-columns: 1fr; }

    .sidebar {
        position: fixed;
        z-index: 60;
        width: var(--sidebar-w);
        transform: translateX(-100%);
        transition: transform .18s ease;
        box-shadow: var(--shadow-lg);
    }
    .shell.is-open .sidebar { transform: translateX(0); }

    .sidebar__toggle { display: inline-flex; }

    .scrim {
        display: block;
        position: fixed; inset: 0;
        background: rgba(0, 0, 0, .45);
        z-index: 50;
        opacity: 0; pointer-events: none;
        transition: opacity .18s ease;
    }
    .shell.is-open .scrim { opacity: 1; pointer-events: auto; }

    .content { padding: 14px; }
}

/* ---------------------------------------------------------------------
   4. Cards and stats
   --------------------------------------------------------------------- */

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.card__head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
}
.card__head h2 { flex: 1; min-width: 0; }
.card__body { padding: 16px; }
.card__foot {
    padding: 12px 16px;
    border-top: 1px solid var(--border);
    background: var(--surface-2);
    border-radius: 0 0 var(--radius) var(--radius);
}

.grid { display: grid; gap: 14px; }
.grid--stats  { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.grid--halves { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

.stat {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 16px;
    box-shadow: var(--shadow);
}
.stat__label {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 7px;
}
.stat__value {
    font-size: 25px;
    font-weight: 700;
    letter-spacing: -.02em;
    margin-top: 4px;
    /* Tabular figures so a column of numbers lines up and does not jitter as
       values change. */
    font-variant-numeric: tabular-nums;
}
.stat__sub { font-size: 12px; color: var(--text-faint); margin-top: 2px; }

.stat__dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--brand);
    flex: 0 0 8px;
}
.stat__dot--ok     { background: var(--ok); }
.stat__dot--warn   { background: var(--warn); }
.stat__dot--danger { background: var(--danger); }
.stat__dot--info   { background: var(--info); }

/* ---------------------------------------------------------------------
   5. Tables
   --------------------------------------------------------------------- */

/* The wrapper, not the table, scrolls. Without this the whole page scrolls
   sideways on a phone and the sidebar drifts off screen. */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
    min-width: 620px;
}

.table th, .table td {
    padding: 10px 14px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
    white-space: nowrap;
}

.table th {
    font-size: 11.5px;
    font-weight: 650;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--text-muted);
    background: var(--surface-2);
    position: sticky;
    top: 0;
    z-index: 1;
}

.table tbody tr:hover { background: var(--surface-2); }
.table tbody tr:last-child td { border-bottom: 0; }

.table td.num { text-align: right; font-variant-numeric: tabular-nums; }
.table td.wrap { white-space: normal; min-width: 220px; }

.table__empty {
    padding: 44px 16px;
    text-align: center;
    color: var(--text-muted);
}
.table__empty strong { display: block; color: var(--text); margin-bottom: 4px; }

/* ---------------------------------------------------------------------
   6. Badges, buttons, forms
   --------------------------------------------------------------------- */

.badge {
    display: inline-block;
    padding: 2px 9px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 650;
    line-height: 1.6;
    background: var(--surface-2);
    color: var(--text-muted);
    border: 1px solid var(--border);
}
.badge--ok     { background: var(--ok-soft);     color: var(--ok);     border-color: transparent; }
.badge--warn   { background: var(--warn-soft);   color: var(--warn);   border-color: transparent; }
.badge--danger { background: var(--danger-soft); color: var(--danger); border-color: transparent; }
.badge--info   { background: var(--info-soft);   color: var(--info);   border-color: transparent; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 7px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-strong);
    background: var(--surface);
    color: var(--text);
    font: inherit;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: background .12s ease, border-color .12s ease, opacity .12s ease;
    white-space: nowrap;
}
.btn:hover { background: var(--surface-2); text-decoration: none; }
.btn:disabled, .btn.is-busy { opacity: .55; cursor: not-allowed; }

.btn--primary {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}
.btn--primary:hover { background: var(--brand-strong); border-color: var(--brand-strong); }

.btn--danger {
    background: var(--danger);
    border-color: var(--danger);
    color: #fff;
}
.btn--danger:hover { filter: brightness(.92); background: var(--danger); }

.btn--ghost { border-color: transparent; background: transparent; }
.btn--ghost:hover { background: var(--surface-2); }

.btn--sm { padding: 4px 9px; font-size: 12px; }
.btn--icon { padding: 6px; width: 32px; height: 32px; }
.btn svg { width: 15px; height: 15px; }

.field { margin-bottom: 14px; }
.field > label {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 5px;
}
.field__hint { font-size: 11.5px; color: var(--text-faint); margin-top: 4px; }

.input, .select, .textarea {
    width: 100%;
    padding: 8px 11px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--text);
    font: inherit;
    font-size: 13.5px;
}
.input:focus, .select:focus, .textarea:focus {
    border-color: var(--brand);
    outline: none;
    box-shadow: 0 0 0 3px var(--brand-soft);
}
.textarea { min-height: 92px; resize: vertical; }

.input[aria-invalid="true"] { border-color: var(--danger); }

.field__error { font-size: 12px; color: var(--danger); margin-top: 4px; }

.form-grid {
    display: grid;
    gap: 0 16px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.toolbar {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
}
.toolbar .input, .toolbar .select { width: auto; min-width: 180px; }

.tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.tab {
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    border: 1px solid transparent;
}
.tab:hover { background: var(--surface-2); text-decoration: none; }
.tab.is-active {
    background: var(--brand-soft);
    color: var(--brand-strong);
    border-color: transparent;
}
[data-theme="dark"] .tab.is-active { color: var(--brand); }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .tab.is-active { color: var(--brand); }
}

/* ---------------------------------------------------------------------
   7. Pagination
   --------------------------------------------------------------------- */

.pager {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.pager__info { margin-right: auto; font-size: 12.5px; color: var(--text-muted); }
.pager a, .pager span {
    min-width: 32px;
    height: 32px;
    padding: 0 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--text-muted);
    background: var(--surface);
}
.pager a:hover { background: var(--surface-2); text-decoration: none; }
.pager .is-current {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
    font-weight: 650;
}
.pager .is-disabled { opacity: .45; }

/* ---------------------------------------------------------------------
   8. Modal + toast
   --------------------------------------------------------------------- */

.modal[hidden] { display: none; }
.modal {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: grid;
    place-items: center;
    padding: 16px;
    background: rgba(10, 16, 20, .5);
}

.modal__panel {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid var(--border);
}
.modal__panel--wide { max-width: 820px; }

.modal__head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
}
.modal__head h2 { flex: 1; }
.modal__body { padding: 16px; }
.modal__foot {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 12px 16px;
    border-top: 1px solid var(--border);
}

.toasts {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: min(380px, calc(100vw - 32px));
}

.toast {
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 3px solid var(--brand);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    padding: 11px 14px;
    font-size: 13.5px;
}
.toast--ok     { border-left-color: var(--ok); }
.toast--danger { border-left-color: var(--danger); }
.toast--warn   { border-left-color: var(--warn); }
.toast strong { display: block; margin-bottom: 1px; }

/* ---------------------------------------------------------------------
   9. Utilities
   --------------------------------------------------------------------- */

.muted   { color: var(--text-muted); }
.faint   { color: var(--text-faint); }
.small   { font-size: 12.5px; }
.nums    { font-variant-numeric: tabular-nums; }
.right   { text-align: right; }
.row     { display: flex; align-items: center; gap: 8px; }
.row--wrap { flex-wrap: wrap; }
.spacer  { flex: 1; }
.mt-0 { margin-top: 0; } .mt-2 { margin-top: 8px; } .mt-3 { margin-top: 14px; }
.mb-0 { margin-bottom: 0; } .mb-2 { margin-bottom: 8px; } .mb-3 { margin-bottom: 14px; }

.dot-online, .dot-offline {
    display: inline-block;
    width: 7px; height: 7px;
    border-radius: 50%;
    margin-right: 6px;
    vertical-align: middle;
}
.dot-online  { background: var(--ok); }
.dot-offline { background: var(--border-strong); }

.thumb {
    width: 44px; height: 44px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--surface-2);
}

/* Printing the user or withdrawal list is something admins actually do. */
@media print {
    .sidebar, .topbar, .toolbar, .card__foot, .btn, .toasts { display: none !important; }
    .shell { grid-template-columns: 1fr; }
    .content { padding: 0; }
    .card { border: 0; box-shadow: none; }
}

/* The settings screen prints each column's real database name beside the
   human label, because that is the name the old panel used and the one an
   admin already recognises. */
.field__col {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 11px;
    font-weight: 400;
    color: var(--muted);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 1px 5px;
    margin-left: 6px;
    white-space: nowrap;
}


/* -----------------------------------------------------------------
   Copy button
   ADDED 2026-09-11.

   Sits beside a value that has to be retyped somewhere else - a bKash
   number, an email. Deliberately quiet: it is next to the value, not
   competing with it, and only takes colour when the pointer is on it.

   Both colours come from the existing variables, so it follows the panel's
   light and dark themes without a second rule.
   ----------------------------------------------------------------- */
.copy-row {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.copy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--surface);
    color: var(--text-faint);
    cursor: pointer;
    flex: none;
    transition: color .15s ease, border-color .15s ease;
}

.copy-btn:hover,
.copy-btn:focus-visible {
    color: var(--ok);
    border-color: var(--ok);
}

/* Keyboard users must be able to see where they are. */
.copy-btn:focus-visible {
    outline: 2px solid var(--ok);
    outline-offset: 1px;
}

.copy-btn:active {
    transform: translateY(1px);
}


/* ---------------------------------------------------------------------
   13. Fixed-height cards  (ADDED 2026-10-01)

   THE PROBLEM
   -----------
   .grid--halves puts two cards side by side in one CSS grid row, and a grid
   row is always as tall as its tallest item. "New users - last 12 months"
   has a fixed 150px chart inside it; "Latest withdrawals" had no height
   limit at all. So every extra withdrawal row made the table card taller,
   and the chart card beside it was stretched to match - ending up as a
   150px chart floating in a half-empty box.

   THE FIX
   -------
   Give the card a height and let the ONE scrollable part inside it scroll.
   The table header is already `position: sticky; top: 0` (section 5), so it
   pins itself to the top of that scroll area for free - no extra rule, and
   the column names stay readable however far down you are.

   WHY THESE ARE NEW CLASSES
   -------------------------
   Nothing here touches .card, .table or .grid--halves, so no other screen in
   the panel changes in any way. A card only behaves like this if it is given
   .card--fixed by name.

   WHY ONLY ABOVE 900px
   --------------------
   Below 900px .grid--halves collapses to a single column (section 3's
   breakpoint), and there is no neighbour left to stay level with. A fixed
   height there would do nothing but hide content behind a second scrollbar
   inside an already scrolling page, which is the worst way to read a table
   on a phone. On a phone these cards grow naturally, exactly as before.
   --------------------------------------------------------------------- */

.card--fixed {
    display: flex;
    flex-direction: column;
}

.card--fixed > .card__head { flex: 0 0 auto; }

@media (min-width: 901px) {

    /* Per-card override: style="--card-fixed-h: 300px" on the card itself. */
    .card--fixed { height: var(--card-fixed-h, 380px); }

    /*
     * min-height: 0 is the line this whole section depends on, and the one
     * that is easy to leave out.
     *
     * A flex child defaults to min-height: auto, which means "never shrink
     * below your own content". So without it the body keeps its full natural
     * height, pushes the card past the height set above, and overflow-y has
     * nothing to overflow - the card grows and nothing ever scrolls, which is
     * the exact bug this is meant to fix.
     */
    .card--fixed > .card__body,
    .card--fixed > .table-wrap,
    .card--fixed > .table__empty {
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
    }

    /* A scroll area that can move needs to be focusable, or a keyboard user
       can reach the rows below only with a mouse. */
    .card--fixed > .table-wrap:focus-visible,
    .card--fixed > .card__body:focus-visible {
        outline: 2px solid var(--brand);
        outline-offset: -2px;
    }
}

/* Thin, quiet scrollbars - a full-width grey bar inside a card looks like a
   mistake. Chromium/WebKit only; Firefox uses scrollbar-width above. */
.card--fixed > .card__body,
.card--fixed > .table-wrap { scrollbar-width: thin; }

.card--fixed > .card__body::-webkit-scrollbar,
.card--fixed > .table-wrap::-webkit-scrollbar { width: 9px; height: 9px; }

.card--fixed > .card__body::-webkit-scrollbar-thumb,
.card--fixed > .table-wrap::-webkit-scrollbar-thumb {
    background: var(--border-strong);
    border-radius: 99px;
    border: 2px solid var(--surface);
}

.card--fixed > .card__body::-webkit-scrollbar-track,
.card--fixed > .table-wrap::-webkit-scrollbar-track { background: transparent; }


/* ---------------------------------------------------------------------
   14. Dashboard section rule and alert rows  (ADDED 2026-10-01)

   Used only by panel/dashboard.blade.php.
   --------------------------------------------------------------------- */

/* The dashed line that separates what was always on the dashboard from the
   three blocks added below it. */
.section-rule {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 26px 0 16px;
    font-size: 11.5px;
    font-weight: 650;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--text-faint);
}

.section-rule::after {
    content: "";
    flex: 1;
    border-top: 1px dashed var(--border-strong);
}

/* One line in "Needs attention". */
.alert-row {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 11px 0;
    border-bottom: 1px solid var(--border);
}

.alert-row:last-child { border-bottom: 0; }
.alert-row:first-child { padding-top: 0; }

.alert-row__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-top: 6px;
    flex: 0 0 8px;
    background: var(--warn);
}

.alert-row__dot--danger { background: var(--danger); }
.alert-row__dot--warn   { background: var(--warn); }

.alert-row__text { flex: 1; min-width: 0; }

.alert-row__title {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text);
}

.alert-row__detail {
    font-size: 12.5px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Label / value pairs in the "Active users" card. */
.kv {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px solid var(--border);
}

.kv:last-child  { border-bottom: 0; }
.kv:first-child { padding-top: 0; }

.kv__label { font-size: 13px; color: var(--text-muted); }

.kv__value {
    font-size: 18px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    letter-spacing: -.01em;
}

/* A money line: currency code set small and quiet, amount in figures. */
.money-line {
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.money-line__code {
    font-size: 11px;
    font-weight: 650;
    letter-spacing: .04em;
    color: var(--text-faint);
    margin-right: 4px;
}
