/* SkedFlex company overrides for Tabler. Version 5.
   Copy this file into each app unchanged, and raise the version in this comment and in
   --skedflex-overrides-version below with every change, so any app's copy can be dated.
   Styles for one app's own pages go in that app's stylesheet, loaded after this one. */

:root { --skedflex-overrides-version: 5; }

/* ---------------------------------------------------------------------------------------------
   The SkedFlex palette and type, in both themes. Tabler's own variables carry the company colours
   and font, so every Tabler component takes them up as it is; the --skedflex-* tokens are the
   rest of the palette, for what an app draws itself. An app's stylesheet names these and never
   writes a colour of its own. The values are the ones SkedFlex apps used before Tabler, except
   where text sits on them: the blue of links, active tabs and buttons, and red text, are a shade
   deeper (lighter in dark mode), so all text meets WCAG AA in light and AAA in dark. The bright
   SkedFlex blue #298dff stays on the navy top bar, where only the brand's dot uses it.
   --------------------------------------------------------------------------------------------- */

:root,
[data-bs-theme=light] {
  --tblr-font-sans-serif: 'Segoe UI', system-ui, -apple-system, sans-serif;

  /* #1a6bc9: 5.3:1 with white, and at least 4.6:1 as text on every pale fill below. */
  --tblr-primary: #1a6bc9;
  --tblr-primary-rgb: 26, 107, 201;
  --tblr-primary-darken: #1559a8;
  --tblr-primary-lt: #e9f3ff;
  --tblr-primary-lt-rgb: 233, 243, 255;
  --tblr-primary-fg: #ffffff;
  --tblr-blue: #1a6bc9;
  --tblr-blue-rgb: 26, 107, 201;
  --tblr-blue-lt: #e9f3ff;
  --tblr-link-color: #1a6bc9;
  --tblr-link-color-rgb: 26, 107, 201;
  --tblr-link-hover-color: #1559a8;
  --tblr-link-hover-color-rgb: 21, 89, 168;

  --tblr-body-bg: #f3f6fa;
  --tblr-body-bg-rgb: 243, 246, 250;
  --tblr-bg-surface: #ffffff;
  --tblr-bg-surface-secondary: #fafcff;
  --tblr-bg-surface-tertiary: #eef4fb;
  --tblr-bg-forms: #ffffff;
  --tblr-border-color: #dbe4ef;
  --tblr-border-color-translucent: #dbe4ef;
  --tblr-hover-bg: #f4f9ff;
  --tblr-active-bg: #e9f3ff;

  --tblr-body-color: #10171f;
  --tblr-body-color-rgb: 16, 23, 31;
  --tblr-emphasis-color: #0a3973;
  --tblr-emphasis-color-rgb: 10, 57, 115;
  --tblr-heading-color: #0a3973;
  --tblr-secondary: #5b6b7d;
  --tblr-secondary-rgb: 91, 107, 125;
  --tblr-muted: #5b6b7d;

  --tblr-red: #d64545;
  --tblr-red-rgb: 214, 69, 69;
  --tblr-red-lt: #fdecec;
  --tblr-danger: #b3261e;           /* danger is text and outlines: the deeper red, 6.5:1 */
  --tblr-danger-rgb: 179, 38, 30;
  --tblr-orange: #e8912d;
  --tblr-orange-rgb: 232, 145, 45;
  --tblr-orange-lt: #fdf1e3;
  --tblr-warning: #e8912d;
  --tblr-warning-rgb: 232, 145, 45;
  --tblr-yellow: #e5c445;
  --tblr-yellow-rgb: 229, 196, 69;
  --tblr-yellow-lt: #fdf6e3;
  --tblr-green: #2e9e6b;
  --tblr-green-rgb: 46, 158, 107;
  --tblr-green-lt: #e6f4ec;
  --tblr-success: #2e9e6b;
  --tblr-success-rgb: 46, 158, 107;
  --tblr-shadow-card: 0 1px 3px rgba(10, 57, 115, .08), 0 4px 14px rgba(10, 57, 115, .06);
  --tblr-backdrop-bg: #0a3973;
  --tblr-backdrop-opacity: .45;

  --skedflex-navy-bg: #0a3973;      /* navy as a background: the top bar, the toast */
  --skedflex-head-bg: #eef4fb;      /* table header cells, report band heads */
  --skedflex-row-hover: #f4f9ff;
  --skedflex-strip-bg: #fafcff;     /* a detail card's header strip and tab row */
  --skedflex-invalid-bg: #fff7f7;
  --skedflex-red-soft: #fdecec;     /* each status: a pale fill, the ink on it, its edge, a strong fill */
  --skedflex-red-ink: #b3261e;
  --skedflex-red-line: #f0c4c4;
  --skedflex-red-fill: #b3261e;
  --skedflex-orange-soft: #fdf1e3;
  --skedflex-orange-ink: #8a4b12;
  --skedflex-orange-line: #eccfae;
  --skedflex-orange-fill: #e8912d;
  --skedflex-yellow-soft: #fdf6e3;
  --skedflex-yellow-ink: #7a6410;
  --skedflex-yellow-line: #eadfae;
  --skedflex-yellow-fill: #e5c445;
  --skedflex-on-yellow: #5a4d00;
  --skedflex-green-soft: #e6f4ec;
  --skedflex-green-ink: #1c7a4a;
  --skedflex-row-yellow: #fdf9df;
  --skedflex-field-bg: #ffffff;
  --skedflex-disabled-bg: #f4f7fb;
  --skedflex-pop-bg: #ffffff;
  --skedflex-dim-bg: #edf1f6;
  --skedflex-dim-row: #f6f8fb;
  --skedflex-logo-bg: #ffffff;      /* logos are drawn for a white page */
  --skedflex-blue-line: #c4dfff;    /* the edge of anything on the pale blue */
  --skedflex-blue-soft-hover: #d9ebff;
  --skedflex-hint-bg: #dfe8f3;
  --skedflex-scroll-thumb: #b8c6d6;
  --skedflex-placeholder: #76838f;
  --skedflex-on-accent: #ffffff;    /* text on navy, the selected blue or a strong status fill */
  --skedflex-on-blue: #ffffff;      /* text on the plain SkedFlex blue, which is pale in dark mode */
  --skedflex-primary-disabled: #a4c9f2;
  --skedflex-action: #1a6bc9;       /* a primary button: a fill that carries white text */
  --skedflex-action-hover: #1559a8;
  --skedflex-selected-bg: #1a6bc9;  /* the chosen row of a list */
  --skedflex-selected-sub: #e9f3ff;
  --skedflex-focus-soft: rgba(41, 141, 255, .35);
  --skedflex-shadow-pop: 0 8px 24px rgba(10, 57, 115, .16);
  --skedflex-shadow-drawer: -6px 0 24px rgba(10, 57, 115, .2);
  --skedflex-shadow-lift: 0 20px 60px rgba(0, 0, 0, .35);
  --skedflex-login-from: #0a3973;
  --skedflex-login-to: #0d4c9b;
  --skedflex-toast-bg: #0a3973;
  --skedflex-toast-line: #0a3973;
}

[data-bs-theme=dark] {
  /* As text, the light blue (7.3:1 or more on every dark fill); buttons take --skedflex-action. */
  --tblr-primary: #7cbaff;
  --tblr-primary-rgb: 124, 186, 255;
  --tblr-primary-darken: #9ccbff;
  --tblr-primary-lt: #16283d;
  --tblr-primary-lt-rgb: 22, 40, 61;
  --tblr-primary-fg: #06101b;
  --tblr-blue: #7cbaff;
  --tblr-blue-rgb: 124, 186, 255;
  --tblr-blue-lt: #16283d;
  --tblr-link-color: #7cbaff;
  --tblr-link-color-rgb: 124, 186, 255;
  --tblr-link-hover-color: #9ccbff;
  --tblr-link-hover-color-rgb: 156, 203, 255;

  --tblr-body-bg: #0b1520;
  --tblr-body-bg-rgb: 11, 21, 32;
  --tblr-bg-surface: #111d2b;
  --tblr-bg-surface-secondary: #0f1b28;
  --tblr-bg-surface-tertiary: #16283d;
  --tblr-bg-forms: #0d1a27;
  --tblr-border-color: #4a6d96;     /* 3:1 against a card, so edges stay visible */
  --tblr-border-color-translucent: #4a6d96;
  --tblr-hover-bg: #16232f;
  --tblr-active-bg: #16283d;

  --tblr-body-color: #e8eef6;
  --tblr-body-color-rgb: 232, 238, 246;
  --tblr-emphasis-color: #dbe9fb;
  --tblr-emphasis-color-rgb: 219, 233, 251;
  --tblr-heading-color: #eaf2fc;
  --tblr-secondary: #a3b7cf;
  /* Text on that grey as a fill (a hovered or pressed ghost or secondary button): 8.8:1. */
  --tblr-secondary-fg: #0a1725;
  --tblr-secondary-rgb: 163, 183, 207;
  --tblr-muted: #a3b7cf;

  --tblr-red: #ff8f8f;
  --tblr-red-rgb: 255, 143, 143;
  --tblr-red-lt: #3a1e21;
  --tblr-danger: #ff8f8f;
  --tblr-danger-rgb: 255, 143, 143;
  --tblr-orange: #f0a33f;
  --tblr-orange-rgb: 240, 163, 63;
  --tblr-orange-lt: #3a2c19;
  --tblr-warning: #f0a33f;
  --tblr-warning-rgb: 240, 163, 63;
  --tblr-yellow: #e8cf5a;
  --tblr-yellow-rgb: 232, 207, 90;
  --tblr-yellow-lt: #33290f;
  --tblr-green: #4cc38a;
  --tblr-green-rgb: 76, 195, 138;
  --tblr-green-lt: #17342a;
  --tblr-success: #4cc38a;
  --tblr-success-rgb: 76, 195, 138;
  --tblr-shadow-card: 0 1px 3px rgba(0, 0, 0, .5), 0 6px 18px rgba(0, 0, 0, .35);
  --tblr-backdrop-bg: #000000;
  --tblr-backdrop-opacity: .6;

  --skedflex-navy-bg: #0a1725;
  --skedflex-head-bg: #16283d;
  --skedflex-row-hover: #16232f;
  --skedflex-strip-bg: #0f1b28;
  --skedflex-invalid-bg: #3a1e21;
  --skedflex-red-soft: #3a1e21;
  --skedflex-red-ink: #ffb3b3;
  --skedflex-red-line: #5c2b2b;
  --skedflex-red-fill: #7f2226;
  --skedflex-orange-soft: #3a2c19;
  --skedflex-orange-ink: #f4cd8f;
  --skedflex-orange-line: #5c4526;
  --skedflex-orange-fill: #7a4a12;
  --skedflex-yellow-soft: #33290f;
  --skedflex-yellow-ink: #f0dca6;
  --skedflex-yellow-line: #574718;
  --skedflex-yellow-fill: #6b5c12;
  --skedflex-on-yellow: #fff6cf;
  --skedflex-green-soft: #17342a;
  --skedflex-green-ink: #8fe0b8;
  --skedflex-row-yellow: #38351a;
  --skedflex-field-bg: #0d1a27;
  --skedflex-disabled-bg: #16202b;
  --skedflex-pop-bg: #16283d;
  --skedflex-dim-bg: #16232f;
  --skedflex-dim-row: #0e1926;
  --skedflex-logo-bg: #f4f7fb;
  --skedflex-blue-line: #27425f;
  --skedflex-blue-soft-hover: #1b3350;
  --skedflex-hint-bg: #24384f;
  --skedflex-scroll-thumb: #40536b;
  --skedflex-placeholder: #93a9c2;
  --skedflex-on-accent: #ffffff;
  --skedflex-on-blue: #06101b;
  --skedflex-primary-disabled: #2a4767;
  --skedflex-action: #1d4f86;       /* 8.3:1 with white */
  --skedflex-action-hover: #173f6b;
  --skedflex-selected-bg: #1d4f86;
  --skedflex-selected-sub: #e9f3ff;
  --skedflex-focus-soft: rgba(63, 156, 255, .45);
  --skedflex-shadow-pop: 0 8px 24px rgba(0, 0, 0, .5);
  --skedflex-shadow-drawer: -6px 0 24px rgba(0, 0, 0, .5);
  --skedflex-shadow-lift: 0 20px 60px rgba(0, 0, 0, .35);
  --skedflex-login-from: #08131f;
  --skedflex-login-to: #12293f;
  --skedflex-toast-bg: #16283d;
  --skedflex-toast-line: #4a6d96;
}

/* The top bar: SkedFlex navy in both themes. It is Tabler's dark navbar (data-bs-theme="dark" on
   the header), so what sits in it is light on dark; the links are pale blue, white under the
   pointer, and the current page is a filled blue button. Its colours follow the page's theme, not
   the header's own. (.navbar.top-header outranks Tabler's own dark-navbar colours.) The bright
   SkedFlex blue is kept here for the brand's dot only, which is decoration. */
.navbar.top-header {
  --tblr-navbar-bg: #0a3973;
  --tblr-navbar-border-color: #0a3973;
  --tblr-navbar-color: #c3d6ee;
  --tblr-navbar-hover-color: #ffffff;
  --tblr-navbar-active-color: #ffffff;
  --tblr-navbar-active-border-color: transparent;
  --tblr-navbar-brand-color: #ffffff;
  --tblr-navbar-brand-hover-color: #ffffff;
  --tblr-navbar-brand-font-size: .9375rem;
  --tblr-primary: #298dff;
  --skedflex-bar-tint: rgba(255, 255, 255, .12);
  --skedflex-bar-tint-strong: rgba(255, 255, 255, .2);
  --skedflex-bar-line: rgba(255, 255, 255, .28);
  --skedflex-bar-placeholder: #a9c2e0;
  --skedflex-nav-active: #1a6bc9;
}
:root[data-bs-theme=dark] .navbar.top-header {
  --tblr-navbar-bg: #0a1725;
  --tblr-navbar-border-color: #4a6d96;
  --tblr-primary: #3f9cff;
  --skedflex-nav-active: #1d4f86;
}
.top-header .navbar-nav { --tblr-nav-link-font-size: .84375rem; }
.top-header .nav-link:hover { background: rgba(255, 255, 255, .1); border-radius: 6px; }
.top-header .nav-item.active > .nav-link { background: var(--skedflex-nav-active); border-radius: 6px; }
.top-header .brand-version { color: var(--skedflex-bar-placeholder); }
/* The bar's search keeps a roomier 32px, as tall as the bar's other controls, though it is a
   small input: the one exception to the small size's density. */
.top-header .form-control {
  background: var(--skedflex-bar-tint); border-color: var(--skedflex-bar-line); color: #ffffff;
  --tblr-control-padding-y: .4375rem; --tblr-control-padding-x: .6rem;
}
.top-header .form-control::placeholder { color: var(--skedflex-bar-placeholder); }
.top-header .form-control:focus { background: var(--skedflex-bar-tint-strong); border-color: var(--tblr-primary); }
.top-header .avatar { --tblr-avatar-bg: var(--skedflex-bar-tint); color: #c3d6ee; }

/* Tabler's pieces in the SkedFlex colours. */
.page-title { color: var(--tblr-heading-color); }
/* Tabler's grey for code falls short of AAA on its tint in dark mode; code is ordinary text. */
code { color: var(--tblr-body-color); }
.nav-tabs { --tblr-nav-tabs-link-active-color: var(--tblr-primary); }
.table { font-size: .8125rem; --tblr-table-hover-bg: var(--skedflex-row-hover); }
.table thead th { background: var(--skedflex-head-bg); color: var(--tblr-emphasis-color);
  border-bottom: 2px solid var(--tblr-border-color); }
.form-label { font-size: .75rem; font-weight: 600; color: var(--tblr-secondary); }
.form-control::placeholder { color: var(--skedflex-placeholder); }
.form-control.is-invalid, .form-select.is-invalid { background-color: var(--skedflex-invalid-bg); }
/* The chosen button of a toggle group (a checked .btn-check) is drawn in the next shade of blue,
   which keeps AAA on the pressed button's tint in dark mode. Only that button: Tabler's variants
   (ghost, outline, success and the rest) keep the pressed colors drawn for their own background. */
.btn-check + .btn { --tblr-btn-active-color: var(--tblr-primary-darken); }
.btn-primary {
  --tblr-btn-bg: var(--skedflex-action); --tblr-btn-border-color: var(--skedflex-action);
  --tblr-btn-color: #ffffff; --tblr-btn-hover-color: #ffffff; --tblr-btn-active-color: #ffffff;
  --tblr-btn-hover-bg: var(--skedflex-action-hover); --tblr-btn-hover-border-color: var(--skedflex-action-hover);
  --tblr-btn-active-bg: var(--skedflex-action-hover); --tblr-btn-active-border-color: var(--skedflex-action-hover);
  --tblr-btn-disabled-bg: var(--skedflex-primary-disabled);
  --tblr-btn-disabled-border-color: var(--skedflex-primary-disabled);
}
/* A count on a strong red, such as the waiting access requests: the deep red carries white text. */
.badge.bg-red { background-color: var(--skedflex-red-fill) !important; color: #ffffff !important; }
.btn-outline-danger { --tblr-btn-bg: var(--skedflex-red-soft); --tblr-btn-color: var(--skedflex-red-ink);
  --tblr-btn-border-color: var(--skedflex-red-line); }
.badge.bg-blue-lt { color: var(--tblr-emphasis-color) !important; }
.badge.bg-secondary-lt { color: var(--tblr-emphasis-color) !important; }
.badge.bg-red-lt { color: var(--skedflex-red-ink) !important; }
.badge.bg-orange-lt { color: var(--skedflex-orange-ink) !important; }
.badge.bg-green-lt { color: var(--skedflex-green-ink) !important; }
.alert-info { --tblr-alert-color: var(--tblr-emphasis-color); --tblr-alert-bg: var(--tblr-primary-lt);
  --tblr-alert-border-color: var(--skedflex-blue-line); }
.alert-warning { --tblr-alert-color: var(--skedflex-orange-ink); --tblr-alert-bg: var(--skedflex-orange-soft);
  --tblr-alert-border-color: var(--skedflex-orange-line); }
.alert-yellow { --tblr-alert-color: var(--skedflex-yellow-ink); --tblr-alert-bg: var(--skedflex-yellow-soft);
  --tblr-alert-border-color: var(--skedflex-yellow-line); }
.alert-danger { --tblr-alert-color: var(--skedflex-red-ink); --tblr-alert-bg: var(--skedflex-red-soft);
  --tblr-alert-border-color: var(--skedflex-red-line); }
.alert-info, .alert-warning, .alert-yellow, .alert-danger { background-color: var(--tblr-alert-bg); }
.toast.text-bg-dark { background: var(--skedflex-toast-bg) !important; color: #ffffff !important;
  border: 1px solid var(--skedflex-toast-line) !important; }
.toast.text-bg-danger { background: var(--skedflex-red-fill) !important; color: #ffffff !important; }

/* Shell: the brand and account menu in the top bar. The brand keeps to the left, beside the menu
   button on a narrow screen, instead of floating to the middle of the bar. */
.navbar-toggler { margin-right: .5rem; }
.brand { font-weight: 600; gap: .6rem; margin-right: auto; }
.brand-logo { height: 1.75rem; width: auto; }
.brand-dot { color: var(--tblr-primary); margin: 0 .4rem; }
.brand-version { color: var(--tblr-secondary); font-size: .75rem; font-weight: 400; }
.account-menu { min-width: 14rem; max-width: min(18rem, calc(100vw - 2rem)); }

/* The navigation links sit in the top bar when they fit, beside the full name or the short one,
   and otherwise on the row under it (nav-fit.js sets .nav-in-bar and .name-short on the bar's
   header). On a phone the name ends in an ellipsis rather than crowding the menu. */
.brand { min-width: 0; flex-shrink: 1; }
.brand-full, .brand-short { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brand-name { white-space: nowrap; }
.brand-short, .name-short .brand-full { display: none; }
.name-short .brand-short { display: block; }
@media (min-width: 768px) {
  .top-bar > .brand { flex-shrink: 0; }
}
.top-bar { position: relative; }
.top-nav { display: none; flex: none; }
.nav-in-bar .top-nav { display: block; }
.nav-in-bar .navbar-toggler, .nav-in-bar ~ .nav-row { display: none; }
/* On the row under the bar the links are words, close together, each name kept whole. They stay
   on one line, with those that do not fit in the More menu (nav-fit.js); until the script has
   fitted them the line is clipped, and without the script they wrap onto more lines. The row never
   scrolls sideways. On a phone the row is a list with icons behind the menu button. */
.nav-row .navbar { --tblr-navbar-nav-link-padding-x: .5rem; }
.nav-row .navbar, .nav-row .container-xl, .nav-row nav { min-width: 0; }
.nav-row .navbar-nav { flex-wrap: wrap; }
.nav-fit .nav-row .navbar-nav { flex-wrap: nowrap; }
.nav-fit .nav-row .navbar-nav:not(.nav-fitted) { overflow: hidden; }
.nav-row .nav-link, .nav-row .nav-link-title { white-space: nowrap; }
@media (min-width: 768px) {
  .nav-row .nav-link-icon { display: none; }
}
/* The copies nav-fit.js measures, off the left edge, where they never make the page scroll. */
.nav-measure { position: absolute; top: 0; right: 100%; width: max-content; display: flex;
  visibility: hidden; pointer-events: none; }
.nav-measure > * { flex: none; }

/* Denser than Tabler's defaults throughout: these are working screens full of rows and controls. */
.page-header { margin-top: 1rem; }
.page-body { margin-top: 1rem; margin-bottom: 1rem; }
.card {
  --tblr-card-spacer-y: .85rem;
  --tblr-card-spacer-x: 1rem;
  --tblr-card-cap-padding-y: .6rem;
  --tblr-card-cap-padding-x: 1rem;
}
.table > :not(caption) > * > * { padding: .35rem .6rem; }
.card-table > :not(caption) > * > *:first-child { padding-left: var(--tblr-card-spacer-x); }
.card-table > :not(caption) > * > *:last-child { padding-right: var(--tblr-card-spacer-x); }
.btn { --tblr-btn-padding-y: .3rem; --tblr-btn-padding-x: .75rem; }
.btn-sm, .btn-group-sm > .btn { --tblr-btn-padding-y: .1rem; --tblr-btn-padding-x: .45rem; }
/* Tabler sizes a small group's buttons, and every menu's items, with its own looser padding, a
   menu's text a size above a table's and a checkbox in a menu item larger than its text. */
.btn-group-sm > .btn { min-height: 0; }
.dropdown-menu { --tblr-dropdown-item-padding-y: .25rem; --tblr-dropdown-font-size: .8125rem; }
/* A figure's label (Tabler's datagrid) in normal case: Tabler sets it in small capitals, which read
   as shouting once a label runs past a word. */
.datagrid-title { text-transform: none; letter-spacing: normal; font-size: .75rem; }
.dropdown-item .form-check-input[type=checkbox] { width: .875rem; height: .875rem; flex-shrink: 0; border-radius: 3px; }
/* A select tinted with one of Tabler's see-through colors (.bg-green-lt and the like) has its open list
   drawn by the browser over white, so in dark mode it showed pale text on near-white. Its options
   take the plain form colors. */
.form-select option { background-color: var(--tblr-bg-forms); color: var(--tblr-body-color); }
/* Tabler's underlined tabs put the underline exactly under the text; give each tab some room on
   either side so the chosen one reads as a tab, and close the gap between tabs by as much. */
.nav-bordered .nav-link { padding-inline: .625rem; }
.nav-bordered .nav-item + .nav-item { margin-inline-start: .25rem; }
:root {
  /* Inputs and selects take their size from Tabler's variables: the normal size as dense as a
     button, and the small one (.form-control-sm, .form-select-sm) as dense as .btn-sm. Setting
     padding on .form-control itself would also override the small size and a select's room for
     its arrow, which Tabler works out from these. */
  --tblr-btn-input-padding-y: .3rem; --tblr-btn-input-padding-x: .6rem;
  --tblr-btn-input-sm-padding-y: .1rem; --tblr-btn-input-sm-padding-x: .45rem;
}

/* A table wider than the screen scrolls inside its box; absolutely positioned cells such as
   visually-hidden headers would otherwise escape it and widen the page. */
.table-responsive { position: relative; }

/* Fields jQuery Validate rejects get the invalid border Tabler gives .is-invalid. */
.input-validation-error { border-color: var(--tblr-form-invalid-border-color); }

/* Page pieces (components.js: listRow, factStrip, boxHeader), so a row of mixed content stays
   readable at any width instead of a badge, a sentence, figures and an action sharing one line. */
.list-row { display: flex; align-items: flex-start; gap: .75rem; width: 100%; text-align: left;
  background: none; border: none; border-bottom: 1px solid var(--tblr-border-color); padding: .5625rem .25rem;
  font-size: .8125rem; color: var(--tblr-body-color); }
.list-row:last-child { border-bottom: none; }
a.list-row, button.list-row { cursor: pointer; text-decoration: none; }
a.list-row:hover, button.list-row:hover { background: var(--tblr-primary-lt); }
/* A whole list item that is one link (Bootstrap's list-group-item-action): Tabler underlines a link on hover,
   which underlines every line in the item; the item's background already shows the hover. */
.list-group-item-action:hover, .list-group-item-action:focus { text-decoration: none; }
.list-row-lead { flex: none; min-width: 5.5rem; font-weight: 700; color: var(--tblr-emphasis-color);
  font-variant-numeric: tabular-nums; }
.list-row-text { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.list-row-main, .list-row-detail { display: block; }
.list-row-detail { margin-top: 2px; font-size: .75rem; color: var(--tblr-secondary); }
.list-row-detail .badge { vertical-align: baseline; }
.list-row-aside { flex: none; margin-left: auto; font-weight: 700; color: var(--tblr-emphasis-color);
  white-space: nowrap; font-variant-numeric: tabular-nums; }

.fact-strip { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .625rem 2rem; }
.fact { min-width: 0; }
.fact .datagrid-title { margin-bottom: 2px; color: var(--tblr-secondary); }
.fact .datagrid-content { font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.fact-actions { margin-left: auto; }
.fact-box { border: 1px solid var(--tblr-border-color); border-radius: 8px; padding: .625rem .75rem;
  margin-bottom: .75rem; }

.box-header { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.box-title { margin: 0; font-size: .9375rem; color: var(--tblr-emphasis-color); }
.box-controls { display: flex; gap: 8px; margin-left: auto; }
.box-controls .btn { gap: 4px; }
.box-controls .when-open, .box-controls .when-closed { display: inline-flex; align-items: center; gap: 4px; }
.box-controls .btn.collapsed .when-open, .box-controls .btn:not(.collapsed) .when-closed { display: none; }
.box-summary { flex-basis: 100%; margin-top: 8px; }
