/*
 * The LMS look (spacing, type sizes, density, side menu, page header, sections, tables, filter bar, chips, buttons,
 * forms) copied from NEFT-LMS/web/public/neft/lms.css sections 2 and 4-7, so the Coaches portal reads as part of the
 * same system. Only the colour tokens below are the Coaches portal's own (the prototype's navy and orange); every
 * other rule is the LMS's. Update by re-copying those sections. Loaded before coaches.css.
 */

/* ---------------------------------------------------------------- Tokens: Coaches colours, LMS names */
:root {
    --font-ui: 'IBM Plex Sans', 'IBM Plex Sans Arabic', system-ui, 'Segoe UI', sans-serif;
    --font-ar: 'IBM Plex Sans Arabic', 'IBM Plex Sans', system-ui, sans-serif;
    --font-num: 'IBM Plex Mono', ui-monospace, Consolas, monospace;

    --brand: #0a2540;          /* top bar (the prototype's hero navy) */
    --brand-2: #14587f;
    --accent: #0a3d62;         /* buttons, links, current item (the prototype's --ac) */
    --accent-soft: #e6eef6;    /* the prototype's --ac2 */
    --accent-bright: #f58220;  /* the prototype's orange (--hl) */

    --bg: #f4f6fa;
    --surface: #ffffff;
    --surface-2: #f8fafc;
    --ink: #14233a;
    --ink-2: #344054;
    --ink-3: #667085;
    --line: #e3e8f0;
    --line-strong: #cbd5e1;

    --ok: #067647;   --ok-soft: #ecfdf3;
    --warn: #93370d; --warn-soft: #fffaeb;
    --bad: #b42318;  --bad-soft: #fef3f2;
    --info: #14587f; --info-soft: #e6eef6;

    --r: 12px; --r-sm: 8px; --r-xs: 6px;
    --shadow: 0 6px 20px rgba(20, 35, 58, .12);
}
/* Dark: the prototype's dark colours. */
html.dark, .dark {
    --brand: #0b1a29; --brand-2: #14324a; --accent: #3d8fd1; --accent-soft: #1b2c3d;
    --bg: #0f1620; --surface: #1a2431; --surface-2: #151e29; --ink: #e8ecf2; --ink-2: #c5cdd8; --ink-3: #98a2b3;
    --line: #2c3a4a; --line-strong: #3a4b5e;
    --ok: #47cd89; --ok-soft: #12301f; --warn: #f5b041; --warn-soft: #3a2c14; --bad: #f97066; --bad-soft: #3c1d1a; --info: #6ea8e8; --info-soft: #18283b;
    --shadow: 0 6px 20px rgba(0, 0, 0, .4);
}

/* ================================================================ 2. Base */
html { font-size: 13.5px; }
body.fi-body { --topbar-height: 52px; background: var(--bg); color: var(--ink); font-family: var(--font-ui); font-size: 13.5px; line-height: 1.5; }
html[dir='rtl'] body.fi-body, [lang='ar'] { font-family: var(--font-ar); }
.fi-body a:not([class]) { color: var(--accent); }
.fi-body a:not([class]):hover { color: var(--brand); }
.dark .fi-body a:not([class]):hover { color: var(--accent-bright); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.neft-mono, .neft-num { font-family: var(--font-num); font-variant-numeric: tabular-nums; }
.neft-muted { color: var(--ink-3); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.fi-body, .fi-body * { scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }


/* ================================================================ 4. Side menu (neft.css .side, ops.css .side) */
.fi-sidebar.fi-main-sidebar { background: var(--surface); border-inline-end: 1px solid var(--line); }
@media (min-width: 1024px) { .fi-body-has-topbar .fi-sidebar.fi-main-sidebar { background: var(--surface); } }
.fi-sidebar-nav { padding: 12px 8px 12px; row-gap: 0; scrollbar-gutter: auto; }
.fi-sidebar-nav-groups { row-gap: 0; margin-inline: 0; gap: 0; }
.fi-sidebar-group, .fi-sidebar-group-items { row-gap: 2px; gap: 2px; }
.fi-sidebar-group-btn { padding: 12px 10px 4px; min-height: 0; gap: 6px; }
.fi-sidebar-group-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); }
/* Group fold arrows kept small and quiet (Waqas, 2026-10-22). */
.fi-sidebar-group-collapse-btn { width: 18px; height: 18px; margin: -2px -4px -2px 0; color: var(--ink-3); opacity: 0; transition: opacity .1s; }
.fi-sidebar-group-btn:hover .fi-sidebar-group-collapse-btn, .fi-sidebar-group-collapse-btn:focus-visible { opacity: .8; }
.fi-sidebar-group-collapse-btn .fi-icon { width: 12px; height: 12px; }
.fi-sidebar-item-btn { padding: 8px 10px; gap: 10px; border-radius: var(--r-xs); justify-content: flex-start; min-height: 0; }
.fi-sidebar-item-btn > .fi-icon { width: 18px; height: 18px; color: var(--ink-2); }
.fi-sidebar-item-label { font-size: 13.5px; font-weight: 400; color: var(--ink-2); }
.fi-sidebar-item.fi-sidebar-item-has-url > .fi-sidebar-item-btn:hover { background: var(--surface-2); }
.fi-sidebar-item.fi-sidebar-item-has-url > .fi-sidebar-item-btn:hover .fi-sidebar-item-label { color: var(--ink); }
.fi-sidebar-item.fi-active > .fi-sidebar-item-btn { background: var(--accent-soft); }
.fi-sidebar-item.fi-active > .fi-sidebar-item-btn > .fi-sidebar-item-label, .fi-sidebar-item.fi-active > .fi-sidebar-item-btn > .fi-icon { color: var(--accent); }
.fi-sidebar-item.fi-active > .fi-sidebar-item-btn > .fi-sidebar-item-label { font-weight: 600; }
/* A parent whose child screen is open: not highlighted itself (the child is). */
.fi-sidebar-item.fi-sidebar-item-has-active-child-items > .fi-sidebar-item-btn > .fi-sidebar-item-label { color: var(--ink); font-weight: 600; }
/* The count at the end of an item ("6 today", "41"): plain small grey text, no pill. */
.fi-sidebar-item-badge-ctn .fi-badge { background: none !important; box-shadow: none !important; --tw-ring-shadow: 0 0 #0000; padding: 0; min-width: 0; font-size: 11px; font-weight: 400; color: var(--ink-3) !important; }
.fi-sidebar-item.fi-active .fi-sidebar-item-badge-ctn .fi-badge { color: var(--accent) !important; }
/* Child screens (navigationParentItem): indented under their main item, no icon, lighter. */
.fi-sidebar-sub-group-items { margin: 0 0 4px; padding: 0; display: grid; gap: 1px; }
.fi-sidebar-sub-group-items .fi-sidebar-item-btn { padding: 5px 10px 5px 38px; }
[dir='rtl'] .fi-sidebar-sub-group-items .fi-sidebar-item-btn { padding: 5px 38px 5px 10px; }
.fi-sidebar-sub-group-items .fi-sidebar-item-grouped-border { display: none; }
.fi-sidebar-sub-group-items .fi-sidebar-item-label { font-size: 13px; color: var(--ink-3); }
/* Footer (ops.css .side .foot). */
.neft-side-foot { margin-top: auto; padding: 10px 18px 12px; font-size: 11.5px; line-height: 1.5; color: var(--ink-3); border-top: 1px solid var(--line); }
.fi-sidebar:not(.fi-sidebar-open) .neft-side-foot { display: none; }
/* Collapsed rail (kept from the ERP; Waqas 2026-10-22): one icon per item, current item in the accent colour. */
.fi-sidebar-group-dropdown-trigger-btn { display: grid; place-items: center; width: 100%; padding: 8px 0; border-radius: var(--r-xs); color: var(--ink-2); }
.fi-sidebar-group-dropdown-trigger-btn:hover { background: var(--surface-2); color: inherit; }
.fi-sidebar-group.fi-active .fi-sidebar-group-dropdown-trigger-btn { background: var(--accent-soft); color: var(--accent); }
.fi-sidebar-group .fi-dropdown-panel { min-width: 200px; }
.fi-sidebar-group .fi-dropdown-panel .fi-dropdown-list-item, .fi-sidebar-group .fi-dropdown-panel .fi-dropdown-list-item-label { font-size: 13.5px; font-weight: 400; }
.fi-sidebar-group .fi-dropdown-panel .fi-dropdown-header { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; font-weight: 700; color: var(--ink-3); padding: 10px 12px 4px; }


/* ================================================================ 5. Page header and sections (neft.css .content, .page-head, .panel) */
.fi-main { padding: 20px 24px; max-width: none; }
.fi-page > .fi-page-header-main-ctn, .fi-page-header-main-ctn { padding-block: 0; row-gap: 16px; gap: 16px; }
.fi-page-main { gap: 16px; row-gap: 16px; }
.fi-header { gap: 12px; align-items: center; }
/* Title and subtitle on one line, as the design's .page-head (h1 20px + .sub 13px grey). */
.fi-header > div:first-child { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 12px; row-gap: 2px; }
.fi-header > div:first-child > .fi-breadcrumbs { width: 100%; }
.fi-header-heading { font-size: 20px; line-height: 1.3; font-weight: 700; letter-spacing: normal; color: var(--ink); }
.fi-header-subheading { font-size: 13px; color: var(--ink-3); margin: 0; max-width: none; }
.fi-breadcrumbs, .fi-breadcrumbs-item-label { font-size: 12px; color: var(--ink-3); }
.fi-breadcrumbs { margin-bottom: 2px; }
.fi-header-actions-ctn, .fi-header .fi-ac { gap: 8px; }

.fi-section { border-radius: var(--r-xs); background: var(--surface); box-shadow: none; border: 1px solid var(--line); --tw-ring-shadow: 0 0 #0000; }
.fi-section-header { padding: 10px 14px; border-bottom: 1px solid var(--line); }
.fi-section-header-heading { font-size: 14px; font-weight: 600; color: var(--ink); }
.fi-section-header-description { font-size: 12px; color: var(--ink-3); }
.fi-section-content-ctn { border-top: 0; }
.fi-section-content { padding: 14px; }
.fi-in-entry-label, .fi-fo-field-label-content { color: var(--ink-3); }


/* ================================================================ 6. Tables (neft.css table.t), filter bar (ops.css .filters), segmented control (.seg-sm) */
.fi-ta-ctn { border-radius: var(--r-xs); background: var(--surface); box-shadow: none; border: 1px solid var(--line); --tw-ring-shadow: 0 0 #0000; }
.fi-ta-header-toolbar { padding: 8px 12px; gap: 8px; border-color: var(--line); }
.fi-ta-header-cell { font-size: 13px; font-weight: 600; color: var(--ink-2); padding: 8px 10px; background: var(--surface-2); border-bottom: 1px solid var(--line); white-space: nowrap; }
.fi-ta-header-cell:first-of-type { padding-inline-start: 12px; }
.fi-ta-table > thead > tr { background: var(--surface-2); }
.fi-ta-cell { padding: 0; font-size: 13px; }
.fi-ta-cell > .fi-ta-text, .fi-ta-cell > .fi-ta-icon, .fi-ta-cell > .fi-ta-col { padding: 7px 10px; }
.fi-ta-cell .fi-ta-col > .fi-ta-text, .fi-ta-cell .fi-ta-col > .fi-ta-icon { padding: 0; }
.fi-ta-cell:first-of-type > .fi-ta-text, .fi-ta-cell:first-of-type > .fi-ta-col { padding-inline-start: 12px; }
.fi-ta-cell .fi-ta-text-item, .fi-ta-cell .fi-ta-text { font-size: 13px; }
.fi-ta-row td { border-bottom: 1px solid var(--line); }
.fi-ta-table > tbody { border-color: var(--line); }
.fi-ta-row:hover > td { background: var(--surface-2); }
.fi-ta-row.fi-selected > td { background: var(--accent-soft); }
.fi-ta-actions-cell .fi-ac, .fi-ta-cell .fi-ta-actions { padding: 4px 10px; gap: 8px; }
.fi-ta-actions .fi-link, .fi-ta-actions .fi-ac-link-action { font-size: 12.5px; }
.fi-ta-filter-indicators { padding: 6px 12px; font-size: 12px; background: var(--surface-2); }
.fi-pagination { font-size: 12px; color: var(--ink-3); }
.fi-ta-footer-ctn, .fi-ta-pagination { border-color: var(--line); padding: 8px 12px; }
.fi-ta-empty-state { padding: 36px 16px; }
.fi-ta-empty-state-heading { font-size: 15px; font-weight: 600; color: var(--ink); }
.fi-ta-empty-state-description { color: var(--ink-3); font-size: 13px; }
.fi-ta-empty-state-icon-bg { background: var(--accent-soft); }
.fi-ta-empty-state-icon-bg .fi-icon { color: var(--accent); }

/* Numbers: monospaced, tabular (neft.css .num/.mono). End-aligned numeric columns, and columns given ->fontFamily('mono'). */
.fi-ta-cell.fi-align-end .fi-ta-text-item, .fi-ta-cell.fi-align-right .fi-ta-text-item,
.fi-font-mono, .fi-ta-text-item.fi-font-mono { font-family: var(--font-num); font-variant-numeric: tabular-nums; font-size: 12.5px; }
/* Record numbers that link (BTH-…, NEFT2026-…): mono, accent, no wrap (ops.css `table.t td a.mono`). */
.fi-ta-text-item.fi-font-mono.fi-color-primary, .neft-recno { color: var(--accent); white-space: nowrap; font-weight: 400; }

/* Filter bar: the filters above the table (Table default AboveContent, AppServiceProvider), laid out as the design's
   .filters row: search, then selects at their natural width, then a segmented control; no box, no "Filters" heading. */
.fi-ta-filters-above-content-ctn { padding: 10px 12px; border-bottom: 1px solid var(--line); background: var(--surface); display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: flex-end; }
.fi-ta-filters-above-content-ctn > .fi-ta-filters { flex: 1 1 auto; }
.fi-ta-filters-above-content-ctn .fi-ta-filters-header { display: none; }
.fi-ta-filters-above-content-ctn .fi-ta-filters .fi-sc, .fi-ta-filters-above-content-ctn .fi-ta-filters > .fi-fo-component-ctn,
.fi-ta-filters-above-content-ctn .fi-sc-component > .fi-sc, .fi-ta-filters-above-content-ctn .fi-grid { display: flex !important; flex-wrap: wrap; gap: 8px; align-items: flex-end; grid-template-columns: none !important; }
.fi-ta-filters-above-content-ctn .fi-grid-col, .fi-ta-filters-above-content-ctn .fi-sc-component { grid-column: auto !important; flex: 0 1 auto; min-width: 150px; max-width: 280px; }
/* A segmented control (SegmentedFilter) takes the width of its choices. */
.fi-ta-filters-above-content-ctn .fi-sc-component:has(.fi-fo-toggle-buttons), .fi-ta-filters-above-content-ctn .fi-grid-col:has(.fi-fo-toggle-buttons) { max-width: none; flex: 0 0 auto; }
/* A segmented control (SegmentedFilter) keeps all its choices on one line. */
.fi-ta-filters-above-content-ctn .fi-grid-col:has([class*="fi-fo-toggle-buttons"]), .fi-ta-filters-above-content-ctn .fi-sc-component:has([class*="fi-fo-toggle-buttons"]) { max-width: none; flex: 0 0 auto; }
.fi-ta-filters-above-content-ctn .fi-fo-field-label-content { font-size: 11.5px; font-weight: 600; color: var(--ink-3); }
.fi-ta-filters-above-content-ctn .fi-fo-field { gap: 3px; row-gap: 3px; }
/* A select names itself in its empty choice ("Course: all"), so its label is only for screen readers. */
.fi-ta-filters-above-content-ctn .fi-fo-select .fi-fo-field-label-ctn, .fi-ta-filters-above-content-ctn .fi-fo-field:has(.fi-fo-select) > .fi-fo-field-label-col,
.fi-ta-filters-above-content-ctn .fi-fo-field:has(.fi-select-input) .fi-fo-field-label-ctn { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.fi-ta-filters-above-content-ctn .fi-input-wrp, .fi-ta-filters-above-content-ctn .fi-select-input, .fi-ta-filters-above-content-ctn .fi-input { min-height: 34px; font-size: 13px; }
.fi-ta-filters-above-content-ctn .fi-ta-filters-actions-ctn, .fi-ta-filters-above-content-ctn .fi-ta-filters-apply-action-ctn { align-self: flex-end; }
.fi-ta-filters-above-content-ctn .fi-link { font-size: 12.5px; }
/* The table's own search box sits on the same row in the toolbar: give it the design's width. */
.fi-ta-search-field { flex: 1 1 260px; max-width: 420px; }

/* Segmented control (ops.css .seg-sm): App\Filament\Support\SegmentedFilter renders a grouped ToggleButtons. */
.neft-seg, .fi-ta-filters .fi-fo-toggle-buttons.fi-btn-group, .neft-segmented .fi-btn-group {
    display: inline-grid; grid-auto-flow: column; grid-auto-columns: auto; border: 1px solid var(--line-strong); border-radius: var(--r-xs); overflow: hidden; box-shadow: none; --tw-ring-shadow: 0 0 #0000; background: var(--surface); }
.neft-seg > button, .neft-seg > a, .fi-ta-filters .fi-fo-toggle-buttons.fi-btn-group .fi-btn, .neft-segmented .fi-btn-group .fi-btn {
    min-height: 32px; padding: 0 12px; border: 0; border-radius: 0 !important; border-inline-start: 1px solid var(--line-strong); background: var(--surface); color: var(--ink-2);
    font: inherit; font-size: 12.5px; font-weight: 400; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; box-shadow: none; }
.neft-seg > :first-child, .fi-ta-filters .fi-fo-toggle-buttons.fi-btn-group > :first-child .fi-btn, .fi-ta-filters .fi-fo-toggle-buttons.fi-btn-group > .fi-btn:first-of-type { border-inline-start: 0; }
.neft-seg > [aria-checked='true'], .neft-seg > [aria-pressed='true'], .neft-seg > [aria-current='page'],
.fi-ta-filters .fi-fo-toggle-buttons.fi-btn-group input:checked + .fi-btn, .neft-segmented .fi-btn-group input:checked + .fi-btn { background: var(--brand); color: #fff; font-weight: 600; }
/* Filament 5 draws grouped toggle buttons without radio inputs: the chosen one carries aria-pressed. */
.fi-ta-filters .fi-fo-toggle-buttons.fi-btn-group .fi-btn[aria-pressed='true'], .neft-segmented .fi-btn-group .fi-btn[aria-pressed='true'] { background: var(--brand); color: #fff; font-weight: 600; }
.dark .fi-ta-filters .fi-fo-toggle-buttons.fi-btn-group .fi-btn[aria-pressed='true'] { background: var(--accent); color: #0A1B22; }
.dark .neft-seg > [aria-checked='true'], .dark .fi-ta-filters .fi-fo-toggle-buttons.fi-btn-group input:checked + .fi-btn { background: var(--accent); color: #0A1B22; }
.neft-seg > :hover:not([aria-checked='true']), .fi-ta-filters .fi-fo-toggle-buttons.fi-btn-group .fi-btn:hover { background: var(--surface-2); }
.neft-usermenu-panel .neft-seg { display: grid; grid-auto-columns: 1fr; }
/* Filament 5 grouped ToggleButtons mark the choice with aria-pressed (no input:checked): the same look for both. */
.fi-ta-filters .fi-fo-toggle-buttons.fi-btn-group .fi-btn, .neft-segmented .fi-btn-group .fi-btn { background: var(--surface) !important; color: var(--ink-2) !important; }
.fi-ta-filters .fi-fo-toggle-buttons.fi-btn-group .fi-btn[aria-pressed='true'], .neft-segmented .fi-btn-group .fi-btn[aria-pressed='true'] { background: var(--brand) !important; color: #fff !important; font-weight: 600; }
.dark .fi-ta-filters .fi-fo-toggle-buttons.fi-btn-group .fi-btn[aria-pressed='true'], .dark .neft-segmented .fi-btn-group .fi-btn[aria-pressed='true'] { background: var(--accent) !important; color: #0A1B22 !important; }

/* Status tabs above a list: underlined like the design's .tabs (left-aligned, small grey counts). */
.fi-tabs { background: transparent; box-shadow: none; padding: 0; border-radius: 0; margin-inline: 0 !important; max-width: none; width: 100%;
    justify-content: flex-start; gap: 2px; border-bottom: 1px solid var(--line); overflow-x: auto; overflow-y: hidden; --tw-ring-shadow: 0 0 #0000; }
.fi-tabs-item { padding: 9px 14px; border-radius: 0; background: transparent !important; border-bottom: 2px solid transparent; margin-bottom: -1px;
    font-size: 13.5px; font-weight: 400; color: var(--ink-3); white-space: nowrap; }
.fi-tabs-item:hover { color: var(--ink); }
.fi-tabs-item.fi-active { color: var(--ink); border-bottom-color: var(--accent); font-weight: 600; }
.fi-tabs-item .fi-tabs-item-label { color: inherit; font-size: 13.5px; }
.fi-tabs-item .fi-badge { background: none !important; box-shadow: none; padding: 0; font-size: 11px; font-weight: 400; color: var(--ink-3) !important; }


/* ================================================================ 7. Status chips (neft.css .chip), buttons, forms */
/* Every Filament badge reads as a design chip; the colour names map 1:1 (docs/ui-components.md "Status chips"):
   success = chip-ok · warning = chip-warn · danger = chip-bad · info = chip-info · gray = chip-neutral · primary = accent. */
.fi-badge { border-radius: 999px; font-size: 11.5px; font-weight: 600; padding: 2px 8px; min-height: 0; gap: 4px; box-shadow: none; --tw-ring-shadow: 0 0 #0000; white-space: nowrap; }
.fi-badge.fi-color-success { background: var(--ok-soft); color: var(--ok); }
.fi-badge.fi-color-warning { background: var(--warn-soft); color: var(--warn); }
.fi-badge.fi-color-danger { background: var(--bad-soft); color: var(--bad); }
.fi-badge.fi-color-info { background: var(--info-soft); color: var(--info); }
.fi-badge.fi-color-gray, .fi-badge:not([class*='fi-color-']) { background: var(--surface-2); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); }
.fi-badge.fi-color-primary { background: var(--accent-soft); color: var(--accent); }
.fi-badge .fi-badge-label, .fi-badge .fi-icon { color: inherit; }
/* The same chips for hand-written markup: <span class="neft-chip neft-chip-ok">Valid</span> (x-neft.chip). */
.neft-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 999px; white-space: nowrap; line-height: 1.5; }
.neft-chip-ok { background: var(--ok-soft); color: var(--ok); }
.neft-chip-warn { background: var(--warn-soft); color: var(--warn); }
.neft-chip-bad { background: var(--bad-soft); color: var(--bad); }
.neft-chip-info { background: var(--info-soft); color: var(--info); }
.neft-chip-neutral { background: var(--surface-2); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); }
.neft-chip-accent { background: var(--accent-soft); color: var(--accent); }
.neft-tag { font-family: var(--font-num); font-size: 12px; padding: 1px 6px; border-radius: 4px; background: var(--surface-2); border: 1px solid var(--line); white-space: nowrap; }

/* Buttons: 34px, 6px radius, 13px semibold (ops.css density). primary = teal, gray = ghost. */
.fi-btn { border-radius: var(--r-xs); padding: 0 12px; min-height: 34px; font-size: 13px; font-weight: 600; gap: 6px; }
.fi-btn.fi-size-sm, .fi-btn.fi-size-xs { min-height: 26px; padding: 0 8px; font-size: 12px; }
.fi-btn.fi-size-lg, .fi-btn.fi-size-xl { min-height: 44px; padding: 0 18px; font-size: 14.5px; }
.fi-btn.fi-color-gray:not(.fi-outlined) { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); }
.fi-btn.fi-color-gray:not(.fi-outlined):hover { box-shadow: inset 0 0 0 1px var(--accent); background: var(--surface); }
.fi-btn .fi-icon { width: 16px; height: 16px; }
.fi-icon-btn { border-radius: var(--r-xs); }
.fi-link { font-weight: 600; }

/* Inputs: 34px, 6px radius, line-strong border (ops.css .staff .input). */
.fi-input-wrp { border-radius: var(--r-xs); background: var(--surface); }
.fi-input, .fi-select-input { font-size: 13px; }
.fi-input { padding-block: 6px; }
.fi-fo-field-label-content, .fi-fo-field-wrp-label { font-size: 12px; font-weight: 600; color: var(--ink-2); }
.fi-fo-field-wrp-helper-text, .fi-fo-field-wrp-hint, .fi-sc-text { font-size: 12px; }
.fi-modal-window { border-radius: var(--r); }
.fi-modal-heading { font-size: 15px; font-weight: 700; }
.fi-dropdown-panel { border-radius: var(--r-sm); }



/* Primary buttons in the exact accent (Filament mixes its own shade otherwise). */
.fi-btn.fi-color-primary:not(.fi-outlined) { background: var(--accent); color: #fff; }
.fi-btn.fi-color-primary:not(.fi-outlined):hover { background: var(--accent); filter: brightness(1.08); }
.dark .fi-btn.fi-color-primary:not(.fi-outlined) { color: #0A1B22; }

/* ---------------------------------------------------------------- Top bar (the LMS's navy bar, on Filament's own top bar) */
.fi-topbar { min-height: 52px; height: 52px; padding: 0 16px; gap: 16px; background: var(--brand); color: #fff; box-shadow: none; border: 0; --tw-ring-shadow: 0 0 #0000; }
.fi-topbar-ctn { z-index: 30; }
.fi-topbar .fi-icon-btn { color: #d3e1ee; }
.fi-topbar .fi-icon-btn:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.fi-topbar .fi-user-avatar { width: 28px; height: 28px; }
