/* Subdomains Master Management Dashboard Stylesheet - Premium Daylight Theme */
:root {
    --bg-page: #f8fafc;
    --bg-card: #ffffff;
    --bg-card-hover: #ffffff;
    --bg-surface: #f1f5f9;
    --border-color: #e2e8f0;
    --border-color-light: #cbd5e1;
    
    --brand-orange: #f97316;
    --brand-orange-hover: #ea580c;
    --brand-orange-glow: rgba(249, 115, 22, 0.15);
    
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    
    --color-driving: #0284c7;
    --color-driving-bg: rgba(2, 132, 199, 0.08);
    --color-print: #6366f1;
    --color-print-bg: rgba(99, 102, 241, 0.08);
    --color-mailbox: #059669;
    --color-mailbox-bg: rgba(5, 150, 105, 0.08);
    --color-wallet: #d97706;
    --color-wallet-bg: rgba(217, 119, 6, 0.08);
    --color-stat: #0d9488;
    --color-stat-bg: rgba(13, 148, 136, 0.08);
    --color-reserved1: #9333ea;
    --color-reserved1-bg: rgba(147, 51, 234, 0.08);
    --color-reserved2: #db2777;
    --color-reserved2-bg: rgba(219, 39, 119, 0.08);
    
    --radius-lg: 12px;
    --radius-md: 8px;
    --radius-sm: 6px;
    
    --shadow-card: 0 1px 3px rgba(15, 23, 42, 0.04), 0 4px 14px rgba(15, 23, 42, 0.05);
    --shadow-card-hover: 0 6px 20px rgba(15, 23, 42, 0.08), 0 2px 6px rgba(15, 23, 42, 0.04);
    
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html, body {
    width: 100vw;
    height: 100vh;
    max-width: 100vw;
    max-height: 100vh;
    overflow: hidden; /* STRICT NO-SCROLL ON WINDOW */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--bg-page);
    background-image: 
        radial-gradient(at 0% 0%, rgba(249, 115, 22, 0.05) 0px, transparent 40%),
        radial-gradient(at 100% 100%, rgba(99, 102, 241, 0.04) 0px, transparent 40%),
        radial-gradient(at 50% 30%, rgba(2, 132, 199, 0.03) 0px, transparent 50%);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
}

.dashboard-app {
    display: flex;
    flex-direction: column;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
}

/* TOP APP BAR */
.top-bar {
    height: 44px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    z-index: 50;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.3px;
    text-decoration: none;
    color: var(--text-primary);
}

.brand-badge .logo-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--brand-orange);
    box-shadow: 0 0 8px rgba(249, 115, 22, 0.4);
}

.brand-badge span.kw {
    color: var(--brand-orange);
    font-variant: small-caps;
}

.brand-separator {
    color: var(--border-color-light);
    font-weight: 300;
    margin: 0 4px;
}

.app-subtitle {
    font-size: 0.82rem;
    color: var(--text-secondary);
    font-weight: 600;
    background: #f1f5f9;
    padding: 3px 10px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.top-bar-center {
    display: flex;
    align-items: center;
    gap: 12px;
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.76rem;
    font-weight: 700;
    color: #15803d;
    background: #ecfdf5;
    border: 1px solid #bbf7d0;
    padding: 3px 10px;
    border-radius: 14px;
}

.user-id-indicator,
.user-email-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.76rem;
    font-weight: 700;
    color: #0369a1;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    padding: 3px 10px;
    border-radius: 14px;
}

.pulse-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #16a34a;
    box-shadow: 0 0 6px rgba(22, 163, 74, 0.4);
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.2); }
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
    justify-content: flex-end;
}

.clock-display {
    font-size: 0.85rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: var(--text-secondary);
}

.refresh-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: var(--transition);
}

.refresh-btn:hover {
    background: #f8fafc;
    border-color: var(--border-color-light);
}

.refresh-btn svg {
    transition: transform 0.5s ease;
}

.refresh-btn.spinning svg {
    transform: rotate(360deg);
}

.home-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff7ed;
    border: 1px solid rgba(249, 115, 22, 0.35);
    color: #c2410c;
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.home-btn:hover {
    background: #ffedd5;
    border-color: var(--brand-orange);
    color: #9a3412;
}

.logout-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: #b91c1c;
    padding: 7px 16px;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
}

.logout-btn:hover {
    background: #fee2e2;
    border-color: #ef4444;
    color: #991b1b;
    box-shadow: 0 1px 3px rgba(220, 38, 38, 0.12);
}

/* 6-BOX GRID CONTAINER - NO SCROLL */
.grid-container {
    flex: 1;
    min-height: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 8px;
    padding: 8px 10px 10px 10px;
    overflow: hidden;
}

/* CARDS */
.dash-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-card);
    transition: var(--transition);
}

.dash-card:hover {
    border-color: var(--border-color-light);
    box-shadow: var(--shadow-card-hover);
}

/* Card Accent Top Lines */
.dash-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    opacity: 0.9;
}

.card-driving::before { background: var(--color-driving); }
.card-print::before { background: var(--color-print); }
.card-mailbox::before { background: var(--color-mailbox); }
.card-wallet::before { background: var(--color-wallet); }
.card-stat::before { background: var(--color-stat); }
.card-auth::before { background: #4f46e5; }
.card-reserved::before { background: #cbd5e1; }
.card-reserved1::before { background: var(--color-reserved1); }
.card-reserved2::before { background: var(--color-reserved2); }

/* Card Header */
.card-header {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 14px 4px 14px;
}

.card-title-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-icon-wrap {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.card-driving .card-icon-wrap { background: var(--color-driving-bg); color: var(--color-driving); }
.card-print .card-icon-wrap { background: var(--color-print-bg); color: var(--color-print); }
.card-mailbox .card-icon-wrap { background: var(--color-mailbox-bg); color: var(--color-mailbox); }
.card-wallet .card-icon-wrap { background: var(--color-wallet-bg); color: var(--color-wallet); }
.card-stat .card-icon-wrap { background: var(--color-stat-bg); color: var(--color-stat); }
.card-reserved .card-icon-wrap { background: #f1f5f9; color: #94a3b8; }
.card-reserved1 .card-icon-wrap { background: var(--color-reserved1-bg); color: var(--color-reserved1); }
.card-reserved2 .card-icon-wrap { background: var(--color-reserved2-bg); color: var(--color-reserved2); }

.card-title-wrap h2 {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: -0.2px;
    color: var(--text-primary);
    line-height: 1.15;
}

.card-title-link {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    font: inherit;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
}

.card-title-link:hover,
.card-title-link.active {
    color: var(--brand-orange);
    text-decoration: none;
}

.card-title-wrap .subdomain-tag {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 500;
}

.card-title-wrap .subdomain-tag a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

.card-title-wrap .subdomain-tag a:hover {
    color: var(--text-primary);
    text-decoration: underline;
}

.card-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* Panel Top-Right Nav Group: Home | Live | Manage */
.panel-nav-links {
    display: inline-flex;
    align-items: center;
    background: transparent;
    border: none;
    padding: 0;
    gap: 5px;
    font-size: 0.72rem;
    line-height: 1.2;
}

.panel-nav-link {
    color: #475569;
    font-weight: 700;
    text-decoration: none;
    padding: 1px 4px;
    border-radius: 4px;
    transition: var(--transition);
}

.panel-nav-link:hover {
    color: #0284c7;
    background: #f0f9ff;
    text-decoration: none;
}

.panel-nav-sep {
    color: #cbd5e1;
    font-size: 0.65rem;
    font-weight: 400;
    user-select: none;
}

.panel-nav-btn {
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.72rem;
    font-weight: 700;
    color: #334155;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-width: 56px;
    height: 24px;
    padding: 0 8px;
    border-radius: 5px;
    text-decoration: none;
    box-sizing: border-box;
    transition: var(--transition);
}

.panel-nav-btn:hover {
    color: #0284c7;
    background: #f0f9ff;
    border-color: #bae6fd;
}

.panel-nav-btn.nav-home {
    background: #dcfce7;
    color: #15803d;
    border-color: #86efac;
}
.panel-nav-btn.nav-home:hover {
    background: #bbf7d0;
    color: #166534;
    border-color: #4ade80;
}

.panel-nav-btn.nav-staff {
    background: #dbeafe;
    color: #1d4ed8;
    border-color: #93c5fd;
}
.panel-nav-btn.nav-staff:hover {
    background: #bfdbfe;
    color: #1e40af;
    border-color: #60a5fa;
}

.panel-nav-btn.nav-manage {
    background: #fef9c3;
    color: #a16207;
    border-color: #fde047;
}
.panel-nav-btn.nav-manage:hover {
    background: #fef08a;
    color: #854d0e;
    border-color: #facc15;
}

.panel-nav-btn.is-disabled,
.panel-nav-btn:disabled {
    color: #94a3b8;
    background: #f1f5f9;
    border-color: #e2e8f0;
    cursor: not-allowed;
    opacity: 0.65;
    pointer-events: none;
}

.panel-nav-btn.active {
    color: #0284c7;
    background: #e0f2fe;
}

.panel-nav-btn svg {
    transition: transform 0.15s ease;
    opacity: 0.7;
}

.panel-nav-btn.active svg {
    transform: rotate(180deg);
    opacity: 1;
}

/* FLOATING NAV DROPDOWN MENUS (Public & Console) */
.nav-dropdown-menu {
    position: fixed;
    display: none;
    z-index: 99999;
    min-width: min(340px, 94vw);
    width: max-content;
    max-width: min(94vw, 520px);
    max-height: 480px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    box-shadow: 0 12px 28px -4px rgba(15, 23, 42, 0.18), 0 4px 10px -2px rgba(15, 23, 42, 0.08);
    overflow-y: auto;
    overflow-x: hidden;
    padding: 6px 0;
    box-sizing: border-box;
    font-family: inherit;
}

div[id^="dropdown-domain-"] {
    min-width: min(260px, 92vw);
    max-width: min(320px, 94vw);
}

div[id^="dropdown-manage-"] {
    min-width: min(340px, 94vw);
    max-width: min(440px, 96vw);
}

.nav-dropdown-menu.show {
    display: block;
    animation: navDropdownPop 0.15s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes navDropdownPop {
    from {
        opacity: 0;
        transform: translateY(-4px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.nav-dropdown-header {
    padding: 8px 14px 7px 14px;
    border-bottom: 1px solid #f1f5f9;
    background: #f8fafc;
    margin-top: -6px;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-dropdown-title {
    font-size: 0.76rem;
    font-weight: 800;
    color: #334155;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-dropdown-badge {
    font-size: 0.65rem;
    padding: 1px 6px;
    border-radius: 4px;
    background: #e2e8f0;
    color: #475569;
    font-weight: 600;
}

.nav-dropdown-section {
    padding: 6px 14px 3px 14px;
    font-size: 0.67rem;
    font-weight: 800;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    border-top: 1px solid #f1f5f9;
    margin-top: 4px;
}

.nav-dropdown-section:first-of-type {
    border-top: none;
    margin-top: 0;
}

.nav-dropdown-item {
    display: flex;
    flex-direction: column;
    padding: 7px 14px;
    color: #1e293b;
    text-decoration: none;
    line-height: 1.3;
    transition: background-color 0.15s ease, color 0.15s ease;
    border-bottom: 1px solid #f8fafc;
}

.nav-dropdown-item:last-child {
    border-bottom: none;
}

.nav-dropdown-item:hover {
    background-color: #f1f5f9;
}

.nav-dropdown-item:hover .item-title {
    color: #0284c7;
}

.nav-dropdown-item .item-texts {
    display: flex;
    flex-direction: column;
    min-width: max-content;
    width: 100%;
    gap: 3px;
}

.nav-dropdown-item .item-title {
    font-weight: 600;
    font-size: 0.81rem;
    color: #1e293b;
    white-space: nowrap;
}

.nav-dropdown-item .item-desc {
    font-size: 0.71rem;
    color: #64748b;
    font-weight: 500;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    white-space: nowrap;
    word-break: keep-all;
}

.nav-dropdown-item:hover .item-desc {
    color: #0369a1;
}

.status-badge {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0.2px;
    padding: 2px 8px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
}

a.status-badge {
    cursor: pointer;
    transition: var(--transition);
}

a.status-badge:hover {
    filter: brightness(0.95);
    transform: translateY(-0.5px);
}

.status-badge.alert {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fecaca;
    animation: alertPulse 2s infinite ease-in-out;
}

.status-badge.pending {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.status-badge.success {
    background: #ecfdf5;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.status-badge.standby {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #cbd5e1;
}

@keyframes alertPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.card-link-btn {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    background: #f8fafc;
    border: 1px solid var(--border-color);
    text-decoration: none;
    transition: var(--transition);
}

.card-link-btn:hover {
    color: var(--text-primary);
    background: #f1f5f9;
    border-color: var(--border-color-light);
}

/* METRICS RIBBON (2-ROW GRID OF 6 OR 8 BOXES) */
.metrics-ribbon {
    flex-shrink: 0;
    display: grid;
    gap: 6px;
    padding: 3px 14px 6px 14px;
}

.metrics-ribbon.grid-3x2 {
    grid-template-columns: repeat(3, 1fr);
}

.metrics-ribbon.grid-4x2 {
    grid-template-columns: repeat(4, 1fr);
}

.metric-pill {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 4px 7px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
    min-width: 0;
}

a.metric-pill {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: var(--transition);
}

a.metric-pill:hover,
.metric-pill:hover {
    background: #ffffff;
    border-color: var(--border-color-light);
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06);
    transform: translateY(-1px);
}

.metric-pill.active-pill {
    border-color: #0284c7;
    background: #f0f9ff;
    box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.18);
}

.metric-pill .metric-label,
.metric-pill .pill-title-top {
    order: 1;
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: none;
    letter-spacing: 0.1px;
    margin-bottom: 1px;
    text-align: left;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.metric-pill .metric-val {
    order: 2;
    font-size: 0.76rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
    color: var(--text-primary);
    text-align: right;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.metric-pill .metric-sub-val,
.metric-pill .pill-paid-text {
    order: 3;
    font-size: 0.62rem;
    font-weight: 700;
    line-height: 1.1;
    margin-top: 1px;
    text-align: right;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Highlighting key numbers in daytime light mode */
.metric-pill.highlight-amber .metric-val { color: #d97706; }
.metric-pill.highlight-red .metric-val { color: #dc2626; }
@keyframes blink-yellow-bg {
    0%, 100% {
        background: #fef08a;
        border-color: #eab308;
        box-shadow: 0 0 0 2px rgba(234, 179, 8, 0.28);
    }
    50% {
        background: #fefce8;
        border-color: #fde047;
        box-shadow: 0 0 0 0 rgba(234, 179, 8, 0);
    }
}
.metric-pill.highlight-yellow-blink,
.metric-pill.highlight-yellow-blink.active-pill {
    background: #fef08a;
    border-color: #eab308;
    animation: blink-yellow-bg 1.4s ease-in-out infinite;
}
.metric-pill.highlight-yellow-blink .metric-val { color: #a16207; }
.metric-pill.highlight-yellow-bg,
.metric-pill.highlight-yellow-bg.active-pill {
    background: #fef9c3;
    border-color: #fde047;
}
.metric-pill.highlight-yellow-bg .metric-val { color: #a16207; }
.metric-pill.highlight-blue .metric-val { color: #0284c7; }
.metric-pill.highlight-green .metric-val { color: #16a34a; }
.metric-pill.highlight-purple .metric-val { color: #7c3aed; }
.metric-pill.highlight-teal .metric-val { color: #0d9488; }
.metric-pill.highlight-cyan .metric-val { color: #0891b2; }
.metric-pill.highlight-black .metric-val { color: #0f172a; }
.metric-pill.highlight-black .metric-sub-val { color: #334155; }
.metric-pill.highlight-gray {
    background: #f8fafc;
    border-color: #cbd5e1;
}
.metric-pill.highlight-gray .metric-val { color: #64748b; }
.metric-pill.highlight-gray .metric-sub-val { color: #94a3b8; }
.metric-pill.highlight-gray .pill-paid-text { color: #94a3b8; }
.metric-pill.highlight-gray .pill-title-top { color: #64748b; }

.metric-sub-val.red { color: #dc2626; font-weight: 700; }

/* CARD BODY / SCROLLABLE LIST */
.card-content {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 0 14px 8px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    scrollbar-width: thin;
    scrollbar-color: rgba(100, 116, 139, 0.25) transparent;
}

.driving-tab-panel,
.print-tab-panel,
.mb-tab-panel,
.stat-tab-panel,
.shipping-tab-panel,
.wallet-tab-panel,
.auth-tab-panel {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}

.card-content::-webkit-scrollbar {
    width: 4px;
}

.card-content::-webkit-scrollbar-track {
    background: transparent;
}

.card-content::-webkit-scrollbar-thumb {
    background: rgba(100, 116, 139, 0.25);
    border-radius: 4px;
}

.section-subhead {
    display: none;
}

.data-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 8px;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
    transition: var(--transition);
}

.data-row:hover {
    background: #f1f5f9;
    border-color: var(--border-color);
}

.data-row-left {
    display: flex;
    flex-direction: column;
    gap: 1px;
    overflow: hidden;
}

.data-row-name {
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.data-row-sub {
    font-size: 0.68rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.data-row-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    flex-shrink: 0;
}

.badge-tag {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 4px;
    text-transform: capitalize;
}

.badge-tag.paid { background: #dcfce7; color: #15803d; border: 1px solid #bbf7d0; }
.badge-tag.unpaid { background: #fee2e2; color: #b91c1c; border: 1px solid #fecaca; }
.badge-tag.review { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
.badge-tag.processing { background: #e0f2fe; color: #0369a1; border: 1px solid #bae6fd; }
.badge-tag.delivered { background: #dcfce7; color: #15803d; border: 1px solid #86efac; }
.badge-tag.print-received { background: #fee2e2; color: #b91c1c; border: 1px solid #fecaca; }
.badge-tag.print-processing { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
.badge-tag.print-ready { background: #dcfce7; color: #15803d; border: 1px solid #86efac; }
.badge-tag.print-delivered { background: #dbeafe; color: #1d4ed8; border: 1px solid #93c5fd; }
.badge-tag.txn-add { background: #dcfce7; color: #15803d; border: 1px solid #86efac; font-weight: 800; }
.badge-tag.txn-use { background: #e0f2fe; color: #0284c7; border: 1px solid #7dd3fc; font-weight: 800; }

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 14px 10px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.78rem;
    flex: 1;
}

.empty-state svg {
    margin-bottom: 6px;
    opacity: 0.5;
}

/* RESERVED CARD */
.reserved-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px 12px;
    text-align: center;
    height: 100%;
    border: 1px dashed var(--border-color-light);
    border-radius: var(--radius-sm);
    background: #f8fafc;
}

.reserved-badge {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #7c3aed;
    background: #f5f3ff;
    border: 1px solid #ddd6fe;
    padding: 3px 10px;
    border-radius: 12px;
    margin-bottom: 8px;
}

.reserved-text {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.35;
    max-width: 240px;
}

/* CARD FOOTER */
.card-footer {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 14px 8px 14px;
    background: #f8fafc;
    border-top: 1px solid var(--border-color);
}

.footer-link {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: var(--transition);
}

.footer-quick-title {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-secondary);
    letter-spacing: -0.1px;
}

.footer-link:hover {
    color: var(--brand-orange-hover);
}

.footer-meta {
    font-size: 0.68rem;
    color: var(--text-muted);
}

/* AUTHENTICATION / LOGIN SCREEN */
.login-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    width: 100vw;
    padding: 20px;
    background-color: var(--bg-page);
    background-image: 
        radial-gradient(at 0% 0%, rgba(249, 115, 22, 0.08) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(99, 102, 241, 0.06) 0px, transparent 50%);
}

.login-card {
    width: 100%;
    max-width: 410px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08), 0 1px 3px rgba(15, 23, 42, 0.04);
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #f97316, #ea580c, #fbbf24);
}

.login-badge-header {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0.2px;
    color: #c2410c;
    background: #fff7ed;
    border: 1px solid #ffedd5;
    padding: 3px 10px;
    border-radius: 12px;
    margin-bottom: 16px;
}

.login-icon-wrap {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-orange);
    margin-bottom: 14px;
}

.login-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.login-sub {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-bottom: 22px;
    line-height: 1.4;
}

.login-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.login-field {
    width: 100%;
    position: relative;
}

.login-input {
    width: 100%;
    padding: 11px 16px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition);
}

.login-input:focus {
    border-color: var(--brand-orange);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15);
    background: #ffffff;
}

.login-input::placeholder {
    color: #94a3b8;
}

.login-submit-btn {
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    border: none;
    border-radius: var(--radius-md);
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 3px 10px rgba(249, 115, 22, 0.3);
    transition: var(--transition);
}

.login-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(249, 115, 22, 0.4);
    filter: brightness(1.05);
}

.login-submit-btn:active {
    transform: translateY(0);
}

.login-error-msg {
    width: 100%;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    font-size: 0.8rem;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.login-success-msg {
    width: 100%;
    background: #ecfdf5;
    border: 1px solid #bbf7d0;
    color: #15803d;
    font-size: 0.8rem;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.login-modules-list {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--border-color);
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.login-module-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.78rem;
    color: var(--text-secondary);
    background: #f8fafc;
    border: 1px solid var(--border-color);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    text-align: left;
}

.login-module-item svg {
    color: var(--brand-orange);
    flex-shrink: 0;
}

.login-back-link {
    margin-top: 18px;
    font-size: 0.78rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.login-back-link:hover {
    color: var(--text-primary);
}

/* HUB NAV STRIP IN TOP APP BAR */
.hub-nav-strip {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-right: 12px;
}

.hub-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.76rem;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid transparent;
}

.hub-nav-link.driving-link {
    color: #0369a1;
    background: #f0f9ff;
    border-color: #bae6fd;
}
.hub-nav-link.driving-link:hover {
    background: #e0f2fe;
    color: #0284c7;
    transform: translateY(-1px);
}

.hub-nav-link.shipping-link {
    color: #c2410c;
    background: #fff7ed;
    border-color: #fed7aa;
}
.hub-nav-link.shipping-link:hover {
    background: #ffedd5;
    color: #9a3412;
    transform: translateY(-1px);
}

.hub-nav-link.tutoring-link {
    color: #7c3aed;
    background: #f5f3ff;
    border-color: #ddd6fe;
}
.hub-nav-link.tutoring-link:hover {
    background: #ede9fe;
    color: #6d28d9;
    transform: translateY(-1px);
}

.hub-nav-link.mb-link {
    color: #047857;
    background: #ecfdf5;
    border-color: #a7f3d0;
}
.hub-nav-link.mb-link:hover {
    background: #d1fae5;
    color: #065f46;
    transform: translateY(-1px);
}

.hub-nav-link.print-link {
    color: #4338ca;
    background: #eef2ff;
    border-color: #c7d2fe;
}
.hub-nav-link.print-link:hover {
    background: #e0e7ff;
    color: #3730a3;
    transform: translateY(-1px);
}

.hub-nav-link.wallet-link {
    color: #b45309;
    background: #fffbeb;
    border-color: #fde68a;
}
.hub-nav-link.wallet-link:hover {
    background: #fef3c7;
    color: #92400e;
    transform: translateY(-1px);
}

/* CLICKABLE DATA ROWS */
.data-row.row-clickable {
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
}
.data-row.row-clickable:hover {
    background: #f1f5f9;
    border-color: var(--border-color);
    transform: translateX(2px);
}

/* CARD FOOTER PILLS */
.card-footer-pills {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: nowrap;
    width: 100%;
    overflow: hidden;
}

.card-pill-btn {
    display: block;
    flex: 1 1 0;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    white-space: nowrap;
    padding: 4px 4px;
    border-radius: 5px;
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1.3;
    text-decoration: none;
    color: #4338ca;
    background: #eef2ff;
    border: 1px solid #c7d2fe;
    transition: var(--transition);
}
.card-pill-btn:hover {
    background: #e0e7ff;
    color: #312e81;
}

.card-pill-btn.driving-pill {
    color: #0369a1;
    background: #f0f9ff;
    border-color: #bae6fd;
}
.card-pill-btn.driving-pill:hover {
    background: #e0f2fe;
    color: #0284c7;
}

.card-pill-btn.print-pill {
    color: #4338ca;
    background: #eef2ff;
    border-color: #c7d2fe;
}
.card-pill-btn.print-pill:hover {
    background: #e0e7ff;
    color: #312e81;
}

.card-pill-btn.mb-pill {
    color: #047857;
    background: #ecfdf5;
    border-color: #a7f3d0;
}
.card-pill-btn.mb-pill:hover {
    background: #d1fae5;
    color: #065f46;
}

.card-pill-btn.stat-pill {
    color: #0f766e;
    background: #f0fdfa;
    border-color: #99f6e4;
}
.card-pill-btn.stat-pill:hover {
    background: #ccfbf1;
    color: #115e59;
}

.card-pill-btn.wallet-pill {
    color: #b45309;
    background: #fffbeb;
    border-color: #fde68a;
}
.card-pill-btn.wallet-pill:hover {
    background: #fef3c7;
    color: #92400e;
}

.card-pill-btn.has-alert {
    color: #b91c1c;
    background: #fef2f2;
    border-color: #fca5a5;
}
.card-pill-btn.has-alert:hover {
    background: #fee2e2;
    color: #991b1b;
}

.card-pill-btn .pill-badge {
    display: inline-block;
    padding: 0 5px;
    font-size: 0.65rem;
    border-radius: 8px;
    font-weight: 800;
    margin-left: 3px;
}

/* WALLET CARD TABS */
.card-tab-strip {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0 14px 6px 14px;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}

.card-tab-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: #f8fafc;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 3px 6px;
    border-radius: var(--radius-sm);
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.card-tab-btn:hover {
    background: #f1f5f9;
    color: var(--text-primary);
}

.card-tab-btn.active {
    background: #fffbeb;
    border-color: #f59e0b;
    color: #92400e;
}

.card-tab-btn .tab-badge {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0 5px;
    border-radius: 8px;
    background: #e2e8f0;
    color: inherit;
}

.card-tab-btn.active .tab-badge {
    background: #fde68a;
}

.card-tab-btn.tab-alert .tab-badge {
    background: #fee2e2;
    color: #b91c1c;
}

/* Stock Badges */
.badge-stock-in {
    background: #dcfce7;
    color: #15803d;
    border: 1px solid #bbf7d0;
}
.badge-stock-low {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}
.badge-stock-out {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.badge-tag.txn-add {
    background: #dcfce7;
    color: #15803d;
    border: 1px solid #bbf7d0;
}
.badge-tag.txn-use {
    background: #e0f2fe;
    color: #0369a1;
    border: 1px solid #bae6fd;
}

.wallet-tab-panel {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}

/* STAT CARD SPECIFICS */
.card-pill-btn.stat-pill {
    color: #0f766e;
    background: #f0fdfa;
    border-color: #99f6e4;
}
.card-pill-btn.stat-pill:hover {
    background: #ccfbf1;
    color: #115e59;
}

.hub-nav-link.stat-link {
    color: #0f766e;
    background: #f0fdfa;
    border-color: #99f6e4;
}
.hub-nav-link.stat-link:hover {
    background: #ccfbf1;
    color: #115e59;
    transform: translateY(-1px);
}

.card-tab-btn.stat-tab.active {
    background: #f0fdfa;
    border-color: #14b8a6;
    color: #0f766e;
}
.card-tab-btn.stat-tab.active .tab-badge {
    background: #99f6e4;
    color: #0f766e;
}

.stat-tab-panel {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}

.guide-box {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.guide-code {
    background: #0f172a;
    color: #38bdf8;
    padding: 8px 10px;
    border-radius: 6px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.76rem;
    line-height: 1.45;
    overflow-x: auto;
    user-select: all;
    border: 1px solid #1e293b;
}

.guide-code span.cmnt { color: #64748b; }
.guide-code span.kwrd { color: #f472b6; }
.guide-code span.str  { color: #4ade80; }

/* DRIVING TABS & ENHANCED METRIC PILLS */
.card-tab-btn.driving-tab.active {
    background: #f0f9ff;
    border-color: #0284c7;
    color: #0369a1;
}
.card-tab-btn.driving-tab.active .tab-badge {
    background: #bae6fd;
    color: #0369a1;
}

.driving-tab-panel,
.wallet-tab-panel,
.stat-tab-panel,
.mb-tab-panel,
.auth-tab-panel {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}

.metric-pill.active-pill {
    border-color: #0284c7;
    background: #f0f9ff;
    box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.15);
}

.metric-sub-val {
    order: 3;
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1.1;
    margin-top: 2px;
    text-align: right;
    width: 100%;
}
.metric-sub-val.green { color: #15803d; }
.metric-sub-val.blue  { color: #0369a1; }
.metric-sub-val.amber { color: #b45309; }
.quick-status-select {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #1e293b;
    outline: none;
    cursor: pointer;
    transition: all 0.2s;
}
.quick-status-select:hover {
    border-color: #94a3b8;
    background: #f8fafc;
}
.quick-status-select:focus {
    border-color: #0284c7;
    box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.15);
}

/* TAB ARROW INDICATOR HIDDEN */
.tab-arrow {
    display: none !important;
}

.card-tab-btn.wallet-tab.active {
    background: #fffbeb;
    border-color: #f59e0b;
    color: #92400e;
}
.card-tab-btn.wallet-tab.active .tab-badge {
    background: #fde68a;
    color: #92400e;
}

/* DRIVING & AUTH PILLS 3-LINE CLEAN DISPLAY */
.metric-pill.pill-driving,
.metric-pill.pill-auth {
    padding: 4px 7px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 1px;
}

.metric-pill.pill-driving .pill-title-top,
.metric-pill.pill-auth .pill-title-top {
    order: 1;
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--text-secondary);
    line-height: 1.1;
    display: block;
    text-align: left;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.metric-pill.pill-driving .metric-val,
.metric-pill.pill-auth .metric-val {
    order: 2;
    font-size: 0.76rem;
    font-weight: 700;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
    text-align: right;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.metric-pill.pill-driving .pill-paid-text,
.metric-pill.pill-auth .pill-paid-text {
    order: 3;
    font-size: 0.62rem;
    font-weight: 700;
    color: #15803d;
    line-height: 1.1;
    text-align: right;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ========================================================================== */
/* ADAPTIVE RESPONSIVE LAYOUT (TABLET VERTICAL & MOBILE)                     */
/* Wide windows: unchanged 3x2 grid fit-to-window layout                      */
/* Tablet portrait & Mobile: vertical stacked panels, full-page scrolling    */
/* ========================================================================== */

@media (max-width: 1024px), (orientation: portrait) and (max-width: 1200px) {
    /* Allow full-page vertical scrolling - no fit-to-window height constraint */
    html, body {
        width: 100%;
        height: auto;
        min-height: 100%;
        max-width: 100%;
        max-height: none;
        overflow-x: hidden;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    .dashboard-app {
        width: 100%;
        height: auto;
        min-height: 100vh;
        max-height: none;
        overflow: visible;
        display: flex;
        flex-direction: column;
    }

    /* Top App Bar Adaptation */
    .top-bar {
        height: auto;
        min-height: 52px;
        padding: 8px 14px;
        flex-wrap: wrap;
        gap: 8px;
        justify-content: space-between;
    }

    .top-bar-left {
        flex-wrap: wrap;
        gap: 8px;
    }

    .brand-badge {
        font-size: 1.05rem;
    }

    .top-bar-center {
        order: 3;
        width: 100%;
        justify-content: flex-start;
        padding-top: 2px;
    }

    .top-bar-right {
        flex-wrap: wrap;
        gap: 6px;
        margin-left: auto;
        justify-content: flex-end;
    }

    /* Stack Panels Below Each Other */
    .grid-container {
        display: grid;
        grid-template-columns: 1fr !important;
        grid-template-rows: auto !important;
        height: auto !important;
        min-height: auto !important;
        max-height: none !important;
        overflow: visible !important;
        gap: 16px;
        padding: 12px 14px 32px 14px;
    }

    /* Panel Cards */
    .dash-card {
        height: auto !important;
        min-height: auto !important;
        max-height: none !important;
        overflow: hidden;
        border-radius: var(--radius-lg);
        box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
    }

    /* Content Area Scrollable list within each card */
    .dash-card .card-content {
        max-height: 340px;
        min-height: 160px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Reserved card is compact when stacked */
    .card-reserved .card-content {
        min-height: 110px !important;
        max-height: 140px !important;
    }

    .card-footer {
        flex-wrap: nowrap;
        gap: 6px;
    }

    .card-footer-pills {
        flex-wrap: nowrap;
        gap: 4px;
    }
}

/* Small Screens / Mobile Phones Specific Optimizations */
@media (max-width: 580px) {
    .metrics-ribbon.grid-4x2 {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .metrics-ribbon.grid-3x2 {
        grid-template-columns: repeat(3, 1fr) !important;
    }

    .metric-pill {
        padding: 4px 6px;
    }

    .card-header {
        flex-wrap: wrap;
        gap: 6px;
    }

    .card-header-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .card-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .card-footer-pills {
        width: 100%;
        justify-content: flex-start;
    }
}



/* Amount breakdown: subtotal + tax + deposit = total */
.metric-pill .metric-breakdown,
.metric-pill.pill-driving .pill-paid-text.metric-breakdown {
    display: block;
    margin-top: 2px;
    font-size: 0.74rem;
    font-weight: 700;
    line-height: 1.25;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.metric-pill .metric-breakdown .bd-eq-line {
    display: inline;
    white-space: nowrap;
}
.metric-breakdown .bd-net,
.metric-breakdown .bd-tax,
.metric-breakdown .bd-dep,
.metric-breakdown .bd-wallet-add,
.metric-breakdown .bd-wallet-use,
.metric-breakdown .bd-total {
    font-size: 0.74rem;
    font-weight: 700;
}
.metric-breakdown .bd-total, .metric-breakdown-row .bd-total, .section-subhead .bd-total { color: #0f172a; font-weight: 700; }
.metric-breakdown .bd-tax, .metric-breakdown-row .bd-tax, .section-subhead .bd-tax { color: #b45309; font-weight: 700; }
.metric-breakdown .bd-dep, .metric-breakdown-row .bd-dep, .section-subhead .bd-dep { color: #7c3aed; font-weight: 700; }
.metric-breakdown .bd-net, .metric-breakdown-row .bd-net, .section-subhead .bd-net { color: #000000; font-weight: 700; }
.metric-breakdown .bd-wallet-add, .section-subhead .bd-wallet-add { color: #14532d; font-weight: 700; }
.metric-breakdown .bd-wallet-use, .section-subhead .bd-wallet-use { color: #991b1b; font-weight: 700; }
.metric-breakdown .bd-total.bd-wallet-pos, .section-subhead .bd-total.bd-wallet-pos { color: #14532d; font-weight: 700; }
.metric-breakdown .bd-total.bd-wallet-neg, .section-subhead .bd-total.bd-wallet-neg { color: #991b1b; font-weight: 700; }
.metric-breakdown-row { font-size: 0.74rem; color: #64748b; }

