/*
 * The backoffice sidebar's own spacing (Sets, 06.08.2026).
 *
 * ⚠ Plain CSS served through `filament:assets`, NOT a Tailwind theme build —
 * the reason `permission-matrix.css` gives: the panel has no custom theme, and
 * referencing the Vite manifest from the provider crashed the application
 * wherever the front end was not built (build #765).
 *
 * ── What it changes ───────────────────────────────────────────────────────
 *
 * ⛔ Twenty-eight pixels stood between one group heading and the next, and with
 * every group collapsed that is all the sidebar was: eight headings floating in
 * white space, most of a screen tall, with nothing joining or separating them
 * (Sets, 06.08.2026 — "cok asiri buyuk bosluklar var").
 *
 * ⚠ So the gap comes down and a rule takes over the job it was doing. A line
 * separates in one pixel what the gap needed twenty-eight for, and the list
 * then reads as one list with sections rather than as scattered words.
 */

.fi-sidebar-nav-groups {
    gap: 0.5rem;
}

/*
 * ⚠ `+` rather than `:not(:first-child)`: the rule belongs BETWEEN two groups,
 * so it is drawn by the second of each pair. Nothing is drawn above the first
 * group or below the last, which is what keeps it a separator rather than a
 * box.
 */
.fi-sidebar-nav-groups > .fi-sidebar-group + .fi-sidebar-group {
    /*
     * ⚠ Mixed from `currentColor` rather than named from the grey scale,
     * because the sidebar is dark in one theme and light in the other and this
     * one declaration is then right in both — a fixed grey that reads as a
     * hairline on white reads as a scar on near-black.
     */
    border-top: 1px solid color-mix(in oklab, currentColor 14%, transparent);
    padding-top: 0.5rem;
}
