/* ════════════════════════════════════════════════════════════════════
   Dashboard design language (Color Admin "Material v4" inspired)
   • .dash-card        — white rounded card with soft shadow
   • .dash-card--ink   — dark charcoal card; redefines the local tokens so
                          everything inside (text, pills, charts) adapts
   • .dash-card-head / -title / -sub, .dash-pill, .dash-seg — card chrome
   Reusable on other pages: wrap content in .dash-card and use the same
   head/pill/legend classes.
════════════════════════════════════════════════════════════════════ */

:root, html[data-theme='light'] {
    --dash-ink:          #2B3035;
    --dash-ink-2:        #1F2327;
    --dash-ink-border:   transparent;

    --dash-page-bg:      var(--md-sys-color-background);
    --dash-card:         #FFFFFF;
    --dash-card-border:  transparent;
    --dash-shadow:       none;
    --dash-radius:       16px;
    --dash-radius-sm:    12px;

    --dash-text:         #212529;
    --dash-muted:        #6C757D;
    --dash-line:         rgba(33, 37, 41, 0.08);

    --dash-accent:       #1E88E5;
    --dash-accent-soft:  rgba(30, 136, 229, 0.12);
    --dash-pill-bg:      #ECEFF1;
    --dash-pill-text:    #212529;

    --dash-up:           #16A34A;
    --dash-down:         #DC2626;

    /* Categorical — Material (Color Admin) hues at 600/700 steps, validated on #FFFFFF.
       Fixed order, per entity, never cycled. Slots 2/5/8 sit under 3:1 on white,
       so every chart also lists values in a legend */
    --dash-series-1:     #1E88E5;   /* blue */
    --dash-series-2:     #F57C00;   /* orange */
    --dash-series-3:     #00897B;   /* teal */
    --dash-series-4:     #8E24AA;   /* purple */
    --dash-series-5:     #00ACC1;   /* cyan */
    --dash-series-6:     #D81B60;   /* pink */
    --dash-series-7:     #3949AB;   /* indigo */
    --dash-series-8:     #7CB342;   /* green */

    /* Sequential blue (magnitude): heatmap levels, single-measure bars. */
    --dash-seq-1:        #BBDEFB;
    --dash-seq-2:        #64B5F6;
    --dash-seq-3:        #1E88E5;
    --dash-seq-4:        #0D47A1;

    --dash-heat-0:       #F1F4F7;
    --dash-tip-bg:       #1F2327;
}

html[data-theme='dark'] {
    --dash-ink:          #2A2F34;
    --dash-ink-2:        #22262A;
    --dash-ink-border:   rgba(255, 255, 255, 0.06);

    --dash-page-bg:      var(--md-sys-color-background);
    --dash-card:         var(--md-sys-color-surface-container-low);
    --dash-card-border:  rgba(255, 255, 255, 0.05);
    --dash-shadow:       none;

    --dash-text:         #E8EAED;
    --dash-muted:        #9AA0A6;
    --dash-line:         rgba(255, 255, 255, 0.08);

    --dash-accent:       #42A5F5;
    --dash-accent-soft:  rgba(66, 165, 245, 0.18);
    --dash-pill-bg:      rgba(255, 255, 255, 0.08);
    --dash-pill-text:    #E3E7EA;

    --dash-up:           #6BCB8B;
    --dash-down:         #FF8A80;

    /* Same hues, dark-surface steps — validated on #1B1E22 */
    --dash-series-1:     #1E88E5;   /* blue */
    --dash-series-2:     #E65100;   /* orange */
    --dash-series-3:     #00897B;   /* teal */
    --dash-series-4:     #AB47BC;   /* purple */
    --dash-series-5:     #0097A7;   /* cyan */
    --dash-series-6:     #EC407A;   /* pink */
    --dash-series-7:     #7986CB;   /* indigo */
    --dash-series-8:     #689F38;   /* green */

    /* Sequential on dark: brighter = more. */
    --dash-seq-1:        #0D47A1;
    --dash-seq-2:        #1565C0;
    --dash-seq-3:        #1E88E5;
    --dash-seq-4:        #64B5F6;

    --dash-heat-0:       rgba(255, 255, 255, 0.06);
    --dash-tip-bg:       #0b0f12;
}

/* ── Page & grid ─────────────────────────────────────────────────── */
.mud-main-content:has(.dash-page) { background: var(--dash-page-bg); min-height: 100vh; }
.dash-page {
    display: flex;
    flex-direction: column;
    gap: 24px;
    direction: rtl;
}
.dash-sections {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.dash-sections[hidden] { display: none; }

.dash-grid { display: grid; gap: 20px; min-width: 0; }
.dash-grid--hero { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
.dash-grid--2    { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dash-grid--3    { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1fr); }

.dash-side {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

@media (max-width: 1279px) {
    .dash-grid--hero { grid-template-columns: minmax(0, 1fr); }
    .dash-grid--3    { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dash-grid--3 > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
    .dash-grid--2,
    .dash-grid--3 { grid-template-columns: minmax(0, 1fr); }
    .dash-sections, .dash-grid, .dash-side { gap: 16px; }
}

/* ── Header ──────────────────────────────────────────────────────── */
.dash-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.dash-title {
    margin: 0;
    font-size: clamp(1.45rem, 2.2vw, 1.9rem);
    font-weight: 700;
    line-height: 1.35;
    color: var(--dash-text);
}
.dash-title-comma { color: var(--dash-muted); }
.dash-subtitle {
    margin: 4px 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 0.95rem;
    color: var(--dash-muted);
}
.dash-sep { opacity: 0.5; }
.dash-header-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.dash-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 44px;
    padding: 0 16px;
    border-radius: 8px;
    border: 1px solid var(--dash-line);
    background: var(--dash-card);
    color: var(--dash-text);
    font-size: 0.9rem;
    white-space: nowrap;
}
.dash-chip .mud-icon-root {
    font-size: 1.2rem !important;
    color: var(--dash-muted);
}

/* ── Card ────────────────────────────────────────────────────────── */
.dash-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 20px 20px 22px;
    background: var(--dash-card);
    color: var(--dash-text);
    border: 1px solid var(--dash-card-border);
    border-radius: var(--dash-radius);
    box-shadow: var(--dash-shadow);
    overflow: hidden;
    direction: rtl;
}
.dash-card--ink {
    --dash-text:       #FFFFFF;
    --dash-muted:      rgba(255, 255, 255, 0.62);
    --dash-line:       rgba(255, 255, 255, 0.09);
    --dash-pill-bg:    rgba(255, 255, 255, 0.10);
    --dash-pill-text:  #FFFFFF;
    --dash-accent:     #42A5F5;
    --dash-up:         #6BCB8B;
    --dash-down:       #FF8A80;
    --dc-dot-ring:     var(--dash-ink);

    background: linear-gradient(160deg, var(--dash-ink) 0%, var(--dash-ink-2) 100%);
    border-color: var(--dash-ink-border);
    color: var(--dash-text);
}

.dash-card-head {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
    min-height: 40px;
}
.dash-card-title {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.05rem;
    font-weight: 500;
    line-height: 1.45;
    color: var(--dash-text);
}
.dash-card-sub {
    margin: 2px 0 0;
    font-size: 0.82rem;
    line-height: 1.5;
    color: var(--dash-muted);
}

.dash-pills { display: flex; gap: 8px; flex-shrink: 0; }
.dash-pill {
    display: inline-flex;
    align-items: center;
    height: 36px;
    padding: 0 18px;
    border: none;
    border-radius: 999px;
    background: var(--dash-pill-bg);
    color: var(--dash-pill-text);
    font: inherit;
    font-size: 0.82rem;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    cursor: pointer;
    transition: filter 0.15s ease;
}
a.dash-pill:hover, button.dash-pill:hover:not(:disabled) { filter: brightness(0.94); }
.dash-card--ink a.dash-pill:hover { filter: brightness(1.25); }
.dash-pill--light { background: #FFFFFF; color: #1B2328; cursor: default; }
.dash-pill:disabled { opacity: 0.6; cursor: wait; }

/* Segmented period toggle */
.dash-seg {
    display: inline-flex;
    gap: 4px;
    flex-shrink: 0;
}
.dash-seg-btn {
    border: 0;
    background: transparent;
    color: var(--dash-muted);
    font: inherit;
    font-size: 0.8rem;
    font-weight: 500;
    min-width: 40px;
    height: 34px;
    padding: 0 12px;
    border-radius: 8px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s ease, color 0.15s ease;
}
.dash-seg-btn:hover { color: var(--dash-text); background: var(--dash-pill-bg); }
.dash-seg-btn.is-active { background: var(--dash-accent); color: #FFFFFF; }

.dash-ellipsis {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}
.dash-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 28px 8px;
    color: var(--dash-muted);
    font-size: 0.88rem;
    text-align: center;
}
.dash-empty--ok .mud-icon-root { color: var(--dash-up); }
.dash-link-btn {
    align-self: flex-start;
    margin-top: 14px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--dash-accent);
    font: inherit;
    font-size: 0.82rem;
    cursor: pointer;
}
.dash-link-btn:hover { text-decoration: underline; }
.dash-tag {
    flex-shrink: 0;
    padding: 1px 8px;
    border-radius: 999px;
    background: var(--dash-accent);
    color: #FFFFFF;
    font-size: 0.65rem;
    font-weight: 600;
}

.dash-skeleton { animation: dash-pulse 1.4s ease-in-out infinite; }
@keyframes dash-pulse { 50% { opacity: 0.7; } }

/* ── Delta badge ─────────────────────────────────────────────────── */
.dash-delta {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 0.74rem;
    font-weight: 600;
    white-space: nowrap;
    direction: rtl;
}
.dash-delta--up   { color: var(--dash-up); }
.dash-delta--down { color: var(--dash-down); }
.dash-delta--flat { color: var(--dash-muted); font-weight: 500; }
.dash-delta-arrow { font-size: 0.75em; }
.dash-delta-suffix { margin-inline-start: 4px; font-weight: 500; color: var(--dash-text); }
.dash-delta--lg { font-size: 1rem; margin-top: 10px; color: var(--dash-text); }
.dash-delta--lg.dash-delta--up .dash-delta-arrow   { color: var(--dash-up); }
.dash-delta--lg.dash-delta--down .dash-delta-arrow { color: var(--dash-down); }
.dash-delta--lg.dash-delta--flat { color: var(--dash-muted); }

/* ── Hero (dark overview) ────────────────────────────────────────── */
.dash-hero { min-height: 460px; padding: 22px 20px 20px; }
.dash-hero-art {
    position: absolute;
    left: -16px;
    bottom: 96px;
    width: 52%;
    max-width: 440px;
    color: rgba(255, 255, 255, 0.13);
    pointer-events: none;
}
.dash-hero-main { position: relative; z-index: 1; flex: 1; }
.dash-eyebrow {
    margin-bottom: 4px;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--dash-text);
}
.dash-hero-value {
    font-size: clamp(1.9rem, 3.3vw, 2.8rem);
    font-weight: 700;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
}
.dash-hero-unit {
    margin-inline-start: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--dash-muted);
}
.dash-hero-divider {
    height: 1px;
    max-width: 560px;
    margin: 22px 0;
    background: var(--dash-line);
}
.dash-hero-metrics { display: flex; flex-wrap: wrap; gap: 18px 36px; }
.dash-hero-metric { display: flex; align-items: center; gap: 12px; }
.dash-hero-metric-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid var(--dash-line);
    color: var(--dash-muted);
}
.dash-hero-metric-label { font-size: 0.8rem; color: var(--dash-muted); }
.dash-hero-metric-value {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.15rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}
.dash-hero-metric-value small { font-size: 0.75rem; font-weight: 500; color: var(--dash-muted); }

.dash-hero-tiles {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 26px;
}
.dash-glass {
    position: relative;
    min-width: 0;
    padding: 14px 16px;
    border-radius: var(--dash-radius-sm);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(6px);
}
.dash-glass-title { margin-bottom: 10px; font-size: 1rem; font-weight: 500; }
.dash-glass-sub   { font-size: 0.78rem; color: var(--dash-muted); }
.dash-glass-value { margin-top: 2px; font-size: 1.05rem; font-weight: 500; font-variant-numeric: tabular-nums; }
.dash-glass-split { display: flex; gap: 22px; }
.dash-glass-icon {
    position: absolute;
    left: 14px;
    bottom: 14px;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.9);
    color: #2B3035;
}
.dash-glass-icon .mud-icon-root { font-size: 1.2rem !important; }

@media (max-width: 767px) {
    .dash-hero { min-height: 0; padding: 20px; }
    .dash-hero-tiles { grid-template-columns: minmax(0, 1fr); }
    .dash-hero-art { width: 80%; bottom: auto; top: 40px; }
}

/* ── Small KPI card ──────────────────────────────────────────────── */
.dash-stat { min-height: 150px; padding: 20px; }
.dash-stat-art {
    position: absolute;
    left: -10px;
    bottom: -18px;
    opacity: 0.12;
    pointer-events: none;
}
.dash-stat-art .mud-icon-root { font-size: 6.5rem !important; }
.dash-stat-value {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin: 12px 0 4px;
    font-size: 1.9rem;
    font-weight: 500;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
}
.dash-stat-unit { font-size: 0.8rem; font-weight: 500; color: var(--dash-muted); }
.dash-stat-foot { margin-top: 8px; font-size: 0.78rem; color: var(--dash-muted); }

/* ── Trend card ──────────────────────────────────────────────────── */
.dash-trend { flex: 1; }
.dash-axis-caption { margin-top: 4px; font-size: 0.7rem; color: var(--dash-muted); }
.dash-trend-foot {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--dash-line);
}
.dash-trend-foot-label { font-size: 0.78rem; color: var(--dash-muted); }
.dash-trend-foot-value {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-top: 2px;
    font-weight: 600;
}

/* ── Area chart ──────────────────────────────────────────────────── */
.dc-area {
    --dc-color: var(--dash-accent);
    position: relative;
    display: flex;
    gap: 10px;
    height: var(--dc-h);
    padding-bottom: 26px;
    direction: rtl;
}
.dc-area-y {
    position: relative;
    flex-shrink: 0;
    width: 30px;
    font-size: 0.7rem;
    color: var(--dash-muted);
}
.dc-area-y span {
    position: absolute;
    right: 0;
    transform: translateY(50%);
    font-variant-numeric: tabular-nums;
}
.dc-area-body { position: relative; flex: 1; min-width: 0; }
.dc-area-plot { position: absolute; inset: 0; }
.dc-grid-line {
    position: absolute;
    left: 0;
    right: 0;
    border-top: 1px dashed var(--dash-line);
}
.dc-area-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
}
.dc-area-line {
    fill: none;
    stroke: var(--dc-color);
    stroke-width: 2.5;
    stroke-linejoin: round;
    stroke-linecap: round;
}
.dc-hover {
    position: absolute;
    top: 0;
    bottom: 0;
    transform: translateX(-50%);
}
.dc-hover::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    border-left: 1px dashed var(--dash-muted);
    opacity: 0;
    transition: opacity 0.12s ease;
}
.dc-dot {
    position: absolute;
    left: 50%;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--dc-color);
    border: 2px solid var(--dc-dot-ring, var(--dash-card));
    transform: translate(-50%, 50%);
    opacity: 0;
    transition: opacity 0.12s ease;
}
.dc-tip {
    position: absolute;
    left: 50%;
    z-index: 5;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 6px 10px;
    border-radius: 8px;
    background: var(--dash-tip-bg);
    color: #FFFFFF;
    font-size: 0.72rem;
    white-space: nowrap;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
    transform: translate(-50%, -16px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.12s ease;
}
.dc-tip--start { transform: translate(-12px, -16px); }
.dc-tip--end   { transform: translate(calc(-100% + 12px), -16px); }
.dc-hover:hover::before,
.dc-hover:hover .dc-dot,
.dc-hover:hover .dc-tip { opacity: 1; }
.dc-area-x {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -24px;
    height: 20px;
    font-size: 0.72rem;
    color: var(--dash-muted);
}
.dc-area-x span {
    position: absolute;
    top: 4px;
    transform: translateX(-50%);
    white-space: nowrap;
}

/* ── Donut ───────────────────────────────────────────────────────── */
.dc-donut {
    position: relative;
    width: var(--dc-size);
    height: var(--dc-size);
    max-width: 100%;
    margin-inline: auto;
}
.dc-donut svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.dc-donut-track { fill: none; stroke: var(--dash-pill-bg); stroke-width: 14; }
.dc-donut-seg  { fill: none; stroke-width: 14; transition: stroke-dasharray 0.4s ease; }
.dc-donut-center {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.dc-donut-label { font-size: 0.75rem; color: var(--dash-muted); }
.dc-donut-value { font-size: 1.25rem; font-weight: 700; line-height: 1.3; }
.dc-donut-unit  { font-size: 0.7rem; color: var(--dash-muted); }

.dash-mix-chart { display: flex; justify-content: center; padding: 4px 0; }
.dash-legend {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
}
.dash-legend li {
    display: grid;
    grid-template-columns: 10px minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
}
.dash-legend li.dash-empty { display: flex; }
.dash-legend-dot { width: 10px; height: 10px; border-radius: 50%; }
.dash-legend-pct { font-size: 0.75rem; color: var(--dash-muted); }
.dash-legend-value { font-weight: 600; font-variant-numeric: tabular-nums; }

/* ── Staff bars ──────────────────────────────────────────────────── */
.dash-bars {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
    transition: opacity 0.2s ease;
}
.dash-bars.is-loading { opacity: 0.5; }
.dash-bar-row {
    display: grid;
    grid-template-columns: 24px minmax(90px, 34%) minmax(0, 1fr) 34px;
    align-items: center;
    gap: 10px;
}
.dash-bar-rank {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: var(--dash-pill-bg);
    color: var(--dash-muted);
    font-size: 0.75rem;
    font-weight: 600;
}
.dash-bar-rank.is-top { background: var(--dash-accent-soft); color: var(--dash-accent); }
.dash-bar-name {
    display: flex;
    flex-direction: column;
    min-width: 0;
    font-size: 0.86rem;
    font-weight: 500;
    line-height: 1.35;
}
.dash-bar-name-main { display: flex; align-items: center; gap: 6px; min-width: 0; }
.dash-bar-name small { font-size: 0.72rem; font-weight: 400; color: var(--dash-muted); }
.dash-bar-track {
    height: 8px;
    border-radius: 999px;
    background: var(--dash-pill-bg);
    overflow: hidden;
}
.dash-bar-fill {
    height: 100%;
    border-radius: inherit;
    background: var(--dash-seq-2);
    transition: width 0.5s ease;
}
.dash-bar-row:nth-child(-n+3) .dash-bar-fill,
.dash-bar-row.is-me .dash-bar-fill { background: var(--dash-accent); }
.dash-bar-value {
    font-size: 0.9rem;
    font-weight: 700;
    text-align: left;
    font-variant-numeric: tabular-nums;
}

/* ── Heatmap ─────────────────────────────────────────────────────── */
/* Fits the card at every width — columns shrink instead of scrolling. */
.dash-heat-scroll { overflow: hidden; }
.dash-heat-grid {
    display: grid;
    grid-template-columns: 44px repeat(var(--cols), minmax(0, 1fr));
    gap: 3px;
    min-width: 0;
    direction: rtl;
}
.dash-heat-day {
    align-self: center;
    font-size: 0.7rem;
    color: var(--dash-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dash-heat-hour {
    font-size: 0.64rem;
    color: var(--dash-muted);
    text-align: center;
    font-variant-numeric: tabular-nums;
}
.dash-heat-cell {
    height: 22px;
    min-width: 0;
    border-radius: 4px;
    background: var(--dash-heat-0);
}
.dash-heat-cell[data-level='1'] { background: var(--dash-seq-1); }
.dash-heat-cell[data-level='2'] { background: var(--dash-seq-2); }
.dash-heat-cell[data-level='3'] { background: var(--dash-seq-3); }
.dash-heat-cell[data-level='4'] { background: var(--dash-seq-4); }
.dash-heat-legend {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    margin-top: 14px;
    font-size: 0.7rem;
    color: var(--dash-muted);
}
.dash-heat-legend .dash-heat-cell { width: 14px; height: 14px; }

/* ── Existing widgets adopting the card style ────────────────────── */
.dash-card .ls-title-icon { font-size: 1.2rem !important; color: var(--md-sys-color-warning) !important; }
.dash-card .ls-list.ls-list--grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 12px;
}
.dash-card .ls-item { background: var(--dash-pill-bg); border-radius: var(--dash-radius-sm); }
.ls-pager {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}
.ls-pager-info { font-size: 0.8rem; color: var(--dash-muted); }
.ls-pager .ds-pagination-row { padding: 0; }

/* ── Header action buttons (outlined like the reference's date/Export buttons) ── */
.dash-subtitle strong { font-weight: 600; color: var(--dash-text); }
.dash-chip--btn,
.dash-chip--primary {
    font: inherit;
    font-size: 0.9rem;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, filter 0.15s ease;
}
.dash-chip--btn:hover:not(:disabled) { background: var(--dash-pill-bg); }
.dash-chip--btn:disabled { opacity: 0.7; cursor: wait; }
.dash-chip--primary {
    background: var(--dash-accent);
    border-color: var(--dash-accent);
    color: #FFFFFF;
}
.dash-chip--primary .mud-icon-root { color: #FFFFFF; }
.dash-chip--primary:hover { filter: brightness(0.93); }
.dash-spin { animation: dash-spin 0.9s linear infinite; }
@keyframes dash-spin { to { transform: rotate(360deg); } }

/* ── Card toolbar icon button (chart download) ───────────────────── */
.dash-head-tools { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.dash-icon-btn {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--dash-pill-bg);
    color: var(--dash-pill-text);
    cursor: pointer;
    transition: filter 0.15s ease;
}
.dash-icon-btn:hover:not(:disabled) { filter: brightness(0.94); }
.dash-card--ink .dash-icon-btn:hover:not(:disabled) { filter: brightness(1.3); }
.dash-icon-btn:disabled { cursor: wait; }
.dash-icon-btn .mud-icon-root { font-size: 1.2rem; }
.dash-icon-btn-spinner { width: 18px !important; height: 18px !important; color: var(--dash-accent); }
/* While a card is being captured, freeze hover-only chart chrome. */
.is-exporting .dc-tip, .is-exporting .dc-dot, .is-exporting .dc-hover::before { opacity: 0 !important; }

/* Phones: let card toolbars (period toggle + download) drop under the title. */
@media (max-width: 599px) {
    .dash-card-head { flex-wrap: wrap; }
    .dash-head-tools { width: 100%; justify-content: space-between; }
    .dash-header-actions { width: 100%; }
    .dash-header-actions .dash-chip { flex: 1 1 auto; justify-content: center; }
}

/* ── Top products (refined over the widget's scoped styles) ───────── */
.dash-card.tp-widget .tp-list { gap: 8px; transition: opacity 0.2s ease; }
.dash-card.tp-widget .tp-list.is-loading { opacity: 0.5; }
.dash-card.tp-widget .tp-row { background: var(--dash-pill-bg); border-radius: var(--dash-radius-sm); padding: 10px 14px; }
.dash-card.tp-widget .tp-rank--top { background: var(--dash-accent); color: #FFFFFF; }
.dash-card.tp-widget .tp-bar { height: 6px; border-radius: 999px; background: var(--dash-line); }
.dash-card.tp-widget .tp-bar-fill { background: var(--dash-seq-3); border-radius: 999px; }
.dash-card.tp-widget .tp-amount { direction: rtl; }

/* ── Open tasks: tiles that use the whole card ───────────────────── */
.dash-card.ot-widget .ot-list {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    grid-auto-rows: minmax(132px, 1fr);
    gap: 12px;
}
.dash-card.ot-widget .ot-item {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto 1fr auto;
    grid-template-areas:
        "icon  count"
        "body  body"
        "body  body";
    align-items: start;
    gap: 10px 12px;
    padding: 16px;
    border: 1px solid transparent;
    border-radius: var(--dash-radius-sm);
    background: var(--dash-pill-bg);
}
.dash-card.ot-widget .ot-item:hover { border-color: var(--dash-accent); background: var(--dash-accent-soft); }
.dash-card.ot-widget .ot-item-icon { grid-area: icon; width: 44px; height: 44px; border-radius: 12px; background: var(--dash-accent-soft); }
.dash-card.ot-widget .ot-item-icon .mud-icon-root { font-size: 1.35rem !important; color: var(--dash-accent) !important; }
.dash-card.ot-widget .ot-item--warning .ot-item-icon { background: var(--md-sys-color-warning-container); }
.dash-card.ot-widget .ot-item--warning .ot-item-icon .mud-icon-root { color: var(--md-sys-color-on-warning-container) !important; }
.dash-card.ot-widget .ot-item--danger .ot-item-icon { background: var(--md-sys-color-error-container); }
.dash-card.ot-widget .ot-item--danger .ot-item-icon .mud-icon-root { color: var(--md-sys-color-on-error-container) !important; }
.dash-card.ot-widget .ot-item-count { grid-area: count; justify-self: end; }
.dash-card.ot-widget .ot-item-count-num {
    min-width: 0;
    height: auto;
    padding: 0;
    background: none !important;
    color: var(--dash-text) !important;
    font-size: 1.9rem;
    font-weight: 700;
    line-height: 1.1;
}
.dash-card.ot-widget .ot-item--warning .ot-item-count-num { color: var(--md-sys-color-warning) !important; }
.dash-card.ot-widget .ot-item--danger  .ot-item-count-num { color: var(--md-sys-color-error) !important; }
.dash-card.ot-widget .ot-item-body { grid-area: body; align-self: end; }
.dash-card.ot-widget .ot-item-label { font-size: 0.95rem; font-weight: 600; line-height: 1.45; }
.dash-card.ot-widget .ot-item-sub { font-size: 0.78rem; margin-top: 4px; line-height: 1.5; }
.dash-card.ot-widget .ot-item-arrow { position: absolute; left: 14px; bottom: 14px; }
.dash-card.ot-widget .ot-item-arrow svg { transform: none; }

/* ════════════════════════════════════════════════════════════════════
   BRANCH STATUS PAGE (bst-*)
════════════════════════════════════════════════════════════════════ */
.bst-controls { gap: 14px; padding: 14px 16px; }
@media (max-width: 899px) {
    /* Keep date navigation reachable while scrolling the branch cards. */
    .bst-controls { position: sticky; top: 64px; z-index: 6; box-shadow: 0 6px 20px rgba(15, 23, 42, 0.08); }
}
@media (max-width: 599px) { .bst-controls { top: 56px; } }

.bst-datebar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bst-nav {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border: 0;
    border-radius: 12px;
    background: var(--dash-pill-bg);
    color: var(--dash-text);
    cursor: pointer;
}
.bst-nav:hover:not(:disabled) { filter: brightness(0.95); }
.bst-nav:disabled { opacity: 0.35; cursor: not-allowed; }
.bst-date {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1 1 200px;
    min-width: 0;
    height: 52px;
    padding: 0 14px;
    border: 1px solid var(--dash-line);
    border-radius: 12px;
    background: var(--dash-card);
    color: var(--dash-text);
    font: inherit;
    text-align: start;
    cursor: pointer;
}
.bst-date:hover { border-color: var(--dash-accent); }
.bst-date .mud-icon-root { color: var(--dash-accent); }
.bst-date-text { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.bst-date-text strong { font-size: 0.98rem; }
.bst-date-text small { font-size: 0.78rem; color: var(--dash-muted); }
.bst-quick { display: inline-flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--dash-pill-bg); }
@media (max-width: 599px) {
    .bst-quick { width: 100%; }
    .bst-quick .dash-seg-btn { flex: 1; height: 40px; }
}

.bst-chips {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 2px;
}
.bst-chips::-webkit-scrollbar { display: none; }
.bst-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    height: 40px;
    padding: 0 16px;
    border: 1px solid var(--dash-line);
    border-radius: 999px;
    background: var(--dash-card);
    color: var(--dash-text);
    font: inherit;
    font-size: 0.88rem;
    cursor: pointer;
    white-space: nowrap;
}
.bst-chip:hover { border-color: var(--dash-accent); }
.bst-chip.is-active { background: var(--dash-accent); border-color: var(--dash-accent); color: #FFFFFF; font-weight: 600; }
.bst-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.bst-chip.is-active .bst-dot { box-shadow: 0 0 0 2px #FFFFFF; }

/* KPI tiles */
.bst-kpis {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) repeat(5, minmax(0, 1fr));
    gap: 16px;
    transition: opacity 0.2s ease;
}
.bst-kpis.is-loading, .bst-grid.is-loading { opacity: 0.55; }
@media (max-width: 1279px) { .bst-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 699px)  { .bst-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } .bst-kpi--hero { grid-column: 1 / -1; } }
.bst-kpi { gap: 4px; padding: 16px 18px; min-height: 118px; }
.bst-kpi-icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    margin-bottom: 6px;
    border-radius: 10px;
    background: color-mix(in srgb, var(--kpi-color) 14%, transparent);
    color: var(--kpi-color);
}
.bst-kpi-icon .mud-icon-root { font-size: 1.2rem; }
.bst-kpi-label { font-size: 0.82rem; color: var(--dash-muted); }
.bst-kpi-value { font-size: 1.35rem; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.3; }
.bst-kpi-value small { margin-inline-start: 4px; font-size: 0.72rem; font-weight: 500; color: var(--dash-muted); }
.bst-kpi--hero { justify-content: center; }
.bst-kpi--hero .bst-kpi-value { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }

/* Comparison + branch cards */
.bst-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); align-items: start; }
@media (max-width: 1099px) { .bst-grid { grid-template-columns: minmax(0, 1fr); } }
.bst-legend { display: flex; gap: 16px; margin: -6px 0 14px; padding: 0; list-style: none; font-size: 0.82rem; }
.bst-legend li { display: inline-flex; align-items: center; gap: 6px; }
.bst-bars { display: flex; flex-direction: column; gap: 14px; margin: 0; padding: 0; list-style: none; }
.bst-bar-head { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 6px; font-size: 0.88rem; }
.bst-bar-name { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; min-width: 0; }
.bst-bar-total { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bst-bar-track { display: flex; gap: 2px; height: 14px; border-radius: 4px; overflow: hidden; background: var(--dash-pill-bg); }
.bst-bar-seg { height: 100%; }
.bst-bar-seg:first-child { border-radius: 0 4px 4px 0; }
.bst-bar-seg:last-child { border-radius: 4px 0 0 4px; }

.bst-branches { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.bst-branch { gap: 6px; }
.bst-branch-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.bst-branch-name { display: inline-flex; align-items: center; gap: 8px; font-size: 1rem; font-weight: 600; }
.bst-branch-total { font-size: 1.45rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.bst-branch-total small { margin-inline-start: 6px; font-size: 0.75rem; font-weight: 500; color: var(--dash-muted); }
.bst-split { display: flex; gap: 2px; height: 8px; margin: 10px 0 6px; border-radius: 999px; overflow: hidden; background: var(--dash-pill-bg); }
.bst-rows { display: flex; flex-direction: column; gap: 8px; margin: 6px 0 0; }
.bst-rows > div { display: flex; justify-content: space-between; gap: 12px; padding-top: 8px; border-top: 1px dashed var(--dash-line); font-size: 0.86rem; }
.bst-rows dt { display: inline-flex; align-items: center; gap: 6px; color: var(--dash-muted); }
.bst-rows dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }

.bst-cal { display: flex; justify-content: center; direction: rtl; }
.bst-cal .mud-picker { box-shadow: none; }
.bst-cal-title { font-weight: 600; }

/* ════════════════════════════════════════════════════════════════════
   MANAGEMENT REPORTS (rp-*)
════════════════════════════════════════════════════════════════════ */
.rp-filters { gap: 14px; padding: 14px 16px; }
@media (max-width: 899px) {
    .rp-filters { position: sticky; top: 64px; z-index: 6; box-shadow: 0 6px 20px rgba(15, 23, 42, 0.08); }
}
@media (max-width: 599px) { .rp-filters { top: 56px; } }
.rp-presets { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.rp-presets::-webkit-scrollbar { display: none; }
.rp-selects { display: flex; flex-wrap: wrap; gap: 8px; }
.rp-selects .ds-filter-select { flex: 0 1 220px; }
@media (max-width: 599px) { .rp-selects .ds-filter-select { flex: 1 1 calc(50% - 8px); } }

.rp-tabs-card { margin-top: 4px; }
.rp-tabs-card .ds-tabs { border-bottom: 0; }
@media (max-width: 699px) { .rp-tabs-card { background: var(--md-sys-color-surface-container-low) !important; border-radius: 12px; } .rp-tabs-card .ds-tabs { margin: 0 12px !important; } }

.rp-body { display: flex; flex-direction: column; gap: 20px; transition: opacity 0.2s ease; }
.rp-body.is-loading { opacity: 0.55; pointer-events: none; }
.rp-grid { display: grid; gap: 20px; min-width: 0; }
.rp-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rp-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rp-grid--2-1 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
@media (max-width: 1199px) { .rp-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .rp-grid--2-1 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 799px) { .rp-grid--2, .rp-grid--3 { grid-template-columns: minmax(0, 1fr); } .rp-body, .rp-grid { gap: 14px; } }

.rp-head { margin-bottom: 8px; }
.rp-chart { min-width: 0; margin: 0 -6px; }
.rp-chart .apexcharts-canvas { margin: 0 auto; }
.rp-chart .apexcharts-text, .rp-chart .apexcharts-legend-text, .rp-chart .apexcharts-tooltip, .rp-chart .apexcharts-datalabel { font-family: 'Vazirmatn', sans-serif !important; }
.rp-chart .apexcharts-tooltip { direction: rtl; border-radius: 10px !important; box-shadow: 0 8px 24px rgba(15, 23, 42, 0.16) !important; }
.rp-chart .apexcharts-legend { direction: rtl; }
.rp-chart .apexcharts-menu { direction: rtl; border-radius: 10px; font-family: 'Vazirmatn', sans-serif; }

.rp-insights { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 799px) { .rp-insights { grid-template-columns: minmax(0, 1fr); gap: 12px; } }
.rp-insight { flex-direction: row; align-items: center; gap: 14px; padding: 16px 18px; }
.rp-insight-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 14px;
    background: var(--dash-accent-soft);
    color: var(--dash-accent);
}
.rp-insight-icon .mud-icon-root { font-size: 1.5rem; }
.rp-insight-value { font-size: 1.15rem; font-weight: 700; line-height: 1.4; }
.rp-insight-sub { font-size: 0.8rem; color: var(--dash-muted); }

.rp-table-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 16px 10px; }
.rp-table-head .ds-action-link { padding: 0; }
.rp-share { display: flex; align-items: center; gap: 8px; min-width: 120px; }
.rp-share span { height: 6px; border-radius: 999px; background: var(--dash-seq-3); min-width: 2px; }
.rp-share b { font-size: 0.8rem; font-variant-numeric: tabular-nums; }

.rp-range { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; direction: rtl; }
@media (max-width: 699px) { .rp-range { grid-template-columns: minmax(0, 1fr); } }
.rp-range-label { margin-bottom: 6px; font-size: 0.88rem; color: var(--md-sys-color-on-surface-variant); }
.rp-range .mud-picker { box-shadow: none; }


/* ════════════════════════════════════════════════════════════════════
   KPI TILES (refined) — light card, soft icon chip, change pill, sparkline
════════════════════════════════════════════════════════════════════ */
.kpi-tile {
    position: relative;
    gap: 6px;
    min-height: 168px;
    padding: 18px 20px 0;
    overflow: hidden;
}
.kpi-tile-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.kpi-tile-label { font-size: 0.88rem; font-weight: 600; color: var(--dash-muted); }
.kpi-tile-icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: color-mix(in srgb, var(--kpi) 13%, transparent);
    color: var(--kpi);
}
.kpi-tile-icon .mud-icon-root { font-size: 1.3rem; }
.kpi-tile-value {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-top: 2px;
    font-size: clamp(1.55rem, 2.2vw, 1.95rem);
    font-weight: 800;
    letter-spacing: -0.01em;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
    color: var(--dash-text);
}
.kpi-tile-value small { font-size: 0.78rem; font-weight: 500; color: var(--dash-muted); letter-spacing: 0; }
.kpi-tile-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; position: relative; z-index: 1; }
.kpi-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px 2px 10px;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}
.kpi-pill .mud-icon-root { font-size: 1rem; }
.kpi-pill.is-up { background: color-mix(in srgb, var(--dash-up) 14%, transparent); color: var(--dash-up); }
.kpi-pill.is-down { background: color-mix(in srgb, var(--dash-down) 14%, transparent); color: var(--dash-down); }
.kpi-tile-note { font-size: 0.76rem; color: var(--dash-muted); }
.kpi-spark { display: block; width: calc(100% + 40px); height: 46px; margin: 6px -20px 0; }
.kpi-spark-line { fill: none; stroke: var(--kpi); stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }

/* ════════════════════════════════════════════════════════════════════
   HERO (refined) — calmer art, clearer hierarchy
════════════════════════════════════════════════════════════════════ */
.dash-hero {
    background:
        radial-gradient(120% 90% at 0% 100%, rgba(30, 136, 229, 0.30) 0%, transparent 55%),
        radial-gradient(80% 70% at 10% 0%, rgba(0, 172, 193, 0.18) 0%, transparent 60%),
        linear-gradient(160deg, var(--dash-ink) 0%, var(--dash-ink-2) 100%) !important;
    padding: 24px 26px 22px;
}
.dash-hero-art { opacity: 0.55; bottom: 110px; color: rgba(255, 255, 255, 0.12); }
.dash-hero .dash-card-title { font-size: 1.1rem; font-weight: 600; }
.dash-hero-value { font-size: clamp(2.1rem, 3.6vw, 3.1rem); font-weight: 800; letter-spacing: -0.015em; margin-top: 2px; }
.dash-hero .dash-delta--lg {
    display: inline-flex;
    margin-top: 12px;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.10);
    font-size: 0.9rem;
}
.dash-hero-divider { margin: 22px 0 18px; background: rgba(255, 255, 255, 0.10); }
.dash-hero-metrics { gap: 14px 0; }
.dash-hero-metric { padding-inline-end: 26px; margin-inline-end: 26px; border-inline-end: 1px solid rgba(255, 255, 255, 0.10); }
.dash-hero-metric:last-child { border: 0; margin: 0; padding: 0; }
.dash-hero-metric-icon { border: 0; background: rgba(255, 255, 255, 0.08); color: #90CAF9; }
.dash-hero-metric-value { font-size: 1.25rem; font-weight: 800; }
.dash-glass {
    padding: 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: background 0.15s ease;
}
.dash-glass:hover { background: rgba(255, 255, 255, 0.09); }
.dash-glass-title { font-size: 0.82rem; font-weight: 600; color: rgba(255, 255, 255, 0.65); margin-bottom: 8px; }
.dash-glass-value { font-size: 1.12rem; font-weight: 700; }
.dash-glass-icon { background: rgba(255, 255, 255, 0.12); color: #FFFFFF; }
@media (max-width: 599px) {
    .dash-hero-metric { border: 0; margin: 0; padding: 0; flex: 1 1 45%; }
}

/* ════════════════════════════════════════════════════════════════════
   INK CARDS IN LIGHT MODE — the dark "ink" cards (hero, trend, KPI heroes)
   follow the theme: light surface with a soft blue wash, dark text.
════════════════════════════════════════════════════════════════════ */
html:not([data-theme='dark']) .dash-card--ink {
    --dash-text:      #1B2430;
    --dash-muted:     #64707D;
    --dash-line:      rgba(27, 36, 48, 0.09);
    --dash-pill-bg:   #ECEFF3;
    --dash-pill-text: #1B2430;
    --dash-accent:    #1E88E5;
    --dash-up:        #16A34A;
    --dash-down:      #DC2626;
    --dc-dot-ring:    #FFFFFF;
    background: #FFFFFF !important;
    border-color: transparent;
    color: var(--dash-text);
}
html:not([data-theme='dark']) .dash-hero {
    background:
        radial-gradient(120% 90% at 0% 100%, rgba(30, 136, 229, 0.10) 0%, transparent 55%),
        radial-gradient(80% 70% at 10% 0%, rgba(0, 172, 193, 0.08) 0%, transparent 60%),
        #FFFFFF !important;
}
html:not([data-theme='dark']) .dash-card--ink .dash-pill--light { background: var(--dash-accent); color: #FFFFFF; }
html:not([data-theme='dark']) .dash-card--ink a.dash-pill:hover { filter: brightness(0.95); }
html:not([data-theme='dark']) .dash-hero-art { color: rgba(30, 136, 229, 0.10); }
html:not([data-theme='dark']) .dash-hero .dash-delta--lg { background: #F1F4F7; }
html:not([data-theme='dark']) .dash-hero-divider { background: var(--dash-line); }
html:not([data-theme='dark']) .dash-hero-metric { border-inline-end-color: var(--dash-line); }
html:not([data-theme='dark']) .dash-hero-metric-icon { background: rgba(30, 136, 229, 0.10); color: #1E88E5; }
html:not([data-theme='dark']) .dash-glass {
    background: #F5F7FA;
    border-color: rgba(27, 36, 48, 0.06);
    backdrop-filter: none;
}
html:not([data-theme='dark']) .dash-glass:hover { background: #EEF2F6; }
html:not([data-theme='dark']) .dash-glass-title { color: var(--dash-muted); }
html:not([data-theme='dark']) .dash-glass-icon { background: #1E88E5; color: #FFFFFF; }
html:not([data-theme='dark']) .be-start-tips { color: var(--dash-muted); }
html:not([data-theme='dark']) .be-start-tips kbd { background: #ECEFF3; color: #1B2430; }
html:not([data-theme='dark']) .be-start-btn { background: #1E88E5 !important; color: #FFFFFF !important; }
