/* MetaReports — Elite dashboard styling on top of Filament */

/* ── Typography ────────────────────────────────────────── */
.fi-header-heading {
    font-weight: 800;
    letter-spacing: -0.03em;
    font-size: 1.75rem;
}

/* ── Stat cards ────────────────────────────────────────── */
.fi-wi-stats-overview-stat {
    border-radius: 14px;
    border: 1px solid rgba(0,0,0,0.04);
    transition: box-shadow 200ms ease, transform 200ms ease;
    background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
}
.fi-wi-stats-overview-stat:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    transform: translateY(-2px);
}
.fi-wi-stats-overview-stat-value {
    font-family: 'Inter', system-ui, sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.03em;
    color: #0f172a;
}
.fi-wi-stats-overview-stat-label {
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.65rem;
    font-weight: 700;
    color: #64748b;
}
.fi-wi-stats-overview-stat-description {
    font-size: 0.75rem;
    font-weight: 600;
}

/* ── Section cards ─────────────────────────────────────── */
.fi-section {
    border-radius: 16px;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 1px 3px rgba(0,0,0,0.03), 0 4px 12px rgba(0,0,0,0.02);
    overflow: hidden;
}
.fi-section-header {
    padding: 1rem 1.25rem;
}

/* ── Table polish ──────────────────────────────────────── */
.fi-ta {
    border-radius: 16px;
    overflow: hidden;
}
.fi-ta-header-cell {
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.65rem;
    font-weight: 700;
    color: #64748b;
}
.fi-ta-cell {
    font-variant-numeric: tabular-nums;
}

/* ── Sidebar active state ──────────────────────────────── */
.fi-sidebar-item.fi-active {
    border-left: 3px solid rgb(var(--primary-500));
    background: rgba(var(--primary-50), 0.5);
}

/* ── Charts ────────────────────────────────────────────── */
.apexcharts-canvas {
    border-radius: 12px;
}
.apexcharts-tooltip {
    border-radius: 10px !important;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12) !important;
    border: 1px solid rgba(0,0,0,0.06) !important;
}
.apexcharts-tooltip-title {
    background: #f8fafc !important;
    border-bottom: 1px solid #e2e8f0 !important;
    font-weight: 700 !important;
    font-size: 0.75rem !important;
}
.apexcharts-tooltip-text-y-value {
    font-weight: 700 !important;
    font-variant-numeric: tabular-nums;
}
.apexcharts-legend-text {
    font-weight: 600 !important;
    font-size: 0.75rem !important;
}
.apexcharts-yaxis-label, .apexcharts-xaxis-label {
    font-weight: 500;
    fill: #64748b;
}
.apexcharts-gridline {
    stroke: #f1f5f9;
}

/* ── Filter bar ────────────────────────────────────────── */
.fi-main .sticky {
    border-radius: 0 0 12px 12px;
    backdrop-filter: blur(12px);
}

/* ── Page transitions ──────────────────────────────────── */
.fi-main {
    transition: opacity 150ms ease;
}

/* ── Breadcrumbs ───────────────────────────────────────── */
.fi-breadcrumbs {
    font-size: 0.78rem;
    opacity: 0.65;
}

/* ── Tabular numbers everywhere ────────────────────────── */
.fi-section .text-xs,
.fi-section .text-sm {
    font-variant-numeric: tabular-nums;
}

/* ── Heatmap cell hover ────────────────────────────────── */
.fi-section td {
    transition: background 150ms ease;
}

/* ── Sparkline in stat cards ───────────────────────────── */
.fi-wi-stats-overview-stat canvas {
    opacity: 0.8;
}
.fi-wi-stats-overview-stat:hover canvas {
    opacity: 1;
}

/* ── Multi-select: remove Filament's chevron arrow ─────── */
/* Filament's forms.css applies a chevron to select:not(.choices) which
   overrides the [multiple] reset. Force-remove it for multi-selects. */
select[multiple]:not(.choices) {
    background-image: none;
    padding-right: 0.75rem;
}

/* ── DSR Diagnostics: elevated section boxes ───────────── */
.dsr-section {
    background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04),
                0 8px 24px rgba(15, 23, 42, 0.04);
    transition: box-shadow 200ms ease, transform 200ms ease;
}
.dsr-section:hover {
    box-shadow: 0 2px 4px rgba(15, 23, 42, 0.06),
                0 12px 32px rgba(15, 23, 42, 0.08);
}
.dsr-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.875rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}
.dsr-section-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #0f172a;
}
.dsr-section-title-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 9px;
    background: rgba(15, 23, 42, 0.04);
}
.dsr-section-title-icon svg {
    width: 1.125rem;
    height: 1.125rem;
}
.dsr-section-title-icon.tone-emerald { background: rgba(16, 185, 129, 0.10); color: #059669; }
.dsr-section-title-icon.tone-red     { background: rgba(239, 68,  68, 0.10); color: #dc2626; }
.dsr-section-title-icon.tone-blue    { background: rgba( 59,130, 246, 0.10); color: #2563eb; }
.dsr-section-title-icon.tone-amber   { background: rgba(245,158,  11, 0.10); color: #d97706; }
.dsr-section-title-icon.tone-violet  { background: rgba(139, 92, 246, 0.10); color: #7c3aed; }
.dsr-section-subtitle {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 500;
}
