/* ============================================================================================
   BlueIT house style
   --------------------------------------------------------------------------------------------
   The visual language shared with DokPlan V4, MainTasc and OptiFlow: navy chrome, dark-red
   accents, a grey ground carrying white panels, 5px controls and 8px panels (MainTasc 2.0),
   Font Awesome duotone icons, and Oswald sentence-case titles over PT Sans body copy.

   Most of that is expressed in the MudBlazor theme (Theming/BlueItTheme.cs), which is why the
   existing pages picked it up without being touched. What lives HERE is the part a theme cannot
   express: the app-bar/drawer chrome, the duotone two-tone defaults, and the landing tiles.

   The three brand values are duplicated from BlueItBrand.cs because CSS cannot read C#.
   BlueItBrandCssTests parses this file and fails if the two ever disagree.
   ============================================================================================ */

:root {
    /* MainTasc 2.0 design tokens. Light values here; the dark overrides follow the :root block. */
    --hub-page: #D6D6D6;
    --hub-surface: #FFFFFF;
    --hub-control: #FFFFFF;
    --hub-field: #E6E6E6;
    --hub-control-border: #C2C7D0;
    --hub-control-hover: #BFC7D7;
    --hub-grid-header: #BFC7D7;
    --hub-row-alt: #F5F5F5;
    --hub-row-focus: #D3D9E6;
    --hub-row-hover: #D3D9E6;
    --hub-search-match: #FFE28A;
    --hub-text: #1C2333;
    --hub-muted: #6B7280;
    --hub-disabled: #A1A5AD;
    --hub-brand: #002060;
    --hub-brand-raised: #0a2f7a;
    --hub-brand-hover: #123a8f;
    --hub-module-hover: #37507f;
    --hub-brand-secondary: #405E9A;
    --hub-module: #425C91;
    --hub-additive: #2F9E44;
    --hub-destructive: #880000;
    --hub-accent: #D50A2A;
    --hub-warning: #D97706;
    --hub-toast-success: #1E7A34;
    --hub-focus-ring: #4D90FE;
    --hub-focus-ring-width: 2px;
    --hub-separator: #D9D9DB;
    --hub-footer: #F5F6F8;
    --hub-footer-border: #DCDFE5;
    --hub-sidenav: #FAFAFB;
    --hub-sidenav-border: #DCDFE5;
    --hub-search-focus: #002060;
    --hub-flyout-plate: #E6E9F2;
    --hub-flyout-shadow: 0 6px 20px rgba(0, 0, 0, .22);
    --hub-panel-footer-shadow: 0 -2px 8px rgba(0, 0, 0, .05);
    --hub-chip: #E6E8EC;
    --hub-chip-icon: #002060;
    --hub-view-ink: #6C757D;
    --hub-destructive-ink: #880000;
    --hub-footer-height: 34px;

    --hub-space-1: 4px;
    --hub-space-2: 8px;
    --hub-space-3: 12px;
    --hub-space-4: 16px;
    --hub-space-5: 24px;

    --hub-radius-sm: 3px;
    --hub-radius-md: 5px;
    --hub-radius-lg: 8px;

    --hub-button-height: 44px;

    --hub-motion-fast: 120ms;
    --hub-motion: 200ms;

    --blueit-primary: #002060;
    --blueit-secondary: #880000;
    --blueit-tertiary: #425C91;
    --blueit-ground: #D6D6D6;

    /* The duotone two-tone default: the brand navy at full strength for the primary layer and
       the same colour at 40% for the secondary, which is Font Awesome's own default ratio and
       the one OptiFlow sets explicitly on its landing tiles. Any icon can override locally. */
    --fa-primary-opacity: 1;
    --fa-secondary-opacity: 0.4;

    /* The house panel shadow, lifted verbatim from DokPlan's .box-shadow. */
    --blueit-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);

    /* The MainTasc grid tints, from devExtreme-components-mikeoscopic-V5.css. Duplicated from
       BlueItBrand.cs for the same reason as the palette above, and guarded the same way. Each is a
       LIGHT-MODE value; the rules that use them restate them as a mix into the current surface so
       the dark toggle produces a dark table rather than a white band across a dark page. */
    --blueit-grid-header: #BFC7D7;
    --blueit-grid-group: #D6D6D6;
    --blueit-row-focus: #D3D9E6;
    --blueit-cell-readonly: #EDEDED;

    /* MainTasc's action-button radius; now the same 5px as every control (--hub-radius-md). */
    --blueit-action-radius: 5px;
}

@media (min-width: 600px) {
    :root {
        --hub-button-height: 28px;
    }
}

@media (prefers-reduced-motion: reduce) {
    :root {
        --hub-motion-fast: 0ms;
        --hub-motion: 0ms;
    }
}

/* Dark theme. MainLayout stamps data-hub-theme on the MudLayout from its dark-mode flag; :has() lifts
   that to the root so the tokens also reach dialogs and popovers, which MudBlazor renders outside the
   layout. The second selector covers anything inside the layout directly. */
:root:has([data-hub-theme="dark"]),
[data-hub-theme="dark"] {
    --hub-page: #14171C;
    --hub-surface: #20242B;
    --hub-control: #20242B;
    --hub-field: #2A2F38;
    --hub-control-border: #3D434F;
    --hub-control-hover: #2E3646;
    --hub-grid-header: #2E3646;
    --hub-row-alt: #252A32;
    --hub-row-focus: #33405C;
    --hub-row-hover: #33405C;
    --hub-search-match: #7A6420;
    --hub-text: #E3E6EB;
    --hub-muted: #A0A7B4;
    --hub-brand: #1F3F7A;
    --hub-brand-hover: #2a4f94;
    --hub-destructive: #CF3F3F;
    --hub-additive: #2A873D;
    --hub-separator: #3A3F48;
    --hub-footer: #1A1D23;
    --hub-footer-border: #2C313A;
    --hub-sidenav: #1A1D23;
    --hub-sidenav-border: #2C313A;
    --hub-search-focus: #8FAEEB;
    --hub-flyout-plate: #2A2F38;
    --hub-flyout-shadow: 0 6px 20px rgba(0, 0, 0, .55);
    --hub-panel-footer-shadow: 0 -2px 8px rgba(0, 0, 0, .35);
    --hub-chip: #2A2F38;
    --hub-chip-icon: #8FAEEB;
    --hub-view-ink: #9AA3AD;
    --hub-destructive-ink: #F28B82;
}

html, body {
    font-family: 'PT Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: var(--hub-page);
    color: var(--hub-text);
}

.blueit-layout,
.blueit-layout .mud-main-content {
    background-color: var(--hub-page);
    color: var(--hub-text);
}

.blueit-layout {
    display: flex;
    flex-direction: column;
    height: 100dvh;
    overflow: hidden;
}

.blueit-layout .mud-main-content {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
}

/* Navy text selection, as in DokPlan's styles.css. A small thing, but it is one of those
   details that makes two apps feel like they came from the same place. */
::selection {
    background: var(--blueit-primary);
    color: #fff;
}

h1:focus {
    outline: none;
}

/* --- Titles ------------------------------------------------------------------------------- */

/* The house title treatment: Oswald, sentence case, weight 500 — the other apps' .custom-title-*
   family. MudBlazor's Typo.h1..h6 already resolve to this through the theme; this class is for
   the plain markup that is not a MudText. */
.blueit-title {
    font-family: 'Oswald', 'PT Sans', Helvetica, Arial, sans-serif;
    font-weight: 500;
    letter-spacing: .01em;
    line-height: 1.2;
}

/* Titles in the accent red, as DokPlan/MainTasc use for section and form headings. */
.blueit-title-accent {
    color: var(--blueit-secondary);
}

/* --- App bar ------------------------------------------------------------------------------ */

.mud-appbar.hub-appbar {
    --hub-header-target: 44px;
    position: sticky;
    top: 0;
    background-color: var(--hub-page);
    color: var(--hub-text);
    box-shadow: none;
    height: auto;
    min-height: 48px;
}

.hub-appbar .mud-toolbar {
    min-height: 48px;
    height: auto;
    flex-wrap: wrap;
    gap: var(--hub-space-2);
    padding-left: var(--hub-space-3);
    padding-right: var(--hub-space-3);
}

.blueit-layout .mud-main-content {
    padding-top: 0;
}

.hub-appbar .hub-header-button .mud-button-root,
.hub-appbar .hub-header-button {
    color: var(--hub-text);
    min-width: var(--hub-header-target);
    min-height: var(--hub-header-target);
}

.hub-appbar .hub-header-button.mud-icon-button {
    width: var(--hub-header-target);
    height: var(--hub-header-target);
}

.hub-appbar .hub-header-button:hover,
.hub-appbar .hub-header-button .mud-button-root:hover {
    background-color: var(--hub-control-hover);
}

.hub-logo-tile {
    display: none;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: var(--hub-header-target);
    height: var(--hub-header-target);
    border-radius: var(--hub-radius-md);
    background-color: var(--hub-brand-raised);
    color: #fff;
    font-family: 'Oswald', 'PT Sans', Helvetica, Arial, sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
}

.hub-logo-tile:hover {
    background-color: var(--hub-brand-hover);
}

.hub-logo-tile:focus-visible {
    outline: var(--hub-focus-ring-width) solid var(--hub-focus-ring);
    outline-offset: 2px;
}

.hub-appbar .hub-header-back.mud-icon-button {
    flex: 0 0 auto;
    width: var(--hub-header-target);
    height: var(--hub-header-target);
    border-radius: var(--hub-radius-md);
    background-color: var(--hub-brand);
    color: #fff;
}

.hub-appbar .hub-header-back.mud-icon-button:hover {
    background-color: var(--hub-module-hover);
}

.hub-appbar .hub-header-back .mud-icon-root.fa-duotone {
    font-size: 16px;
    line-height: 1;
}

.hub-appbar .hub-header-titles {
    display: flex;
    flex: 1 0 100%;
    order: 1;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding-bottom: var(--hub-space-2);
    padding-left: 0;
}

.hub-appbar .hub-header-title {
    margin: 0;
    min-width: 0;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    color: var(--hub-text);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
}

.hub-appbar .hub-header-subtitle {
    margin: 0;
    min-width: 0;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    color: var(--hub-muted);
    font-size: 12px;
    line-height: 1.2;
}

.hub-appbar .hub-header-signout {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: var(--hub-space-2);
    min-width: var(--hub-header-target);
    min-height: var(--hub-header-target);
    margin-left: auto;
    padding: var(--hub-space-1) var(--hub-space-3);
    border: 0;
    border-radius: var(--hub-radius-md);
    background-color: var(--hub-chip);
    color: var(--hub-text);
    font: inherit;
    font-size: 14px;
    line-height: 1.2;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color var(--hub-motion-fast);
}

.hub-appbar .hub-header-signout:hover {
    background-color: var(--hub-control-hover);
}

.hub-appbar .hub-header-signout:focus-visible {
    outline: var(--hub-focus-ring-width) solid var(--hub-focus-ring);
    outline-offset: 2px;
}

.hub-appbar .hub-header-signout i {
    --fa-primary-color: var(--hub-destructive-ink);
    --fa-secondary-color: var(--hub-destructive-ink);
    font-size: 14px;
}

@media (min-width: 600px) {
    .hub-logo-tile {
        display: inline-flex;
    }
}

@media (min-width: 960px) {
    .mud-appbar.hub-appbar {
        --hub-header-target: 28px;
        position: fixed;
        height: 48px;
    }

    .hub-appbar .mud-toolbar {
        height: 48px;
        flex-wrap: nowrap;
    }

    .blueit-layout .mud-main-content {
        padding-top: 0;
        margin-top: var(--mud-appbar-height);
    }

    .hub-appbar .hub-header-titles {
        flex: 0 1 auto;
        order: 0;
        overflow: hidden;
        padding-bottom: 0;
        padding-left: var(--hub-space-1);
    }

    .hub-appbar .hub-header-title,
    .hub-appbar .hub-header-subtitle {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .hub-appbar .hub-nav-toggle.mud-icon-button {
        display: none;
    }

    .hub-appbar .hub-header-signout {
        min-height: 30px;
        padding: var(--hub-space-1) var(--hub-space-2);
        font-size: 13px;
    }

    .hub-appbar .hub-header-button.mud-icon-button {
        width: 36px;
        height: 36px;
        min-width: 36px;
        min-height: 36px;
    }
}

/* --- Drawer / side navigation ---------------------------------------------------------------
   MainTasc 2.0 side-nav: a 268px panel (60px icon rail on desktop when collapsed) on the
   --hub-sidenav surface, one accent-tinted pill per module with its pages beneath. MudDrawer,
   MudNavMenu, MudNavGroup and MudNavLink stay; everything here is restyle. Below 960px the
   Responsive drawer is MudBlazor's own overlay and the rail is never shown. */

.blueit-drawer.mud-drawer {
    background-color: var(--hub-sidenav);
    color: var(--hub-text);
    border-right: 1px solid var(--hub-sidenav-border);
    box-shadow: none;
    overflow: hidden;
    font-size: 14px;
}

.blueit-drawer .mud-drawer-content {
    height: 100%;
    min-height: 0;
}

.blueit-layout .mud-drawer-overlay {
    z-index: calc(var(--mud-zindex-appbar) + 1);
}

@media (max-width: 959px) {
    .blueit-drawer.mud-drawer {
        --mud-drawer-width: 268px !important;
        --mud-drawer-width-left: 268px !important;
        width: 268px !important;
        top: 0 !important;
        height: 100% !important;
        z-index: calc(var(--mud-zindex-appbar) + 2) !important;
    }
}

@media (min-width: 960px) {
    .blueit-drawer.hub-drawer-rail.mud-drawer {
        overflow: visible;
    }
}

/* --- Status footer -------------------------------------------------------------------------
   MainTasc 2.0 status footer: the last flex item of the viewport-high .blueit-layout column, never
   fixed. Mobile first: 44px tap targets and a toggle that reveals the server row; from 960px
   everything is inline in a 34px bar and the fixed drawer stops above it. */

.hub-footer {
    flex: 0 0 auto;
    border-top: 1px solid var(--hub-footer-border);
    background-color: var(--hub-footer);
    color: var(--hub-text);
    font-size: 12px;
    line-height: 1.2;
}

.hub-footer-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--hub-space-3);
    min-height: var(--hub-footer-height);
    padding: 0 var(--hub-space-3);
}

.hub-footer-menu {
    display: inline-flex;
    min-width: 0;
}

.hub-footer-chip,
.hub-footer-item {
    display: inline-flex;
    align-items: center;
    gap: var(--hub-space-2);
    min-width: 44px;
    min-height: 44px;
    padding: var(--hub-space-1) var(--hub-space-2);
    border: 0;
    border-radius: var(--hub-radius-md);
    background-color: var(--hub-chip);
    color: var(--hub-text);
    font: inherit;
    line-height: 1.2;
}

.hub-footer-chip {
    justify-content: center;
    cursor: pointer;
    transition: background-color var(--hub-motion-fast);
}

.hub-footer-chip:hover {
    background-color: var(--hub-control-hover);
}

.hub-footer-chip:focus-visible,
.hub-footer-toggle:focus-visible {
    outline: var(--hub-focus-ring-width) solid var(--hub-focus-ring);
    outline-offset: 2px;
}

.hub-footer-chip i,
.hub-footer-item i,
.hub-footer-toggle i {
    --fa-primary-color: var(--hub-chip-icon);
    --fa-secondary-color: var(--hub-chip-icon);
    font-size: 12px;
}

.hub-footer-user-name {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.hub-footer-sep {
    flex: 0 0 auto;
    width: 2px;
    height: 14.4px;
    background-color: var(--hub-separator);
}

.hub-footer-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-left: auto;
    padding: 0;
    border: 0;
    border-radius: var(--hub-radius-md);
    background-color: var(--hub-chip);
    cursor: pointer;
}

.hub-footer-extra {
    display: none;
    flex: 1 0 100%;
    align-items: center;
    gap: var(--hub-space-3);
}

.hub-footer-extra .hub-footer-sep {
    display: none;
}

.hub-footer--expanded .hub-footer-extra {
    display: flex;
}

.hub-user-menu.mud-popover {
    min-width: 200px;
    padding-block: var(--hub-space-1);
    border-radius: var(--hub-radius-md);
    background: linear-gradient(to right, var(--hub-flyout-plate) 36px, var(--hub-surface) 36px);
    color: var(--hub-text);
    box-shadow: var(--hub-flyout-shadow);
    font-size: 14px;
}

.hub-user-menu .mud-list {
    padding: 0;
    background: none;
}

.hub-user-menu .hub-user-menu-item.mud-menu-item {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0 var(--hub-space-3) 0 0;
    background: none;
    color: var(--hub-text);
    cursor: pointer;
}

.hub-user-menu .hub-user-menu-item.mud-menu-item:hover {
    background: linear-gradient(to right, transparent 36px, var(--hub-row-hover) 36px);
}

.hub-user-menu .hub-user-menu-item.mud-menu-item:focus-visible {
    outline: var(--hub-focus-ring-width) solid var(--hub-focus-ring);
    outline-offset: -2px;
}

.hub-user-menu-item .mud-menu-item-text {
    display: flex;
    align-items: center;
    gap: var(--hub-space-3);
    margin: 0;
    width: 100%;
    color: inherit;
    font-size: inherit;
    line-height: 1.2;
    white-space: nowrap;
}

.hub-user-menu-item i {
    flex: 0 0 36px;
    width: 36px;
    font-size: 16px;
    text-align: center;
    --fa-primary-color: var(--hub-chip-icon);
    --fa-secondary-color: var(--hub-chip-icon);
}

.hub-user-menu-item--view i {
    --fa-primary-color: var(--hub-view-ink);
    --fa-secondary-color: var(--hub-view-ink);
}

@media (min-width: 960px) {
    .blueit-layout .blueit-drawer.mud-drawer.mud-drawer-fixed {
        height: calc(100% - var(--mud-appbar-height) - var(--hub-footer-height));
    }

    .hub-footer-chip,
    .hub-footer-item {
        min-width: 0;
        min-height: 0;
        height: 24px;
        padding: var(--hub-space-1) var(--hub-space-2);
    }

    .hub-footer-user-name {
        position: static;
        width: auto;
        height: auto;
        overflow: hidden;
        clip: auto;
        max-width: 240px;
        text-overflow: ellipsis;
    }

    .hub-footer-toggle {
        display: none;
    }

    .hub-footer-extra,
    .hub-footer--expanded .hub-footer-extra {
        display: flex;
        flex: 0 0 auto;
    }

    .hub-footer-extra .hub-footer-sep {
        display: block;
    }

    .hub-user-menu .hub-user-menu-item.mud-menu-item {
        min-height: 30px;
    }
}

.hub-sidenav {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
    height: 100%;
}

.hub-panel {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
}

.hub-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--hub-space-2);
    padding: var(--hub-space-3) var(--hub-space-4);
}

.hub-panel-title {
    margin: 0;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--hub-text);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
}

.hub-nav-collapse,
.hub-rail-expand {
    display: none;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    border-radius: var(--hub-radius-md);
    background-color: var(--hub-module);
    color: #fff;
    cursor: pointer;
    transition: background-color var(--hub-motion-fast);
}

.hub-nav-collapse:hover,
.hub-rail-expand:hover {
    background-color: var(--hub-module-hover);
}

.hub-nav-collapse:focus-visible,
.hub-rail-expand:focus-visible,
.hub-rail-search:focus-visible,
.hub-rail-tile:focus-visible,
.hub-rail-link:focus-visible {
    outline: var(--hub-focus-ring-width) solid var(--hub-focus-ring);
    outline-offset: -2px;
}

.hub-nav-collapse i,
.hub-rail-expand i {
    font-size: 14px;
    line-height: 1;
    --fa-primary-color: currentColor;
    --fa-secondary-color: currentColor;
    --fa-secondary-opacity: .6;
}

.hub-nav-search {
    padding: 0 var(--hub-space-4) var(--hub-space-3);
}

.hub-nav-search-plate {
    display: flex;
    align-items: center;
    gap: var(--hub-space-2);
    min-height: 44px;
    padding: 0 var(--hub-space-3);
    border-radius: var(--hub-radius-md);
    background-color: var(--hub-field);
    transition: background-color var(--hub-motion-fast);
}

.hub-nav-search-plate:hover {
    background-color: var(--hub-control-hover);
}

.hub-nav-search-plate:focus-within {
    outline: 2px solid var(--hub-search-focus);
}

.hub-nav-search-plate i {
    flex: 0 0 auto;
    font-size: 14px;
    --fa-primary-color: var(--hub-search-focus);
    --fa-secondary-color: var(--hub-search-focus);
    --fa-secondary-opacity: .5;
}

.hub-nav-search-input {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--hub-text);
    font: inherit;
    font-size: 14px;
}

.hub-nav-search-input::placeholder {
    color: var(--hub-muted);
    opacity: 1;
}

.hub-panel-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 0 var(--hub-space-4);
}

.hub-nav-empty {
    margin: var(--hub-space-4) 0;
    text-align: center;
    color: var(--hub-muted);
    font-size: 12px;
}

.blueit-nav {
    padding: 0;
}

.hub-accent-slate {
    --hub-accent-tint: #D5D9E4;
    --hub-accent-primary: #002060;
    --hub-accent-secondary: #808FAF;
}

.hub-accent-red {
    --hub-accent-tint: #E9D5D6;
    --hub-accent-primary: #880000;
    --hub-accent-secondary: #CC9696;
}

.hub-accent-grey {
    --hub-accent-tint: #E3E5E9;
    --hub-accent-primary: #555C69;
    --hub-accent-secondary: #A2A8B3;
}

.hub-accent-green {
    --hub-accent-tint: #DAEDDB;
    --hub-accent-primary: #2B7A30;
    --hub-accent-secondary: #88BC8C;
}

.hub-accent-teal {
    --hub-accent-tint: #D3EBEC;
    --hub-accent-primary: #00727A;
    --hub-accent-secondary: #7EBEC2;
}

.hub-accent-amber {
    --hub-accent-tint: #FBF1D6;
    --hub-accent-primary: #8A6100;
    --hub-accent-secondary: #C79A4E;
}

[data-hub-theme="dark"] .hub-accent-slate {
    --hub-accent-tint: #2A3140;
    --hub-accent-primary: #8FAEEB;
    --hub-accent-secondary: #6F7FA3;
}

[data-hub-theme="dark"] .hub-accent-red {
    --hub-accent-tint: #3A2528;
    --hub-accent-primary: #E06A6A;
    --hub-accent-secondary: #A06A6A;
}

[data-hub-theme="dark"] .hub-accent-grey {
    --hub-accent-tint: #2C2F35;
    --hub-accent-primary: #B4BAC5;
    --hub-accent-secondary: #7A808B;
}

[data-hub-theme="dark"] .hub-accent-green {
    --hub-accent-tint: #1F3324;
    --hub-accent-primary: #6CC573;
    --hub-accent-secondary: #4A8A50;
}

[data-hub-theme="dark"] .hub-accent-teal {
    --hub-accent-tint: #1B3336;
    --hub-accent-primary: #4FC3C9;
    --hub-accent-secondary: #3A8A8E;
}

[data-hub-theme="dark"] .hub-accent-amber {
    --hub-accent-tint: #3A3120;
    --hub-accent-primary: #E0B04A;
    --hub-accent-secondary: #A07A3A;
}

/* The group pill. The long selector is deliberate: MudBlazor's nav-link rules (hover, active) are
   three classes deep and would otherwise win over a shorter one. */
.blueit-nav .mud-nav-group > .mud-nav-link {
    display: flex;
    align-items: center;
    gap: var(--hub-space-3);
    width: 100%;
    min-height: 44px;
    margin: var(--hub-space-2) 0 var(--hub-space-1);
    padding: var(--hub-space-2) var(--hub-space-3);
    border: 0;
    border-radius: var(--hub-radius-md);
    background-color: var(--hub-accent-tint);
    color: var(--hub-text);
    text-align: left;
    transition: background-color var(--hub-motion-fast);
}

.blueit-nav .mud-nav-group > .mud-nav-link:hover:not(.mud-nav-link-disabled) {
    background-color: color-mix(in srgb, var(--hub-accent-tint) 92%, black);
    color: var(--hub-text);
}

.blueit-nav .mud-nav-group > .mud-nav-link:focus-visible:not(.mud-nav-link-disabled) {
    outline: var(--hub-focus-ring-width) solid var(--hub-focus-ring);
    outline-offset: -2px;
    background-color: var(--hub-accent-tint);
}

.blueit-nav .mud-nav-group > .mud-nav-link .mud-nav-link-text {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: left;
    text-transform: none;
    letter-spacing: normal;
    color: inherit;
    font-family: 'PT Sans', Helvetica, Arial, sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
}

.blueit-nav .mud-nav-group > .mud-nav-link .mud-nav-link-icon.fa-duotone {
    flex: 0 0 28px;
    width: 28px;
    margin: 0;
    font-size: 14px;
    text-align: center;
    --fa-primary-color: var(--hub-accent-primary);
    --fa-secondary-color: var(--hub-accent-secondary);
    --fa-secondary-opacity: 1;
    color: var(--hub-accent-primary);
}

/* Which way the chevron points is decided in MainLayout by swapping the glyph, so MudBlazor's own
   180deg open-state flip has to be cancelled or the swap renders inverted. */
.blueit-nav .mud-nav-group > .mud-nav-link .mud-nav-link-expand-icon.fa-duotone {
    flex: 0 0 auto;
    margin: 0;
    font-size: 12px;
    transition: transform 150ms;
    --fa-primary-color: var(--hub-text);
    --fa-secondary-color: var(--hub-text);
    color: var(--hub-text);
}

.blueit-nav .mud-nav-group > .mud-nav-link .mud-nav-link-expand-icon.fa-duotone.mud-transform {
    transform: none;
}

.blueit-nav .mud-navgroup-collapse .mud-navmenu {
    padding: 0;
}

.blueit-nav .mud-navgroup-collapse .mud-nav-link {
    display: flex;
    align-items: center;
    gap: var(--hub-space-3);
    width: calc(100% - var(--hub-space-3));
    min-height: 44px;
    margin: 0 0 0 var(--hub-space-3);
    padding: var(--hub-space-1) var(--hub-space-2);
    border: 0;
    border-radius: var(--hub-radius-md);
    color: var(--hub-text);
    text-decoration: none;
    transition: background-color var(--hub-motion-fast);
}

.blueit-nav .mud-navgroup-collapse .mud-nav-link .mud-nav-link-text {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-transform: none;
    letter-spacing: normal;
    color: inherit;
    font-family: 'PT Sans', Helvetica, Arial, sans-serif;
    font-size: 14px;
    font-weight: inherit;
    line-height: 1.35;
}

.blueit-nav .mud-navgroup-collapse .mud-nav-link:hover:not(.mud-nav-link-disabled) {
    background-color: var(--hub-field);
    color: var(--hub-text);
}

.blueit-nav .mud-navgroup-collapse .mud-nav-link:focus-visible:not(.mud-nav-link-disabled) {
    outline: var(--hub-focus-ring-width) solid var(--hub-focus-ring);
    outline-offset: -2px;
}

.blueit-nav .mud-navgroup-collapse .mud-nav-link.active:not(.mud-nav-link-disabled),
.blueit-nav .mud-navgroup-collapse .mud-nav-link.active:not(.mud-nav-link-disabled):hover:not(.mud-nav-link-disabled),
.blueit-nav .mud-navgroup-collapse .mud-nav-link.active:not(.mud-nav-link-disabled):focus-visible:not(.mud-nav-link-disabled) {
    border-inline-end-width: 0;
    background-color: var(--hub-accent-tint);
    box-shadow: inset 3px 0 0 var(--hub-accent-primary);
    color: var(--hub-text);
    font-weight: 600;
}

.blueit-nav .mud-navgroup-collapse .mud-nav-link.mud-nav-link-disabled {
    opacity: .5;
    pointer-events: none;
}

.hub-rail {
    display: none;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: center;
    min-height: 0;
    padding-top: var(--hub-space-3);
}

.hub-rail-search {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin-top: var(--hub-space-3);
    padding: 0;
    border: 0;
    border-radius: var(--hub-radius-md);
    background: transparent;
    color: #A8A8A8;
    cursor: pointer;
    transition: background-color var(--hub-motion-fast);
}

.hub-rail-search:hover {
    background-color: var(--hub-field);
}

.hub-rail-search i {
    font-size: 16px;
    --fa-primary-color: currentColor;
    --fa-secondary-color: currentColor;
    --fa-secondary-opacity: .5;
}

.hub-rail-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--hub-space-1);
    width: 100%;
    padding-top: var(--hub-space-2);
}

.hub-rail-body > .hub-rail-sep {
    width: 60%;
    margin: 0;
    border: 0;
    border-top: 1px solid var(--hub-separator);
}

.hub-rail-body > .hub-rail-sep:first-child {
    display: none;
}

.hub-rail-item {
    position: relative;
    display: flex;
    justify-content: center;
    width: 100%;
}

.hub-rail-tile {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: var(--hub-radius-md);
    background-color: var(--hub-accent-tint);
    cursor: pointer;
    transition: background-color var(--hub-motion-fast);
}

.hub-rail-tile:hover {
    background-color: color-mix(in srgb, var(--hub-accent-tint) 92%, black);
}

.hub-rail-tile.hub-rail-tile--active {
    box-shadow: inset 3px 0 0 var(--hub-accent-primary);
}

.hub-rail-tile i,
.hub-rail-flyout-title i {
    width: 28px;
    font-size: 14px;
    text-align: center;
    --fa-primary-color: var(--hub-accent-primary);
    --fa-secondary-color: var(--hub-accent-secondary);
    --fa-secondary-opacity: 1;
}

.hub-rail-flyout {
    position: absolute;
    top: 0;
    left: 100%;
    z-index: 1000;
    min-width: 220px;
    padding: 0 0 var(--hub-space-1);
    border-radius: var(--hub-radius-md);
    background: linear-gradient(to right, var(--hub-flyout-plate) 36px, var(--hub-surface) 36px);
    box-shadow: var(--hub-flyout-shadow);
    text-align: left;
    visibility: hidden;
    transition: visibility 0s linear 200ms;
}

.hub-rail-item:hover .hub-rail-flyout,
.hub-rail-item:focus-within .hub-rail-flyout {
    visibility: visible;
    transition-delay: 0s;
}

.hub-rail-item.hub-rail-item--closed .hub-rail-flyout {
    visibility: hidden;
    transition-delay: 0s;
}

.hub-rail-flyout-title {
    display: flex;
    align-items: center;
    padding: var(--hub-space-2) var(--hub-space-3) var(--hub-space-1) 4px;
    color: var(--hub-muted);
    font-size: 12px;
    font-weight: 600;
}

.hub-rail-flyout-title i {
    flex: 0 0 28px;
    margin-right: var(--hub-space-1);
}

.hub-rail-link {
    position: relative;
    display: block;
    margin-left: 36px;
    padding: 6px var(--hub-space-3) 6px var(--hub-space-2);
    color: var(--hub-text);
    font-size: 14px;
    line-height: 1.35;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color var(--hub-motion-fast);
}

.hub-rail-link:hover {
    background-color: var(--hub-row-hover);
}

.hub-rail-link.hub-rail-link--active {
    background-color: var(--hub-accent-tint);
    font-weight: 600;
}

.hub-rail-link.hub-rail-link--active::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 3px;
    background-color: var(--hub-accent-primary);
}

.blueit-drawer-footer {
    flex: 0 0 auto;
    padding: .5rem;
    text-align: center;
}

.blueit-drawer-footer .mud-icon-root {
    font-size: 30px;
    color: var(--blueit-secondary);
}

@media (min-width: 960px) {
    .hub-nav-collapse,
    .hub-rail-expand {
        display: inline-flex;
    }

    .hub-rail {
        display: flex;
    }

    .hub-sidenav--collapsed .hub-panel--phone {
        display: none;
    }

    .hub-nav-search-plate {
        min-height: 28px;
    }

    .blueit-nav .mud-nav-group > .mud-nav-link {
        min-height: 28px;
    }

    .blueit-nav .mud-navgroup-collapse .mud-nav-link {
        min-height: 32px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hub-nav-collapse,
    .hub-rail-expand,
    .hub-rail-search,
    .hub-rail-tile,
    .hub-rail-link,
    .hub-rail-flyout,
    .hub-nav-search-plate,
    .blueit-nav .mud-nav-group > .mud-nav-link,
    .blueit-nav .mud-nav-group > .mud-nav-link .mud-nav-link-expand-icon.fa-duotone,
    .blueit-nav .mud-navgroup-collapse .mud-nav-link {
        transition: none;
    }
}

/* --- Duotone icons ------------------------------------------------------------------------ */

/* MudBlazor sizes an SVG icon through width/height on the <svg>; a webfont icon is sized by
   font-size instead, so the size classes have to be restated for the font path or every icon
   renders at the inherited body size regardless of Size=. The values match MudBlazor's own
   1.25 / 1.5 / 2.25 rem SVG steps. */
.mud-icon-root.fa-duotone {
    font-size: 1.5rem;
    line-height: 1;
    width: auto;
    height: auto;
}

.mud-icon-root.fa-duotone.mud-icon-size-small {
    font-size: 1.25rem;
}

.mud-icon-root.fa-duotone.mud-icon-size-medium {
    font-size: 1.5rem;
}

.mud-icon-root.fa-duotone.mud-icon-size-large {
    font-size: 2.25rem;
}

/* Inside a button the icon sits on a text baseline, so it takes the button's type size rather
   than the standalone icon size — otherwise a StartIcon towers over its own label. */
.mud-button-root .mud-icon-root.fa-duotone {
    font-size: 1.125rem;
}

/* --- Panels ------------------------------------------------------------------------------- */

/* White 8px panels on the grey ground, with the house shadow — OptiFlow's .panel. Applied
   opt-in so it never fights a MudPaper that is deliberately flat. */
.blueit-panel {
    border-radius: var(--hub-radius-lg);
    background-color: var(--mud-palette-surface);
    box-shadow: var(--blueit-shadow);
}

/* --- Grids ---------------------------------------------------------------------------------

   MainTasc's grid treatment, from `devExtreme-components-mikeoscopic-V5.css`. A tinted, bold header
   over quiet rows is the single most recognisable thing about a MainTasc screen, and the thing an
   untouched MudBlazor table looks least like: its header is the same white as the rows and separated
   from them by one hairline, so a wide grid reads as an undifferentiated sheet.

   Each fill is declared TWICE on purpose. The first declaration is MainTasc's literal, for an engine
   that does not know `color-mix()`; the second reproduces that literal exactly in light mode
   (#BFC7D7 IS the brand navy at 25% over white) while following the surface into dark mode, where a
   fixed near-white header band would be the brightest thing on the page. An engine that cannot parse
   the second declaration discards it and keeps the first — which is why the order matters, and why a
   test pins it. */

.blueit-grid-header-fill {
    background-color: var(--blueit-grid-header);
    background-color: color-mix(in srgb, var(--blueit-primary) 25%, var(--mud-palette-surface));
}

/* MudTable and MudDataGrid share `.mud-table-head`; MudSimpleTable renders bare `<th>`s instead, so
   it needs its own selector rather than inheriting one.

   The sticky variants are listed SEPARATELY and are not redundant. MudBlazor repaints a fixed header
   back to the plain surface through
   `.mud-table-sticky-header * .mud-table-root .mud-table-head .mud-table-cell` — four classes, which
   beats the two-class rule below and silently leaves exactly the grids that scroll (the Fleet
   employee, resolution and cost tables) with a white header. Browser-caught, not reasoned: the
   font-weight from this rule applied while its background did not, which is what that kind of loss
   looks like. Each sticky selector below therefore carries one element more than MudBlazor's, so it
   wins on specificity rather than on the order the stylesheets happen to load in. */
.mud-table-head .mud-table-cell,
.mud-simple-table table thead th,
.mud-table-sticky-header .mud-table-root thead.mud-table-head .mud-table-cell,
.mud-simple-table.mud-table-sticky-header .mud-table-container table thead th {
    background-color: var(--hub-grid-header);
    color: var(--hub-text);
    font-weight: 700;
}

/* A SORTABLE header over a right-aligned column has to end on the same edge as the figures beneath
   it, and by default it does not. MudBlazor's sort label is an inline-flex whose arrow keeps its
   18px glyph plus 8px of margin while sitting at `opacity: 0` — so an unsorted `text-align: right`
   heading stops ~26px short of the cell's padding edge while every value in the column sits flush
   against it. The column then reads as misaligned, and it is the heading that looks wrong rather
   than the data. Screen-caught, from a Fleet month grid where four headings did it at once.

   Reversing the label puts the arrow on the INSIDE: the heading and the digits share one right edge,
   and the direction arrow still reads immediately beside the word it belongs to. Applied opt-in, per
   header cell, because a LEFT-aligned sortable header is already flush and would be broken by this.

   Three classes, so it beats MudBlazor's own single-class `.mud-table-sort-label` on specificity
   rather than on the order the stylesheets load in. bUnit applies no stylesheet, so what a component
   test can pin is the class on the cell — the rule itself is pinned in BlueItBrandAssetTests. */
.mud-table-head .mud-table-cell.blueit-grid-sort-right .mud-table-sort-label {
    flex-direction: row-reverse;
}

/* A grid's footer carries totals, which are a summary rather than data: MainTasc gives that role its
   neutral grey (`.dx-group-row`) so it reads as a band rather than as one more row. Same sticky
   caveat as the header above — `.mud-table-sticky-footer * .mud-table-root .mud-table-foot * ...`
   repaints a pinned totals row to the plain surface. */
.mud-table-foot .mud-table-cell,
.mud-table-sticky-footer .mud-table-root tfoot.mud-table-foot .mud-table-cell,
.blueit-grid-group {
    background-color: var(--blueit-grid-group);
    background-color: color-mix(in srgb, var(--mud-palette-text-primary) 16%, var(--mud-palette-surface));
    font-weight: 700;
}

/* --- Buttons -------------------------------------------------------------------------------

   MainTasc 2.0 rounds every control to 5px, so one rule on the root class covers filled, outlined,
   text and icon buttons alike. Same specificity as MudBlazor's own radius rules, so it wins on source
   order — app.css is linked after MudBlazor.min.css. */
.mud-button-root {
    border-radius: var(--hub-radius-md);
}

/* --- Dialogs ---------------------------------------------------------------------------------

   The 2.0 popup itself is styled by the hub-dialog / hub-confirm rules; this keeps the 8px card
   radius on any MudDialog surface. */

.mud-dialog {
    border-radius: var(--hub-radius-lg);
}

/* --- About --------------------------------------------------------------------------------

   MainTasc V5's `_AboutContent` / `#about-information-table`: a large display line, the
   product and copyright block, then a shadowed band of equal columns — each a SOLID NAVY
   header over its value — closing on the copyright warning in the accent red.

   The band is a surface where the navy is a FILL rather than the 25%
   tint the grids use, which is what makes it the thing read first in the dialog. `--blueit-shadow`
   is already MainTasc's two-layer literal, so the elevation needs nothing of its own. */

.blueit-about-headline {
    font-size: 2.5rem;
    color: var(--mud-palette-text-primary);
}

.blueit-about-band {
    display: grid;
    /* Four across in the dialog, folding as it narrows — and it has to survive TWO columns, which is
       what a caller without settings.application.view sees. auto-fit does both without a breakpoint. */
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    background-color: var(--mud-palette-surface);
    box-shadow: var(--blueit-shadow);
}

.blueit-about-band .blueit-about-header {
    background-color: var(--blueit-primary);
    color: #fff;
    font-family: 'Oswald', 'PT Sans', Helvetica, Arial, sans-serif;
    font-size: 1.125rem;
    padding: .5rem;
}

.blueit-about-band .blueit-about-value {
    padding: .5rem;
    /* A machine name or catalog has no spaces to break on and would otherwise widen its column. */
    overflow-wrap: anywhere;
}

/* --- Semantic icon colours ------------------------------------------------------------------

   MainTasc colours an icon by what it DOES, everywhere it appears: green to add, navy to view or
   edit, red to delete, mid-blue to download or print. It is what lets a dense toolbar be read at a
   glance without labels, and it is keyed off the Font Awesome glyph class — so the rules below are
   the same shape as MainTasc's, and any new icon from that family is coloured by being used.

   Both `--fa-*-color` layers AND `color` are set: a duotone glyph paints itself from the custom
   properties and ignores an inherited `color` (the drawer rules above hit the same wall). The
   secondary layer keeps the file's 40% opacity, so the icons stay two-tone. */
.mud-icon-root.fa-plus,
.mud-icon-root.fa-circle-plus,
.mud-icon-root.fa-file-circle-plus,
.mud-icon-root.fa-folder-plus,
.mud-icon-root.fa-circle-check,
.mud-icon-root.fa-cloud-arrow-up,
.mud-icon-root.fa-upload {
    --fa-primary-color: var(--mud-palette-success);
    --fa-secondary-color: var(--mud-palette-success);
    color: var(--mud-palette-success);
}

.mud-icon-root.fa-pen,
.mud-icon-root.fa-pen-to-square,
.mud-icon-root.fa-copy,
.mud-icon-root.fa-eye,
.mud-icon-root.fa-file,
.mud-icon-root.fa-file-pen {
    --fa-primary-color: var(--mud-palette-primary);
    --fa-secondary-color: var(--mud-palette-primary);
    color: var(--mud-palette-primary);
}

.mud-icon-root.fa-trash,
.mud-icon-root.fa-trash-can,
.mud-icon-root.fa-circle-xmark,
.mud-icon-root.fa-ban {
    --fa-primary-color: var(--mud-palette-error);
    --fa-secondary-color: var(--mud-palette-error);
    color: var(--mud-palette-error);
}

.mud-icon-root.fa-download,
.mud-icon-root.fa-print,
.mud-icon-root.fa-circle-info,
.mud-icon-root.fa-circle-left,
.mud-icon-root.fa-circle-right {
    --fa-primary-color: var(--mud-palette-tertiary);
    --fa-secondary-color: var(--mud-palette-tertiary);
    color: var(--mud-palette-tertiary);
}

/* The semantic colours are for icons standing on a light surface. Anywhere the icon is ALREADY on a
   coloured ground the button, bar or row owns the contrast, and a green plus on a navy app bar or a
   navy pen on a red hover row is the failure this prevents. MainTasc does the same thing in reverse
   (`.dc-tb-btn i { color: #fff }`); listed together because they are one rule — "not on chrome" —
   and splitting them invites half of it to be forgotten.

   `.mud-button-filled` is the load-bearing half: without it every StartIcon on a filled button
   paints its own semantic colour ON that button's fill, which for the reports page's blue download
   buttons means a blue glyph on blue. */
.hub-appbar .hub-header-button .mud-icon-root,
.hub-appbar .hub-header-back .mud-icon-root,
.mud-button-filled .mud-icon-root,
.mud-alert .mud-icon-root {
    --fa-primary-color: currentColor;
    --fa-secondary-color: currentColor;
    color: inherit;
}

/* --- Landing tiles ------------------------------------------------------------------------ */

.mud-container.blueit-launcher {
    padding-left: var(--hub-space-4);
    padding-right: var(--hub-space-4);
}

.blueit-launcher-empty {
    max-width: 46rem;
}

.blueit-tiles {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--hub-space-3);
    margin-top: var(--hub-space-2);
}

.blueit-tile {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--hub-space-3);
    min-width: 0;
    min-height: 44px;
    padding: var(--hub-space-3);
    border: 1px solid var(--hub-separator);
    border-radius: var(--hub-radius-lg);
    background-color: var(--hub-surface);
    color: var(--hub-text);
    text-decoration: none;
    transition: background-color var(--hub-motion-fast) ease-in-out;
}

.blueit-tile:hover {
    background-color: color-mix(in srgb, var(--hub-accent-primary) 25%, var(--hub-surface));
    color: var(--hub-text);
    text-decoration: none;
}

.blueit-tile:focus-visible {
    outline: var(--hub-focus-ring-width) solid var(--hub-focus-ring);
    outline-offset: 2px;
}

.blueit-tile-face {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: var(--hub-radius-md);
    background-color: var(--hub-accent-primary);
}

.blueit-tile-face .mud-icon-root,
.blueit-tile-face i {
    font-size: 28px;
    --fa-primary-color: var(--hub-surface);
    --fa-secondary-color: var(--hub-surface);
    --fa-secondary-opacity: .6;
    color: var(--hub-surface);
}

.blueit-tile-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.blueit-tile-caption {
    color: var(--hub-text);
    font-weight: 600;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.blueit-tile-start {
    color: var(--hub-muted);
    font-size: .875rem;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

@media (min-width: 600px) {
    .mud-container.blueit-launcher {
        padding-left: var(--hub-space-5);
        padding-right: var(--hub-space-5);
    }

    .blueit-tiles {
        grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
        gap: var(--hub-space-4);
    }

    .blueit-tile {
        flex-direction: row;
        align-items: center;
        gap: var(--hub-space-4);
        padding: var(--hub-space-3) var(--hub-space-4);
    }
}

/* --- Module placeholder ------------------------------------------------------------------- */

/* The landing page of a module with no code yet (Marketing, Ontwikkeling). Centred in the column
   rather than filling it: the point is that there is nothing here, and a full-width panel would
   imply content is loading. The glyph is the same one as the module's launcher tile, at the tile's
   own size, so the page reads as the square the user just pressed. */
.blueit-module-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Room above so the block sits in the upper third rather than against the app bar, and a floor
       under it so a short page still has a shape. */
    gap: 1rem;
    padding: 4rem 1.5rem;
    text-align: center;
}

.blueit-module-placeholder i {
    font-size: 5rem;
    /* The tile's own duotone treatment, in the navy the page sits on rather than the tile's white. */
    --fa-primary-color: var(--blueit-primary);
    --fa-secondary-color: var(--blueit-primary);
    --fa-secondary-opacity: .35;
}

.blueit-module-placeholder-title {
    letter-spacing: .02em;
    color: var(--blueit-secondary);
}

/* A measure, not the full column: a single sentence set across 1400px is unreadable. */
.blueit-module-placeholder .mud-typography-body1 {
    max-width: 44ch;
}

/* --- Login -------------------------------------------------------------------------------- */

/* The sign-in screen the other BlueIT applications open with: the viewport split exactly in half,
   the logo lockup centred on a navy field and the form centred on a white one. Measured off that
   screen rather than approximated — the 50/50 split, the #F0F0F0 fields, the 41px field height and
   the ~85% form column are all lifted from it.

   This is the one surface in the app that is NOT themed: it stays navy-on-white in dark mode,
   because the two halves ARE the logo's own colours and inverting them would show a white block
   floating on a dark page. LoginLayout pins that by omitting the dark-mode binding. */
.blueit-login {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* dvh, not vh: on mobile Safari/Chrome the URL bar makes 100vh taller than the visible area,
       which pushes the form's lower half under the browser chrome on first paint. */
    min-height: 100dvh;
    background-color: var(--hub-surface);
}

.blueit-login-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--hub-brand);
    padding: 2rem;
}

/* The lockup carries its own navy field and its own drop shadow, so it needs no framing here — it
   simply sits on the same navy and the block merges into the panel. Sized as a fraction of the
   panel (measured at 49%) so it scales with the split instead of jumping at breakpoints. */
.blueit-login-logo {
    width: 49%;
    min-width: 180px;
    max-width: 560px;
    height: auto;
}

.blueit-login-panel {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

/* 85% of the half-panel, as measured. The max-width is the one deliberate departure: the reference
   leaves the column unbounded, which on an ultrawide monitor stretches a two-field form past 1400px.
   980px is wide enough to reproduce the reference exactly at its own width and stop after that. */
.blueit-login-form {
    width: 85%;
    max-width: 980px;
}

/* Black rather than the navy or red the house titles use elsewhere: on this screen the navy is the
   panel beside it, and the greeting is the only text at title size, so it carries no accent. */
.blueit-login-heading {
    font-size: 2rem;
    font-weight: 600;
    color: var(--hub-text);
    margin: 0 0 .75rem;
}

.blueit-login-intro {
    max-width: 46ch;
    margin: 0 0 2.25rem;
    color: var(--hub-muted);
    font-size: .9375rem;
    line-height: 1.5;
}

.blueit-login-submit {
    display: inline-flex;
    align-items: center;
    gap: .625rem;
    min-height: 41px;
    margin-top: .25rem;
    padding: 0 1.125rem;
    border: 0;
    border-radius: var(--hub-radius-md);
    background-color: var(--hub-brand);
    color: var(--hub-surface);
    font-family: 'Oswald', 'PT Sans', Helvetica, Arial, sans-serif;
    font-size: .9375rem;
    font-weight: 500;
    letter-spacing: .04em;
    cursor: pointer;
    transition: background-color .15s ease-in-out;
}

.blueit-login-submit:hover:not(:disabled) {
    background-color: var(--hub-brand-hover);
}

.blueit-login-submit:disabled {
    opacity: .65;
    cursor: default;
}

.blueit-login-submit:focus-visible {
    outline: var(--hub-focus-ring-width) solid var(--hub-focus-ring);
    outline-offset: 2px;
}

/* Recovery is a way out, not a second way in: a quiet text button under the one filled action, so the
   page still reads as having a single call to action. */
.blueit-login-link {
    display: block;
    margin-top: .875rem;
    padding: 0;
    border: 0;
    background: none;
    color: var(--hub-muted);
    font-family: inherit;
    font-size: .8125rem;
    text-decoration: underline;
    cursor: pointer;
}

.blueit-login-link:hover {
    color: var(--hub-brand);
}

.blueit-login-link:focus-visible {
    outline: var(--hub-focus-ring-width) solid var(--hub-focus-ring);
    outline-offset: 2px;
}

/* Flat and red, in the same shape as the fields above it — an alert box with a shadow would be the
   only lifted thing on the page. */
.blueit-login-error {
    margin-bottom: 1rem;
    padding: .625rem .75rem;
    border-radius: var(--hub-radius-md);
    background-color: color-mix(in srgb, var(--hub-destructive) 10%, var(--hub-surface));
    border-left: 3px solid var(--hub-destructive);
    color: var(--hub-destructive);
    font-size: .875rem;
}

/* Two quiet text buttons in the panel's top corner. The reference screen has no such control, but it
   is fronted by an IdP that carries its own; here the login page IS the front door, and the app bar
   that normally holds the language menu is not rendered on this route. */
.blueit-login-culture {
    position: absolute;
    top: 1.25rem;
    right: 1.5rem;
    display: flex;
    gap: .25rem;
}

.blueit-login-culture-option {
    border: 0;
    border-radius: var(--hub-radius-md);
    padding: .25rem .5rem;
    background: none;
    color: var(--hub-muted);
    font-family: inherit;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .06em;
    cursor: pointer;
}

.blueit-login-culture-option:hover {
    color: var(--hub-brand);
}

/* Below the split's usable width the navy half stops being a brand panel and starts being a band
   that steals half the form's room, so the layout stacks: a shallow navy strip carrying the logo
   over a full-width form. */
@media (max-width: 900px) {
    .blueit-login {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
    }

    .blueit-login-brand {
        padding: 2.5rem 2rem;
    }

    .blueit-login-logo {
        width: min(70%, 320px);
    }

    .blueit-login-panel {
        align-items: flex-start;
        padding: 3rem 1.5rem 2rem;
    }

    .blueit-login-form {
        width: 100%;
    }
}

/* --- Forms -------------------------------------------------------------------------------- */

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid var(--blueit-secondary);
}

/* The brand red, matching `.validation-message { color: #880000 }` in the other apps. */
.validation-message {
    color: var(--blueit-secondary);
}

#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.loading-progress {
    position: absolute;
    display: block;
    width: 8rem;
    height: 8rem;
    inset: 20vh 0 auto 0;
    margin: 0 auto 0 auto;
}

    .loading-progress circle {
        fill: none;
        stroke: #c9c9c9;
        stroke-width: 0.6rem;
        transform-origin: 50% 50%;
        transform: rotate(-90deg);
    }

        .loading-progress circle:last-child {
            stroke: var(--blueit-primary);
            stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
            transition: stroke-dasharray 0.05s ease-in-out;
        }

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

    .loading-progress-text:after {
        content: var(--blazor-load-percentage-text, "Loading");
    }

code {
    color: var(--blueit-secondary);
}


/* Fleet Monitoring Import: overlay MudFileUpload's native <input type=file> transparently over
   the drop zone so both a click and a native OS file drop land on it. Applied via InputClass
   (MudBlazor 9.7 deprecated InputStyle in favour of CSS classes). */
.fleet-drop-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

/* The resolution grid is both wide (~11 columns) and long (hundreds of sessions), so the wrapper — never
   the document — owns its VERTICAL scrolling as well as its horizontal. The itemised cost grid (Phase 5c)
   is wider still — ~16 visible money columns — and gets the same treatment. Both are now always-rendered
   sections on a scrolling page, so this bounded height is the only thing keeping either of them from
   running to several screens on its own.

   The bound FILLS the viewport rather than taking a fixed fraction of it. At 60vh these grids stopped ~200px
   short of the window bottom while still scrolling internally — space left empty AND rows hidden, which is
   the worst of both. --fleet-scroll-chrome is everything that shares the screen with the grid on its own
   page (top bar, page header, filters, the caption below, page margins); a host page that stacks more above
   its grid overrides it. Being a little off costs a little document scroll or a little slack, never a broken
   layout, and max() keeps a usable grid on a short window where the calc would go to nothing. */
.fleet-resolution-scroll,
.fleet-cost-scroll {
    max-height: max(18rem, calc(100dvh - var(--fleet-scroll-chrome, 19rem)));
    overflow: auto;
}

/* /hr/fleet is an ORDINARY SCROLLING DOCUMENT.

   It used to be an app-shell page — 100vh, overflow:hidden, and a flex chain that handed all the leftover
   height to whichever grid was on screen — so that a wide grid's horizontal scrollbar stayed pinned to the
   bottom of the window. That bought a reachable scrollbar and cost the operator the ability to see the
   whole page: every section below the grid had to be collapsed to fit, and collapsed sections read as
   empty ones. The operator asked for the opposite trade — everything present, scroll to reach it — so the
   shell is gone and each grid keeps a bounded height of its own instead (the rules above and below).

   The chain that was here is also the thing STATE.md flagged as a silent-failure risk: it keyed off
   selectors that stop matching when the markup moves, and when it stopped matching the only symptom was
   the document scrolling again. Deleting it removes the failure mode along with the behaviour. */

/* The employee table is the page's main body, so it gets the largest share. It scrolls internally, which is
   what keeps the page itself a comfortable length no matter how many rows a month produces.

   Same viewport-filling bound as the two grids above, with a larger allowance because /hr/fleet stacks more
   above this table than the single-section pages do (page header + period pickers, the detection strip, and
   the attention banner when there is one). A month with more rows than fit still scrolls — the point is that
   it now scrolls only once the window is genuinely full, instead of at a flat 60vh with the bottom of the
   screen sitting empty. */
.fleet-employee-table > .mud-table-container {
    max-height: max(18rem, calc(100dvh - 23rem));
    overflow: auto;
}

/* The anomaly review queue's bound is NOT here. It is an inline style on the element itself
   (FleetAnomalySection.razor), which a test pins by reading the style attribute — so a rule here lost to it
   silently and described behaviour that never happened. One source, and it is the inline one. */

/* A kWh/100 km reading above the band a normal EV can account for. Colour AND weight, never colour alone:
   the whole point of the cell is to be noticed while scanning a column, and a reader who cannot separate
   the palette's warning hue from its body text would otherwise see no emphasis at all. */
.fleet-consumption-high {
    color: var(--mud-palette-warning-darken);
    font-weight: 700;
}

/* The month-rollup strip sits above the cost grid inside the same scroll region, so its height is height
   the grid does not get. A whole-year read can return twelve rollups, so the row must NOT wrap: it stays
   exactly one card tall and scrolls sideways for the rest. */
.fleet-cost-summary {
    overflow-x: auto;
    flex: 0 0 auto;
}

.fleet-cost-summary > .hub-card {
    flex: 0 0 auto;
    min-width: 17rem;
    max-width: 85vw;
}

.fleet-override-fields {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.fleet-override-fields > .mud-autocomplete,
.fleet-override-fields > .mud-input-control {
    min-width: 0;
    width: 100%;
}

@media (min-width: 960px) {
    .fleet-override-fields {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
    }

    .fleet-override-fields > .mud-autocomplete,
    .fleet-override-fields > .mud-input-control {
        flex: 1 1 14rem;
        width: auto;
    }
}

/* MudDataGrid renders its own inner .mud-table-container with overflow/height; neutralise it so
   the wrapper above is the single scroll context (otherwise a nested scroll box reintroduces the
   unreachable-scrollbar problem and breaks the sticky header below). */
.fleet-resolution-scroll .mud-table-container,
.fleet-cost-scroll .mud-table-container {
    max-height: none;
    overflow: visible;
}

/* Keep the header visible while scrolling the rows; it sticks to the top of the scroll viewport.

   The fill is what stops the scrolled rows showing through, and it is the SAME pair of declarations
   as the shared grid-header rule rather than the plain surface it used to be — restated here because
   a sticky header is the one place an inherited fill is not optional: get it wrong and rows slide
   visibly under the header text. */
.fleet-resolution-table thead th,
.fleet-cost-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background-color: var(--hub-grid-header);
}

/* Let each column size to its content on a single line rather than wrapping short values (dates,
   ids, plates, names) across several cramped lines; the wrapper's overflow handles any overflow. */
.fleet-resolution-table th,
.fleet-resolution-table td,
.fleet-cost-table th,
.fleet-cost-table td {
    white-space: nowrap;
    vertical-align: top;
}

/* The charge-location column holds a free-text venue name + address, so it wraps within a bounded width
   instead of stretching the whole row. (It was two such columns until Phase 4e retired the Reason
   column in favour of a tooltip on the status chip.) */
.fleet-resolution-table th.fleet-col-wrap,
.fleet-resolution-table td.fleet-col-wrap,
.fleet-cost-table th.fleet-col-wrap,
.fleet-cost-table td.fleet-col-wrap {
    white-space: normal;
    min-width: 14rem;
    max-width: 22rem;
}
/* The findings queue's table (/hr/fleet/findings), which has a page — and therefore the full content width —
   to itself. Same discipline as the two grids above: cells on one line, ONE column allowed to wrap, header
   sticky against the wrapper's scroll.

   This is what the .fleet-col-wrap class on that table was always asking for and never getting: the rule
   below was scoped to the resolution and cost tables only, so the description column had no width of its own,
   collapsed to ~200px, and stood every row 223px tall — two and a half rows of a 42-row queue on a 1200px
   screen. Its own min/max rather than a share of the rule below because this column carries two full
   sentences (what the finding means and what to do about it), not a venue name. */
.fleet-anomaly-table th,
.fleet-anomaly-table td {
    white-space: nowrap;
    vertical-align: top;
}

.fleet-anomaly-table th.fleet-col-wrap,
.fleet-anomaly-table td.fleet-col-wrap {
    white-space: normal;
    min-width: 24rem;
    max-width: 40rem;
}

.fleet-anomaly-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background-color: var(--hub-grid-header);
}

/* A row of period/type/status pickers with a trailing action. MudBlazor's input root is flex:1 1 auto, so on a
   full-width page each picker's root grew to ~430px while the inline max-width held the visible control at
   120–280px — four pickers strung across the screen with 200px of nothing between them. They size to their
   cap; the action stays on the right, where it was before the page got wider.

   Both selectors on purpose: a MudSelect's root carries .mud-select ALONE (verified in the DOM, not assumed),
   while the field components a future filter row might add carry .mud-input-control. */
.fleet-filter-row > .mud-select,
.fleet-filter-row > .mud-picker,
.fleet-filter-row > .mud-input-control {
    flex: 0 0 auto;
}

.fleet-filter-row > .mud-button-root {
    margin-left: auto;
}

/* Prose on a page that is otherwise a wide table. The table wants every pixel; a paragraph does not — past
   about 100 characters a line is measurably harder to track back from.

   .blueit-prose is the same rule under a name a page outside Fleet can use without reading as a copy-paste;
   both are listed rather than one aliasing the other so neither can be deleted with the other still in use. */
.fleet-prose,
.blueit-prose {
    max-width: 100ch;
}

/* The employee-month drill-down's summary tiles. Same shape as the chart grid below, much tighter track,
   and the track width is the whole point: the box these sit in is the DIALOG'S CONTENT box, which on a 390px
   phone is 278px — not the 326px the dialog itself measures. 2 × 125 + 12 = 262 fits that; 2 × 140 + 12 = 292
   does not, and auto-fit answers a track that does not fit with a single column, which is the one-per-row
   stack this replaced. A 320px phone (208px content box) still gets one column, and that is the honest
   outcome there rather than two unreadable 98px tiles. */
.fleet-detail-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(125px, 1fr));
    gap: 12px;
}

/* The employee-month drill-down's charts: a responsive grid that gives each chart a readable minimum and
   collapses to one column on a narrow window. auto-fit rather than a fixed column count so the dialog does
   not have to know how many charts it holds. */
.fleet-chart-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 12px;
}

/* The per-session calculation table is wide (eleven derivation columns), so the wrapper owns its scrolling
   rather than the dialog. Bounded so the calculation never pushes the contribution block off the screen. */
.fleet-calc-scroll {
    max-height: 45vh;
    overflow: auto;
}

/* A row that SUMS the rows above it, in the charge breakdown. A rule above the cells is how an invoice says
   "this is a subtotal", and the breakdown is read as one: without it, nine label/value rows read as nine
   unrelated facts rather than as an addition ending in the amount payroll deducts.

   2px, because MudSimpleTable already draws a hairline between EVERY row — at 1px the subtotal rule was
   indistinguishable from the ordinary row separators and marked nothing at all. currentColor so the line holds
   on both the light and the dark theme, which the app switches between at runtime. */
.fleet-calc-sum > td {
    border-top: 2px solid currentColor;
    font-weight: 500;
}

/* The employee overview's rows are clickable (they open the drill-down), so they say so. */
.fleet-employee-table tbody tr.cursor-pointer {
    cursor: pointer;
}

/* ---------------------------------------------------------------------------------------------------
   THE DELIVERY PLAN (R-PLA-001). */

/* The archive filter. MudBlazor's input root is flex:1 1 auto, so on a page that is now full width the
   select stretched to the whole window for a control holding one of three words. Same fix as the fleet
   filter row: it sizes to what it holds. */
.delivery-plan-filter {
    max-width: 16rem;
}

/* The plan LIST. Every column but the iteration holds a date, a short label or a chip, so nothing but the
   iteration should ever wrap — a wrapped date column stands the whole row two lines tall for no gain. */
.delivery-plans-table td,
.delivery-plans-table th {
    white-space: nowrap;
}

.delivery-plans-table td:nth-child(2) {
    white-space: normal;
    min-width: 14rem;
}

/* The page head: the iteration's name, its status, and the acts available on it, on one line with a
   rule under it. Without the rule the title, the caption line and the first panel run together into a
   single grey block — the page had no visible start. */
.delivery-plan-head {
    border-bottom: 2px solid var(--blueit-primary);
    padding-bottom: .5rem;
    margin-bottom: 1rem;
}

/* The header panel's fields, laid out on a grid rather than left to flex-wrap. Wrapping put a 220px
   date picker next to a 400px select and broke the second row's left edge; a grid keeps every label on
   the same column whatever the window width, which is what makes the block scannable.

   auto-FILL with a capped track, not auto-fit with 1fr. auto-fit collapses the tracks nothing lands in and
   hands their width to the ones that do: on a full-width page that gave a two-field row two 971px inputs
   (measured), a date picker as wide as half the monitor. A capped max keeps every field the size of a field
   whether the row holds two of them or eight. */
.delivery-plan-fields {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(13rem, 22rem));
    gap: .75rem 1.25rem;
    align-items: start;
}

/* The header cards: one column on a phone, two from 960px. Each card holds its own field grid. */
.delivery-plan-cards {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--hub-space-3);
    margin-bottom: var(--hub-space-4);
}

.delivery-plan-card .delivery-plan-fields {
    grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 960px) {
    .delivery-plan-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .delivery-plan-cards > .delivery-plan-card:first-child {
        grid-column: 1 / -1;
    }

    .delivery-plan-cards > .delivery-plan-card:first-child .delivery-plan-fields {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* The sticky split action bar (HubActionBar): Save in the brand colour, Close in the destructive one,
   flush 50/50. It is the last child of its screen, so it sticks to the bottom of the scrolling content
   area, above the status footer, and never covers the last row. */
.hub-action-bar {
    position: sticky;
    bottom: 0;
    z-index: 3;
    display: flex;
    gap: 0;
    margin-top: var(--hub-space-4);
    box-shadow: var(--hub-panel-footer-shadow);
}

.hub-action-button {
    display: inline-flex;
    flex: 1 1 0;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: var(--hub-button-height);
    margin: 0;
    padding: 0 var(--hub-space-2);
    border: 0;
    border-radius: 0;
    color: #FFFFFF;
    font: inherit;
    cursor: pointer;
    transition: background-color var(--hub-motion-fast), filter var(--hub-motion-fast);
}

.hub-action-save {
    background: var(--hub-brand);
}

.hub-action-save:hover:not(:disabled) {
    background: var(--hub-brand-hover);
}

.hub-action-close {
    background: var(--hub-destructive);
}

.hub-action-close:hover:not(:disabled) {
    filter: brightness(1.15);
}

.hub-action-button:focus-visible {
    outline: var(--hub-focus-ring-width) solid var(--hub-focus-ring);
    outline-offset: -2px;
}

.hub-action-button:disabled {
    cursor: not-allowed;
    opacity: .6;
}

@media (prefers-reduced-motion: reduce) {
    .hub-action-button {
        transition: none;
    }
}

/* The body of a settings tab: cards stacked on the page ground, the HubActionBar last so it sticks to the
   bottom of the scrolling content area. A card scrolls its own wide table on a phone. */
.hub-settings-tab {
    display: flex;
    flex-direction: column;
    gap: var(--hub-space-2);
    padding-top: var(--hub-space-2);
    background: var(--hub-page);
}

.hub-settings-tab > .hub-card {
    min-width: 0;
    overflow-x: auto;
}

.hub-settings-tabs .mud-tab {
    text-transform: none;
}

.hub-settings-tab > .hub-action-bar {
    margin-top: 0;
}

@media (min-width: 960px) {
    .hub-settings-tab {
        gap: var(--hub-space-3);
        padding-top: var(--hub-space-3);
    }
}

/* A section of the workbook. The house treatment for a form/section heading is Oswald sentence case in the
   accent red (.blueit-title-accent) — applied in the markup; what belongs here is the rule under it,
   which is what separates one section from the next now that the numbering is gone. */
.delivery-plan-section-title {
    border-bottom: 1px solid var(--mud-palette-lines-default);
    padding-bottom: .35rem;
    margin-bottom: .75rem;
}

/* A GROUP inside a section — the workbook's "1. Delivery U2_PLA_05". Rendered as MainTasc renders a
   group row: a tinted band the full width of the table it heads, not a small grey caption floating
   above it. The band and the header row beneath it are what let the eye find where one group of rows
   stops and the next begins while scrolling a 46-row sheet. */
.delivery-plan-group {
    padding: .35rem .75rem;
    font-weight: 700;
    font-size: .8125rem;
    letter-spacing: .02em;
}

/* A structural HEADING row inside the sheet. It carries no data at all, so it is marked by WEIGHT and a
   rule above it rather than by a fill: it sits directly under the group band and the table's own tinted
   header, and a third filled band in three consecutive rows reads as a rendering fault. */
.delivery-task-heading > td {
    font-weight: 700;
    border-top: 1px solid var(--mud-palette-lines-default);
}

/* A row with unsaved edits. The Save button appearing is the primary signal; this is the secondary one,
   so that a row edited and then scrolled past is still findable. Colour AND a bar, never colour alone. */
.delivery-task-dirty > td:first-child {
    box-shadow: inset 3px 0 0 0 var(--mud-palette-warning);
}

/* Excel-style fill on the Scheduled/Actual cells. A small square sits in the cell's bottom-right corner
   (shown on hover or focus); dragging it over other cells copies the value, double-clicking fills down to
   the end of the group. Hidden on touch screens, where there is no hover and a drag scrolls the page. */
.delivery-fill-cell {
    position: relative;
}

.delivery-fill-handle {
    position: absolute;
    right: -4px;
    bottom: -4px;
    width: 9px;
    height: 9px;
    background: var(--mud-palette-primary);
    border: 1px solid var(--mud-palette-surface);
    cursor: crosshair;
    opacity: 0;
    z-index: 2;
}

.delivery-fill-cell:hover .delivery-fill-handle,
.delivery-fill-cell:focus-within .delivery-fill-handle,
.delivery-fill-source .delivery-fill-handle {
    opacity: 1;
}

.delivery-fill-range {
    outline: 2px dashed var(--mud-palette-primary);
    outline-offset: 2px;
    background: var(--mud-palette-primary-hover);
}

.delivery-filling,
.delivery-filling * {
    user-select: none;
    cursor: crosshair !important;
}

@media (hover: none) {
    .delivery-fill-handle {
        display: none;
    }
}

/* The unsaved-changes bar stays in view while scrolling a long sheet, so Save all is always reachable. */
.delivery-task-unsaved {
    position: sticky;
    top: calc(var(--mud-appbar-height, 64px) + .5rem);
    z-index: 3;
    border-left: 3px solid var(--mud-palette-warning);
}

/* The sheet's own column widths.

   The one that matters most is the task text: it is the controlled wording of the registration and it is
   what a lead reads to know which row they are filling in. Left to the browser's auto layout every column
   negotiated for the same share, so "Iteration checklist U2_PLA_05 Completed (1 - 7)" wrapped onto five
   lines while the short columns sat on comfortable widths beside it. So the widths are declared rather
   than negotiated: the short columns are pinned to what their content needs and the task column takes
   everything left over.

   SEVEN columns — Task, Scheduled, Actual, Result, Note, Modified by, Actions. The nth-child indices below
   are positional, so they must be renumbered whenever a column is added or removed; a stale index silently
   sizes the wrong column rather than failing anything.

   TWO THINGS THIS BLOCK GETS RIGHT AND AN EARLIER VERSION DID NOT.

   First, the min-width belongs on the inner <table>, never on MudTable's ROOT. On the root it makes the
   whole component 60rem wide, which the internal scroll container cannot absorb — it pushes the document
   itself into horizontal overflow (measured: 602px of it at 390px wide).

   Second, the whole block is gated above MudTable's card breakpoint. Below it the same cells are stacked
   into cards, where a declared column width is meaningless and a min-width is actively harmful. */
@media (min-width: 600px) {
    .delivery-plan-table > .mud-table-container {
        overflow-x: auto;
    }

    .delivery-plan-table table {
        min-width: 64rem;
    }

    /* Task — everything left over, and the only column allowed to wrap. */
    .delivery-plan-table th:nth-child(1),
    .delivery-plan-table td:nth-child(1) {
        width: auto;
        min-width: 16rem;
    }

    .delivery-plan-table th:nth-child(2),
    .delivery-plan-table td:nth-child(2),
    .delivery-plan-table th:nth-child(3),
    .delivery-plan-table td:nth-child(3) {
        width: 12.5rem;
    }

    /* Result. Wide enough for the checklist row's Success/Fail SELECT, not just for a chip — at the 8rem a
       chip needs, "Niet geslaagd" clipped inside its own control. */
    .delivery-plan-table th:nth-child(4),
    .delivery-plan-table td:nth-child(4) {
        width: 11rem;
    }

    .delivery-plan-table th:nth-child(5),
    .delivery-plan-table td:nth-child(5) {
        width: 16rem;
    }

    /* Modified by — an email address. 13rem fits a house address ("hans.geerts@blueit.eu") on one line;
       at 11rem it broke after the second-to-last character, which reads as a rendering fault rather than as
       a wrap. `anywhere` stays as the fallback for a genuinely long address, where breaking mid-word beats
       pushing the column into the Actions one. */
    .delivery-plan-table th:nth-child(6),
    .delivery-plan-table td:nth-child(6) {
        width: 13rem;
        overflow-wrap: anywhere;
    }

    .delivery-plan-table th:nth-child(7),
    .delivery-plan-table td:nth-child(7) {
        width: 6rem;
        white-space: nowrap;
    }
}

/* ---- The registered checklists (R-PLA-002, R-DEV-004) ----------------------------------------------

   A checklist is a LIST, not a grid: one box, one sentence, and — once ticked — who ticked it. A table
   would give the same information four columns and a horizontal scrollbar to reach them, which on the
   phone this is meant to be filled in on is exactly the wrong shape. */

.delivery-checklist-head {
    margin-bottom: 1rem;
}

/* The section band, with its own count on the right: "3.5 INSTALLATION PACKAGE" is sixteen lines, and
   which SECTION is outstanding is the thing a reader scans for. */
.delivery-checklist-group {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1rem;
    padding: .35rem .75rem;
    font-weight: 700;
    font-size: .8125rem;
    letter-spacing: .02em;
}

.delivery-checklist-group-count {
    font-weight: 400;
    font-variant-numeric: tabular-nums;
}

.delivery-checklist-items {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* The checkbox and the line sit on a baseline-ish row rather than centred: a two-line task text next to a
   vertically centred box makes the box look like it belongs to neither line. */
.delivery-checklist-item {
    display: flex;
    align-items: flex-start;
    gap: .25rem;
    padding: .15rem 0;
    border-bottom: 1px solid var(--mud-palette-lines-default);
}

.delivery-checklist-item:last-child {
    border-bottom: 0;
}

.delivery-checklist-item-body {
    flex: 1 1 auto;
    min-width: 0;
    /* Aligns the sentence with the checkbox's own glyph rather than with the ripple box around it. */
    padding-top: .5rem;
}

/* A done line steps back. NOT struck through and not greyed to illegibility: this is a registration an
   auditor reads, so a completed line has to stay as readable as an open one — it simply stops competing
   for attention with the ones still to do. */
.delivery-checklist-item-done .delivery-checklist-item-body {
    color: var(--mud-palette-text-secondary);
}

/* The foot of the plan: the same two sign-off acts as the page head, where the sheet actually ends. The
   rule ABOVE it is the mirror of the head's rule below its title — it closes the page off rather than
   letting two buttons float under the last table. */
.delivery-plan-foot {
    border-top: 2px solid var(--blueit-primary);
    padding-top: .75rem;
    margin-bottom: 1.5rem;
}

/* --- SETTINGS PAGES ------------------------------------------------------------------------------
   The shared treatment every module's settings screen takes, so /hr/settings and /development/settings
   are built out of the same parts rather than each inventing its own. */

/* PAGE WIDTH. Every page fills the content area: MainLayout renders its MudContainer with
   MaxWidth.False for every route, so no page opts in and none can be forgotten. It used to default to
   MaxWidth.Large (1200px) with a per-page :has() opt-out, and every new page shipped narrow until someone
   noticed. Host.Tests PageWidthTests pins the container and fails a page whose card, paper or
   alert caps its own width inline. Cap a CONTROL (a picker, a select) — never the surface around it —
   and cap prose with .blueit-prose. .blueit-page-wide, .fleet-page and .delivery-plan-page stay on their
   pages only as hooks for the rules scoped under them. */

/* A settings grid is a FORM, not a report: its cells hold inputs, and MudBlazor's input root is
   flex:1 1 auto — so on a page that is now the full window width a field for a four-digit tariff
   stretched to several hundred pixels. Cap the controls, and let the LAST column (the action run)
   absorb every remaining pixel: width:100% on one auto-layout column claims the slack and leaves the
   others at their content width, which keeps a widened table reading as a compact form on the left of
   a wide page instead of a row of inputs strung across it.

   The min-width is not optional and was learned the hard way in the browser: an input's own content
   width is ZERO, so handing the slack to the last column collapsed every field in the GREG grid to a
   28px sliver showing one clipped digit. 7rem fits the widest value either column holds — a GREG
   tariff to four decimals ("0,3132") and the 1,75 filter — with the outlined border and padding. */
.blueit-settings-table .mud-input-control {
    min-width: 7rem;
    max-width: 12rem;
}

/* A SELECT holds a LABEL, not a number, so it gets the wider cap: "Normaal (publiek plafond)" is 25
   characters and clipped to "Normaal (publiek …" at 12rem — and a truncated pricing category is the one
   value in this grid a reader cannot recover by looking harder, since the rest of the row is a
   multiplier that means nothing without it.

   .mud-select.mud-input-control, both classes on the same element: MudBlazor wraps the control in an
   outer div.mud-select whose child carries BOTH (read off the DOM, not assumed — the outer wrapper alone
   would not narrow the field). */
.blueit-settings-table .mud-select.mud-input-control {
    max-width: 16rem;
}

.blueit-settings-table th:last-child,
.blueit-settings-table td:last-child {
    width: 100%;
}

/* A row of form controls OUTSIDE a table — a year picker above a grid, an add-a-row form below one.
   Same flex:1 1 auto problem, same fix as .fleet-filter-row, minus that rule's trailing-action
   alignment: here the button belongs beside the fields it submits, not pushed to the far margin.

   Both selectors on purpose: a MudSelect's root carries .mud-select ALONE (verified in the DOM, not
   assumed), a MudDatePicker's root carries .mud-picker ALONE (the invoice export's period grew to half
   the window each without it), while the field components carry .mud-input-control. */
.blueit-form-row > .mud-select,
.blueit-form-row > .mud-picker,
.blueit-form-row > .mud-input-control {
    flex: 0 0 auto;
    min-width: 10rem;
    max-width: 16rem;
}

/* --- Development settings: the checklist template grid -------------------------------------- */

/* The registrations are shown in the same MudSimpleTable the HR settings grids use, so one column has to
   carry the line's TEXT — R-DEV-004 3.5.14 is 197 characters. Every other column holds a number, a
   process-unit code or a name and stays on one line; a wrapped number column would stand the row two
   lines tall for no gain. vertical-align: top so a wrapped text cell does not float its neighbours to
   the middle of the row. */
.development-settings-table th,
.development-settings-table td {
    white-space: nowrap;
    vertical-align: top;
}

/* The text column: the only one allowed to wrap, and given a floor so it cannot collapse to ~200px and
   stand every row five lines tall (the mistake the findings queue made). No ceiling — this table has a
   full-width page to itself and the text is what the reader came for. */
.development-settings-table th.development-settings-col-text,
.development-settings-table td.development-settings-col-text {
    white-space: normal;
    min-width: 12rem;
}

.development-settings-optional {
    display: none;
}

.development-settings-row.hub-row-selected > td {
    background: var(--hub-row-focus);
}

@media (min-width: 600px) {
    .development-settings-optional {
        display: table-cell;
    }
}

@media (min-width: 960px) {
    .development-settings-table th.development-settings-col-text,
    .development-settings-table td.development-settings-col-text {
        min-width: 24rem;
    }
}

/* The SECTION row — "3.2 PRE-ITERATION", spanning the table as a tinted band. The fill and the weight
   come from .blueit-grid-group in the markup (the house grid-group treatment, as MainTasc renders a group
   row); what belongs here is the band's own geometry.

   A band and not the bold line of body text this started as: at 45 rows the section headings are the only
   landmarks the eye has while scrolling, and a bold row of the same size, face and colour as the rows
   around it reads as one more row rather than as the top of a section. */
.development-settings-group {
    padding: .4rem .75rem;
    letter-spacing: .02em;
}

/* The line count beside the heading. Muted and in the body face, because a count is a fact ABOUT the
   section rather than part of its name — set in the heading face it read as a version number. */
.development-settings-group-count {
    font-weight: 400;
    font-size: .8125rem;
    color: var(--mud-palette-text-secondary);
    margin-left: .75rem;
}

/* The action run. Two 30px icon buttons on one line for a manager, absent entirely for a reader
   without .manage — so nothing reserves width for them. */
.development-settings-actions {
    display: flex;
    gap: .1rem;
}

/* --- Dragging a checklist row --------------------------------------------------------------- */

/* The grip column: sized to the one 12px glyph it holds, and empty for a reader. */
.development-settings-table th.development-settings-col-grip,
.development-settings-table td.development-settings-col-grip {
    width: 1.75rem;
    padding-right: 0;
}

/* grab, not pointer: the cursor is the second half of the affordance, and it is what tells a user the row
   is to be PICKED UP rather than clicked. The row carries draggable, so the cursor has to sit on the row
   as well as on the grip — otherwise it changes back the moment the pointer leaves the icon. */
.development-settings-row[draggable="true"],
.development-settings-row[draggable="true"] .development-settings-grip {
    cursor: grab;
}

.development-settings-grip {
    color: var(--mud-palette-text-secondary);
    vertical-align: middle;
}

/* The row being carried. Faded rather than hidden: it stays in place under the pointer as the reference
   for how far the drag has come, which a row removed from the flow cannot be. */
.development-settings-row-dragging {
    opacity: .4;
}

/* WHERE IT WILL LAND. A 2px accent rule on the target row, drawn with an inset shadow so it costs the row
   no height — a border would shift every row below it by 2px on hover and make the whole section twitch as
   the pointer travels. Only ever set on a LEGAL target (same document, same section), so the indicator is
   a promise about what the drop will do rather than a guess. */
.development-settings-row-target td {
    box-shadow: inset 0 -2px 0 0 var(--blueit-secondary);
}

/* The saved-layout toolbar sits inside the grid's own ToolBarContent, which is a flex row that would
   otherwise stretch the layout picker to fill the whole header. */
.blueit-grid-layout-bar {
    width: 100%;
    padding: .25rem 0;
    row-gap: .5rem;
}

/* Same trap as .fleet-filter-row above: `Class` lands on the INNER input control, so capping it caps
   only what you SEE while MudBlazor's `flex-grow: 1` on the outer .mud-select keeps the ITEM eating
   the whole row — several hundred pixels of invisible box that shove the column chooser and the save
   buttons to the far right with a gap in the middle. */
.blueit-grid-layout-bar > .mud-select,
.blueit-grid-layout-bar > .mud-input-control {
    flex: 0 0 auto;
}

.blueit-grid-layout-select {
    max-width: 16rem;
    min-width: 10rem;
}

/* The column chooser rides MudBlazor's popover layer (a MudMenu), NOT an absolutely positioned panel in
   the toolbar: `.mud-table-toolbar` is position: sticky, which makes it a stacking context, so a panel
   inside it cannot rise above the sticky column header (z-index 2) whatever z-index it carries. */
.blueit-grid-columns-popup {
    min-width: 14rem;
    max-height: 60vh;
    overflow-y: auto;
}

/* --- Toasts ------------------------------------------------------------------------------- */

.hub-toast-position {
    position: fixed;
    z-index: var(--mud-zindex-snackbar, 1600);
    top: calc(48px + 8px);
    left: 8px;
    right: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}

.hub-toast-position .mud-snackbar.hub-toast {
    --hub-toast-color: var(--hub-brand-secondary);
    pointer-events: auto;
    width: 100%;
    max-width: 420px;
    min-width: 0;
    margin: 0;
    padding: 10px 12px;
    background-color: var(--hub-surface);
    color: var(--hub-text);
    border: 1px solid var(--hub-control-border);
    border-left: 4px solid var(--hub-toast-color);
    border-radius: var(--hub-radius-lg);
    box-shadow: 0 4px 16px rgba(0, 0, 0, .18);
}

.hub-toast-position .mud-snackbar.hub-toast.hub-toast-info {
    --hub-toast-color: var(--hub-brand-secondary);
}

.hub-toast-position .mud-snackbar.hub-toast.hub-toast-success {
    --hub-toast-color: var(--hub-toast-success);
}

.hub-toast-position .mud-snackbar.hub-toast.hub-toast-warning {
    --hub-toast-color: var(--hub-warning);
}

.hub-toast-position .mud-snackbar.hub-toast.hub-toast-error {
    --hub-toast-color: var(--hub-destructive);
}

.hub-toast .mud-snackbar-icon,
.hub-toast .mud-snackbar-icon .mud-icon-root {
    color: var(--hub-toast-color);
    font-size: 20px;
    width: 20px;
    height: 20px;
    line-height: 20px;
}

.hub-toast .mud-snackbar-content-message {
    color: var(--hub-text);
}

.hub-toast .mud-snackbar-content-action .mud-icon-button,
.hub-toast .mud-snackbar-content-action .mud-icon-root {
    color: var(--hub-muted);
}

@media (min-width: 600px) {
    .hub-toast-position {
        left: auto;
        right: 12px;
        top: calc(48px + 12px);
        align-items: flex-end;
        width: 420px;
        max-width: calc(100vw - 24px);
    }
}

/* --- Confirm popup -------------------------------------------------------------------------
   MainTasc 2.0 confirm popup: 325px, title bar with a close X, flush 50/50 footer buttons.
   Phone first; desktop shrinks the buttons from the 44px touch target. */
.mud-dialog.hub-confirm {
    width: 325px;
    max-width: calc(100vw - 16px);
    border-radius: var(--hub-radius-lg);
    background: var(--hub-surface);
    color: var(--hub-text);
    overflow: hidden;
}

.hub-confirm .hub-confirm-title.mud-dialog-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: var(--hub-surface);
    border-bottom: 1px solid var(--hub-separator);
}

.hub-confirm .hub-confirm-heading {
    font-family: Oswald, sans-serif;
    font-weight: 500;
    color: var(--hub-text);
}

.hub-confirm .hub-confirm-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: var(--hub-button-height);
    min-height: var(--hub-button-height);
    margin: -8px -12px -8px 0;
    border: 0;
    background: transparent;
    color: var(--hub-muted);
    cursor: pointer;
}

.hub-confirm .hub-confirm-close:hover {
    color: var(--hub-text);
}

.hub-confirm .hub-confirm-body.mud-dialog-content {
    padding: 12px;
    background: var(--hub-surface);
}

.hub-confirm .hub-confirm-message {
    color: var(--hub-text);
}

.hub-confirm .hub-confirm-actions.mud-dialog-actions {
    display: flex;
    padding: 0;
    gap: 0;
}

.hub-confirm .hub-confirm-button {
    display: inline-flex;
    flex: 1 1 50%;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: var(--hub-button-height);
    margin: 0;
    padding: 0 8px;
    border: 0;
    border-radius: 0;
    color: #FFFFFF;
    font: inherit;
    cursor: pointer;
}

.hub-confirm .hub-confirm-yes {
    background: var(--hub-brand);
}

.hub-confirm .hub-confirm-yes:hover {
    background: var(--hub-brand-hover);
}

.hub-confirm .hub-confirm-no {
    background: var(--hub-destructive);
}

.hub-confirm .hub-confirm-no:hover {
    filter: brightness(1.15);
}

.hub-confirm .hub-confirm-button:focus-visible,
.hub-confirm .hub-confirm-close:focus-visible {
    outline: var(--hub-focus-ring-width) solid var(--hub-focus-ring);
    outline-offset: -2px;
}

@media (min-width: 600px) {
    .hub-confirm .hub-confirm-button {
        min-height: 32px;
    }

    .hub-confirm .hub-confirm-close {
        min-width: 32px;
        min-height: 32px;
    }
}

/* --- Hub dialog ----------------------------------------------------------------------------
   MainTasc 2.0 popup shell (HubDialog / HubCard). Phone first: full screen with a sticky footer;
   from 600px a centred popup with a scrolling body. */
.mud-dialog.hub-dialog {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    height: 100%;
    max-height: 100dvh;
    margin: 0;
    border-radius: 0;
    background: var(--hub-page);
    color: var(--hub-text);
    overflow: hidden;
}

.hub-dialog .hub-dialog-title.mud-dialog-title {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: var(--hub-surface);
    border-bottom: 1px solid var(--hub-separator);
}

.hub-dialog .hub-dialog-heading {
    font-family: Oswald, sans-serif;
    font-weight: 500;
    color: var(--hub-text);
}

.hub-dialog .hub-dialog-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: var(--hub-button-height);
    min-height: var(--hub-button-height);
    margin: -8px -12px -8px 0;
    border: 0;
    background: transparent;
    color: var(--hub-muted);
    cursor: pointer;
}

.hub-dialog .hub-dialog-close:hover:not(:disabled) {
    color: var(--hub-text);
}

.hub-dialog .hub-dialog-body.mud-dialog-content {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 8px;
    margin: 0;
    padding: 12px;
    background: var(--hub-page);
    overflow-y: auto;
}

.hub-dialog .hub-dialog-actions.mud-dialog-actions {
    position: sticky;
    bottom: 0;
    display: flex;
    flex: 0 0 auto;
    padding: 0;
    gap: 0;
}

.hub-dialog .hub-dialog-button {
    display: inline-flex;
    flex: 1 1 0;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: var(--hub-button-height);
    margin: 0;
    padding: 0 8px;
    border: 0;
    border-radius: 0;
    color: #FFFFFF;
    font: inherit;
    cursor: pointer;
}

.hub-dialog .hub-dialog-primary {
    background: var(--hub-brand);
}

.hub-dialog .hub-dialog-primary:hover:not(:disabled) {
    background: var(--hub-brand-hover);
}

.hub-dialog .hub-dialog-secondary {
    background: var(--hub-brand-secondary);
}

.hub-dialog .hub-dialog-secondary:hover:not(:disabled) {
    filter: brightness(1.15);
}

.hub-dialog .hub-dialog-cancel {
    background: var(--hub-destructive);
}

.hub-dialog .hub-dialog-cancel:hover:not(:disabled) {
    filter: brightness(1.15);
}

.hub-dialog .hub-dialog-button:disabled,
.hub-dialog .hub-dialog-close:disabled {
    cursor: not-allowed;
    opacity: .6;
}

.hub-dialog .hub-dialog-busy {
    width: 18px;
    height: 18px;
    color: #FFFFFF;
}

.hub-dialog .hub-dialog-button:focus-visible,
.hub-dialog .hub-dialog-close:focus-visible {
    outline: var(--hub-focus-ring-width) solid var(--hub-focus-ring);
    outline-offset: -2px;
}

@media (min-width: 600px) {
    .mud-dialog.hub-dialog {
        width: calc(100% - 48px);
        height: auto;
        max-height: calc(100dvh - 48px);
        margin: 24px;
        border-radius: var(--hub-radius-lg);
    }

    .mud-dialog.hub-dialog.mud-dialog-width-sm {
        max-width: 600px;
    }

    .mud-dialog.hub-dialog.mud-dialog-width-md {
        max-width: 960px;
    }

    .hub-dialog .hub-dialog-body.mud-dialog-content {
        max-height: calc(100dvh - 160px);
    }

    .hub-dialog .hub-dialog-button {
        min-height: 32px;
    }

    .hub-dialog .hub-dialog-close {
        min-width: 32px;
        min-height: 32px;
    }
}

.hub-card {
    padding: 12px;
    background: var(--hub-surface);
    border: 1px solid var(--hub-separator);
    border-radius: var(--hub-radius-lg);
    color: var(--hub-text);
}

.hub-card .hub-card-title {
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--hub-text);
}

.fleet-odometer-table-card {
    flex: 0 0 auto;
}

.fleet-odometer-scroll {
    max-height: 50dvh;
    overflow: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--hub-muted) transparent;
    -webkit-mask-image: linear-gradient(to right, black calc(100% - 16px), transparent);
    mask-image: linear-gradient(to right, black calc(100% - 16px), transparent);
}

.fleet-odometer-scroll::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.fleet-odometer-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.fleet-odometer-scroll::-webkit-scrollbar-thumb {
    background: var(--hub-muted);
    border-radius: 4px;
}

.fleet-odometer-scroll .mud-table-container {
    overflow: visible;
}

@media (min-width: 600px) {
    .fleet-odometer-scroll {
        max-height: 45vh;
    }
}

@media (min-width: 960px) {
    .fleet-odometer-scroll {
        -webkit-mask-image: none;
        mask-image: none;
    }
}

/* --- Empty state ---------------------------------------------------------------------------
   Centred "no records" block for grids; the filtered variant offers a clear-filters pill. */
.hub-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 24px 12px;
    text-align: center;
    color: var(--hub-muted);
}

.hub-empty .hub-empty-icon {
    width: 28px;
    height: 28px;
    font-size: 28px;
    color: var(--hub-muted);
}

.hub-empty .hub-empty-text {
    color: var(--hub-muted);
}

.hub-empty .hub-empty-clear {
    min-height: var(--hub-button-height);
    padding: 0 16px;
    border: 0;
    border-radius: var(--hub-radius-md);
    background: var(--hub-field);
    color: var(--hub-text);
    font: inherit;
    cursor: pointer;
}

.hub-empty .hub-empty-clear:hover {
    background: var(--hub-control-hover);
}

.hub-empty .hub-empty-clear:focus-visible {
    outline: var(--hub-focus-ring-width) solid var(--hub-focus-ring);
    outline-offset: 2px;
}

@media (min-width: 600px) {
    .hub-empty .hub-empty-clear {
        min-height: 28px;
    }
}

/* --- MainTasc 2.0 grid ---------------------------------------------------------------------
   Every MudTable and MudDataGrid gets the 2.0 grid: a white 8px card holding dense rows with row and
   column lines, zebra stripes, a navy-tint header and a focus tint on hover. The toolbar row
   (.hub-grid-toolbar, rendered by HubGridToolbar) sits in the card's ToolBarContent. Mobile-first: the
   base rules are the phone, the 960px query is the desktop. The table scrolls sideways INSIDE the card,
   never the page. Every colour is a --hub-* token, so the dark theme follows without a second rule set. */

.mud-table {
    max-width: 100%;
    min-width: 0;
}

.mud-data-grid.mud-table {
    background-color: var(--hub-surface);
    border-radius: var(--hub-radius-lg);
    overflow: hidden;
}

.mud-data-grid .mud-table-container {
    overflow-x: auto;
    max-width: 100%;
}

.mud-table .mud-table-cell {
    padding: 4px 8px;
    border-bottom: 1px solid var(--hub-separator);
    border-right: 1px solid var(--hub-separator);
    color: var(--hub-text);
}

.mud-table .mud-table-cell:last-child {
    border-right: none;
}

.mud-table {
    --mud-palette-table-striped: transparent;
}

.mud-table .mud-table-body .mud-table-row:nth-child(even) {
    background-color: var(--hub-row-alt);
}

.mud-table .mud-table-body .mud-table-row:hover,
.mud-table.mud-table-hover .mud-table-body .mud-table-row:hover,
.mud-table .mud-table-body .mud-table-row.selected {
    background-color: var(--hub-row-focus);
}

.mud-table .mud-table-head .mud-table-cell,
.mud-table.mud-table-sticky-header .mud-table-root thead.mud-table-head .mud-table-cell {
    background-color: var(--hub-grid-header);
    color: var(--hub-text);
    font-weight: 700;
}

.mud-table .mud-table-body .mud-datagrid-group,
.mud-table .mud-table-body .mud-datagrid-group:hover,
.mud-table .mud-table-body .mud-datagrid-group:nth-child(even) {
    background-color: color-mix(in srgb, var(--hub-grid-header) 45%, var(--hub-surface));
    font-weight: 700;
}

.hub-search-match {
    background-color: var(--hub-search-match);
    color: var(--hub-text);
    border-radius: 2px;
}

.mud-table .mud-table-toolbar {
    height: auto;
    min-height: 0;
    padding: var(--hub-space-2) var(--hub-space-3);
    border-bottom: 1px solid var(--hub-separator);
    background-color: var(--hub-surface);
}

.mud-table-cell.hub-col-optional,
.mud-table-cell.hub-col-optional-sm {
    display: none;
}

@media (min-width: 600px) {
    .mud-table-cell.hub-col-optional-sm {
        display: table-cell;
    }
}

@media (min-width: 960px) {
    .mud-table-cell.hub-col-optional {
        display: table-cell;
    }
}

.hub-grid-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--hub-space-2);
    width: 100%;
}

.hub-grid-toolbar-count {
    flex: 0 0 auto;
    color: var(--hub-muted);
    font-weight: 700;
}

.hub-grid-toolbar-actions {
    display: flex;
    flex: 1 1 100%;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--hub-space-2);
}

.hub-grid-toolbar-tools {
    display: none;
    flex: 1 1 100%;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--hub-space-2);
}

.hub-grid-toolbar-tools.is-open {
    display: flex;
}

.hub-grid-toolbar .hub-grid-search {
    flex: 1 1 100%;
    min-width: 0;
    margin: 0;
}

.hub-grid-toolbar .hub-grid-search .mud-input,
.hub-grid-tool-select .mud-input {
    background-color: var(--hub-field);
    border-radius: var(--hub-radius-md);
    padding-inline: var(--hub-space-2);
}

.hub-grid-toolbar .hub-grid-search .mud-input-control-input-container {
    min-height: var(--hub-button-height);
    justify-content: center;
}

.hub-grid-toolbar .hub-grid-search input {
    padding-block: 4px;
}

.hub-grid-toolbar .hub-grid-search .mud-input-adornment .mud-icon-root {
    font-size: 14px;
    width: 14px;
    height: 14px;
    color: var(--hub-muted);
}

.hub-grid-tool,
.hub-grid-tool.mud-button-root {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--hub-space-1);
    min-width: var(--hub-button-height);
    min-height: var(--hub-button-height);
    padding: 0 var(--hub-space-2);
    border: none;
    border-radius: var(--hub-radius-md);
    background-color: var(--hub-field);
    font: inherit;
    text-transform: none;
    cursor: pointer;
    box-shadow: none;
}

.hub-grid-tool:hover:not(:disabled),
.hub-grid-tool.mud-button-root:hover:not(:disabled) {
    background-color: var(--hub-control-hover);
}

.hub-grid-tool:disabled,
.hub-grid-tool.mud-button-root:disabled {
    color: var(--hub-disabled);
    cursor: default;
}

.hub-grid-tool:focus-visible {
    outline: var(--hub-focus-ring-width) solid var(--hub-focus-ring);
    outline-offset: 1px;
}

.hub-grid-toolbar-overflow {
    margin-inline-start: auto;
}

.hub-grid-toolbar .blueit-grid-layout-bar {
    width: auto;
    padding: 0;
    flex: 1 1 auto;
}

@media (min-width: 960px) {
    .hub-grid-toolbar-count {
        order: 0;
    }

    .hub-grid-toolbar-actions {
        flex: 1 1 auto;
        justify-content: flex-end;
    }

    .hub-grid-toolbar-tools {
        display: flex;
        flex: 0 1 auto;
    }

    .hub-grid-toolbar-overflow {
        display: none;
    }

    .hub-grid-toolbar .hub-grid-search {
        flex: 0 0 300px;
        width: 300px;
    }
}

button.hub-grid-tool {
    color: var(--hub-text);
}

/* --- MainTasc 2.0 simple tables ------------------------------------------------------------
   MudSimpleTable (HR/Fleet settings and in-section tables) gets the same look as the data grid above.
   Base rules are the phone; the card scrolls sideways inside itself, never the page. Zebra and hover
   follow MudBlazor's own Striped/Hover switches, so tables that opt out stay plain. The control
   height is --hub-button-height: 44px below 600px, 28px from there up. */

.mud-simple-table {
    --mud-palette-table-lines: var(--hub-separator);
    --mud-palette-table-striped: transparent;
    max-width: 100%;
    min-width: 0;
    background-color: var(--hub-surface);
    border-radius: var(--hub-radius-lg);
    overflow: hidden;
}

.mud-simple-table .mud-table-container {
    overflow-x: auto;
    max-width: 100%;
}

.mud-simple-table .mud-table-container table tr > td,
.mud-simple-table .mud-table-container table tr > th {
    padding: 4px 8px;
    border-bottom: 1px solid var(--hub-separator);
    border-right: 1px solid var(--hub-separator);
    color: var(--hub-text);
}

.mud-simple-table .mud-table-container table tr > td:last-child,
.mud-simple-table .mud-table-container table tr > th:last-child {
    border-right: none;
}

.mud-simple-table.mud-table-striped .mud-table-container table tbody tr:nth-of-type(even),
.mud-simple-table.blueit-settings-table .mud-table-container table tbody tr:nth-of-type(even) {
    background-color: var(--hub-row-alt);
}

.mud-simple-table.mud-table-striped .mud-table-container table tbody tr:nth-of-type(odd),
.mud-simple-table.blueit-settings-table .mud-table-container table tbody tr:nth-of-type(odd) {
    background-color: transparent;
}

.mud-simple-table.mud-table-hover .mud-table-container table tbody tr:hover {
    background-color: var(--hub-row-focus);
}

.blueit-settings-table .mud-input {
    background-color: var(--hub-field);
    border-radius: var(--hub-radius-md);
    min-height: var(--hub-button-height);
}

.blueit-settings-table .mud-input-outlined-border {
    border-color: var(--hub-control-border);
    border-radius: var(--hub-radius-md);
}

.blueit-settings-table .mud-input.mud-focused .mud-input-outlined-border {
    border-color: var(--hub-focus-ring);
    border-width: var(--hub-focus-ring-width);
}

.blueit-settings-table .mud-input-outlined .mud-input-slot {
    padding-block: 4px;
    height: auto;
}

/* --- Docked edit panel ---------------------------------------------------------------------
   HubEditPanelHost and HubEditPanel. Mobile first: below 960px the panel is a full-screen sheet over the
   list; from 960px the grid and the panel share one vertical split whose ratio reaches --hub-split. */

.hub-edit-host {
    --hub-edit-sheet-top: var(--mud-appbar-height, 48px);
    --hub-edit-sheet-bottom: 44px;
    --hub-edit-host-height: calc(100dvh - var(--mud-appbar-height, 48px) - var(--hub-footer-height));
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.hub-edit-host > .hub-edit-grid-pane {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
}

.hub-edit-host > .hub-edit-handle {
    display: none;
}

.hub-edit-host > .hub-edit-panel-pane {
    position: fixed;
    top: var(--hub-edit-sheet-top);
    right: 0;
    bottom: var(--hub-edit-sheet-bottom);
    left: 0;
    z-index: 1050;
    display: flex;
    flex-direction: column;
    background: var(--hub-page);
    color: var(--hub-text);
}

.hub-edit-sheet-header {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: var(--hub-space-2);
    min-height: 44px;
    padding: 0 var(--hub-space-2);
    border-bottom: 1px solid var(--hub-separator);
    background: var(--hub-surface);
}

.hub-edit-sheet-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    min-height: 44px;
    border: 0;
    background: transparent;
    color: var(--hub-text);
    cursor: pointer;
}

.hub-edit-sheet-title {
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hub-edit-sheet-back:focus-visible,
.hub-edit-handle:focus-visible,
.hub-edit-button:focus-visible,
.hub-edit-child-button:focus-visible {
    outline: var(--hub-focus-ring-width) solid var(--hub-focus-ring);
    outline-offset: -2px;
}

.hub-edit-panel {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
    background: var(--hub-surface);
    color: var(--hub-text);
    outline: none;
}

.hub-edit-title {
    display: none;
}

.hub-edit-child-header {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: var(--hub-space-2);
    padding: var(--hub-space-1) var(--hub-space-3);
    background: var(--hub-surface);
    border-bottom: 1px solid var(--hub-separator);
}

.hub-edit-crumbs {
    display: flex;
    flex: 1 1 auto;
    flex-wrap: wrap;
    gap: var(--hub-space-1);
    min-width: 0;
}

.hub-edit-crumb {
    padding: 2px var(--hub-space-2);
    border-radius: var(--hub-radius-md);
    background: var(--hub-chip);
    color: var(--hub-text);
    font-size: 12px;
}

.hub-edit-counter {
    color: var(--hub-muted);
    font-size: 12px;
    white-space: nowrap;
}

.hub-edit-child-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    border: 0;
    background: transparent;
    color: var(--hub-text);
    cursor: pointer;
}

.hub-edit-child-button:disabled {
    cursor: not-allowed;
    opacity: .5;
}

.hub-edit-form {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
}

.hub-edit-tabs.mud-tabs {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
    background: var(--hub-surface);
}

.hub-edit-tabs .mud-tabs-tabbar {
    padding: var(--hub-space-1) var(--hub-space-2);
    background: var(--hub-footer);
    border-bottom: 1px solid var(--hub-separator);
}

.hub-edit-tabs .mud-tabs-tabbar .mud-tabs-tabbar-inner {
    min-height: 0;
}

.hub-edit-tabs .mud-tabs-tabbar-content .mud-tabs-tabbar-wrapper {
    gap: var(--hub-space-1);
    transition: none;
}

.hub-edit-tabs .mud-tab-slider {
    display: none;
}

.hub-edit-tabs .mud-tab {
    width: auto;
    min-width: 0;
    min-height: 0;
    height: var(--hub-button-height);
    padding: 0 10px;
    border-radius: var(--hub-radius-md);
    background: transparent;
    color: var(--hub-muted);
    font-weight: 600;
    letter-spacing: normal;
    line-height: 1.2;
    text-transform: none;
    transition: background-color var(--hub-motion-fast), color var(--hub-motion-fast);
}

.hub-edit-tabs .mud-tab:hover,
.hub-edit-tabs .mud-tab.mud-tab-active,
.hub-edit-tabs .mud-tab.mud-tab-active:hover {
    background: var(--hub-grid-header);
    color: var(--hub-text);
}

.hub-edit-tabs .mud-tab:focus-visible {
    outline: var(--hub-focus-ring-width) solid var(--hub-focus-ring);
    outline-offset: -2px;
}

.hub-edit-tabs .mud-tabs-panels {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    background: var(--hub-surface);
}

.hub-edit-tabs .mud-tabs-panels {
    padding: var(--hub-space-3);
}

.hub-edit-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--hub-space-3);
    align-items: start;
}

.hub-edit-footer {
    position: relative;
    display: flex;
    flex: 0 0 auto;
    gap: 0;
    box-shadow: var(--hub-panel-footer-shadow);
}

.hub-edit-button {
    display: inline-flex;
    flex: 1 1 0;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: var(--hub-button-height);
    margin: 0;
    padding: 0 var(--hub-space-2);
    border: 0;
    border-radius: 0;
    color: #FFFFFF;
    font: inherit;
    cursor: pointer;
    transition: background-color var(--hub-motion-fast), filter var(--hub-motion-fast);
}

.hub-edit-save-close {
    background: var(--hub-brand);
}

.hub-edit-save-close:hover:not(:disabled) {
    background: var(--hub-brand-hover);
}

.hub-edit-save {
    background: var(--hub-brand-secondary);
}

.hub-edit-close {
    background: var(--hub-destructive);
}

.hub-edit-save:hover:not(:disabled),
.hub-edit-close:hover:not(:disabled) {
    filter: brightness(1.15);
}

.hub-edit-button:disabled {
    cursor: not-allowed;
    opacity: .6;
}

.hub-edit-chip {
    display: none;
    padding: 0 var(--hub-space-2);
    border: 1px solid currentColor;
    border-radius: var(--hub-radius-sm);
    font: inherit;
    font-size: 11px;
    opacity: .8;
}

.hub-edit-panel .mud-input-control {
    position: relative;
}

.hub-edit-panel .mud-input-control.mud-input-error .mud-input {
    position: relative;
}

.hub-edit-panel .mud-input-control.mud-input-error .mud-input::after {
    content: "";
    position: absolute;
    top: 2px;
    right: 2px;
    width: 14px;
    height: 14px;
    background: var(--hub-destructive);
    clip-path: polygon(100% 0, 100% 100%, 0 0);
    pointer-events: none;
}

.hub-edit-panel .mud-input-control-helper-container {
    display: none;
    max-width: 280px;
    padding: 0 !important;
}

.hub-edit-panel .mud-input-control.mud-input-error .mud-input-control-helper-container {
    display: block;
}

.hub-edit-panel .mud-input-control.mud-input-error .mud-input-helper-text {
    display: block !important;
    width: fit-content;
    margin: 4px 0 0;
    padding: 4px 8px;
    border-radius: var(--hub-radius-md);
    background: var(--hub-destructive);
    color: var(--hub-surface) !important;
    font-size: 12px;
    line-height: 1.3;
}

.hub-edit-panel.hub-validate-on .mud-input-control.mud-input-error .mud-input-outlined-border {
    border-color: var(--hub-destructive);
}

@media (min-width: 600px) {
    .hub-edit-sheet-back,
    .hub-edit-child-button {
        min-width: 32px;
        min-height: 32px;
    }

    .hub-edit-sheet-header {
        min-height: 32px;
    }
}

@media (min-width: 960px) {
    .hub-edit-host {
        height: var(--hub-edit-host-height);
    }

    .hub-edit-host.hub-edit-open > .hub-edit-grid-pane {
        flex: 0 0 auto;
        height: calc(var(--hub-split, 0.55) * 100%);
    }

    .hub-edit-host > .hub-edit-grid-pane {
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    .hub-edit-grid-pane > * {
        display: flex;
        flex: 1 1 auto;
        flex-direction: column;
        min-height: 0;
    }

    .hub-edit-grid-pane .mud-table {
        display: flex;
        flex: 1 1 auto;
        flex-direction: column;
        min-height: 0;
    }

    .hub-edit-grid-pane .mud-table > .mud-toolbar,
    .hub-edit-grid-pane .mud-table > .mud-table-pagination {
        flex: 0 0 auto;
    }

    .hub-edit-grid-pane .mud-table-container {
        flex: 1 1 auto;
        min-height: 0;
        overflow: auto;
    }

    .hub-edit-grid-pane .mud-table-head .mud-table-cell {
        position: sticky;
        top: 0;
        z-index: 2;
        background-color: var(--hub-grid-header);
    }

    .hub-edit-host > .hub-edit-handle {
        display: block;
        flex: 0 0 8px;
        height: 8px;
        background: var(--hub-page);
        cursor: row-resize;
        touch-action: none;
    }

    .hub-edit-host > .hub-edit-handle:hover {
        background: var(--hub-control-hover);
    }

    .hub-edit-host > .hub-edit-panel-pane {
        position: static;
        z-index: auto;
        flex: 1 1 0;
        min-height: 150px;
    }

    .hub-edit-host > .hub-edit-panel-pane > .hub-edit-panel {
        border: 1px solid var(--hub-separator);
        border-radius: var(--hub-radius-lg);
        overflow: hidden;
    }

    .hub-edit-sheet-header {
        display: none;
    }

    .hub-edit-tabs .mud-tabs-panels {
        padding: var(--hub-space-3) var(--hub-space-4);
    }

    .hub-edit-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hub-edit-chip {
        display: inline-block;
    }
}

@media (min-width: 1280px) {
    .hub-edit-cards {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (prefers-reduced-motion: reduce) {
    .hub-edit-button {
        transition: none;
    }
}

.mud-table-body .mud-table-row.hub-row-selected > .mud-table-cell {
    background: var(--hub-row-focus);
}

.hub-row-selected {
    scroll-margin-top: var(--hub-button-height);
}

.hub-silverfin-mono {
    font-family: monospace;
}

.hub-silverfin-link-url {
    font-family: monospace;
    word-break: break-all;
}

.hub-silverfin-small {
    font-size: 0.8rem;
}

.hub-silverfin-actions {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
}
