/*
 | Nusuk admin — compact density (hand-written plain CSS, no Tailwind syntax).
 |
 | Why this file exists: the admin panel has NO custom Filament theme build
 | (no ->viteTheme()/theme.css), so Tailwind utility classes and recordClasses()
 | are not compiled and cannot be used for density. This tiny file is the
 | density lever until a real theme build exists. It is registered via
 | FilamentAsset in AppServiceProvider and published with
 | `php artisan filament:assets` (copied to public/css/app/nusuk-compact.css).
 |
 | Every selector + value below was verified against the rendered Filament
 | v5.6.8 DOM on the Streaming page (SES-NUSK#72): the vertical padding lives on
 | .fi-ta-text (text/badge cells) and .fi-ta-cell (action/bare cells); the stat
 | card padding lives on .fi-wi-stats-overview-stat. App CSS loads after core
 | Filament styles, so these equal-specificity rules win without !important.
 */

/* Dense table rows — many chains/connections later. The row-action kebab
   icon-button (~36px) is the practical floor, so ~.25rem block padding lands
   rows near it (57px -> ~41px) without clipping. */
.fi-ta-cell {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

.fi-ta-text {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

.fi-ta-header-cell {
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
}

/* Compact stat cards — smaller footprint so more data fits above the fold.
   Filament's default card padding is 1.5rem and the value is --text-3xl
   (~1.875rem); tightened here a notch past the first pass (SES-NUSK#97) so the
   health board reads dense while values stay readable. */
.fi-wi-stats-overview-stat {
    padding: 0.625rem 0.875rem;
}

.fi-wi-stats-overview-stat-value {
    font-size: 1.375rem;
    line-height: 1.7rem;
}

/* Tighten the vertical rhythm of the health board (SES-NUSK#97). Filament sets
   the schema-grid gap via `.fi-sc.fi-sc-has-gap` (default 1.5rem = --spacing * 6),
   shared by every section on the panel — including Resource forms. Scope the
   reduction so ONLY the stat board is affected, never form field/section spacing:
   1) `.fi-wi-stats-overview .fi-sc-has-gap` — the gap BETWEEN stat cards inside
      each widget band (matches Filament's specificity, loaded later → wins).
   2) `.fi-body-compact-widgets .fi-page-content > .fi-sc-has-gap` — the gap
      BETWEEN the stacked stat bands. The `fi-body-compact-widgets` body class is
      added only by the 4 dashboard pages (getExtraBodyAttributes), so Resource
      create/edit pages keep the default form rhythm. */
.fi-wi-stats-overview .fi-sc-has-gap {
    gap: 1rem;
}

.fi-body-compact-widgets .fi-page-content > .fi-sc-has-gap {
    gap: 1rem;
}
