/* =====================================================================
   MOZ-TECH ADMIN THEME — "Precision Workshop"
   A calm, high-contrast operations console: ink navigation, porcelain
   surfaces, one royal-blue accent and a restrained semantic palette.
   Loaded after app.css so the legacy components inherit the new system.
   ===================================================================== */

.admin-shell {
    /* Brand + navigation */
    --mt-blue: #2563eb;
    --mt-deep: #1d4ed8;
    --mt-ink: #0b1220;
    --mt-blue-50: #f7faff;
    --mt-blue-100: #dbe7ff;
    --mt-blue-200: #c3d6ff;
    --mt-blue-300: #94b4ff;
    --mt-blue-700: #1e40af;
    --mt-soft: #eef4ff;

    /* Surfaces + type */
    --mt-white: #ffffff;
    --mt-bg: #f3f5fa;
    --mt-surface-2: #f7f8fc;
    --mt-surface-3: #f2f4f7;
    --mt-text: #16213a;
    --mt-text-2: #475467;
    --mt-muted: #667085;
    --mt-faint: #98a2b3;
    --mt-border: #e5e9f1;
    --mt-border-strong: #d0d7e4;

    /* Semantic families */
    --mt-danger: #d92d20;
    --mt-danger-strong: #912018;
    --mt-danger-soft: #fef3f2;
    --mt-danger-border: #fda29b;
    --mt-success: #067647;
    --mt-success-strong: #05603a;
    --mt-success-soft: #ecfdf3;
    --mt-success-border: #a6f4c5;
    --mt-warning: #b54708;
    --mt-warning-strong: #93370d;
    --mt-warning-soft: #fffaeb;
    --mt-warning-border: #fedf89;
    --mt-violet: #5925dc;
    --mt-violet-soft: #f4f3ff;
    --mt-violet-border: #ddd6fe;
    --mt-info: #026aa2;
    --mt-info-soft: #f0f9ff;
    --mt-indigo: #3538cd;
    --mt-indigo-soft: #eef4ff;
    --mt-indigo-border: #c7d2fe;
    --mt-teal: #0f766e;
    --mt-teal-soft: #f0fdfa;
    --mt-teal-border: #a5f3fc;
    --mt-orange: #c2410c;
    --mt-orange-soft: #fff6ed;
    --mt-orange-border: #fed7aa;
    --mt-whatsapp: #25d366;

    /* Metrics */
    --mt-sidebar: 276px;
    --mt-topbar: 68px;
    --mt-radius: 16px;
    --mt-radius-sm: 10px;
    --mt-font-display: "Manrope", "Inter", "Segoe UI", sans-serif;
    --mt-shadow-card: 0 1px 2px rgba(16, 24, 40, 0.04), 0 14px 34px -28px rgba(16, 24, 40, 0.26);
    --mt-shadow-lift: 0 2px 4px rgba(16, 24, 40, 0.04), 0 22px 48px -28px rgba(16, 24, 40, 0.32);
    --mt-ring: 0 0 0 4px rgba(37, 99, 235, 0.14);
}

body.admin-shell {
    background-color: #f3f5fa;
    background-image:
        radial-gradient(1000px 460px at 84% -12%, rgba(37, 99, 235, 0.075), transparent 66%),
        radial-gradient(720px 360px at -6% 108%, rgba(29, 78, 216, 0.045), transparent 70%);
    background-attachment: fixed;
    color: var(--mt-text);
    font-weight: 300;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.admin-shell ::selection { background: #c9dcff; color: #0b1220; }

.admin-shell h1,
.admin-shell h2,
.admin-shell h3,
.admin-shell h4,
.admin-shell .page-head h1,
.admin-shell .hero h1 {
    font-family: var(--mt-font-display);
    font-weight: 300;
    letter-spacing: -0.015em;
}

.admin-shell :focus-visible {
    outline: 2px solid var(--mt-blue);
    outline-offset: 2px;
}

/* ------------------------------------------------------------------ */
/* Scrollbars                                                          */
/* ------------------------------------------------------------------ */
.admin-shell .sidebar::-webkit-scrollbar { width: 6px; }
.admin-shell .sidebar::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.14); border-radius: 999px; }
.admin-shell .sidebar::-webkit-scrollbar-track { background: transparent; }

/* ------------------------------------------------------------------ */
/* Sidebar — deep ink, quiet blue glow, precision indicators           */
/* ------------------------------------------------------------------ */
.admin-shell .sidebar {
    background:
        radial-gradient(460px 240px at 8% -8%, rgba(59, 130, 246, 0.24), transparent 68%),
        radial-gradient(320px 220px at 110% 108%, rgba(37, 99, 235, 0.14), transparent 70%),
        linear-gradient(180deg, #0d172a 0%, #0a1322 56%, #08101d 100%);
    border-right: 1px solid rgba(255, 255, 255, 0.07);
    padding: 18px 14px 16px;
    box-shadow: 18px 0 48px -40px rgba(8, 15, 30, 0.8);
    color: #cbd5e1;
}

.admin-shell .sidebar-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 16px;
    padding-bottom: 16px;
}

.admin-shell .sidebar-brand { padding: 2px 4px; border: 0; margin: 0; }
.admin-shell .sidebar-brand img {
    height: 42px;
    max-width: 190px;
    filter: drop-shadow(0 3px 10px rgba(2, 8, 20, 0.35));
}
.admin-shell .sidebar-brand.has-custom-logo {
    background: #ffffff;
    border-radius: 12px;
    padding: 7px 10px;
    box-shadow: 0 8px 24px -16px rgba(0, 0, 0, 0.55);
}
.admin-shell .sidebar-brand.has-custom-logo img { height: 36px; filter: none; }

.admin-shell .sidebar-collapse-btn {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    border-radius: 10px;
}
.admin-shell .sidebar-collapse-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.18);
    color: #ffffff;
}

.admin-shell .nav-group { margin-bottom: 18px; }
.admin-shell .nav-label {
    color: #5d6f8a;
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0.16em;
    padding: 0 12px 8px;
}

.admin-shell .nav-link {
    position: relative;
    color: #9fb0c8;
    font-size: 13.5px;
    font-weight: 400;
    padding: 10px 12px;
    border-radius: 10px;
    margin-bottom: 2px;
    transition: background-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}
.admin-shell .nav-link i,
.admin-shell .nav-link svg { color: #7e91ab; transition: color 160ms ease; }
.admin-shell .nav-link:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
}
.admin-shell .nav-link:hover i { color: #93c5fd; }
.admin-shell .nav-link.is-active {
    background: linear-gradient(90deg, rgba(37, 99, 235, 0.34), rgba(37, 99, 235, 0.1));
    color: #ffffff;
    box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.22);
}
.admin-shell .nav-link.is-active i { color: #93c5fd; }
.admin-shell .nav-link.is-active::before {
    content: "";
    position: absolute;
    left: -14px;
    top: 9px;
    bottom: 9px;
    width: 3px;
    border-radius: 0 4px 4px 0;
    background: #60a5fa;
    box-shadow: 0 0 14px rgba(96, 165, 250, 0.85);
}

.admin-shell .nav-badge {
    min-width: 19px;
    height: 19px;
    border-radius: 999px;
    background: #3b82f6;
    color: #ffffff;
    font-size: 10.5px;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1);
}
.admin-shell .nav-badge-amber { background: #f59e0b; color: #1a1205; }
.admin-shell .nav-badge-emerald { background: #12b76a; color: #052e1b; }
.admin-shell .nav-badge-danger { background: #f04438; color: #ffffff; }

.admin-shell .user-chip {
    background: rgba(255, 255, 255, 0.045);
    border-color: rgba(255, 255, 255, 0.09);
    border-radius: 13px;
    padding: 10px;
    margin-top: auto;
    color: #e2e8f0;
    transition: background-color 160ms ease, border-color 160ms ease;
}
.admin-shell .user-chip:hover {
    background: rgba(255, 255, 255, 0.075);
    border-color: rgba(255, 255, 255, 0.16);
}
.admin-shell .user-chip strong { color: #f8fafc; font-size: 12.5px; }
.admin-shell .user-chip small { color: #8ea1ba !important; }
.admin-shell .user-chip .avatar {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: #ffffff;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1);
}

.admin-shell .sidebar-floating-btn {
    background: #0d172a;
    border-color: rgba(255, 255, 255, 0.14);
    box-shadow: 0 10px 26px -12px rgba(8, 15, 30, 0.55);
}
.admin-shell .sidebar-floating-btn:hover { background: var(--mt-blue); }

/* ------------------------------------------------------------------ */
/* Topbar                                                              */
/* ------------------------------------------------------------------ */
.admin-shell .topbar {
    background: rgba(255, 255, 255, 0.86);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    backdrop-filter: blur(18px) saturate(150%);
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 1px 0 rgba(16, 24, 40, 0.03);
}

.admin-shell .topbar-context {
    display: none;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: #667085;
}
.admin-shell .topbar-context::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #12b76a;
    box-shadow: 0 0 0 3px rgba(18, 183, 106, 0.14);
}

.admin-shell .sidebar-toggle-btn {
    border: 1px solid var(--mt-border);
    background: #ffffff;
    color: #475467;
    border-radius: 10px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}
.admin-shell .sidebar-toggle-btn:hover {
    background: #ffffff;
    border-color: var(--mt-border-strong);
    color: var(--mt-blue);
}

.admin-shell .clock-pill {
    background: #f7f8fc;
    border-color: var(--mt-border);
    color: #475467;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.01em;
}

.admin-shell .topbar-bell-btn {
    background: #ffffff;
    border-color: var(--mt-border);
    color: #475467;
    border-radius: 10px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}
.admin-shell .topbar-bell-btn:hover {
    border-color: var(--mt-border-strong);
    background: #f7f8fc;
    color: var(--mt-blue);
}
.admin-shell .topbar-bell-count {
    background: var(--mt-danger);
    border-color: #ffffff;
    font-size: 9.5px;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(217, 45, 32, 0.3);
}

/* ------------------------------------------------------------------ */
/* Page frame                                                          */
/* ------------------------------------------------------------------ */
.admin-shell .main { padding: calc(var(--mt-topbar) + 26px) 16px calc(var(--mt-bottom) + 24px); }
.admin-shell .page-container { width: 100%; max-width: 1520px; margin: 0 auto; }
.admin-shell .page-head { margin-bottom: 22px; }
.admin-shell .page-head h1 { font-size: 27px; font-weight: 300; color: #101828; }
.admin-shell .page-head p { margin-top: 5px; color: var(--mt-muted); font-size: 13.5px; font-weight: 300; }
.admin-shell .eyebrow {
    color: var(--mt-blue);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.15em;
}

/* ------------------------------------------------------------------ */
/* Surfaces                                                            */
/* ------------------------------------------------------------------ */
.admin-shell .card {
    background: var(--mt-white);
    border: 1px solid var(--mt-border);
    border-radius: var(--mt-radius);
    box-shadow: var(--mt-shadow-card);
}
.admin-shell .card-head { margin-bottom: 18px; }
.admin-shell .card h2 { font-weight: 400; color: #101828; }
.admin-shell .card h3 { font-weight: 400; color: #101828; }
.admin-shell .split { gap: 18px; }
.admin-shell .fact {
    background: #fbfcfe;
    border-color: var(--mt-border);
    border-radius: 13px;
    box-shadow: none;
}
.admin-shell .fact span { font-size: 11px; letter-spacing: 0.02em; text-transform: uppercase; color: var(--mt-muted); font-weight: 300; }
.admin-shell .fact strong { color: #101828; font-weight: 400; }

.admin-shell .stat {
    background: var(--mt-white);
    border: 1px solid var(--mt-border);
    border-radius: 14px;
    box-shadow: var(--mt-shadow-card);
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}
.admin-shell .stat:hover { transform: translateY(-2px); box-shadow: var(--mt-shadow-lift); }
.admin-shell .stat-label {
    color: var(--mt-muted);
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.045em;
    text-transform: uppercase;
}
.admin-shell .stat-value {
    color: #101828;
    font-weight: 700 !important;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}
.admin-shell .stat-note,
.admin-shell .stat-foot { color: var(--mt-muted); }
.admin-shell .stat-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--mt-soft);
    color: var(--mt-blue);
}
.admin-shell .stat-featured {
    background:
        radial-gradient(120% 150% at 100% 0%, #1e40af 0%, rgba(30, 64, 175, 0) 56%),
        linear-gradient(145deg, #11213c 0%, #0b1526 62%, #0a1424 100%);
    border-color: transparent;
    box-shadow: 0 18px 40px -26px rgba(11, 21, 38, 0.7);
}
.admin-shell .stat-featured .stat-label { color: #a8b6cf; }
.admin-shell .stat-featured .stat-value { color: #ffffff !important; }
.admin-shell .stat-featured .stat-note,
.admin-shell .stat-featured .stat-foot { color: #c7d3e8 !important; }
.admin-shell .stat-featured .stat-icon {
    background: rgba(255, 255, 255, 0.12) !important;
    color: #ffffff !important;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.admin-shell .dashboard-page .dashboard-stats .stat-featured:hover { border-color: transparent; }

/* Alert stat — soft red surface with a sharp accent rail (never a pale block) */
.admin-shell .stat-alert {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #fff8f7 0%, #ffffff 68%);
    border-color: #fecdca;
    box-shadow: 0 14px 34px -28px rgba(217, 45, 32, 0.4);
}
.admin-shell .stat-alert::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: var(--mt-danger);
}
.admin-shell .stat-alert .stat-label { color: #b42318; }
.admin-shell .stat-alert .stat-value { color: #b42318 !important; }
.admin-shell .stat-alert .stat-note { color: #912018 !important; }
.admin-shell .stat-alert .stat-icon {
    background: var(--mt-danger-soft);
    color: var(--mt-danger);
    box-shadow: inset 0 0 0 1px #fecdca;
}

/* Warning stat — white tile, amber accent rail, colored content */
.admin-shell .stat-warning {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #fffdf6 0%, #ffffff 68%);
    border-color: var(--mt-warning-border);
}
.admin-shell .stat-warning::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: #f59e0b;
}

/* Report KPI row — keep currency values on one line */
.admin-shell .report-stats .stat-value {
    font-size: 22px;
    letter-spacing: -0.025em;
    white-space: nowrap;
}

/* Dashboard hero: porcelain panel with a single restrained accent rail */
.admin-shell .dashboard-page .dashboard-hero {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--mt-border);
    border-top: 1px solid var(--mt-border);
    border-radius: 18px;
    background:
        radial-gradient(520px 240px at 100% -20%, rgba(37, 99, 235, 0.09), transparent 70%),
        #ffffff;
    box-shadow: var(--mt-shadow-card);
    padding: 24px 22px;
}
.admin-shell .dashboard-page .dashboard-hero::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: linear-gradient(90deg, #2563eb, #6366f1 55%, #38bdf8);
}
.admin-shell .dashboard-page .dashboard-hero h1 { font-size: 27px; font-weight: 300; color: #101828; }
.admin-shell .dashboard-page .dashboard-hero .eyebrow {
    color: var(--mt-blue);
    font-size: 9.5px;
    letter-spacing: 0.11em;
    white-space: nowrap;
}
.admin-shell .dashboard-page .dashboard-hero > div:first-child > div:first-child { flex-wrap: wrap; }
.admin-shell .dashboard-page .dashboard-hero .actions { position: relative; z-index: 1; }
.admin-shell .dashboard-page .dashboard-hero .btn { min-height: 40px; padding: 0 14px; font-size: 12.5px; font-weight: 400; }
.admin-shell .dashboard-page .dashboard-hero .btn-secondary {
    background: rgba(255, 255, 255, 0.82);
    border-color: var(--mt-border-strong);
    color: #344054;
    box-shadow: none;
}
.admin-shell .dashboard-page .dashboard-hero .btn-secondary:hover {
    background: #f4f7fd;
    border-color: #b9c6de;
    color: #1d2939;
}

.admin-shell .dashboard-pipeline {
    border-radius: 14px;
    box-shadow: var(--mt-shadow-card);
    padding: 12px 16px;
}
.admin-shell .dashboard-panel { box-shadow: var(--mt-shadow-card); }
.admin-shell .dashboard-panel .list-row:hover { background: #f6f9ff; }
.admin-shell .dashboard-clearance-panel { border-color: var(--mt-border); }

/* Pipeline chips: neutral shell + one semantic dot (stops the rainbow) */
.admin-shell .pipeline-stage-chip {
    background: #f8fafc !important;
    border: 1px solid #e9edf4 !important;
    color: #475467 !important;
    border-radius: 999px !important;
    padding: 5px 11px !important;
    font-size: 11.5px !important;
    font-weight: 400;
    box-shadow: none;
    transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}
.admin-shell .pipeline-stage-chip:hover {
    background: #ffffff !important;
    border-color: #cbd7ea !important;
    transform: translateY(-1px);
    filter: none;
}
.admin-shell .pipeline-stage-chip strong { font-weight: 400; color: #475467; }
.admin-shell .pipeline-stage-chip .pipeline-count { font-weight: 700 !important; color: #1d2939; }
.admin-shell .pipeline-stage-chip .chip-dot {
    width: 7px;
    height: 7px;
    background: var(--chip-color) !important;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--chip-color) 14%, transparent);
}

/* Cash-flow equation tiles — white cards with a semantic accent rail */
.admin-shell .cf-tile {
    position: relative;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--mt-border);
    border-radius: 14px;
    padding: 15px 18px 16px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.03);
}
.admin-shell .cf-tile::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: var(--mt-blue);
}
.admin-shell .cf-tile.is-in::before { background: #12b76a; }
.admin-shell .cf-tile.is-out::before { background: var(--mt-danger); }
.admin-shell .cf-tile.is-net.is-negative::before { background: var(--mt-danger); }
.admin-shell .cf-tile-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}
.admin-shell .cf-tile-label {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--mt-muted);
}
.admin-shell .cf-tile-label i { color: var(--mt-faint); }
.admin-shell .cf-tile.is-in .cf-tile-label i { color: #12b76a; }
.admin-shell .cf-tile.is-out .cf-tile-label i { color: var(--mt-danger); }
.admin-shell .cf-tile.is-net .cf-tile-label i { color: var(--mt-blue); }
.admin-shell .cf-tile.is-net.is-negative .cf-tile-label i { color: var(--mt-danger); }
.admin-shell .cf-chip {
    padding: 3px 8px;
    border-radius: 999px;
    border: 1px solid #eaecf0;
    background: #f2f4f7;
    color: #475467;
    font-size: 9.5px;
    font-weight: 500;
    letter-spacing: 0.05em;
    white-space: nowrap;
}
.admin-shell .cf-tile.is-in .cf-chip {
    background: var(--mt-success-soft);
    border-color: var(--mt-success-border);
    color: var(--mt-success-strong);
}
.admin-shell .cf-tile.is-out .cf-chip {
    background: var(--mt-danger-soft);
    border-color: #fecdca;
    color: #b42318;
}
.admin-shell .cf-tile.is-net .cf-chip { background: #101828; border-color: #101828; color: #ffffff; }
.admin-shell .cf-tile.is-net.is-negative .cf-chip { background: var(--mt-danger); border-color: var(--mt-danger); }
.admin-shell .cf-value {
    font-size: 26px;
    font-weight: 700 !important;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
    color: #101828;
}
.admin-shell .cf-tile.is-in .cf-value { color: var(--mt-success); }
.admin-shell .cf-tile.is-out .cf-value,
.admin-shell .cf-tile.is-net.is-negative .cf-value { color: var(--mt-danger); }
.admin-shell .cf-note {
    margin-top: 5px;
    font-size: 12px;
    font-weight: 300;
    color: var(--mt-muted);
}
.admin-shell .cf-tile.is-in .cf-note { color: #05603a; }
.admin-shell .cf-tile.is-out .cf-note { color: #912018; }
.admin-shell .cf-tile.is-net .cf-note { color: var(--mt-deep); }
.admin-shell .cf-tile.is-net.is-negative .cf-note { color: #912018; }
.admin-shell .cf-channel {
    background: #ffffff;
    border: 1px solid var(--mt-border);
    border-radius: 10px;
    padding: 12px 14px;
}
.admin-shell .cf-channel-foot {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
}
.admin-shell .cf-channel-flow { font-size: 11px; color: var(--mt-muted); font-weight: 300; }
.admin-shell .cf-channel-balance {
    font-size: 15px;
    font-weight: 700 !important;
    letter-spacing: -0.01em;
    font-variant-numeric: tabular-nums;
}

/* Emergency banner — urgent, but composed */
.admin-shell .emergency-banner {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    padding: 15px 18px;
    margin-bottom: 18px;
    border: 1px solid #fecdca;
    border-left: 4px solid var(--mt-danger);
    border-radius: 14px;
    background: linear-gradient(100deg, #fff6f5 0%, #ffffff 58%);
    box-shadow: var(--mt-shadow-card);
}
.admin-shell .emergency-banner-icon {
    width: 42px;
    height: 42px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: #fee4e2;
    color: var(--mt-danger);
    box-shadow: inset 0 0 0 1px #fecdca;
}
.admin-shell .emergency-banner-copy { flex: 1 1 260px; min-width: 0; }
.admin-shell .emergency-banner-kicker {
    display: block;
    font-size: 9.5px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--mt-danger);
    margin-bottom: 2px;
}
.admin-shell .emergency-banner-copy strong {
    display: block;
    font-size: 14.5px;
    font-weight: 400;
    color: #101828;
    letter-spacing: -0.01em;
}
.admin-shell .emergency-banner-copy span {
    display: block;
    margin-top: 2px;
    font-size: 12.5px;
    color: var(--mt-muted);
    font-weight: 300;
}
.admin-shell .emergency-banner .btn { min-height: 38px; font-size: 12.5px; flex-shrink: 0; font-weight: 400; }
.admin-shell .emergency-banner .btn-danger {
    background: var(--mt-danger-soft);
    border-color: var(--mt-danger-border);
    color: #b42318;
    box-shadow: none;
}
.admin-shell .emergency-banner .btn-danger:hover {
    background: var(--mt-danger);
    border-color: var(--mt-danger);
    color: #ffffff;
    box-shadow: 0 8px 18px -10px rgba(217, 45, 32, 0.6);
}

/* ------------------------------------------------------------------ */
/* Buttons                                                             */
/* ------------------------------------------------------------------ */
.admin-shell .btn {
    border-radius: 10px;
    font-weight: 400;
    letter-spacing: -0.005em;
    background: linear-gradient(180deg, #2f6bf0 0%, #2563eb 100%);
    border-color: #2563eb;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.16);
    transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 120ms ease;
}
.admin-shell .btn:hover {
    background: linear-gradient(180deg, #2563eb 0%, #1d4ed8 100%);
    border-color: #1d4ed8;
    box-shadow: 0 4px 12px -4px rgba(29, 78, 216, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}
.admin-shell .btn:active { transform: translateY(1px) scale(1); }
.admin-shell .btn-secondary {
    background: #ffffff;
    border-color: var(--mt-border-strong);
    color: #344054;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}
.admin-shell .btn-secondary:hover {
    background: #f8fafc;
    border-color: #b8c3d8;
    color: #1d2939;
    box-shadow: 0 2px 6px -2px rgba(16, 24, 40, 0.12);
}
.admin-shell .btn-danger {
    background: linear-gradient(180deg, #e54437 0%, #d92d20 100%);
    border-color: var(--mt-danger);
    color: #ffffff;
}
.admin-shell .btn-danger:hover { background: linear-gradient(180deg, #d92d20 0%, #b42318 100%); border-color: #b42318; }
.admin-shell .btn-ghost { background: transparent; border-color: transparent; box-shadow: none; color: var(--mt-blue); }
.admin-shell .btn-ghost:hover { background: var(--mt-soft); box-shadow: none; color: var(--mt-deep); }
.admin-shell .btn-sm { min-height: 34px; border-radius: 9px; }
.admin-shell .btn-quiet {
    background: transparent;
    border-color: transparent;
    color: #475467;
    box-shadow: none;
    font-weight: 400;
    min-height: 34px;
    padding: 0 9px;
    font-size: 12px;
}
.admin-shell .btn-quiet:hover {
    background: #f5f7fc;
    border-color: var(--mt-border);
    color: #101828;
    box-shadow: none;
}
.admin-shell .btn-quiet i { color: #98a2b3; }
.admin-shell .btn-quiet:hover i { color: var(--mt-blue); }
.admin-shell .dashboard-page .dashboard-hero .actions .btn-quiet {
    background: transparent;
    border-color: transparent;
    color: #475467;
    box-shadow: none;
    min-height: 36px;
    padding: 0 10px;
    font-weight: 400;
}
.admin-shell .dashboard-page .dashboard-hero .actions .btn-quiet:hover {
    background: #f5f7fc;
    border-color: var(--mt-border);
    color: #101828;
    box-shadow: none;
}
.admin-shell .dashboard-page .dashboard-hero .actions .btn-quiet i { color: #98a2b3; }
.admin-shell .dashboard-page .dashboard-hero .actions .btn-quiet:hover i { color: var(--mt-blue); }
.admin-shell .action-divider {
    width: 1px;
    height: 24px;
    background: var(--mt-border);
    margin: 0 2px;
    flex: 0 0 auto;
}

.admin-shell .pills { gap: 7px; }
.admin-shell .pill {
    min-height: 34px;
    border-radius: 999px;
    border-color: var(--mt-border);
    background: #ffffff;
    color: #475467;
    font-size: 12.5px;
    font-weight: 400;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.03);
}
.admin-shell .pill:hover { color: var(--mt-blue); border-color: var(--mt-blue-200); }
.admin-shell .pill.is-on {
    background: #101828;
    border-color: #101828;
    color: #ffffff;
    box-shadow: 0 4px 12px -6px rgba(16, 24, 40, 0.5);
}

.admin-shell .action-count-pill {
    background: var(--mt-soft);
    color: var(--mt-deep);
    border-color: var(--mt-blue-100);
}

/* ------------------------------------------------------------------ */
/* Badges — four semantic families, muted tints                        */
/* ------------------------------------------------------------------ */
.admin-shell .badge {
    padding: 4px 9px;
    font-size: 10.5px;
    font-weight: 400;
    letter-spacing: 0.005em;
    border: 1px solid transparent;
    border-radius: 999px;
    box-shadow: none;
}
.admin-shell .badge-draft,
.admin-shell .badge-unpaid,
.admin-shell .badge-disabled { background: #f2f4f7; color: #475467; border-color: #eaecf0; }
.admin-shell .badge-booked,
.admin-shell .badge-checked_in { background: var(--mt-indigo-soft); color: #1d4ed8; border-color: #d1e0ff; }
.admin-shell .badge-diagnosing,
.admin-shell .badge-awaiting_parts,
.admin-shell .badge-awaiting_approval,
.admin-shell .badge-low_stock { background: var(--mt-warning-soft); color: var(--mt-warning); border-color: var(--mt-warning-border); }
.admin-shell .badge-in_progress { background: var(--mt-indigo-soft); color: #175cd3; border-color: #d1e0ff; }
.admin-shell .badge-sent,
.admin-shell .badge-partial { background: var(--mt-info-soft); color: var(--mt-info); border-color: #b9e6fe; }
.admin-shell .badge-quality_check,
.admin-shell .badge-ready_collection,
.admin-shell .badge-completed,
.admin-shell .badge-accepted,
.admin-shell .badge-paid,
.admin-shell .badge-active { background: var(--mt-success-soft); color: var(--mt-success); border-color: var(--mt-success-border); }
.admin-shell .badge-invoiced,
.admin-shell .badge-expired { background: var(--mt-violet-soft); color: var(--mt-violet); border-color: #d9d6fe; }
.admin-shell .badge-cancelled,
.admin-shell .badge-declined,
.admin-shell .badge-void,
.admin-shell .badge-fail,
.admin-shell .badge-inactive { background: var(--mt-danger-soft); color: #b42318; border-color: #fecdca; }

/* Vehicle clearance condition ratings */
.admin-shell .badge-good { background: var(--mt-success-soft); color: var(--mt-success); border-color: var(--mt-success-border); }
.admin-shell .badge-fair { background: var(--mt-warning-soft); color: var(--mt-warning); border-color: var(--mt-warning-border); }
.admin-shell .badge-poor { background: #fff4ed; color: #b93815; border-color: #f9dbaf; }

/* Inline solid badge overrides used across the console */
.admin-shell .badge[style*="background:#DC2626"],
.admin-shell .badge[style*="background: #DC2626"] {
    background: var(--mt-danger) !important;
    color: #ffffff !important;
    border-color: transparent !important;
}

/* ------------------------------------------------------------------ */
/* Forms                                                               */
/* ------------------------------------------------------------------ */
.admin-shell label {
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0;
    color: #344054;
    margin-bottom: 6px;
}
.admin-shell input:not([type]),
.admin-shell input[type="text"],
.admin-shell input[type="email"],
.admin-shell input[type="password"],
.admin-shell input[type="number"],
.admin-shell input[type="date"],
.admin-shell input[type="tel"],
.admin-shell input[type="url"],
.admin-shell input[type="search"],
.admin-shell select,
.admin-shell textarea {
    background: #ffffff;
    border: 1px solid var(--mt-border-strong);
    border-radius: 10px;
    min-height: 48px;
    padding: 11px 13px;
    color: #101828;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.035);
    transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}
.admin-shell textarea { padding: 12px 13px; }
.admin-shell input:hover,
.admin-shell select:hover,
.admin-shell textarea:hover { border-color: #b8c3d8; }
.admin-shell input:focus,
.admin-shell select:focus,
.admin-shell textarea:focus {
    border-color: var(--mt-blue);
    box-shadow: var(--mt-ring);
    outline: none;
    background: #ffffff;
}
.admin-shell select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23667085' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 13px center;
    background-size: 16px 16px;
    padding-right: 38px;
    appearance: none;
    -webkit-appearance: none;
}
.admin-shell input[type="file"] {
    background: #fbfcfe;
    border: 1.5px dashed #c3cedf;
    border-radius: 12px;
    min-height: 84px;
    box-shadow: none;
}
.admin-shell input[type="file"]:hover,
.admin-shell input[type="file"]:focus { background: var(--mt-soft); border-color: var(--mt-blue-300); box-shadow: none; }
.admin-shell input[type="checkbox"],
.admin-shell input[type="radio"] { accent-color: var(--mt-blue); }
.admin-shell .control > svg { color: #98a2b3; }
.admin-shell .control.has-icon > input,
.admin-shell .control.has-icon > select,
.admin-shell .control.has-icon > textarea { padding-left: 42px !important; }
.admin-shell .control.has-icon > svg { color: #98a2b3; }
.admin-shell input[type="date"]::-webkit-calendar-picker-indicator { opacity: 0.55; cursor: pointer; }
.admin-shell .field > input,
.admin-shell .field > select,
.admin-shell .field > textarea,
.admin-shell .control input,
.admin-shell .control select,
.admin-shell .control textarea { width: 100%; }
.admin-shell .help { color: var(--mt-muted); font-size: 11.5px; line-height: 1.5; }
.admin-shell .search-bar {
    background: #ffffff;
    border: 1px solid var(--mt-border);
    border-radius: 13px;
    box-shadow: var(--mt-shadow-card);
    transition: border-color 160ms ease, box-shadow 160ms ease;
}
.admin-shell .search-bar:focus-within { border-color: var(--mt-blue-200); box-shadow: var(--mt-ring); }
.admin-shell .search-bar input[type="search"] { background: transparent; box-shadow: none; }
.admin-shell table input,
.admin-shell table select { min-height: 40px; padding: 6px 10px; box-shadow: none; }

/* ------------------------------------------------------------------ */
/* Tables                                                              */
/* ------------------------------------------------------------------ */
.admin-shell .table-wrap {
    border-radius: 12px;
    border: 1px solid var(--mt-border);
    background: #ffffff;
}
.admin-shell table { font-size: 13px; }
.admin-shell th {
    background: #f8fafc;
    color: #667085;
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    padding: 11px 12px;
    border-bottom: 1px solid var(--mt-border);
    white-space: nowrap;
}
.admin-shell td { padding: 12px; border-bottom: 1px solid #eef1f6; color: #344054; font-weight: 300; }
.admin-shell tbody tr { transition: background-color 140ms ease; }
.admin-shell tbody tr:hover { background: #f8faff; }
.admin-shell tr:last-child td { border-bottom: 0; }

/* ------------------------------------------------------------------ */
/* Alerts, flash messages, empty states                                */
/* ------------------------------------------------------------------ */
.admin-shell .alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    border-radius: 12px;
    padding: 12px 15px;
    font-size: 13px;
    font-weight: 400;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.03);
}
.admin-shell .alert-success {
    border-color: var(--mt-success-border);
    border-left: 3px solid #12b76a;
    background: var(--mt-success-soft);
    color: #05603a;
}
.admin-shell .alert-error {
    border-color: #fecdca;
    border-left: 3px solid var(--mt-danger);
    background: var(--mt-danger-soft);
    color: #912018;
}
.admin-shell .empty { color: var(--mt-muted); }
.admin-shell .empty .btn { margin-top: 2px; }
.admin-shell .muted { color: var(--mt-muted); }

/* ------------------------------------------------------------------ */
/* Lists, feeds, timeline                                              */
/* ------------------------------------------------------------------ */
.admin-shell .list { gap: 0; }
.admin-shell .feed-item,
.admin-shell .job-card {
    border-color: var(--mt-border);
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.03);
}
.admin-shell .feed-item:hover,
.admin-shell .job-card:hover { border-color: var(--mt-blue-200); box-shadow: var(--mt-shadow-lift); }
.admin-shell .list-row {
    border-color: var(--mt-border);
    border-radius: 12px;
    transition: background-color 150ms ease, border-color 150ms ease;
}
.admin-shell .list-row:hover { border-color: var(--mt-blue-200); transform: none; background: #f9fbff; }
.admin-shell .list-icon { border-radius: 10px; }
.admin-shell .list-body strong { color: #101828; font-weight: 400; }
.admin-shell .timeline .badge.is-on { background: #101828; border-color: #101828; }
.admin-shell .thumb { border-radius: 10px; }

/* ------------------------------------------------------------------ */
/* Tabs and settings console                                           */
/* ------------------------------------------------------------------ */
.admin-shell .settings-tabs-nav { gap: 4px !important; }
.admin-shell .settings-tabs-nav .tab-btn {
    border-radius: 9px;
    padding: 7px 12px;
    color: #475467;
    font-weight: 400;
    border: 1px solid transparent;
}
.admin-shell .settings-tabs-nav .tab-btn:hover { background: #f4f6fb; color: #101828; }
.admin-shell .settings-tabs-nav .tab-btn.active {
    background: #101828;
    color: #ffffff;
    border-color: #101828;
    box-shadow: 0 6px 16px -8px rgba(16, 24, 40, 0.55);
}
.admin-shell .settings-tabs-nav .tab-btn-highlight {
    background: var(--mt-warning-soft);
    color: var(--mt-warning);
    border-color: var(--mt-warning-border);
}
.admin-shell .settings-tabs-nav .tab-btn-highlight.active {
    background: #101828;
    color: #ffffff;
    border-color: #101828;
}
.admin-shell .tab-section-header { border-bottom-color: var(--mt-border); padding-bottom: 13px; }
.admin-shell .tab-section-header h2 { color: #101828; }
.admin-shell .tab-section-header p { color: var(--mt-muted) !important; }

/* Settings command bar — tabs own their row, actions stay grouped and quiet */
.admin-shell .settings-command-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}
.admin-shell .settings-command-nav { flex: 1 1 100%; }
.admin-shell .settings-command-actions {
    flex: 1 1 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    padding-top: 10px;
    border-top: 1px solid var(--mt-border);
}
.admin-shell .settings-command-actions .btn { min-height: 38px; font-size: 12.5px; }

/* ------------------------------------------------------------------ */
/* Mobile navigation                                                   */
/* ------------------------------------------------------------------ */
.admin-shell .mobile-nav {
    background: rgba(255, 255, 255, 0.94);
    -webkit-backdrop-filter: blur(16px) saturate(150%);
    backdrop-filter: blur(16px) saturate(150%);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 20px;
    box-shadow: 0 16px 40px -18px rgba(16, 24, 40, 0.35);
    padding: 7px 6px;
}
.admin-shell .mobile-nav a {
    color: #667085;
    font-size: 9.5px;
    font-weight: 400;
    letter-spacing: 0.01em;
    border-radius: 13px;
    padding: 7px 2px;
}
.admin-shell .mobile-nav a.is-active {
    color: var(--mt-deep);
    background: var(--mt-soft);
    box-shadow: inset 0 0 0 1px var(--mt-blue-100);
}
.admin-shell .mobile-nav .nav-count-badge {
    background: var(--mt-blue);
    border-color: #ffffff;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.35);
}

/* ------------------------------------------------------------------ */
/* Update drawer + misc                                                */
/* ------------------------------------------------------------------ */
.admin-shell .update-drawer { box-shadow: -18px 0 48px -24px rgba(16, 24, 40, 0.4); }

.admin-shell code {
    background: #f2f4f7;
    border: 1px solid #eaecf0;
    border-radius: 5px;
    padding: 1px 5px;
    font-size: 0.92em;
    color: #344054;
}

.admin-shell .photo-tile { border-radius: 12px; background: #f8fafc; }
.admin-shell .photo-tile img { border-radius: 0; }

/* Narrow inline status pills in dense tables */
.admin-shell td .badge { vertical-align: middle; }

/* Document brand marks: the horizontal logo needs width, not a 28px square */
.admin-shell .brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 46px;
    padding: 0 11px;
    background: #ffffff;
    border: 1px solid var(--mt-border);
    border-radius: 10px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
    flex-shrink: 0;
}
.admin-shell .brand-mark > img {
    display: block;
    height: 34px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
}

/* Service detail: readable maintenance schedule without the amber wall */
.admin-shell .service-due-card {
    position: relative;
    overflow: hidden;
    margin-bottom: 24px;
    padding: 20px;
    border: 1px solid var(--mt-warning-border);
    background: #ffffff;
}
.admin-shell .service-due-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: #f59e0b;
}
.admin-shell .service-due-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding-bottom: 14px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--mt-border);
}
.admin-shell .service-due-heading { display: flex; align-items: center; gap: 10px; }
.admin-shell .service-due-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--mt-warning-soft);
    color: var(--mt-warning);
    box-shadow: inset 0 0 0 1px var(--mt-warning-border);
    flex-shrink: 0;
}
.admin-shell .service-due-eyebrow {
    display: block;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--mt-warning-strong);
}
.admin-shell .service-due-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}
.admin-shell .service-due-tile {
    background: #f9fafb;
    border: 1px solid var(--mt-border);
    border-radius: 10px;
    padding: 12px 14px;
}
.admin-shell .service-due-label {
    display: block;
    margin-bottom: 2px;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--mt-muted);
}
.admin-shell .service-due-value {
    display: block;
    font-size: 18px;
    font-weight: 800;
    color: var(--mt-ink);
}
.admin-shell .service-due-value.is-cost { color: var(--mt-blue); }
.admin-shell .service-due-note { font-size: 11.5px; color: var(--mt-muted); }

/* Native file picker, dressed to match the rest of the forms */
.admin-shell input[type="file"]::file-selector-button {
    margin-right: 12px;
    padding: 8px 14px;
    border: 1px solid var(--mt-border-strong);
    border-radius: 8px;
    background: #ffffff;
    color: #344054;
    font: inherit;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}
.admin-shell input[type="file"]::file-selector-button:hover {
    background: #eef2f7;
    border-color: #b9c6de;
}

/* Line-item totals: a proper summary block instead of loose text */
.admin-shell .line-block .totals {
    width: min(330px, 100%);
    margin: 16px 0 0 auto;
    padding: 14px 16px;
    gap: 8px;
    border: 1px solid var(--mt-border);
    border-radius: 12px;
    background: #f9fafb;
}
.admin-shell .line-block .totals p {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    font-size: 13px;
    color: var(--mt-muted);
}
.admin-shell .line-block .totals p strong {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--mt-ink);
}
.admin-shell .line-block .totals p:last-child {
    margin-top: 2px;
    padding-top: 10px;
    border-top: 1px solid var(--mt-border);
}
.admin-shell .line-block .totals p:last-child strong {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    width: 100%;
    font-size: 14px;
    font-weight: 800;
    color: var(--mt-ink);
}
.admin-shell .line-block .totals p:last-child span {
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--mt-blue);
}

/* ------------------------------------------------------------------ */
/* Responsive                                                          */
/* ------------------------------------------------------------------ */
@media (min-width: 900px) {
    .admin-shell .main {
        margin-left: var(--mt-sidebar);
        padding: calc(var(--mt-topbar) + 30px) 32px 44px;
        transition: margin-left 0.28s cubic-bezier(0.4, 0, 0.2, 1), padding 0.28s ease;
    }
    .admin-shell .topbar-context { display: flex; }
    .admin-shell .dashboard-page .dashboard-hero { padding: 28px 30px; }
    /* Six KPI tiles read best as a balanced 3 × 2 block, never 5 + 1 */
    .admin-shell .dashboard-page .dashboard-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1280px) {
    .admin-shell .dashboard-page .dashboard-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 899px) {
    .admin-shell .sidebar {
        border-right: 0;
        box-shadow: 22px 0 60px -22px rgba(8, 15, 30, 0.65);
    }
    .admin-shell .page-head h1 { font-size: 23px; }
    .admin-shell .dashboard-page .dashboard-hero h1 { font-size: 23px; }
    .admin-shell .topbar { background: rgba(255, 255, 255, 0.94); }
    .admin-shell .emergency-banner { padding: 14px; }
    .admin-shell .emergency-banner .btn { width: 100%; justify-content: center; }
    .admin-shell .page-container { max-width: 100%; }
}

@media (max-width: 899px) {
    .admin-shell .settings-command-nav .tab-btn {
        flex: 1 1 100%;
        justify-content: flex-start;
    }
    .admin-shell .settings-command-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .admin-shell .settings-command-actions .btn { width: 100%; }
}

@media (max-width: 640px) {
    .admin-shell .main { padding-left: 13px; padding-right: 13px; }
    .admin-shell .card { border-radius: 14px; padding: 16px; }
    .admin-shell .stat { border-radius: 13px; padding: 15px; }
    .admin-shell .stat-value { font-size: 25px; }
    .admin-shell .btn { min-height: 44px; }
    .admin-shell .table-wrap { border-radius: 10px; }
    .admin-shell .action-divider { display: none; }
    .admin-shell .dashboard-page .dashboard-hero .actions .btn-quiet {
        min-height: 32px;
        background: #f7f9fd;
        border-color: #e9edf4;
    }
    .admin-shell .brand-mark { height: 36px; padding: 0 8px; }
    .admin-shell .brand-mark > img { height: 24px; max-width: 120px; }
}

@media (prefers-reduced-motion: reduce) {
    .admin-shell *,
    .admin-shell *::before,
    .admin-shell *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* =====================================================================
   MOZ-TECH PRECISION WORKSHOP: LIGHT FONT + BOLD PRICES & NUMBERS
   General interface font is light (font-weight: 300 / 400).
   ONLY prices, financial figures, metric values, and numbers are bold.
   ===================================================================== */
.admin-shell,
.admin-shell p,
.admin-shell span,
.admin-shell div,
.admin-shell a,
.admin-shell li,
.admin-shell dt,
.admin-shell dd,
.admin-shell td {
    font-weight: 300;
}

/* Common text elements that need regular/clean readability */
.admin-shell label,
.admin-shell .btn,
.admin-shell .pill,
.admin-shell .tab-btn,
.admin-shell .nav-link,
.admin-shell th,
.admin-shell .card h2,
.admin-shell .card h3 {
    font-weight: 400 !important;
}

/* Neutralize strong/b for non-numeric words (names, titles, labels) */
.admin-shell strong:not(.price-figure):not(.font-bold-figure):not(.font-bold-number):not([style*="tabular-nums"]),
.admin-shell b:not(.price-figure):not(.font-bold-figure):not(.font-bold-number):not([style*="tabular-nums"]) {
    font-weight: 400 !important;
}

/* Neutralize legacy inline bold styles on non-numeric elements */
.admin-shell h1[style*="font-weight"],
.admin-shell h2[style*="font-weight"],
.admin-shell h3[style*="font-weight"],
.admin-shell h4[style*="font-weight"],
.admin-shell .btn[style*="font-weight"],
.admin-shell label[style*="font-weight"],
.admin-shell th[style*="font-weight"],
.admin-shell .nav-label[style*="font-weight"],
.admin-shell .nav-link[style*="font-weight"],
.admin-shell .badge:not(.nav-count-badge):not(.topbar-bell-count):not(.badge-count):not(.action-count-pill)[style*="font-weight"],
.admin-shell span[style*="font-weight"]:not(.price-figure):not(.font-bold-figure):not(.font-bold-number):not(.stat-value):not(.cf-value):not(.cf-channel-balance):not(.doc-balance-value):not(.doc-qty-pill):not(.action-count-pill):not(.nav-count-badge):not(.topbar-bell-count):not(.plate-number):not([style*="tabular-nums"]),
.admin-shell strong[style*="font-weight"]:not(.price-figure):not(.font-bold-figure):not(.font-bold-number):not(.stat-value):not(.cf-value):not(.cf-channel-balance):not(.doc-balance-value):not([style*="tabular-nums"]) {
    font-weight: 400 !important;
}

/* =====================================================================
   ONLY PRICES, FINANCIAL FIGURES & NUMBERS ARE BOLD (700 / 800)
   ===================================================================== */
.admin-shell .stat-value,
.admin-shell .cf-value,
.admin-shell .cf-channel-balance,
.admin-shell .doc-balance-value,
.admin-shell .receipt-amount-number,
.admin-shell .receipt-amount,
.admin-shell .receipt-hero-number,
.admin-shell .action-count-pill,
.admin-shell .nav-count-badge,
.admin-shell .topbar-bell-count,
.admin-shell .badge-count,
.admin-shell .doc-qty-pill,
.admin-shell .ug-plate-reg,
.admin-shell .plate-number,
.admin-shell .plate-code,
.admin-shell [data-count],
.admin-shell [data-line-total],
.admin-shell [data-subtotal],
.admin-shell [data-tax],
.admin-shell [data-total],
.admin-shell .doc-total-line strong,
.admin-shell .doc-total-grand strong,
.admin-shell .doc-total-paid strong,
.admin-shell .doc-totals strong,
.admin-shell .totals strong,
.admin-shell .doc-date-val,
.admin-shell .pipeline-count,
.admin-shell .price-figure,
.admin-shell .font-bold-figure,
.admin-shell .font-bold-number,
.admin-shell .price-bold,
.admin-shell .num-bold,
.admin-shell .font-price,
.admin-shell .font-numeric,
.admin-shell td.amount,
.admin-shell td.price,
.admin-shell td.total,
.admin-shell td.num,
.admin-shell td.text-right,
.admin-shell td[style*="text-align: right"],
.admin-shell td[style*="text-align:right"],
.admin-shell td[style*="font-variant-numeric"],
.admin-shell td[style*="tabular-nums"],
.admin-shell span[style*="tabular-nums"],
.admin-shell strong[style*="tabular-nums"],
.admin-shell div[style*="tabular-nums"],
.admin-shell strong.price-figure,
.admin-shell strong.font-bold-figure,
.admin-shell strong.font-bold-number,
.admin-shell span.price-figure,
.admin-shell span.font-bold-figure,
.admin-shell span.font-bold-number {
    font-weight: 700 !important;
    font-variant-numeric: tabular-nums;
}

/* ============================================================
   USER MODULE ACCESS SCOPE
   ============================================================ */
.admin-shell .access-scope-section {
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px solid var(--mt-border);
}

.admin-shell .access-scope-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.admin-shell .access-scope-title {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.admin-shell .access-scope-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: var(--mt-soft);
    color: var(--mt-blue);
}

.admin-shell .access-scope-icon i,
.admin-shell .access-scope-icon svg {
    width: 20px;
    height: 20px;
}

.admin-shell .access-scope-title h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--mt-ink);
}

.admin-shell .access-scope-title p {
    margin: 3px 0 0;
    font-size: 12.5px;
    color: var(--mt-muted);
}

.admin-shell .access-scope-count {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    background: var(--mt-surface-3);
    color: var(--mt-text-2);
    border: 1px solid var(--mt-border);
    font-size: 11.5px;
    font-weight: 700;
    white-space: nowrap;
}

.admin-shell .access-scope-count.is-restricted {
    background: var(--mt-info-soft);
    color: var(--mt-deep);
    border-color: var(--mt-blue-200);
}

.admin-shell .access-scope-admin-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    background: var(--mt-warning-soft);
    border: 1px solid var(--mt-warning-border);
    border-radius: 10px;
    color: var(--mt-warning-strong);
    font-size: 12px;
    line-height: 1.45;
}

.admin-shell .access-scope-admin-note i,
.admin-shell .access-scope-admin-note svg {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
    margin-top: 1px;
}

.admin-shell .access-scope-admin-note strong {
    display: block;
    font-weight: 700;
    margin-bottom: 2px;
}

.admin-shell .access-scope-admin-note span {
    display: block;
    color: var(--mt-warning-strong);
    opacity: 0.9;
}

.admin-shell .access-mode-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 12px;
}

.admin-shell .access-mode-card {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid var(--mt-border);
    border-radius: 12px;
    background: var(--mt-white);
    cursor: pointer;
    transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.admin-shell .access-mode-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.admin-shell .access-mode-card:hover {
    border-color: var(--mt-blue-200);
}

.admin-shell .access-mode-card.is-selected {
    border-color: var(--mt-blue);
    background: linear-gradient(180deg, var(--mt-info-soft) 0%, var(--mt-white) 100%);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.admin-shell .access-mode-card.is-disabled {
    opacity: 0.5;
    pointer-events: none;
}

.admin-shell .access-mode-indicator {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: var(--mt-surface-3);
    color: var(--mt-text-2);
    transition: background 160ms ease, color 160ms ease;
}

.admin-shell .access-mode-indicator i,
.admin-shell .access-mode-indicator svg {
    width: 18px;
    height: 18px;
}

.admin-shell .access-mode-card.is-selected .access-mode-indicator {
    background: var(--mt-blue);
    color: #ffffff;
}

.admin-shell .access-mode-indicator-restricted {
    background: var(--mt-warning-soft);
    color: var(--mt-warning);
}

.admin-shell .access-mode-card.is-selected .access-mode-indicator-restricted {
    background: var(--mt-warning);
    color: #ffffff;
}

.admin-shell .access-mode-body strong {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--mt-ink);
    margin-bottom: 2px;
}

.admin-shell .access-mode-body small {
    display: block;
    font-size: 11.5px;
    line-height: 1.4;
    color: var(--mt-muted);
}

.admin-shell .access-scope-caps {
    margin-top: 16px;
}

.admin-shell .access-scope-hint {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 12px;
    border: 1px dashed var(--mt-border-strong);
    border-radius: 9px;
    background: var(--mt-bg);
    color: var(--mt-muted);
    font-size: 11.5px;
    line-height: 1.45;
    margin-bottom: 14px;
}

.admin-shell .access-scope-hint i,
.admin-shell .access-scope-hint svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    margin-top: 1px;
    color: var(--mt-blue);
}

.admin-shell .access-scope-module {
    border: 1px solid var(--mt-border);
    border-radius: 12px;
    overflow: hidden;
    background: var(--mt-white);
    margin-bottom: 10px;
}

.admin-shell .access-scope-module-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 14px;
    background: var(--mt-bg);
    border-bottom: 1px solid var(--mt-border);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--mt-text-2);
}

.admin-shell .access-scope-module-count {
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    color: var(--mt-muted);
    font-size: 10.5px;
}

.admin-shell .access-cap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 8px;
    padding: 10px;
}

.admin-shell .access-cap {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid var(--mt-border);
    border-radius: 9px;
    background: var(--mt-white);
    cursor: pointer;
    transition: border-color 150ms ease, background 150ms ease;
}

.admin-shell .access-cap input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.admin-shell .access-cap:hover {
    border-color: var(--mt-blue-200);
}

.admin-shell .access-cap-check {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    border: 1.5px solid var(--mt-border-strong);
    background: var(--mt-white);
    color: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
    transition: background 150ms ease, border-color 150ms ease, color 150ms ease;
}

.admin-shell .access-cap-check i,
.admin-shell .access-cap-check svg {
    width: 13px;
    height: 13px;
}

.admin-shell .access-cap input:checked + .access-cap-check {
    background: var(--mt-blue);
    border-color: var(--mt-blue);
    color: #ffffff;
}

.admin-shell .access-cap:has(input:checked) {
    border-color: var(--mt-blue-200);
    background: var(--mt-info-soft);
}

.admin-shell .access-cap input:focus-visible + .access-cap-check {
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
}

.admin-shell .access-cap-body strong {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--mt-text);
    margin-bottom: 2px;
}

.admin-shell .access-cap-body small {
    display: block;
    font-size: 11px;
    line-height: 1.35;
    color: var(--mt-muted);
}

.admin-shell .access-cap input:disabled ~ .access-cap-body {
    opacity: 0.55;
}

@media (max-width: 640px) {
    .admin-shell .access-scope-head {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-shell .access-scope-count {
        align-self: flex-start;
    }
}

/* =====================================================================
   ACTIVITY LOG — live, filterable worker audit trail
   ===================================================================== */
.admin-shell .activity-page {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.admin-shell .activity-page [hidden] { display: none !important; }

.admin-shell .activity-page-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    margin-bottom: 0;
}

.admin-shell .activity-page-head .eyebrow {
    margin: 0 0 6px;
    font-weight: 500;
    text-transform: uppercase;
}

.admin-shell .activity-page-head h1 { margin: 0; }

.admin-shell .activity-page-head p {
    max-width: 760px;
    line-height: 1.55;
}

.admin-shell .activity-head-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.admin-shell .activity-live-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    padding: 0 14px;
    border: 1px solid var(--mt-border-strong);
    border-radius: 999px;
    background: var(--mt-white);
    color: var(--mt-text-2);
    font-size: 12.5px;
    font-weight: 500;
    cursor: pointer;
    box-shadow: var(--mt-shadow-card);
    transition: border-color 160ms ease, color 160ms ease, background-color 160ms ease;
}

.admin-shell .activity-live-toggle:hover { border-color: var(--mt-blue-300); color: var(--mt-deep); }

.admin-shell .activity-live-toggle .activity-live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--mt-faint);
    flex-shrink: 0;
}

.admin-shell .activity-live-toggle.is-live { color: var(--mt-success-strong); border-color: var(--mt-success-border); background: var(--mt-success-soft); }
.admin-shell .activity-live-toggle.is-live .activity-live-dot {
    background: var(--mt-success);
    animation: activityPulse 2.2s ease-in-out infinite;
}
.admin-shell .activity-live-toggle.is-paused { color: var(--mt-muted); background: var(--mt-surface-2); }

/* Hero ---------------------------------------------------------------- */
.admin-shell .activity-hero {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    padding: 26px 28px;
    border-radius: 20px;
    overflow: hidden;
    color: #e2e8f0;
    background:
        radial-gradient(560px 260px at 88% -20%, rgba(59, 130, 246, 0.32), transparent 66%),
        radial-gradient(420px 240px at -8% 118%, rgba(37, 99, 235, 0.18), transparent 72%),
        linear-gradient(150deg, #101c33 0%, #0b1526 58%, #091120 100%);
    border: 1px solid rgba(255, 255, 255, 0.065);
    box-shadow: 0 24px 60px -44px rgba(8, 15, 30, 0.9);
}

.admin-shell .activity-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: radial-gradient(620px 300px at 78% 8%, #000 0%, transparent 76%);
    pointer-events: none;
}

.admin-shell .activity-hero-main { position: relative; z-index: 1; min-width: 0; }

.admin-shell .activity-hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #93c5fd;
}

.admin-shell .activity-hero-kicker .activity-live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
    animation: activityPulse 2.2s ease-in-out infinite;
}

.admin-shell .activity-hero h2 {
    margin: 10px 0 6px;
    font-size: 23px;
    font-weight: 300;
    letter-spacing: -0.02em;
    color: #ffffff;
}

.admin-shell .activity-hero-main > p {
    max-width: 640px;
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
    color: #a9b6cc;
}

.admin-shell .activity-hero-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-top: 16px;
    font-size: 12px;
    color: #94a3b8;
}

.admin-shell .activity-hero-meta strong { color: #f8fafc; font-weight: 600; }

.admin-shell .activity-state {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    font-size: 11px;
    font-weight: 500;
}

.admin-shell .activity-state::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #94a3b8;
}

.admin-shell .activity-state--live { color: #86efac; border-color: rgba(34, 197, 94, 0.28); background: rgba(34, 197, 94, 0.1); }
.admin-shell .activity-state--live::before { background: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18); }
.admin-shell .activity-state--checking { color: #93c5fd; border-color: rgba(59, 130, 246, 0.3); background: rgba(59, 130, 246, 0.12); }
.admin-shell .activity-state--checking::before { background: #60a5fa; animation: activityPulse 1.4s ease-in-out infinite; }
.admin-shell .activity-state--error { color: #fca5a5; border-color: rgba(239, 68, 68, 0.32); background: rgba(239, 68, 68, 0.12); }
.admin-shell .activity-state--error::before { background: #ef4444; }
.admin-shell .activity-state--paused { color: #cbd5e1; }

.admin-shell .activity-hero-side {
    position: relative;
    z-index: 1;
    width: 236px;
    flex-shrink: 0;
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(6px);
}

.admin-shell .activity-hero-side-label {
    display: block;
    margin-bottom: 4px;
    font-size: 9.5px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #8ea3c2;
}

.admin-shell .activity-source-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    font-size: 12px;
    color: #cbd5e1;
    border-top: 1px solid rgba(255, 255, 255, 0.065);
}

.admin-shell .activity-source-pill i { width: 15px; height: 15px; color: #93c5fd; flex-shrink: 0; }
.admin-shell .activity-source-pill em {
    margin-left: auto;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.14);
}

/* Stats --------------------------------------------------------------- */
.admin-shell .activity-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.admin-shell .activity-stat { padding: 16px 18px; }
.admin-shell .activity-stat .stat-value { font-size: 27px; line-height: 1.1; }
.admin-shell .activity-stat .stat-foot { margin-top: 6px; font-size: 11.5px; }

/* Filters ------------------------------------------------------------- */
.admin-shell .activity-filters { padding: 18px 20px; }

.admin-shell .activity-filter-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr)) minmax(190px, 1.25fr);
    gap: 12px;
    align-items: end;
}

.admin-shell .activity-filter-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.admin-shell .activity-filters .activity-filter-field label {
    margin: 0;
    font-size: 9.5px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--mt-muted);
}

.admin-shell .activity-filter-field select,
.admin-shell .activity-filter-field input {
    width: 100%;
    min-height: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--mt-border);
    border-radius: 10px;
    background: var(--mt-white);
    color: var(--mt-text);
    font-size: 12.5px;
    box-shadow: none;
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

.admin-shell .activity-filter-field select { padding-right: 30px; }
.admin-shell .activity-filter-field input::placeholder { color: var(--mt-faint); }

.admin-shell .activity-filter-field select:focus,
.admin-shell .activity-filter-field input:focus {
    outline: none;
    border-color: var(--mt-blue-300);
    box-shadow: var(--mt-ring);
}

.admin-shell .activity-custom-range {
    display: none;
    grid-template-columns: 190px 190px minmax(0, 1fr);
    gap: 12px;
    align-items: end;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed var(--mt-border);
}

.admin-shell .activity-custom-range.is-visible { display: grid; }

.admin-shell .activity-custom-range p {
    margin: 0 0 11px;
    font-size: 11.5px;
    color: var(--mt-muted);
}

.admin-shell .activity-filter-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--mt-border);
}

.admin-shell .activity-filter-actions .btn { min-height: 38px; }

.admin-shell .activity-filter-scope {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    padding: 6px 11px;
    border: 1px solid var(--mt-border);
    border-radius: 999px;
    background: var(--mt-surface-2);
    color: var(--mt-text-2);
    font-size: 11.5px;
    max-width: 100%;
}

.admin-shell .activity-filter-scope i { width: 13px; height: 13px; color: var(--mt-blue); flex-shrink: 0; }
.admin-shell .activity-filter-scope span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Feed shell ---------------------------------------------------------- */
.admin-shell .activity-feed-shell { position: relative; }

.admin-shell .activity-feed-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    padding: 16px 22px;
    border-bottom: 1px solid var(--mt-border);
    background: linear-gradient(180deg, #fbfcff 0%, #ffffff 100%);
    border-radius: var(--mt-radius) var(--mt-radius) 0 0;
}

.admin-shell .activity-feed-head h2 {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--mt-text);
}

.admin-shell .activity-feed-head p { margin: 4px 0 0; font-size: 12px; color: var(--mt-muted); }
.admin-shell .activity-feed-head p strong { color: var(--mt-text); font-weight: 600; }
.admin-shell .activity-feed-scope { color: var(--mt-faint); }

.admin-shell .activity-feed-hint {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
    padding: 5px 10px;
    border-radius: 999px;
    background: var(--mt-soft);
    border: 1px solid var(--mt-blue-100);
    color: var(--mt-deep);
    font-size: 10.5px;
    font-weight: 500;
}

.admin-shell .activity-feed-hint i { width: 12px; height: 12px; }

.admin-shell .activity-new-wrap {
    position: sticky;
    top: calc(var(--mt-topbar) + 12px);
    z-index: 30;
    height: 0;
    display: flex;
    justify-content: center;
    pointer-events: none;
}

.admin-shell .activity-new-pill {
    pointer-events: auto;
    transform: translateY(9px);
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 15px;
    border: 0;
    border-radius: 999px;
    background: var(--mt-blue);
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 14px 30px -14px rgba(37, 99, 235, 0.75);
    animation: activityDrop 220ms ease;
}

.admin-shell .activity-new-pill:hover { background: var(--mt-deep); }
.admin-shell .activity-new-pill i { width: 13px; height: 13px; }

/* Timeline ------------------------------------------------------------ */
.admin-shell .activity-timeline { padding: 4px 22px 12px; scroll-margin-top: calc(var(--mt-topbar) + 14px); }

.admin-shell .activity-day { padding-top: 18px; }

.admin-shell .activity-day-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 4px;
}

.admin-shell .activity-day-title { display: flex; align-items: baseline; gap: 9px; flex-wrap: wrap; }

.admin-shell .activity-day-label {
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--mt-text);
}

.admin-shell .activity-day-date { font-size: 11.5px; color: var(--mt-muted); }

.admin-shell .activity-day-count {
    padding: 3px 9px;
    border: 1px solid var(--mt-border);
    border-radius: 999px;
    background: var(--mt-surface-2);
    color: var(--mt-muted);
    font-size: 10.5px;
    white-space: nowrap;
}

.admin-shell .activity-day-list { position: relative; margin-top: 8px; }

.admin-shell .activity-day-list::before {
    content: "";
    position: absolute;
    left: 19px;
    top: 14px;
    bottom: 14px;
    width: 1px;
    background: linear-gradient(180deg, var(--mt-border-strong) 0%, var(--mt-border) 82%, transparent 100%);
}

.admin-shell .activity-entry {
    position: relative;
    display: flex;
    gap: 12px;
    padding: 5px 0 10px;
}

.admin-shell .activity-entry-rail {
    width: 38px;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    padding-top: 21px;
    position: relative;
}

.admin-shell .activity-entry-node {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--entry-accent, var(--mt-blue));
    border: 2px solid var(--mt-white);
    box-shadow: 0 0 0 3px var(--entry-soft, var(--mt-soft));
    z-index: 1;
}

.admin-shell .activity-entry-card {
    position: relative;
    flex: 1;
    min-width: 0;
    padding: 13px 16px;
    border: 1px solid var(--mt-border);
    border-radius: 13px;
    background: var(--mt-white);
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.035);
    overflow: hidden;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.admin-shell .activity-entry-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 2px;
    background: var(--entry-accent, var(--mt-blue));
    opacity: 0.72;
}

.admin-shell .activity-entry-card:hover {
    border-color: var(--mt-border-strong);
    box-shadow: 0 10px 26px -22px rgba(16, 24, 40, 0.5);
}

.admin-shell .activity-entry.is-fresh .activity-entry-card { animation: activityFresh 1.6s ease; }

.admin-shell .activity-entry-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.admin-shell .activity-actor { display: flex; align-items: center; gap: 10px; min-width: 0; }

.admin-shell .activity-actor-info { min-width: 0; }

.admin-shell .activity-actor-line { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }

.admin-shell .activity-actor-name { font-size: 13px; font-weight: 600; color: var(--mt-text); }

.admin-shell .activity-worker-id {
    padding: 1px 5px;
    border: 1px solid var(--mt-blue-100);
    border-radius: 4px;
    background: var(--mt-soft);
    color: var(--mt-blue-700);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 9.5px;
    letter-spacing: 0.03em;
}

.admin-shell .activity-actor-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 2px;
    font-size: 11px;
    color: var(--mt-muted);
}

.admin-shell .activity-meta-dot { color: var(--mt-faint); }

.admin-shell .activity-source { display: inline-flex; align-items: center; gap: 4px; }
.admin-shell .activity-source i { width: 11px; height: 11px; }

.admin-shell .activity-entry-side {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.admin-shell .activity-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 8px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: var(--chip-soft, var(--mt-surface-2));
    color: var(--chip-color, var(--mt-text-2));
    font-size: 10.5px;
    font-weight: 600;
    white-space: nowrap;
}

.admin-shell .activity-chip i { width: 11px; height: 11px; }

.admin-shell .activity-chip-module { background: var(--chip-soft, var(--mt-surface-2)); color: var(--chip-color, var(--mt-text-2)); }

.admin-shell .activity-time {
    font-size: 11px;
    color: var(--mt-muted);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.admin-shell .activity-summary {
    margin: 9px 0 8px;
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--mt-text);
}

.admin-shell .activity-entry-tags { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }

.admin-shell .activity-ref-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--mt-blue);
    font-size: 11.5px;
    font-weight: 500;
    text-decoration: none;
}

.admin-shell .activity-ref-link:hover { color: var(--mt-deep); text-decoration: underline; }
.admin-shell .activity-ref-link i { width: 12px; height: 12px; }

.admin-shell .activity-change-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 9px;
}

.admin-shell .activity-change {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
    padding: 4px 8px;
    border: 1px solid var(--mt-border);
    border-radius: 7px;
    background: var(--mt-surface-2);
    color: var(--mt-text-2);
    font-size: 11px;
    line-height: 1.4;
}

.admin-shell .activity-change-field { font-weight: 600; color: var(--mt-text); }
.admin-shell .activity-change-from { color: var(--mt-muted); text-decoration: line-through; text-decoration-color: rgba(102, 112, 133, 0.45); }
.admin-shell .activity-change i { width: 10px; height: 10px; color: var(--mt-faint); }
.admin-shell .activity-change-to { color: var(--mt-success-strong); font-weight: 600; }

.admin-shell .activity-more {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    color: var(--mt-muted);
    font-size: 10.5px;
    font-style: italic;
}

.admin-shell .activity-detail-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed var(--mt-border);
}

.admin-shell .activity-detail {
    display: inline-flex;
    align-items: baseline;
    gap: 5px;
    padding: 3px 8px;
    border: 1px solid var(--mt-border);
    border-radius: 6px;
    background: #fbfcfe;
    color: var(--mt-text-2);
    font-size: 11px;
    line-height: 1.5;
}

.admin-shell .activity-detail.is-wide { flex: 1 1 100%; align-items: flex-start; }

.admin-shell .activity-detail-label {
    font-size: 9.5px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--mt-faint);
    white-space: nowrap;
}

.admin-shell .activity-detail-value { color: var(--mt-text); min-width: 0; }

/* Empty + footer ------------------------------------------------------ */
.admin-shell .activity-empty { padding: 58px 24px; text-align: center; }

.admin-shell .activity-empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin-bottom: 12px;
    border-radius: 14px;
    background: var(--mt-soft);
    color: var(--mt-blue);
}

.admin-shell .activity-empty-icon i { width: 23px; height: 23px; }
.admin-shell .activity-empty h3 { margin: 0 0 6px; font-size: 15px; font-weight: 500; color: var(--mt-text); }
.admin-shell .activity-empty p { max-width: 460px; margin: 0 auto 15px; font-size: 12.5px; line-height: 1.6; color: var(--mt-muted); }

.admin-shell .activity-feed-foot {
    display: flex;
    justify-content: center;
    padding: 14px 22px 20px;
    border-top: 1px solid var(--mt-border);
}

.admin-shell .activity-end-note {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    color: var(--mt-muted);
    font-size: 11.5px;
}

.admin-shell .activity-end-note i { width: 13px; height: 13px; color: var(--mt-success); }

.admin-shell .activity-page .btn.is-loading { opacity: 0.65; pointer-events: none; }

@keyframes activityPulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.16); }
    50% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.05); }
}

@keyframes activityDrop {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(9px); }
}

@keyframes activityFresh {
    0% { background: #eff6ff; border-color: #bfdbfe; }
    100% { background: var(--mt-white); }
}

/* Responsive ---------------------------------------------------------- */
@media (max-width: 1240px) {
    .admin-shell .activity-filter-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .admin-shell .activity-filter-search { grid-column: span 1; }
}

@media (max-width: 1100px) {
    .admin-shell .activity-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .admin-shell .activity-hero { align-items: flex-start; }
    .admin-shell .activity-hero-side { width: 210px; }
}

@media (max-width: 900px) {
    .admin-shell .activity-page-head { flex-direction: column; align-items: flex-start; gap: 14px; }
    .admin-shell .activity-head-actions { width: 100%; }
    .admin-shell .activity-hero { flex-direction: column; gap: 18px; padding: 22px; }
    .admin-shell .activity-hero-side {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0 16px;
        align-items: center;
    }
    .admin-shell .activity-hero-side-label { grid-column: 1 / -1; }
    .admin-shell .activity-source-pill { border-top: 0; padding: 6px 0; }
    .admin-shell .activity-filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .admin-shell .activity-custom-range { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .admin-shell .activity-custom-range p { grid-column: 1 / -1; margin-bottom: 0; }
}

@media (max-width: 680px) {
    .admin-shell .activity-page-head h1 { font-size: 24px; }
    .admin-shell .activity-head-actions .btn { flex: 1; justify-content: center; }
    .admin-shell .activity-live-toggle { flex: 1; justify-content: center; }
    .admin-shell .activity-hero { padding: 20px; border-radius: 16px; }
    .admin-shell .activity-hero h2 { font-size: 20px; }
    .admin-shell .activity-hero-meta { gap: 7px 12px; font-size: 11.5px; }
    .admin-shell .activity-hero-side { grid-template-columns: 1fr; }
    .admin-shell .activity-source-pill { border-top: 1px solid rgba(255, 255, 255, 0.065); }
    .admin-shell .activity-source-pill:first-of-type { border-top: 0; }
    .admin-shell .activity-stats { grid-template-columns: 1fr 1fr; gap: 10px; }
    .admin-shell .activity-stat { padding: 14px; }
    .admin-shell .activity-stat .stat-value { font-size: 22px; }
    .admin-shell .activity-filter-grid { grid-template-columns: 1fr; }
    .admin-shell .activity-custom-range { grid-template-columns: 1fr; }
    .admin-shell .activity-filter-actions .btn { flex: 1; justify-content: center; }
    .admin-shell .activity-filter-scope { margin-left: 0; width: 100%; justify-content: center; }
    .admin-shell .activity-feed-head { flex-direction: column; align-items: flex-start; padding: 14px 16px; }
    .admin-shell .activity-feed-scope { display: block; margin-top: 2px; }
    .admin-shell .activity-timeline { padding: 2px 12px 10px; }
    .admin-shell .activity-day-list::before { left: 12px; }
    .admin-shell .activity-entry { gap: 8px; }
    .admin-shell .activity-entry-rail { width: 25px; padding-top: 19px; }
    .admin-shell .activity-entry-node { width: 9px; height: 9px; }
    .admin-shell .activity-entry-card { padding: 12px; }
    .admin-shell .activity-entry-head { flex-direction: column; gap: 8px; }
    .admin-shell .activity-entry-side { width: 100%; justify-content: space-between; }
    .admin-shell .activity-entry-side .activity-time { order: -1; }
    .admin-shell .activity-summary { font-size: 13px; }
    .admin-shell .activity-detail { flex: 1 1 100%; }
    .admin-shell .activity-day-count { font-size: 9.5px; padding: 2px 7px; }
    .admin-shell .activity-new-wrap { top: calc(var(--mt-topbar) + 8px); }
    .admin-shell .activity-feed-foot { padding: 12px 16px 18px; }
}

@media (prefers-reduced-motion: reduce) {
    .admin-shell .activity-live-toggle.is-live .activity-live-dot,
    .admin-shell .activity-hero-kicker .activity-live-dot,
    .admin-shell .activity-state--checking::before,
    .admin-shell .activity-entry.is-fresh .activity-entry-card,
    .admin-shell .activity-new-pill {
        animation: none !important;
    }
}

/* ------------------------------------------------------------------ */
/* Admin mobile dashboard + full menu access                           */
/* ------------------------------------------------------------------ */
@media (min-width: 900px) {
    .admin-shell .dashboard-all-modules-btn { display: none; }
}

@media (max-width: 899px) {
    .admin-shell .topbar-meta { display: flex; gap: 8px; }
    .admin-shell .topbar-meta .clock-pill { display: none; }
    .admin-shell .topbar { padding-right: 14px; }
    .admin-shell .topbar-meta .avatar { width: 34px; height: 34px; border-radius: 10px; font-size: 11px; }
    .admin-shell .mobile-nav.mobile-nav-admin { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    .admin-shell .dashboard-page .dashboard-hero .actions .btn,
    .admin-shell .dashboard-page .dashboard-hero .actions .btn-quiet { min-height: 44px; }
    .admin-shell .dashboard-clearance-actions .btn { min-height: 44px; }
}

@media (max-width: 640px) {
    .admin-shell .dashboard-page .dashboard-hero .actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        width: 100%;
    }
    .admin-shell .dashboard-page .dashboard-hero .actions .action-divider { display: none; }
    .admin-shell .dashboard-page .dashboard-hero .actions .btn {
        width: 100%;
        min-height: 46px;
        padding: 0 10px;
        gap: 7px;
        font-size: 12px;
        justify-content: flex-start;
        text-align: left;
        white-space: normal;
    }
    .admin-shell .dashboard-page .dashboard-hero .actions .btn-quiet {
        min-height: 46px;
        padding: 0 10px;
        background: #f7f9fd;
        border-color: #e9edf4;
        color: #344054;
    }
    .admin-shell .dashboard-page .dashboard-hero .actions .dashboard-all-modules-btn {
        grid-column: 1 / -1;
        justify-content: center;
        background: var(--mt-soft);
        border-color: #bfdbfe;
        color: var(--mt-deep);
    }
    .admin-shell .dashboard-page .dashboard-hero .actions .dashboard-all-modules-btn i { color: var(--mt-blue); }
    .admin-shell .dashboard-job-row { flex-wrap: wrap; align-items: flex-start; padding: 12px 14px; }
    .admin-shell .dashboard-job-main { flex: 1 1 100%; }
    .admin-shell .dashboard-job-actions {
        flex: 1 1 100%;
        justify-content: space-between;
        padding-top: 10px;
        border-top: 1px solid var(--mt-border);
    }
    .admin-shell .dashboard-job-actions .btn { min-height: 40px; padding: 0 12px; font-size: 12px; }
    .admin-shell .dashboard-panel-head { flex-wrap: wrap; row-gap: 4px; }
    .admin-shell .dashboard-clearance-actions .btn { padding: 7px 8px; font-size: 11.5px; }
}

/* ------------------------------------------------------------------ */
/* Dashboard staff attendance quick view                               */
/* ------------------------------------------------------------------ */
.admin-shell .dashboard-attendance-live {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 7px;
    border-radius: 999px;
    background: var(--mt-success-soft);
    border: 1px solid var(--mt-success-border);
    color: var(--mt-success-strong);
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    white-space: nowrap;
}
.admin-shell .dashboard-attendance-live .dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--mt-success);
    animation: pulse 2s infinite;
}
.admin-shell .dashboard-attendance-console {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0 8px;
    border-radius: 8px;
    color: var(--mt-blue);
    font-size: 11.5px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}
.admin-shell .dashboard-attendance-console:hover {
    background: var(--mt-soft);
    color: var(--mt-deep);
}
.admin-shell .dashboard-attendance-body { padding: 13px 16px 14px; }
.admin-shell .dashboard-attendance-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}
.admin-shell .dashboard-attendance-metric {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 10px;
    border: 1px solid var(--mt-border);
    border-left: 3px solid var(--mt-border-strong);
    border-radius: 9px;
    background: var(--mt-bg);
    text-decoration: none;
    transition: background 160ms ease, border-color 160ms ease;
}
.admin-shell .dashboard-attendance-metric:hover {
    background: #f8fafc;
    border-color: var(--mt-blue-300);
}
.admin-shell .dashboard-attendance-metric .label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--mt-text-2);
    white-space: nowrap;
}
.admin-shell .dashboard-attendance-metric .value {
    font-size: 19px;
    line-height: 1;
    color: var(--mt-text);
    letter-spacing: -0.02em;
    white-space: nowrap;
}
.admin-shell .dashboard-attendance-metric .value small {
    font-size: 11px;
    font-weight: 600;
    color: var(--mt-muted);
    letter-spacing: 0;
}
.admin-shell .dashboard-attendance-metric.is-onsite { border-left-color: var(--mt-success); }
.admin-shell .dashboard-attendance-metric.is-onsite .value { color: var(--mt-success-strong); }
.admin-shell .dashboard-attendance-metric.is-present { border-left-color: var(--mt-blue); }
.admin-shell .dashboard-attendance-metric.is-present .value { color: var(--mt-deep); }
.admin-shell .dashboard-attendance-metric.is-late { border-left-color: var(--mt-warning-border); }
.admin-shell .dashboard-attendance-metric.is-late .value { color: var(--mt-warning); }
.admin-shell .dashboard-attendance-metric.is-absent { border-left-color: var(--mt-danger-border); }
.admin-shell .dashboard-attendance-metric.is-absent .value { color: var(--mt-danger); }
.admin-shell .dashboard-attendance-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
    margin: 9px 1px 4px;
    font-size: 11px;
    color: var(--mt-muted);
}
.admin-shell .dashboard-attendance-roster {
    margin-top: 6px;
    border-top: 1px dashed var(--mt-border);
}
.admin-shell .dashboard-attendance-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid var(--mt-border);
}
.admin-shell .dashboard-attendance-row:last-child { border-bottom: 0; }
.admin-shell .dashboard-attendance-person {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex: 1 1 auto;
}
.admin-shell .dashboard-attendance-person .avatar { flex: 0 0 auto; }
.admin-shell .dashboard-attendance-person-copy {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}
.admin-shell .dashboard-attendance-person-copy strong {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--mt-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.admin-shell .dashboard-attendance-person-copy span {
    font-size: 10.5px;
    color: var(--mt-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.admin-shell .dashboard-attendance-side {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
}
.admin-shell .dashboard-attendance-form { display: flex; margin: 0; }
.admin-shell .dashboard-attendance-state {
    display: inline-flex;
    align-items: center;
    padding: 2px 7px;
    border-radius: 999px;
    border: 1px solid var(--mt-border);
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    white-space: nowrap;
}
.admin-shell .dashboard-attendance-state.is-present {
    background: var(--mt-success-soft);
    border-color: var(--mt-success-border);
    color: var(--mt-success-strong);
}
.admin-shell .dashboard-attendance-state.is-late {
    background: var(--mt-warning-soft);
    border-color: var(--mt-warning-border);
    color: var(--mt-warning);
}
.admin-shell .dashboard-attendance-state.is-absent {
    background: var(--mt-bg);
    border-color: var(--mt-border);
    color: var(--mt-muted);
}
.admin-shell .dashboard-attendance-btn {
    min-height: 30px;
    padding: 0 9px;
    gap: 4px;
    font-size: 10.5px;
    font-weight: 600;
    white-space: nowrap;
}
.admin-shell .dashboard-attendance-btn i { width: 12px; height: 12px; }
.admin-shell .dashboard-attendance-btn.is-out {
    color: var(--mt-danger);
    border-color: var(--mt-danger-border);
    background: #ffffff;
}
.admin-shell .dashboard-attendance-btn.is-out:hover { background: var(--mt-danger-soft); }
.admin-shell .dashboard-attendance-btn.is-in {
    color: var(--mt-deep);
    border-color: #b2ddff;
    background: #ffffff;
}
.admin-shell .dashboard-attendance-btn.is-in:hover { background: var(--mt-info-soft); }
.admin-shell .dashboard-attendance-shown {
    margin-top: 8px;
    font-size: 10.5px;
    color: var(--mt-faint);
}
.admin-shell .dashboard-attendance-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 16px 0 8px;
    text-align: center;
}
.admin-shell .dashboard-attendance-empty p {
    margin: 0 0 4px;
    font-size: 12px;
    color: var(--mt-muted);
}
.admin-shell .dashboard-attendance-foot {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--mt-border);
}
.admin-shell .dashboard-attendance-foot .btn {
    flex: 1 1 auto;
    min-height: 34px;
    padding: 0 9px;
    justify-content: center;
    font-size: 11px;
    white-space: nowrap;
}

@media (max-width: 640px) {
    .admin-shell .dashboard-attendance-console { min-height: 40px; padding: 0 10px; }
    .admin-shell .dashboard-attendance-row { flex-wrap: wrap; align-items: flex-start; }
    .admin-shell .dashboard-attendance-person { flex: 1 1 100%; }
    .admin-shell .dashboard-attendance-side {
        flex: 1 1 100%;
        justify-content: space-between;
        padding-top: 2px;
    }
    .admin-shell .dashboard-attendance-btn { min-height: 44px; padding: 0 12px; font-size: 11px; }
    .admin-shell .dashboard-attendance-foot .btn { min-height: 44px; }
}

/* ------------------------------------------------------------------ */
/* Data control — administrator-only destructive console              */
/* ------------------------------------------------------------------ */
.admin-shell .nav-link.nav-link-danger i { color: #fca5a5; }
.admin-shell .nav-link.nav-link-danger:hover {
    background: rgba(217, 45, 32, 0.14);
    color: #ffffff;
}
.admin-shell .nav-link.nav-link-danger:hover i { color: #fca5a5; }
.admin-shell .nav-link.nav-link-danger.is-active {
    background: linear-gradient(90deg, rgba(217, 45, 32, 0.3), rgba(217, 45, 32, 0.08));
    color: #ffffff;
    box-shadow: inset 0 0 0 1px rgba(248, 113, 113, 0.22);
}
.admin-shell .nav-link.nav-link-danger.is-active i { color: #fca5a5; }
.admin-shell .nav-link.nav-link-danger.is-active::before {
    background: #f87171;
    box-shadow: 0 0 14px rgba(248, 113, 113, 0.85);
}

.admin-shell .data-control-page {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

.admin-shell .dc-hero {
    position: relative;
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 28px;
    overflow: hidden;
    padding: 26px 28px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        radial-gradient(460px 240px at 92% -30%, rgba(248, 113, 113, 0.26), transparent 68%),
        radial-gradient(420px 220px at 0% 120%, rgba(37, 99, 235, 0.18), transparent 70%),
        linear-gradient(135deg, #131d31 0%, #0c1424 60%, #101827 100%);
    color: #f8fafc;
    box-shadow: 0 26px 54px -38px rgba(8, 15, 30, 0.7);
}
.admin-shell .dc-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.5;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 34px 34px;
    mask-image: linear-gradient(90deg, transparent, #000 45%, #000 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 45%, #000 100%);
}
.admin-shell .dc-hero-main {
    position: relative;
    z-index: 1;
    max-width: 680px;
}
.admin-shell .dc-hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    color: #fca5a5;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.admin-shell .dc-hero-kicker i { width: 13px; height: 13px; }
.admin-shell .dc-hero h1 {
    margin: 0;
    color: #ffffff;
    font-family: var(--mt-font-display);
    font-size: 34px;
    font-weight: 700;
    letter-spacing: -0.8px;
    line-height: 1.08;
}
.admin-shell .dc-hero p {
    max-width: 620px;
    margin: 9px 0 0;
    color: #aebdd0;
    font-size: 13px;
    line-height: 1.6;
}
.admin-shell .dc-hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 14px;
}
.admin-shell .dc-hero-tags span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 9px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.055);
    color: #cbd5e1;
    font-size: 10.5px;
    white-space: nowrap;
}
.admin-shell .dc-hero-tags i { width: 11px; height: 11px; color: #93c5fd; }
.admin-shell .dc-hero-figure {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    flex-shrink: 0;
    min-width: 210px;
    padding-left: 26px;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}
.admin-shell .dc-hero-figure-label {
    color: #93a4bc;
    font-size: 9.5px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.admin-shell .dc-hero-figure strong {
    color: #ffffff;
    font-family: var(--mt-font-display);
    font-size: 44px;
    font-weight: 700;
    letter-spacing: -1.5px;
    line-height: 1.05;
    font-variant-numeric: tabular-nums;
}
.admin-shell .dc-hero-figure-note {
    color: #8fa1b9;
    font-size: 10.5px;
}
.admin-shell .dc-hero-live {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    align-self: flex-start;
    margin-top: 8px;
    padding: 3px 7px;
    border: 1px solid rgba(248, 113, 113, 0.32);
    border-radius: 5px;
    background: rgba(217, 45, 32, 0.14);
    color: #fecaca;
    font-size: 8.5px;
    font-weight: 700;
    letter-spacing: 0.1em;
}
.admin-shell .dc-hero-live span {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #f87171;
    box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.16);
}

.admin-shell .dc-alert {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid var(--mt-danger-border);
    border-radius: 14px;
    background: linear-gradient(90deg, #fff5f4 0%, #fffdfd 62%, #ffffff 100%);
}
.admin-shell .dc-alert-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--mt-danger-soft);
    color: var(--mt-danger);
    flex-shrink: 0;
}
.admin-shell .dc-alert-icon i { width: 18px; height: 18px; }
.admin-shell .dc-alert-copy { flex: 1; min-width: 0; }
.admin-shell .dc-alert-copy strong {
    display: block;
    color: var(--mt-danger-strong);
    font-size: 12.5px;
    line-height: 1.4;
}
.admin-shell .dc-alert-copy span {
    display: block;
    margin-top: 1px;
    color: var(--mt-text-2);
    font-size: 11.5px;
    line-height: 1.5;
}
.admin-shell .dc-alert-tag {
    flex-shrink: 0;
    padding: 3px 8px;
    border: 1px solid var(--mt-danger-border);
    border-radius: 999px;
    background: #ffffff;
    color: var(--mt-danger);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.admin-shell .dc-mobile-picker { display: none; }

.admin-shell .dc-layout {
    display: grid;
    grid-template-columns: 258px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
    min-width: 0;
}

.admin-shell .dc-rail {
    position: sticky;
    top: calc(var(--mt-topbar) + 16px);
    max-height: calc(100vh - var(--mt-topbar) - 32px);
    overflow-y: auto;
    padding: 12px;
    border: 1px solid var(--mt-border);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: var(--mt-shadow-card);
}
.admin-shell .dc-rail-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 2px 6px 10px;
    color: var(--mt-text-2);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.admin-shell .dc-rail-total {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--mt-surface-2);
    color: var(--mt-muted);
    font-size: 9.5px;
    letter-spacing: 0;
}
.admin-shell .dc-rail-group { padding-top: 9px; border-top: 1px solid var(--mt-border); margin-top: 9px; }
.admin-shell .dc-rail-group:first-of-type { border-top: 0; margin-top: 0; padding-top: 0; }
.admin-shell .dc-rail-label {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0 7px 5px;
    color: var(--mt-faint);
    font-size: 8.5px;
    font-weight: 600;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}
.admin-shell .dc-rail-label i { width: 10px; height: 10px; }
.admin-shell .dc-rail-group.is-current .dc-rail-label { color: var(--mt-danger); }
.admin-shell .dc-rail-link {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 33px;
    padding: 6px 8px;
    border-radius: 8px;
    color: var(--mt-text-2);
    font-size: 12px;
    font-weight: 400;
    transition: background-color 140ms ease, color 140ms ease;
}
.admin-shell .dc-rail-link i { width: 14px; height: 14px; color: var(--mt-faint); flex-shrink: 0; }
.admin-shell .dc-rail-link:hover { background: var(--mt-surface-2); color: var(--mt-text); }
.admin-shell .dc-rail-link:hover i { color: var(--mt-text-2); }
.admin-shell .dc-rail-link.is-active {
    background: var(--mt-ink);
    color: #ffffff;
    box-shadow: 0 4px 12px -8px rgba(11, 18, 32, 0.65);
}
.admin-shell .dc-rail-link.is-active i { color: #fca5a5; }
.admin-shell .dc-rail-name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.admin-shell .dc-rail-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--mt-surface-2);
    color: var(--mt-muted);
    font-size: 9px;
    font-variant-numeric: tabular-nums;
}
.admin-shell .dc-rail-link.is-active .dc-rail-count {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}
.admin-shell .dc-rail-foot {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin-top: 12px;
    padding: 10px 6px 2px;
    border-top: 1px solid var(--mt-border);
    color: var(--mt-faint);
    font-size: 10px;
    line-height: 1.45;
}
.admin-shell .dc-rail-foot i { width: 13px; height: 13px; flex-shrink: 0; margin-top: 1px; color: var(--mt-success); }

.admin-shell .dc-main {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

.admin-shell .dc-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 12px;
    border: 1px solid var(--mt-border);
    border-radius: 14px;
    background: #ffffff;
    box-shadow: var(--mt-shadow-card);
}
.admin-shell .dc-search {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}
.admin-shell .dc-search-box {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
    height: 40px;
    padding: 0 10px;
    border: 1px solid var(--mt-border-strong);
    border-radius: 10px;
    background: #ffffff;
    transition: border-color 140ms ease, box-shadow 140ms ease;
}
.admin-shell .dc-search-box:focus-within { border-color: var(--mt-blue); box-shadow: var(--mt-ring); }
.admin-shell .dc-search-box i { width: 15px; height: 15px; color: var(--mt-faint); flex-shrink: 0; }
.admin-shell .dc-search-box input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--mt-text);
    font-size: 12.5px;
}
.admin-shell .dc-search-box input::placeholder { color: var(--mt-faint); }
.admin-shell .dc-search .btn { min-height: 40px; font-size: 11.5px; white-space: nowrap; }
.admin-shell .dc-clear-btn { color: var(--mt-muted); }
.admin-shell .dc-toolbar-meta {
    display: flex;
    align-items: baseline;
    gap: 5px;
    white-space: nowrap;
    color: var(--mt-muted);
    font-size: 11px;
}
.admin-shell .dc-toolbar-meta strong {
    color: var(--mt-text);
    font-size: 16px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.admin-shell .dc-panel {
    overflow: hidden;
    border: 1px solid var(--mt-border);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: var(--mt-shadow-card);
}
.admin-shell .dc-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--mt-border);
    background: linear-gradient(180deg, #fbfcff, #ffffff);
}
.admin-shell .dc-panel-title { display: flex; align-items: center; gap: 11px; min-width: 0; }
.admin-shell .dc-panel-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--mt-soft);
    color: var(--mt-deep);
    flex-shrink: 0;
}
.admin-shell .dc-panel-icon i { width: 18px; height: 18px; }
.admin-shell .dc-panel-kicker {
    color: var(--mt-faint);
    font-size: 8.5px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.admin-shell .dc-panel-head h2 {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 2px 0 0;
    color: var(--mt-text);
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.2px;
}
.admin-shell .dc-panel-head h2 span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 18px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--mt-surface-2);
    color: var(--mt-muted);
    font-size: 9.5px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}
.admin-shell .dc-panel-note {
    max-width: 430px;
    margin: 2px 0 0;
    color: var(--mt-muted);
    font-size: 11.5px;
    line-height: 1.55;
    text-align: right;
}

.admin-shell .dc-list { display: block; }
.admin-shell .dc-row {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
    padding: 12px 20px;
    border-bottom: 1px solid var(--mt-border);
    transition: background-color 140ms ease;
}
.admin-shell .dc-row:last-child { border-bottom: 0; }
.admin-shell .dc-row:hover { background: #fbfcff; }
.admin-shell .dc-row.is-protected { background: #fcfcfd; }
.admin-shell .dc-row-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: var(--mt-surface-2);
    color: var(--mt-text-2);
    flex-shrink: 0;
}
.admin-shell .dc-row-icon i { width: 16px; height: 16px; }
.admin-shell .dc-row-main { flex: 1; min-width: 0; }
.admin-shell .dc-row-title {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    min-width: 0;
}
.admin-shell .dc-ref {
    flex-shrink: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 1px 6px;
    border: 1px solid var(--mt-border);
    border-radius: 5px;
    background: var(--mt-surface-2);
    color: var(--mt-text-2);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 9.5px;
    white-space: nowrap;
}
.admin-shell .dc-row-title strong {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    color: var(--mt-text);
    font-size: 13px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.admin-shell .dc-row-title .badge { font-size: 9px; padding: 1px 6px; line-height: 1.5; }
.admin-shell .dc-protected-tag {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 1px 6px;
    border: 1px solid var(--mt-border);
    border-radius: 999px;
    background: var(--mt-surface-2);
    color: var(--mt-faint);
    font-size: 9px;
    white-space: nowrap;
}
.admin-shell .dc-protected-tag i { width: 9px; height: 9px; }
.admin-shell .dc-row-sub {
    margin-top: 1px;
    overflow: hidden;
    color: var(--mt-muted);
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.admin-shell .dc-row-side {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    margin-left: auto;
}
.admin-shell .dc-row-figures {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1px;
    min-width: 84px;
}
.admin-shell .dc-row-amount {
    color: var(--mt-text);
    font-size: 11.5px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.admin-shell .dc-row-date { color: var(--mt-faint); font-size: 10px; white-space: nowrap; }
.admin-shell .dc-row-actions { display: flex; align-items: center; gap: 5px; }
.admin-shell .dc-open-btn,
.admin-shell .dc-delete-btn {
    min-height: 34px;
    padding: 0 10px;
    font-size: 10.5px;
    white-space: nowrap;
}
.admin-shell .dc-open-btn i,
.admin-shell .dc-delete-btn i { width: 12px; height: 12px; }
.admin-shell .dc-delete-btn {
    border: 1px solid var(--mt-danger-border);
    background: #ffffff;
    color: var(--mt-danger);
    font-weight: 700;
}
.admin-shell .dc-delete-btn:hover {
    border-color: var(--mt-danger);
    background: var(--mt-danger);
    color: #ffffff;
}
.admin-shell .dc-delete-btn:disabled {
    border-color: var(--mt-border);
    background: var(--mt-surface-2);
    color: var(--mt-faint);
    cursor: not-allowed;
}

.admin-shell .dc-empty { padding: 48px 24px; text-align: center; }
.admin-shell .dc-empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin-bottom: 10px;
    border-radius: 15px;
    background: var(--mt-surface-2);
    color: var(--mt-faint);
}
.admin-shell .dc-empty-icon i { width: 22px; height: 22px; }
.admin-shell .dc-empty h3 { margin: 0 0 4px; color: var(--mt-text); font-size: 14px; }
.admin-shell .dc-empty p {
    max-width: 360px;
    margin: 0 auto 14px;
    color: var(--mt-muted);
    font-size: 12px;
    line-height: 1.6;
}
.admin-shell .dc-empty .btn { font-size: 11px; }

.admin-shell .dc-pager {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 11px 20px;
    border-top: 1px solid var(--mt-border);
    background: var(--mt-surface-2);
}
.admin-shell .dc-pager .btn { min-height: 34px; font-size: 10.5px; }
.admin-shell .dc-pager [aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; }
.admin-shell .dc-pager-status { color: var(--mt-muted); font-size: 10.5px; }
.admin-shell .dc-pager-status strong { color: var(--mt-text); }

.admin-shell .dc-footnote {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    padding: 0 4px;
    color: var(--mt-muted);
    font-size: 10.5px;
    line-height: 1.55;
}
.admin-shell .dc-footnote i { width: 13px; height: 13px; flex-shrink: 0; margin-top: 1px; color: var(--mt-faint); }

/* Deletion confirmation */
body.dc-modal-open { overflow: hidden; }
.admin-shell .dc-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.admin-shell .dc-modal[hidden] { display: none !important; }
.admin-shell .dc-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 15, 30, 0.64);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}
.admin-shell .dc-modal-card {
    position: relative;
    display: flex;
    flex-direction: column;
    width: min(560px, 100%);
    max-height: calc(100vh - 40px);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 40px 90px -30px rgba(8, 15, 30, 0.65);
    animation: dcModalIn 180ms ease both;
}
@keyframes dcModalIn {
    from { opacity: 0; transform: translateY(12px) scale(0.985); }
    to { opacity: 1; transform: none; }
}
.admin-shell .dc-modal-head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 19px 20px 15px;
    border-bottom: 1px solid var(--mt-border);
}
.admin-shell .dc-modal-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--mt-danger-soft);
    color: var(--mt-danger);
    flex-shrink: 0;
}
.admin-shell .dc-modal-icon i { width: 19px; height: 19px; }
.admin-shell .dc-modal-heading { flex: 1; min-width: 0; }
.admin-shell .dc-modal-heading h2 { margin: 0 0 3px; color: var(--mt-text); font-size: 17px; letter-spacing: -0.2px; }
.admin-shell .dc-modal-heading p { margin: 0; color: var(--mt-muted); font-size: 11px; line-height: 1.5; }
.admin-shell .dc-modal-x {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid var(--mt-border);
    border-radius: 9px;
    background: #ffffff;
    color: var(--mt-muted);
    cursor: pointer;
    flex-shrink: 0;
}
.admin-shell .dc-modal-x:hover { background: var(--mt-surface-2); color: var(--mt-text); }
.admin-shell .dc-modal-x i { width: 14px; height: 14px; }
.admin-shell .dc-modal-body { padding: 15px 20px; overflow-y: auto; }
.admin-shell .dc-selected {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-bottom: 11px;
    padding: 9px 11px;
    border: 1px solid var(--mt-border);
    border-radius: 11px;
    background: var(--mt-surface-2);
}
.admin-shell .dc-selected span {
    color: var(--mt-muted);
    font-size: 8.5px;
    font-weight: 600;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}
.admin-shell .dc-selected strong { color: var(--mt-text); font-size: 12.5px; line-height: 1.45; word-break: break-word; }
.admin-shell .dc-impact {
    max-height: 270px;
    overflow-y: auto;
    padding: 11px;
    border: 1px solid var(--mt-border);
    border-radius: 12px;
    background: #fcfcfd;
}
.admin-shell .dc-impact-loading {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 2px;
    color: var(--mt-muted);
    font-size: 11.5px;
}
.admin-shell .dc-spinner {
    width: 15px;
    height: 15px;
    border: 2px solid var(--mt-border-strong);
    border-top-color: var(--mt-danger);
    border-radius: 50%;
    animation: dcSpin 700ms linear infinite;
    flex-shrink: 0;
}
@keyframes dcSpin { to { transform: rotate(360deg); } }
.admin-shell .dc-impact-summary {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 9px;
    padding-bottom: 9px;
    border-bottom: 1px solid var(--mt-border);
}
.admin-shell .dc-impact-total {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 8px;
    border-radius: 10px;
    background: var(--mt-danger);
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
}
.admin-shell .dc-impact-summary div { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.admin-shell .dc-impact-summary strong { color: var(--mt-danger-strong); font-size: 12px; line-height: 1.4; }
.admin-shell .dc-impact-summary span { color: var(--mt-muted); font-size: 10.5px; line-height: 1.4; }
.admin-shell .dc-impact-group + .dc-impact-group { margin-top: 9px; }
.admin-shell .dc-impact-group h3 {
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 0 0 3px;
    color: var(--mt-muted);
    font-size: 8.5px;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}
.admin-shell .dc-impact-group h3 i { width: 10px; height: 10px; }
.admin-shell .dc-impact-group.is-delete h3 { color: var(--mt-danger); }
.admin-shell .dc-impact-group.is-keep h3 { color: var(--mt-warning-strong); }
.admin-shell .dc-impact-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 3px 0;
    color: var(--mt-text-2);
    font-size: 11px;
}
.admin-shell .dc-impact-row strong { color: var(--mt-text); font-weight: 700; font-variant-numeric: tabular-nums; }
.admin-shell .dc-impact-group.is-delete .dc-impact-row strong { color: var(--mt-danger); }
.admin-shell .dc-impact-group.is-keep .dc-impact-row strong { color: var(--mt-warning-strong); }
.admin-shell .dc-impact-empty { margin: 4px 0; color: var(--mt-muted); font-size: 11px; }
.admin-shell .dc-impact-error { margin: 0; color: var(--mt-warning-strong); font-size: 11px; line-height: 1.5; }
.admin-shell .dc-impact-protected {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin: 9px 0 0;
    padding: 8px 10px;
    border-radius: 8px;
    background: var(--mt-warning-soft);
    color: var(--mt-warning-strong);
    font-size: 10.5px;
    line-height: 1.5;
}
.admin-shell .dc-impact-protected i { width: 12px; height: 12px; flex-shrink: 0; margin-top: 1px; }
.admin-shell .dc-confirm-field { display: flex; flex-direction: column; gap: 5px; margin-top: 13px; }
.admin-shell .dc-confirm-field > span { color: var(--mt-text-2); font-size: 11px; }
.admin-shell .dc-confirm-field > span strong { color: var(--mt-danger); letter-spacing: 0.07em; }
.admin-shell .dc-confirm-field input {
    height: 44px;
    padding: 0 12px;
    border: 1px solid var(--mt-border-strong);
    border-radius: 10px;
    background: #ffffff;
    color: var(--mt-danger);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    outline: none;
    transition: border-color 140ms ease, box-shadow 140ms ease;
}
.admin-shell .dc-confirm-field input:focus { border-color: var(--mt-danger); box-shadow: 0 0 0 4px rgba(217, 45, 32, 0.12); }
.admin-shell .dc-confirm-field input:disabled { background: var(--mt-surface-2); color: var(--mt-faint); cursor: not-allowed; }
.admin-shell .dc-confirm-field input::placeholder { color: var(--mt-faint); font-weight: 400; letter-spacing: 0.08em; }
.admin-shell .dc-noscript { margin: 8px 0 0; color: var(--mt-danger-strong); font-size: 11px; }
.admin-shell .dc-modal-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    padding: 13px 20px;
    border-top: 1px solid var(--mt-border);
    background: var(--mt-surface-2);
}
.admin-shell .dc-modal-actions .btn { min-height: 40px; font-size: 11.5px; }
.admin-shell .dc-modal-actions .btn-danger {
    border: 1px solid var(--mt-danger);
    background: var(--mt-danger);
    color: #ffffff;
}
.admin-shell .dc-modal-actions .btn-danger.is-armed { box-shadow: 0 8px 20px -12px rgba(217, 45, 32, 0.9); }
.admin-shell .dc-modal-actions .btn-danger:disabled {
    border-color: var(--mt-border-strong);
    background: var(--mt-border-strong);
    color: #ffffff;
    opacity: 0.72;
    cursor: not-allowed;
    box-shadow: none;
}

@media (max-width: 1180px) {
    .admin-shell .dc-layout { grid-template-columns: 224px minmax(0, 1fr); }
    .admin-shell .dc-panel-note { max-width: 320px; }
    .admin-shell .dc-row-side { gap: 8px; }
    .admin-shell .dc-row-figures { min-width: 72px; }
}

@media (max-width: 960px) {
    .admin-shell .dc-layout { grid-template-columns: 1fr; }
    .admin-shell .dc-rail { display: none; }
    .admin-shell .dc-mobile-picker {
        display: flex;
        flex-direction: column;
        gap: 5px;
        padding: 10px 12px;
        border: 1px solid var(--mt-border);
        border-radius: 14px;
        background: #ffffff;
        box-shadow: var(--mt-shadow-card);
    }
    .admin-shell .dc-mobile-picker label {
        color: var(--mt-muted);
        font-size: 9px;
        font-weight: 600;
        letter-spacing: 0.09em;
        text-transform: uppercase;
    }
    .admin-shell .dc-mobile-picker-row { display: flex; gap: 8px; }
    .admin-shell .dc-mobile-picker select {
        flex: 1;
        min-width: 0;
        height: 44px;
        padding: 0 10px;
        border: 1px solid var(--mt-border-strong);
        border-radius: 9px;
        background: #ffffff;
        color: var(--mt-text);
        font-size: 12.5px;
    }
    .admin-shell .dc-mobile-picker .btn { min-height: 44px; }
    .admin-shell .dc-hero { flex-direction: column; gap: 16px; }
    .admin-shell .dc-hero-figure {
        flex-direction: row;
        align-items: baseline;
        justify-content: flex-start;
        gap: 8px;
        width: 100%;
        min-width: 0;
        padding: 13px 0 0;
        border-left: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    .admin-shell .dc-hero-figure strong { font-size: 30px; letter-spacing: -0.8px; }
    .admin-shell .dc-hero-figure-note { display: none; }
    .admin-shell .dc-hero-live { display: none; }
    .admin-shell .dc-panel-head { flex-direction: column; gap: 7px; }
    .admin-shell .dc-panel-note { max-width: none; text-align: left; }
}

@media (max-width: 720px) {
    .admin-shell .dc-hero { padding: 20px; }
    .admin-shell .dc-hero h1 { font-size: 27px; }
    .admin-shell .dc-hero p { font-size: 12px; }
    .admin-shell .dc-hero-tags span { font-size: 9.5px; padding: 3px 7px; }
    .admin-shell .dc-alert { align-items: flex-start; padding: 11px 12px; }
    .admin-shell .dc-alert-tag { display: none; }
    .admin-shell .dc-toolbar { flex-direction: column; align-items: stretch; gap: 9px; padding: 10px; }
    .admin-shell .dc-search { flex-wrap: wrap; }
    .admin-shell .dc-search-box { flex: 1 1 100%; height: 44px; }
    .admin-shell .dc-search .btn { flex: 1 1 auto; min-height: 44px; }
    .admin-shell .dc-toolbar-meta { padding: 0 3px 2px; }
    .admin-shell .dc-panel-head { padding: 13px 14px; }
    .admin-shell .dc-panel-icon { width: 36px; height: 36px; }
    .admin-shell .dc-panel-head h2 { font-size: 16px; }
    .admin-shell .dc-row {
        flex-wrap: wrap;
        align-items: flex-start;
        gap: 9px;
        padding: 12px 14px;
    }
    .admin-shell .dc-row-icon { width: 32px; height: 32px; }
    .admin-shell .dc-row-main { flex: 1 1 calc(100% - 44px); }
    .admin-shell .dc-row-title strong {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        white-space: normal;
        overflow: hidden;
    }
    .admin-shell .dc-row-sub { white-space: normal; line-height: 1.45; }
    .admin-shell .dc-row-side {
        flex: 1 1 100%;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        margin-left: 41px;
        padding-top: 8px;
        border-top: 1px dashed var(--mt-border);
    }
    .admin-shell .dc-row-figures { flex-direction: row; align-items: baseline; gap: 8px; min-width: 0; }
    .admin-shell .dc-row-actions { flex-shrink: 0; }
    .admin-shell .dc-open-btn,
    .admin-shell .dc-delete-btn { min-height: 44px; padding: 0 12px; font-size: 10.5px; }
    .admin-shell .dc-open-btn i,
    .admin-shell .dc-delete-btn i { width: 13px; height: 13px; }
    .admin-shell .dc-pager { padding: 10px 12px; }
    .admin-shell .dc-pager .btn { min-height: 44px; font-size: 10px; }
    .admin-shell .dc-pager-status { font-size: 10px; }
    .admin-shell .dc-footnote { font-size: 10px; padding: 0 2px; }
    .admin-shell .dc-modal { padding: 0; align-items: flex-end; }
    .admin-shell .dc-modal-card {
        width: 100%;
        max-height: 92vh;
        border-radius: 20px 20px 0 0;
    }
    .admin-shell .dc-modal-head { padding: 16px 16px 12px; }
    .admin-shell .dc-modal-body { padding: 12px 16px; }
    .admin-shell .dc-modal-actions { padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); }
    .admin-shell .dc-modal-actions .btn { flex: 1 1 auto; min-height: 46px; justify-content: center; }
    .admin-shell .dc-confirm-field input { height: 48px; }
}

@media (max-width: 390px) {
    .admin-shell .dc-hero { padding: 17px 15px; }
    .admin-shell .dc-hero h1 { font-size: 25px; }
    .admin-shell .dc-row { padding: 11px 12px; }
    .admin-shell .dc-row-side { margin-left: 0; }
    .admin-shell .dc-row-figures { flex-direction: column; align-items: flex-start; gap: 1px; }
    .admin-shell .dc-pager { flex-wrap: wrap; justify-content: center; }
    .admin-shell .dc-pager-status { order: -1; width: 100%; margin-bottom: 3px; text-align: center; }
    .admin-shell .dc-pager .btn { flex: 1 1 40%; justify-content: center; }
}

/* =====================================================================
   PARTS & INVENTORY
   A dedicated catalogue, stock-control and ledger surface.
   ===================================================================== */
.admin-shell .inv-page-head { margin-bottom: 20px; }
.admin-shell .inv-page-head .inv-eyebrow {
    margin: 0 0 5px;
    color: var(--mt-blue);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.admin-shell .inv-head-actions { flex-shrink: 0; }
.admin-shell .inv-head-actions .btn { white-space: nowrap; }

/* Attention strip */
.admin-shell .inv-attention {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 18px;
    padding: 13px 16px;
    border: 1px solid var(--mt-warning-border);
    border-radius: 14px;
    background: linear-gradient(105deg, #fffaf0 0%, #ffffff 72%);
    color: var(--mt-text);
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.03);
    transition: border-color 160ms ease, box-shadow 160ms ease;
}
.admin-shell .inv-attention:hover {
    border-color: #fdb022;
    color: var(--mt-text);
    box-shadow: 0 8px 22px -18px rgba(181, 71, 8, 0.55);
}
.admin-shell .inv-attention-icon {
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #fee4e2;
    color: var(--mt-danger);
    box-shadow: inset 0 0 0 1px #fecdca;
}
.admin-shell .inv-attention-icon svg { width: 18px; height: 18px; }
.admin-shell .inv-attention-text { flex: 1 1 240px; min-width: 0; }
.admin-shell .inv-attention-text strong {
    display: block;
    color: #101828;
    font-size: 13.5px;
    font-weight: 500;
    letter-spacing: -0.01em;
}
.admin-shell .inv-attention-text span {
    display: block;
    margin-top: 2px;
    color: var(--mt-muted);
    font-size: 11.5px;
}
.admin-shell .inv-attention-cta {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex: 0 0 auto;
    color: var(--mt-warning);
    font-size: 11.5px;
    font-weight: 500;
}
.admin-shell .inv-attention-cta svg { width: 14px; height: 14px; }

/* Inventory metrics */
.admin-shell .inv-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 16px; }
.admin-shell .inv-stat { min-height: 124px; }
.admin-shell .inv-stat .stat-value { font-size: 25px; }
.admin-shell .inv-stat-link { transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease; }
.admin-shell .inv-stat-link:hover { border-color: var(--mt-warning-border); box-shadow: var(--mt-shadow-lift); transform: translateY(-2px); }

/* Status tabs */
.admin-shell .inv-tabs {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
    padding-bottom: 2px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.admin-shell .inv-tabs::-webkit-scrollbar { display: none; }
.admin-shell .inv-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
    min-height: 36px;
    padding: 0 11px;
    border: 1px solid var(--mt-border);
    border-radius: 999px;
    background: #ffffff;
    color: #475467;
    font-size: 11.5px;
    font-weight: 400;
    white-space: nowrap;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.03);
    transition: background 150ms ease, border-color 150ms ease, color 150ms ease;
}
.admin-shell .inv-tab svg { width: 13px; height: 13px; color: #98a2b3; }
.admin-shell .inv-tab em {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #f2f4f7;
    color: #667085;
    font-size: 9.5px;
    font-style: normal;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}
.admin-shell .inv-tab:hover { border-color: var(--mt-blue-200); background: #f9fbff; color: var(--mt-deep); }
.admin-shell .inv-tab:hover svg { color: var(--mt-blue); }
.admin-shell .inv-tab.is-active {
    background: #101828;
    border-color: #101828;
    color: #ffffff;
    box-shadow: 0 6px 16px -10px rgba(16, 24, 40, 0.65);
}
.admin-shell .inv-tab.is-active svg { color: #c3d6ff; }
.admin-shell .inv-tab.is-active em { background: rgba(255, 255, 255, 0.14); color: #ffffff; }
.admin-shell .inv-tab.has-alert em { background: var(--mt-warning-soft); color: var(--mt-warning); }
.admin-shell .inv-tab.has-alert.is-active em { background: #fdb022; color: #101828; }

/* Filters */
.admin-shell .inv-filter-card {
    padding: 15px 16px;
    margin-bottom: 14px;
    border-radius: 14px;
}
.admin-shell .inv-filter-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 11px;
}
.admin-shell .inv-filter-field { flex: 1 1 150px; min-width: 136px; }
.admin-shell .inv-filter-field label {
    display: block;
    margin: 0 0 5px;
    color: #667085;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.admin-shell .inv-filter-field input,
.admin-shell .inv-filter-field select { width: 100%; min-height: 42px; font-size: 12.5px; }
.admin-shell .inv-filter-search { flex: 2.1 1 250px; }
.admin-shell .inv-input-icon { position: relative; display: flex; align-items: center; }
.admin-shell .inv-input-icon > svg {
    position: absolute;
    left: 12px;
    width: 15px;
    height: 15px;
    color: #98a2b3;
    pointer-events: none;
}
.admin-shell .inv-input-icon input { padding-left: 37px !important; }
.admin-shell .inv-filter-actions { display: flex; flex-wrap: wrap; gap: 7px; flex: 0 1 auto; }
.admin-shell .inv-filter-actions .btn { min-height: 42px; font-size: 12px; padding: 0 13px; }
.admin-shell .inv-export-btn { margin-left: 2px; }

/* Results summary */
.admin-shell .inv-results-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding: 2px 2px 10px;
}
.admin-shell .inv-results-head > div { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.admin-shell .inv-results-head strong { color: #101828; font-size: 13px; font-weight: 500; }
.admin-shell .inv-results-head span { color: var(--mt-muted); font-size: 11.5px; }
.admin-shell .inv-results-hint {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--mt-warning) !important;
    font-size: 11px !important;
}
.admin-shell .inv-results-hint svg { width: 13px; height: 13px; }

/* Desktop catalogue table */
.admin-shell .inv-table-card { padding: 5px 12px 8px; overflow: hidden; }
.admin-shell .inv-table-wrap { overflow-x: auto; margin: 0 -4px; }
.admin-shell .inv-table { width: 100%; min-width: 1000px; border-collapse: separate; border-spacing: 0; }
.admin-shell .inv-table th {
    padding: 11px 11px;
    background: transparent;
    border-bottom: 1px solid var(--mt-border);
    color: #667085;
    font-size: 9.5px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}
.admin-shell .inv-table td { padding: 13px 11px; border-bottom: 1px solid #eef1f6; vertical-align: middle; }
.admin-shell .inv-table tr:last-child td { border-bottom: 0; }
.admin-shell .inv-table tbody tr { transition: background-color 140ms ease; }
.admin-shell .inv-table tbody tr:hover { background: #f9fbff; }
.admin-shell .inv-row-out td { background: #fffbfa; }
.admin-shell .inv-row-out:hover td { background: #fff6f4 !important; }
.admin-shell .inv-row-archived td { background: #fbfcfe; color: #667085; }

.admin-shell .inv-item-cell { display: flex; align-items: flex-start; gap: 10px; color: inherit; min-width: 0; }
.admin-shell .inv-item-cell:hover { color: inherit; }
.admin-shell .inv-item-icon {
    width: 36px;
    height: 36px;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: var(--mt-soft);
    color: var(--mt-blue);
    box-shadow: inset 0 0 0 1px #dbe7ff;
}
.admin-shell .inv-item-icon svg { width: 16px; height: 16px; }
.admin-shell .inv-item-text { min-width: 0; }
.admin-shell .inv-item-text strong {
    display: block;
    max-width: 290px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #101828;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: -0.01em;
}
.admin-shell .inv-item-cell:hover .inv-item-text strong { color: var(--mt-blue); }
.admin-shell .inv-item-text > span {
    display: block;
    margin-top: 2px;
    max-width: 290px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--mt-muted);
    font-size: 10.5px;
}
.admin-shell .inv-item-text small {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    margin-top: 3px;
    color: var(--mt-faint);
    font-size: 9.5px;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.admin-shell .inv-item-text small svg { width: 10px; height: 10px; }

.admin-shell .inv-stock { min-width: 118px; }
.admin-shell .inv-stock-figures { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.admin-shell .inv-stock-figures strong { color: #101828; font-size: 13.5px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.admin-shell .inv-stock-figures strong small { color: var(--mt-muted); font-size: 9.5px; font-weight: 400; text-transform: lowercase; }
.admin-shell .inv-stock-figures > span { color: var(--mt-faint); font-size: 9.5px; white-space: nowrap; }
.admin-shell .inv-meter {
    display: block;
    height: 5px;
    margin-top: 6px;
    border-radius: 999px;
    background: #eef2f7;
    overflow: hidden;
}
.admin-shell .inv-meter > span {
    display: block;
    height: 100%;
    min-width: 3px;
    border-radius: inherit;
    background: linear-gradient(90deg, #32d583, #12b76a);
    transition: width 420ms ease;
}
.admin-shell .inv-meter-low > span { background: linear-gradient(90deg, #fdb022, #f79009); }
.admin-shell .inv-meter-out > span { background: linear-gradient(90deg, #f97066, #d92d20); min-width: 100% !important; opacity: 0.35; }
.admin-shell .inv-meter-archived > span { background: #98a2b3; }
.admin-shell .inv-stock-note {
    display: flex;
    align-items: center;
    gap: 3px;
    margin-top: 4px;
    color: var(--mt-faint);
    font-size: 9.5px;
    white-space: nowrap;
}
.admin-shell .inv-stock-note svg { width: 10px; height: 10px; }

.admin-shell .inv-state {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 9px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 9.5px;
    font-weight: 500;
    letter-spacing: 0.01em;
    white-space: nowrap;
}
.admin-shell .inv-state-dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; flex: 0 0 auto; }
.admin-shell .inv-state-healthy { background: var(--mt-success-soft); color: var(--mt-success); border-color: var(--mt-success-border); }
.admin-shell .inv-state-low { background: var(--mt-warning-soft); color: var(--mt-warning); border-color: var(--mt-warning-border); }
.admin-shell .inv-state-out { background: var(--mt-danger-soft); color: #b42318; border-color: #fecdca; }
.admin-shell .inv-state-archived { background: #f2f4f7; color: #475467; border-color: #eaecf0; }

.admin-shell .inv-money { color: #344054; font-size: 12.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.admin-shell .inv-money strong { color: #101828; font-weight: 600; }
.admin-shell .inv-margin { display: block; margin-top: 2px; color: var(--mt-success); font-size: 9.5px; font-weight: 400; }
.admin-shell .inv-retail { display: block; margin-top: 2px; color: var(--mt-faint); font-size: 9.5px; font-weight: 400; }
.admin-shell .inv-updated { color: #475467; font-size: 11px; white-space: nowrap; }
.admin-shell .inv-updated small { display: block; margin-top: 2px; color: var(--mt-faint); font-size: 9.5px; }
.admin-shell .inv-row-action { width: 38px; text-align: right; }
.admin-shell .inv-open {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid var(--mt-border);
    color: #667085;
    transition: all 150ms ease;
}
.admin-shell .inv-open svg { width: 14px; height: 14px; }
.admin-shell .inv-open:hover { background: var(--mt-blue); border-color: var(--mt-blue); color: #ffffff; }
.admin-shell .inv-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Mobile catalogue cards */
.admin-shell .inv-mobile-list { display: none; }
.admin-shell .inv-mobile-card {
    display: block;
    min-width: 0;
    padding: 14px;
    border: 1px solid var(--mt-border);
    border-radius: 14px;
    background: #ffffff;
    color: var(--mt-text);
    box-shadow: var(--mt-shadow-card);
    transition: border-color 150ms ease, box-shadow 150ms ease;
}
.admin-shell .inv-mobile-card:hover { border-color: var(--mt-blue-200); color: var(--mt-text); box-shadow: var(--mt-shadow-lift); }
.admin-shell .inv-mobile-card.inv-row-out { background: linear-gradient(150deg, #fffbfa, #ffffff 65%); border-color: #fecdca; }
.admin-shell .inv-mobile-card.inv-row-low { border-color: var(--mt-warning-border); }
.admin-shell .inv-mobile-head { display: flex; align-items: flex-start; gap: 10px; }
.admin-shell .inv-mobile-title { flex: 1 1 auto; min-width: 0; }
.admin-shell .inv-mobile-title strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #101828;
    font-size: 13px;
    font-weight: 500;
}
.admin-shell .inv-mobile-title span {
    display: block;
    margin-top: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--mt-muted);
    font-size: 10px;
}
.admin-shell .inv-mobile-head .inv-state { margin-top: 1px; }
.admin-shell .inv-mobile-figures {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin: 12px 0 10px;
    padding: 10px 11px;
    border-radius: 10px;
    background: var(--mt-surface-2);
    border: 1px solid #eef1f6;
}
.admin-shell .inv-mobile-figures span { display: block; color: var(--mt-faint); font-size: 8.5px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; }
.admin-shell .inv-mobile-figures strong { display: block; margin-top: 3px; color: #101828; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.admin-shell .inv-mobile-figures strong small { color: var(--mt-muted); font-size: 9px; font-weight: 400; }
.admin-shell .inv-meter-wide { height: 4px; margin-top: 0; }
.admin-shell .inv-mobile-foot { display: flex; align-items: center; gap: 7px; margin-top: 9px; color: var(--mt-faint); font-size: 9.5px; }
.admin-shell .inv-mobile-foot > span:first-child { display: flex; align-items: center; gap: 4px; flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-shell .inv-mobile-foot svg { width: 11px; height: 11px; }
.admin-shell .inv-mobile-value { color: #344054; font-size: 10.5px; font-weight: 500; font-variant-numeric: tabular-nums; }

/* Pager + footnotes */
.admin-shell .inv-pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 16px;
    padding: 10px;
}
.admin-shell .inv-pager .btn { min-height: 36px; font-size: 11.5px; }
.admin-shell .inv-pager .is-disabled { opacity: 0.4; pointer-events: none; }
.admin-shell .inv-pager-status { color: var(--mt-muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.admin-shell .inv-footnote {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 15px;
    padding: 0 3px;
    color: var(--mt-faint);
    font-size: 10.5px;
}
.admin-shell .inv-footnote span { display: inline-flex; align-items: center; gap: 5px; }
.admin-shell .inv-footnote svg { width: 12px; height: 12px; }
.admin-shell .inv-footnote a { display: inline-flex; align-items: center; gap: 4px; font-weight: 500; color: var(--mt-blue); }

/* Empty states */
.admin-shell .inv-empty {
    padding: 46px 20px;
    text-align: center;
    border-radius: 16px;
}
.admin-shell .inv-empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    margin-bottom: 14px;
    border-radius: 15px;
    background: var(--mt-soft);
    color: var(--mt-blue);
    box-shadow: inset 0 0 0 1px #dbe7ff;
}
.admin-shell .inv-empty-icon svg { width: 24px; height: 24px; }
.admin-shell .inv-empty h2 { margin: 0 0 6px; color: #101828; font-size: 17px; font-weight: 500; letter-spacing: -0.02em; }
.admin-shell .inv-empty p { max-width: 430px; margin: 0 auto 16px; color: var(--mt-muted); font-size: 12px; line-height: 1.55; }
.admin-shell .inv-empty .actions { justify-content: center; }
.admin-shell .inv-empty-compact { padding: 26px 14px; }
.admin-shell .inv-empty-compact .inv-empty-icon { width: 42px; height: 42px; border-radius: 12px; margin-bottom: 10px; }
.admin-shell .inv-empty-compact .inv-empty-icon svg { width: 19px; height: 19px; }
.admin-shell .inv-empty-compact h2 { font-size: 14px; }
.admin-shell .inv-empty-compact p { margin-bottom: 0; font-size: 11.5px; }

/* Breadcrumbs */
.admin-shell .inv-breadcrumb {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 12px;
    color: var(--mt-faint);
    font-size: 10.5px;
}
.admin-shell .inv-breadcrumb a { display: inline-flex; align-items: center; gap: 4px; color: var(--mt-muted); font-weight: 400; }
.admin-shell .inv-breadcrumb a:hover { color: var(--mt-blue); }
.admin-shell .inv-breadcrumb svg { width: 12px; height: 12px; }
.admin-shell .inv-breadcrumb strong { color: #475467; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 46vw; }

/* =====================================================================
   CREATE / EDIT FORM
   ===================================================================== */
.admin-shell .inv-form-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 326px;
    gap: 18px;
    align-items: start;
}
.admin-shell .inv-form-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.admin-shell .inv-form-main > .card { margin-top: 0; }
.admin-shell .inv-form-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.admin-shell .inv-form-card { padding: 20px; }
.admin-shell .inv-card-heading { display: flex; align-items: flex-start; gap: 11px; margin-bottom: 18px; }
.admin-shell .inv-card-heading > div { min-width: 0; }
.admin-shell .inv-card-heading h2 { margin: 0; color: #101828; font-size: 15px; font-weight: 500; letter-spacing: -0.015em; }
.admin-shell .inv-card-heading p { margin: 3px 0 0; color: var(--mt-muted); font-size: 11px; line-height: 1.5; }
.admin-shell .inv-card-icon,
.admin-shell .inv-card-icon-emerald,
.admin-shell .inv-card-icon-violet {
    width: 36px;
    height: 36px;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--mt-soft);
    color: var(--mt-blue);
    box-shadow: inset 0 0 0 1px #dbe7ff;
}
.admin-shell .inv-card-icon-emerald { background: var(--mt-success-soft); color: var(--mt-success); box-shadow: inset 0 0 0 1px var(--mt-success-border); }
.admin-shell .inv-card-icon-violet { background: var(--mt-violet-soft); color: var(--mt-violet); box-shadow: inset 0 0 0 1px var(--mt-violet-border); }
.admin-shell .inv-card-icon svg, .admin-shell .inv-card-icon-emerald svg, .admin-shell .inv-card-icon-violet svg { width: 17px; height: 17px; }

.admin-shell .inv-field-wide { grid-column: 1 / -1; }
.admin-shell .inv-required { color: var(--mt-danger); }
.admin-shell .inv-optional { color: var(--mt-faint); font-size: 10px; font-weight: 300; }
.admin-shell .inv-field-error { color: #b42318; font-size: 10.5px; line-height: 1.4; }
.admin-shell .inv-form-layout .field.has-error input,
.admin-shell .inv-form-layout .field.has-error select,
.admin-shell .inv-form-layout .field.has-error textarea { border-color: var(--mt-danger-border); background: #fffbfa; }
.admin-shell .inv-form-alert { margin-bottom: 16px; }
.admin-shell .inv-form-alert > div { display: flex; flex-direction: column; gap: 2px; }
.admin-shell .inv-form-alert span { font-size: 12px; }
.admin-shell .inv-form-hint {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin: 12px 0 0;
    color: var(--mt-muted);
    font-size: 10.5px;
    line-height: 1.5;
}
.admin-shell .inv-form-hint svg { width: 13px; height: 13px; flex: 0 0 auto; margin-top: 1px; color: var(--mt-faint); }

.admin-shell .inv-current-stock {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    padding: 13px 15px;
    margin-bottom: 16px;
    border: 1px solid var(--mt-border);
    border-radius: 12px;
    background: linear-gradient(120deg, #f8faff, #ffffff);
}
.admin-shell .inv-current-stock > div:first-child span { display: block; color: var(--mt-muted); font-size: 9.5px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; }
.admin-shell .inv-current-stock > div:first-child strong { display: block; margin-top: 3px; color: #101828; font-size: 21px; font-weight: 700; font-variant-numeric: tabular-nums; }
.admin-shell .inv-current-stock > div:first-child small { color: var(--mt-muted); font-size: 10.5px; font-weight: 400; }
.admin-shell .inv-current-stock-side { display: flex; align-items: center; gap: 11px; flex-wrap: wrap; }
.admin-shell .inv-current-stock-side a { display: inline-flex; align-items: center; gap: 3px; color: var(--mt-blue); font-size: 11px; font-weight: 500; }
.admin-shell .inv-current-stock-side a svg { width: 12px; height: 12px; }

.admin-shell .inv-form-submit {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    padding: 14px 16px;
    border: 1px solid var(--mt-border);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--mt-shadow-card);
}
.admin-shell .inv-form-submit > span { display: inline-flex; align-items: center; gap: 5px; color: var(--mt-faint); font-size: 10.5px; }
.admin-shell .inv-form-submit > span svg { width: 13px; height: 13px; }

.admin-shell .inv-preview-card {
    position: relative;
    overflow: hidden;
    padding: 19px;
    border-color: #1d2939;
    background:
        radial-gradient(280px 170px at 100% 0%, rgba(37, 99, 235, 0.34), transparent 70%),
        linear-gradient(155deg, #0b1220 0%, #101b31 100%);
    color: #ffffff;
    box-shadow: 0 18px 40px -30px rgba(11, 18, 32, 0.8);
}
.admin-shell .inv-preview-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.admin-shell .inv-preview-kicker {
    color: var(--mt-blue-200);
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.admin-shell .inv-preview-card .inv-state { font-size: 9px; padding: 3px 8px; }
.admin-shell .inv-preview-title { display: flex; align-items: center; gap: 10px; margin-top: 16px; }
.admin-shell .inv-preview-title .inv-item-icon { background: rgba(255, 255, 255, 0.08); color: #c3d6ff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12); }
.admin-shell .inv-preview-title strong { display: block; color: #ffffff; font-size: 14px; font-weight: 500; line-height: 1.3; }
.admin-shell .inv-preview-title span { display: block; margin-top: 2px; color: #98a2b3; font-size: 10px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.admin-shell .inv-preview-figures { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
.admin-shell .inv-preview-figures > div {
    padding: 10px 11px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    background: rgba(255, 255, 255, 0.055);
}
.admin-shell .inv-preview-figures span { display: block; color: #98a2b3; font-size: 8.5px; font-weight: 500; letter-spacing: 0.07em; text-transform: uppercase; }
.admin-shell .inv-preview-figures strong { display: block; margin-top: 4px; color: #ffffff; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.admin-shell .inv-preview-margin { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.admin-shell .inv-preview-margin > span:first-child { color: #98a2b3; font-size: 9.5px; text-transform: uppercase; letter-spacing: 0.06em; }
.admin-shell .inv-preview-margin strong { margin-left: auto; color: #a6f4c5; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.admin-shell .inv-preview-margin .inv-margin-track { flex: 1 1 100%; }
.admin-shell .inv-preview-note { margin: 12px 0 0; color: #98a2b3; font-size: 10.5px; line-height: 1.55; }

.admin-shell .inv-margin-track {
    display: block;
    height: 5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    overflow: hidden;
}
.admin-shell .inv-margin-track > span {
    display: block;
    height: 100%;
    min-width: 2px;
    border-radius: inherit;
    background: linear-gradient(90deg, #32d583, #12b76a);
}

.admin-shell .inv-side-card { padding: 18px; }
.admin-shell .inv-side-card h2 { margin: 0 0 12px; color: #101828; font-size: 13px; font-weight: 500; letter-spacing: -0.01em; }
.admin-shell .inv-side-card .inv-state { margin-bottom: 2px; }
.admin-shell .inv-side-note { margin: 10px 0 0; color: var(--mt-muted); font-size: 10.5px; line-height: 1.55; }
.admin-shell .inv-side-note:first-of-type { margin-top: 0; }
.admin-shell .inv-side-link { display: inline-flex; align-items: center; gap: 4px; margin-top: 11px; color: var(--mt-blue); font-size: 11px; font-weight: 500; }
.admin-shell .inv-side-link svg { width: 12px; height: 12px; }
.admin-shell .inv-usage-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.admin-shell .inv-usage-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.admin-shell .inv-usage-grid > div {
    padding: 9px 10px;
    border-radius: 9px;
    background: var(--mt-surface-2);
    border: 1px solid #eef1f6;
}
.admin-shell .inv-usage-grid span { display: block; color: var(--mt-faint); font-size: 8.5px; font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; }
.admin-shell .inv-usage-grid strong { display: block; margin-top: 3px; color: #101828; font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; }
.admin-shell .inv-usage-grid .inv-usage-date { font-size: 11px; }
.admin-shell .inv-danger-card { border-color: #fecdca; background: linear-gradient(150deg, #fffbfa, #ffffff 58%); }
.admin-shell .inv-danger-card h2 { color: #912018; }
.admin-shell .inv-danger-note { display: flex; align-items: flex-start; gap: 5px; color: #b42318; font-size: 10px; }
.admin-shell .inv-danger-note svg { width: 12px; height: 12px; flex: 0 0 auto; margin-top: 1px; }
.admin-shell .inv-full-btn { width: 100%; justify-content: center; margin-top: 8px; }
.admin-shell .inv-check-list { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.admin-shell .inv-check-list li { display: flex; align-items: flex-start; gap: 7px; color: var(--mt-muted); font-size: 10.5px; line-height: 1.45; }
.admin-shell .inv-check-list svg { width: 13px; height: 13px; flex: 0 0 auto; margin-top: 1px; color: var(--mt-success); }

.admin-shell .inv-notice {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 13px 16px;
    margin-bottom: 16px;
    border: 1px solid var(--mt-warning-border);
    border-radius: 13px;
    background: var(--mt-warning-soft);
}
.admin-shell .inv-notice-icon { width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border-radius: 9px; background: #ffffff; color: var(--mt-warning); flex: 0 0 auto; }
.admin-shell .inv-notice-icon svg { width: 16px; height: 16px; }
.admin-shell .inv-notice > div { flex: 1 1 240px; min-width: 0; }
.admin-shell .inv-notice strong { display: block; color: #93370d; font-size: 12.5px; font-weight: 500; }
.admin-shell .inv-notice p { margin: 2px 0 0; color: #b54708; font-size: 10.5px; line-height: 1.5; }

/* =====================================================================
   ITEM DETAIL
   ===================================================================== */
.admin-shell .inv-detail-head { margin-bottom: 16px; }
.admin-shell .inv-detail-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 286px;
    gap: 24px;
    padding: 22px 24px;
    border: 1px solid var(--mt-border);
    border-radius: 18px;
    background:
        radial-gradient(500px 220px at 100% -20%, rgba(37, 99, 235, 0.09), transparent 70%),
        linear-gradient(150deg, #ffffff, #f8faff);
    box-shadow: var(--mt-shadow-card);
}
.admin-shell .inv-detail-hero-low { border-color: var(--mt-warning-border); background: radial-gradient(500px 220px at 100% -20%, rgba(247, 144, 9, 0.12), transparent 70%), linear-gradient(150deg, #ffffff, #fffcf5); }
.admin-shell .inv-detail-hero-out { border-color: #fecdca; background: radial-gradient(500px 220px at 100% -20%, rgba(217, 45, 32, 0.09), transparent 70%), linear-gradient(150deg, #ffffff, #fffbfa); }
.admin-shell .inv-detail-hero-archived { border-color: #d0d7e4; background: linear-gradient(150deg, #ffffff, #f8fafc); }
.admin-shell .inv-hero-main { min-width: 0; }
.admin-shell .inv-hero-title { display: flex; align-items: flex-start; gap: 14px; }
.admin-shell .inv-hero-icon {
    width: 52px;
    height: 52px;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: var(--mt-deep);
    color: #ffffff;
    box-shadow: 0 10px 22px -14px rgba(29, 78, 216, 0.75);
}
.admin-shell .inv-hero-icon svg { width: 23px; height: 23px; }
.admin-shell .inv-hero-badges { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 5px; }
.admin-shell .inv-hero-title h2 { margin: 0; color: #101828; font-size: 23px; font-weight: 600; letter-spacing: -0.035em; line-height: 1.15; }
.admin-shell .inv-hero-sku { display: block; margin-top: 3px; color: var(--mt-muted); font-size: 10.5px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0.02em; }
.admin-shell .inv-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 999px;
    border: 1px solid var(--mt-border);
    background: #ffffff;
    color: #475467;
    font-size: 9.5px;
    font-weight: 400;
    white-space: nowrap;
}
.admin-shell .inv-chip svg { width: 10px; height: 10px; }
.admin-shell .inv-chip-muted { background: #f2f4f7; color: #667085; }
.admin-shell .inv-hero-description { max-width: 66ch; margin: 13px 0 0; color: var(--mt-text-2); font-size: 12px; line-height: 1.6; }
.admin-shell .inv-hero-chips { display: flex; flex-wrap: wrap; gap: 7px 15px; margin-top: 15px; }
.admin-shell .inv-hero-chips > span { display: inline-flex; align-items: center; gap: 5px; color: var(--mt-muted); font-size: 10.5px; }
.admin-shell .inv-hero-chips svg { width: 12px; height: 12px; color: var(--mt-faint); }
.admin-shell .inv-hero-stock {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    min-width: 0;
    padding-left: 24px;
    border-left: 1px solid var(--mt-border);
}
.admin-shell .inv-hero-stock-label { color: var(--mt-muted); font-size: 9px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; }
.admin-shell .inv-hero-qty { margin-top: 3px; color: #101828; font-size: 34px; font-weight: 700; line-height: 1; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.admin-shell .inv-hero-qty small { color: var(--mt-muted); font-size: 12px; font-weight: 400; letter-spacing: 0; }
.admin-shell .inv-meter-hero { width: 100%; height: 6px; margin-top: 13px; }
.admin-shell .inv-hero-thresholds { display: flex; gap: 16px; width: 100%; margin-top: 8px; }
.admin-shell .inv-hero-thresholds span { color: var(--mt-faint); font-size: 9.5px; }
.admin-shell .inv-hero-thresholds strong { color: #344054; font-weight: 500; font-variant-numeric: tabular-nums; }
.admin-shell .inv-hero-archived-note { display: inline-flex; align-items: center; gap: 4px; margin-top: 12px; color: var(--mt-warning); font-size: 10px; }
.admin-shell .inv-hero-archived-note svg { width: 12px; height: 12px; }

.admin-shell .inv-detail-stats { margin-top: 16px; }
.admin-shell .inv-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 322px;
    gap: 18px;
    align-items: start;
    margin-top: 16px;
}
.admin-shell .inv-detail-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.admin-shell .inv-detail-main > .card { margin-top: 0; }
.admin-shell .inv-detail-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.admin-shell .inv-card-head { align-items: flex-start; margin-bottom: 15px; }
.admin-shell .inv-card-head h2 { margin-bottom: 2px; }
.admin-shell .inv-card-head p { margin: 0; color: var(--mt-muted); font-size: 10.5px; line-height: 1.5; }

/* Stock action console */
.admin-shell .inv-stock-card { padding: 20px; }
.admin-shell .inv-stock-tabs {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 3px;
    border: 1px solid var(--mt-border);
    border-radius: 11px;
    background: var(--mt-surface-2);
}
.admin-shell .inv-stock-tab {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 13px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #667085;
    font-family: inherit;
    font-size: 11px;
    font-weight: 400;
    cursor: pointer;
    transition: background 150ms ease, color 150ms ease, box-shadow 150ms ease;
}
.admin-shell .inv-stock-tab svg { width: 13px; height: 13px; }
.admin-shell .inv-stock-tab:hover { color: #101828; }
.admin-shell .inv-stock-tab.is-active { background: #ffffff; color: #101828; box-shadow: 0 1px 3px rgba(16, 24, 40, 0.12); }
.admin-shell .inv-stock-pane { display: none; margin-top: 16px; }
.admin-shell .inv-stock-pane.is-active { display: block; animation: invFade 180ms ease; }
@keyframes invFade { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: translateY(0); } }
.admin-shell .inv-stock-form .form-grid { gap: 13px; }
.admin-shell .inv-stock-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 15px;
    padding-top: 14px;
    border-top: 1px dashed var(--mt-border);
}
.admin-shell .inv-stock-preview { color: var(--mt-muted); font-size: 11px; }
.admin-shell .inv-stock-preview strong { color: #101828; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.admin-shell .inv-stock-preview.is-negative strong { color: var(--mt-danger); }
.admin-shell .inv-stock-preview em { color: var(--mt-danger); font-size: 10px; font-style: normal; }
.admin-shell .inv-stock-archived {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 14px;
    border: 1px solid var(--mt-warning-border);
    border-radius: 12px;
    background: var(--mt-warning-soft);
}
.admin-shell .inv-stock-archived > div { flex: 1 1 240px; min-width: 0; }
.admin-shell .inv-stock-archived strong { display: block; color: #93370d; font-size: 12.5px; font-weight: 500; }
.admin-shell .inv-stock-archived p { margin: 2px 0 0; color: #b54708; font-size: 10.5px; line-height: 1.5; }

/* Ledger */
.admin-shell .inv-ledger-card { padding: 18px 20px; }
.admin-shell .inv-move-list { display: flex; flex-direction: column; }
.admin-shell .inv-move-row {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr) 92px 74px 112px;
    align-items: center;
    gap: 11px;
    padding: 11px 0;
    border-top: 1px solid #eef1f6;
}
.admin-shell .inv-move-row:first-child { border-top: 1px solid #eef1f6; }
.admin-shell .inv-move-icon {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
}
.admin-shell .inv-move-icon svg { width: 14px; height: 14px; }
.admin-shell .inv-move-icon.is-in { background: var(--mt-success-soft); color: var(--mt-success); box-shadow: inset 0 0 0 1px var(--mt-success-border); }
.admin-shell .inv-move-icon.is-out { background: var(--mt-orange-soft); color: var(--mt-orange); box-shadow: inset 0 0 0 1px var(--mt-orange-border); }
.admin-shell .inv-move-main { min-width: 0; }
.admin-shell .inv-move-main strong { display: block; color: #101828; font-size: 12px; font-weight: 500; }
.admin-shell .inv-move-main > span { display: block; margin-top: 1px; color: var(--mt-muted); font-size: 10px; }
.admin-shell .inv-move-main > span a { color: var(--mt-blue); font-weight: 500; }
.admin-shell .inv-move-main small { display: block; margin-top: 2px; color: var(--mt-faint); font-size: 9.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-shell .inv-move-change { text-align: right; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.admin-shell .inv-move-change small { font-size: 9px; font-weight: 400; color: var(--mt-faint); }
.admin-shell .inv-move-change.is-in { color: var(--mt-success); }
.admin-shell .inv-move-change.is-out { color: var(--mt-orange); }
.admin-shell .inv-move-balance span { display: block; color: var(--mt-faint); font-size: 8px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; }
.admin-shell .inv-move-balance strong { display: block; color: #344054; font-size: 12px; font-weight: 500; font-variant-numeric: tabular-nums; }
.admin-shell .inv-move-author { overflow: hidden; text-align: right; }
.admin-shell .inv-move-author span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--mt-faint); font-size: 9.5px; }
.admin-shell .inv-ledger-titlebar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--mt-border);
    color: var(--mt-faint);
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.admin-shell .inv-ledger-full { padding-top: 10px; }
.admin-shell .inv-ledger-row { grid-template-columns: 32px minmax(0, 1fr) 92px 74px 112px; }
.admin-shell .inv-move-item { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.admin-shell .inv-move-item a { color: #101828; font-size: 12px; font-weight: 500; }
.admin-shell .inv-move-item a:hover { color: var(--mt-blue); }
.admin-shell .inv-move-sub { display: block; }
.admin-shell .inv-move-tags { display: flex; align-items: center; gap: 4px 9px; flex-wrap: wrap; margin-top: 4px; }
.admin-shell .inv-move-tags > span,
.admin-shell .inv-move-tags > a { display: inline-flex; align-items: center; gap: 3px; color: var(--mt-faint); font-size: 9px; line-height: 1.4; }
.admin-shell .inv-move-tags > a { color: var(--mt-blue); }
.admin-shell .inv-move-tags svg { width: 9px; height: 9px; }
.admin-shell .inv-move-tags .inv-move-reason { padding: 1px 6px; border-radius: 999px; background: var(--mt-surface-2); border: 1px solid #eef1f6; color: #667085; font-weight: 500; }
.admin-shell .inv-move-tags .inv-move-note { max-width: 360px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Detail sidebar blocks */
.admin-shell .inv-facts { display: flex; flex-direction: column; margin: 0; }
.admin-shell .inv-facts > div { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; padding: 7px 0; border-bottom: 1px dashed #eef1f6; }
.admin-shell .inv-facts > div:last-child { border-bottom: 0; padding-bottom: 0; }
.admin-shell .inv-facts dt { color: var(--mt-muted); font-size: 10px; font-weight: 400; flex: 0 0 auto; }
.admin-shell .inv-facts dd { margin: 0; color: #344054; font-size: 11px; font-weight: 500; text-align: right; overflow-wrap: anywhere; }
.admin-shell .inv-valuation { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-bottom: 11px; }
.admin-shell .inv-valuation > div { padding: 9px 10px; border-radius: 9px; background: var(--mt-surface-2); border: 1px solid #eef1f6; }
.admin-shell .inv-valuation span { display: block; color: var(--mt-faint); font-size: 8.5px; font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; }
.admin-shell .inv-valuation strong { display: block; margin-top: 3px; color: #101828; font-size: 11.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.admin-shell .inv-valuation .is-positive { color: var(--mt-success); }
.admin-shell .inv-valuation .is-negative { color: var(--mt-danger); }
.admin-shell .inv-margin-track-wide { background: #eef2f7; height: 5px; }
.admin-shell .inv-valuation-totals { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; padding-top: 11px; border-top: 1px dashed var(--mt-border); }
.admin-shell .inv-valuation-totals span { display: block; color: var(--mt-muted); font-size: 9px; }
.admin-shell .inv-valuation-totals strong { display: block; margin-top: 2px; color: #101828; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }

/* Ledger page specifics */
.admin-shell .inv-net.is-positive { color: var(--mt-success); }
.admin-shell .inv-net.is-negative { color: var(--mt-danger); }
.admin-shell .inv-ledger-stats { margin-bottom: 16px; }
.admin-shell .inv-selected-part {
    display: flex;
    align-items: center;
    gap: 11px;
    flex-wrap: wrap;
    margin-bottom: 14px;
    padding: 11px 14px;
    border: 1px solid var(--mt-blue-100);
    border-radius: 13px;
    background: linear-gradient(110deg, #f7faff, #ffffff 75%);
}
.admin-shell .inv-selected-part > div { flex: 1 1 200px; min-width: 0; }
.admin-shell .inv-selected-part > div > span { display: block; color: var(--mt-muted); font-size: 8.5px; font-weight: 500; letter-spacing: 0.07em; text-transform: uppercase; }
.admin-shell .inv-selected-part strong { display: block; margin-top: 1px; color: #101828; font-size: 12.5px; font-weight: 500; }
.admin-shell .inv-selected-part em { display: block; margin-top: 1px; color: var(--mt-faint); font-size: 9.5px; font-style: normal; }
.admin-shell .inv-selected-clear {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: 1px solid var(--mt-border);
    background: #ffffff;
    color: #667085;
}
.admin-shell .inv-selected-clear:hover { color: var(--mt-danger); border-color: #fecdca; background: var(--mt-danger-soft); }
.admin-shell .inv-selected-clear svg { width: 13px; height: 13px; }
.admin-shell .inv-ledger-grid .inv-filter-search { flex: 1.8 1 230px; }
.admin-shell .inv-ledger-grid .inv-filter-field { flex: 1 1 130px; }
.admin-shell .inv-ledger-filter { margin-bottom: 14px; }

/* Focus states */
.admin-shell .inv-tab:focus-visible,
.admin-shell .inv-stock-tab:focus-visible,
.admin-shell .inv-mobile-card:focus-visible,
.admin-shell .inv-open:focus-visible,
.admin-shell .inv-selected-clear:focus-visible {
    outline: 2px solid var(--mt-blue);
    outline-offset: 2px;
}

/* =====================================================================
   INVENTORY RESPONSIVE
   ===================================================================== */
@media (max-width: 1180px) {
    .admin-shell .inv-form-layout { grid-template-columns: minmax(0, 1fr) 292px; }
    .admin-shell .inv-detail-grid { grid-template-columns: minmax(0, 1fr) 292px; }
    .admin-shell .inv-detail-hero { grid-template-columns: minmax(0, 1fr) 250px; }
    .admin-shell .inv-item-text strong,
    .admin-shell .inv-item-text > span { max-width: 220px; }
    .admin-shell .inv-move-author { display: none; }
    .admin-shell .inv-move-row,
    .admin-shell .inv-ledger-row { grid-template-columns: 32px minmax(0, 1fr) 90px 72px; }
}

@media (max-width: 1023px) {
    .admin-shell .inv-form-layout,
    .admin-shell .inv-detail-grid { display: block; }
    .admin-shell .inv-form-side,
    .admin-shell .inv-detail-side {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
        margin-top: 16px;
        align-items: start;
    }
    .admin-shell .inv-form-side > .card,
    .admin-shell .inv-detail-side > .card { margin-top: 0; }
    .admin-shell .inv-detail-hero { grid-template-columns: minmax(0, 1fr) 240px; gap: 18px; padding: 20px; }
    .admin-shell .inv-preview-card { grid-column: 1 / -1; }
    .admin-shell .inv-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
    .admin-shell .inv-table-card { display: none; }
    .admin-shell .inv-mobile-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
    .admin-shell .inv-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .admin-shell .inv-stat { min-height: 116px; padding: 15px; }
    .admin-shell .inv-stat .stat-value { font-size: 22px; }
    .admin-shell .inv-detail-hero { display: flex; flex-direction: column; gap: 17px; }
    .admin-shell .inv-hero-stock {
        align-items: flex-start;
        width: 100%;
        padding: 16px 0 0;
        border-left: 0;
        border-top: 1px solid var(--mt-border);
    }
    .admin-shell .inv-hero-stock .inv-meter-hero { max-width: 340px; }
    .admin-shell .inv-hero-thresholds { max-width: 340px; }
    .admin-shell .inv-move-row,
    .admin-shell .inv-ledger-row { grid-template-columns: 32px minmax(0, 1fr) 84px 66px; }
    .admin-shell .inv-detail-main,
    .admin-shell .inv-detail-side { gap: 14px; }
    .admin-shell .inv-stock-card,
    .admin-shell .inv-ledger-card { padding: 16px; }
}

@media (max-width: 720px) {
    .admin-shell .inv-head-actions { width: 100%; }
    .admin-shell .inv-head-actions .btn { flex: 1 1 auto; justify-content: center; }
    .admin-shell .inv-form-side,
    .admin-shell .inv-detail-side { grid-template-columns: 1fr; }
    .admin-shell .inv-preview-card { grid-column: auto; }
    .admin-shell .inv-filter-actions { flex: 1 1 100%; }
    .admin-shell .inv-filter-actions .btn { flex: 1 1 auto; justify-content: center; }
    .admin-shell .inv-export-btn { margin-left: 0; }
    .admin-shell .inv-stock-tabs { display: flex; width: 100%; }
    .admin-shell .inv-stock-tab { flex: 1 1 0; justify-content: center; padding: 8px 8px; }
    .admin-shell .inv-stock-footer { flex-direction: column; align-items: stretch; }
    .admin-shell .inv-stock-footer .btn { width: 100%; justify-content: center; min-height: 46px; }
    .admin-shell .inv-stock-preview { text-align: center; }
    .admin-shell .inv-form-submit { flex-direction: column; align-items: stretch; }
    .admin-shell .inv-form-submit > span { justify-content: center; text-align: center; }
    .admin-shell .inv-form-submit .actions { display: flex; }
    .admin-shell .inv-form-submit .actions .btn { flex: 1 1 auto; justify-content: center; min-height: 46px; }
    .admin-shell .inv-hero-title h2 { font-size: 20px; }
    .admin-shell .inv-hero-icon { width: 46px; height: 46px; border-radius: 12px; }
    .admin-shell .inv-hero-icon svg { width: 20px; height: 20px; }
    .admin-shell .inv-attention { align-items: flex-start; flex-wrap: wrap; }
    .admin-shell .inv-attention-cta { margin-left: 51px; }
    .admin-shell .inv-results-head { align-items: flex-start; flex-direction: column; gap: 4px; }
    .admin-shell .inv-ledger-filter .inv-filter-field { flex: 1 1 45%; min-width: 0; }
    .admin-shell .inv-ledger-filter .inv-filter-search { flex: 1 1 100%; }
}

@media (max-width: 560px) {
    .admin-shell .inv-page-head { align-items: flex-start; }
    .admin-shell .inv-page-head h1 { font-size: 24px; }
    .admin-shell .inv-stats { gap: 9px; }
    .admin-shell .inv-stat { min-height: 112px; padding: 14px; }
    .admin-shell .inv-stat .stat-label { font-size: 10px; }
    .admin-shell .inv-stat .stat-value { font-size: 20px; margin-top: 6px; }
    .admin-shell .inv-stat .stat-note { font-size: 10.5px; margin-top: 4px; }
    .admin-shell .inv-stat .stat-icon { width: 32px; height: 32px; border-radius: 9px; }
    .admin-shell .inv-stat .stat-icon svg { width: 15px; height: 15px; }
    .admin-shell .inv-tabs { margin-left: -2px; margin-right: -2px; }
    .admin-shell .inv-filter-card { padding: 13px; }
    .admin-shell .inv-filter-field { flex: 1 1 100%; min-width: 0; }
    .admin-shell .inv-filter-field input,
    .admin-shell .inv-filter-field select { min-height: 46px; font-size: 13px; }
    .admin-shell .inv-filter-actions .btn { min-height: 46px; font-size: 12.5px; }
    .admin-shell .inv-move-row,
    .admin-shell .inv-ledger-row {
        grid-template-columns: 30px minmax(0, 1fr) auto;
        grid-template-areas:
            "icon main change"
            "icon main balance";
        align-items: start;
        gap: 2px 10px;
        padding: 12px 0;
    }
    .admin-shell .inv-move-icon { grid-area: icon; margin-top: 1px; }
    .admin-shell .inv-move-main { grid-area: main; min-width: 0; }
    .admin-shell .inv-move-change { grid-area: change; text-align: right; }
    .admin-shell .inv-move-balance { grid-area: balance; text-align: right; }
    .admin-shell .inv-move-balance span { display: inline; margin-right: 3px; }
    .admin-shell .inv-move-balance strong { display: inline; font-size: 10.5px; }
    .admin-shell .inv-move-change { font-size: 12px; }
    .admin-shell .inv-move-tags { gap: 3px 7px; }
    .admin-shell .inv-move-tags .inv-move-note { max-width: 100%; white-space: normal; }
    .admin-shell .inv-move-main small { white-space: normal; }
    .admin-shell .inv-ledger-titlebar { padding-bottom: 8px; }
    .admin-shell .inv-stock-card,
    .admin-shell .inv-ledger-card { padding: 14px; }
    .admin-shell .inv-card-head { flex-direction: column; align-items: stretch; }
    .admin-shell .inv-card-head .btn { align-self: flex-start; }
    .admin-shell .inv-stock-tab { font-size: 10px; gap: 4px; }
    .admin-shell .inv-stock-tab svg { width: 12px; height: 12px; }
    .admin-shell .inv-current-stock { align-items: flex-start; flex-direction: column; gap: 9px; }
    .admin-shell .inv-form-card { padding: 16px; }
    .admin-shell .inv-form-card .form-grid-2 { gap: 13px; }
    .admin-shell .inv-form-submit { padding: 13px; }
    .admin-shell .inv-form-submit .actions { flex-direction: column-reverse; }
    .admin-shell .inv-form-submit .actions .btn { width: 100%; }
    .admin-shell .inv-hero-title { gap: 11px; }
    .admin-shell .inv-hero-title h2 { font-size: 19px; }
    .admin-shell .inv-detail-hero { padding: 16px; }
    .admin-shell .inv-hero-chips { gap: 6px 11px; }
    .admin-shell .inv-hero-qty { font-size: 30px; }
    .admin-shell .inv-preview-figures { grid-template-columns: 1fr; }
    .admin-shell .inv-preview-figures > div { padding: 8px 10px; }
    .admin-shell .inv-mobile-figures { gap: 5px; padding: 9px; }
    .admin-shell .inv-mobile-figures strong { font-size: 12px; }
    .admin-shell .inv-mobile-head { gap: 8px; }
    .admin-shell .inv-mobile-head .inv-state { font-size: 8.5px; padding: 3px 7px; }
    .admin-shell .inv-mobile-title strong { font-size: 12.5px; }
    .admin-shell .inv-pager { gap: 7px; padding: 8px 0; }
    .admin-shell .inv-pager .btn { flex: 1 1 0; justify-content: center; }
    .admin-shell .inv-pager-status { order: -1; flex: 1 1 100%; text-align: center; margin-bottom: 2px; }
    .admin-shell .inv-footnote { align-items: flex-start; flex-direction: column; gap: 6px; }
    .admin-shell .inv-selected-part .btn { width: 100%; justify-content: center; }
    .admin-shell .inv-selected-clear { display: none; }
    .admin-shell .inv-notice .btn { width: 100%; justify-content: center; }
    .admin-shell .inv-stock-archived .btn { width: 100%; justify-content: center; }
    .admin-shell .inv-breadcrumb strong { max-width: 58vw; }
}

@media (max-width: 390px) {
    .admin-shell .inv-stats { grid-template-columns: 1fr; }
    .admin-shell .inv-stat { min-height: auto; }
    .admin-shell .inv-mobile-figures { grid-template-columns: 1fr 1fr; }
    .admin-shell .inv-mobile-figures > div:last-child { grid-column: 1 / -1; }
    .admin-shell .inv-hero-badges .inv-chip { display: none; }
}

/* =====================================================================
   SHOP & STORE — LOCATION BALANCES, POS, SALES, TRANSFERS
   ===================================================================== */
.admin-shell .is-hidden { display: none !important; }

.admin-shell .inv-hero-split {
    display: flex;
    align-items: stretch;
    gap: 7px;
    width: 100%;
    margin-top: 12px;
}
.admin-shell .inv-loc-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 9px;
    border: 1px solid var(--mt-border);
    border-radius: 8px;
    background: #ffffff;
    color: #475467;
    font-size: 9.5px;
    font-weight: 400;
    white-space: nowrap;
}
.admin-shell .inv-loc-pill svg { width: 11px; height: 11px; }
.admin-shell .inv-loc-pill small { color: var(--mt-muted); font-size: 9px; }
.admin-shell .inv-loc-pill strong { color: #101828; font-size: 10.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.admin-shell .inv-hero-split .inv-loc-pill { flex: 1 1 0; justify-content: center; padding: 6px 8px; }
.admin-shell .inv-loc-store { border-color: var(--mt-indigo-border); background: var(--mt-indigo-soft); color: var(--mt-indigo); }
.admin-shell .inv-loc-store small { color: var(--mt-indigo); opacity: .75; }
.admin-shell .inv-loc-shop { border-color: var(--mt-violet-border); background: var(--mt-violet-soft); color: var(--mt-violet); }
.admin-shell .inv-loc-shop small { color: var(--mt-violet); opacity: .75; }

.admin-shell .inv-move-loc {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    margin-right: 6px;
    padding: 2px 6px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 8.5px;
    font-weight: 500;
    letter-spacing: .01em;
    vertical-align: 1px;
}
.admin-shell .inv-move-loc svg { width: 9px; height: 9px; }
.admin-shell .inv-move-loc.inv-loc-store { background: var(--mt-indigo-soft); color: var(--mt-indigo); border-color: var(--mt-indigo-border); }
.admin-shell .inv-move-loc.inv-loc-shop { background: var(--mt-violet-soft); color: var(--mt-violet); border-color: var(--mt-violet-border); }

.admin-shell .inv-loc-availability {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed var(--mt-border);
}
.admin-shell .inv-loc-availability > div {
    display: flex;
    flex-direction: column;
    gap: 1px;
    padding: 8px 10px;
    border: 1px solid var(--mt-border);
    border-radius: 10px;
    background: var(--mt-surface-2);
}
.admin-shell .inv-loc-availability span { display: inline-flex; align-items: center; gap: 4px; color: var(--mt-muted); font-size: 8.5px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }
.admin-shell .inv-loc-availability span svg { width: 10px; height: 10px; }
.admin-shell .inv-loc-availability strong { color: #101828; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.admin-shell .inv-loc-availability strong small { color: var(--mt-muted); font-size: 9px; font-weight: 400; }
.admin-shell .inv-loc-availability em { color: var(--mt-faint); font-size: 9px; font-style: normal; }

/* POS shell */
.admin-shell .shop-head { margin-bottom: 16px; }
.admin-shell .shop-alert { display: flex; gap: 9px; align-items: flex-start; margin-bottom: 14px; }
.admin-shell .shop-alert svg { width: 16px; height: 16px; flex: 0 0 auto; margin-top: 1px; }
.admin-shell .shop-alert p { margin: 0 0 3px; }
.admin-shell .shop-pos {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 400px;
    gap: 16px;
    align-items: start;
}
.admin-shell .shop-catalogue { padding: 16px; }
.admin-shell .shop-catalogue-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.admin-shell .shop-search { position: relative; flex: 1 1 260px; }
.admin-shell .shop-search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; color: var(--mt-faint); pointer-events: none; }
.admin-shell .shop-search input {
    width: 100%;
    min-height: 42px;
    padding: 9px 12px 9px 36px;
    border: 1px solid var(--mt-border);
    border-radius: 10px;
    background: #ffffff;
    font-family: inherit;
    font-size: 12.5px;
    color: var(--mt-text);
}
.admin-shell .shop-search input:focus { outline: none; border-color: var(--mt-blue); box-shadow: var(--mt-ring); }
.admin-shell .shop-catalogue-count { color: var(--mt-muted); font-size: 10.5px; white-space: nowrap; }
.admin-shell .shop-categories { display: flex; gap: 6px; overflow-x: auto; padding: 11px 0 5px; scrollbar-width: thin; }
.admin-shell .shop-category {
    flex: 0 0 auto;
    padding: 6px 11px;
    border: 1px solid var(--mt-border);
    border-radius: 999px;
    background: #ffffff;
    color: #475467;
    font-family: inherit;
    font-size: 10.5px;
    font-weight: 400;
    white-space: nowrap;
    cursor: pointer;
    transition: background 140ms ease, color 140ms ease, border-color 140ms ease;
}
.admin-shell .shop-category:hover { border-color: var(--mt-border-strong); }
.admin-shell .shop-category.is-active { background: var(--mt-ink); border-color: var(--mt-ink); color: #ffffff; }
.admin-shell .shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(208px, 1fr));
    gap: 9px;
    padding-top: 9px;
}
.admin-shell .shop-product {
    display: flex;
    flex-direction: column;
    gap: 9px;
    min-height: 118px;
    padding: 11px;
    border: 1px solid var(--mt-border);
    border-radius: 12px;
    background: #ffffff;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}
.admin-shell .shop-product:hover { border-color: #b2ccff; box-shadow: 0 10px 24px -20px rgba(16, 24, 40, .4); transform: translateY(-1px); }
.admin-shell .shop-product:focus-visible { outline: none; border-color: var(--mt-blue); box-shadow: var(--mt-ring); }
.admin-shell .shop-product.is-unavailable { opacity: .62; background: #f9fafb; cursor: not-allowed; transform: none; }
.admin-shell .shop-product.is-unavailable:hover { border-color: var(--mt-border); box-shadow: none; }
.admin-shell .shop-product-top {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    grid-template-areas:
        "icon info"
        "price price";
    column-gap: 9px;
    row-gap: 7px;
    align-items: start;
}
.admin-shell .shop-product-icon {
    grid-area: icon;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: var(--mt-soft);
    color: var(--mt-deep);
}
.admin-shell .shop-product-icon svg { width: 15px; height: 15px; }
.admin-shell .shop-product-info { grid-area: info; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.admin-shell .shop-product-info strong {
    display: -webkit-box;
    overflow: hidden;
    color: #101828;
    font-size: 11.5px;
    font-weight: 600;
    line-height: 1.3;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}
.admin-shell .shop-product-info span { overflow: hidden; color: var(--mt-muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.admin-shell .shop-product-price {
    grid-area: price;
    color: var(--mt-deep);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}
.admin-shell .shop-product-foot { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: auto; }
.admin-shell .shop-stock-badge {
    overflow: hidden;
    padding: 3px 7px;
    border: 1px solid var(--mt-success-border);
    border-radius: 999px;
    background: var(--mt-success-soft);
    color: var(--mt-success);
    font-size: 8.5px;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.admin-shell .shop-stock-badge.is-low { border-color: var(--mt-warning-border); background: var(--mt-warning-soft); color: var(--mt-warning); }
.admin-shell .shop-stock-badge.is-out { border-color: var(--mt-danger-border); background: var(--mt-danger-soft); color: var(--mt-danger); }
.admin-shell .shop-product-add { display: inline-flex; align-items: center; gap: 3px; color: var(--mt-blue); font-size: 9.5px; font-weight: 500; white-space: nowrap; }
.admin-shell .shop-product-add svg { width: 11px; height: 11px; }
.admin-shell .shop-grid-empty { margin-top: 9px; }

/* POS cart */
.admin-shell .shop-cart-wrap { position: sticky; top: calc(var(--mt-topbar) + 14px); }
.admin-shell .shop-cart { display: flex; flex-direction: column; gap: 11px; padding: 16px; }
.admin-shell .shop-cart-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.admin-shell .shop-cart-head h2 { margin: 0; color: #101828; font-size: 15px; font-weight: 600; letter-spacing: -.02em; }
.admin-shell .shop-cart-head span { display: block; margin-top: 2px; color: var(--mt-muted); font-size: 10px; }
.admin-shell .shop-cart-lines { display: flex; flex-direction: column; max-height: 286px; overflow-y: auto; }
.admin-shell .shop-cart-line {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto 24px;
    gap: 7px;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f0f2f6;
}
.admin-shell .shop-cart-line-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.admin-shell .shop-cart-line-main strong { overflow: hidden; color: #101828; font-size: 11px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.admin-shell .shop-cart-line-main span { overflow: hidden; color: var(--mt-muted); font-size: 8.5px; text-overflow: ellipsis; white-space: nowrap; }
.admin-shell .shop-qty-control { display: inline-flex; align-items: center; overflow: hidden; border: 1px solid var(--mt-border); border-radius: 8px; background: #ffffff; }
.admin-shell .shop-qty-control button { display: inline-flex; align-items: center; justify-content: center; width: 25px; height: 28px; border: 0; background: #f8fafc; color: #475467; cursor: pointer; }
.admin-shell .shop-qty-control button:hover { background: var(--mt-soft); color: var(--mt-deep); }
.admin-shell .shop-qty-control button svg { width: 12px; height: 12px; }
.admin-shell .shop-qty-control input {
    width: 34px;
    height: 28px;
    border: 0;
    border-left: 1px solid #f0f2f6;
    border-right: 1px solid #f0f2f6;
    background: #ffffff;
    color: #101828;
    font-family: inherit;
    font-size: 11px;
    font-weight: 600;
    text-align: center;
    -moz-appearance: textfield;
}
.admin-shell .shop-qty-control input::-webkit-outer-spin-button,
.admin-shell .shop-qty-control input::-webkit-inner-spin-button { margin: 0; -webkit-appearance: none; }
.admin-shell .shop-cart-line-total { color: #101828; font-size: 10.5px; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.admin-shell .shop-cart-remove { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 6px; background: transparent; color: var(--mt-faint); cursor: pointer; }
.admin-shell .shop-cart-remove:hover { background: var(--mt-danger-soft); color: var(--mt-danger); }
.admin-shell .shop-cart-remove svg { width: 12px; height: 12px; }
.admin-shell .shop-cart-empty { padding: 22px 12px; text-align: center; }
.admin-shell .shop-cart-empty span { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-bottom: 8px; border-radius: 50%; background: var(--mt-surface-2); color: var(--mt-faint); }
.admin-shell .shop-cart-empty span svg { width: 20px; height: 20px; }
.admin-shell .shop-cart-empty strong { display: block; color: #344054; font-size: 12px; font-weight: 500; }
.admin-shell .shop-cart-empty p { margin: 3px 0 0; color: var(--mt-muted); font-size: 10px; }
.admin-shell .shop-cart-fields { display: flex; flex-direction: column; gap: 9px; padding-top: 10px; border-top: 1px solid var(--mt-border); }
.admin-shell .shop-cart-fields .field label { color: var(--mt-muted); font-size: 9.5px; }
.admin-shell .shop-cart-fields .field input,
.admin-shell .shop-cart-fields .field select { min-height: 38px; font-size: 11.5px; }
.admin-shell .shop-inline-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.admin-shell .shop-change {
    display: flex;
    align-items: center;
    min-height: 38px;
    padding: 0 10px;
    border: 1px solid var(--mt-border);
    border-radius: 9px;
    background: #f8fafc;
    color: #101828;
    font-size: 11.5px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}
.admin-shell .shop-change.is-short { border-color: var(--mt-danger-border); background: var(--mt-danger-soft); color: var(--mt-danger); }
.admin-shell .shop-totals { display: flex; flex-direction: column; gap: 4px; padding-top: 10px; border-top: 1px solid var(--mt-border); }
.admin-shell .shop-totals > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--mt-muted); font-size: 10.5px; }
.admin-shell .shop-totals strong { color: #344054; font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; }
.admin-shell .shop-total-row { margin-top: 3px; padding-top: 7px; border-top: 1px dashed var(--mt-border); font-size: 12px !important; }
.admin-shell .shop-total-row span { color: #101828; font-weight: 500; }
.admin-shell .shop-total-row strong { color: #101828; font-size: 18px; font-weight: 700; letter-spacing: -.03em; }
.admin-shell .shop-form-error { display: flex; align-items: flex-start; gap: 6px; margin: 0; padding: 8px 10px; border: 1px solid var(--mt-danger-border); border-radius: 9px; background: var(--mt-danger-soft); color: var(--mt-danger); font-size: 10.5px; line-height: 1.45; }
.admin-shell .shop-form-error svg { width: 13px; height: 13px; flex: 0 0 auto; margin-top: 1px; }
.admin-shell .shop-complete-btn { width: 100%; justify-content: center; min-height: 44px; }
.admin-shell .shop-cart-hint { display: flex; align-items: flex-start; gap: 5px; margin: 0; color: var(--mt-faint); font-size: 9px; line-height: 1.5; }
.admin-shell .shop-cart-hint svg { width: 11px; height: 11px; flex: 0 0 auto; margin-top: 1px; }

/* Sales records */
.admin-shell .shop-sale-cell { display: flex; align-items: center; gap: 9px; min-width: 0; }
.admin-shell .shop-sale-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: var(--mt-soft);
    color: var(--mt-deep);
}
.admin-shell .shop-sale-icon svg { width: 15px; height: 15px; }
.admin-shell .shop-sale-icon.is-transfer { background: var(--mt-violet-soft); color: var(--mt-violet); }
.admin-shell .shop-sale-cell > span:last-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.admin-shell .shop-sale-cell strong { color: #101828; font-size: 11.5px; font-weight: 600; }
.admin-shell .shop-sale-cell > span > span { color: var(--mt-muted); font-size: 9.5px; }
.admin-shell .shop-sale-customer strong, .admin-shell .shop-sale-items strong { display: block; color: #344054; font-size: 11px; font-weight: 500; }
.admin-shell .shop-sale-customer span, .admin-shell .shop-sale-items span { display: block; color: var(--mt-muted); font-size: 9.5px; }
.admin-shell .shop-sale-payment span { display: block; color: #344054; font-size: 10.5px; }
.admin-shell .shop-sale-payment small { display: block; color: var(--mt-faint); font-size: 9px; }
.admin-shell .shop-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 8px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 500;
    white-space: nowrap;
}
.admin-shell .shop-status > span { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.admin-shell .shop-status-completed { border-color: var(--mt-success-border); background: var(--mt-success-soft); color: var(--mt-success); }
.admin-shell .shop-status-voided { border-color: var(--mt-danger-border); background: var(--mt-danger-soft); color: var(--mt-danger); }
.admin-shell .shop-sale-row.is-voided td { opacity: .62; }
.admin-shell .shop-icon-btn { padding: 4px 7px; }
.admin-shell .shop-icon-btn svg { width: 13px; height: 13px; }
.admin-shell .shop-mobile-list { display: none; }
.admin-shell .shop-mobile-sale {
    display: block;
    padding: 12px;
    border: 1px solid var(--mt-border);
    border-radius: 13px;
    background: #ffffff;
    box-shadow: var(--mt-shadow-card);
}
.admin-shell .shop-mobile-sale.is-voided { opacity: .72; }
.admin-shell .shop-mobile-sale-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.admin-shell .shop-mobile-sale-head > div { display: flex; flex-direction: column; gap: 2px; }
.admin-shell .shop-mobile-sale-head strong { color: #101828; font-size: 12px; font-weight: 600; }
.admin-shell .shop-mobile-sale-head > div span { color: var(--mt-muted); font-size: 9.5px; }
.admin-shell .shop-mobile-transfer-units { color: var(--mt-violet); font-size: 10px; font-weight: 600; white-space: nowrap; }
.admin-shell .shop-mobile-sale-body { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 10px; padding: 8px; border-radius: 9px; background: var(--mt-surface-2); }
.admin-shell .shop-mobile-sale-body > div { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.admin-shell .shop-mobile-sale-body span { color: var(--mt-muted); font-size: 8.5px; text-transform: uppercase; letter-spacing: .05em; }
.admin-shell .shop-mobile-sale-body strong { overflow: hidden; color: #344054; font-size: 11px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.admin-shell .shop-mobile-sale-foot { display: flex; align-items: center; gap: 8px; margin-top: 8px; color: var(--mt-muted); font-size: 9px; }
.admin-shell .shop-mobile-sale-foot span { display: inline-flex; align-items: center; gap: 3px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-shell .shop-mobile-sale-foot span:first-child { flex: 1 1 auto; }
.admin-shell .shop-mobile-sale-foot svg { width: 10px; height: 10px; }
.admin-shell .shop-mobile-sale-foot > svg { flex: 0 0 auto; margin-left: auto; color: var(--mt-faint); width: 13px; height: 13px; }
.admin-shell .shop-transfer-route { display: flex; align-items: center; gap: 5px; }
.admin-shell .shop-transfer-route > svg { width: 11px; height: 11px; color: var(--mt-faint); flex: 0 0 auto; }
.admin-shell .shop-transfer-route .inv-loc-pill { padding: 3px 7px; font-size: 8.5px; }
.admin-shell .shop-transfer-note { max-width: 190px; overflow: hidden; color: var(--mt-muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }

/* Sale detail */
.admin-shell .shop-void-alert { display: flex; align-items: flex-start; gap: 9px; margin-bottom: 14px; }
.admin-shell .shop-void-alert svg { width: 17px; height: 17px; flex: 0 0 auto; margin-top: 1px; }
.admin-shell .shop-void-alert strong { display: block; }
.admin-shell .shop-void-alert p { margin: 2px 0 0; }
.admin-shell .shop-sale-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    flex-wrap: wrap;
    padding: 18px 20px;
    border: 1px solid var(--mt-border);
    border-radius: 16px;
    background: radial-gradient(460px 200px at 100% -30%, rgba(37, 99, 235, .08), transparent 70%), linear-gradient(150deg, #ffffff, #f8faff);
    box-shadow: var(--mt-shadow-card);
}
.admin-shell .shop-sale-hero.is-voided { border-color: #fecdca; background: linear-gradient(150deg, #ffffff, #fffbfa); }
.admin-shell .shop-sale-hero-main { display: flex; align-items: center; gap: 14px; }
.admin-shell .shop-sale-hero-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--mt-deep);
    color: #ffffff;
    box-shadow: 0 10px 22px -14px rgba(29, 78, 216, .75);
}
.admin-shell .shop-sale-hero-badge svg { width: 23px; height: 23px; }
.admin-shell .shop-sale-hero-main h2 { margin: 6px 0 1px; color: #101828; font-size: 30px; font-weight: 700; letter-spacing: -.04em; line-height: 1; }
.admin-shell .shop-sale-hero-main p { margin: 0; color: var(--mt-muted); font-size: 10.5px; }
.admin-shell .shop-sale-hero-facts { display: grid; grid-template-columns: repeat(2, minmax(110px, auto)); gap: 9px 26px; }
.admin-shell .shop-sale-hero-facts > div { display: flex; flex-direction: column; gap: 1px; }
.admin-shell .shop-sale-hero-facts span { color: var(--mt-faint); font-size: 8.5px; font-weight: 500; letter-spacing: .07em; text-transform: uppercase; }
.admin-shell .shop-sale-hero-facts strong { color: #344054; font-size: 11.5px; font-weight: 500; }
.admin-shell .shop-sale-grid { display: grid; grid-template-columns: minmax(0, 1fr) 328px; gap: 16px; align-items: start; margin-top: 16px; }
.admin-shell .shop-sale-lines { padding: 18px; }
.admin-shell .shop-sale-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.admin-shell .shop-sale-side > .card { margin-top: 0; }
.admin-shell .shop-receipt-table-wrap { overflow-x: auto; }
.admin-shell .shop-receipt-table { width: 100%; border-collapse: collapse; }
.admin-shell .shop-receipt-table th {
    padding: 8px 10px;
    border-bottom: 1px solid var(--mt-border);
    color: var(--mt-muted);
    font-size: 8.5px;
    font-weight: 500;
    letter-spacing: .06em;
    text-align: left;
    text-transform: uppercase;
    white-space: nowrap;
}
.admin-shell .shop-receipt-table td { padding: 10px; border-bottom: 1px solid #f2f4f7; color: #344054; font-size: 11px; vertical-align: middle; }
.admin-shell .shop-receipt-table tbody tr:last-child td { border-bottom: 0; }
.admin-shell .shop-receipt-table td:nth-child(n+2) { text-align: right; white-space: nowrap; }
.admin-shell .shop-receipt-table th:nth-child(n+2) { text-align: right; }
.admin-shell .shop-receipt-item { display: flex; flex-direction: column; gap: 1px; }
.admin-shell .shop-receipt-item strong { color: #101828; font-size: 11.5px; font-weight: 600; }
.admin-shell .shop-receipt-item span { color: var(--mt-muted); font-size: 9px; }
.admin-shell .shop-sale-note { display: flex; align-items: flex-start; gap: 6px; margin-top: 12px; padding: 9px 11px; border-radius: 9px; background: var(--mt-surface-2); color: #475467; font-size: 10.5px; line-height: 1.5; }
.admin-shell .shop-sale-note svg { width: 12px; height: 12px; flex: 0 0 auto; margin-top: 1px; color: var(--mt-faint); }
.admin-shell .shop-sale-summary { padding: 18px; }
.admin-shell .shop-sale-summary h2 { margin: 0 0 10px; color: #101828; font-size: 14px; font-weight: 600; }
.admin-shell .shop-summary-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid #f2f4f7; color: var(--mt-muted); font-size: 10.5px; }
.admin-shell .shop-summary-row strong { color: #344054; font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; }
.admin-shell .shop-summary-row.is-total { padding: 9px 0; border-bottom: 1px solid var(--mt-border); color: #101828; font-size: 12px; font-weight: 500; }
.admin-shell .shop-summary-row.is-total strong { color: #101828; font-size: 18px; font-weight: 700; letter-spacing: -.03em; }
.admin-shell .shop-summary-method { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--mt-border); color: var(--mt-muted); font-size: 10px; }
.admin-shell .shop-summary-method strong { display: inline-flex; align-items: center; gap: 5px; color: #344054; font-size: 10.5px; font-weight: 500; }
.admin-shell .shop-summary-method svg { width: 12px; height: 12px; }
.admin-shell .shop-void-card { padding: 18px; border-color: #fecdca; background: linear-gradient(160deg, #ffffff, #fffbfa); }
.admin-shell .shop-void-card h2 { margin: 0 0 5px; color: var(--mt-danger); font-size: 14px; font-weight: 600; }
.admin-shell .shop-void-card p { margin: 0 0 11px; color: var(--mt-muted); font-size: 10.5px; line-height: 1.55; }
.admin-shell .shop-void-card .field { margin-bottom: 10px; }

/* Transfer detail */
.admin-shell .transfer-hero { display: flex; align-items: center; justify-content: space-between; gap: 22px; flex-wrap: wrap; padding: 20px; border: 1px solid var(--mt-border); border-radius: 16px; background: radial-gradient(460px 200px at 100% -30%, rgba(89, 37, 220, .07), transparent 70%), linear-gradient(150deg, #ffffff, #fbfaff); box-shadow: var(--mt-shadow-card); }
.admin-shell .transfer-hero-route { display: flex; align-items: center; gap: 13px; flex-wrap: wrap; }
.admin-shell .transfer-hero-location {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
    min-width: 156px;
    padding: 11px 14px;
    border: 1px solid var(--mt-border);
    border-radius: 12px;
    background: #ffffff;
}
.admin-shell .transfer-hero-location .inv-hero-icon { width: 34px; height: 34px; margin-bottom: 5px; border-radius: 9px; }
.admin-shell .transfer-hero-location .inv-hero-icon svg { width: 16px; height: 16px; }
.admin-shell .transfer-hero-location > span:not(.inv-hero-icon) { color: var(--mt-faint); font-size: 8.5px; font-weight: 500; letter-spacing: .07em; text-transform: uppercase; }
.admin-shell .transfer-hero-location strong { color: #101828; font-size: 14px; font-weight: 600; }
.admin-shell .transfer-hero-location.inv-loc-store { background: var(--mt-indigo-soft); }
.admin-shell .transfer-hero-location.inv-loc-shop { background: var(--mt-violet-soft); }
.admin-shell .transfer-hero-arrow { display: flex; flex-direction: column; align-items: center; gap: 3px; color: var(--mt-faint); }
.admin-shell .transfer-hero-arrow svg { width: 20px; height: 20px; }
.admin-shell .transfer-hero-arrow em { color: var(--mt-muted); font-size: 8.5px; font-style: normal; white-space: nowrap; }
.admin-shell .transfer-hero-stats { display: grid; grid-template-columns: repeat(4, minmax(76px, auto)); gap: 14px; }
.admin-shell .transfer-hero-stats > div { display: flex; flex-direction: column; gap: 2px; }
.admin-shell .transfer-hero-stats span { color: var(--mt-faint); font-size: 8.5px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }
.admin-shell .transfer-hero-stats strong { color: #101828; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.admin-shell .transfer-note-banner { display: flex; align-items: flex-start; gap: 7px; margin-top: 14px; padding: 10px 13px; border: 1px solid var(--mt-border); border-radius: 10px; background: #ffffff; color: #475467; font-size: 11px; line-height: 1.5; }
.admin-shell .transfer-note-banner svg { width: 13px; height: 13px; flex: 0 0 auto; margin-top: 1px; color: var(--mt-faint); }
.admin-shell .transfer-lines-card { padding: 18px; margin-top: 16px; }

/* Transfer create */
.admin-shell .transfer-form { display: flex; flex-direction: column; gap: 18px; padding: 20px; }
.admin-shell .transfer-direction {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    flex-wrap: wrap;
    padding: 14px;
    border: 1px solid var(--mt-border);
    border-radius: 12px;
    background: var(--mt-surface-2);
}
.admin-shell .transfer-direction .field { flex: 1 1 190px; margin-bottom: 0; }
.admin-shell .transfer-swap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--mt-border);
    border-radius: 10px;
    background: #ffffff;
    color: var(--mt-deep);
    cursor: pointer;
}
.admin-shell .transfer-swap:hover { border-color: var(--mt-blue); background: var(--mt-soft); }
.admin-shell .transfer-swap svg { width: 15px; height: 15px; }
.admin-shell .transfer-direction-note { display: flex; align-items: flex-start; gap: 6px; flex: 1 1 100%; color: var(--mt-muted); font-size: 10px; line-height: 1.5; }
.admin-shell .transfer-direction-note svg { width: 12px; height: 12px; flex: 0 0 auto; margin-top: 1px; }
.admin-shell .transfer-lines-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.admin-shell .transfer-lines-head h2 { margin: 0; color: #101828; font-size: 15px; font-weight: 600; }
.admin-shell .transfer-lines-head p { margin: 2px 0 0; color: var(--mt-muted); font-size: 10.5px; }
.admin-shell .transfer-line-list { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.admin-shell .transfer-line {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 124px 34px;
    gap: 10px;
    align-items: start;
    padding: 10px;
    border: 1px solid var(--mt-border);
    border-radius: 11px;
    background: #ffffff;
}
.admin-shell .transfer-line-part label,
.admin-shell .transfer-line-qty label { display: block; margin-bottom: 3px; color: var(--mt-muted); font-size: 8.5px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }
.admin-shell .transfer-line select,
.admin-shell .transfer-line input { width: 100%; min-height: 38px; padding: 7px 9px; border: 1px solid var(--mt-border); border-radius: 8px; background: #ffffff; font-family: inherit; font-size: 11.5px; color: var(--mt-text); }
.admin-shell .transfer-line select:focus,
.admin-shell .transfer-line input:focus { outline: none; border-color: var(--mt-blue); box-shadow: var(--mt-ring); }
.admin-shell .transfer-line-meta { display: block; margin-top: 3px; color: var(--mt-faint); font-size: 9px; }
.admin-shell .transfer-line-qty small { display: block; margin-top: 3px; color: var(--mt-muted); font-size: 8.5px; line-height: 1.35; }
.admin-shell .transfer-line-qty small.is-short { color: var(--mt-danger); }
.admin-shell .transfer-line-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 38px;
    margin-top: 16px;
    border: 1px solid var(--mt-border);
    border-radius: 8px;
    background: #ffffff;
    color: var(--mt-faint);
    cursor: pointer;
}
.admin-shell .transfer-line-remove:hover { border-color: var(--mt-danger-border); background: var(--mt-danger-soft); color: var(--mt-danger); }
.admin-shell .transfer-line-remove svg { width: 13px; height: 13px; }
.admin-shell .transfer-foot { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; padding-top: 14px; border-top: 1px solid var(--mt-border); }
.admin-shell .transfer-note-field { flex: 1 1 320px; margin-bottom: 0; }
.admin-shell .transfer-summary { display: flex; gap: 18px; }
.admin-shell .transfer-summary > div { display: flex; flex-direction: column; gap: 1px; }
.admin-shell .transfer-summary span { color: var(--mt-faint); font-size: 8.5px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }
.admin-shell .transfer-summary strong { color: #101828; font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; }
.admin-shell .transfer-submit { min-height: 44px; }

/* Shop responsive */
@media (max-width: 1180px) {
    .admin-shell .shop-pos { grid-template-columns: minmax(0, 1fr) 360px; }
    .admin-shell .shop-cart-lines { max-height: 250px; }
}
@media (max-width: 1023px) {
    .admin-shell .shop-pos { grid-template-columns: minmax(0, 1fr); }
    .admin-shell .shop-cart-wrap { position: static; }
    .admin-shell .shop-cart-lines { max-height: none; }
    .admin-shell .shop-sale-grid { grid-template-columns: minmax(0, 1fr); }
    .admin-shell .shop-sale-side { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
    .admin-shell .shop-sale-side > .card { margin-top: 0; }
    .admin-shell .transfer-hero { flex-direction: column; align-items: flex-start; }
    .admin-shell .transfer-hero-stats { width: 100%; grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
    .admin-shell .shop-sales-table-card { display: block; }
    .admin-shell .shop-sales-table-card .inv-table-wrap { display: none; }
    .admin-shell .shop-mobile-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
}
@media (max-width: 720px) {
    .admin-shell .shop-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
    .admin-shell .shop-product { min-height: 104px; padding: 10px; }
    .admin-shell .shop-product-price { font-size: 11px; }
    .admin-shell .shop-inline-fields { grid-template-columns: 1fr 1fr; }
    .admin-shell .shop-sale-hero { align-items: flex-start; flex-direction: column; gap: 14px; }
    .admin-shell .shop-sale-hero-facts { width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .admin-shell .shop-sale-side { grid-template-columns: 1fr; }
    .admin-shell .transfer-direction { align-items: stretch; }
    .admin-shell .transfer-swap { align-self: center; width: 100%; height: 34px; }
    .admin-shell .transfer-line { grid-template-columns: minmax(0, 1fr) 100px 32px; gap: 7px; padding: 8px; }
    .admin-shell .transfer-line-remove { width: 32px; }
    .admin-shell .transfer-foot { flex-direction: column; align-items: stretch; }
    .admin-shell .transfer-note-field { flex: 0 0 auto; width: 100%; }
    .admin-shell .transfer-summary { justify-content: space-between; }
    .admin-shell .transfer-submit { width: 100%; justify-content: center; }
    .admin-shell .transfer-hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
    .admin-shell .shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .admin-shell .shop-product-top { grid-template-columns: 26px minmax(0, 1fr); column-gap: 7px; }
    .admin-shell .shop-product-icon { width: 26px; height: 26px; border-radius: 8px; }
    .admin-shell .shop-product-icon svg { width: 13px; height: 13px; }
    .admin-shell .shop-product-price { font-size: 11px; }
    .admin-shell .shop-product-info span { max-width: 100%; }
    .admin-shell .shop-stock-badge { font-size: 8px; padding: 2px 6px; }
    .admin-shell .shop-cart-line { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "main total" "qty remove"; gap: 4px 8px; padding: 9px 0; }
    .admin-shell .shop-cart-line-main { grid-area: main; }
    .admin-shell .shop-qty-control { grid-area: qty; justify-self: start; }
    .admin-shell .shop-cart-line-total { grid-area: total; text-align: right; }
    .admin-shell .shop-cart-remove { grid-area: remove; justify-self: end; }
    .admin-shell .shop-cart { padding: 13px; }
    .admin-shell .shop-catalogue { padding: 12px; }
    .admin-shell .shop-sale-hero { padding: 14px; }
    .admin-shell .shop-sale-hero-main h2 { font-size: 26px; }
    .admin-shell .shop-sale-lines,
    .admin-shell .shop-sale-summary,
    .admin-shell .shop-void-card,
    .admin-shell .transfer-lines-card,
    .admin-shell .transfer-form { padding: 14px; }
    .admin-shell .shop-receipt-table-wrap { overflow-x: visible; }
    .admin-shell .shop-receipt-table,
    .admin-shell .shop-receipt-table tbody,
    .admin-shell .shop-receipt-table tr,
    .admin-shell .shop-receipt-table td { display: block; width: 100%; }
    .admin-shell .shop-receipt-table thead { display: none; }
    .admin-shell .shop-receipt-table tr { padding: 10px 0; border-bottom: 1px solid #f2f4f7; }
    .admin-shell .shop-receipt-table tr:last-child { padding-bottom: 0; border-bottom: 0; }
    .admin-shell .shop-receipt-table td { padding: 0; border: 0; text-align: left; white-space: normal; }
    .admin-shell .shop-receipt-table td:first-child { margin-bottom: 7px; }
    .admin-shell .shop-receipt-table td:nth-child(n+2) {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        gap: 10px;
        padding-top: 3px;
        color: var(--mt-muted);
        font-size: 10px;
    }
    .admin-shell .shop-receipt-table td:nth-child(2)::before { content: "Unit price"; }
    .admin-shell .shop-receipt-table td:nth-child(3)::before { content: "Quantity"; }
    .admin-shell .shop-receipt-table td:nth-child(4)::before { content: "Line total"; }
    .admin-shell .shop-receipt-table td:nth-child(n+2) strong { color: #101828; font-size: 11px; }
    .admin-shell .shop-receipt-table td:nth-child(4) strong { font-size: 12px; }
    .admin-shell .shop-transfer-route { flex-wrap: wrap; }
    .admin-shell .shop-transfer-note { max-width: 110px; }
    .admin-shell .transfer-line { grid-template-columns: minmax(0, 1fr) 86px 30px; }
    .admin-shell .transfer-line-remove { width: 30px; padding: 0; }
    .admin-shell .transfer-hero-route { width: 100%; }
    .admin-shell .transfer-hero-location { flex: 1 1 0; min-width: 0; padding: 10px; }
    .admin-shell .transfer-hero-arrow { flex: 0 0 auto; }
    .admin-shell .inv-loc-availability { grid-template-columns: 1fr 1fr; }
    .admin-shell .shop-mobile-sale-body { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Printable sale receipt + transfer note (document layout) */
.doc .shop-receipt-doc .transfer-doc-hero,
.doc .shop-receipt-doc .transfer-doc-route,
.doc .shop-receipt-doc .transfer-doc-meta { box-sizing: border-box; }
.doc .transfer-doc-hero {
    padding: 18px 20px;
    border: 1px solid var(--mt-border);
    border-radius: 12px;
    background: linear-gradient(140deg, #f8faff, #ffffff);
}
.doc .transfer-doc-route { display: flex; align-items: center; gap: 16px; }
.doc .transfer-doc-place { display: flex; align-items: center; gap: 10px; flex: 1 1 0; }
.doc .transfer-doc-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 11px;
    background: var(--mt-indigo-soft);
    color: var(--mt-indigo);
    flex: 0 0 auto;
}
.doc .transfer-doc-icon svg { width: 18px; height: 18px; }
.doc .transfer-doc-place span { display: block; color: var(--mt-muted); font-size: 9px; letter-spacing: .07em; text-transform: uppercase; }
.doc .transfer-doc-place strong { display: block; color: #101828; font-size: 14px; }
.doc .transfer-doc-arrow { display: flex; flex-direction: column; align-items: center; gap: 1px; color: var(--mt-faint); }
.doc .transfer-doc-arrow svg { width: 18px; height: 18px; }
.doc .transfer-doc-arrow strong { color: #101828; font-size: 16px; }
.doc .transfer-doc-arrow span { color: var(--mt-muted); font-size: 8.5px; text-transform: uppercase; letter-spacing: .06em; }
.doc .transfer-doc-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--mt-border); color: var(--mt-muted); font-size: 10.5px; }
.doc .transfer-doc-meta span { display: inline-flex; align-items: center; gap: 4px; }
.doc .transfer-doc-meta svg { width: 11px; height: 11px; }
