/* ============================================================================
   DART — application shell
   ----------------------------------------------------------------------------
   The sidebar, the content frame, and a few table and form-control conventions.
   All colours and sizes come from dart-brand.css. No hex values here.
   ============================================================================ */

/* Relative and full height, so the rail can stretch to the page (.dart-sidebar). */
body {
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
}

/* The content colour behind the whole page, so it continues below the content
   when the sidebar is the taller of the two. */
.dart-shell {
    background-color: var(--dart-content-bg);
}

/* ===== Sidebar ============================================================ */

/* How the sidebar looks, not where it sits: shared by the rail and the
   offcanvas, which Bootstrap positions itself. */
.dart-sidebar-surface {
    background-color: var(--dart-sidebar-bg);
    color: var(--dart-sidebar-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* The desktop rail, left. Used with .dart-sidebar-surface. It scrolls with the
   page rather than being fixed with a scrollbar of its own: at least the page's
   height, and taller when the navigation is, so the page scrollbar reaches it. */
.dart-sidebar {
    width: var(--dart-sidebar-width);
    position: absolute;
    top: 0;
    left: 0;
    min-height: 100%;
    z-index: 1030;
    border-right: 1px solid var(--dart-sidebar-border);
    display: flex;
    flex-direction: column;
    transition: width 200ms ease-in-out;
    overflow: hidden;
}

/* Narrow screens: width, and stacking so the footer sits at the bottom. */
.dart-sidebar-offcanvas {
    --bs-offcanvas-width: var(--dart-sidebar-offcanvas-width);
}

.dart-sidebar-offcanvas .offcanvas-body {
    display: flex;
    flex-direction: column;
    padding: 0;
}

/* The wordmark stacked above the application name. The top padding and gap
   are the logo's clear space. See brand.md §5. */
.dart-sidebar-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    /* "DART CENTRAL" or "DART VESSEL" on one line, close under the logo (15 November 2026). */
    gap: .375rem;
    padding: 2rem var(--dart-sidebar-gutter) 1rem;
    min-height: 56px;
    /* The rail is a column flexbox; without this a short window squeezes the
       brand and its text spills over the first nav item. */
    flex-shrink: 0;
    border-bottom: 1px solid var(--dart-sidebar-border);
    color: var(--dart-text-on-dark);
    text-decoration: none;
    font-weight: 600;
    letter-spacing: .08em;
}

.dart-sidebar-logo {
    display: block;
    width: var(--dart-logo-width);
    height: auto;
}

.dart-sidebar-brand-text {
    white-space: nowrap;
    font-size: .8rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--dart-sidebar-color);
}

.dart-sidebar-nav {
    margin: 0;
    padding: .5rem 0;
    list-style: none;
    flex: 1 1 auto;
}

.dart-sidebar-nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.dart-sidebar-nav .nav-link {
    display: flex;
    align-items: center;
    gap: .5rem;
    /* Less the 3px border, so the icon lands on the gutter. */
    padding: .25rem var(--dart-sidebar-gutter) .25rem calc(var(--dart-sidebar-gutter) - 3px);
    min-height: var(--dart-nav-item-height);
    color: var(--dart-sidebar-color);
    text-decoration: none;
    font-size: var(--dart-nav-font-size);
    border-left: 3px solid transparent;
    transition: background-color 150ms ease, color 150ms ease;
    width: 100%;
    box-sizing: border-box;
}

.dart-sidebar-nav .nav-link .nav-icon {
    width: 24px;
    min-width: 24px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    color: inherit;
    opacity: .95;
    font-size: 1.05rem;
}

.dart-sidebar-nav .nav-link .nav-label {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dart-sidebar-nav .nav-link:hover,
.dart-sidebar-nav .nav-link:focus {
    background-color: var(--dart-sidebar-hover-bg);
    color: #fff;
    text-decoration: none;
}

.dart-sidebar-nav .nav-link.active {
    background-color: var(--dart-sidebar-active-bg);
    color: #fff;
    border-left-color: var(--dart-sidebar-active-accent);
    font-weight: 600;
}

.dart-sidebar-nav .nav-link:focus-visible {
    outline: 2px solid rgba(255, 255, 255, .35);
    outline-offset: -2px;
}

/* A group heading is the button that opens its items (_DartNavigation). */
.dart-sidebar-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin: 0;
    padding: .75rem var(--dart-sidebar-gutter);
    background: transparent;
    border: 0;
    text-align: left;
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: rgba(255, 255, 255, .45);
    cursor: pointer;
    transition: background-color 150ms ease, color 150ms ease;
}

.dart-sidebar-group:hover,
.dart-sidebar-group[aria-expanded="true"] {
    color: var(--dart-sidebar-color);
}

.dart-sidebar-group:hover {
    background-color: var(--dart-sidebar-hover-bg);
}

.dart-sidebar-group:focus-visible {
    outline: 2px solid rgba(255, 255, 255, .35);
    outline-offset: -2px;
}

.dart-sidebar-group-chevron {
    font-size: .7rem;
    transition: transform 200ms ease;
}

.dart-sidebar-group[aria-expanded="true"] .dart-sidebar-group-chevron {
    transform: rotate(180deg);
}

/* ---------------------------------------------------------------------------
   Searchable dropdowns (Tom Select): brand corrections on its Bootstrap 5 theme.
   --------------------------------------------------------------------------- */

/* While a search is typed in a single-value field, show the query alone. On
   dart-select.js's typing class, never Tom Select's input-active, which stays
   on while the field has focus: a choice made with the mouse was hidden until
   the field was left (15 November 2026). */
.ts-wrapper.single.dart-select-typing .item {
    display: none;
}

/* Nothing chosen and the field focused: the empty option's text is hidden, so a search starts in an empty box
   (dart-select.js's blank class, 22 November 2026). */
.ts-wrapper.single.dart-select-blank .item {
    display: none;
}

/* Compact: the wrapper takes the 30px field's border and height from
   dart-brand.css; the control inside it takes the same padding, so a search
   field is the height of the plain select beside it. */
.dart-shell-compact .ts-wrapper.form-select .ts-control,
.dart-shell-compact .ts-wrapper.form-control .ts-control {
    padding: var(--dart-control-padding-y) var(--dart-control-padding-x);
    /* Tom Select gives the control a min-height of the whole field, inside the wrapper's border, which made a
       search field 2px taller than the plain select beside it and lifted its label (21 November 2026). */
    min-height: 0;
}

/* The focus ring of a form-control (dart-brand.css), on the bordered wrapper,
   not on the control inside it; no glow of Tom Select's own. */
.ts-wrapper.focus .ts-control {
    box-shadow: none;
}

.ts-wrapper.form-select.focus,
.ts-wrapper.form-control.focus {
    outline: var(--dart-focus-ring-width) solid var(--dart-focus-ring-color);
    outline-offset: var(--dart-focus-ring-offset);
}

/* The highlighted option: ink fill, white text. Not orange, which is for emphasis. */
.ts-dropdown .active,
.ts-dropdown .active.create {
    background-color: var(--dart-ink);
    color: #fff;
}

/* The chosen value, once the dropdown has closed. */
.ts-dropdown .selected {
    font-weight: 600;
}

/* "No matches" as muted text, not an error. */
.ts-dropdown .no-results {
    padding: .5rem .75rem;
    color: var(--bs-secondary-color);
}

/* ---------------------------------------------------------------------------
   Date pickers (Air Datepicker), themed through its custom properties.

   `body .air-datepicker`, not `.air-datepicker`: its stylesheet loads after
   this file, so equal specificity would lose.
   --------------------------------------------------------------------------- */
body .air-datepicker {
    --adp-font-family: var(--bs-body-font-family);
    --adp-font-size: var(--dart-font-size-sm);
    --adp-color: var(--dart-text);
    --adp-color-secondary: var(--dart-text-muted);
    --adp-accent-color: var(--dart-ink);
    --adp-color-current-date: var(--dart-orange-text);
    --adp-day-name-color: var(--dart-orange-text);
    --adp-border-color: var(--bs-border-color);
    --adp-border-color-inner: var(--bs-border-color-translucent);
    --adp-border-radius: var(--bs-border-radius);
    --adp-cell-border-radius: var(--bs-border-radius-sm);
    --adp-background-color-hover: var(--dart-surface-muted);
    --adp-cell-background-color-selected: var(--dart-ink);
    --adp-cell-background-color-selected-hover: var(--dart-ink-hover);
    --adp-btn-color: var(--dart-ink);
    --adp-btn-color-hover: var(--dart-ink);

    /* Above an offcanvas (1045) and a modal (1055). */
    --adp-z-index: 1056;
}

/* The development area (ADR 0010), set visibly apart. */
.dart-sidebar-group-developer {
    margin-top: .5rem;
    border-top: 1px dashed var(--dart-sidebar-border);
    color: var(--dart-orange);
}

/* Compact: the headings closer to their items. */
.dart-shell-compact .dart-sidebar-group {
    padding-top: .5rem;
    padding-bottom: .5rem;
    font-size: var(--dart-font-size-xs);
}

/* The folded rail (ADR 0017): the compact density only, below about 1600px or as the viewer
   chose. The class is on <html>, set before the first paint (_DartLayout) and
   then by dart-nav.js; only the desktop rail folds, never the offcanvas. */
@media (min-width: 768px) {
    .dart-sidebar-collapsed .dart-sidebar {
        width: var(--dart-sidebar-collapsed-width);
    }

    .dart-sidebar-collapsed .dart-wrapper {
        margin-left: var(--dart-sidebar-collapsed-width);
    }

    /* Nothing to show where the wordmark goes: there is no compact mark
       (brand.md §5, N19). The block shrinks to the header's height. */
    .dart-sidebar-collapsed .dart-sidebar .dart-sidebar-brand {
        min-height: var(--dart-header-height);
        padding: 0;
    }

    .dart-sidebar-collapsed .dart-sidebar .dart-sidebar-logo {
        display: none;
    }

    /* Folded, one button per titled group stands in for its heading and items,
       and opens them in a flyout beside the rail (dart-nav.js). The rail lets
       the flyout out: nothing else overflows it once folded. */
    .dart-sidebar-collapsed .dart-sidebar {
        overflow: visible;
    }

    .dart-sidebar-collapsed .dart-sidebar .dart-sidebar-section {
        position: relative;
    }

    .dart-sidebar-collapsed .dart-sidebar .dart-sidebar-group {
        display: none;
    }

    .dart-sidebar-collapsed .dart-sidebar .dart-nav-flyout-toggle {
        display: flex;
    }

    .dart-sidebar-collapsed .dart-sidebar .dart-sidebar-section > ul[data-dart-nav-group] {
        display: none !important;
    }

    /* The open group's items, labelled, beside the rail at the button's height.
       Its own colours, so it reads as part of the rail. */
    .dart-sidebar-collapsed .dart-sidebar .dart-sidebar-section.is-flyout-open > ul[data-dart-nav-group] {
        display: block !important;
        position: absolute;
        top: 0;
        left: 100%;
        z-index: 1;
        height: auto !important;
        min-width: 14rem;
        padding: .25rem 0 .375rem;
        background-color: var(--dart-sidebar-bg);
        border: 1px solid var(--dart-sidebar-border);
        border-left: 0;
        border-radius: 0 var(--dart-radius-card) var(--dart-radius-card) 0;
        box-shadow: 4px 6px 16px rgba(0, 0, 0, .3);
    }

    .dart-sidebar-collapsed .dart-sidebar .is-flyout-open .dart-nav-flyout-title {
        display: block;
    }

    /* An untitled group has no button: its items stay as icons, their labels
       hidden but still read, and shown in a tooltip (dart-nav.js). The brand's
       text likewise, so the home link keeps a name by keyboard.
       Bootstrap's visually-hidden. */
    .dart-sidebar-collapsed .dart-sidebar .dart-sidebar-section > ul:not([data-dart-nav-group]) .nav-label,
    .dart-sidebar-collapsed .dart-sidebar .dart-sidebar-brand-text {
        position: absolute !important;
        width: 1px !important;
        height: 1px !important;
        padding: 0 !important;
        margin: -1px !important;
        overflow: hidden !important;
        clip: rect(0, 0, 0, 0) !important;
        white-space: nowrap !important;
        border: 0 !important;
    }

    .dart-sidebar-collapsed .dart-sidebar .dart-sidebar-footer span {
        font-size: var(--dart-font-size-xs);
    }
}

/* A group's button on the folded rail: an icon the rail's width, the orange
   bar on the current page's group as on an active link. Hidden while the rail
   is full. */
.dart-nav-flyout-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 40px;
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
    border-left: 3px solid transparent;
    color: var(--dart-sidebar-color);
    font-size: 1.05rem;
    cursor: pointer;
    transition: background-color 150ms ease, color 150ms ease;
}

/* The icon centred on the rail, not on what is left of it beside the bar. */
.dart-nav-flyout-toggle .nav-icon {
    margin-right: 3px;
}

.dart-nav-flyout-toggle:hover,
.dart-nav-flyout-toggle[aria-expanded="true"] {
    background-color: var(--dart-sidebar-hover-bg);
    color: var(--dart-text-on-dark);
}

.dart-nav-flyout-toggle.active {
    background-color: var(--dart-sidebar-active-bg);
    border-left-color: var(--dart-sidebar-active-accent);
    color: var(--dart-text-on-dark);
}

.dart-nav-flyout-toggle:focus-visible {
    outline: 2px solid rgba(255, 255, 255, .35);
    outline-offset: -2px;
}

.dart-nav-flyout-title {
    display: none;
    padding: .375rem var(--dart-sidebar-gutter) .25rem;
    font-size: var(--dart-font-size-xs);
    text-transform: uppercase;
    letter-spacing: .04em;
    color: rgba(255, 255, 255, .55);
}

/* The fold button in the header: a quiet icon button, ink on white. */
.dart-sidebar-toggle {
    --bs-btn-color: var(--dart-text-muted);
    --bs-btn-hover-color: var(--dart-text);
    --bs-btn-hover-bg: var(--dart-surface-muted);
    --bs-btn-active-color: var(--dart-text);
    --bs-btn-active-bg: var(--dart-surface-muted);
    --bs-btn-border-color: transparent;
    --bs-btn-hover-border-color: transparent;
    --bs-btn-active-border-color: transparent;
    align-items: center;
    justify-content: center;
    width: var(--dart-control-height);
    height: var(--dart-control-height);
    padding: 0;
}

.dart-sidebar-footer {
    flex-shrink: 0;
    border-top: 1px solid var(--dart-sidebar-border);
    padding: .5rem;
    font-size: .8rem;
    color: rgba(255, 255, 255, .55);
}

/* ===== Content side ======================================================= */

.dart-wrapper {
    margin-left: var(--dart-sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: margin-left 200ms ease-in-out;
}

/* Its height and padding are density tokens: 44px compact, as Bootstrap
   lays it out on the vessel. */
.dart-header {
    display: flex;
    align-items: center;
    min-height: var(--dart-header-height);
    background-color: var(--dart-header-bg);
    border-bottom: 1px solid var(--dart-header-border);
    position: sticky;
    top: 0;
    z-index: 1020;
}

.dart-header-bar {
    padding-top: var(--dart-header-padding-y);
    padding-bottom: var(--dart-header-padding-y);
}

.dart-header-title {
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* The sidebar group before the page: plain text, never a link (ADR 0015). */
.dart-header-group {
    color: var(--dart-text-muted);
}

.dart-header-separator {
    margin: 0 .375rem;
    color: var(--dart-text-muted);
}

.dart-shell-compact .dart-content-card {
    border-radius: var(--dart-radius-card);
}

.dart-content {
    flex: 1 0 auto;
    background-color: var(--dart-content-bg);
}

.dart-content-card {
    width: 100%;
    border-radius: 0;
}

@media (max-width: 767.98px) {
    /* Do not hide .dart-sidebar here: the markup's d-none d-md-flex does it,
       and a rule here would also empty the offcanvas. */

    .dart-wrapper {
        margin-left: 0;
    }

    .dart-content-card {
        margin-left: .25rem;
        margin-right: .25rem;
    }
}

/* ===== Toasts =============================================================
   dart.notify in dart-notify.js. */

#toastContainer {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1090;
    display: flex;
    flex-direction: column;
    gap: .75rem;
    max-width: 26rem;
    pointer-events: none;
}

.dart-toast {
    --dart-toast-accent: var(--dart-status-info);
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: .875rem;
    min-width: 20rem;
    padding: 1rem 2.5rem 1rem 1.25rem;
    overflow: hidden;
    background: var(--dart-surface);
    color: var(--dart-text);
    border-left: 5px solid var(--dart-toast-accent);
    border-radius: .5rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .25), 0 0 0 1px rgba(0, 0, 0, .08);
    opacity: 0;
    transform: translate3d(110%, 0, 0);
    transition: transform .4s cubic-bezier(.215, .61, .355, 1), opacity .4s;
    pointer-events: auto;
}

.dart-toast-success { --dart-toast-accent: var(--dart-status-ok); }
.dart-toast-error   { --dart-toast-accent: var(--dart-status-error); }
.dart-toast-warning { --dart-toast-accent: var(--dart-status-warn); }
.dart-toast-info    { --dart-toast-accent: var(--dart-status-info); }

.dart-toast-show {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.dart-toast-exit {
    opacity: 0;
    transform: translate3d(110%, 0, 0);
}

.dart-toast-icon {
    font-size: 1.5rem;
    line-height: 1;
    color: var(--dart-toast-accent);
}

/* An icon on the white toast needs 3:1, and the brand orange is 2.13 there
   (brand.md §3 rule 1). The border and the progress bar are fills and keep it. */
.dart-toast-warning .dart-toast-icon {
    color: var(--dart-orange-text);
}

.dart-toast-body {
    flex: 1;
    min-width: 0;
}

/* Semibold, as a page's title is: bold was heavier than anything else on the page (20 November 2026). */
.dart-toast-title {
    font-weight: 600;
    margin-bottom: .125rem;
}

.dart-toast-message {
    font-size: .9rem;
    color: var(--dart-text-muted);
    overflow-wrap: anywhere;
}

.dart-toast-close {
    position: absolute;
    top: .75rem;
    right: .75rem;
    font-size: .75rem;
}

.dart-toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--dart-toast-accent);
    opacity: .7;
    transform-origin: left;
    animation: dart-toast-progress linear forwards;
}

@keyframes dart-toast-progress {
    from { transform: scaleX(1); }
    to   { transform: scaleX(0); }
}

@media (max-width: 575.98px) {
    #toastContainer {
        top: .5rem;
        right: .5rem;
        left: .5rem;
        max-width: none;
    }

    .dart-toast {
        min-width: 0;
        width: 100%;
    }
}

/* ===== Tables =============================================================

   Every table in either shell is striped and centred vertically, without a
   class on the page (ADR 0017); table-striped and align-middle on older pages
   are now redundant and harmless. The stripe is a density token, set as
   Bootstrap's own striped colour so its contextual rows (table-warning) keep
   their own. DataTables paints its stripes differently: dart-datatables.css. */
.dart-shell .table {
    --bs-table-striped-bg: var(--dart-table-stripe-bg);
    --bs-table-hover-bg: var(--dart-table-hover-bg);
    vertical-align: middle;
}

.dart-shell .table > tbody > tr:nth-of-type(odd) > * {
    --bs-table-color-type: var(--bs-table-striped-color);
    --bs-table-bg-type: var(--bs-table-striped-bg);
}

/* Compact: a hovered row a shade darker, on every table. The vessel has no
   hover to speak of, and keeps table-hover where a page asks for it. */
.dart-shell-compact .table > tbody > tr:hover > * {
    --bs-table-color-state: var(--bs-table-hover-color);
    --bs-table-bg-state: var(--bs-table-hover-bg);
}

/* Compact: a row holding a 24px control stays 28px. An action-column-text cell
   gives up its padding to its control, and a row icon inside a text cell (a
   shift's edit) overhangs the line a little rather than heightening the row. */
.dart-shell-compact .table > tbody > tr > .action-column-text {
    padding-top: calc((var(--dart-row-height) - var(--dart-control-height-sm) - var(--bs-border-width)) / 2) !important;
    padding-bottom: calc((var(--dart-row-height) - var(--dart-control-height-sm) - var(--bs-border-width)) / 2) !important;
}

.dart-shell-compact .table > tbody > tr > td:not(.action-column) a.dart-row-action {
    margin-block: calc((var(--dart-font-size) * 1.5 - var(--dart-row-action-size)) / 2);
}

/* Opt-in top alignment, for a table whose cells wrap long text, so the first
   lines of a row read across. Not with align-middle, whose !important wins. */
.dart-shell .table.dart-table-top,
.dart-shell .table.dart-table-top > tbody > tr > * {
    vertical-align: top;
}

/* Top-aligned, a row's icons sit on its first line of text, not on its edge. */
.dart-shell-compact .table.dart-table-top > tbody > tr > td.action-column {
    padding-top: calc((var(--dart-font-size) * 1.5 - var(--dart-row-action-size)) / 2 + var(--dart-cell-padding-y)) !important;
}

.table > tbody > tr > .action-column {
    width: 40px;
    min-width: 40px;
    max-width: 40px;
    text-align: center;
    padding: 0 !important;
}

.table > tbody > tr > .action-column-v2 {
    width: 50px;
    min-width: 50px;
    max-width: 50px;
    text-align: center;
}

.table > tbody > tr > .action-column-text {
    width: 100px;
    text-align: center;
    padding-left: .375rem !important;
    padding-right: .375rem !important;
}

.table > tbody > tr > .action-column-text > a {
    text-decoration: none;
}

/* Row action icons in a plain table, as in the DataTables lists (brand.md §6):
   ink, a light chip on hover, and red on hover for a destructive one, marked
   data-dart-danger. Opt in with .dart-row-actions on the table, for the icons in
   its action columns; an icon elsewhere in a row (a shift inside its cell) takes
   .dart-row-action itself. Never the link colour. */
.table.dart-row-actions > tbody > tr > td.action-column > a,
a.dart-row-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: var(--dart-row-action-size);
    min-height: var(--dart-row-action-size);
    border-radius: var(--bs-border-radius-sm);
    color: var(--dart-dt-action);
    text-decoration: none;
    transition: color .12s, background-color .12s;
}

.table.dart-row-actions > tbody > tr > td.action-column > a:hover,
.table.dart-row-actions > tbody > tr > td.action-column > a:focus-visible,
a.dart-row-action:hover,
a.dart-row-action:focus-visible {
    color: var(--dart-dt-action-hover);
    background-color: var(--dart-dt-action-hover-bg);
}

.table.dart-row-actions > tbody > tr > td.action-column > a[data-dart-danger]:hover,
.table.dart-row-actions > tbody > tr > td.action-column > a[data-dart-danger]:focus-visible,
a.dart-row-action[data-dart-danger]:hover,
a.dart-row-action[data-dart-danger]:focus-visible {
    color: var(--dart-dt-danger-hover);
    background-color: var(--dart-dt-danger-hover-bg);
}

/* A row action that stays a word, because the word matters ("Change state", "Add shift"), and a row's actions
   together at its right (Ingvar, 22 November 2026; a small outline button before, turned down): an icon and a
   word in ink with no border, the row icons' light chip on hover, then the standard edit and remove icons
   (.dart-row-action), right-aligned so those line up row to row. A link or a button alike. */
.dart-row-words {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: .25rem;
    vertical-align: middle;
}

.dart-row-word {
    display: inline-flex;
    align-items: center;
    min-height: var(--dart-row-action-size);
    padding: 0 .5rem;
    border: 0;
    border-radius: var(--bs-border-radius-sm);
    background: transparent;
    color: var(--dart-dt-action);
    font: inherit;
    text-decoration: none;
    white-space: nowrap;
    transition: color .12s, background-color .12s;
}

.dart-row-word:hover,
.dart-row-word:focus-visible {
    color: var(--dart-dt-action-hover);
    background-color: var(--dart-dt-action-hover-bg);
}

/* A destructive word (Remove), marked data-dart-danger: red on hover, as the remove icon. */
.dart-row-word[data-dart-danger]:hover,
.dart-row-word[data-dart-danger]:focus-visible {
    color: var(--dart-dt-danger-hover);
    background-color: var(--dart-dt-danger-hover-bg);
}

/* Compact: as a row icon in a text cell, overhanging the line a little rather than heightening the row. Every
   bordered word action in a row became one of these (22 November 2026): Change state, a zone change's Remove,
   a DPR day's Set night, the test accounts' Disable. */
.dart-shell-compact .table > tbody > tr > td .dart-row-words,
.dart-shell-compact .table > tbody > tr > td .dart-row-word {
    margin-block: calc((var(--dart-font-size) * 1.5 - var(--dart-row-action-size)) / 2);
}

.dart-shell-compact .table > tbody > tr > td .dart-row-words .dart-row-word {
    margin-block: 0;
}

/* An operational time's offset, beside the time as recorded (ADR 0013): muted
   and smaller, the same on every page. */
.dart-offset {
    color: var(--dart-text-muted);
    font-size: .875em;
}

/* ===== Record page ==========================================================
   One record and its rows, the Dive Log first and the DPR next. See "Record
   page" in docs/architecture/rules-front-end.md. */

/* Help text: as wide as the block it is in, never wrapped short of it
   (15 November 2026; it was capped at 80 characters), up to the reading
   width, as all text (19 November 2026; none where a density has no reading
   width). The class stays as the mark of help text. */
.dart-prose {
    max-width: var(--dart-reading-width, none);
}

/* A narrow column (14 November 2026): a boolean, a date, a number or a row's
   icon actions is only as wide as its content and its header, and the text
   columns take the rest of a wide table. On a plain table's th or td as
   dart-col-narrow; a row's action cell is narrow without it. DataTables lists
   get the same from their renderers and their detected types
   (dart-datatables.css). */
.table > :not(caption) > tr > .dart-col-narrow,
.table > tbody > tr > td.action-column {
    width: 1%;
    white-space: nowrap;
}

/* The header strip naming the record: an orange accent bar, the brand's own
   accent, beside ink text. */
.dart-record-header {
    border-left: var(--dart-title-bar-width) solid var(--dart-orange);
    padding-left: .75rem;
}

.dart-record-title {
    margin-bottom: .375rem;
}

.dart-record-meta {
    color: var(--dart-text-muted);
    font-size: var(--dart-font-size-sm);
    margin-bottom: .125rem;
}

/* A meta line below a record's header, the Dive Log's tool: a grey rule at its left, as an intro has (Ingvar,
   22 November 2026), so it reads as a note on the record rather than loose text. */
.dart-record-meta.dart-record-note {
    padding-left: .75rem;
    border-left: 1px solid var(--bs-border-color); /* every grey rule is 1px (21 November 2026) */
}

.dart-chips {
    display: flex;
    flex-wrap: wrap;
    gap: .375rem;
    margin-bottom: .375rem;
}

.dart-chip {
    display: inline-flex;
    align-items: baseline;
    gap: .375rem;
    padding: .125rem .5rem;
    border: 1px solid var(--bs-border-color);
    border-radius: var(--bs-border-radius);
    background-color: var(--dart-surface);
    color: var(--dart-text);
    font-size: var(--dart-font-size-sm);
    white-space: nowrap;
}

.dart-chip-label {
    color: var(--dart-text-muted);
    font-size: var(--dart-font-size-xs);
}

/* The targets a Dive Log row names (N163, N164): a chip each, with its remove
   button, above the box they are typed in. */
.dart-target-chip {
    align-items: center;
}

.dart-target-chip .btn-close {
    font-size: var(--dart-font-size-xs);
    padding: .125rem;
}

/* The compact header strip (ADR 0017; _DiveLogHeaderCompact): two
   lines, each a wrapping row. Line one the title, its parent, the chips and the
   record's actions on the right; line two the meta line and the figures on the
   right. The rows follow straight after, with no rule. */
.dart-record-header-compact {
    margin-bottom: .625rem;
}

/* With the rule under it (20 November 2026), the rule's own margins are the gap. */
.dart-record-header-compact:has(+ hr) {
    margin-bottom: 0;
}

.dart-record-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    column-gap: .75rem;
    row-gap: .25rem;
}

.dart-record-line + .dart-record-line {
    margin-top: .25rem;
}

.dart-record-header-compact .dart-record-title,
.dart-record-header-compact .dart-chips,
.dart-record-header-compact .dart-record-meta {
    margin-bottom: 0;
}

.dart-record-parent {
    color: var(--dart-text-muted);
    font-size: var(--dart-font-size-md);
}

/* The record's actions at the end of its title line, after the chips, never
   pushed to the far right (14 November 2026); a destructive one set apart. */
.dart-record-actions {
    display: flex;
    gap: .5rem;
}

.dart-record-actions > .btn-outline-danger,
.dart-record-actions > .btn-danger {
    margin-left: 1rem;
}

/* The counts as figures: "28 Relocated · 1 Not found · …", right-aligned, with
   their help toggle beside them, never wrapped away from them. */
.dart-figures-group {
    display: flex;
    flex: 0 0 auto;
    align-items: baseline;
    gap: .375rem;
    margin-left: auto;
    font-size: var(--dart-font-size-sm);
}

/* Beside the figures the meta line gives way first, wrapping in its own box. */
.dart-record-line > .dart-record-meta {
    flex: 1 1 24rem;
    min-width: 0;
}

.dart-figures {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.dart-figure-line {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: baseline;
    column-gap: .375rem;
}

.dart-figure {
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.dart-figure + .dart-figure::before {
    content: "·";
    margin-right: .375rem;
    color: var(--dart-text-muted);
}

.dart-figure .dart-count-value {
    font-size: inherit;
    line-height: inherit;
    font-weight: 600;
}

.dart-figure .dart-count-label {
    font-size: inherit;
}

/* A figure of none, where the others are counts of something: muted, as a nought in a table is. */
.dart-figure.dart-figure-zero,
.dart-figure.dart-figure-zero .dart-count-value {
    color: var(--dart-text-muted);
    font-weight: 400;
}

.dart-figure-line .dart-counts-date {
    min-width: 0;
}

/* A table's count, above it on the left, where a heading line was. */
.dart-table-caption {
    caption-side: top;
    padding: 0 0 .125rem;
    color: var(--dart-text);
    font-weight: 600;
    font-size: var(--dart-font-size-sm);
}

.dart-table-caption span {
    color: var(--dart-text-muted);
    font-weight: 400;
}

/* Counts as small boxes, one line per operational date. */
.dart-counts {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: .375rem;
    margin-bottom: .375rem;
}

.dart-counts-date {
    align-self: center;
    min-width: 6rem;
    font-size: var(--dart-font-size-sm);
    font-variant-numeric: tabular-nums;
    color: var(--dart-text-muted);
}

.dart-count {
    display: flex;
    flex-direction: column;
    min-width: 5.5rem;
    padding: .25rem .625rem;
    border: 1px solid var(--bs-border-color);
    border-radius: var(--bs-border-radius);
    background-color: var(--dart-surface);
}

.dart-count-value {
    font-size: var(--dart-font-size-lg);
    font-weight: 600;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
    color: var(--dart-text);
}

.dart-count-label {
    font-size: var(--dart-font-size-xs);
    color: var(--dart-text-muted);
}

/* Where the rows are entered, straight below the last one. */
.dart-entry-panel {
    padding: .75rem 1rem;
    border: 1px solid var(--bs-border-color);
    border-radius: var(--dart-radius-card); /* a panel's corners, not a control's (21 November 2026) */
    background-color: var(--dart-surface-muted);
    scroll-margin-bottom: .75rem;
}

/* ---- A list's filter: the first row in the list's section box, under its strip, ruled off from the
   table's toolbar (Ingvar, 21 November 2026; it was a grey panel above the box). Each field its own
   width, not a share of the row: the filter's form is a Bootstrap row of col-auto fields, each with
   one of the width classes below. The button straight after the fields; the ticks on a line below. */
.dart-list-filter {
    margin-bottom: .75rem;
    padding-bottom: .75rem;
    border-bottom: 1px solid var(--dart-report-line-soft);
}

/* The widths, for a list's filter and for a page's vessel and date (dart-context-rule) alike. */
.dart-filter-field {
    width: 12rem;
    max-width: 100%;
}

.dart-filter-field.dart-filter-wide {
    width: 18rem;
}

.dart-filter-field.dart-filter-narrow {
    width: 8rem;
}

.dart-filter-field.dart-filter-date {
    width: 9.5rem;
}

.dart-list-filter .dart-filter-actions {
    order: 1;
}

.dart-list-filter .dart-filter-flags {
    order: 2;
    width: 100%;
}

/* ---- What a page is about, under its title row: the vessel and the date it shows, and the tabs that
   follow, with a thin grey rule at their left, as an introduction has, their text in line with the
   title's (Ingvar, 21 November 2026, People aboard; it was a grey panel, which read as a filter). Two
   blocks that follow each other read as one rule. */
.dart-context-rule {
    /* Its own block, so a child's margin stays inside the rule rather than breaking it between two blocks. */
    display: flow-root;
    padding-left: .75rem;
    border-left: 1px solid var(--bs-border-color);
}

/* The rule ends with its fields, and the next box keeps its distance; where another ruled block follows, the
   rule runs on through the gap; where its tabs are, the open tab's orange underline stands a little clear of
   their pane's top edge (21 November 2026; it sat on it). */
.dart-context-rule {
    margin-bottom: 1rem;
}

.dart-context-rule:has(+ .dart-context-rule) {
    margin-bottom: 0;
    padding-bottom: .75rem;
}

.dart-context-rule:has(> .dart-tabs) {
    margin-bottom: 6px;
}

/* On Shifts, Mobilised kit and Time zone (21 November 2026) the row goes on after the date: the day steps
   (_DartDaySteps), close to the date, then the page's actions, full size, a little further off. */
.dart-context-rule .dart-day-steps {
    display: flex;
    gap: .25rem;
    margin-left: -.25rem;
}

.dart-context-rule .dart-context-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-left: .75rem;
}

/* A line at the right of the title row, such as the day's shifts on People aboard. */
.dart-list-title > .dart-title-aside {
    margin-left: auto;
}

/* The chips of the filter in force, under the filter row. */
.dart-list-filter + [data-dart-filter-chips] {
    margin-top: -.25rem;
}

/* ---- The Dive Log's entry bar and its banded rows (_DiveLogLive, rules-front-end.md,
   Record page), the one entry (22 November 2026). The bar is part of the page, stuck
   to the foot of the window while its rows are in sight: sticky, never fixed, so it
   keeps the content column's width beside the sidebar. Its controls are Bootstrap's,
   so they take the density's sizes; nothing here is a size of its own but the key
   caps, which follow the type. */
.dart-entry-bar {
    position: sticky;
    bottom: 0;
    z-index: 5;
    display: grid;
    grid-template-columns: minmax(15em, 1.3fr) minmax(12em, 2fr) minmax(5em, .6fr) minmax(5em, .6fr) minmax(6em, .7fr) minmax(10em, 2fr) auto;
    grid-template-areas:
        "context context context context context context context"
        "errors errors errors errors errors errors errors"
        "acts acts acts acts acts acts acts"
        "time target distance bearing weight notes save";
    gap: .375rem .5rem;
    align-items: start;
    margin-top: .25rem;
    padding: .5rem .75rem;
    border: 1px solid var(--dart-report-line);
    border-top: 2px solid var(--dart-ink);
    background-color: var(--dart-surface);
    box-shadow: 0 -6px 12px rgba(0, 0, 0, .08);
}

.dart-entry-bar .form-label {
    margin-bottom: 0;
    color: var(--dart-text-muted);
    font-size: var(--dart-font-size-xs);
}

.dart-entry-context {
    grid-area: context;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: .125rem 1.25rem;
    font-size: var(--dart-font-size-sm);
}

/* The time since the last row: the figure an operator looks for. */
.dart-entry-since {
    font-size: var(--dart-font-size-lg);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.dart-entry-status {
    color: var(--dart-status-ok);
}

.dart-entry-keys {
    margin-left: auto;
    color: var(--dart-text-muted);
    font-size: var(--dart-font-size-xs);
}

.dart-entry-bar > .dart-form-error {
    grid-area: errors;
}

.dart-entry-time { grid-area: time; }
.dart-entry-acts { grid-area: acts; }
.dart-entry-target { grid-area: target; }
.dart-entry-distance { grid-area: distance; }
.dart-entry-bearing { grid-area: bearing; }
.dart-entry-weight { grid-area: weight; }
.dart-entry-notes { grid-area: notes; }

/* Add row lines up with the fields' boxes, not the foot of the row: a message under a field makes the row taller,
   and the button stays where it was (23 November 2026). The space above it is one line of the cell's own type, the
   height a field's label takes. */
.dart-entry-save {
    grid-area: save;
    align-self: start;
}

.dart-entry-save::before {
    content: "\00a0";
    display: block;
}

/* The chips before the box, on its line. */
.dart-entry-target-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .25rem;
}

.dart-entry-target-line .input-group {
    flex: 1 1 10em;
    width: auto;
}

/* The Continue offer, the empty box's placeholder (23 November 2026): one line, ellipsed where it does not fit; the
   full id is in the box's title. */
.dart-entry-target .dart-target-text,
.dart-entry-target .dart-target-text::placeholder {
    text-overflow: ellipsis;
}

/* A field the picked action does not carry: in its place, plainly not in use. */
.dart-entry-slot-off {
    opacity: .45;
}

.dart-entry-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: .375rem;
}

.dart-entry-action {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding-left: 0;
    overflow: hidden;
    border: 1px solid var(--dart-ink);
    background-color: var(--dart-surface);
    color: var(--dart-text);
    white-space: nowrap;
}

.dart-entry-action:hover {
    border-color: var(--dart-ink);
    background-color: var(--dart-table-hover-bg);
    color: var(--dart-text);
}

.dart-entry-bar kbd {
    padding: 0 .4em;
    border-radius: 3px;
    background-color: var(--dart-report-chip);
    color: var(--dart-text);
    font-family: inherit;
    font-size: inherit;
    font-weight: 700;
}

/* The key cap fills the button's start, top to bottom. */
.dart-entry-action kbd {
    align-self: stretch;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2em;
    margin: -1px 0 -1px -1px;
    border-radius: 0;
    background-color: var(--dart-ink);
    color: var(--dart-text-on-dark);
}

.dart-entry-pinned kbd {
    background-color: var(--dart-report-chip);
    color: var(--dart-text);
}

/* The expected action: a heavier edge and the orange key, with "pressed" said by the fill. Never by colour alone:
   it is always first, and always 1. */
.dart-entry-expected {
    box-shadow: inset 0 0 0 1px var(--dart-ink);
    font-weight: 600;
}

.dart-entry-expected kbd {
    background-color: var(--dart-orange);
    color: var(--dart-text-on-orange);
}

.dart-entry-action[aria-pressed="true"],
.dart-entry-action[aria-pressed="true"]:hover {
    background-color: var(--dart-ink);
    color: var(--dart-text-on-dark);
}

/* The full list: its key, then the searchable select, which opens upwards as the bar is at the window's foot. */
.dart-entry-all {
    display: inline-flex;
    align-items: center;
    gap: .375rem;
    min-width: 16em;
    margin-left: .5rem;
}

.dart-entry-all .ts-wrapper {
    flex: 1 1 auto;
}

.dart-entry-bar .ts-dropdown {
    top: auto;
    bottom: 100%;
    margin: 0 0 .125rem;
}

/* Rows by target cycle: one shade per cycle in place of the row stripes, the cycle's number and what is missing
   at its start, the cycle in progress edged in orange, and a day as a band where it changes. */
.dart-shell .table.dart-dive-bands > tbody > tr:nth-of-type(n) > * {
    --bs-table-bg-type: transparent;
}

.dart-shell .table.dart-dive-bands > tbody.dart-band-shaded > tr:nth-of-type(n) > * {
    --bs-table-bg-type: var(--dart-table-stripe-bg);
}

.dart-shell .table.dart-dive-bands > tbody.dart-band > tr:first-child > * {
    border-top: 1px solid var(--dart-report-line);
}

.dart-band-cell {
    border-right: 2px solid var(--dart-report-line);
    color: var(--dart-text-muted);
    font-size: var(--dart-font-size-sm);
}

.dart-band-cell strong {
    margin-right: .375rem;
    color: var(--dart-text);
}

.dart-band-open .dart-band-cell {
    border-right-color: var(--dart-orange);
}

.dart-band-warning .dart-band-cell {
    border-right-color: var(--dart-status-error);
}

.dart-band-mark + .dart-band-mark::before {
    content: "· ";
}

.dart-band-mark-warning {
    color: var(--dart-status-error);
    font-weight: 600;
}

/* A row with the keyboard on it, the row in the bar, and the row just saved. */
.dart-dive-bands tr[data-row]:focus {
    outline: 2px solid var(--dart-ink);
    outline-offset: -2px;
}

.dart-shell .table.dart-dive-bands > tbody > tr.dart-row-editing:nth-of-type(n) > * {
    --bs-table-bg-type: var(--dart-table-hover-bg);
    box-shadow: inset 0 2px 0 var(--dart-ink), inset 0 -2px 0 var(--dart-ink);
}

.dart-dive-bands tr.dart-row-new > td {
    box-shadow: inset 0 -2px 0 var(--dart-orange);
}

/* Below about a laptop's width the bar's fields take two lines. */
@media (max-width: 1199.98px) {
    .dart-entry-bar {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        grid-template-areas:
            "context context context context context context"
            "errors errors errors errors errors errors"
            "acts acts acts acts acts acts"
            "time time target target target target"
            "distance bearing weight notes notes save";
    }
}

/* A field the server refused: ASP.NET marks it input-validation-error, which
   Bootstrap does not style. Every form, every host. A Tom Select's wrapper is
   the bordered .form-select and copies the class; a dart-date field's visible
   input copies it too. The red is the one is-invalid uses (dart-brand.css). */
.form-control.input-validation-error,
.form-select.input-validation-error {
    border-color: var(--dart-status-error);
}

/* Focused, a refused field's ring is the red, not ink: the same 2px ring. */
.form-control.input-validation-error:focus,
.form-select.input-validation-error:focus,
.form-control.is-invalid:focus,
.form-select.is-invalid:focus,
.ts-wrapper.input-validation-error.focus,
.ts-wrapper.is-invalid.focus {
    border-color: var(--dart-status-error);
    box-shadow: none;
    outline-color: var(--dart-status-error);
}

/* `body`: Tom Select's stylesheet loads after this one, so equal specificity would lose. */
body .ts-wrapper.input-validation-error.focus .ts-control,
body .ts-wrapper.is-invalid.focus .ts-control {
    box-shadow: none;
}

/* What a form's save refused about the record as a whole, inside the form and
   no wider than its message: one line with an icon, a list only for several.
   An error about one field goes on that field instead. Red text on white,
   6.48:1. */
.dart-form-error {
    display: flex;
    align-items: baseline;
    gap: .5rem;
    width: fit-content;
    max-width: 100%;
    margin-bottom: .5rem;
    padding: .25rem .625rem;
    border: 1px solid var(--dart-status-error);
    border-left-width: 3px;
    border-radius: var(--bs-border-radius-sm);
    background-color: var(--dart-surface);
    color: var(--dart-status-error);
    font-size: var(--dart-font-size-sm);
}

.dart-form-error ul {
    margin: 0;
    padding-left: 1.1rem;
}

/* A panel of a few fields, so a dropdown is not stretched across the page. */
.dart-panel-narrow {
    max-width: 48rem;
}

/* ---- Widths on a large screen (ADR 0017). Compact only; the tokens are in
   dart-brand.css.

   Every panel of a page runs from edge to edge of the page's card, whatever
   it holds: a section box, a filter's grey panel, a list (20 November 2026;
   from 19 November each block stopped at the reading width, and a panel
   beside a list ended short of it). What a panel holds keeps a width of its
   own where it has one: a form's fields (the form frame, below), a line of
   text.

   Text stops at the reading width on every page, a list's too: its
   introduction, and a note inside a list's own box, where the line would
   otherwise run to 300 characters. :where(), so the rule weighs nothing. */
:where(.dart-shell-compact .dart-content) :where(p, .form-text, .dart-list-intro-more) {
    max-width: var(--dart-reading-width);
}

/* Nor are a panel's fields stretched with it (20 November 2026): a row of
   fields in a panel, a filter's or the one that opens a day, stops at the
   reading width while the panel runs on to the page's edge, so a dropdown is
   as wide as it was. A form or a row that holds a table is not a row of
   fields and fills the panel, as a list does. */
:where(.dart-shell-compact .dart-content-card > .card-body) > :where(section, .dart-entry-panel) > :where(form, .row):where(:not(:has(table))) {
    max-width: var(--dart-reading-width);
}

/* ---- A form page's frame: the fields, and the tables and text beside them,
   keep the form's width, left-aligned, inside section boxes that run on to
   the page's edge as every panel does (20 November 2026; for a day a box
   stopped at the form's width, around its fields). The page's title is not in
   the frame, nor is the link row under it: both run the page's width.

   The frame is the column a form page wraps its form in, <div class="row">
   <div class="col-12 dart-form-frame">: full width. The form's width is the
   shared token --dart-form-share: the part of the content width the form
   takes, all of it on a narrow screen, two thirds from 992px and half from
   1200px, which is what the column's col-lg-8 col-xl-6 gave before, so every
   field keeps the width it had. A wider form says so (dart-form-frame-wide,
   -wider), as its column did.

   That width is worked back from the column with percentages, so it needs no
   container and no pixel figure: a column of share s and gutter g, inside
   the full-width frame of content width 100%, held s * 100% - (1 - s) * g;
   and a Bootstrap row, whose negative margins reach a gutter past its
   content, its own gutter more. A box of that width holds fields narrower by
   its padding and edge, which is the width they had in the wider box.

   And no wider than --dart-form-cap, the density's form width (compact: 56
   times the type, 65 and 75 for the wider frames), which is what holds a form
   at 840px on a 2560px screen where half the content would be 1090px. A
   density with no form width has no cap: 100% is never the lesser. */
.dart-form-frame {
    --dart-form-share: 1;
    --dart-form-gutter: 1.5rem;
    --dart-form-fit: calc(var(--dart-form-share) * 100% - (1 - var(--dart-form-share)) * var(--dart-form-gutter));
}

.dart-shell-compact .dart-form-frame {
    --dart-form-cap: var(--dart-form-width);
}

.dart-shell-compact .dart-form-frame.dart-form-frame-wide {
    --dart-form-cap: var(--dart-form-width-wide);
}

.dart-shell-compact .dart-form-frame.dart-form-frame-wider {
    --dart-form-cap: var(--dart-form-width-wider);
}

@media (min-width: 992px) {
    .dart-form-frame {
        --dart-form-share: .666667;
    }

    .dart-form-frame.dart-form-frame-wide {
        --dart-form-share: .75;
    }

    .dart-form-frame.dart-form-frame-wider {
        --dart-form-share: .833333;
    }
}

@media (min-width: 1200px) {
    .dart-form-frame {
        --dart-form-share: .5;
    }

    .dart-form-frame.dart-form-frame-wide {
        --dart-form-share: .583333;
    }

    .dart-form-frame.dart-form-frame-wider {
        --dart-form-share: .666667;
    }
}

/* What the frame holds itself: fields not in a box, a table under a heading. */
.dart-form-frame > * {
    max-width: min(var(--dart-form-fit), var(--dart-form-cap, 100%));
}

.dart-form-frame > .row {
    max-width: min(calc(var(--dart-form-fit) + var(--bs-gutter-x)), calc(var(--dart-form-cap, 100%) + var(--bs-gutter-x)));
}

/* A box runs to the page's edge, as every panel does, its title strip with it (20 November 2026; for a day
   it stopped at the form's width, around its fields), and what is in it keeps the form's width, left-aligned:
   the fields are as wide as they were. The share is taken of the box's inside, which is its padding and edge
   narrower than the frame, so the rest of that, the part the share left out, comes off: the same width to
   the pixel as in the narrower box. A row reaches its own gutter further, as above. */
.dart-form-frame > section {
    --dart-form-box-edges: calc(2 * var(--dart-section-pad-x, 12px) + 2px);
    --dart-form-in-box: min(calc(var(--dart-form-fit) - (1 - var(--dart-form-share)) * var(--dart-form-box-edges)), var(--dart-form-cap, 100%));
    max-width: none;
}

.dart-form-frame > section > :where(:not(h5:first-child)) {
    max-width: var(--dart-form-in-box);
}

.dart-form-frame > section > .row {
    max-width: calc(var(--dart-form-in-box) + var(--bs-gutter-x));
}

/* A note in a form's box that is not held to the form's width, only to the
   reading width, as text outside a form is: a line that would otherwise wrap
   under a table wider than the form (Safety statistics). */
.dart-form-frame > section > .dart-form-wide {
    max-width: var(--dart-reading-width, none);
}

/* A table that is the form (Safety statistics, the accrual by time state) is
   as wide as its columns need, so no cell wraps while the box has room: at
   least the form's width, and on into the box beside it (20 November 2026;
   held to the form's width, a long name and a line of help wrapped). */
.dart-form-frame > section > table.table {
    width: auto;
    min-width: var(--dart-form-in-box);
    max-width: 100%;
}

/* Radios or checks in a row of labelled fields: as tall as a field and centred
   in it, so a bottom-aligned row puts them level with the fields beside them
   (15 November 2026). Bootstrap's field height, or the density's where it sets one. */
.dart-field-height {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    min-height: calc(1.5em + .75rem + 2 * var(--bs-border-width));
}

.dart-shell-compact .dart-field-height,
.dart-shell-offline .dart-field-height {
    min-height: var(--dart-control-height);
}

.dart-select-narrow {
    max-width: 16rem;
}

/* A small toggle for help text: muted ink, which holds its contrast on the
   panel's grey where the link colour would not. */
.dart-help-toggle {
    --bs-btn-color: var(--dart-text-muted);
    --bs-btn-hover-color: var(--dart-text);
    --bs-btn-active-color: var(--dart-text);
    text-decoration: none;
}

/* A heading that opens and closes its section. */
.dart-collapse-toggle {
    color: var(--dart-text);
    text-decoration: none;
}

.dart-collapse-toggle:hover {
    color: var(--dart-text);
    text-decoration: underline;
}

.dart-collapse-chevron {
    font-size: .75em;
    transition: transform 200ms ease;
}

.dart-collapse-toggle.collapsed .dart-collapse-chevron {
    transform: rotate(-90deg);
}

/* An anchor clear of the shell header and the sticky bar. */
.dart-scroll-target {
    scroll-margin-top: 7rem;
}

/* The slim bar naming the record once its header has scrolled away. Sticky
   below the shell header, whose height the page script measures into
   --dart-record-sticky-top. No height of its own, so showing it moves nothing. */
.dart-record-sticky {
    position: sticky;
    top: var(--dart-record-sticky-top, 0);
    z-index: 1010;
    height: 0;
}

.dart-record-sticky-bar {
    position: absolute;
    top: 0;
    left: calc(-1 * var(--bs-card-spacer-x));
    right: calc(-1 * var(--bs-card-spacer-x));
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    column-gap: 1rem;
    padding: .375rem var(--bs-card-spacer-x) .375rem calc(var(--bs-card-spacer-x) - var(--dart-title-bar-width));
    border-left: var(--dart-title-bar-width) solid var(--dart-orange);
    border-bottom: 1px solid var(--dart-header-border);
    background-color: var(--dart-surface);
    box-shadow: 0 2px 6px rgba(0, 0, 0, .08);
    font-size: var(--dart-font-size-sm);
    opacity: 0;
    visibility: hidden;
    transition: opacity 150ms ease, visibility 150ms;
}

.dart-record-sticky.is-shown .dart-record-sticky-bar {
    opacity: 1;
    visibility: visible;
}

.dart-record-sticky-bar strong {
    color: var(--dart-text);
}

.dart-record-sticky-bar span {
    color: var(--dart-text-muted);
}

/* ===== List pages ===========================================================
   The DataTables lists, central's (ADR 0017; rules-front-end.md): a title row with
   the page's actions after the title, a rule beneath it, the introduction as one
   muted paragraph, then the table's one toolbar row, which takes the table mode too. */

/* Actions start from the left (14 November 2026): the page's actions straight
   after the title, the primary first, never at the far right of a wide screen. */
.dart-list-title {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: .5rem 1.25rem;
    margin-bottom: .375rem;
}

/* A rule under the title row on every page (20 November 2026), as a form's
   <hr> under its <h4>: the same line, Bootstrap's hr, a quarter of the ink.
   Where a record's row of page links follows, the rule is still the title's,
   and the links come under it. Drawn beneath the row, not as its border, so
   the orange bar at its left (below) is as tall as the title and stops short
   of the rule, as a record's. */
.dart-list-title,
.dart-content-card > .card-body > h4:has(+ .dart-page-links) {
    position: relative;
    margin-bottom: 1.125rem;
}

/* A form page's <h4> has its <hr> in the page; the one page whose links follow
   its <h4> with no <hr> between, the project's form, gets the same rule here. */
.dart-list-title::after,
.dart-content-card > .card-body > h4:has(+ .dart-page-links)::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -.5rem;
    left: calc(-1 * var(--dart-title-bar-width));
    border-bottom: var(--bs-border-width) solid color-mix(in srgb, currentColor 25%, transparent);
}
/* ON TRIAL (Ingvar, 20 November 2026): the orange bar at the left of a
   record's header, the Dive Log's (dart-record-header), on every page's
   heading: a title row, and the <h4> a form page or a record page opens
   with. To end the trial, delete this rule and the bar's width in left above. */
.dart-list-title,
.dart-content-card > .card-body > h4 {
    border-left: var(--dart-title-bar-width) solid var(--dart-orange);
    padding-left: .75rem;
}

/* ON TRIAL (Ingvar, 21 November 2026): no rule under a page's heading, the
   orange bar alone marks it: neither the title row's line above nor the <hr>
   a form page puts after its <h4>. To end the trial, delete these two rules. */
.dart-list-title::after,
.dart-content-card > .card-body > h4:has(+ .dart-page-links)::after {
    content: none;
}

.dart-content-card > .card-body > h4 + hr {
    display: none;
}

/* The space the <hr> held, as a title row's. */
.dart-content-card > .card-body > h4:has(+ hr) {
    margin-bottom: 1.125rem;
}

/* A record's own pages, linked to each other under its title and its rule
   (_DartProjectPages): a row of plain links, left-aligned, in ink at medium
   weight so the row is noticed (20 November 2026: muted, it was not; drawn as
   tabs with fills and edges, it was too much). The current one is semibold,
   with aria-current="page"; the one under the pointer is underlined in grey.
   The orange underline is an accent only, never the mark itself: the brand
   orange is 2.13:1 on white, under the 3:1 a state indicator needs.
   Links, not buttons: they go somewhere, they do nothing.
   As People aboard's tabs (21 November 2026): a thin grey rule at the row's left, its text in line with the
   title's, and no line of its own under it, the current one's orange underline a little clear of what follows. */
.dart-page-links {
    display: flex;
    flex-wrap: wrap;
    gap: .25rem 1.5rem;
    margin-bottom: 6px;
    padding-left: .75rem;
    border-left: 1px solid var(--bs-border-color);
    font-size: var(--dart-font-size);
}

.dart-page-link {
    padding: .125rem 0 .375rem;
    margin-bottom: -1px;
    border-bottom: 3px solid transparent;
    color: var(--dart-text);
    font-weight: 500;
    text-decoration: none;
}

.dart-page-link:hover {
    color: var(--dart-text);
    border-bottom-color: var(--dart-text-muted);
}

.dart-page-link.active {
    color: var(--dart-text);
    font-weight: 600;
    border-bottom-color: var(--dart-orange);
}

/* Tabs inside a page (21 November 2026, People aboard's three lists): the
   same look as a record's page links, as they are the same kind of choice,
   but buttons, as they go nowhere: they show another part of the page
   (Bootstrap's tab plugin, role="tab"). The open one is semibold; the orange
   underline is an accent only. The pane beneath is the section box. */
/* The tabs have no line of their own: their pane, a section box, has its top edge under them, the open tab's
   orange underline a little above it (dart-context-rule). A line of the tabs' own beside the box's edge read as one
   line twice as thick (21 November 2026). */
.dart-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: .25rem 1.5rem;
    margin-bottom: 0;
    font-size: var(--dart-font-size);
}

.dart-tab {
    padding: .125rem 0 .375rem;
    margin-bottom: -1px;
    border: 0;
    border-bottom: 3px solid transparent;
    background: none;
    color: var(--dart-text);
    font-weight: 500;
}

.dart-tab:hover {
    border-bottom-color: var(--dart-text-muted);
}

.dart-tab.active {
    font-weight: 600;
    border-bottom-color: var(--dart-orange);
}

/* A tab's pane is a section box with no title strip, its tab being the title:
   the strip is what stands off a box's content from its top edge, so a pane
   takes the box's own padding there, the same as at its sides and foot. */
.dart-section.tab-pane {
    padding-top: var(--dart-section-pad-x);
}
.dart-list-title > h4 {
    margin-bottom: 0;
}

.dart-list-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

/* ON TRIAL (Ingvar, 21 November 2026): a title row's actions are small buttons,
   the control height's small size, and its primary an ink outline that fills on
   hover, as .btn-outline-primary: the full-size solid button outweighed the title
   beside it. Compact only; touch keeps its targets. To end the trial, delete these
   three rules. */
.dart-shell-compact .dart-list-actions .btn {
    --bs-btn-font-size: var(--dart-font-size-sm);
    --bs-btn-padding-y: var(--dart-control-padding-y-sm);
    --bs-btn-padding-x: 10px;
}

.dart-shell-compact .dart-list-actions .btn > i {
    font-size: .8em;
}

.dart-shell-compact .dart-list-actions .btn-primary {
    --bs-btn-color: var(--dart-text);
    --bs-btn-border-color: var(--dart-text);
    --bs-btn-bg: transparent;
    --bs-btn-hover-color: var(--dart-text-on-dark);
    --bs-btn-hover-bg: var(--dart-ink);
    --bs-btn-hover-border-color: var(--dart-ink);
    --bs-btn-active-color: var(--dart-text-on-dark);
    --bs-btn-active-bg: var(--dart-ink-hover);
    --bs-btn-active-border-color: var(--dart-ink-hover);
    --bs-btn-disabled-color: var(--dart-text-muted);
    --bs-btn-disabled-border-color: var(--dart-text-muted);
}

/* Every page's introduction under its title row, one rule for all (14 November
   2026): muted, at the intro size, and as wide as the blocks below it, never
   wrapped short of their edge (15 November 2026). Anything longer than two
   lines at 1366px goes behind a help toggle. Not dart-prose, which is for
   help beside a form. A grey rule at its left (Ingvar, 21 November 2026), the
   title's orange bar in a quieter tone, as the help it opens has; its text starts
   where the title's does. */
.dart-list-intro {
    margin-bottom: .625rem;
    padding-left: .75rem;
    border-left: 1px solid var(--bs-border-color); /* every grey rule is 1px (21 November 2026) */
    color: var(--dart-text-muted);
    font-size: var(--dart-font-size-intro);
}

/* When each vessel last updated the office (_DartVesselUpdates), under the title or the introduction: the
   introduction's grey rule, its text in line with the title's (21 November 2026). After an introduction the two
   rules meet. */
.dart-vessel-updates {
    padding-left: .75rem;
    border-left: 1px solid var(--bs-border-color);
}

.dart-list-intro:has(+ .dart-vessel-updates) {
    margin-bottom: 0;
    padding-bottom: .375rem;
}

/* What a help toggle under an introduction opens: the same type, ruled off. */
.dart-list-intro-more {
    margin-bottom: .625rem;
    padding-left: .75rem;
    border-left: 1px solid var(--bs-border-color);
    color: var(--dart-text-muted);
    font-size: var(--dart-font-size-intro);
}

.dart-list-intro-more > :last-child {
    margin-bottom: 0;
}

/* Figures on a line of their own on the left, as a page's counts above its
   table: the Dive Log's inline figures (figure then label, muted). */
.dart-figure-line.dart-figures-start {
    justify-content: flex-start;
    margin-bottom: .5rem;
    font-size: var(--dart-font-size-sm);
}

/* Labels and values on a card: the labels in a narrow column, each value
   straight beside its label rather than at a share of the card's width. */
.dart-facts {
    display: grid;
    grid-template-columns: var(--dart-facts-label, 90px) minmax(0, 1fr);
    column-gap: .5rem;
    row-gap: .125rem;
    margin-bottom: 0;
}

/* Longer labels, as the vessel's sync status has: a wider column, the value still beside it. */
.dart-facts-wide {
    --dart-facts-label: 13rem;
    row-gap: .25rem;
}

.dart-facts > dt {
    color: var(--dart-text-muted);
    font-weight: 400;
}

.dart-facts > dd {
    margin-bottom: 0;
}

/* The table mode and reset, and a page's own filter, at the end of the toolbar
   row (dart-datatables.js). */
.dart-table-tools {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
}

.dart-table-tools:empty {
    display: none;
}

/* The page bar, a grey panel holding a vessel page's vessel, date and actions, is gone (21 November 2026): those
   pages have a row under the title with a grey rule (dart-context-rule, above). */

/* A bar acting on the table below it (sign off the ticked): its label beside
   the field, not above it. */
.dart-shell-compact .dart-action-bar {
    align-items: center !important;
}

.dart-shell-compact .dart-action-bar > div {
    display: flex;
    align-items: center;
    gap: .5rem;
}

.dart-shell-compact .dart-action-bar .form-label {
    margin-bottom: 0;
    white-space: nowrap;
}

.dart-shell-compact .dart-action-bar input.form-control {
    width: 9.5rem;
}

/* A bar laid out as a grid row, as Mobilised kit's change-state bar: on
   compact its columns and its button row become the bar's own items, each
   label beside its field, one line as far as the fields allow. A refusal's
   message goes on its field's right; an empty one takes no room. */
.dart-shell-compact form.dart-action-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .375rem 1rem;
}

.dart-shell-compact .dart-action-bar > .row,
.dart-shell-compact .dart-action-bar > .d-flex {
    display: contents !important;
}

.dart-shell-compact .dart-action-bar > .row > [class*="col-"] {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    align-items: center;
    column-gap: .5rem;
    width: auto;
    max-width: none;
    margin-top: 0;
    padding: 0;
}

.dart-shell-compact .dart-action-bar > .dart-form-error {
    flex-basis: 100%;
}

.dart-shell-compact .dart-action-bar .field-validation-valid {
    display: none;
}

/* A field's refusal on its right, on the field's own line (Ingvar, 22 November 2026): under it, it heightened the
   bar and left a gap beside the field. */
.dart-shell-compact .dart-action-bar .field-validation-error {
    flex: 0 1 auto;
    white-space: nowrap;
}

.dart-shell-compact .dart-action-bar .form-select {
    width: auto;
    min-width: 11rem;
}

.dart-shell-compact .dart-action-bar input.dart-datetime {
    width: 11rem;
}

.dart-shell-compact .dart-action-bar #statesNote {
    width: 16rem;
}

/* ===== Forms ============================================================== */

.form-label {
    font-weight: 500;
}

/* A field's ? help beside its label (_DartFieldHelp): muted grey, ink when reached, never orange text. The explanation is its tooltip. */
.dart-field-help {
    border: 0;
    background: none;
    padding: 0 .25rem;
    color: var(--dart-text-muted);
    font-size: var(--dart-font-size-sm);
    line-height: 1;
    vertical-align: baseline;
    cursor: help;
}

.dart-field-help:hover,
.dart-field-help:focus-visible {
    color: var(--dart-text);
}

/* A tooltip wide enough for a field's help, which is a few sentences (21 November 2026: a
   field's help is its ? alone), and set left, as a paragraph is. Bootstrap's is 200px, centred. */
.tooltip {
    --bs-tooltip-max-width: 22rem;
}

.tooltip-inner {
    text-align: left;
}

/* Filter box above index tables: labels on top, in a grey box. */
.dart-filter-box {
    border: 1px solid var(--bs-border-color);
    border-radius: .5rem;
    padding: 1rem;
    height: 100%;
    background-color: var(--bs-tertiary-bg);
}

.dartSelect12rem { min-width: 12rem; }
.dartSelect16rem { min-width: 16rem; }
.dartSelect24rem { min-width: 24rem; }
.dartDateInput   { min-width: 9rem; }

@media (max-width: 767.98px) {
    .dartSelect12rem,
    .dartSelect16rem,
    .dartSelect24rem,
    .dartDateInput {
        min-width: 0;
        width: 100%;
    }
}

/* ===== Sync status ======================================================== */

.dart-sync-ok      { color: var(--dart-status-ok); }
.dart-sync-pending { color: var(--dart-status-pending); }
/* Text on white, so the orange family's text colour (4.60), never the brand
   orange (2.13), which is a fill: brand.md §3 rule 1. */
.dart-sync-warn    { color: var(--dart-orange-text); }
.dart-sync-error   { color: var(--dart-status-error); }

.dart-sync-badge {
    display: inline-flex;
    align-items: center;
    gap: .375rem;
    font-size: .85rem;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

/* The icon's box is its glyph's, so centring puts the triangle level with the
   text's middle, not riding above it on the text's taller line (15 November 2026). */
.dart-sync-badge > i {
    display: block;
    line-height: 1;
}

/* ===== Offshore ergonomics ================================================
   Vessel host only, via <body class="dart-shell-offline">. */

.dart-shell-offline {
    font-size: var(--dart-touch-font);
}

.dart-shell-offline .form-control,
.dart-shell-offline .form-select {
    min-height: var(--dart-touch-target);
    font-size: var(--dart-touch-font);
}

/* Buttons take the larger type but not the field height: a 3rem floor on top of
   Bootstrap's padding made them chunkier than the fields beside them. */
.dart-shell-offline .btn {
    font-size: var(--dart-touch-font);
}

.dart-shell-offline .form-check-input {
    width: 1.5rem;
    height: 1.5rem;
    margin-top: .15rem;
}

.dart-shell-offline .form-check-label {
    padding-left: .25rem;
    line-height: 1.9rem;
}

/* A row's edit and delete, a finger's width apart. */
.dart-shell-offline .table.dart-row-actions > tbody > tr > .action-column {
    width: 2.75rem;
    min-width: 2.75rem;
    max-width: 2.75rem;
}

/* The row icons themselves are --dart-row-action-size, 2.5rem in this density
   (dart-brand.css). */

/* Numeric entry is where mis-reading hurts most. */
.dart-shell-offline input[inputmode="decimal"],
.dart-shell-offline input[inputmode="numeric"] {
    font-variant-numeric: tabular-nums;
    font-size: 1.15rem;
}

/* A date-and-time field's note that is not a refusal (dart-mask.js, setWarning): a Dive Log time earlier than the
   last row, too far back to be past midnight. The user decides; the readable orange, not the status orange. */
.dart-datetime-warning {
    color: var(--dart-orange-text);
    font-weight: 600;
}

/* The field saying it moved the date it showed (dart-mask.js, followOn, §6.37): a typed time dated yesterday, as that
   time today is still to come. Information, not a question: ink, not orange, in the warning's place beneath the field. */
.dart-datetime-note {
    color: var(--dart-text);
    font-weight: 600;
}

/* ===== The report look (a trial, 14 November 2026) ===========================
   The whole screen in the printed DPRs' visual language (dart-dpr-print.css):
   the ink band with its orange rule, section boxes with a title strip,
   small grey capitals over hairline rows, ink group rows, tiles, code chips and
   label-over-value fact grids. The fills and lines are the shared report tokens
   (dart-brand.css, --dart-report-*), so paper and screen are one source; the
   sizes are the density's, never the print's points. On the screen every text
   colour is ink or the muted grey, at 4.5:1 or more, where print greys its
   noughts lighter. The orange is decoration and never the only cue: a strip has
   its capitals, a tile its figure, a work chip its code. Both hosts. */

/* ---- The frame: the header bar as the report's running band. The orange rule
   is the bar's 1px edge and a 2px inset, so the bar keeps its height. */
.dart-header {
    --dart-focus-ring-color: var(--dart-text-on-dark);
    background-color: var(--dart-ink);
    border-bottom-color: var(--dart-report-rule);
    box-shadow: inset 0 -2px 0 var(--dart-report-rule);
    color: var(--dart-text-on-dark);
}

.dart-header .dart-header-title .fw-semibold {
    color: var(--dart-text-on-dark);
}

.dart-header .dart-header-group,
.dart-header .dart-header-separator {
    color: var(--dart-on-ink-muted);
}

/* The fold button and the user menu: light on ink, a light ring when focused. */
.dart-header .dart-sidebar-toggle,
.dart-header .btn-outline-secondary {
    --bs-btn-color: var(--dart-on-ink-muted);
    --bs-btn-border-color: rgba(255, 255, 255, .35);
    --bs-btn-hover-color: var(--dart-text-on-dark);
    --bs-btn-hover-bg: rgba(255, 255, 255, .1);
    --bs-btn-hover-border-color: rgba(255, 255, 255, .5);
    --bs-btn-active-color: var(--dart-text-on-dark);
    --bs-btn-active-bg: rgba(255, 255, 255, .14);
    --bs-btn-active-border-color: rgba(255, 255, 255, .5);
}

.dart-header .dart-sidebar-toggle {
    --bs-btn-border-color: transparent;
}

.dart-header .btn:focus-visible {
    outline-color: var(--dart-focus-ring-color);
}

/* The vessel's sync state, in colours that read on ink. */
.dart-header .dart-sync-badge {
    color: var(--dart-text-on-dark);
}

.dart-header .dart-sync-ok      { color: var(--dart-on-ink-ok); }
.dart-header .dart-sync-pending { color: var(--dart-on-ink-muted); }
.dart-header .dart-sync-warn    { color: var(--dart-orange); }
.dart-header .dart-sync-error   { color: var(--dart-on-ink-error); }

/* The page itself is the report's sheet: white, a hairline edge, no shadow. */
.dart-content-card {
    border: 1px solid var(--dart-report-line);
    box-shadow: none !important;
}

/* ---- Section boxes: a card with the report's title strip. Given by the class,
   or found: a <section> whose first child is its <h5>, or a heading row holding
   it (the DPR day, the set-up, the reports, the vessel's status), so those pages
   need no markup of their own. A Bootstrap card and its header take the same. */
.dart-section,
.dart-content section:has(> h5:first-child),
.dart-content section:has(> :first-child > h5:first-child) {
    --dart-section-pad-x: 12px;
    margin-bottom: 1rem;
    padding: 0 var(--dart-section-pad-x) var(--dart-section-pad-x);
    border: 1px solid var(--dart-report-line);
    border-radius: var(--dart-radius-card);
    background-color: var(--dart-surface);

    /* Its own block, holding its children's margins, and never clipping: a dropdown opened near the box's
       foot runs out over it (15 November 2026: the End clients picker showed one client, the rest cut off). */
    display: flow-root;
}

/* The strip: across the box's full width, on the box's own colour (no grey fill since 21 November 2026),
   the orange 2px rule beneath, its top corners the box's. */
.dart-section > h5:first-child,
.dart-content section:has(> h5:first-child) > h5:first-child,
.dart-content section:has(> :first-child > h5:first-child) > :first-child,
.dart-content .card > .card-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .25rem .75rem;
    margin: 0 calc(-1 * var(--dart-section-pad-x, 12px)) .75rem;
    padding: 11px var(--dart-section-pad-x, 12px) 10px;
    border-bottom: 2px solid var(--dart-report-rule);
    border-radius: calc(var(--dart-radius-card) - 1px) calc(var(--dart-radius-card) - 1px) 0 0;
    background-color: transparent;
}

/* A title that is its own strip: its count just after the name, a space away, not the gap between controls,
   and on the name's baseline: centred, the bold capitals' taller box set the count a pixel off. */
.dart-section > h5:first-child,
.dart-content section:has(> h5:first-child) > h5:first-child {
    align-items: baseline;
    column-gap: .4em;
}

/* The title in the strip: small bold capitals with letter-spacing, in ink. */
.dart-section > h5:first-child,
.dart-content section:has(> h5:first-child) > h5:first-child,
.dart-content section:has(> :first-child > h5:first-child) > :first-child > h5:first-child,
.dart-content .card > .card-header {
    font-size: var(--dart-font-size-sm);
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--dart-text);
}

.dart-content section:has(> :first-child > h5:first-child) > :first-child > h5:first-child {
    margin: 0;
}

.dart-section > h5 .text-body-secondary,
.dart-content section > h5:first-child .text-body-secondary {
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
}

/* A list's count, (N), beside its title: muted and not bold, as a section's count is. */
.dart-content h5 [data-dart-table-count] {
    font-weight: 400;
    letter-spacing: 0;
    color: var(--dart-text-muted);
}

/* The box ends at its content: the last table, list or note brings no margin of its own into it. */
.dart-section > :last-child,
.dart-section > :last-child > .table-responsive:last-child,
.dart-section > .table-responsive:last-child > .table,
.dart-content section:has(> h5:first-child) > :last-child,
.dart-content section:has(> :first-child > h5:first-child) > :last-child {
    margin-bottom: 0 !important;
}

/* Meta text on the right of the strip, muted, not in capitals (5.95 on the grey). */
.dart-section-meta {
    margin-left: auto;
    font-size: var(--dart-font-size-xs);
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
    color: var(--dart-text-muted);
}

/* A grey entry panel that is a section keeps its grey; its strip sits on it. */
.dart-content section.dart-entry-panel {
    background-color: var(--dart-surface-muted);
}

/* Bootstrap's own cards: the box's edge and corners. */
.dart-content .card {
    --bs-card-border-color: var(--dart-report-line);
    --bs-card-cap-bg: transparent;
}

.dart-content .card > .card-header {
    margin: 0;
}

/* ---- Tables: small grey capitals over hairline rows; figures at the right,
   noughts muted, totals bold. Stripes and vertical centring stay. */
.dart-content .table {
    --bs-table-border-color: var(--dart-report-line-soft);
}

.dart-content .table > thead > tr > th,
table.dataTable > thead > tr > th {
    font-size: var(--dart-font-size-xs);
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--dart-text-muted);
    border-bottom: 1px solid var(--dart-report-line);
}

/* A remark beside a heading's name, such as "(vessel)": not in capitals. */
.dart-content .table > thead > tr > th .text-body-secondary {
    text-transform: none;
    letter-spacing: 0;
}

.dart-content .table .dart-num {
    text-align: right;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

/* A nought: the muted grey, 6.0:1 on a stripe (dart-report.js marks it). */
.dart-content .table td.dart-zero {
    color: var(--dart-text-muted);
}

.dart-content .table > tfoot > tr > *,
.dart-content .table > tbody > tr.dart-total > * {
    font-weight: 700;
    --bs-table-bg-type: var(--dart-report-total-fill);
    border-top: 1px solid var(--dart-report-line);
}

/* ---- Group rows: a dark grey band a step off ink (--dart-ink-soft: full ink was
   too heavy on a page, 15 November 2026) with the group's name and, just after
   it, its count as (N) in orange (4.87 on it). People by company, kit by owner.
   A count at the far right was hard to see on a wide table (15 November 2026);
   a section's count is likewise (N) in its heading, not strip meta. */
.dart-content .table > tbody > tr.dart-group-row > th {
    padding-top: 3px;
    padding-bottom: 3px;
    /* An edge of the band's colour, not none: in a collapsed table a row's edge is half in the next row, which would lose half a pixel. */
    border-bottom-color: var(--dart-ink-soft);
    background-color: var(--dart-ink-soft);
    box-shadow: none;
    color: var(--dart-text-on-dark);
    font-size: var(--dart-font-size-xs);
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.dart-group-count {
    color: var(--dart-orange);
    letter-spacing: 0;
}

/* ---- Tiles: the report's full-size tile, for a place with room for one: a
   large figure, a bold label beneath and a muted line under that (project N),
   on the report's grey, its left edge orange where it has something in it and
   grey where it is nought (dart-report.js marks dart-tile-zero). The Dive Log's
   counts stay inline figures (dart-figures): on a dive past midnight the tiles
   were three lines of small boxes (decided 14 November 2026). */
.dart-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr));
    gap: .5rem;
}

.dart-tile {
    padding: 6px 10px 7px;
    border-left: 3px solid var(--dart-report-rule);
    border-radius: 4px;
    background-color: var(--dart-report-fill);
}

/* The role tiles: four abreast where there is room. */
.dart-tiles-roles {
    grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
}

.dart-tile.dart-tile-zero {
    border-left-color: var(--dart-report-tile-edge);
}

.dart-tile-figure {
    margin: 0;
    font-size: var(--dart-font-size-lg);
    font-weight: 700;
    line-height: 1.15;
    font-variant-numeric: tabular-nums;
}

.dart-tile-label {
    margin: 0;
    font-size: var(--dart-font-size-sm);
    font-weight: 700;
}

.dart-tile-sub {
    margin: 0;
    font-size: var(--dart-font-size-xs);
    color: var(--dart-text-muted);
}

.dart-tile.dart-tile-zero .dart-tile-figure {
    color: var(--dart-text-muted);
}
/* ---- Code chips, as the printed reports': orange where the code's time state
   is Operational (dart-code-work), grey otherwise; the code is always written,
   so the colour is never the only cue. Ink on orange 7.11, on grey 10.83. */
.dart-code-chip {
    display: inline-block;
    min-width: 2.2em;
    padding: 0 5px;
    border-radius: 3px;
    background-color: var(--dart-report-chip);
    color: var(--dart-text);
    font-size: var(--dart-font-size-xs);
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: .03em;
    /* Inside the line, never taller than it: a row stays at its height. */
    vertical-align: top;
    text-align: center;
    text-transform: uppercase;
}

.dart-code-chip.dart-code-work {
    background-color: var(--dart-orange);
    color: var(--dart-text-on-orange);
}

/* ---- Fact grids: the report's head card, a small grey capital label over a
   bold value, in cells with hairline edges. For a record's key facts. Each
   cell as wide as its value, never wrapped inside it, the row's spare width
   shared out; a cell that does not fit goes to the next row (15 November 2026:
   equal 12rem columns wrapped the project's name and the zone). */
.dart-fact-grid {
    display: flex;
    flex-wrap: wrap;
    margin-top: 0;
    border: 1px solid var(--dart-report-line);
    border-radius: var(--dart-radius-card);
    overflow: hidden;
}

.dart-fact-grid > div {
    flex: 1 1 auto;
    max-width: 100%;
    padding: 5px 10px 6px;
    border-right: 1px solid var(--dart-report-line);
    border-bottom: 1px solid var(--dart-report-line);
    margin: 0 -1px -1px 0;
}

.dart-fact-grid dt {
    font-size: var(--dart-font-size-xs);
    font-weight: 400;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--dart-text-muted);
}

.dart-fact-grid dd {
    margin: 0;
    font-weight: 700;
}

/* No wrap inside a cell where there is room; on a phone a long value may still wrap rather than overflow. */
@media (min-width: 576px) {
    .dart-fact-grid dd {
        white-space: nowrap;
    }

    /* A sentence in place of a value, such as the missing zone's, wraps in its cell. */
    .dart-fact-grid dd .text-danger {
        white-space: normal;
    }
}

.dart-fact-sub {
    font-weight: 400;
    color: var(--dart-text-muted);
}