/* ============================================================
   style-22-analytics.css — SR-17 Shared Analytics Components
   Prefix: analytics-*
   Reused by: fuel (FEAT-014) and all subsequent analytics features.
   Supports both light and dark themes.
   ============================================================ */

/* ── KPI card ─────────────────────────────────────────────── */
.analytics-kpi-card {
    background: var(--bg-secondary, #161b2e);
    border: 1px solid var(--border-color, #2a2f45);
    border-radius: 10px;
    padding: 18px 20px;
    min-width: 160px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

body[data-theme="light"] .analytics-kpi-card {
    background: #ffffff;
    border-color: #dee2e6;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
}

.analytics-kpi-icon {
    font-size: 1.4rem;
    margin-bottom: 2px;
}

.analytics-kpi-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary, #e8eaf0);
    line-height: 1.2;
}

body[data-theme="light"] .analytics-kpi-value {
    color: #1a1d2e;
}

.analytics-kpi-label {
    font-size: 0.8rem;
    color: var(--text-muted, #adb5bd);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.analytics-kpi-sub {
    font-size: 0.75rem;
    color: var(--text-muted, #adb5bd);
    margin-top: 2px;
}

/* ── Empty state ──────────────────────────────────────────── */
.analytics-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: var(--text-muted, #adb5bd);
    text-align: center;
}

.analytics-empty-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
    opacity: 0.6;
}

.analytics-empty-msg {
    font-size: 0.95rem;
    color: var(--text-muted, #adb5bd);
}
