/* ==========================================================================
   DASHER TRACKER — MODERN CRIMSON & OBSIDIAN BENTO THEME (v3.0.0)
   ========================================================================== */

:root {
    --bg-obsidian: #080c14;
    --bg-surface: #0f172a;
    --glass-card: rgba(15, 23, 42, 0.72);
    --glass-card-hover: rgba(22, 32, 56, 0.88);
    --glass-border: rgba(255, 255, 255, 0.07);
    --glass-border-hover: rgba(255, 48, 8, 0.35);
    
    --crimson-primary: #ff3008;
    --crimson-glow: rgba(255, 48, 8, 0.35);
    --crimson-gradient: linear-gradient(135deg, #ff3008 0%, #ff6542 100%);
    
    --emerald-success: #10b981;
    --emerald-glow: rgba(16, 185, 129, 0.25);
    --emerald-gradient: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    
    --amber-warning: #f59e0b;
    --amber-glow: rgba(245, 158, 11, 0.25);
    
    --cyan-accent: #38bdf8;
    --purple-accent: #a855f7;
    
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
    
    --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Outfit', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-obsidian);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* Ambient Radial Mesh Background */
.background-mesh {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background: 
        radial-gradient(circle at 10% 15%, rgba(255, 48, 8, 0.12), transparent 30%),
        radial-gradient(circle at 85% 20%, rgba(56, 189, 248, 0.08), transparent 35%),
        radial-gradient(circle at 50% 85%, rgba(16, 185, 129, 0.07), transparent 40%),
        radial-gradient(circle at 90% 75%, rgba(168, 85, 247, 0.06), transparent 30%);
    filter: blur(80px);
    pointer-events: none;
}

.dashboard-container {
    max-width: 1360px;
    margin: 0 auto;
    padding: 2.2rem 1.8rem 4rem;
}

/* ==========================================================================
   HEADER & COMMAND BAR
   ========================================================================== */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--glass-border);
    animation: fadeInDown 0.6s ease-out;
}

.header-branding {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.brand-badge-row {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.brand-logo-icon {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
    background: var(--crimson-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    box-shadow: 0 0 20px var(--crimson-glow);
}

.dashboard-header h1 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header-status-strip {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.live-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--emerald-success);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.pulse-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--emerald-success);
    box-shadow: 0 0 8px var(--emerald-success);
    animation: pulseGlow 2s infinite ease-in-out;
}

.telemetry-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: var(--cyan-accent);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    font-feature-settings: "tnum" 1;
    transition: all 0.25s ease;
}

.telemetry-pill:hover {
    background: rgba(56, 189, 248, 0.2);
    border-color: var(--cyan-accent);
}

.telemetry-icon {
    font-size: 0.85rem;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.refresh-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    background: rgba(255, 48, 8, 0.12);
    border: 1px solid rgba(255, 48, 8, 0.4);
    color: #ff5e3a;
    padding: 0.65rem 1.25rem;
    border-radius: var(--radius-md);
    font-family: var(--font-heading);
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 14px rgba(255, 48, 8, 0.12);
}

.refresh-btn:hover {
    background: rgba(255, 48, 8, 0.25);
    border-color: var(--crimson-primary);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px var(--crimson-glow);
}

.refresh-btn.loading {
    opacity: 0.7;
    cursor: wait;
    pointer-events: none;
}

.refresh-btn.loading .btn-icon {
    animation: spin 1s linear infinite;
}

/* ==========================================================================
   BENTO GRID — EXECUTIVE KPI CARDS
   ========================================================================== */
.financial-bento-grid,
.bento-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 1.35rem;
    margin-bottom: 2rem;
}

.bento-card {
    background: var(--glass-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* ==========================================================================
   TIPPING & ORDER INTELLIGENCE SECTION
   ========================================================================== */
.tipping-intelligence-panel {
    border-color: rgba(16, 185, 129, 0.2);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.35), 0 0 25px rgba(16, 185, 129, 0.05);
}

.tipping-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.tipping-card {
    background: rgba(10, 15, 26, 0.65);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 1.3rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.25s ease;
}

.tipping-card:hover {
    background: rgba(20, 28, 48, 0.8);
    transform: translateY(-2px);
}

.tipping-card.highlight-tipped {
    border-color: rgba(16, 185, 129, 0.3);
    background: linear-gradient(145deg, rgba(16, 185, 129, 0.08) 0%, rgba(10, 15, 26, 0.7) 100%);
}

.tipping-card.highlight-notipped {
    border-color: rgba(244, 63, 94, 0.3);
    background: linear-gradient(145deg, rgba(244, 63, 94, 0.08) 0%, rgba(10, 15, 26, 0.7) 100%);
}

.card-icon-badge.emerald {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.35);
    color: var(--emerald-success);
}

.card-icon-badge.rose {
    background: rgba(244, 63, 94, 0.15);
    border-color: rgba(244, 63, 94, 0.35);
    color: #fb7185;
}

.card-value-display.emerald {
    color: #34d399;
}

.card-value-display.rose {
    color: #fb7185;
}

/* Segmented Tipping Ratio Bar */
.tipping-ratio-container {
    background: rgba(10, 15, 26, 0.75);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 1.1rem 1.3rem;
}

.ratio-labels-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    font-size: 0.88rem;
    color: var(--text-muted);
}

.ratio-labels-row strong {
    color: #fff;
    font-family: var(--font-heading);
}

.ratio-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 0.4rem;
}

.ratio-dot.emerald {
    background: var(--emerald-success);
    box-shadow: 0 0 8px var(--emerald-success);
}

.ratio-dot.rose {
    background: #f43f5e;
    box-shadow: 0 0 8px #f43f5e;
}

.ratio-track-bar {
    height: 14px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 999px;
    overflow: hidden;
    display: flex;
    padding: 2px;
    gap: 2px;
}

.ratio-segment {
    height: 100%;
    border-radius: 999px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.ratio-segment.tipped {
    background: var(--emerald-gradient);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

.ratio-segment.notipped {
    background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
    box-shadow: 0 0 10px rgba(244, 63, 94, 0.4);
}

/* ==========================================================================
   TAX DEDUCTIONS & EXPENSE INTELLIGENCE SECTION
   ========================================================================== */
.deductions-intelligence-panel {
    border-color: rgba(245, 158, 11, 0.25);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.35), 0 0 25px rgba(245, 158, 11, 0.06);
}

.panel-pill-badge.amber {
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.35);
    color: #fbbf24;
}

.deductions-cards-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.deduction-card {
    background: rgba(10, 15, 26, 0.65);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 1.3rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.25s ease;
}

.deduction-card:hover {
    background: rgba(20, 28, 48, 0.8);
    transform: translateY(-2px);
}

.deduction-card.highlight-amber {
    border-color: rgba(245, 158, 11, 0.35);
    background: linear-gradient(145deg, rgba(245, 158, 11, 0.08) 0%, rgba(10, 15, 26, 0.7) 100%);
}

.deduction-card.highlight-emerald {
    border-color: rgba(16, 185, 129, 0.35);
    background: linear-gradient(145deg, rgba(16, 185, 129, 0.08) 0%, rgba(10, 15, 26, 0.7) 100%);
}

.card-icon-badge.amber {
    background: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.35);
    color: #fbbf24;
}

.card-icon-badge.cyan {
    background: rgba(56, 189, 248, 0.15);
    border-color: rgba(56, 189, 248, 0.35);
    color: var(--cyan-accent);
}

.card-icon-badge.purple {
    background: rgba(168, 85, 247, 0.15);
    border-color: rgba(168, 85, 247, 0.35);
    color: var(--purple-accent);
}

.card-value-display.amber {
    color: #fbbf24;
}

.card-value-display.cyan {
    color: var(--cyan-accent);
}

.card-value-display.purple {
    color: #c084fc;
}

/* Comparison Bar */
.deductions-comparison-container {
    background: rgba(10, 15, 26, 0.75);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 1.2rem 1.4rem;
}

.comparison-labels-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    font-size: 0.88rem;
    color: var(--text-muted);
}

.comparison-labels-row strong {
    color: #fff;
    font-family: var(--font-heading);
}

.comparison-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 0.4rem;
}

.comparison-dot.amber {
    background: #f59e0b;
    box-shadow: 0 0 8px #f59e0b;
}

.comparison-dot.rose {
    background: #f43f5e;
    box-shadow: 0 0 8px #f43f5e;
}

.comparison-track-bar {
    height: 14px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 999px;
    overflow: hidden;
    display: flex;
    padding: 2px;
    gap: 2px;
    margin-bottom: 0.8rem;
}

.comparison-segment {
    height: 100%;
    border-radius: 999px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.comparison-segment.deduction {
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.4);
}

.comparison-segment.gas {
    background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
    box-shadow: 0 0 10px rgba(244, 63, 94, 0.4);
}

.comparison-summary-note {
    font-size: 0.84rem;
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-sm);
    padding: 0.45rem 0.75rem;
}

.comparison-summary-note strong {
    color: #fbbf24;
}

.deduction-val {
    color: #fbbf24;
    font-weight: 600;
}

/* ==========================================================================
   ITEMIZED GEAR, SUPPLIES & VEHICLE UPKEEP LEDGER
   ========================================================================== */
.ledger-panel {
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: var(--radius-lg);
    padding: 1.8rem;
    margin-bottom: 2.2rem;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.35), 0 0 25px rgba(56, 189, 248, 0.06);
    position: relative;
    overflow: hidden;
}

.panel-pill-badge.blue {
    background: rgba(56, 189, 248, 0.12);
    border-color: rgba(56, 189, 248, 0.35);
    color: #38bdf8;
}

.ledger-header-meta {
    display: flex;
    align-items: center;
}

.ledger-tax-tag {
    font-size: 0.8rem;
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    padding: 0.35rem 0.85rem;
    letter-spacing: 0.02em;
}

.ledger-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.ledger-card {
    background: rgba(10, 15, 26, 0.65);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 1.4rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.25s ease;
}

.ledger-card:hover {
    background: rgba(20, 28, 48, 0.8);
    border-color: rgba(56, 189, 248, 0.3);
    transform: translateY(-2px);
}

.ledger-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.2rem;
    gap: 1rem;
}

.ledger-card-title-group {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.ledger-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
}

.ledger-card h3 {
    font-family: var(--font-heading);
    font-size: 1.12rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.2rem 0;
}

.ledger-card-sub {
    font-size: 0.82rem;
    color: var(--text-dim);
    margin: 0;
}

.ledger-subtotal-badge {
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 700;
    font-family: var(--font-heading);
    white-space: nowrap;
    flex-shrink: 0;
}

.ledger-subtotal-badge.blue {
    background: rgba(56, 189, 248, 0.15);
    border: 1px solid rgba(56, 189, 248, 0.35);
    color: #38bdf8;
}

.ledger-subtotal-badge.amber {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.35);
    color: #fbbf24;
}

.ledger-items-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-bottom: 1.2rem;
    flex: 1;
}

.ledger-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0.95rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    transition: all 0.2s ease;
    gap: 1rem;
}

.ledger-item-row:hover {
    background: rgba(255, 255, 255, 0.045);
    border-color: rgba(255, 255, 255, 0.09);
    transform: translateX(3px);
}

.ledger-item-left {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    min-width: 0;
}

.ledger-item-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.ledger-item-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.ledger-item-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: #f1f5f9;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ledger-item-desc {
    font-size: 0.76rem;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ledger-item-cost {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.ledger-card-footer {
    padding-top: 0.85rem;
    border-top: 1px dashed rgba(255, 255, 255, 0.08);
    font-size: 0.78rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.ledger-empty-state {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 1.4rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: var(--text-muted);
    margin: 0.5rem 0;
}

.ledger-empty-state .empty-icon {
    font-size: 1.8rem;
    opacity: 0.7;
    flex-shrink: 0;
}

.ledger-empty-state .empty-text strong {
    display: block;
    color: #e2e8f0;
    font-size: 0.92rem;
    margin-bottom: 0.2rem;
}

.ledger-empty-state .empty-text p {
    margin: 0;
    font-size: 0.8rem;
    color: var(--text-dim);
}

/* Ledger Grand Summary Strip */
.ledger-summary-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(10, 15, 26, 0.85);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: var(--radius-md);
    padding: 1.4rem 1.8rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(16, 185, 129, 0.05);
    gap: 1.5rem;
}

.summary-stat-box {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
}

.summary-stat-box.highlight {
    flex: 1.4;
}

.summary-stat-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    color: #94a3b8;
}

.summary-stat-value {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.summary-stat-value.amber {
    color: #fbbf24;
}

.summary-stat-value.rose {
    color: #fb7185;
}

.summary-stat-value.emerald {
    color: #34d399;
    font-size: 2.1rem;
    text-shadow: 0 0 20px rgba(52, 211, 153, 0.3);
}

.summary-stat-sub {
    font-size: 0.8rem;
    color: #64748b;
}

.summary-stat-divider {
    width: 1px;
    height: 50px;
    background: rgba(255, 255, 255, 0.08);
}

.bento-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), transparent 70%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.bento-card:hover {
    transform: translateY(-3px);
    border-color: var(--glass-border-hover);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45), 0 0 20px rgba(255, 48, 8, 0.12);
}

/* Hero Net Earnings Card */
.bento-card.hero-kpi {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.85) 0%, rgba(15, 23, 42, 0.95) 100%);
    border-color: rgba(255, 48, 8, 0.25);
    box-shadow: 0 10px 35px rgba(255, 48, 8, 0.12), 0 8px 30px rgba(0, 0, 0, 0.4);
}

.bento-card.hero-kpi::after {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, var(--crimson-glow) 0%, transparent 70%);
    pointer-events: none;
}

.card-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
}

.card-title {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-icon-badge {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-kpi .card-icon-badge {
    background: rgba(255, 48, 8, 0.15);
    border-color: rgba(255, 48, 8, 0.35);
    color: #ff6542;
}

.card-value-display {
    font-family: var(--font-heading);
    font-size: 2.3rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #fff;
    margin-bottom: 0.6rem;
    font-feature-settings: "tnum" 1;
}

.card-value-display.hero-value {
    font-size: 2.7rem;
    background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 60%, #ff8a70 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.card-subtext {
    font-size: 0.86rem;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.profit-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.55rem;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 600;
}

.profit-chip.positive {
    background: rgba(16, 185, 129, 0.15);
    color: var(--emerald-success);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.profit-chip.neutral {
    background: rgba(56, 189, 248, 0.15);
    color: var(--cyan-accent);
    border: 1px solid rgba(56, 189, 248, 0.3);
}

.profit-chip.expense {
    background: rgba(244, 63, 94, 0.15);
    color: #fb7185;
    border: 1px solid rgba(244, 63, 94, 0.3);
}

/* Secondary KPI Strip (Pay, Gas, Cash Tips) */
.secondary-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2rem;
    margin-bottom: 2.2rem;
}

.mini-kpi-card {
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 1.1rem 1.3rem;
    display: flex;
    align-items: center;
    gap: 1.1rem;
    transition: all 0.25s ease;
}

.mini-kpi-card:hover {
    background: rgba(22, 32, 56, 0.75);
    border-color: rgba(255, 255, 255, 0.14);
    transform: translateY(-2px);
}

.mini-icon-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.mini-icon-circle.emerald {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.25);
    color: var(--emerald-success);
}

.mini-icon-circle.amber {
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.25);
    color: var(--amber-warning);
}

.mini-icon-circle.cyan {
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.25);
    color: var(--cyan-accent);
}

.mini-icon-circle.rose {
    background: rgba(244, 63, 94, 0.12);
    border: 1px solid rgba(244, 63, 94, 0.25);
    color: #fb7185;
}

.mini-kpi-info {
    display: flex;
    flex-direction: column;
}

.mini-kpi-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.mini-kpi-value {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    color: #fff;
}

/* ==========================================================================
   GLASS PANELS (Chart, Table, Ratings)
   ========================================================================== */
.glass-panel {
    background: var(--glass-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 1.8rem;
    margin-bottom: 2.2rem;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.35);
    position: relative;
    overflow: hidden;
}

.glass-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent 60%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.panel-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.panel-title-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.panel-title-group h2 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #fff;
}

.panel-pill-badge {
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.76rem;
    color: var(--text-muted);
}

/* Chart Toggles */
.chart-toggle-group {
    display: flex;
    background: rgba(10, 15, 26, 0.75);
    padding: 0.3rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--glass-border);
    gap: 0.25rem;
}

.chart-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 0.45rem 0.95rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.chart-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.chart-btn.active {
    background: var(--crimson-gradient);
    color: #fff;
    box-shadow: 0 4px 14px var(--crimson-glow);
}

.chart-container {
    position: relative;
    height: 380px;
    width: 100%;
}

/* ==========================================================================
   RATINGS & PRESTIGE SHOWCASE (Bento Section)
   ========================================================================== */
.prestige-bento-layout {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2.2rem;
}

/* Status Tier Shield Card */
.tier-status-card {
    background: linear-gradient(145deg, rgba(22, 28, 45, 0.8) 0%, rgba(12, 16, 26, 0.9) 100%);
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: var(--radius-xl);
    padding: 1.8rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(245, 158, 11, 0.08), 0 8px 30px rgba(0, 0, 0, 0.4);
}

.tier-status-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #f59e0b, #fbbf24, #f59e0b);
}

.tier-shield-header {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    margin-bottom: 1.5rem;
}

.shield-badge-icon {
    width: 58px;
    height: 58px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(251, 191, 36, 0.1) 100%);
    border: 1px solid rgba(245, 158, 11, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.85rem;
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.2);
}

.tier-title-wrap h3 {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 800;
    color: #fef08a;
    letter-spacing: -0.01em;
}

.tier-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.prestige-metrics-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.prestige-mini-stat {
    background: rgba(10, 15, 26, 0.6);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 0.9rem;
    text-align: center;
}

.prestige-stat-label {
    font-size: 0.76rem;
    color: var(--text-muted);
    margin-bottom: 0.3rem;
}

.prestige-stat-val {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    color: #fff;
}

.prestige-stat-val.gold {
    color: #fbbf24;
}

.prestige-stat-val.emerald {
    color: #34d399;
}

/* Star Rating Progress Rows */
.star-bars-container {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.star-bar-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.82rem;
}

.star-label {
    width: 60px;
    color: var(--text-muted);
    font-weight: 600;
}

.star-track {
    flex: 1;
    height: 7px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    overflow: hidden;
}

.star-fill {
    height: 100%;
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
    border-radius: 999px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.star-num {
    width: 32px;
    text-align: right;
    color: var(--text-main);
    font-weight: 600;
}

/* Customer Feedback Grid */
.feedback-bento-card {
    background: var(--glass-card);
    backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 1.8rem;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.35);
}

.feedback-bento-card h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    color: #fff;
}

.feedback-chips-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.9rem;
}

.feedback-chip {
    background: rgba(10, 15, 26, 0.65);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.25s ease;
}

.feedback-chip:hover {
    background: rgba(25, 34, 56, 0.8);
    border-color: rgba(255, 48, 8, 0.35);
    transform: translateY(-2px);
}

.feedback-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.feedback-icon {
    font-size: 1.35rem;
}

.feedback-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: #f1f5f9;
}

.feedback-count-badge {
    background: rgba(255, 48, 8, 0.15);
    border: 1px solid rgba(255, 48, 8, 0.35);
    color: #ff6542;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
}

/* ==========================================================================
   MONTHLY DATA TABLE
   ========================================================================== */
.table-responsive {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.9rem;
    white-space: nowrap;
}

thead {
    background: rgba(10, 15, 26, 0.95);
    position: sticky;
    top: 0;
    z-index: 2;
}

th {
    padding: 1rem 1.1rem;
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--glass-border);
}

tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: background 0.2s ease;
}

tbody tr:hover {
    background: rgba(255, 255, 255, 0.035);
}

td {
    padding: 0.95rem 1.1rem;
    color: #cbd5e1;
    font-feature-settings: "tnum" 1;
}

td strong {
    color: #fff;
}

.positive-val {
    color: var(--emerald-success);
    font-weight: 600;
}

.gas-val {
    color: #fb7185;
}

.badge-tag {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 700;
    margin-left: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.badge-best-income {
    background: rgba(16, 185, 129, 0.18);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.35);
}

.badge-best-rate {
    background: rgba(245, 158, 11, 0.18);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.35);
}

tfoot {
    background: rgba(15, 23, 42, 0.95);
    border-top: 2px solid var(--glass-border);
    font-weight: 700;
}

tfoot td {
    padding: 1.1rem;
    color: #fff;
    font-family: var(--font-heading);
    font-size: 0.95rem;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.dashboard-footer {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
    color: var(--text-dim);
    font-size: 0.88rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.version-badge {
    display: inline-block;
    background: rgba(255, 48, 8, 0.12);
    border: 1px solid rgba(255, 48, 8, 0.35);
    color: #ff6542;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.03em;
    box-shadow: 0 0 10px rgba(255, 48, 8, 0.15);
}

/* ==========================================================================
   ANIMATIONS & KEYFRAMES
   ========================================================================== */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulseGlow {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.45;
        transform: scale(0.85);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS (Desktop, Tablet, Mobile)
   ========================================================================== */
@media (max-width: 1100px) {
    .financial-bento-grid,
    .bento-grid {
        grid-template-columns: 1fr;
    }
    .tipping-cards-grid {
        grid-template-columns: 1fr;
    }
    .deductions-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .ledger-cards-grid {
        grid-template-columns: 1fr;
    }
    .ledger-summary-strip {
        flex-direction: column;
        align-items: stretch;
        gap: 1.2rem;
    }
    .summary-stat-divider {
        width: 100%;
        height: 1px;
    }
    .secondary-kpi-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .prestige-bento-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .dashboard-container {
        padding: 1.2rem 0.8rem 3rem;
        overflow-x: hidden;
    }
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.2rem;
    }
    .financial-bento-grid,
    .bento-grid {
        grid-template-columns: 1fr;
    }
    .tipping-cards-grid {
        grid-template-columns: 1fr;
    }
    .deductions-cards-grid {
        grid-template-columns: 1fr;
    }
    .ledger-panel {
        padding: 1.25rem 0.9rem;
    }
    .ledger-item-row {
        padding: 0.65rem 0.75rem;
    }
    .ledger-item-name {
        font-size: 0.82rem;
    }
    .ledger-item-desc {
        font-size: 0.72rem;
    }
    .summary-stat-value.emerald {
        font-size: 1.7rem;
    }
    .summary-stat-value {
        font-size: 1.45rem;
    }
    .ledger-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.6rem;
    }
    .ratio-labels-row,
    .comparison-labels-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.4rem;
        font-size: 0.82rem;
    }
    .card-value-display.hero-value {
        font-size: 2.2rem;
    }
    .card-value-display {
        font-size: 1.85rem;
    }
    .secondary-kpi-grid {
        grid-template-columns: 1fr;
    }
    .glass-panel {
        padding: 1.25rem 0.9rem;
    }
    .tier-status-card {
        padding: 1.25rem 0.9rem;
    }
    .feedback-bento-card {
        padding: 1.25rem 0.9rem;
    }
    .prestige-metrics-row {
        grid-template-columns: 1fr;
        gap: 0.65rem;
    }
    .chart-container {
        height: 290px;
    }
    .chart-toggle-group {
        width: 100%;
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .chart-toggle-group::-webkit-scrollbar {
        display: none;
    }
    .chart-btn {
        white-space: nowrap;
        flex-shrink: 0;
        padding: 0.45rem 0.75rem;
        font-size: 0.8rem;
    }
    .feedback-chips-grid {
        grid-template-columns: 1fr;
    }
    .table-responsive {
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* ==========================================================================
   DASHER TRACKER HQ (v4.0.0) — MULTI-YEAR VAULT, ADMIN GATE & SHIFT MODAL
   ========================================================================== */
.hq-header-tag {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 800;
    padding: 0.15rem 0.55rem;
    border-radius: 6px;
    background: var(--crimson-gradient);
    color: #fff;
    -webkit-text-fill-color: #fff;
    vertical-align: middle;
    margin-left: 0.35rem;
    letter-spacing: 0.04em;
    box-shadow: 0 0 14px var(--crimson-glow);
}

/* Multi-Year Vault Selector Pill Bar */
.vault-year-selector-wrap {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    background: rgba(15, 23, 42, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.35rem 0.5rem 0.35rem 0.85rem;
    border-radius: 999px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.vault-selector-label {
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-muted);
    white-space: nowrap;
}

.vault-year-pills {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.vault-year-btn {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 700;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.vault-year-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

.vault-year-btn.active {
    background: var(--crimson-gradient);
    color: #fff;
    box-shadow: 0 2px 12px var(--crimson-glow);
}

/* Admin Security Lock & Verified Controls */
.admin-lock-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #cbd5e1;
    padding: 0.6rem 1.05rem;
    border-radius: var(--radius-md);
    font-family: var(--font-heading);
    font-size: 0.86rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}

.admin-lock-btn:hover {
    border-color: var(--cyan-accent);
    color: #fff;
    background: rgba(56, 189, 248, 0.12);
}

.admin-unlocked-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.admin-verified-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #34d399;
    padding: 0.42rem 0.75rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
}

.verified-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
}

.admin-signout-mini {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #e2e8f0;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.15rem 0.45rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.admin-signout-mini:hover {
    background: rgba(244, 63, 94, 0.25);
    border-color: #f43f5e;
    color: #fff;
}

.add-data-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--crimson-gradient);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 0.65rem 1.3rem;
    border-radius: var(--radius-md);
    font-family: var(--font-heading);
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 18px var(--crimson-glow);
    transition: all 0.25s ease;
}

.add-data-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 48, 8, 0.5);
}

/* Interactive Month Drill-Down Drawer */
.drilldown-hint-badge {
    font-size: 0.76rem;
    color: var(--cyan-accent);
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.25);
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    font-weight: 600;
}

.month-clickable-row {
    cursor: pointer;
}

.month-clickable-row:hover {
    background: rgba(255, 48, 8, 0.08) !important;
}

.month-expand-chevron {
    display: inline-block;
    width: 18px;
    color: var(--cyan-accent);
    font-size: 0.78rem;
    transition: transform 0.25s ease;
}

.month-clickable-row.expanded .month-expand-chevron {
    transform: rotate(90deg);
    color: #ff6542;
}

.month-drilldown-row {
    background: rgba(6, 10, 18, 0.95) !important;
}

.month-drilldown-cell {
    padding: 1.25rem 1.4rem !important;
    border-bottom: 2px solid rgba(255, 48, 8, 0.3);
}

.drilldown-drawer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 1.25rem;
    white-space: normal;
}

.drilldown-subcard {
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 1rem;
    overflow: hidden;
}

.drilldown-subcard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    padding-bottom: 0.55rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.drilldown-subcard-header h4 {
    font-family: var(--font-heading);
    font-size: 0.92rem;
    font-weight: 700;
    color: #f8fafc;
}

.drilldown-count-pill {
    font-size: 0.74rem;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    background: rgba(56, 189, 248, 0.15);
    color: var(--cyan-accent);
    font-weight: 700;
}

.drilldown-mini-table-wrap {
    overflow-x: auto;
    max-height: 290px;
    overflow-y: auto;
}

.drilldown-mini-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.78rem;
    white-space: nowrap;
}

.drilldown-mini-table th {
    padding: 0.5rem 0.65rem;
    font-size: 0.7rem;
    background: rgba(8, 12, 20, 0.95);
    color: #94a3b8;
}

.drilldown-mini-table td {
    padding: 0.5rem 0.65rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 0.78rem;
}

.misc-pill-badge {
    display: inline-block;
    padding: 0.12rem 0.45rem;
    border-radius: 4px;
    background: rgba(245, 158, 11, 0.18);
    border: 1px solid rgba(245, 158, 11, 0.35);
    color: #fbbf24;
    font-size: 0.7rem;
    font-weight: 700;
    margin-right: 0.35rem;
}

/* HQ Modal Overlays */
.hq-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(4, 7, 13, 0.82);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.2rem;
    overflow-y: auto;
}

.hq-modal-card {
    background: linear-gradient(155deg, rgba(18, 26, 44, 0.98) 0%, rgba(9, 13, 22, 0.99) 100%);
    border: 1px solid rgba(255, 48, 8, 0.35);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 840px;
    max-height: 92vh;
    overflow-y: auto;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.75), 0 0 35px rgba(255, 48, 8, 0.15);
    padding: 1.6rem 1.8rem;
    color: var(--text-main);
}

.admin-auth-card {
    max-width: 480px;
}

.hq-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding-bottom: 1.1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 1.2rem;
}

.hq-modal-title-group {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.hq-modal-icon {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
    background: rgba(255, 48, 8, 0.15);
    border: 1px solid rgba(255, 48, 8, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.hq-modal-title-group h3 {
    font-family: var(--font-heading);
    font-size: 1.28rem;
    font-weight: 800;
    color: #fff;
}

.hq-modal-sub {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.hq-modal-header-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.admin-modal-badge {
    font-size: 0.74rem;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.14);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #34d399;
    font-weight: 700;
}

.hq-modal-close {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #cbd5e1;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.hq-modal-close:hover {
    background: rgba(244, 63, 94, 0.25);
    color: #fff;
    border-color: #f43f5e;
}

/* Google Auth Shield Banner */
.google-auth-shield-banner {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    background: rgba(56, 189, 248, 0.08);
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: var(--radius-md);
    padding: 1rem;
    margin-bottom: 1.2rem;
    font-size: 0.84rem;
}

.google-auth-shield-banner .shield-icon {
    font-size: 1.5rem;
}

.google-auth-shield-banner strong {
    display: block;
    color: #fff;
    margin-bottom: 0.2rem;
}

.google-auth-shield-banner code {
    color: var(--cyan-accent);
    font-family: var(--font-mono);
}

.google-signin-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    padding: 0.8rem 1.2rem;
    border-radius: var(--radius-md);
    background: #ffffff;
    color: #0f172a;
    border: none;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
    transition: all 0.2s ease;
    margin-top: 0.75rem;
}

.google-signin-btn:hover {
    transform: translateY(-1px);
    background: #f1f5f9;
}

.hq-error-banner {
    background: rgba(244, 63, 94, 0.15);
    border: 1px solid rgba(244, 63, 94, 0.4);
    color: #fda4af;
    padding: 0.65rem 0.9rem;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    margin-bottom: 0.75rem;
}

/* Modal 4-Tab Bar */
.hq-modal-tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.45rem;
    background: rgba(8, 12, 20, 0.85);
    padding: 0.35rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 1.35rem;
}

.hq-tab-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 0.6rem 0.75rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-heading);
    font-size: 0.84rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.hq-tab-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.hq-tab-btn.active {
    background: var(--crimson-gradient);
    color: #fff;
    box-shadow: 0 4px 14px var(--crimson-glow);
}

/* Form Grids & Inputs */
.hq-form-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

.hq-form-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

.hq-form-grid-5 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.hq-field-group {
    display: flex;
    flex-direction: column;
    gap: 0.38rem;
}

.hq-field-group label {
    font-size: 0.78rem;
    font-weight: 600;
    color: #cbd5e1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.auto-calc-hint {
    color: var(--cyan-accent);
    font-size: 0.72rem;
    font-weight: 700;
}

.hq-input,
.hq-select {
    width: 100%;
    padding: 0.65rem 0.85rem;
    background: rgba(8, 12, 20, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius-sm);
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.hq-input:focus,
.hq-select:focus {
    outline: none;
    border-color: var(--crimson-primary);
    box-shadow: 0 0 0 3px rgba(255, 48, 8, 0.2);
}

/* Misc / Extra Pay Breakdown Card */
.misc-pay-subcard {
    background: linear-gradient(145deg, rgba(245, 158, 11, 0.08) 0%, rgba(10, 15, 26, 0.85) 100%);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: var(--radius-md);
    padding: 1.1rem 1.2rem;
    margin-bottom: 1.15rem;
}

.misc-pay-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.9rem;
    flex-wrap: wrap;
}

.misc-pay-title-wrap {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.misc-badge-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(245, 158, 11, 0.2);
    border: 1px solid rgba(245, 158, 11, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.misc-pay-title-wrap h4 {
    font-family: var(--font-heading);
    font-size: 0.92rem;
    font-weight: 700;
    color: #fef08a;
}

.misc-pay-title-wrap p {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.add-misc-row-btn {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: #fbbf24;
    padding: 0.38rem 0.75rem;
    border-radius: 8px;
    font-size: 0.76rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.add-misc-row-btn:hover {
    background: rgba(245, 158, 11, 0.28);
    color: #fff;
}

.misc-pay-row {
    display: grid;
    grid-template-columns: 1.55fr 0.85fr 0.65fr 1.35fr auto;
    gap: 0.75rem;
    align-items: end;
    margin-bottom: 0.65rem;
}

.misc-pay-row:last-child {
    margin-bottom: 0;
}

.remove-misc-row-btn {
    background: rgba(244, 63, 94, 0.15);
    border: 1px solid rgba(244, 63, 94, 0.35);
    color: #fb7185;
    height: 38px;
    width: 38px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
}

/* Live Formula Preview Bar */
.hq-live-preview-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.85rem;
    background: rgba(8, 12, 20, 0.92);
    border: 1px solid rgba(16, 185, 129, 0.28);
    border-radius: var(--radius-md);
    padding: 0.95rem 1.1rem;
    margin-bottom: 1.2rem;
}

.preview-metric {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.preview-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 600;
}

.preview-val {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 800;
}

.preview-val.emerald { color: #34d399; }
.preview-val.cyan { color: #38bdf8; }
.preview-val.amber { color: #fbbf24; }
.preview-val.purple { color: #c084fc; }

/* Station Quick Chips */
.station-quick-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.3rem;
}

.station-chip {
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: var(--cyan-accent);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    cursor: pointer;
}

.station-chip:hover {
    background: rgba(56, 189, 248, 0.25);
    color: #fff;
}

.hq-modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    flex-wrap: wrap;
}

.vault-target-indicator {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
}

.hq-submit-btn {
    background: var(--crimson-gradient);
    border: none;
    color: #fff;
    padding: 0.75rem 1.6rem;
    border-radius: var(--radius-md);
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 20px var(--crimson-glow);
    transition: all 0.2s;
}

.hq-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 26px rgba(255, 48, 8, 0.5);
}

.hq-submit-btn:disabled {
    opacity: 0.6;
    cursor: wait;
}

/* Bulk Gas & Expense Multi-Row Builder + Clean Clear Buttons (v4.2.0) */
.bulk-entry-subcard {
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.92) 0%, rgba(8, 12, 20, 0.96) 100%);
    border: 1px solid rgba(56, 189, 248, 0.28);
    border-radius: var(--radius-md);
    padding: 1.15rem 1.25rem;
    margin-bottom: 1.15rem;
}

.expense-bulk-subcard {
    border-color: rgba(16, 185, 129, 0.3);
}

.bulk-header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.bulk-btn-cluster {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.bulk-five-btn {
    background: rgba(56, 189, 248, 0.14);
    border-color: rgba(56, 189, 248, 0.4);
    color: #38bdf8;
}

.bulk-five-btn:hover {
    background: rgba(56, 189, 248, 0.28);
    color: #fff;
}

.bulk-rows-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 360px;
    overflow-y: auto;
    padding-right: 0.25rem;
}

.bulk-entry-row {
    display: grid;
    grid-template-columns: 1fr 1.35fr 0.85fr 0.85fr 0.95fr auto;
    gap: 0.65rem;
    align-items: end;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-sm);
    padding: 0.65rem 0.75rem;
}

.expense-entry-row {
    grid-template-columns: 0.95fr 1.15fr 1.35fr 1.45fr 0.85fr auto;
}

.bulk-summary-bar3 {
    grid-template-columns: repeat(3, 1fr);
}

.hq-footer-btn-group {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.hq-clear-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #cbd5e1;
    padding: 0.72rem 1.15rem;
    border-radius: var(--radius-md);
    font-family: var(--font-heading);
    font-size: 0.86rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.hq-clear-btn:hover {
    background: rgba(244, 63, 94, 0.16);
    border-color: rgba(244, 63, 94, 0.45);
    color: #fff;
}

/* Toast Notification */
.hq-toast-container {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.hq-toast {
    background: rgba(15, 23, 42, 0.96);
    border: 1px solid rgba(16, 185, 129, 0.45);
    color: #f8fafc;
    padding: 0.85rem 1.25rem;
    border-radius: var(--radius-md);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
    font-size: 0.88rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    animation: fadeInDown 0.25s ease-out;
}

.hq-toast.error {
    border-color: rgba(244, 63, 94, 0.55);
    color: #fecdd3;
}

@media (max-width: 900px) {
    .drilldown-drawer-grid {
        grid-template-columns: 1fr;
    }
    .hq-form-grid-3,
    .hq-form-grid-2,
    .hq-form-grid-5,
    .misc-pay-row,
    .bulk-entry-row,
    .expense-entry-row,
    .hq-live-preview-bar,
    .bulk-summary-bar3 {
        grid-template-columns: 1fr;
    }
    .hq-modal-tabs {
        grid-template-columns: repeat(2, 1fr);
    }
    .vault-year-selector-wrap {
        width: 100%;
        overflow-x: auto;
    }
}

/* ==========================================================================
   CLEAN 4-TAB WORKSPACE NAVIGATION DOCK & OVERVIEW SPLIT (v5.0.0)
   ========================================================================== */
.workspace-nav-dock {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: var(--radius-lg);
    padding: 0.45rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.workspace-tab-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.8rem 1rem;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    background: transparent;
    color: var(--text-secondary);
    font-family: var(--font-heading);
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.workspace-tab-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.workspace-tab-btn.active {
    background: linear-gradient(135deg, rgba(255, 48, 8, 0.22), rgba(255, 94, 58, 0.14));
    border-color: rgba(255, 48, 8, 0.55);
    color: #fff;
    box-shadow: 0 4px 18px rgba(255, 48, 8, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.ws-tab-icon {
    font-size: 1.05rem;
}

.workspace-view-pane {
    animation: fadeInDown 0.22s ease-out;
}

.financial-bento-grid.four-col-bento {
    grid-template-columns: 1.25fr 1fr 1fr 1fr;
    gap: 1.15rem;
    margin-bottom: 1.25rem;
}

.overview-lower-split {
    display: grid;
    grid-template-columns: 1.75fr 1fr;
    gap: 1.25rem;
    align-items: stretch;
    margin-bottom: 1.5rem;
}

.recent-shifts-snapshot-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.recent-shifts-mini-list {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    flex: 1;
    margin-bottom: 1rem;
}

.recent-shift-mini-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.65rem 0.85rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.recent-shift-mini-row:hover {
    background: rgba(255, 255, 255, 0.055);
    border-color: rgba(56, 189, 248, 0.3);
}

.rs-mini-left {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.rs-mini-date {
    font-size: 0.82rem;
    font-weight: 700;
    color: #f8fafc;
}

.rs-mini-meta {
    font-size: 0.74rem;
    color: var(--text-secondary);
}

.rs-mini-right {
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.rs-mini-pay {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--emerald-success);
}

.rs-mini-rate {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: #38bdf8;
}

.view-full-vault-btn {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.35);
    color: #38bdf8;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.view-full-vault-btn:hover {
    background: rgba(56, 189, 248, 0.24);
    border-color: #38bdf8;
    color: #fff;
}

@media (max-width: 1100px) {
    .financial-bento-grid.four-col-bento {
        grid-template-columns: repeat(2, 1fr);
    }
    .overview-lower-split {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .workspace-nav-dock {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.45rem;
    }
    .workspace-tab-btn {
        padding: 0.65rem 0.5rem;
        font-size: 0.8rem;
    }
    .financial-bento-grid.four-col-bento {
        grid-template-columns: 1fr;
    }
}

/* 1-CLICK EDIT SHIFT BUTTONS (v5.1.0) */
.btn-shift-edit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    padding: 0.32rem 0.65rem;
    font-size: 0.72rem;
    font-weight: 700;
    font-family: inherit;
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
    line-height: 1;
}

.btn-shift-edit:hover {
    background: rgba(56, 189, 248, 0.25);
    border-color: #38bdf8;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(56, 189, 248, 0.3);
}

.btn-shift-edit:active {
    transform: translateY(0);
}

.btn-shift-edit-sm {
    padding: 0.22rem 0.5rem;
    font-size: 0.68rem;
}

.drilldown-mini-table th:last-child,
.drilldown-mini-table td:last-child {
    text-align: center;
}

/* ==========================================================================
   END-OF-SHIFT LOG UNIFIED MODAL (v6.0.0)
   ========================================================================== */
.eos-gas-quick-btn {
    padding: 0.55rem 0.78rem;
    min-width: auto;
    background: rgba(56, 189, 248, 0.14);
    border: 1px solid rgba(56, 189, 248, 0.38);
    color: #38bdf8;
    box-shadow: none;
}

.eos-gas-quick-btn:hover {
    background: rgba(56, 189, 248, 0.25);
    color: #ffffff;
}

.eos-modal-card {
    max-width: 1080px;
    width: 96%;
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-height: 92vh;
}

.eos-modal-card .hq-modal-header {
    padding: 1rem 1.25rem;
    margin-bottom: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.eos-draft-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.65rem;
    font-size: 0.72rem;
    font-weight: 700;
    color: #34d399;
    background: rgba(16, 185, 129, 0.14);
    border: 1px solid rgba(16, 185, 129, 0.38);
    border-radius: 999px;
    white-space: nowrap;
}

.eos-layout {
    display: grid;
    grid-template-columns: 185px minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 0;
    min-height: 0;
    flex: 1;
    overflow: hidden;
}

.eos-rail {
    padding: 1rem 0.75rem;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    background: rgba(15, 23, 42, 0.45);
    overflow-y: auto;
}

.eos-rail-step {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.52rem 0.6rem;
    border-radius: 8px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.78rem;
    font-weight: 600;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
    transition: all 0.18s ease;
    white-space: nowrap;
}

.eos-rail-step:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #f8fafc;
}

.eos-rail-step.active {
    background: rgba(56, 189, 248, 0.12);
    border-color: rgba(56, 189, 248, 0.35);
    color: #f8fafc;
}

.eos-step-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.68rem;
    font-weight: 700;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
}

.eos-rail-step.active .eos-step-dot {
    background: #38bdf8;
    color: #0f172a;
}

.eos-rail-step.done .eos-step-dot {
    background: #10b981;
    color: #052e16;
}

.eos-body {
    padding: 0.9rem 1.15rem;
    max-height: 68vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-width: 0;
}

.eos-body > * {
    flex-shrink: 0;
}

.eos-body #hqFormShift {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex-shrink: 0;
}

.eos-card {
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.55);
    overflow: hidden;
    flex-shrink: 0;
    transition: border-color 0.2s ease;
}

.eos-card:focus-within {
    border-color: rgba(56, 189, 248, 0.35);
}

.eos-card-head {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.65rem 0.95rem;
    min-height: 44px;
    background: rgba(255, 255, 255, 0.03);
    border: none;
    color: #f8fafc;
    font-family: inherit;
    cursor: pointer;
    text-align: left;
    flex-wrap: wrap;
}

.eos-card-head:hover {
    background: rgba(255, 255, 255, 0.055);
}

.eos-card-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #f8fafc;
}

.eos-chip {
    margin-left: auto;
    font-size: 0.74rem;
    font-weight: 600;
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.12);
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.eos-switch-label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.22rem 0.55rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 0.74rem;
    font-weight: 600;
    color: #cbd5e1;
    cursor: pointer;
    user-select: none;
}

.eos-switch-label input[type="checkbox"] {
    accent-color: #10b981;
    width: 14px;
    height: 14px;
    cursor: pointer;
}

.eos-caret {
    font-size: 0.82rem;
    color: var(--text-secondary);
    transition: transform 0.2s ease;
    margin-left: 0.15rem;
}

.eos-card.collapsed .eos-card-body {
    display: none;
}

.eos-card.collapsed .eos-caret {
    transform: rotate(-90deg);
}

.eos-card-body {
    padding: 0.85rem 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.eos-card-body .misc-pay-subcard,
.eos-card-body .bulk-entry-subcard {
    padding: 0.75rem 0.85rem;
    margin: 0;
}

.eos-card-body .misc-pay-header p {
    display: none;
}

.eos-sticky-footer {
    grid-column: 1 / -1;
    position: sticky;
    bottom: 0;
    z-index: 10;
    background: rgba(15, 23, 42, 0.96);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.55rem 1.1rem;
}

.eos-summary-bar {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    margin-top: 0;
    margin-bottom: 0.45rem;
    padding: 0.45rem 0.75rem;
}

.eos-footer-actions {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.eos-validation-banner {
    margin-bottom: 0.55rem;
    padding: 0.55rem 0.85rem;
    border-radius: 8px;
    background: rgba(244, 63, 94, 0.14);
    border: 1px solid rgba(244, 63, 94, 0.45);
    color: #fda4af;
    font-size: 0.78rem;
    font-weight: 600;
}

.hq-input.eos-invalid {
    border-color: #fb7185 !important;
    box-shadow: 0 0 0 2px rgba(244, 63, 94, 0.25) !important;
}

@media (max-width: 860px) {
    .eos-modal-card {
        width: 98%;
        max-height: 95vh;
    }
    .eos-layout {
        grid-template-columns: 1fr;
        grid-template-rows: auto minmax(0, 1fr) auto;
    }
    .eos-rail {
        flex-direction: row;
        overflow-x: auto;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        padding: 0.5rem 0.75rem;
    }
    .eos-body {
        max-height: none;
        padding: 0.75rem;
    }
    .eos-summary-bar {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    .eos-sticky-footer {
        padding: 0.65rem 0.75rem;
    }
    .eos-footer-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }
    .eos-footer-actions .hq-footer-btn-group {
        display: flex;
        flex-wrap: wrap;
        gap: 0.45rem;
    }
}

.eos-step-nav-btn {
    white-space: nowrap;
}

.eos-next-btn {
    background: rgba(56, 189, 248, 0.16);
    border: 1px solid rgba(56, 189, 248, 0.45);
    color: #38bdf8;
    font-weight: 700;
}

.eos-next-btn:hover:not(:disabled) {
    background: rgba(56, 189, 248, 0.28);
    border-color: #38bdf8;
    color: #ffffff;
}

.eos-step-nav-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ==========================================================================
   MONTHLY FINANCIAL BREAKDOWN 8-COL STACKED TABLE & MONTH CARDS (v6.1.0)
   ========================================================================== */
.monthly-view-switcher {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.monthly-view-btn {
    padding: 0.38rem 0.75rem;
    border-radius: 7px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.18s ease;
    white-space: nowrap;
}

.monthly-view-btn:hover {
    color: #f8fafc;
    background: rgba(255, 255, 255, 0.05);
}

.monthly-view-btn.active {
    background: rgba(56, 189, 248, 0.16);
    border-color: rgba(56, 189, 248, 0.45);
    color: #38bdf8;
    box-shadow: 0 2px 10px rgba(56, 189, 248, 0.2);
}

#dashTable {
    width: 100%;
    table-layout: auto;
    border-collapse: collapse;
}

#dashTable th,
#dashTable td {
    padding: 0.65rem 0.55rem;
    white-space: normal;
    vertical-align: middle;
}

.mcell-stack {
    display: flex;
    flex-direction: column;
    gap: 0.14rem;
    line-height: 1.25;
}

.mcell-primary {
    font-weight: 700;
    color: #f8fafc;
    font-size: 0.84rem;
    font-family: var(--font-mono);
}

.mcell-primary.positive-val {
    color: var(--emerald-success);
}

.mcell-sub {
    font-size: 0.72rem;
    color: #94a3b8;
    font-family: var(--font-mono);
}

.mcell-sub.positive-val {
    color: #34d399;
}

.mcell-sub.deduction-val {
    color: #c084fc;
}

.mcell-sub.gas-val {
    color: #fb7185;
}

.mcell-month-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.22rem;
}

.mcell-month-top {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.mcell-badges {
    display: flex;
    gap: 0.25rem;
    flex-wrap: wrap;
    padding-left: 1.1rem;
}

.mcell-rate-pill {
    display: inline-block;
    padding: 0.24rem 0.55rem;
    border-radius: 999px;
    background: rgba(56, 189, 248, 0.14);
    border: 1px solid rgba(56, 189, 248, 0.35);
    color: #38bdf8;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.8rem;
    white-space: nowrap;
}

.drilldown-drawer-grid {
    grid-template-columns: 1.75fr 1fr;
    gap: 0.9rem;
}

.drilldown-mini-table {
    white-space: normal;
}

.drilldown-mini-table th,
.drilldown-mini-table td {
    padding: 0.45rem 0.5rem;
    white-space: normal;
    vertical-align: middle;
}

@media (max-width: 1100px) {
    .drilldown-drawer-grid {
        grid-template-columns: 1fr;
    }
}

.monthly-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: 1rem;
    margin-top: 0.5rem;
}

.month-bento-card {
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 14px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.month-bento-card:hover {
    border-color: rgba(56, 189, 248, 0.38);
}

.mbc-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
}

.mbc-title-row {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.mbc-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: #f8fafc;
}

.mbc-hero {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding: 0.6rem 0.8rem;
    border-radius: 10px;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.22);
}

.mbc-hero-gross {
    font-family: var(--font-mono);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--emerald-success);
}

.mbc-hero-net {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: #cbd5e1;
}

.mbc-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
}

.mbc-stat {
    padding: 0.45rem 0.6rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.mbc-stat-label {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #94a3b8;
    margin-bottom: 0.15rem;
}

.mbc-expand-btn {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.28);
    color: #38bdf8;
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.18s ease;
}

.mbc-expand-btn:hover {
    background: rgba(56, 189, 248, 0.2);
    color: #ffffff;
}

/* ==========================================================================
   MONTH DROPDOWN SPOTLIGHT VIEW (v6.2.0)
   ========================================================================== */
.monthly-spotlight-wrap {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 0.35rem;
}

.ms-control-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.78);
    border: 1px solid rgba(56, 189, 248, 0.25);
}

.ms-selector-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.ms-nav-arrow {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.05);
    color: #e2e8f0;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.18s ease;
}

.ms-nav-arrow:hover:not(:disabled) {
    background: rgba(56, 189, 248, 0.18);
    border-color: rgba(56, 189, 248, 0.45);
    color: #38bdf8;
}

.ms-nav-arrow:disabled {
    opacity: 0.38;
    cursor: not-allowed;
}

.ms-select-wrap {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0 0.65rem;
    border-radius: 9px;
    background: rgba(8, 12, 22, 0.85);
    border: 1px solid rgba(56, 189, 248, 0.35);
    min-width: 220px;
}

.ms-select-icon {
    font-size: 0.95rem;
}

.ms-month-select {
    border: none !important;
    background: transparent !important;
    color: #f8fafc !important;
    font-weight: 700;
    font-size: 0.86rem;
    padding: 0.48rem 0.25rem !important;
    width: 100%;
    cursor: pointer;
}

.ms-month-select option {
    background: #0f172a;
    color: #f8fafc;
}

.ms-year-total-pill {
    padding: 0.48rem 0.85rem;
    border-radius: 9px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.05);
    color: #cbd5e1;
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.18s ease;
    white-space: nowrap;
}

.ms-year-total-pill:hover {
    border-color: rgba(56, 189, 248, 0.45);
    color: #ffffff;
}

.ms-year-total-pill.active {
    background: rgba(56, 189, 248, 0.18);
    border-color: rgba(56, 189, 248, 0.55);
    color: #38bdf8;
    box-shadow: 0 2px 10px rgba(56, 189, 248, 0.2);
}

.ms-badges-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.ms-hero-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.9rem;
}

.ms-hero-card {
    padding: 0.95rem 1rem;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.09);
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.ms-hero-card.accent-emerald { border-color: rgba(16, 185, 129, 0.3); background: rgba(16, 185, 129, 0.07); }
.ms-hero-card.accent-cyan { border-color: rgba(56, 189, 248, 0.3); background: rgba(56, 189, 248, 0.07); }
.ms-hero-card.accent-purple { border-color: rgba(168, 85, 247, 0.3); background: rgba(168, 85, 247, 0.07); }

.ms-hero-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #94a3b8;
}

.ms-hero-val {
    font-family: var(--font-mono);
    font-size: 1.45rem;
    font-weight: 800;
    color: #f8fafc;
}

.ms-hero-val.emerald { color: var(--emerald-success); }
.ms-hero-val.cyan { color: #38bdf8; }
.ms-hero-val.purple { color: #c084fc; }

.ms-hero-sub {
    font-size: 0.75rem;
    color: #cbd5e1;
    font-family: var(--font-mono);
}

.ms-detail-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
    margin-top: 0.9rem;
}

.ms-detail-card {
    padding: 0.9rem 1rem;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ms-detail-title {
    font-size: 0.84rem;
    font-weight: 700;
    color: #f8fafc;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.ms-kv-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 0.8rem;
}

.ms-kv-label {
    color: #94a3b8;
}

.ms-kv-val {
    font-family: var(--font-mono);
    font-weight: 700;
    color: #f8fafc;
}

.ms-logs-section {
    margin-top: 1rem;
}

.ms-total-hint-banner {
    margin-top: 1rem;
    padding: 0.9rem 1.1rem;
    border-radius: 12px;
    background: rgba(56, 189, 248, 0.08);
    border: 1px solid rgba(56, 189, 248, 0.25);
    color: #cbd5e1;
    font-size: 0.85rem;
    text-align: center;
}

@media (max-width: 1024px) {
    .ms-hero-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .ms-detail-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .ms-hero-grid {
        grid-template-columns: 1fr;
    }
    .ms-select-wrap {
        min-width: 165px;
    }
}

/* ==========================================================================
   v6.3.0 MULTI-METHOD OFF-APP TIPS
   ========================================================================== */
.offapp-tips-subcard {
    margin-top: 0.9rem;
    padding: 0.85rem 0.95rem;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(52, 211, 153, 0.22);
}

.offapp-tips-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.65rem;
    flex-wrap: wrap;
}

.offapp-tips-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: #e2e8f0;
}

.offapp-tips-hint {
    font-weight: 500;
    color: #94a3b8;
    font-size: 0.74rem;
}

.offapp-tips-subtotal {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    font-weight: 700;
    color: #34d399;
    background: rgba(52, 211, 153, 0.12);
    border: 1px solid rgba(52, 211, 153, 0.3);
    padding: 0.16rem 0.55rem;
    border-radius: 999px;
}

.offapp-tips-rows {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.6rem;
}

.offapp-tip-row {
    display: grid;
    grid-template-columns: 1.25fr 0.85fr 1.2fr auto;
    gap: 0.5rem;
    align-items: center;
}

.offapp-pills-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-top: 0.25rem;
}

.offapp-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.12rem 0.48rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1.35;
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: rgba(30, 41, 59, 0.7);
    color: #e2e8f0;
    white-space: nowrap;
}

.offapp-pill.offapp-cash {
    background: rgba(16, 185, 129, 0.14);
    border-color: rgba(16, 185, 129, 0.38);
    color: #6ee7b7;
}

.offapp-pill.offapp-cashapp {
    background: rgba(34, 197, 94, 0.16);
    border-color: rgba(34, 197, 94, 0.42);
    color: #86efac;
}

.offapp-pill.offapp-venmo {
    background: rgba(56, 189, 248, 0.15);
    border-color: rgba(56, 189, 248, 0.4);
    color: #7dd3fc;
}

.offapp-pill.offapp-applepay {
    background: rgba(226, 232, 240, 0.14);
    border-color: rgba(226, 232, 240, 0.36);
    color: #f8fafc;
}

.offapp-pill.offapp-zelle {
    background: rgba(168, 85, 247, 0.16);
    border-color: rgba(168, 85, 247, 0.42);
    color: #d8b4fe;
}

.offapp-pill.offapp-paypal {
    background: rgba(59, 130, 246, 0.16);
    border-color: rgba(59, 130, 246, 0.42);
    color: #93c5fd;
}

.offapp-pill.offapp-other {
    background: rgba(251, 191, 36, 0.14);
    border-color: rgba(251, 191, 36, 0.36);
    color: #fde68a;
}

.ms-offapp-breakdown {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.45rem;
    padding-top: 0.45rem;
    border-top: 1px dashed rgba(148, 163, 184, 0.2);
}

@media (max-width: 768px) {
    .offapp-tip-row {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   v6.4.0 INSTALLABLE WEB APP (PWA) BUTTON
   ========================================================================== */
.pwa-install-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 0.95rem;
    border-radius: 10px;
    border: 1px solid rgba(52, 211, 153, 0.45);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(56, 189, 248, 0.16));
    color: #a7f3d0;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.84rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.18);
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
    white-space: nowrap;
}

.pwa-install-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(52, 211, 153, 0.78);
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.28);
    color: #ecfdf5;
}

/* ==========================================================================
   v6.5.0 SMARTPHONE-FRIENDLY MOBILE PWA
   ========================================================================== */
.eos-cta-cluster {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.ws-tab-label-short {
    display: none;
}

@media (max-width: 768px) {
    .dashboard-container {
        padding: calc(0.85rem + env(safe-area-inset-top)) 0.75rem calc(5.8rem + env(safe-area-inset-bottom));
    }

    .dashboard-header {
        gap: 0.65rem;
        margin-bottom: 0.9rem;
    }

    .brand-badge-row h1 {
        font-size: 1.25rem;
    }

    .header-status-strip {
        font-size: 0.7rem;
        gap: 0.4rem;
        flex-wrap: wrap;
    }

    .vault-year-selector-wrap {
        width: 100%;
        justify-content: space-between;
        padding: 0.35rem 0.6rem;
    }

    .header-controls {
        width: 100%;
        flex-wrap: wrap;
        gap: 0.45rem;
        justify-content: space-between;
    }

    .eos-cta-cluster {
        position: fixed;
        right: 0.85rem;
        bottom: calc(4.75rem + env(safe-area-inset-bottom));
        z-index: 890;
        box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55);
        border-radius: 999px;
        background: rgba(15, 23, 42, 0.88);
        backdrop-filter: blur(12px);
        padding: 0.3rem;
        border: 1px solid rgba(52, 211, 153, 0.35);
    }

    /* Native Bottom Tab Bar */
    .workspace-nav-dock {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 900;
        margin: 0;
        border-radius: 0;
        border-left: none;
        border-right: none;
        border-bottom: none;
        border-top: 1px solid rgba(148, 163, 184, 0.22);
        background: rgba(15, 23, 42, 0.95);
        backdrop-filter: blur(16px);
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 0.25rem;
        padding: 0.4rem 0.4rem calc(0.45rem + env(safe-area-inset-bottom));
    }

    .workspace-tab-btn {
        flex-direction: column;
        gap: 0.16rem;
        padding: 0.4rem 0.2rem;
        font-size: 0.66rem;
        min-height: 46px;
        text-align: center;
        line-height: 1.15;
    }

    .ws-tab-icon {
        font-size: 1.05rem;
    }

    .ws-tab-label-full {
        display: none;
    }

    .ws-tab-label-short {
        display: inline;
        font-size: 0.72rem;
        font-weight: 700;
        white-space: nowrap;
    }

    /* 2x2 Compact Hero KPI Grid Above the Fold */
    .financial-bento-grid.four-col-bento,
    .ms-hero-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.55rem;
    }

    .bento-card,
    .ms-hero-card {
        padding: 0.8rem 0.75rem;
    }

    .card-value-display.hero-value {
        font-size: 1.35rem;
    }

    .card-value-display {
        font-size: 1.2rem;
    }

    .card-title {
        font-size: 0.72rem;
    }

    .card-subtext {
        font-size: 0.68rem;
        flex-wrap: wrap;
    }

    /* Mobile Shift & Gas Cards (No Cramped Tables) */
    .drilldown-mini-table-wrap {
        overflow-x: visible;
    }

    .drilldown-mini-table thead {
        display: none;
    }

    .drilldown-mini-table,
    .drilldown-mini-table tbody {
        display: block;
        width: 100%;
    }

    .drilldown-mini-table tbody tr {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.5rem 0.65rem;
        padding: 0.8rem;
        margin-bottom: 0.6rem;
        border-radius: 12px;
        background: rgba(15, 23, 42, 0.78);
        border: 1px solid rgba(148, 163, 184, 0.2);
    }

    .drilldown-mini-table tbody td {
        display: block;
        padding: 0;
        border: none;
        text-align: left !important;
        min-width: 0;
    }

    .drilldown-mini-table tbody td:first-child,
    .drilldown-mini-table tbody td:last-child {
        grid-column: 1 / -1;
    }

    .drilldown-mini-table tbody td:last-child .btn-shift-edit {
        width: 100%;
        min-height: 38px;
        font-size: 0.8rem;
    }

    /* Full-Screen Mobile End-of-Shift Sheet & Zero iOS Auto-Zoom */
    #addDataModalOverlay {
        padding: 0;
        align-items: stretch;
    }

    .eos-modal-card {
        width: 100%;
        max-width: 100%;
        height: 100dvh;
        max-height: 100dvh;
        border-radius: 0;
        border: none;
    }

    .eos-modal-card .hq-modal-header {
        padding: calc(0.75rem + env(safe-area-inset-top)) 0.85rem 0.65rem;
    }

    .eos-rail {
        gap: 0.35rem;
        padding: 0.45rem 0.75rem;
        -webkit-overflow-scrolling: touch;
    }

    .eos-rail-step {
        white-space: nowrap;
        flex-shrink: 0;
        min-height: 38px;
        padding: 0.4rem 0.65rem;
        font-size: 0.76rem;
    }

    .hq-form-grid-2,
    .hq-form-grid-3 {
        grid-template-columns: 1fr;
        gap: 0.65rem;
    }

    .eos-modal-card .hq-input,
    .eos-modal-card .hq-select {
        font-size: 16px;
        min-height: 44px;
    }

    .eos-sticky-footer {
        padding: 0.6rem 0.75rem calc(0.7rem + env(safe-area-inset-bottom));
    }

    .eos-footer-actions button {
        min-height: 42px;
    }
}






