/* =====================================================================
   WINGS MODEL COLLEGE & SCHOOL
   admin-mobile.css  ·  Admin panel ka MOBILE app-shell
   ---------------------------------------------------------------------
   >>> BOHOT AHEM <<<
   Is poori file ka HAR rule  @media (max-width: 1023.98px)  ke andar
   hai. Yani 1024px se upar (laptop / desktop) admin panel bilkul
   waisa ka waisa rehta hai jaisa pehle tha -- ek pixel nahi badla.

   Mobile par admin ko "control panel" ka roop diya gaya hai:
   student/teacher portal se thora ALAG -- zyada ghana (dense),
   number monospace mein, aur har cheez data-first.
   ===================================================================== */
@media (min-width: 1024px) {
    [class*="mobile-menu"],
    [class*="mobile-nav"],
    [class*="mobile-drawer"],
    [class*="off-canvas"],
    [id*="mobileMenu"],
    [id*="adminMenu"] {
        display: none !important;
    }
}
@media (max-width: 1023.98px) {

    :root {
        --a-bg:        #EAF0FA;
        --a-surface:   #FFFFFF;
        --a-border:    #DBE4F2;
        --a-line:      #EAF0FA;
        --a-ink:       #0C1733;
        --a-navy:      #263C87;
        --a-navy-2:    #3A55B8;
        --a-gold:      #1B8FE3;
        --a-gold-soft: rgba(27,143,227,.13);
        --a-muted:     #4A5A7C;
        --a-faint:     #8B9AB9;
        --a-danger:    #E1495B;
        --a-success:   #12A47C;
        --a-warning:   #F0A423;
        --a-info:      #1B8FE3;

        --a-r:    14px;
        --a-r-sm: 10px;
        --a-r-lg: 20px;
        --a-shadow: 0 1px 2px rgba(12,23,51,.05), 0 3px 14px rgba(12,23,51,.06);

        --a-top-h: 54px;
        --a-nav-h: 60px;
        --a-safe-t: env(safe-area-inset-top, 0px);
        --a-safe-b: env(safe-area-inset-bottom, 0px);
    }

    /* -----------------------------------------------------------------
       1. SHELL
       ----------------------------------------------------------------- */
    body.admin-app {
        display: block;
        background: var(--a-bg);
        color: var(--a-ink);
        font-size: 14.5px;
        overflow-x: hidden;
        -webkit-tap-highlight-color: transparent;
        -webkit-text-size-adjust: 100%;
    }
    body.admin-app .main { margin-left: 0; width: 100%; display: block; }

    body.admin-app .content {
        padding: 12px 12px calc(var(--a-nav-h) + var(--a-safe-b) + 18px);
        max-width: 100%;
        animation: a-fade .16s ease-out;
    }
    @keyframes a-fade { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: none; } }

    /* purani slide-in sidebar band -- ab bottom sheet menu hai */
    body.admin-app .sidebar { display: none !important; }

    /* -----------------------------------------------------------------
       2. TOPBAR  ·  chipka hua, compact
       ----------------------------------------------------------------- */
    body.admin-app .topbar {
        position: sticky; top: 0; z-index: 40;
        height: calc(var(--a-top-h) + var(--a-safe-t));
        padding: var(--a-safe-t) 12px 0;
        display: flex; align-items: center; gap: 8px;
        background: rgba(255,255,255,.93);
        backdrop-filter: saturate(180%) blur(14px);
        -webkit-backdrop-filter: saturate(180%) blur(14px);
        border-bottom: 1px solid var(--a-border);
    }
    body.admin-app .topbar-left {
        flex: 1 1 auto; min-width: 0;
        display: flex; align-items: center; gap: 9px;
    }
    body.admin-app .topbar-right { flex: 0 0 auto; display: flex; align-items: center; gap: 6px; }

    /* purana hamburger ab menu sheet kholta hai */
    body.admin-app .mobile-toggle {
        display: grid; place-items: center;
        width: 36px; height: 36px; flex: 0 0 auto;
        border: 1px solid var(--a-border); border-radius: 10px;
        background: var(--a-surface); color: var(--a-ink);
        font-size: 16px; line-height: 1; cursor: pointer;
    }
    body.admin-app .mobile-toggle:active { transform: scale(.93); }

    body.admin-app .page-title {
        font-family: 'Fraunces', Georgia, serif;
        font-size: 16px; font-weight: 600; line-height: 1.2;
        white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
        min-width: 0;
    }
    body.admin-app .session-badge {
        flex: 0 0 auto;
        font-size: 9.5px; font-weight: 700; letter-spacing: .05em;
        padding: 3px 7px; border-radius: 5px;
        background: var(--a-gold-soft); color: var(--a-gold);
    }
    body.admin-app .name-sm,
    body.admin-app .chevron-sm { display: none; }
    body.admin-app .profile-btn {
        padding: 0; border: 0; background: none;
        width: 34px; height: 34px;
    }
    body.admin-app .avatar-sm { width: 34px; height: 34px; font-size: 12px; }
    body.admin-app .icon-btn {
        width: 34px; height: 34px;
        border: 1px solid var(--a-border); border-radius: 10px;
        background: var(--a-surface);
    }

    /* -----------------------------------------------------------------
       3. CARDS
       ----------------------------------------------------------------- */
    body.admin-app .card {
        background: var(--a-surface);
        border: 1px solid var(--a-border);
        border-radius: var(--a-r);
        box-shadow: var(--a-shadow);
        padding: 13px;
        margin-bottom: 11px;
    }
    body.admin-app .card-title {
        display: flex; align-items: center; justify-content: space-between; gap: 9px;
        font-family: 'Fraunces', Georgia, serif;
        font-size: 14.5px; font-weight: 600;
        margin-bottom: 11px; padding-bottom: 0; border-bottom: 0;
    }
    body.admin-app .card-title a,
    body.admin-app .card-title .see-all {
        font-family: 'Inter', sans-serif;
        font-size: 12px; font-weight: 600; color: var(--a-gold);
        text-decoration: none; white-space: nowrap;
    }

    /* -----------------------------------------------------------------
       4. STATS  ·  admin ghana grid (2 col, chhote tiles)
       ----------------------------------------------------------------- */
    body.admin-app .stats-grid {
        display: grid; grid-template-columns: repeat(2, 1fr);
        gap: 9px; margin-bottom: 11px;
    }
    body.admin-app .stat-card {
        background: var(--a-surface);
        border: 1px solid var(--a-border);
        border-left: 3px solid var(--a-navy);
        border-radius: var(--a-r-sm);
        box-shadow: var(--a-shadow);
        padding: 11px 12px;
        display: flex; flex-direction: column; gap: 1px;
        min-width: 0;
    }
    body.admin-app .stat-icon {
        width: 26px; height: 26px; border-radius: 7px;
        display: grid; place-items: center;
        background: var(--a-gold-soft); color: var(--a-gold);
        font-size: 13px; margin-bottom: 4px;
    }
    body.admin-app .stat-value {
        font-family: 'JetBrains Mono', ui-monospace, monospace;
        font-size: 19px; font-weight: 600; line-height: 1.15;
        letter-spacing: -.02em;
        overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    }
    body.admin-app .stat-label {
        font-size: 10.5px; font-weight: 500; color: var(--a-muted);
        line-height: 1.3; text-transform: uppercase; letter-spacing: .03em;
    }

    body.admin-app .dash-grid,
    body.admin-app .widget-row { display: block; }

    /* -----------------------------------------------------------------
       5. TOOLBAR / FILTERS  ·  phone par thehar kar
       ----------------------------------------------------------------- */
    body.admin-app .table-toolbar {
        display: flex; flex-direction: column; align-items: stretch; gap: 9px;
        margin-bottom: 12px;
    }
    body.admin-app .table-toolbar > * { width: 100%; }
    body.admin-app .table-toolbar .btn { width: 100%; }
    body.admin-app .filter-row,
    body.admin-app .filters {
        display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    }
    body.admin-app .filter-row > .full,
    body.admin-app .filters > .full { grid-column: 1 / -1; }
    body.admin-app .search-box { width: 100%; }
    body.admin-app .search-box input { width: 100%; }

    /* -----------------------------------------------------------------
       6. TABLE  ->  CARD   << sab se ahem
       ---------------------------------------------------------------------
       Admin ki tables mein 7-10 columns hoti hain. Phone par ye side
       mein nikal jati thin. Ab har row ek chhota card ban jati hai.
       Har khane par "data-label" admin-mobile.js lagata hai.

       Lambi values (email, address, CNIC) ke liye word-break laga hai
       taake koi cheez card se bahar na nikle.
       ----------------------------------------------------------------- */
    body.admin-app .table-wrap {
        border: 0; overflow: visible; background: transparent;
    }
    body.admin-app table.data-table,
    body.admin-app table.data-table tbody,
    body.admin-app table.data-table tr { display: block; width: 100%; }

    /* >>> SAB SE AHEM FIX <<<
       style.css mein  table.data-table { min-width: 640px }  laga hua
       hai. Card banane ke bawajood table 640px chaurhi rehti thi, is
       liye har card screen se bahar nikal jata tha -- values, DELETE
       button aur dates dayen taraf gayab ho jate thay.
       Mobile par min-width bilkul khatam. */
    body.admin-app table.data-table {
        border-collapse: separate;
        min-width: 0 !important;
        width: 100% !important;
        max-width: 100%;
        table-layout: auto;
    }
    body.admin-app table.data-table thead { display: none; }

    body.admin-app table.data-table tr {
        background: var(--a-surface);
        border: 1px solid var(--a-border);
        border-radius: var(--a-r);
        box-shadow: var(--a-shadow);
        margin-bottom: 9px;
        padding: 2px 0 3px;
        overflow: hidden;
    }

    /* GRID istemal kiya hai, flex nahi.
       Wajah: flex mein value ka hissa apne content se chhota nahi hota
       (min-width auto), is liye lambi value row ko chaura kar deti thi.
       Grid ki  minmax(0, 1fr)  column sikur bhi jati hai -- lambi cheez
       toot kar agli line par jati hai, bahar nahi nikalti. */
    body.admin-app table.data-table td {
        display: grid;
        grid-template-columns: minmax(0, 38%) minmax(0, 1fr);
        gap: 4px 12px;
        align-items: start;
        padding: 6px 13px;
        border: 0;
        font-size: 13px;
        line-height: 1.45;
        text-align: right;
        min-width: 0;
        max-width: 100%;
        overflow: hidden;
        overflow-wrap: anywhere;
        word-break: break-word;
    }
    body.admin-app table.data-table td::before {
        content: attr(data-label);
        text-align: left;
        font-size: 10px; font-weight: 700; letter-spacing: .05em;
        text-transform: uppercase; color: var(--a-faint);
        padding-top: 2px;
        min-width: 0;
        overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    }
    body.admin-app table.data-table td > * {
        min-width: 0; max-width: 100%;
        overflow-wrap: anywhere;
    }
    /* andar ki nested table / pre kabhi bahar na jaye */
    body.admin-app table.data-table td img { max-width: 100%; height: auto; }

    /* pehla khana = card ka sarnama */
    body.admin-app table.data-table td:first-child {
        display: block; text-align: left; grid-template-columns: none;
        padding: 11px 13px 9px;
        border-bottom: 1px solid var(--a-line);
        margin-bottom: 3px;
        font-size: 14px; font-weight: 600;
        background: linear-gradient(180deg, rgba(15,32,56,.025), transparent);
    }
    body.admin-app table.data-table td:first-child::before { display: none; }
    body.admin-app table.data-table td .cell-sub,
    body.admin-app table.data-table td .cell-name + div {
        font-size: 11.5px; color: var(--a-muted); font-weight: 400; margin-top: 2px;
    }

    /* khali khane jagah na ghere */
    body.admin-app table.data-table td:empty { display: none; }

    /* number wale khane monospace */
    body.admin-app table.data-table td[data-label*="Amount"],
    body.admin-app table.data-table td[data-label*="Fee"],
    body.admin-app table.data-table td[data-label*="Salary"],
    body.admin-app table.data-table td[data-label*="Total"],
    body.admin-app table.data-table td[data-label*="Paid"],
    body.admin-app table.data-table td[data-label*="Balance"],
    body.admin-app table.data-table td[data-label*="Roll"],
    body.admin-app table.data-table td[data-label*="Marks"] {
        font-family: 'JetBrains Mono', ui-monospace, monospace;
        font-size: 12.5px; font-weight: 600;
    }

    /* actions -- poori chaurai ke buttons */
    body.admin-app table.data-table td.actions,
    body.admin-app table.data-table td:last-child:has(.btn) {
        display: flex; flex-wrap: wrap; gap: 7px;
        grid-template-columns: none;
        justify-content: flex-start;
        padding: 9px 13px 11px;
        border-top: 1px solid var(--a-line);
        margin-top: 4px;
        text-align: left;
    }
    body.admin-app table.data-table td.actions::before,
    body.admin-app table.data-table td:last-child:has(.btn)::before { display: none; }
    body.admin-app table.data-table td.actions .btn,
    body.admin-app table.data-table td:last-child:has(.btn) .btn {
        flex: 1 1 auto;
        min-width: 0;                 /* 88px se buttons bahar nikal rahe thay */
        max-width: 100%;
        min-height: 38px; padding: 8px 10px; font-size: 12px;
        white-space: nowrap;
        overflow: hidden; text-overflow: ellipsis;
    }
    /* teen se zyada buttons hon to do-do ke jore mein */
    body.admin-app table.data-table td.actions .btn:only-child { flex-basis: 100%; }
    body.admin-app table.data-table td.actions a:not(.btn) {
        flex: 1 1 auto; min-width: 88px; text-align: center;
        padding: 8px 11px; border-radius: var(--a-r-sm);
        border: 1px solid var(--a-border); background: var(--a-surface);
        font-size: 12px; font-weight: 600; text-decoration: none; color: var(--a-ink);
    }

    /* checkbox wali pehli column (bulk select) */
    body.admin-app table.data-table td:first-child:has(input[type=checkbox]) {
        display: flex; align-items: center; gap: 10px; grid-template-columns: none;
        background: none; border-bottom: 1px solid var(--a-line);
    }
    body.admin-app table.data-table td input[type=checkbox] {
        width: 20px; height: 20px; flex: 0 0 auto;
    }

    /* khali list */
    body.admin-app table.data-table tr.empty-row {
        background: transparent; box-shadow: none;
        border-style: dashed; border-color: var(--a-border);
    }
    body.admin-app table.data-table tr.empty-row td {
        display: block; text-align: center;
        padding: 24px 14px; color: var(--a-muted); font-size: 13px;
        border: 0; background: none;
    }
    body.admin-app table.data-table tr.empty-row td::before { display: none; }

    /* jin tables ko cards banana theek nahi (timetable grid, report card)
       un par class "keep-table" laga dein -- ye scroll wali hi rahengi */
    body.admin-app .keep-table,
    body.admin-app .table-wrap.keep-table {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border: 1px solid var(--a-border);
        border-radius: var(--a-r);
        background: var(--a-surface);
    }
    body.admin-app .keep-table table.data-table,
    body.admin-app .keep-table table.data-table thead,
    body.admin-app .keep-table table.data-table tbody,
    body.admin-app .keep-table table.data-table tr,
    body.admin-app .keep-table table.data-table th,
    body.admin-app .keep-table table.data-table td {
        display: revert; width: auto;
    }
    body.admin-app .keep-table table.data-table { min-width: 620px; }
    body.admin-app .keep-table table.data-table tr {
        box-shadow: none; border: 0; border-bottom: 1px solid var(--a-line);
        border-radius: 0; margin: 0; padding: 0;
    }
    body.admin-app .keep-table table.data-table td {
        text-align: left; padding: 9px 11px; font-size: 12.5px;
        white-space: nowrap;
    }
    body.admin-app .keep-table table.data-table td::before { display: none; }
    body.admin-app .keep-table table.data-table td:first-child {
        background: none; border-bottom: 0; margin: 0; font-size: 12.5px;
    }

    /* -----------------------------------------------------------------
       7. BADGES / PILLS
       ----------------------------------------------------------------- */
    body.admin-app .badge {
        display: inline-block;
        padding: 3px 8px; border-radius: 5px;
        font-size: 10.5px; font-weight: 700; letter-spacing: .03em;
        text-transform: uppercase;
    }

    /* -----------------------------------------------------------------
       8. FORMS
       ----------------------------------------------------------------- */
    body.admin-app .form-container { max-width: 100%; }
    body.admin-app .form-header h1 { font-size: 19px; }
    body.admin-app .form-header p { font-size: 12.5px; }

    body.admin-app .form-section {
        background: var(--a-surface);
        border: 1px solid var(--a-border);
        border-radius: var(--a-r);
        box-shadow: var(--a-shadow);
        padding: 13px; margin-bottom: 11px;
    }
    body.admin-app .form-section-title {
        font-size: 10.5px; font-weight: 700; letter-spacing: .07em;
        text-transform: uppercase; color: var(--a-faint);
        margin-bottom: 11px;
    }
    body.admin-app .form-grid { display: grid; grid-template-columns: 1fr; gap: 0 12px; }
    body.admin-app .form-grid .full-width { grid-column: 1 / -1; }

    body.admin-app .form-group { margin-bottom: 12px; }
    body.admin-app .form-group label {
        font-size: 12px; font-weight: 600; color: var(--a-muted);
        margin-bottom: 5px; display: block;
    }
    body.admin-app input[type=text], body.admin-app input[type=email],
    body.admin-app input[type=password], body.admin-app input[type=number],
    body.admin-app input[type=date], body.admin-app input[type=time],
    body.admin-app input[type=tel], body.admin-app input[type=search],
    body.admin-app select, body.admin-app textarea {
        width: 100%;
        padding: 11px 12px;
        font-size: 16px;             /* iOS focus par zoom nahi karta */
        border-radius: var(--a-r-sm);
        border: 1px solid var(--a-border);
        background: var(--a-surface);
        -webkit-appearance: none; appearance: none;
    }
    body.admin-app select {
        background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235F6980' stroke-width='2'%3e%3cpolyline points='6 9 12 15 18 9'/%3e%3c/svg%3e");
        background-repeat: no-repeat; background-position: right 10px center;
        background-size: 16px; padding-right: 34px;
    }
    body.admin-app input:focus, body.admin-app select:focus, body.admin-app textarea:focus {
        outline: none; border-color: var(--a-gold);
        box-shadow: 0 0 0 3px var(--a-gold-soft);
    }
    body.admin-app textarea { min-height: 88px; }
    body.admin-app .help-text { font-size: 11px; color: var(--a-faint); margin-top: 4px; }

    body.admin-app .btn {
        display: inline-flex; align-items: center; justify-content: center; gap: 6px;
        min-height: 42px; padding: 10px 16px;
        border-radius: var(--a-r-sm);
        font-size: 13.5px; font-weight: 600;
    }
    body.admin-app .btn:active { transform: scale(.97); }
    body.admin-app .btn-sm { min-height: 36px; padding: 7px 12px; font-size: 12px; }
    body.admin-app .btn-lg { min-height: 48px; width: 100%; font-size: 14.5px; }

    /* Save/Submit ki patti.
       Pehle ye sticky thi aur neem-shaffaf hone ki wajah se form ke
       khanon ke UPAR taer rahi thi (screenshot mein B-Form ke upar aa
       gayi thi). Ab ye form ke AAKHIR mein apni jagah par hai --
       saaf, thos, aur kisi khane ko nahi dhankti. */
    body.admin-app .form-actions {
        display: flex; flex-direction: column-reverse; gap: 9px;
        position: static;
        padding: 14px 13px calc(14px + var(--a-safe-b));
        margin: 4px 0 0;
        background: var(--a-surface);
        border: 1px solid var(--a-border);
        border-radius: var(--a-r);
        box-shadow: var(--a-shadow);
    }
    body.admin-app .form-actions .btn { width: 100%; }
    body.admin-app .form-actions .btn-primary { min-height: 48px; font-size: 15px; }

    body.admin-app .file-upload-label {
        padding: 18px 12px; border-radius: var(--a-r);
        border: 1.5px dashed var(--a-border); background: var(--a-bg);
    }
    body.admin-app .upload-icon { font-size: 23px; }
    body.admin-app .upload-text { font-size: 13px; }
    body.admin-app .upload-subtext { font-size: 11px; }

    /* -----------------------------------------------------------------
       9. MODAL  ->  bottom sheet
       ----------------------------------------------------------------- */
    body.admin-app .modal-overlay {
        align-items: flex-end;
        padding: 0;
    }
    body.admin-app .modal-box {
        width: 100%; max-width: 100%;
        border-radius: var(--a-r-lg) var(--a-r-lg) 0 0;
        padding: 18px 14px calc(18px + var(--a-safe-b));
        max-height: 88vh; overflow-y: auto;
    }
    body.admin-app .modal-box h3 { font-size: 16px; margin-bottom: 12px; }
    body.admin-app .modal-actions { display: flex; gap: 9px; margin-top: 16px; }
    body.admin-app .modal-actions .btn { flex: 1 1 0; }

    /* -----------------------------------------------------------------
       10. BOTTOM NAV  (admin)
       ----------------------------------------------------------------- */
    .admin-nav {
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
        display: flex;
        height: calc(var(--a-nav-h) + var(--a-safe-b));
        padding-bottom: var(--a-safe-b);
        background: rgba(255,255,255,.95);
        backdrop-filter: saturate(180%) blur(16px);
        -webkit-backdrop-filter: saturate(180%) blur(16px);
        border-top: 1px solid var(--a-border);
        box-shadow: 0 -2px 18px rgba(16,26,46,.07);
    }
    .admin-nav-item {
        flex: 1 1 0; min-width: 0;
        display: flex; flex-direction: column; align-items: center; justify-content: center;
        gap: 3px; padding: 6px 2px;
        border: 0; background: none; cursor: pointer;
        font-family: inherit; font-size: 10px; font-weight: 600;
        color: var(--a-faint); text-decoration: none;
        position: relative;
    }
    .admin-nav-item svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; }
    .admin-nav-item span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .admin-nav-item.active { color: var(--a-navy); }
    .admin-nav-item.active::before {
        content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
        width: 24px; height: 3px; border-radius: 0 0 4px 4px; background: var(--a-gold);
    }
    .admin-nav-item:active { color: var(--a-gold); }

    /* beech ka bara "+" button */
    .admin-nav-item.fab { color: var(--a-navy); }
    .admin-nav-item.fab .fab-circle {
        width: 42px; height: 42px; border-radius: 14px;
        display: grid; place-items: center;
        background: linear-gradient(135deg, var(--a-navy), var(--a-navy-2));
        color: #fff; box-shadow: 0 4px 12px rgba(15,32,56,.28);
        margin-top: -14px;
    }
    .admin-nav-item.fab .fab-circle svg { width: 21px; height: 21px; }
    .admin-nav-item.fab span { margin-top: 1px; }

    /* -----------------------------------------------------------------
       11. MENU SHEET  ·  poora admin menu
       ----------------------------------------------------------------- */
    .admin-sheet-backdrop {
        position: fixed; inset: 0; z-index: 60;
        background: rgba(10,18,32,.45);
        opacity: 0; pointer-events: none;
        transition: opacity .2s ease;
    }
    .admin-sheet-backdrop.open { opacity: 1; pointer-events: auto; }

    .admin-sheet {
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 61;
        background: var(--a-surface);
        border-radius: var(--a-r-lg) var(--a-r-lg) 0 0;
        padding: 8px 0 calc(10px + var(--a-safe-b));
        transform: translateY(102%);
        transition: transform .26s cubic-bezier(.32,.72,0,1);
        max-height: 86vh; display: flex; flex-direction: column;
        box-shadow: 0 -4px 30px rgba(16,26,46,.16);
    }
    .admin-sheet.open { transform: none; }
    .admin-sheet-handle {
        width: 38px; height: 4px; border-radius: 4px;
        background: var(--a-border); margin: 4px auto 10px; flex: 0 0 auto;
    }
    .admin-sheet-head {
        display: flex; align-items: center; justify-content: space-between;
        padding: 0 14px 8px; flex: 0 0 auto;
    }
    .admin-sheet-head h4 {
        font-family: 'Fraunces', Georgia, serif;
        font-size: 15px; font-weight: 600; color: var(--a-ink);
    }
    .admin-sheet-close {
        width: 30px; height: 30px; border-radius: 9px;
        display: grid; place-items: center;
        border: 1px solid var(--a-border); background: var(--a-surface);
        color: var(--a-muted); font-size: 15px; line-height: 1; cursor: pointer;
    }
    .admin-sheet-close:active { transform: scale(.92); }

    .admin-sheet-search { padding: 0 14px 10px; flex: 0 0 auto; }
    .admin-sheet-search input {
        width: 100%; padding: 11px 13px; font-size: 16px;
        border: 1px solid var(--a-border); border-radius: var(--a-r-sm);
        background: var(--a-bg);
    }
    .admin-sheet-body { overflow-y: auto; padding: 0 10px 6px; -webkit-overflow-scrolling: touch; }

    .admin-sheet-group { margin-bottom: 4px; }
    .admin-sheet-group > summary {
        list-style: none; cursor: pointer;
        display: flex; align-items: center; justify-content: space-between;
        gap: 10px;
        padding: 12px 12px; border-radius: var(--a-r-sm);
        font-size: 13.5px; font-weight: 600; color: var(--a-ink);
        -webkit-tap-highlight-color: transparent;
    }
    .admin-sheet-group > summary::-webkit-details-marker { display: none; }
    .admin-sheet-group > summary::after {
        content: '›'; font-size: 18px; color: var(--a-faint);
        transform: rotate(90deg); transition: transform .18s ease;
    }
    .admin-sheet-group[open] > summary { background: var(--a-bg); }
    .admin-sheet-group[open] > summary::after { transform: rotate(270deg); }
    /* group ke andar wale links -- baayen halki si guide line */
    .admin-sheet-group .grp-items {
        padding: 3px 0 7px 0;
        margin-left: 21px;
        border-left: 2px solid var(--a-line);
    }

    .admin-sheet-link {
        position: relative;
        display: block; padding: 10px 14px;
        border-radius: var(--a-r-sm);
        font-size: 13px; color: var(--a-muted); text-decoration: none;
        transition: background .12s ease, color .12s ease;
    }
    .admin-sheet-link:active { background: var(--a-bg); }
    .admin-sheet-link.active {
        color: var(--a-gold); font-weight: 700; background: var(--a-gold-soft);
    }
    /* jis page par abhi hain us par baayen taraf sunehri patti */
    .admin-sheet-group .grp-items .admin-sheet-link.active::before {
        content: ''; position: absolute;
        left: -2px; top: 7px; bottom: 7px;
        width: 2px; border-radius: 2px; background: var(--a-gold);
    }
    .admin-sheet-link.danger { color: var(--a-danger); font-weight: 600; }
    .admin-sheet-label {
        font-size: 10px; font-weight: 700; letter-spacing: .08em;
        text-transform: uppercase; color: var(--a-faint);
        padding: 12px 14px 5px;
    }
    .admin-sheet-empty { padding: 26px 14px; text-align: center; color: var(--a-muted); font-size: 13px; }

    /* -----------------------------------------------------------------
       12. QUICK ADD SHEET  ("+" button)
       ----------------------------------------------------------------- */
    .admin-quick-grid {
        display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
        padding: 4px 12px 8px;
    }
    .admin-quick-grid a {
        display: flex; flex-direction: column; align-items: center; gap: 7px;
        padding: 14px 6px; border-radius: var(--a-r);
        background: var(--a-bg); text-decoration: none;
        font-size: 11px; font-weight: 600; color: var(--a-ink); text-align: center;
        line-height: 1.25;
    }
    .admin-quick-grid a:active { transform: scale(.95); }
    .admin-quick-grid .qa-ic {
        width: 38px; height: 38px; border-radius: 12px;
        display: grid; place-items: center;
        background: var(--a-surface); color: var(--a-navy);
        border: 1px solid var(--a-border);
    }
    .admin-quick-grid .qa-ic svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; }

    /* -----------------------------------------------------------------
       13. TOASTS
       ----------------------------------------------------------------- */
    #aToastHost {
        position: fixed; z-index: 90;
        left: 10px; right: 10px; top: calc(var(--a-safe-t) + 8px);
        display: flex; flex-direction: column; gap: 7px;
        pointer-events: none;
    }
    .a-toast {
        display: flex; align-items: flex-start; gap: 9px;
        background: var(--a-navy); color: #fff;
        border-radius: var(--a-r-sm);
        box-shadow: 0 8px 26px rgba(16,26,46,.28);
        padding: 11px 13px;
        font-size: 13px; font-weight: 500; line-height: 1.4;
        pointer-events: auto;
        animation: a-toast-in .2s cubic-bezier(.2,.9,.3,1.2);
        border-left: 3px solid var(--a-gold);
    }
    .a-toast.out { animation: a-toast-out .16s ease forwards; }
    .a-toast .ic { flex: 0 0 auto; font-size: 14px; }
    .a-toast.success { border-left-color: #4FD18B; }
    .a-toast.error   { border-left-color: #FF7A7A; }
    .a-toast.warning { border-left-color: #F2B24C; }
    @keyframes a-toast-in  { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }
    @keyframes a-toast-out { to { opacity: 0; transform: translateY(-8px); } }

    /* -----------------------------------------------------------------
       14. SKELETON
       ----------------------------------------------------------------- */
    .a-skel {
        background: linear-gradient(90deg, #E7EAF1 25%, #F3F5F9 37%, #E7EAF1 63%);
        background-size: 400% 100%;
        animation: a-shimmer 1.15s ease infinite;
        border-radius: 6px;
    }
    @keyframes a-shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
    .a-skel-card {
        background: var(--a-surface); border: 1px solid var(--a-border);
        border-radius: var(--a-r); padding: 12px 13px; margin-bottom: 9px;
    }
    .a-skel-card i { display: block; height: 11px; margin-bottom: 8px; }
    .a-skel-card i:nth-child(1) { width: 62%; height: 13px; }
    .a-skel-card i:nth-child(2) { width: 90%; }
    .a-skel-card i:nth-child(3) { width: 45%; margin-bottom: 0; }
    @media (prefers-reduced-motion: reduce) { .a-skel { animation: none; } }

    /* -----------------------------------------------------------------
       15. NOTIFICATIONS / PROFILE DROPDOWN  ->  sheet jaisa
       ----------------------------------------------------------------- */
    body.admin-app .notif-dropdown {
        position: fixed; left: 10px; right: 10px;
        top: calc(var(--a-top-h) + var(--a-safe-t) + 8px);
        width: auto; max-width: none;
        border-radius: var(--a-r); max-height: 62vh; overflow-y: auto;
        z-index: 65;
    }
    body.admin-app .profile-dropdown {
        position: fixed; left: auto; right: 10px;
        top: calc(var(--a-top-h) + var(--a-safe-t) + 8px);
        min-width: 190px; border-radius: var(--a-r); z-index: 65;
    }

    /* -----------------------------------------------------------------
       15b. TABS  ·  ek line mein, side scroll
       ---------------------------------------------------------------------
       Settings ke 4 tab do lines mein toot rahe thay. Ab ek hi line
       mein rehte hain aur ungli se side scroll ho jate hain.
       ----------------------------------------------------------------- */
    body.admin-app .tabs,
    body.admin-app .tab-list,
    body.admin-app .tab-bar,
    body.admin-app .settings-tabs {
        display: flex; flex-wrap: nowrap;
        gap: 7px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 3px;
        margin-bottom: 12px;
        scroll-snap-type: x proximity;
    }
    body.admin-app .tabs::-webkit-scrollbar,
    body.admin-app .tab-list::-webkit-scrollbar,
    body.admin-app .tab-bar::-webkit-scrollbar,
    body.admin-app .settings-tabs::-webkit-scrollbar { display: none; }

    body.admin-app .tabs > *,
    body.admin-app .tab-list > *,
    body.admin-app .tab-bar > *,
    body.admin-app .settings-tabs > * {
        flex: 0 0 auto;
        white-space: nowrap;
        scroll-snap-align: start;
        font-size: 13px;
        padding: 9px 14px;
    }

    /* -----------------------------------------------------------------
       16. CHHOTI CHHOTI CHEEZEIN
       ----------------------------------------------------------------- */
    body.admin-app canvas { max-width: 100% !important; height: auto !important; }
    body.admin-app .cg-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
    body.admin-app .qa-grid { grid-template-columns: repeat(2, 1fr); gap: 9px; }
    body.admin-app .pagination { flex-wrap: wrap; gap: 6px; justify-content: center; }
    body.admin-app .pagination .btn { min-width: 42px; }

    /* koi bhi cheez screen se bahar na nikle */
    body.admin-app { max-width: 100vw; overflow-x: hidden; }
    body.admin-app img,
    body.admin-app pre,
    body.admin-app code { max-width: 100%; }
    body.admin-app .card,
    body.admin-app .form-section,
    body.admin-app .table-wrap { max-width: 100%; overflow-x: hidden; }
    /* keep-table par ye rok nahi lagni chahiye -- wo jaan boojh kar
       side scroll karti hai */
    body.admin-app .table-wrap.keep-table { overflow-x: auto; }

    body.admin-app .a-offline {
        position: fixed; left: 0; right: 0; z-index: 80;
        top: calc(var(--a-top-h) + var(--a-safe-t));
        background: var(--a-warning); color: #fff;
        font-size: 11.5px; font-weight: 600; text-align: center; padding: 6px 12px;
        opacity: 0; visibility: hidden; pointer-events: none;
        transform: translateY(-6px);
        transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
    }
    body.admin-app .a-offline.show {
        opacity: 1; visibility: visible; transform: none;
        transition: opacity .2s ease, transform .2s ease, visibility 0s;
    }
}

/* ---------------------------------------------------------------------
   Chhoti phones  (360px se kam)
   ------------------------------------------------------------------ */
@media (max-width: 359.98px) {
    body.admin-app .stats-grid { grid-template-columns: 1fr; }
    body.admin-app .filter-row,
    body.admin-app .filters { grid-template-columns: 1fr; }
    .admin-quick-grid { grid-template-columns: repeat(2, 1fr); }
    body.admin-app table.data-table td::before { flex-basis: 44%; max-width: 44%; }
    body.admin-app .session-badge { display: none; }
}
/* =====================================================================
   ADMIN MOBILE PATCH  ·  admin-mobile-patch.css
   ---------------------------------------------------------------------
   YE FILE KAHAN LAGANI HAI:
   Apne admin panel ke <head> mein, SAB SE AAKHRI CSS <link> ke BAAD
   ye line add karein (isse baad koi aur CSS file na ho):

       <link rel="stylesheet" href="/assets/css/admin-mobile-patch.css">

   (path apne project ke hisab se adjust kar lein)

   WAJAH:
   admin-mobile.js sirf itna karti hai:
       el.classList.add('open')   /  el.classList.remove('open')
   Iska matlab kahin na kahin CSS mein ye classes/IDs already defined
   HAIN (.admin-nav, #adminMenuSheet, #adminQuickSheet,
   #adminSheetBackdrop) -- lekin us CSS mein:
     1) .admin-nav ko desktop (>=1024px) par chhupane wala rule missing/
        galat hai, is liye bottom-nav bar desktop par bhi dikh rahi hai.
     2) Sheets (#adminMenuSheet / #adminQuickSheet / backdrop) ka
        "by default chhupa hua" state missing/galat hai, is liye wo
        bina .open class ke bhi khuli/visible nazar aa rahi hain.

   Ye patch in dono cheezon ko theek karta hai, bina asal CSS file
   ko chhue -- isliye "!important" istemal kiya gaya hai aur ye file
   sab se aakhir mein load honi chahiye taake cascade mein jeete.
   ===================================================================== */

/* ---------------------------------------------------------------------
   1. ADMIN BOTTOM NAV (.admin-nav)  ·  Home / Students / Add / Fees / Menu
   ---------------------------------------------------------------------
   Ye sirf mobile/tablet (1024px se neeche) ke liye honi chahiye.
   Desktop par poori tarah gayab. */
@media (min-width: 1024px) {
    .admin-nav {
        display: none !important;
    }
}

/* Mobile/tablet par confirm karte hain ke ye theek se fixed bottom
   bar ki tarah dikhe (agar asal file mein ye missing ho to bhi
   layout na toote) */
@media (max-width: 1023.98px) {
    .admin-nav {
        position: fixed;
        left: 0; right: 0; bottom: 0;
        z-index: 500;
    }
}

/* ---------------------------------------------------------------------
   2. ADMIN SHEETS  ·  #adminMenuSheet, #adminQuickSheet
   ---------------------------------------------------------------------
   Sheet/backdrop hamesha by-default CHHUPI honi chahiye. Sirf tab
   nazar aaye jab admin-mobile.js .open class add kare (button dabane
   par). Filhal ye state missing hai isliye ye "hamesha khuli" dikh
   rahi thi -- desktop par bhi. */
#adminMenuSheet,
#adminQuickSheet {
    position: fixed !important;
    left: 0; right: 0; bottom: 0;
    z-index: 1000;
    max-height: 85vh;
    overflow-y: auto;
    background: #fff;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -8px 30px rgba(21,42,74,.18);

    /* by-default screen ke bahar/chhupi hui */
    transform: translateY(100%) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transition: transform .25s cubic-bezier(.32,.72,0,1),
                opacity .2s ease,
                visibility 0s linear .25s;
}

/* .open class lagte hi (JS is se kholti hai) -- sheet nazar aa jaye */
#adminMenuSheet.open,
#adminQuickSheet.open {
    transform: translateY(0) !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transition: transform .25s cubic-bezier(.32,.72,0,1),
                opacity .2s ease,
                visibility 0s;
}

/* ---------------------------------------------------------------------
   3. BACKDROP  ·  #adminSheetBackdrop
   ---------------------------------------------------------------------
   Sheet khulte waqt peeche wala dark overlay -- ye bhi by-default
   chhupa hona chahiye, sirf .open lagne par nazar aaye. */
#adminSheetBackdrop {
    position: fixed !important;
    inset: 0 !important;
    z-index: 900;
    background: rgba(16,25,42,.45);

    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transition: opacity .2s ease, visibility 0s linear .2s;
}
#adminSheetBackdrop.open {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transition: opacity .2s ease, visibility 0s;
}

/* ---------------------------------------------------------------------
   4. SHEETS + BACKDROP  ·  DESKTOP PAR MUKAMMAL BAND
   ---------------------------------------------------------------------
   1024px aur upar in dono mobile drawers ka koi kaam nahi -- chahe
   .open class lagi ho ya na ho, desktop par ye hamesha gayab rahengi.
   (Extra safety, sabse zaroori rule.) */
@media (min-width: 1024px) {
    #adminMenuSheet,
    #adminQuickSheet,
    #adminSheetBackdrop {
        display: none !important;
    }
}
/* =====================================================================
   ADMIN MOBILE PATCH  ·  admin-mobile-patch.css
   ---------------------------------------------------------------------
   YE FILE KAHAN LAGANI HAI:
   Apne admin panel ke <head> mein, SAB SE AAKHRI CSS <link> ke BAAD
   ye line add karein (isse baad koi aur CSS file na ho):

       <link rel="stylesheet" href="/assets/css/admin-mobile-patch.css">

   (path apne project ke hisab se adjust kar lein)

   WAJAH:
   admin-mobile.js sirf itna karti hai:
       el.classList.add('open')   /  el.classList.remove('open')
   Iska matlab kahin na kahin CSS mein ye classes/IDs already defined
   HAIN (.admin-nav, #adminMenuSheet, #adminQuickSheet,
   #adminSheetBackdrop) -- lekin us CSS mein:
     1) .admin-nav ko desktop (>=1024px) par chhupane wala rule missing/
        galat hai, is liye bottom-nav bar desktop par bhi dikh rahi hai.
     2) Sheets (#adminMenuSheet / #adminQuickSheet / backdrop) ka
        "by default chhupa hua" state missing/galat hai, is liye wo
        bina .open class ke bhi khuli/visible nazar aa rahi hain.

   Ye patch in dono cheezon ko theek karta hai, bina asal CSS file
   ko chhue -- isliye "!important" istemal kiya gaya hai aur ye file
   sab se aakhir mein load honi chahiye taake cascade mein jeete.
   ===================================================================== */

/* ---------------------------------------------------------------------
   1. ADMIN BOTTOM NAV (.admin-nav)  ·  Home / Students / Add / Fees / Menu
   ---------------------------------------------------------------------
   Ye sirf mobile/tablet (1024px se neeche) ke liye honi chahiye.
   Desktop par poori tarah gayab. */
@media (min-width: 1024px) {
    .admin-nav {
        display: none !important;
    }
}

/* Mobile/tablet par confirm karte hain ke ye theek se fixed bottom
   bar ki tarah dikhe (agar asal file mein ye missing ho to bhi
   layout na toote) */
@media (max-width: 1023.98px) {
    .admin-nav {
        position: fixed;
        left: 0; right: 0; bottom: 0;
        z-index: 500;
    }
}

/* ---------------------------------------------------------------------
   2. ADMIN SHEETS  ·  #adminMenuSheet, #adminQuickSheet
   ---------------------------------------------------------------------
   Sheet/backdrop hamesha by-default CHHUPI honi chahiye. Sirf tab
   nazar aaye jab admin-mobile.js .open class add kare (button dabane
   par). Filhal ye state missing hai isliye ye "hamesha khuli" dikh
   rahi thi -- desktop par bhi. */
#adminMenuSheet,
#adminQuickSheet {
    position: fixed !important;
    left: 0; right: 0; bottom: 0;
    z-index: 1000;
    max-height: 85vh;
    overflow-y: auto;
    background: #fff;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -8px 30px rgba(21,42,74,.18);

    /* by-default screen ke bahar/chhupi hui */
    transform: translateY(100%) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transition: transform .25s cubic-bezier(.32,.72,0,1),
                opacity .2s ease,
                visibility 0s linear .25s;
}

/* .open class lagte hi (JS is se kholti hai) -- sheet nazar aa jaye */
#adminMenuSheet.open,
#adminQuickSheet.open {
    transform: translateY(0) !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transition: transform .25s cubic-bezier(.32,.72,0,1),
                opacity .2s ease,
                visibility 0s;
}

/* ---------------------------------------------------------------------
   3. BACKDROP  ·  #adminSheetBackdrop
   ---------------------------------------------------------------------
   Sheet khulte waqt peeche wala dark overlay -- ye bhi by-default
   chhupa hona chahiye, sirf .open lagne par nazar aaye. */
#adminSheetBackdrop {
    position: fixed !important;
    inset: 0 !important;
    z-index: 900;
    background: rgba(16,25,42,.45);

    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transition: opacity .2s ease, visibility 0s linear .2s;
}
#adminSheetBackdrop.open {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transition: opacity .2s ease, visibility 0s;
}

/* ---------------------------------------------------------------------
   4. SHEETS + BACKDROP  ·  DESKTOP PAR MUKAMMAL BAND
   ---------------------------------------------------------------------
   1024px aur upar in dono mobile drawers ka koi kaam nahi -- chahe
   .open class lagi ho ya na ho, desktop par ye hamesha gayab rahengi.
   (Extra safety, sabse zaroori rule.) */
@media (min-width: 1024px) {
    #adminMenuSheet,
    #adminQuickSheet,
    #adminSheetBackdrop {
        display: none !important;
    }
}

/* ---------------------------------------------------------------------
   5. OFFLINE BAR  ·  .a-offline
   ---------------------------------------------------------------------
   admin-mobile.js ka initOffline() ye <div class="a-offline"> ko
   HAMESHA body mein append kar deta hai (mobile ho ya desktop, online
   ho ya offline) -- sirf ".show" class se iski visibility control
   hoti hai (dekhen JS ka sync() function: bar.classList.toggle('show', off)).

   Isi wajah se ye bilkul .admin-nav / #adminMenuSheet wale bug jaisi
   hai: agar asal CSS mein by-default "chhupi hui" state missing/galat
   hai, to ye patti hamesha nazar aati rehti hai -- chahe internet
   theek chal raha ho aur chahe desktop pe ho. */
.a-offline {
    position: fixed !important;
    left: 0; right: 0;
    top: 0;
    z-index: 950;
    text-align: center;
    padding: 8px 14px;
    font-size: 12.5px;
    font-weight: 600;
    color: #fff;
    background: #D4892B; /* warning color, style.css ke --warning se milta */

    /* by-default gayab -- sirf .show lagne par nazar aaye */
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translateY(-8px);
    transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
}
.a-offline.show {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: none;
    transition: opacity .2s ease, transform .2s ease, visibility 0s;
}

/* ===== WINGS · Dark mode (mobile admin shell) ===== */
@media (max-width: 1023.98px) {
    html[data-theme="dark"] {
        --a-bg:        #080D1C;
        --a-surface:   #101A33;
        --a-border:    #253157;
        --a-line:      #1C2745;
        --a-ink:       #E9EFFB;
        --a-navy:      #7D97FF;
        --a-navy-2:    #93A9FF;
        --a-gold:      #4FB6F5;
        --a-gold-soft: rgba(79,182,245,.16);
        --a-muted:     #9BAACA;
        --a-faint:     #6E7EA1;
        --a-shadow:    0 1px 2px rgba(0,0,0,.4), 0 3px 14px rgba(0,0,0,.34);
    }
}

/* ==========================================================================
   DAFTAR · MOBILE LAYER
   Wahi zaban jo desktop par hai — flat siyahi, hairline, perforation —
   magar angoothe ke liye. Har rule 1024px se NEECHE.
   ========================================================================== */
@media (max-width: 1023.98px) {

    :root {
        --a-bg:        #EDF0F5;
        --a-surface:   #FFFFFF;
        --a-border:    #D6DDE9;
        --a-line:      #E7ECF4;
        --a-ink:       #0D1B2E;
        --a-navy:      #1F3A6E;
        --a-navy-2:    #2E5296;
        --a-gold:      #0B7FD4;
        --a-gold-soft: #E4F0FA;
        --a-muted:     #4B5C77;
        --a-faint:     #8494AC;
        --a-danger:    #C8384A;
        --a-success:   #0E7A5F;
        --a-warning:   #B87400;
        --a-r:    6px;
        --a-r-sm: 4px;
        --a-r-lg: 8px;
        --a-shadow: none;
        --a-pop: 0 -8px 34px rgba(13,27,46,.14);
        --a-perf: repeating-linear-gradient(to right, var(--a-border) 0 4px, transparent 4px 9px);
    }

    body.admin-app { background: var(--a-bg); font-family: var(--font-body); }
    body.admin-app .content { padding: 14px 13px calc(var(--a-nav-h) + var(--a-safe-b) + 22px); }

    /* ---- Topbar ---- */
    body.admin-app .topbar {
        background: var(--a-surface);
        backdrop-filter: none; -webkit-backdrop-filter: none;
        border-bottom: 1px solid var(--a-border); box-shadow: none;
    }
    body.admin-app .topbar::after {
        content: ''; position: absolute; left: 0; right: 0; bottom: -3px;
        height: 1px; background: var(--a-perf);
    }
    body.admin-app .page-title {
        font-family: var(--font-display); font-weight: 700;
        letter-spacing: -.03em; color: var(--a-ink);
    }
    body.admin-app .session-badge {
        font-family: var(--font-mono); font-size: 8.5px; letter-spacing: .12em;
        background: transparent; border: 1px solid var(--a-border);
        border-radius: 3px; color: var(--a-faint);
    }
    body.admin-app .mobile-toggle,
    body.admin-app .icon-btn,
    body.admin-app .theme-btn {
        border-radius: var(--a-r-sm); background: transparent;
        border: 1px solid transparent; color: var(--a-muted);
    }
    body.admin-app .mobile-toggle:active,
    body.admin-app .icon-btn:active { transform: none; background: var(--a-gold-soft); }
    body.admin-app .avatar-sm, body.admin-app .profile-btn .avatar-sm {
        border-radius: var(--a-r-sm); background: var(--a-navy);
        font-family: var(--font-display); font-weight: 700;
    }
    body.admin-app .profile-btn { border-radius: var(--a-r-sm); border: 1px solid var(--a-border); }

    /* ---- Cards ---- */
    body.admin-app .card, body.admin-app .chart-card {
        border-radius: var(--a-r); border: 1px solid var(--a-border);
        box-shadow: none; padding: 13px 14px; margin-bottom: 12px; overflow: hidden;
    }
    body.admin-app .card::before, body.admin-app .chart-card::before { display: none; }
    body.admin-app .card > .card-title, body.admin-app .chart-card > .card-title {
        margin: -13px -14px 12px; padding: 11px 14px 10px;
        font-family: var(--font-display); font-size: 12px; font-weight: 700;
        border-bottom: 1px solid var(--a-border); position: relative;
    }
    body.admin-app .card > .card-title::after {
        content: ''; position: absolute; left: 0; right: 0; bottom: -3px;
        height: 1px; background: var(--a-perf);
    }
    body.admin-app .card > .table-wrap { margin: 0 -14px -13px; border: none; border-radius: 0; }
    body.admin-app .card-title .see-all {
        font-family: var(--font-mono); font-size: 8.5px;
        letter-spacing: .1em; color: var(--a-gold); text-transform: uppercase;
    }

    /* ---- Hero sheet ---- */
    body.admin-app .welcome-banner {
        background: var(--a-surface); border: 1px solid var(--a-border);
        border-radius: var(--a-r); padding: 15px 15px 16px; color: var(--a-ink); box-shadow: none;
    }
    body.admin-app .welcome-banner h2 { font-size: 16px; font-family: var(--font-display); font-weight: 700; }
    body.admin-app .welcome-banner p { font-size: 12px; color: var(--a-muted); }
    body.admin-app .welcome-banner .hero-eyebrow {
        font-family: var(--font-mono); font-size: 8.5px; letter-spacing: .18em;
        color: var(--a-faint); margin-bottom: 8px;
    }
    body.admin-app .welcome-banner .hero-actions {
        display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 13px;
    }
    body.admin-app .welcome-banner .hero-chip {
        border-radius: var(--a-r-sm) !important; margin: 0;
        border: 1px solid var(--a-border); background: transparent;
        color: var(--a-muted); justify-content: flex-start; font-size: 11.5px; padding: 9px 11px;
    }
    body.admin-app .welcome-banner .hero-chip:active { background: var(--a-gold-soft); }

    /* ---- KPI: do ka register ---- */
    body.admin-app .kpi-row {
        display: grid; grid-template-columns: 1fr 1fr; gap: 0;
        border: 1px solid var(--a-border); border-radius: var(--a-r);
        overflow: hidden; background: var(--a-surface); margin-bottom: 12px;
    }
    body.admin-app .kpi-card {
        padding: 13px 13px 14px; border: none; border-radius: 0;
        border-right: 1px solid var(--a-line); border-bottom: 1px solid var(--a-line);
        background: var(--a-surface); box-shadow: none;
    }
    body.admin-app .kpi-card:nth-child(2n) { border-right: none; }
    body.admin-app .kpi-card:nth-last-child(-n+2) { border-bottom: none; }
    body.admin-app .kpi-card .kpi-value { font-family: var(--font-display); font-size: 20px; font-weight: 700; letter-spacing: -.04em; }
    body.admin-app .kpi-card .kpi-label { font-family: var(--font-mono); font-size: 8px; letter-spacing: .13em; margin-top: 6px; }
    body.admin-app .kpi-card .kpi-icon { width: 24px; height: 24px; border-radius: var(--a-r-sm); font-size: 12px; }
    body.admin-app .kpi-card .kpi-trend { font-size: 8px; padding: 2px 5px; }

    /* ---- Today strip: do columns ---- */
    body.admin-app .today-strip {
        grid-template-columns: 1fr 1fr; gap: 0;
        border: 1px solid var(--a-border); border-radius: var(--a-r); overflow: hidden;
    }
    body.admin-app .today-strip .today-item {
        border-right: 1px solid var(--a-line); border-bottom: 1px solid var(--a-line);
        padding: 11px 13px;
    }
    body.admin-app .today-strip .today-item:nth-child(2n) { border-right: none; }
    body.admin-app .today-strip .today-item:nth-last-child(-n+2) { border-bottom: none; }
    body.admin-app .today-strip .today-item .n { font-size: 16px; }

    /* ---- Table rows -> register slips ---- */
    body.admin-app .table-wrap { border-radius: var(--a-r); box-shadow: none; border: 1px solid var(--a-border); }
    body.admin-app table.data-table tbody tr {
        border-bottom: 1px solid var(--a-line); border-radius: 0; box-shadow: none;
        background: var(--a-surface); margin: 0; padding: 11px 13px;
    }
    body.admin-app table.data-table tbody tr:nth-child(even) { background: #FAFBFD; }
    body.admin-app table.data-table tbody td { border: none; }

    /* ---- Buttons ---- */
    body.admin-app .btn {
        border-radius: var(--a-r-sm); min-height: 42px;
        font-family: var(--font-body); font-weight: 600; text-transform: none; letter-spacing: 0;
    }
    body.admin-app .btn-primary { background: var(--a-gold); box-shadow: none; }
    body.admin-app .btn:active { transform: scale(.99); }

    /* ---- Inputs: iOS zoom rokne ke liye 16px ---- */
    body.admin-app input, body.admin-app select, body.admin-app textarea {
        font-size: 16px; border-radius: var(--a-r-sm); font-family: var(--font-body);
    }

    /* ---- Bottom nav: daftar ki patti ---- */
    .admin-nav {
        background: var(--a-surface);
        backdrop-filter: none; -webkit-backdrop-filter: none;
        border-top: 1px solid var(--a-border);
        box-shadow: 0 -1px 12px rgba(13,27,46,.05);
    }
    .admin-nav::before {
        content: ''; position: absolute; top: 2px; left: 0; right: 0;
        height: 1px; background: var(--a-perf);
    }
    .admin-nav-item {
        font-family: var(--font-mono); font-size: 8.5px; font-weight: 600;
        letter-spacing: .05em; text-transform: uppercase; color: var(--a-faint);
    }
    .admin-nav-item svg { stroke-width: 1.9; }
    .admin-nav-item.active { color: var(--a-gold); }
    .admin-nav-item.active::before {
        width: 20px; height: 2px; border-radius: 0 0 2px 2px; background: var(--a-gold);
    }
    .admin-nav-item.fab .fab-circle {
        border-radius: var(--a-r); background: var(--a-gold);
        box-shadow: 0 3px 12px rgba(11,127,212,.3);
    }

    /* ---- Menu sheet ---- */
    .admin-sheet {
        border-radius: var(--a-r-lg) var(--a-r-lg) 0 0;
        background: var(--a-surface); box-shadow: var(--a-pop);
        border-top: 1px solid var(--a-border);
    }
    .admin-sheet-handle { background: var(--a-border); border-radius: 2px; }
    .admin-sheet-head {
        font-family: var(--font-display); font-weight: 700;
        border-bottom: 1px solid var(--a-border);
    }
    .admin-sheet-search input {
        border-radius: var(--a-r-sm); border: 1px solid var(--a-border);
        background: #F5F7FB; font-family: var(--font-body); font-size: 16px;
    }
    .admin-sheet-search input:focus {
        border-color: var(--a-gold); box-shadow: 0 0 0 3px rgba(11,127,212,.14); outline: none;
    }
    .admin-sheet-label {
        font-family: var(--font-mono); font-size: 8.5px; font-weight: 600;
        letter-spacing: .2em; text-transform: uppercase; color: var(--a-faint);
        position: relative; padding-top: 14px;
    }
    .admin-sheet-label::before {
        content: ''; position: absolute; top: 4px; left: 0; right: 0;
        height: 1px; background: var(--a-perf);
    }
    .admin-sheet-link {
        border-radius: var(--a-r-sm); font-family: var(--font-body);
        font-size: 14px; font-weight: 500; color: var(--a-ink);
    }
    .admin-sheet-link:active { background: var(--a-gold-soft); }
    .admin-sheet-link.active { background: var(--a-gold-soft); color: var(--a-gold); font-weight: 700; }
    .admin-quick-grid a { border-radius: var(--a-r); border: 1px solid var(--a-border); background: var(--a-surface); }
    .admin-quick-grid a:active { background: var(--a-gold-soft); }
    .a-toast { border-radius: var(--a-r); background: var(--a-ink); border-left: 3px solid var(--a-gold); }
    .a-skel, .a-skel-card { border-radius: var(--a-r); }
}

/* ---- Mobile dark ---- */
@media (max-width: 1023.98px) {
    html[data-theme="dark"] {
        --a-bg:        #0B1220;
        --a-surface:   #121B2C;
        --a-border:    #26334A;
        --a-line:      #1D2839;
        --a-ink:       #E6EDF8;
        --a-navy:      #2E5296;
        --a-navy-2:    #4470C4;
        --a-gold:      #3FA3E8;
        --a-gold-soft: #14293F;
        --a-muted:     #97A6BE;
        --a-faint:     #6B7B95;
        --a-danger:    #E4707E;
        --a-success:   #3FBF9B;
        --a-warning:   #D9A03C;
        --a-pop:       0 -10px 38px rgba(0,0,0,.6);
        --a-perf: repeating-linear-gradient(to right, #26334A 0 4px, transparent 4px 9px);
    }
    html[data-theme="dark"] body.admin-app table.data-table tbody tr:nth-child(even) { background: rgba(255,255,255,.018); }
    html[data-theme="dark"] .admin-sheet-search input { background: #172236; color: var(--a-ink); }
    html[data-theme="dark"] body.admin-app .btn-primary { color: #06121F; }
}
