/* =====================================================================
   CRACKERS DEMO — Admin Dashboard Theme
   Layered on top of CoreUI 5 (Bootstrap 5 compatible)
   Dark sidebar · Glass topbar · Light + Dark mode
   ===================================================================== */

:root {
    --a-brand-1: #e63946;
    --a-brand-2: #ff6b35;
    --a-grad: linear-gradient(135deg, #e63946, #ff6b35);
    --a-grad-2: linear-gradient(135deg, #7209b7, #4361ee);
    --a-grad-3: linear-gradient(135deg, #06d6a0, #1b9aaa);
    --a-grad-4: linear-gradient(135deg, #f7971e, #ffd200);

    --a-bg: #f4f6fb;
    --a-surface: #ffffff;
    --a-surface-2: #f1f4fa;
    --a-text: #1b1f2b;
    --a-text-soft: #5c6478;
    --a-text-mute: #8b91a3;
    --a-border: #e5e9f2;

    --a-sidebar: #10131c;
    --a-sidebar-2: #171b28;
    --a-sidebar-text: #99a1b7;

    --a-radius: 16px;
    --a-radius-lg: 22px;
    --a-shadow: 0 6px 24px rgba(20, 22, 31, .07);
    --a-shadow-lg: 0 18px 50px rgba(20, 22, 31, .13);
    --a-ease: cubic-bezier(.22, 1, .36, 1);
    --a-sidebar-w: 262px;
    --font: 'Poppins', 'Segoe UI', system-ui, sans-serif;
}

[data-theme="dark"] {
    --a-bg: #0b0e15;
    --a-surface: #141824;
    --a-surface-2: #1b2030;
    --a-text: #edf0f7;
    --a-text-soft: #a4acc0;
    --a-text-mute: #767e94;
    --a-border: #242a3a;
    --a-sidebar: #0a0d14;
    --a-sidebar-2: #12161f;
    --a-shadow: 0 6px 24px rgba(0, 0, 0, .4);
    --a-shadow-lg: 0 18px 50px rgba(0, 0, 0, .6);
}

/* ---------------------------------------------------------------------
   Base
   ------------------------------------------------------------------- */
body.admin-body {
    font-family: var(--font);
    background-color: var(--a-bg);
    color: var(--a-text);
    min-height: 100vh;
    /* Transition background-color, not the `background` shorthand — the
       shorthand leaves the body stuck on the previous theme colour. */
    transition: background-color .3s var(--a-ease), color .3s var(--a-ease);
}
/* Applied for one frame while the theme swaps (see admin.js applyTheme). */
.theme-switching, .theme-switching *, .theme-switching *::before, .theme-switching *::after {
    transition: none !important;
}

.admin-body a { text-decoration: none; }
.admin-body h1, .admin-body h2, .admin-body h3,
.admin-body h4, .admin-body h5, .admin-body h6 { font-weight: 700; letter-spacing: -.015em; }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(140, 148, 170, .45); border-radius: 8px; }

/* ---------------------------------------------------------------------
   Sidebar
   ------------------------------------------------------------------- */
.admin-sidebar {
    position: fixed; top: 0; left: 0; bottom: 0; width: var(--a-sidebar-w); z-index: 1045;
    background: var(--a-sidebar); color: var(--a-sidebar-text);
    display: flex; flex-direction: column;
    transition: transform .35s var(--a-ease);
    border-right: 1px solid rgba(255, 255, 255, .05);
}
.admin-sidebar .sb-brand {
    display: flex; align-items: center; gap: 12px; padding: 20px 22px;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.admin-sidebar .sb-brand .mark {
    width: 42px; height: 42px; border-radius: 13px; background: var(--a-grad); color: #fff;
    display: grid; place-items: center; font-size: 1.15rem; flex: 0 0 42px;
    box-shadow: 0 8px 20px rgba(230, 57, 70, .38);
}
.admin-sidebar .sb-brand strong { color: #fff; font-size: 1rem; display: block; line-height: 1.2; }
.admin-sidebar .sb-brand small { font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; opacity: .55; }

.sb-scroll { flex: 1; overflow-y: auto; padding: 14px 12px 26px; }
.sb-label {
    font-size: .66rem; letter-spacing: .18em; text-transform: uppercase;
    color: #5b6480; padding: 16px 14px 8px; font-weight: 700;
}
.sb-link {
    display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 12px;
    color: var(--a-sidebar-text); font-size: .89rem; font-weight: 500; margin-bottom: 3px;
    transition: all .25s var(--a-ease); position: relative;
}
.sb-link i.sb-ico { width: 20px; text-align: center; font-size: .95rem; }
.sb-link:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.sb-link.active { background: var(--a-grad); color: #fff; box-shadow: 0 8px 22px rgba(230, 57, 70, .35); }
.sb-link .sb-badge {
    margin-left: auto; font-size: .68rem; font-weight: 700; padding: 2px 8px; border-radius: 50px;
    background: rgba(255, 255, 255, .14); color: #fff;
}
.sb-link.active .sb-badge { background: rgba(0, 0, 0, .22); }

.sb-foot { padding: 14px 18px; border-top: 1px solid rgba(255, 255, 255, .06); font-size: .72rem; color: #5b6480; }
.sb-foot strong { color: #98a0b6; }

.admin-sidebar.collapsed { transform: translateX(-100%); }
.sidebar-backdrop {
    position: fixed; inset: 0; background: rgba(0, 0, 0, .45); z-index: 1040;
    opacity: 0; visibility: hidden; transition: all .3s var(--a-ease);
}
.sidebar-backdrop.show { opacity: 1; visibility: visible; }

/* ---------------------------------------------------------------------
   Main area + topbar
   ------------------------------------------------------------------- */
.admin-main { margin-left: var(--a-sidebar-w); min-height: 100vh; transition: margin .35s var(--a-ease); display: flex; flex-direction: column; }
.admin-main.expanded { margin-left: 0; }

.admin-topbar {
    position: sticky; top: 0; z-index: 1030; padding: 12px 24px;
    background: color-mix(in srgb, var(--a-surface) 82%, transparent);
    backdrop-filter: blur(16px) saturate(160%);
    border-bottom: 1px solid var(--a-border);
    display: flex; align-items: center; gap: 14px;
}
.topbar-btn {
    width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--a-border);
    background: var(--a-surface-2); color: var(--a-text); display: grid; place-items: center;
    position: relative; transition: all .25s var(--a-ease); flex: 0 0 40px;
}
.topbar-btn:hover { background: var(--a-grad); color: #fff; border-color: transparent; }
.topbar-btn .dot {
    position: absolute; top: 8px; right: 9px; width: 8px; height: 8px; border-radius: 50%;
    background: var(--a-brand-1); border: 2px solid var(--a-surface);
}
.topbar-search { position: relative; max-width: 340px; flex: 1; }
.topbar-search input {
    width: 100%; border-radius: 12px; border: 1px solid var(--a-border); background: var(--a-surface-2);
    color: var(--a-text); padding: .55rem 1rem .55rem 2.5rem; font-size: .88rem;
}
.topbar-search input:focus { outline: none; border-color: var(--a-brand-1); }
.topbar-search i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--a-text-mute); font-size: .85rem; }

.admin-user {
    display: flex; align-items: center; gap: 10px; padding: 5px 12px 5px 5px; border-radius: 50px;
    background: var(--a-surface-2); border: 1px solid var(--a-border); color: var(--a-text);
}
.admin-user:hover { color: var(--a-text); border-color: var(--a-brand-1); }
.admin-user .avatar {
    width: 34px; height: 34px; border-radius: 50%; background: var(--a-grad); color: #fff;
    display: grid; place-items: center; font-weight: 700; font-size: .82rem; flex: 0 0 34px; overflow: hidden;
}
.admin-user .avatar img { width: 100%; height: 100%; object-fit: cover; }
.admin-user .who { line-height: 1.15; }
.admin-user .who strong { font-size: .84rem; display: block; }
.admin-user .who small { font-size: .68rem; color: var(--a-text-mute); text-transform: capitalize; }

.admin-content { padding: 26px 24px 40px; flex: 1; }

/* Page head */
.page-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 22px; }
.page-head h1 { font-size: 1.42rem; margin: 0 0 4px; }
.page-head .breadcrumb { margin: 0; font-size: .8rem; }
.page-head .breadcrumb a { color: var(--a-text-mute); }
.page-head .breadcrumb .active { color: var(--a-brand-1); }

/* ---------------------------------------------------------------------
   Cards
   ------------------------------------------------------------------- */
.a-card {
    background: var(--a-surface); border: 1px solid var(--a-border); border-radius: var(--a-radius-lg);
    box-shadow: var(--a-shadow); overflow: hidden;
}
.a-card-head {
    padding: 18px 22px; border-bottom: 1px solid var(--a-border);
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
}
.a-card-head h6 { margin: 0; font-size: .98rem; }
.a-card-head p { margin: 2px 0 0; font-size: .78rem; color: var(--a-text-mute); }
.a-card-body { padding: 22px; }

/* Stat cards */
.stat-card {
    position: relative; overflow: hidden; border-radius: var(--a-radius-lg); padding: 22px;
    color: #fff; box-shadow: var(--a-shadow); height: 100%;
    transition: transform .35s var(--a-ease), box-shadow .35s var(--a-ease);
}
.stat-card:hover { transform: translateY(-5px); box-shadow: var(--a-shadow-lg); }
.stat-card::after {
    content: ''; position: absolute; right: -34px; top: -34px; width: 140px; height: 140px;
    border-radius: 50%; background: rgba(255, 255, 255, .13);
}
.stat-card::before {
    content: ''; position: absolute; right: 16px; bottom: -46px; width: 96px; height: 96px;
    border-radius: 50%; background: rgba(255, 255, 255, .1);
}
.stat-card.g1 { background: var(--a-grad); }
.stat-card.g2 { background: var(--a-grad-2); }
.stat-card.g3 { background: var(--a-grad-3); }
.stat-card.g4 { background: var(--a-grad-4); color: #4a3200; }
.stat-card .sc-icon {
    width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
    background: rgba(255, 255, 255, .2); font-size: 1.15rem; margin-bottom: 14px; position: relative; z-index: 2;
}
.stat-card h3 { font-size: 1.85rem; margin: 0 0 2px; position: relative; z-index: 2; }
.stat-card span { font-size: .82rem; opacity: .9; position: relative; z-index: 2; }
.stat-card .sc-trend { font-size: .74rem; margin-top: 10px; position: relative; z-index: 2; opacity: .95; }

/* Mini stat (light) */
.mini-stat {
    background: var(--a-surface); border: 1px solid var(--a-border); border-radius: var(--a-radius);
    padding: 18px; display: flex; align-items: center; gap: 14px; height: 100%;
    transition: all .3s var(--a-ease);
}
.mini-stat:hover { box-shadow: var(--a-shadow); transform: translateY(-3px); }
.mini-stat .ms-icon {
    width: 46px; height: 46px; flex: 0 0 46px; border-radius: 14px; display: grid; place-items: center;
    font-size: 1.05rem; color: #fff;
}
.mini-stat h4 { margin: 0; font-size: 1.3rem; }
.mini-stat span { font-size: .78rem; color: var(--a-text-mute); }

/* ---------------------------------------------------------------------
   Tables
   ------------------------------------------------------------------- */
.a-table { width: 100%; margin: 0; color: var(--a-text); }
.a-table thead th {
    background: var(--a-surface-2); color: var(--a-text-mute); font-size: .72rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .08em; padding: 13px 16px; border: none; white-space: nowrap;
}
.a-table tbody td { padding: 14px 16px; border-top: 1px solid var(--a-border); vertical-align: middle; font-size: .88rem; }
.a-table tbody tr { transition: background .2s var(--a-ease); }
.a-table tbody tr:hover { background: var(--a-surface-2); }
.a-table .thumb { width: 44px; height: 44px; border-radius: 11px; object-fit: cover; }
.a-table .prod-name { font-weight: 600; color: var(--a-text); }
.a-table .sub { font-size: .74rem; color: var(--a-text-mute); }

.table-actions { display: flex; gap: 6px; justify-content: flex-end; }
.act-btn {
    width: 32px; height: 32px; border-radius: 9px; border: 1px solid var(--a-border);
    background: var(--a-surface-2); color: var(--a-text-soft); display: grid; place-items: center;
    font-size: .78rem; transition: all .25s var(--a-ease);
}
.act-btn:hover { color: #fff; border-color: transparent; }
.act-view:hover { background: #3a86ff; }
.act-edit:hover { background: #f59e0b; }
.act-del:hover { background: #ef4444; }
.act-print:hover { background: #6366f1; }
.act-wa:hover { background: #25d366; }

/* ---------------------------------------------------------------------
   Forms
   ------------------------------------------------------------------- */
.admin-body .form-control, .admin-body .form-select {
    border-radius: 12px; border: 1px solid var(--a-border); background: var(--a-surface-2);
    color: var(--a-text); padding: .62rem .9rem; font-size: .89rem;
}
.admin-body .form-control:focus, .admin-body .form-select:focus {
    background: var(--a-surface); border-color: var(--a-brand-1); color: var(--a-text);
    box-shadow: 0 0 0 3px rgba(230, 57, 70, .12);
}
.admin-body .form-control::placeholder { color: var(--a-text-mute); }
.admin-body .form-label { font-size: .8rem; font-weight: 600; color: var(--a-text-soft); margin-bottom: .35rem; }
.admin-body .form-check-input:checked { background-color: var(--a-brand-1); border-color: var(--a-brand-1); }
.admin-body .input-group-text { background: var(--a-surface-2); border-color: var(--a-border); color: var(--a-text-mute); border-radius: 12px; }

.admin-body .btn { border-radius: 12px; font-weight: 600; font-size: .88rem; padding: .58rem 1.25rem; transition: all .3s var(--a-ease); }
.btn-a-primary { background: var(--a-grad); color: #fff; border: none; box-shadow: 0 8px 22px rgba(230, 57, 70, .3); }
.btn-a-primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 12px 28px rgba(230, 57, 70, .4); }
.btn-a-ghost { background: var(--a-surface-2); color: var(--a-text); border: 1px solid var(--a-border); }
.btn-a-ghost:hover { background: var(--a-text); color: var(--a-surface); }
.btn-a-soft { background: rgba(230, 57, 70, .1); color: var(--a-brand-1); border: none; }
.btn-a-soft:hover { background: var(--a-brand-1); color: #fff; }

/* Image upload / drop zone */
.dropzone {
    border: 2px dashed var(--a-border); border-radius: var(--a-radius); padding: 26px; text-align: center;
    background: var(--a-surface-2); cursor: pointer; transition: all .3s var(--a-ease);
}
.dropzone:hover, .dropzone.dragover { border-color: var(--a-brand-1); background: rgba(230, 57, 70, .06); }
.dropzone i { font-size: 1.9rem; color: var(--a-text-mute); margin-bottom: 10px; display: block; }
.dropzone p { margin: 0; font-size: .84rem; color: var(--a-text-mute); }
.dropzone strong { color: var(--a-brand-1); }

.img-preview-grid { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.img-preview {
    position: relative; width: 92px; height: 92px; border-radius: 13px; overflow: hidden;
    border: 1px solid var(--a-border);
}
.img-preview img { width: 100%; height: 100%; object-fit: cover; }
.img-preview .rm {
    position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%;
    background: rgba(239, 68, 68, .92); color: #fff; border: none; display: grid; place-items: center; font-size: .65rem;
}
.img-preview .main-tag {
    position: absolute; bottom: 0; left: 0; right: 0; background: rgba(0, 0, 0, .65); color: #fff;
    font-size: .6rem; text-align: center; padding: 2px; text-transform: uppercase; letter-spacing: .08em;
}

/* ---------------------------------------------------------------------
   Badges, chips, misc
   ------------------------------------------------------------------- */
.badge-status { font-weight: 600; padding: .42em .85em; border-radius: 50px; font-size: .72rem; white-space: nowrap; }
.badge-warning { background: rgba(245, 158, 11, .16); color: #d97706; }
.badge-info { background: rgba(14, 165, 233, .16); color: #0284c7; }
.badge-primary { background: rgba(99, 102, 241, .16); color: #4f46e5; }
.badge-purple { background: rgba(168, 85, 247, .16); color: #9333ea; }
.badge-success { background: rgba(16, 185, 129, .16); color: #059669; }
.badge-danger { background: rgba(239, 68, 68, .16); color: #dc2626; }
.badge-secondary { background: rgba(107, 114, 128, .16); color: #6b7280; }

.chip-toggle { cursor: pointer; user-select: none; }

/* Order timeline */
.o-timeline { position: relative; padding-left: 30px; }
.o-timeline::before { content: ''; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 2px; background: var(--a-border); }
.o-timeline .ot-item { position: relative; padding-bottom: 22px; }
.o-timeline .ot-item::before {
    content: ''; position: absolute; left: -28px; top: 4px; width: 16px; height: 16px; border-radius: 50%;
    background: var(--a-grad); border: 3px solid var(--a-surface);
}
.o-timeline .ot-item h6 { font-size: .86rem; margin-bottom: 2px; }
.o-timeline .ot-item p { font-size: .78rem; color: var(--a-text-mute); margin: 0; }

/* Activity feed */
.activity-item { display: flex; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--a-border); }
.activity-item:last-child { border-bottom: none; }
.activity-item .ai-icon {
    width: 34px; height: 34px; flex: 0 0 34px; border-radius: 10px; display: grid; place-items: center;
    background: var(--a-surface-2); color: var(--a-brand-1); font-size: .8rem;
}
.activity-item .ai-body { font-size: .84rem; }
.activity-item .ai-body small { display: block; color: var(--a-text-mute); font-size: .72rem; }

/* Dropdown */
.admin-body .dropdown-menu {
    border: 1px solid var(--a-border); border-radius: var(--a-radius); box-shadow: var(--a-shadow-lg);
    background: var(--a-surface); padding: 8px; min-width: 220px;
}
.admin-body .dropdown-item { border-radius: 10px; padding: .55rem .8rem; font-size: .87rem; color: var(--a-text); }
.admin-body .dropdown-item:hover { background: var(--a-surface-2); color: var(--a-brand-1); }
.admin-body .dropdown-divider { border-color: var(--a-border); }
.admin-body .dropdown-header { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--a-text-mute); }

/* Modal */
.admin-body .modal-content { background: var(--a-surface); color: var(--a-text); border: 1px solid var(--a-border); border-radius: var(--a-radius-lg); }
.admin-body .modal-header, .admin-body .modal-footer { border-color: var(--a-border); }
[data-theme="dark"] .btn-close { filter: invert(1) grayscale(1) brightness(2); }

/* Nav pills / tabs */
.admin-body .nav-pills .nav-link { border-radius: 11px; font-size: .86rem; font-weight: 600; color: var(--a-text-soft); }
.admin-body .nav-pills .nav-link.active { background: var(--a-grad); color: #fff; }

/* Pagination */
.admin-body .pagination .page-link {
    border: 1px solid var(--a-border); background: var(--a-surface); color: var(--a-text-soft);
    margin: 0 3px; border-radius: 10px !important; min-width: 38px; text-align: center; font-size: .85rem;
}
.admin-body .pagination .page-item.active .page-link { background: var(--a-grad); border-color: transparent; color: #fff; }
.admin-body .pagination .page-item.disabled .page-link { opacity: .45; }

/* Empty state */
.a-empty { text-align: center; padding: 56px 20px; }
.a-empty i { font-size: 3rem; color: var(--a-text-mute); opacity: .3; margin-bottom: 14px; }
.a-empty h6 { margin-bottom: 6px; }
.a-empty p { color: var(--a-text-mute); font-size: .86rem; }

/* Progress bar */
.a-progress { height: 6px; border-radius: 6px; background: var(--a-surface-2); overflow: hidden; }
.a-progress .bar { height: 100%; border-radius: 6px; background: var(--a-grad); }

/* Charts */
.chart-wrap { position: relative; height: 300px; }
.chart-wrap.sm { height: 240px; }

/* ---------------------------------------------------------------------
   Login page
   ------------------------------------------------------------------- */
.login-page {
    min-height: 100vh; display: grid; place-items: center; padding: 24px;
    background: linear-gradient(150deg, #1a1a2e, #16213e 45%, #0f3460);
    position: relative; overflow: hidden;
}
.login-page::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(circle at 18% 25%, rgba(230, 57, 70, .42), transparent 42%),
                radial-gradient(circle at 82% 72%, rgba(157, 78, 221, .42), transparent 45%);
    animation: loginGlow 11s ease-in-out infinite alternate;
}
@keyframes loginGlow { from { transform: scale(1); } to { transform: scale(1.18); } }

.login-card {
    position: relative; z-index: 2; width: min(430px, 100%);
    background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .16);
    backdrop-filter: blur(22px) saturate(160%); border-radius: 26px; padding: 38px 34px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, .4); color: #fff;
}
.login-card .l-mark {
    width: 62px; height: 62px; border-radius: 20px; margin: 0 auto 18px;
    background: var(--a-grad); display: grid; place-items: center; font-size: 1.6rem; color: #fff;
    box-shadow: 0 12px 30px rgba(230, 57, 70, .45);
}
.login-card h4 { color: #fff; margin-bottom: 4px; }
.login-card p.sub { color: rgba(255, 255, 255, .66); font-size: .88rem; }
.login-card .form-control {
    background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); color: #fff;
    border-radius: 13px; padding: .78rem 1rem;
}
.login-card .form-control:focus { background: rgba(255, 255, 255, .16); border-color: var(--a-brand-2); color: #fff; box-shadow: none; }
.login-card .form-control::placeholder { color: rgba(255, 255, 255, .5); }
.login-card .input-group-text { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .18); color: rgba(255, 255, 255, .7); border-radius: 13px; }
.login-card .form-label { color: rgba(255, 255, 255, .8); }
.login-card a { color: var(--a-brand-2); }
.login-card .demo-box {
    background: rgba(255, 255, 255, .08); border: 1px dashed rgba(255, 255, 255, .22);
    border-radius: 14px; padding: 13px 16px; font-size: .8rem; color: rgba(255, 255, 255, .82);
}
.login-card .demo-box code { color: #ffd200; background: rgba(0, 0, 0, .25); padding: 1px 7px; border-radius: 6px; }

/* ---------------------------------------------------------------------
   Toasts
   ------------------------------------------------------------------- */
.a-toast-stack { position: fixed; top: 84px; right: 22px; z-index: 1090; display: flex; flex-direction: column; gap: 10px; }
.a-toast {
    display: flex; align-items: center; gap: 12px; min-width: 250px; max-width: 340px;
    background: var(--a-surface); border: 1px solid var(--a-border); border-left: 4px solid #10b981;
    border-radius: 13px; padding: 12px 16px; box-shadow: var(--a-shadow-lg); color: var(--a-text);
    animation: aToastIn .35s var(--a-ease); font-size: .86rem;
}
.a-toast.error { border-left-color: #ef4444; }
.a-toast.warning { border-left-color: #f59e0b; }
.a-toast.info { border-left-color: #3a86ff; }
.a-toast.out { animation: aToastOut .3s var(--a-ease) forwards; }
@keyframes aToastIn { from { opacity: 0; transform: translateX(50px); } to { opacity: 1; transform: none; } }
@keyframes aToastOut { to { opacity: 0; transform: translateX(50px); } }

/* Skeleton */
.a-skel {
    background: linear-gradient(90deg, var(--a-surface-2) 25%, var(--a-border) 37%, var(--a-surface-2) 63%);
    background-size: 400% 100%; animation: aShimmer 1.4s ease infinite; border-radius: 8px; height: 14px;
}
@keyframes aShimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* ---------------------------------------------------------------------
   Invoice (print)
   ------------------------------------------------------------------- */
.invoice-sheet {
    background: #fff; color: #1b1f2b; border-radius: var(--a-radius-lg); padding: 40px;
    box-shadow: var(--a-shadow); max-width: 880px; margin: 0 auto;
}
.invoice-sheet .inv-head { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 18px; border-bottom: 2px solid #eef1f7; padding-bottom: 22px; }
.invoice-sheet table { width: 100%; }
.invoice-sheet thead th { background: #f6f8fc; font-size: .74rem; text-transform: uppercase; letter-spacing: .07em; padding: 11px 12px; color: #6b7280; }
.invoice-sheet tbody td { padding: 12px; border-bottom: 1px solid #eef1f7; font-size: .88rem; }
.invoice-sheet .inv-total { font-size: 1.2rem; font-weight: 800; }

@media print {
    .no-print, .admin-sidebar, .admin-topbar { display: none !important; }
    .admin-main { margin-left: 0 !important; }
    .admin-content { padding: 0 !important; }
    body.admin-body { background: #fff !important; }
    .invoice-sheet { box-shadow: none; padding: 0; max-width: 100%; }
}

/* ---------------------------------------------------------------------
   Responsive
   ------------------------------------------------------------------- */
@media (max-width: 1199.98px) {
    .admin-sidebar { transform: translateX(-100%); }
    .admin-sidebar.show { transform: translateX(0); box-shadow: var(--a-shadow-lg); }
    .admin-main { margin-left: 0; }
}

@media (max-width: 767.98px) {
    .admin-content { padding: 18px 14px 34px; }
    .admin-topbar { padding: 10px 14px; }
    .topbar-search { display: none; }
    .a-card-body { padding: 16px; }
    .stat-card { padding: 18px; }
    .stat-card h3 { font-size: 1.5rem; }
    .a-toast-stack { top: auto; bottom: 16px; left: 14px; right: 14px; }
    .a-toast { max-width: 100%; }
    .admin-user .who { display: none; }
}
