:root { --hb-link: var(--info-700); } .dark { --hb-link: var(--info-400); }.fi-body .fi-main { padding-inline: calc(var(--spacing) * 3) !important; }
.fi-body .fi-page-header-main-ctn { row-gap: calc(var(--spacing) * 2); padding-block: calc(var(--spacing) * 3); }
/* Page titles (UI polish, 2026-10-23: "make sure the UI is scaled appropriately"): one size on every screen,
   24 px instead of Filament's 30 px; the line under a title at the body's size and the page's width (Filament's
   18 px in a 672 px column wrapped a two-line note into three or four). */
.fi-body .fi-header-heading { font-size: var(--text-2xl); line-height: var(--text-2xl--line-height); }
.fi-body .fi-header-subheading { margin-top: calc(var(--spacing) * 1); max-width: 64rem; font-size: var(--text-sm); line-height: var(--text-sm--line-height); }
/* The title block takes the room the header buttons leave, so the buttons stay top right beside it
   (they only go under the title when the screen is too narrow for both). Only where Filament lays the
   header out as a row (640 px and up): on a phone it is a column, and a 20rem flex-basis became the title
   block's HEIGHT — a ~320 px gap under every title (owner, 2026-10-25, the phone dashboard). */
@media (min-width: 40rem) {
    .fi-body .fi-header > div:first-child { flex: 1 1 20rem; min-width: 0; }
    .fi-body .fi-header > .fi-header-actions-ctn { align-self: flex-start; margin-inline-start: auto; }
    /* Under a breadcrumb the buttons line up with the title's foot instead of the breadcrumb (no gap when they wrap). */
    .fi-body .fi-page:not(.fi-resource-list-records-page) .fi-header-has-breadcrumbs > .fi-header-actions-ctn { align-self: flex-end; }
}
/* Phones (mobile pass, 2026-10-27). The "?" (the screen's lesson) beside header buttons that wrap to two or three
   rows sat halfway down beside them, the buttons indented after it: one flow now, the "?" first. A list's toolbar
   with no buttons on its left kept their empty 36 px row above the search box. */
@media (max-width: 39.99rem) {
    .fi-body .fi-header-actions-ctn { flex-wrap: wrap; }
    .fi-body .fi-header-actions-ctn > .fi-ac { display: contents; }
    /* A box's buttons beside its title took the room and squeezed the title and its note into a column of one or
       two words a line (Settings → Cutover, "MRPEasy exports"): the title keeps at least 12rem, the buttons go
       under it when both don't fit. */
    .fi-body .fi-section-header { flex-wrap: wrap; }
    .fi-body .fi-section-header > .fi-section-header-text-ctn { min-width: min(100%, 12rem); }
    /* A report's number cards two to a row instead of one, their numbers 20 px instead of 30: one card a row left
       most of each card empty and made the sales report ~12,000 px long. */
    .fi-body .fi-wi-stats-overview .fi-grid:has(> .fi-grid-col > .fi-sc-component > .fi-wi-stats-overview-stat) { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    .fi-body .fi-wi-stats-overview-stat .fi-wi-stats-overview-stat-value { font-size: var(--text-xl); line-height: var(--text-xl--line-height); overflow-wrap: anywhere; }
    .fi-body .fi-ta-header-toolbar > .fi-ta-actions:not(:has(*)) { display: none; }
}
/* A list's breadcrumb only said "<the title> > List": the title alone (record pages keep theirs). */
.fi-body .fi-resource-list-records-page .fi-header .fi-breadcrumbs { display: none; }
.fi-body .fi-page-content { row-gap: calc(var(--spacing) * 3); }
.fi-body .fi-page-main { gap: calc(var(--spacing) * 3); }
.fi-body .fi-sc-has-gap { gap: calc(var(--spacing) * 3); }
.fi-body .fi-fo-field { row-gap: calc(var(--spacing) * 1); }
.fi-body .fi-in-entry { row-gap: calc(var(--spacing) * 0.5); }
.fi-body .fi-section-header { padding-inline: calc(var(--spacing) * 3) !important; padding-block: calc(var(--spacing) * 2) !important; }
/* The section's own padding, made tight (Filament's 24 px was being added to, not replaced: 36 px on every box; owner, 2026-10-19). */
.fi-body .fi-section-content { padding: calc(var(--spacing) * 3) !important; }
.fi-body .fi-wi-stats-overview-stat { padding: calc(var(--spacing) * 3) !important; }
/* A stat card's small chart (24 px, at the card's foot) had only those 12 px: it ran through the line above it. */
.fi-body .fi-wi-stats-overview-stat:has(.fi-wi-stats-overview-stat-chart) { padding-bottom: calc(var(--spacing) * 7) !important; }
/* Table cells (UI polish, 2026-10-24: wide lists at 1280 with the menu open): 6 px either side of a value,
   a row's first and last cell 8 px in from the table's edge (Filament: 12), row buttons and checkboxes
   6 px above and below (Filament: 16). A header sits right over its values: Filament keeps the edge's
   room on the row's first / last cell and the value's own room inside it, so the headers at the edges
   get both (the first one sat 8 px left of its column). */
.fi-body .fi-ta-text:not(.fi-inline),
.fi-body .fi-ta-icon:not(.fi-inline),
.fi-body .fi-ta-color:not(.fi-inline),
.fi-body .fi-ta-image:not(.fi-inline),
.fi-body .fi-ta-checkbox:not(.fi-inline),
.fi-body .fi-ta-toggle:not(.fi-inline),
.fi-body .fi-ta-select:not(.fi-inline),
.fi-body .fi-ta-text-input:not(.fi-inline) { padding-inline: calc(var(--spacing) * 1.5); padding-block: calc(var(--spacing) * 1.5); }
.fi-body .fi-ta-cell:has(> .fi-ta-actions),
.fi-body .fi-ta-cell.fi-ta-selection-cell { padding-inline: calc(var(--spacing) * 1.5); padding-block: calc(var(--spacing) * 1.5); }
.fi-body .fi-ta-cell:first-child { padding-inline-start: calc(var(--spacing) * 2); }
.fi-body .fi-ta-cell:last-child { padding-inline-end: calc(var(--spacing) * 2); }
.fi-body .fi-ta-header-cell { padding-inline: calc(var(--spacing) * 1.5); padding-block: calc(var(--spacing) * 2); }
.fi-body .fi-ta-header-cell:first-child { padding-inline-start: calc(var(--spacing) * 3.5); }
.fi-body .fi-ta-header-cell:last-child { padding-inline-end: calc(var(--spacing) * 3.5); }
/* On a desktop the side menu stays the icon rail (SidebarRail; owner, 2026-11-05): no expand / collapse button. */
@media (min-width: 1024px) {
    .fi-sidebar-open-collapse-sidebar-btn, .fi-sidebar-close-collapse-sidebar-btn, .fi-topbar-collapse-sidebar-btn-ctn { display: none !important; }
}
/* Every searchable drop-down list (owner, 2026-11-20: "i need the dropdown for items to be wide enough that the
   description doesn't need to wrap ... id like that for all items search dropdowns"): as wide as its longest
   line, never narrower than its box, at most 60rem and the screen. Inside @layer base on purpose: Filament's
   own cap (.fi-select-input .fi-dropdown-panel { max-width: 100% !important }) sits in @layer components, and
   an !important rule in a layer beats an unlayered !important one, which is why the 2026-11-19 rule never
   showed. For !important rules an earlier layer (base) wins over a later one (components). */
@layer base {
    .fi-body .fi-select-input .fi-dropdown-panel { width: max-content !important; min-width: 100% !important; max-width: min(60rem, calc(100vw - 2rem)) !important; }
    .fi-body .fi-select-input .fi-select-input-option { white-space: normal; overflow-wrap: anywhere; }
}
/* Ship order's Box picker (our boxes and the FedEx One Rate boxes) opens tall enough to show them all, up to
   70% of the screen (owner, 2026-11-18: "make the dropdown much longer so i can see everything without
   having to scroll"; Filament's lists stop at 15rem). A long One Rate line wraps instead of being cut off. */
.fi-body .hb-box-picker .fi-dropdown-panel { max-height: 70vh !important; }
/* AP-132: Remove on a traveler step's row. */
.fi-body .hb-step-remove { font-size: .75rem; font-weight: 600; color: var(--danger-600); padding: .125rem .5rem; border: 1px solid currentColor; border-radius: .375rem; background: transparent; cursor: pointer; white-space: nowrap; }
.fi-body .hb-step-remove:hover { background: var(--danger-600); color: #fff; }
.dark .fi-body .hb-step-remove { color: var(--danger-400); }
.dark .fi-body .hb-step-remove:hover { background: var(--danger-500); color: #fff; }
.fi-body .hb-box-picker .fi-select-input-option { white-space: normal; }
/* A row action a click on the row opens (->recordAction), with no button of its own (owner, 2026-11-05,
   purchase requests: "Clicking a row should just open the edit screen"). */
.fi-body .hb-row-click-action { display: none !important; }
/* The tables inside a record's sections (RepeatableEntry->table(): a PO's lines, an item's stock tab…): 8 px
   either side instead of 12, header and values alike. */
@media (min-width: 40rem) {
    .fi-body .fi-in-table-repeatable > table > thead > tr > th,
    .fi-body .fi-in-table-repeatable > table > tbody > tr > td { padding-inline: calc(var(--spacing) * 2); }
}
/* …and on a phone they stay tables that scroll sideways in their own box. Filament turns them into one tall card
   per row there, every field a label far left and its value far right (owner, 2026-10-27, the RMA screen: "hard to
   read on mobile. Lots of empty space and things aligned weird"). Each column is as wide as its values, up to
   16rem (a description wraps beyond that), so a two-column table still fits the screen. */
@media (max-width: 39.99rem) {
    .fi-body .fi-in-table-repeatable { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; padding: 1px; }
    .fi-body .fi-in-table-repeatable > table { display: table; width: max-content; min-width: 100%; }
    .fi-body .fi-in-table-repeatable > table > thead { display: table-header-group; }
    .fi-body .fi-in-table-repeatable > table > tbody { display: table-row-group; }
    .fi-body .fi-in-table-repeatable > table > tbody > tr { display: table-row; padding: 0; }
    .fi-body .fi-in-table-repeatable > table > thead > tr > th { padding: calc(var(--spacing) * 1.5) calc(var(--spacing) * 2); }
    .fi-body .fi-in-table-repeatable > table > tbody > tr > td,
    .fi-body .fi-in-table-repeatable > table > tbody > tr > td.fi-hidden { display: table-cell; padding: calc(var(--spacing) * 1.5) calc(var(--spacing) * 2); vertical-align: top; }
    .fi-body .fi-in-table-repeatable > table > tbody > tr > td > * { max-width: 16rem; }
    .fi-body .fi-in-table-repeatable > table > tbody > tr > td .fi-in-entry { row-gap: 0; }
    .fi-body .fi-in-table-repeatable > table > tbody > tr > td .fi-in-entry-label { display: none; }
    /* The same for a form's table (Repeater->table(): Receive a delivery's lines, a BOM, shipping boxes…), whose
       stacked cards showed bare values without their column names. An input column is at least 7rem wide. Not
       where a cell holds a searchable select or another drop-down: its list would be cut off by the scroll box. */
    .fi-body .fi-fo-table-repeater:not(:has(.fi-dropdown-panel, .fi-select-input-ctn)) { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; padding: 1px; }
    .fi-body .fi-fo-table-repeater:not(:has(.fi-dropdown-panel, .fi-select-input-ctn)) > .fi-fo-table-repeater-add { margin-top: calc(var(--spacing) * 3); }
    .fi-body .fi-fo-table-repeater:not(:has(.fi-dropdown-panel, .fi-select-input-ctn)) > table { display: table; width: max-content; min-width: 100%; }
    .fi-body .fi-fo-table-repeater:not(:has(.fi-dropdown-panel, .fi-select-input-ctn)) > table > thead { display: table-header-group; }
    .fi-body .fi-fo-table-repeater:not(:has(.fi-dropdown-panel, .fi-select-input-ctn)) > table > tbody { display: table-row-group; }
    .fi-body .fi-fo-table-repeater:not(:has(.fi-dropdown-panel, .fi-select-input-ctn)) > table > tbody > tr { display: table-row; padding: 0; }
    .fi-body .fi-fo-table-repeater:not(:has(.fi-dropdown-panel, .fi-select-input-ctn)) > table > thead > tr > th { padding: calc(var(--spacing) * 1.5) calc(var(--spacing) * 2); }
    .fi-body .fi-fo-table-repeater:not(:has(.fi-dropdown-panel, .fi-select-input-ctn)) > table > tbody > tr > td,
    .fi-body .fi-fo-table-repeater:not(:has(.fi-dropdown-panel, .fi-select-input-ctn)) > table > tbody > tr > td.fi-hidden { display: table-cell; padding: calc(var(--spacing) * 1.5) calc(var(--spacing) * 2); vertical-align: top; }
    .fi-body .fi-fo-table-repeater:not(:has(.fi-dropdown-panel, .fi-select-input-ctn)) > table > tbody > tr > td > * { max-width: 16rem; }
    .fi-body .fi-fo-table-repeater:not(:has(.fi-dropdown-panel, .fi-select-input-ctn)) > table > tbody > tr > td:has(input:not([type=checkbox]):not([type=hidden]), select, textarea) { min-width: 7rem; }
    .fi-body .fi-fo-table-repeater:not(:has(.fi-dropdown-panel, .fi-select-input-ctn)) > table > tbody > tr > td .fi-fo-field,
    .fi-body .fi-fo-table-repeater:not(:has(.fi-dropdown-panel, .fi-select-input-ctn)) > table > tbody > tr > td .fi-in-entry { row-gap: 0; }
    .fi-body .fi-fo-table-repeater:not(:has(.fi-dropdown-panel, .fi-select-input-ctn)) > table > tbody > tr > td .fi-fo-field-label-content,
    .fi-body .fi-fo-table-repeater:not(:has(.fi-dropdown-panel, .fi-select-input-ctn)) > table > tbody > tr > td .fi-in-entry-label { display: none; }
}
/* CompactTableEntry (view filament/support/compact-table): a small read-only table that scrolls sideways. On a
   phone each column is as wide as its values, up to 16rem, like the tables above. */
.hb-ctable-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.hb-ctable { width: 100%; min-width: 640px; border-collapse: collapse; font-size: var(--text-sm); }
.hb-ctable th { padding: .3rem .5rem; text-align: left; font-weight: 600; white-space: nowrap; border-bottom: 1px solid rgb(127 127 127 / .35); }
.hb-ctable td { padding: .3rem .5rem; vertical-align: top; border-bottom: 1px solid rgb(127 127 127 / .18); }
.hb-ctable td.hb-end, .hb-ctable th.hb-end { text-align: right; white-space: nowrap; }
.hb-ctable td.hb-strong { font-weight: 600; white-space: nowrap; }
.hb-ctable tr.hb-ctable-mine td { background: color-mix(in oklab, var(--primary-500) 10%, transparent); }
.hb-ctable-none { color: rgb(127 127 127); font-size: var(--text-sm); }
@media (max-width: 39.99rem) {
    .hb-ctable { width: max-content; min-width: 100%; }
    .hb-ctable td > div { max-width: 16rem; }
}
/* Identifiers on one line (part, order, PO, shipment and traveler numbers, tracking numbers, dates): a squeezed
   column broke "2026-10-20" into "2026- / 10- / 20". ->extraCellAttributes(['class' => 'hb-nowrap']) on a list's
   column (also when the column wraps: its description still does), ->extraAttributes([...]) on an entry. */
.fi-body .hb-nowrap, .fi-body .hb-nowrap .fi-ta-text, .fi-body .hb-nowrap .fi-in-text { white-space: nowrap; }
.fi-body .hb-nowrap .fi-ta-text-description { white-space: normal; }
/* A long log that scrolls in its own box, headings kept in view (owner, 2026-11-17, Settings → AI connector:
   "let the most recent activity be scrollable to have more rows"): ->extraAttributes(['class' =>
   'hb-scroll-rows']) on the table. The page numbers stay under the box. */
.fi-body .hb-scroll-rows .fi-ta-content-ctn { max-height: min(75vh, 56rem); overflow: auto; }
.fi-body .hb-scroll-rows .fi-ta-content-ctn thead th { position: sticky; top: 0; z-index: 1; background: var(--color-white); }
.fi-body.dark .hb-scroll-rows .fi-ta-content-ctn thead th, .dark .fi-body .hb-scroll-rows .fi-ta-content-ctn thead th { background: var(--gray-900); }
/* Links are blue (UI polish, 2026-10-24): green is the main button and "OK / Paid", so a green part or order
   number read as a status. --hb-link is Filament's info blue: 700 in Light, 400 in Dark and Dim (ThemeModes
   softens Dim's 400; ThemeContrastTest measures all three). A list's or entry's linked value set ->color('primary'),
   Filament's link-style buttons and links, and the hand-written screens' link colours (analytics, Order Desk,
   web order, training) take it; buttons stay green. Underlined on hover. */
.fi-body a.fi-ta-col .fi-color-primary,
.fi-body .fi-in-text-item.fi-color-primary:has(a),
.fi-body .fi-link.fi-color-primary { --text: var(--hb-link); --dark-text: var(--hb-link); }
.fi-body a.fi-ta-col-has-column-url:hover .fi-ta-text-item,
.fi-body .fi-in-text-item a:hover { text-decoration: underline; }
/* A list's active filters ("Status: Open ×") in the link blue rather than the success green. */
.fi-body .fi-ta-filter-indicators .fi-badge.fi-color-primary { --color-50: var(--info-50); --color-100: var(--info-100); --color-200: var(--info-200);
    --color-300: var(--info-300); --color-400: var(--info-400); --color-500: var(--info-500); --color-600: var(--info-600);
    --color-700: var(--info-700); --color-800: var(--info-800); --color-900: var(--info-900); --color-950: var(--info-950); }
.fi-body .fi-ta-header,
.fi-body .fi-ta-header-toolbar,
.fi-body .fi-pagination { padding-inline: calc(var(--spacing) * 3) !important; }
.fi-body .fi-ta-header-toolbar { padding-block: calc(var(--spacing) * 2) !important; }
/* The station's "NAME · Switch person" (StationBar): one line; on a phone or handheld scanner just the swap icon and
   the first name (owner, 2026-11-06: four lines of orange button took the top of the scanner's screen). */
.fi-body .hb-station-switch { white-space: nowrap; }
/* A handheld scanner's Home button, top left (HandheldShell: no side menu there). */
.fi-body .hb-handheld-home { display: inline-flex; align-items: center; gap: .35rem; min-height: 2.5rem; padding: 0 .75rem; border-radius: .5rem;
    font-weight: 600; color: var(--primary-600); border: 1px solid var(--gray-300); }
.fi-body .hb-handheld-home svg { width: 1.5rem; height: 1.5rem; }
.dark .fi-body .hb-handheld-home { border-color: var(--gray-700); color: var(--primary-400); }
@media (max-width: 39.99rem) {
    .fi-body .hb-station-switch .hb-sw-rest, .fi-body .hb-station-switch .hb-sw-text { display: none; }
    .fi-body .hb-station-switch { padding-inline: calc(var(--spacing) * 2); gap: calc(var(--spacing) * 1); }
}
/* A list's search box (owner, 2026-11-06: "make the search bars at the top of tables wider"): about twice Filament's
   ~15rem, growing with the screen up to 36rem; on a phone the whole row. */
.fi-body .fi-ta-header-toolbar .fi-ta-search-field { width: clamp(16rem, 32vw, 36rem); max-width: 100%; flex-shrink: 1; }
@media (max-width: 39.99rem) {
    .fi-body .fi-ta-header-toolbar > :has(> .fi-ta-search-field) { flex: 1 1 100%; }
    .fi-body .fi-ta-header-toolbar .fi-ta-search-field { flex: 1 1 auto; width: auto; }
}
/* Settings → Staff & permissions (EditUserPermissions; owner, 2026-10-21: "kinda hard to read"): one permission
   per row, its name and two-factor / admins-only markers beside the label (below it when the row is too narrow), 8 px apart. */
.fi-body .hb-permission-options .fi-fo-checkbox-list-option-ctn { padding-top: calc(var(--spacing) * 2); }
.fi-body .hb-permission-options .fi-fo-checkbox-list-option-text { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: calc(var(--spacing) * 3); }
.fi-body .hb-permission-options .fi-fo-checkbox-list-option-description { font-size: var(--text-xs); }
.fi-body .hb-permission-options .hb-perm-2fa { color: var(--warning-600); font-weight: 600; }
.dark .fi-body .hb-permission-options .hb-perm-2fa { color: var(--warning-400); }
/* A permission's key (catalog.edit) after its plain label: small, grey, monospaced (PermissionKey). */
.fi-body .hb-perm-key { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: calc(11.5px * var(--hb-text-scale, 1)); color: var(--gray-500); }
.dark .fi-body .hb-perm-key { color: var(--gray-400); }
/* The radiator travelers list's Notes column (TravelersPage; owner, 2026-10-21, v1's .notes-cell): wide enough to read, wraps beyond. */
.fi-body .hb-traveler-notes { min-width: 220px; max-width: 440px; line-height: 1.35; }
/* A list's long-text column (a problem, a note: ->extraAttributes(['class' => 'hb-wide-text'])): wide enough to read
   instead of one word a line, wraps beyond; and a web address that breaks anywhere instead of widening the list. */
.fi-body .hb-wide-text { min-width: 16rem; max-width: 36rem; line-height: 1.35; }
.fi-body .hb-url { overflow-wrap: anywhere; min-width: 10rem; }
/* A plain file picker (the Cutover page's MRPEasy export upload): its button drawn like the panel's grey
   buttons instead of the browser's own. Filament's FileUpload fields are not plain pickers. */
.fi-body .fi-main input[type=file] { font-size: var(--text-sm); color: var(--gray-600); }
.dark .fi-body .fi-main input[type=file] { color: var(--gray-400); }
.fi-body .fi-main input[type=file]::file-selector-button { margin-inline-end: calc(var(--spacing) * 3); padding: calc(var(--spacing) * 1.5) calc(var(--spacing) * 3);
    border-radius: var(--radius-lg); border: 1px solid var(--gray-300); background: #fff; color: var(--gray-950); font: inherit; font-weight: 600; cursor: pointer; }
.fi-body .fi-main input[type=file]::file-selector-button:hover { background: var(--gray-50); }
.dark .fi-body .fi-main input[type=file]::file-selector-button { border-color: color-mix(in oklab, var(--color-white) 20%, transparent);
    background: color-mix(in oklab, var(--color-white) 5%, transparent); color: var(--color-white); }
.dark .fi-body .fi-main input[type=file]::file-selector-button:hover { background: color-mix(in oklab, var(--color-white) 10%, transparent); }
/* The saved-settings cards (ManagesSavedSettings; owner, 2026-10-22: "individual cards for each section"):
   a thin line between a card's settings, no empty line under one that isn't set, long ids and addresses wrap inside the card. */
.fi-body .hb-setting-card > .fi-section > .fi-section-content-ctn > .fi-section-content { row-gap: calc(var(--spacing) * 2); }
.fi-body .hb-setting-card .fi-grid-col + .fi-grid-col:has(> .fi-sc-component > .hb-setting-row) { border-top: 1px solid var(--gray-200); padding-top: calc(var(--spacing) * 2); }
.dark .fi-body .hb-setting-card .fi-grid-col + .fi-grid-col:has(> .fi-sc-component > .hb-setting-row) { border-top-color: rgb(255 255 255 / 0.1); }
.fi-body .hb-setting-row > .fi-growable { min-width: 0; }
.fi-body .hb-setting-row .fi-in-entry-content-col { row-gap: calc(var(--spacing) * 0.5); }
.fi-body .hb-setting-row .fi-in-entry-content-ctn:not(:has(.fi-in-text-item)) { display: none; }
.fi-body .hb-setting-card .fi-in-text-item { overflow-wrap: anywhere; }
.fi-body .hb-setting-card .hb-id-list > .fi-sc { row-gap: calc(var(--spacing) * 1.5); }
/* Each card's header stands out (owner, 2026-11-23, Settings → Connections: "make the section headers stand
   out better"): a tinted band with a primary-colour edge and a bolder, larger title. */
.fi-body .hb-setting-card > .fi-section > .fi-section-header { background: var(--gray-50); border-bottom: 1px solid var(--gray-200);
    border-inline-start: 4px solid var(--primary-600); border-start-start-radius: inherit; border-start-end-radius: inherit; }
.dark .fi-body .hb-setting-card > .fi-section > .fi-section-header { background: rgb(255 255 255 / 0.04); border-bottom-color: rgb(255 255 255 / 0.1);
    border-inline-start-color: var(--primary-500); }
.fi-body .hb-setting-card > .fi-section > .fi-section-header .fi-section-header-heading { font-size: var(--text-base); font-weight: 700; color: var(--gray-950); }
.dark .fi-body .hb-setting-card > .fi-section > .fi-section-header .fi-section-header-heading { color: var(--color-white); }
.fi-body .fi-pagination { padding-block: calc(var(--spacing) * 1.5) !important; }
.fi-body .fi-ta-empty-state { padding-block: calc(var(--spacing) * 4) !important; }
/* The side menu (owner, 2026-10-23: "the sidebar is scrolling now because its so tall"): sections closer
   together (Filament leaves 28 px), closer still folded to icons, and tightest on a short window, so the
   folded menu fits without scrolling. */
.fi-body .fi-sidebar-nav { padding-block: calc(var(--spacing) * 4); row-gap: calc(var(--spacing) * 4); }
.fi-body .fi-sidebar-nav-groups { row-gap: calc(var(--spacing) * 3); }
.fi-body .fi-sidebar:not(.fi-sidebar-open) .fi-sidebar-nav-groups { row-gap: calc(var(--spacing) * 1); }
/* Menu rows 38 px apart instead of 44 (UI polish, 2026-10-23: dense like v1; the open menu is ~55 rows). */
.fi-body .fi-sidebar-item-btn { padding-block: calc(var(--spacing) * 1.5); }
.fi-body .fi-sidebar-group-items { row-gap: calc(var(--spacing) * 0.5); }
/* Announcements (AP-94, Jordan 2026-11-10: "more contrast between announcements"): each notice is its own band,
   every other one shaded, a heavier line between them and more room above and below. */
.fi-body .hb-announcements .fi-ta-table > tbody > tr + tr { border-top: 2px solid var(--gray-300); }
.dark .fi-body .hb-announcements .fi-ta-table > tbody > tr + tr { border-top-color: rgb(255 255 255 / 0.22); }
.fi-body .hb-announcements .fi-ta-table > tbody > tr.fi-striped { background: var(--gray-100); }
.dark .fi-body .hb-announcements .fi-ta-table > tbody > tr.fi-striped { background: rgb(255 255 255 / 0.07); }
.fi-body .hb-announcements .fi-ta-table > tbody > tr > td { padding-block: calc(var(--spacing) * 2.5); vertical-align: top; }
/* The collapsed sidebar's pop-out header (owner, 2026-11-10; vendor/filament-panels/components/sidebar/group):
   the section's name as a small capital heading, linked to its "All … screens" page, "All screens ›" beside it. */
.hb-group-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; text-decoration: none; cursor: pointer; }
.hb-group-head .hb-group-head-label { font-size: 0.75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--gray-500); }
.hb-group-head .hb-group-head-all { font-size: 0.75rem; font-weight: 600; color: var(--primary-600); white-space: nowrap; }
.dark .hb-group-head .hb-group-head-label { color: var(--gray-400); }
.dark .hb-group-head .hb-group-head-all { color: var(--primary-400); }
.hb-group-head:hover .hb-group-head-all, .hb-group-head:focus-visible .hb-group-head-all { text-decoration: underline; }
/* A section's home ("All Sales screens"…; SectionHomePage, navigation/section-home): a tile per screen. The icon
   is grey like the menu's (a tile is a link, not a status); the border turns green on hover / keyboard focus. */
.hb-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: calc(var(--spacing) * 2); }
.hb-tile { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border-radius: var(--radius-lg); text-decoration: none;
    background: #fff; border: 1px solid var(--gray-200); color: var(--gray-950); }
.hb-tile:hover, .hb-tile:focus-visible { border-color: var(--primary-500); box-shadow: 0 1px 6px rgb(0 0 0 / .08); outline: none; }
.dark .hb-tile { background: var(--gray-900); border-color: var(--gray-700); color: var(--color-white); }
.dark .hb-tile:hover, .dark .hb-tile:focus-visible { border-color: var(--primary-500); }
.hb-tile-icon { flex: none; display: inline-flex; padding-top: 1px; color: var(--gray-500); }
.hb-tile:hover .hb-tile-icon, .hb-tile:focus-visible .hb-tile-icon { color: var(--gray-700); }
.dark .hb-tile:hover .hb-tile-icon, .dark .hb-tile:focus-visible .hb-tile-icon { color: var(--gray-300); }
.hb-tile-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hb-tile-label { font-weight: 600; font-size: var(--text-sm); line-height: 1.3; }
.hb-tile-desc { font-size: calc(12.5px * var(--hb-text-scale, 1)); color: var(--gray-500); line-height: 1.3; }
.dark .hb-tile-desc { color: var(--gray-400); }
/* Progress toward a goal (the profit report's bonus threshold, v1's progress bar; view
   filament/reports/goal-meter): the ends and the percent above, a track whose fill takes the status
   colour (--hb-meter-color) and width inline, an optional marker (the even pace) with its label above
   it, and two notes under it. */
.hb-meter-ends, .hb-meter-notes { display: flex; justify-content: space-between; align-items: baseline; gap: 8px;
    font-size: var(--text-xs); color: var(--gray-500); font-variant-numeric: tabular-nums; }
.dark .hb-meter-ends, .dark .hb-meter-notes { color: var(--gray-400); }
.hb-meter-pct { font-size: var(--text-lg); font-weight: 700; color: var(--gray-950); }
.dark .hb-meter-pct { color: var(--color-white); }
.hb-meter-notes { margin-top: 6px; }
.hb-meter-track-wrap { position: relative; padding-top: 18px; }
.hb-meter-track { height: 14px; border-radius: 9999px; overflow: hidden; background: var(--gray-200); }
.dark .hb-meter-track { background: var(--gray-700); }
.hb-meter-fill { height: 100%; border-radius: 9999px 0 0 9999px; background: var(--hb-meter-color, var(--primary-500)); }
.hb-meter-mark { position: absolute; top: 15px; bottom: -3px; width: 2px; transform: translateX(-50%); background: var(--gray-950); pointer-events: none; }
.dark .hb-meter-mark { background: var(--color-white); }
.hb-meter-mark span { position: absolute; bottom: calc(100% + 2px); left: 50%; transform: translateX(-50%); white-space: nowrap;
    font-size: calc(10px * var(--hb-text-scale, 1)); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--gray-700); }
.dark .hb-meter-mark span { color: var(--gray-300); }
/* A bar under a table cell's number, as long as the number's share of the column's largest (v1's heat
   bars in the profit report's tables; DataBars): --hb-bar inline, red when negative; it grows from the
   right, under the right-aligned number. */
.hb-databar { background-image: linear-gradient(to left, var(--hb-databar-color, var(--primary-500)) var(--hb-bar, 0%), transparent var(--hb-bar, 0%));
    background-repeat: no-repeat; background-size: calc(100% - 24px) 3px; background-position: 12px calc(100% - 4px); }
.hb-databar-neg { --hb-databar-color: var(--danger-500); }
/* The calls report's week heat map (CallHeatmapTable, v1's colours): each day's cell filled with its colour
   (--hb-heat inline), dark numbers on it in either theme, a thin line between cells, tight rows. */
.fi-body .fi-ta-cell.hb-heat, .fi-body .fi-ta-row:hover .fi-ta-cell.hb-heat { background: var(--hb-heat) !important;
    box-shadow: inset -1px -1px 0 rgb(0 0 0 / .18); }
.fi-body .fi-ta-cell.hb-heat > * { padding-block: 3px !important; }
.fi-body .fi-ta-cell.hb-heat .fi-ta-text-item, .fi-body .fi-ta-cell.hb-heat .fi-ta-text-item * { color: #111 !important;
    font-variant-numeric: tabular-nums; font-weight: 600; }
/* The profit report's "This month's adjustments & notes" (owner, 2026-11-17: "far too much going on"): one
   line per note as a small table (label, count, amount, a short phrase; an amber dot when it needs action),
   a thin line between them, each opening its detail under it. */
.fi-body .hb-notes > .fi-section > .fi-section-content-ctn > .fi-section-content { row-gap: 0; padding-block: 0 !important; }
.fi-body .hb-note-line { border-top: 1px solid var(--gray-200); }
.dark .fi-body .hb-note-line { border-top-color: rgb(255 255 255 / 0.1); }
.fi-body .fi-grid-col:first-child > .fi-sc-component > .hb-note-line { border-top: 0; }
.fi-body .hb-note-line > .fi-section > .fi-section-header { padding-inline: 0 !important; padding-block: calc(var(--spacing) * 1.5) !important; cursor: pointer; }
.fi-body .hb-note-line > .fi-section > .fi-section-content-ctn > .fi-section-content { padding: 0 0 calc(var(--spacing) * 3) !important; }
.fi-body .hb-note-line .fi-section-header-heading { font-weight: 400; }
.hb-note { display: grid; grid-template-columns: minmax(8rem, 11rem) minmax(6rem, 8rem) minmax(7rem, 9rem) minmax(0, 1fr);
    column-gap: calc(var(--spacing) * 3); align-items: baseline; font-size: var(--text-sm); }
.hb-note-label { display: inline-flex; align-items: center; gap: calc(var(--spacing) * 1.5); font-weight: 600; color: var(--gray-950); }
.dark .hb-note-label { color: var(--color-white); }
.hb-note-count { color: var(--gray-600); font-variant-numeric: tabular-nums; }
.dark .hb-note-count { color: var(--gray-300); }
.hb-note-amount { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--gray-950); }
.dark .hb-note-amount { color: var(--color-white); }
.hb-note-phrase { color: var(--gray-500); }
.dark .hb-note-phrase { color: var(--gray-400); }
.hb-note-dot { width: .5rem; height: .5rem; border-radius: 9999px; flex: none; background: var(--warning-500); }
@media (max-width: 39.99rem) {
    .hb-note { display: flex; flex-wrap: wrap; column-gap: calc(var(--spacing) * 2); row-gap: 0; }
    .hb-note-phrase { flex-basis: 100%; }
}
/* The column picker's Apply at the top, and in view while the list scrolls (test-site report p47,
   2026-10-28: "have the apply button that is at the bottom of the list, also on the top"). */
.fi-ta-col-manager .fi-ta-col-manager-header { order: -2; }
.fi-ta-col-manager .fi-ta-col-manager-actions-ctn { order: -1; position: sticky; top: 0; z-index: 2;
    padding-block: calc(var(--spacing) * 2); background: var(--color-white); }
.dark .fi-ta-col-manager .fi-ta-col-manager-actions-ctn { background: var(--gray-900); }
/* "You can't do that yet, because…" (FixesDialog, R-UI-087): the reasons, numbered, each with its fix buttons
   (LinkButtonColumn's small grey hb-link-button, greyed out without the permission). */
.hb-fixes > p { margin: 0 0 calc(var(--spacing) * 1.5); }
.hb-fixes-bad { color: var(--danger-600); } .dark .hb-fixes-bad { color: var(--danger-400); }
.hb-fixes-ok { color: var(--success-600); } .dark .hb-fixes-ok { color: var(--success-400); }
.hb-fixes-list { margin: 0; padding-inline-start: calc(var(--spacing) * 4.5); list-style: decimal; display: grid; gap: calc(var(--spacing) * 1.5); }
.hb-fixes-list > li { line-height: 1.35; }
.hb-fixes-btns { display: inline-flex; flex-wrap: wrap; gap: calc(var(--spacing) * 1); margin-inline-start: calc(var(--spacing) * 1.5); vertical-align: middle; }
.hb-fixes-btns .hb-link-button:disabled { opacity: .5; cursor: not-allowed; }
/* An item's cost (CostDisplay; owner, 2026-11-23: "an items cost should never be $0 anywhere"): an estimate gets a
   small "est." tag after the figure (the hover says where it came from); no cost at all is "No cost" in amber. */
.hb-est { margin-inline-start: .25rem; padding: 0 .25rem; border-radius: .25rem; font-size: var(--text-xs); font-weight: 500;
    color: var(--gray-600); background: rgb(127 127 127 / .14); white-space: nowrap; }
.dark .hb-est { color: var(--gray-300); }
.hb-no-cost { color: var(--warning-600); font-weight: 600; white-space: nowrap; }
.dark .hb-no-cost { color: var(--warning-400); }
@media (max-height: 940px) {
    .fi-body .fi-sidebar-nav { padding-block: calc(var(--spacing) * 2); row-gap: calc(var(--spacing) * 2); }
    .fi-body .fi-sidebar-nav-groups { row-gap: calc(var(--spacing) * 2); }
    .fi-body .fi-sidebar:not(.fi-sidebar-open) .fi-sidebar-nav-groups { row-gap: 0; }
    .fi-body .fi-sidebar:not(.fi-sidebar-open) .fi-sidebar-group-dropdown-trigger-btn { padding: calc(var(--spacing) * 1.5); }
}