﻿/* Dashboard chrome shared across components, so it cannot be scoped to any one of them.
   .chart-card/.chart-title/.chart-subtitle/.chart-empty are used by all eight charts;
   the .kpi-popup-* set is shared by KpiCard and the Collection Rate drill-down.
   Component-private rules stay in that component's own .razor.css */

.kpi-info-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    min-height: 200px;
    background: var(--orca-surface);
    border: 1px solid var(--orca-teal);
    border-radius: 12px;
    padding: 20px 22px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: 0 8px 32px rgba(15, 30, 46, 0.18);
}

.kpi-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.kpi-popup-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--orca-navy);
}

.kpi-popup-close {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1px solid var(--orca-border);
    background: transparent;
    color: var(--orca-text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    line-height: 1;
    padding: 0;
    flex-shrink: 0;
}

.kpi-popup-close:hover {
    background: #F4F6F9;
}

.kpi-popup-body {
    font-size: 12.5px;
    color: var(--orca-body);
    line-height: 1.55;
    margin: 0;
    overflow-y: auto;
}

.chart-card {
    padding: 18px 20px;
    background: var(--orca-surface);
    border: 1px solid var(--orca-border);
    border-radius: 12px;
}

.chart-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 15px;
    color: var(--orca-navy);
    margin-bottom: 16px;
}

.chart-subtitle {
    font-family: 'Manrope', sans-serif;
    font-weight: 500;
    font-size: 12px;
    /* Body text, so it belongs on the text token, not --orca-faint (AB#1205). On faint it measured
       2.48:1 — the worst contrast failure in the app. */
    color: var(--orca-text-muted);
}

.chart-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    color: var(--orca-text-muted);
    font-size: 0.85rem;
}


/* ── Applied to Radzen components ──────────────────────────────────────────
   Blazor stamps a scope attribute only on elements a component renders itself, never
   on a child COMPONENT's root. RadzenCard emits its own <div class="rz-card …"> and
   RadzenIcon its own <i class="rzi …">, so neither carries the parent's scope and any
   rule for them must be global. .dash-empty-icon had this bug before the component
   split too — it has never applied from Home.razor.css. */

.kpi-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 17px 18px;
    background: var(--orca-surface);
    border: 1px solid var(--orca-border);
    border-radius: 12px;
}

.kpi-info-btn .rzi {
    font-size: 14px;
}

.kpi-chip .rzi {
    font-size: 1.2rem;
    color: var(--orca-teal);
}

.dash-empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.4;
}
