/* TAT Accounting — visual layer on top of Bootstrap 5.
   Brand (theamericantruck.com): navy #2b2d42, signal red #ef233c (hover #d90429),
   mist #edf2f4, ink #0a0a0f. Type: DM Sans everywhere (one face, no serif titles)
   and headline figures. Look: classic, quiet, editorial — white cards on a warm
   grey canvas, hairline borders, one red accent, generous whitespace. */

:root {
  --tat-navy: #2b2d42;
  --tat-navy-deep: #1f2133;
  --tat-navy-soft: #3d4060;
  --tat-red: #ef233c;
  --tat-red-deep: #d90429;
  --tat-red-tint: #fdecef;
  --tat-mist: #edf2f4;
  /* Pie / doughnut slices (owner, 2026-09-21: "this data would be in pie chart"): one fixed categorical order,
     never cycled, validated for colour-blind separation on both surfaces; --viz-other is the neutral tail.
     Chart colours (owner, 2026-11-14: "change the color scheme of whole Haulmark's graphs and charts ... more professional
     corporate like colors"): the palette is the one called "Slate & Steel". The preview picker and the three other options were removed the same day
     (owner: "remove the color pallets button"). Series, "other", good / warn / bad / neutral and the 7-step ramp change with the theme (the dark values are in the
     dark block below). Every series set passed the dataviz validator on white and on #1e2030. The Pricing Desk has no palette of its own: it reads --tat-* and these. */
  --viz-s1: #255395; --viz-s2: #c08600; --viz-s3: #008d85; --viz-s4: #a34c1c; --viz-s5: #544a99; --viz-s6: #4a7025; --viz-s7: #4393cf;
  --viz-s8: #ae4951; --viz-other: #8d9aaa; --viz-good: #2f8e60; --viz-warn: #bd8c1d; --viz-bad: #901d27; --viz-neutral: #7e8792;
  --viz-seq-1: #93b4dd; --viz-seq-2: #779ed0; --viz-seq-3: #5c88c1; --viz-seq-4: #4273b0; --viz-seq-5: #2b5e9d; --viz-seq-6: #164a87;
  --viz-seq-7: #06376c;
  /* A person's colour for their initials (owner, 2026-09-30): the same eight for everyone, picked from their id,
     each at least 4.5:1 with white; the same in both themes (the initials are white on it). */
  --hc-av1: #1d4ed8; --hc-av2: #b4531b; --hc-av3: #0f7b5f; --hc-av4: #a16207;
  --hc-av5: #7c3aed; --hc-av6: #be185d; --hc-av7: #0e7490; --hc-av8: #4d5a70;
  --tat-ink: #0a0a0f;
  --tat-ink-2: #2f3140;
  --tat-muted: #6b7084;
  --tat-line: #dfe3ea;
  --tat-line-soft: #eceff4;
  --tat-canvas: #f4f5f8;
  --tat-white: #ffffff;
  --tat-white-2: #f7f8fb;      /* a raised surface: panel heads, table heads, footers */
  --tat-tint: #eef3fc;         /* a soft highlight: unread, picked, today */
  --tat-green: #0f7b5f;
  /* Haulmark's tones as they read on its own navy (the sidebar, the Pricing Desk deck): the values the dark theme gives --tat-blue-ink / --tat-green / --tat-amber / --tat-red-ink
     (tests/test_viz_palettes.py keeps them equal). */
  --tat-on-navy-blue: #8fb4f0; --tat-on-navy-green: #4fc79e; --tat-on-navy-amber: #e9a94a; --tat-on-navy-red: #ff8a96;
  /* Credit standings (owner, 2026-10-05): OK / Near / Over, checked with the dataviz validator (CVD, lightness band,
     contrast) in both themes; always beside their words, never colour alone. */
  --cr-ok: var(--viz-good);
  --cr-near: var(--viz-warn);
  --cr-over: var(--viz-bad);
  --cr-none: var(--viz-neutral);
  --cr-track: #e8ebf1;
  --tat-green-tint: #e2f4ec;
  --tat-amber: #b25e09;
  --tat-amber-tint: #fdf1dc;
  --tat-violet: #7c3aed;       /* the Activity card's document dots */
  --tat-blue-tint: #e6eefb;
  --tat-blue-ink: #1d4c9e;
  --tat-red-ink: #b42318;      /* a loss, a cancelled line: red words on a card */
  --tat-viewer: #3a3c4e;       /* behind a previewed document or photo */
  /* Layering, low to high. Anything that overlaps something else takes a name here rather than a
     number nobody can place: a pinned cell sits over its row, its header over both, the top bar over
     the page, the sidebar over the top bar. Bootstrap owns 1040 and up (modals, toasts). */
  --z-pinned-cell: 2;
  --z-pinned-head: 3;
  --z-topbar: 15;
  --z-sidebar: 30;
  /* The premium finish (owner, 2026-10-02: "more premium look as you've done with onboarding portal"): the portal's
     rounder corners, a soft two-layer elevation, one field border and one focus ring for every box. */
  --tat-radius: 1.125rem;
  --tat-radius-sm: .75rem;
  --tat-shadow: 0 0 0 1px rgba(31, 33, 51, .025), 0 1px 2px rgba(31, 33, 51, .05), 0 10px 24px -14px rgba(31, 33, 51, .20),
                0 30px 60px -36px rgba(31, 33, 51, .30);
  --tat-shadow-hover: 0 2px 4px rgba(31, 33, 51, .06), 0 28px 56px -28px rgba(31, 33, 51, .50);
  --tat-shadow-sm: 0 1px 2px rgba(31, 33, 51, .06), 0 4px 12px -8px rgba(31, 33, 51, .22);
  --tat-shadow-pop: 0 1px 2px rgba(31, 33, 51, .06), 0 22px 48px -16px rgba(31, 33, 51, .34);
  --tat-field: #cfd4de;        /* a box's border */
  --tat-field-hover: #b6bdcb;
  --tat-hover: #f6f8fc;        /* a table row under the pointer */
  --tat-ring: rgba(43, 45, 66, .12);
  --f-sans: "DM Sans", "Inter", -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --f-display: var(--f-sans);   /* one face everywhere: titles are the sans, bold */

  --bs-body-font-family: var(--f-sans);
  --bs-body-font-size: .875rem;   /* 14px, the reference body size (owner, 2026-10-27; was .92rem = 14.72px) */
  --bs-body-color: var(--tat-ink-2);
  --bs-body-bg: var(--tat-canvas);
  --bs-border-color: var(--tat-line);
  --bs-link-color: var(--tat-blue-ink);
  --bs-link-hover-color: var(--tat-red-deep);
  --bs-primary: var(--tat-red);
  --bs-primary-rgb: 239, 35, 60;
  --bs-secondary-color: var(--tat-muted);
  --bs-heading-color: var(--tat-ink);
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--f-sans);
  background: var(--tat-canvas);
  color: var(--tat-ink-2);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main.container-fluid { flex: 1 0 auto; max-width: 1480px; }
/* The loads list uses the whole screen (its 13 columns): every column stays on it, nothing scrolls sideways. AR / AP keep the normal width. */
main.container-fluid.wide { max-width: 1900px; }
.filter-bar { display: flex; flex-wrap: wrap; gap: .5rem .75rem; align-items: flex-end; }
.filter-bar .f-search { flex: 2 1 14rem; }
.filter-bar .f-select { flex: 1 1 9rem; }
.filter-bar .f-short { flex: 0 1 7.5rem; }
.filter-bar .f-date { flex: 0 0 10.5rem; }
.filter-bar .form-label { white-space: nowrap; }
a { text-decoration: none; }
a:hover { text-decoration: none; }
.btn-link, .btn-link:hover, .btn-link:focus { text-decoration: none; }
.btn:hover, .nav-link:hover, .dropdown-item:hover, .page-link:hover, .navbar-brand:hover { text-decoration: none; }

/* ---- type ---- */
h1, h2, h3, .h1, .h2, .h3 { font-family: var(--f-sans); font-weight: 700; letter-spacing: -.02em; color: var(--tat-ink); }
h4, h5, h6, .h4, .h5, .h6 { font-weight: 600; letter-spacing: -.01em; color: var(--tat-ink); }
.h3 { font-size: 1.65rem; }
.page-title { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.page-title .badge { font-family: var(--f-sans); font-size: .68rem; }
.page-title .fs-6, .page-title .fw-normal { font-family: var(--f-sans); }
.section-title, .stat-label {
  font-size: .7rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--tat-muted);
}
.section-title { margin-bottom: .75rem; padding-bottom: .5rem; border-bottom: 1px solid var(--tat-line-soft); }
.text-secondary { color: var(--tat-muted) !important; }
.small, small { font-size: .82em; }
.text-success { color: var(--tat-green) !important; }
.text-danger { color: var(--tat-red-deep) !important; }
.text-warning-emphasis { color: var(--tat-amber) !important; }
.text-primary { color: var(--tat-red) !important; }

/* ---- the shell (owner, 2026-09-19): the menu down a dark sidebar; no top bar since 2026-10-23 ---- */
.app-shell { display: flex; min-height: 100vh; flex: 1 0 auto; }
/* Icons only until the pointer is over it, then the whole bar (owner, 2026-09-19); it slides over the page, the
   page itself keeps the narrow gutter. */
:root { --side-w: 4.6rem; --side-w-open: 13rem; }
.app-side {
  position: fixed; left: 0; top: 0; bottom: 0; width: var(--side-w); z-index: 30; overflow: hidden;
  background: var(--tat-navy); color: #fff; padding: .85rem .7rem 1rem; display: flex; flex-direction: column;
  border-right: 1px solid var(--tat-navy-deep); transition: width .18s ease, box-shadow .18s ease;
}
.app-side:hover, .app-side:focus-within { width: var(--side-w-open); overflow-y: auto; box-shadow: 12px 0 32px -16px rgba(31, 33, 51, .5); }
/* The Haulmark logo alone at the top (owner, 2026-09-19: no "Haulmark" word), on the company navy: the wheel when
   closed, the whole mark when open. */
.side-brand { display: block; padding: .3rem .35rem .85rem; }
.side-brand img { display: block; height: 1.85rem; width: 1.85rem; object-fit: cover; object-position: left center; transition: width .18s ease; }
.app-side:hover .side-brand img, .app-side:focus-within .side-brand img { width: 8rem; height: auto; object-fit: contain; }
.side-link > span { white-space: nowrap; opacity: 0; transition: opacity .12s; }
.app-side:hover .side-link > span, .app-side:focus-within .side-link > span { opacity: 1; }
.side-link .badge { opacity: 0; }
.app-side:hover .side-link .badge, .app-side:focus-within .side-link .badge { opacity: 1; }
.side-caret { opacity: 0; }
.app-side:hover .side-caret, .app-side:focus-within .side-caret { opacity: 1; }
.app-side:not(:hover):not(:focus-within) .side-sub { display: none; }
.side-nav { display: flex; flex-direction: column; gap: .12rem; }
.side-link {
  display: flex; align-items: center; gap: .8rem; color: rgba(255, 255, 255, .82); padding: .6rem .8rem;
  border-radius: .55rem; font-weight: 500; font-size: .95rem; line-height: 1.2; transition: background .12s, color .12s;
}
/* Icons with depth (owner, 2026-09-20): each sidebar icon sits on a small glass tile — a light edge on top, a
   shadow below, the glyph lit from above — the open page's tile in the signal red. */
.side-link > i { font-size: 1.05rem; width: 2.1rem; height: 2.1rem; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
  border-radius: .6rem; color: rgba(255, 255, 255, .92); margin-left: -.2rem;
  background: linear-gradient(160deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, .05) 55%, rgba(0, 0, 0, .12));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), inset 0 -1px 0 rgba(0, 0, 0, .25), 0 3px 6px -2px rgba(0, 0, 0, .45);
  text-shadow: 0 1px 1px rgba(0, 0, 0, .45), 0 -1px 0 rgba(255, 255, 255, .25); transition: transform .12s, box-shadow .12s; }
.side-link:hover { background: var(--tat-navy-soft); color: #fff; text-decoration: none; }
.side-link:hover > i { color: #fff; transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .32), inset 0 -1px 0 rgba(0, 0, 0, .25), 0 6px 10px -3px rgba(0, 0, 0, .5); }
/* the open page: the company's signal red, as the primary buttons */
.side-link.active { background: rgba(255, 255, 255, .08); color: #fff; box-shadow: none; }
.side-link.active > i { color: #fff; background: linear-gradient(160deg, #ff5a6e, var(--tat-red) 55%, #a50d25);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), inset 0 -1px 0 rgba(0, 0, 0, .3), 0 6px 14px -4px rgba(239, 35, 60, .8); }
.side-link.active:hover { background: rgba(255, 255, 255, .12); }
.side-link.disabled { color: rgba(255, 255, 255, .35); }
.side-link.disabled > i { color: rgba(255, 255, 255, .3); }
.side-group .side-caret { margin-left: auto; font-size: .75rem; transition: transform .15s; }
.side-group[aria-expanded="true"] .side-caret { transform: rotate(180deg); }
.side-sub { display: flex; flex-direction: column; gap: .1rem; margin: .1rem 0 .3rem; }
/* The sidebar is navy in both themes, so its words are a fixed white — never a surface token, which turns dark
   with the theme and left the submenu unreadable (owner, 2026-09-21). */
.side-sub .side-link { padding: .42rem .75rem .42rem 2.55rem; font-size: .88rem; font-weight: 400; color: rgba(255, 255, 255, .74); }
.side-sub .side-link:hover { color: #fff; }
.side-sub .side-link.active { font-weight: 600; box-shadow: none; color: #ff8a97; }
/* a group whose page is open keeps the group line navy-soft, the open item inside it red */
.side-group.active { background: var(--tat-navy-soft); box-shadow: none; }
.side-group.active:hover { background: var(--tat-navy-soft); }
.side-sep { border-top: 1px solid rgba(255, 255, 255, .14); margin: .7rem .4rem; }
/* Section headings in the sidebar (owner, 2026-09-23): small, uppercase, letter-spaced, quiet — the same
   voice as the panel headings elsewhere, but the navy shell keeps its own white, so these are a fixed rgba
   and never a surface token (see the dark-theme rule and test_theme). Not clickable, not focusable. */
.side-section { font-size: .68rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: rgba(255, 255, 255, .42); padding: .85rem .75rem .3rem; white-space: nowrap; overflow: hidden;
  user-select: none; }
.side-nav > .side-section:first-child { padding-top: .1rem; }
/* Closed (icons only): a heading would be a stripe of cut-off letters, so it becomes a hairline instead. */
.app-side:not(:hover):not(:focus-within) .side-section { font-size: 0; letter-spacing: 0; padding: .5rem .75rem;
  border-top: 1px solid rgba(255, 255, 255, .12); margin: .3rem .4rem 0; }
html[data-sidebar="open"] .app-side:not(:hover):not(:focus-within) .side-section { font-size: .68rem;
  letter-spacing: .09em; padding: .85rem .75rem .3rem; border-top: 0; margin: 0; }
/* The count on a link sits where the chevron would be, and fades with the labels when the bar is closed. */
.side-link .side-count { font-weight: 600; }

.app-main { margin-left: var(--side-w); flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
img.avatar { object-fit: cover; }
.avatar { width: 2.1rem; height: 2.1rem; border-radius: 50%; background: var(--tat-navy); color: #fff; flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center; font-size: .78rem; font-weight: 700; letter-spacing: .02em; }
.avatar[data-c] { background: var(--c); }
/* A person's colour behind their initials, wherever they show (base.html, the profile page). */
[data-c="1"] { --c: var(--hc-av1); } [data-c="2"] { --c: var(--hc-av2); } [data-c="3"] { --c: var(--hc-av3); } [data-c="4"] { --c: var(--hc-av4); }
[data-c="5"] { --c: var(--hc-av5); } [data-c="6"] { --c: var(--hc-av6); } [data-c="7"] { --c: var(--hc-av7); } [data-c="8"] { --c: var(--hc-av8); }
/* The bell: its menu is a short list of sentences, the unread ones marked. */
.notif-menu { width: min(24rem, 92vw); padding: 0; }
.notif-menu .notif-item { white-space: normal; border-radius: 0; font-size: .875rem; border-bottom: 1px solid var(--tat-line); }
.notif-menu .notif-item.unread { background: var(--tat-tint); font-weight: 600; }
.notif-menu .notif-item.unread .small { font-weight: 400; }
/* Toasts for a notification that arrives while the page is open (notify.js). */
.notif-toasts { position: fixed; right: 1rem; top: 4.5rem; z-index: 1085; display: flex; flex-direction: column; gap: .5rem; width: min(24rem, 92vw); }
.notif-toast { background: var(--tat-white); border-left: 4px solid var(--tat-red); border-radius: var(--tat-radius-sm); box-shadow: var(--tat-shadow-hover); font-size: .9rem; opacity: 1; transition: opacity .4s, transform .4s; }
.notif-toast .toast-body { padding: .7rem .9rem; }
.notif-toast.fade-out { opacity: 0; transform: translateY(-.25rem); }
.dropdown-menu {
  border: 1px solid var(--tat-line); border-radius: var(--tat-radius-sm); padding: .4rem;
  box-shadow: 0 12px 32px -8px rgba(31, 33, 51, .22);
}
.dropdown-item { font-size: .9rem; border-radius: .4rem; padding: .45rem .75rem; }
.dropdown-item:hover, .dropdown-item:focus { background: var(--tat-mist); color: var(--tat-navy); }
.dropdown-item:active { background: var(--tat-navy); color: #fff; }
.dropdown-divider { border-color: var(--tat-line-soft); }

/* ---- page chrome ---- */
.flash-area { max-width: 960px; }
.alert { border-radius: var(--tat-radius-sm); border: 1px solid transparent; }
.alert-success { --bs-alert-bg: var(--tat-green-tint); --bs-alert-border-color: #bfe6d3; --bs-alert-color: #0b5a45; }
.alert-danger { --bs-alert-bg: var(--tat-red-tint); --bs-alert-border-color: #f5c2ca; --bs-alert-color: #8a1020; }
.alert-warning { --bs-alert-bg: var(--tat-amber-tint); --bs-alert-border-color: #f2d9ad; --bs-alert-color: #7a4204; }
.alert-info { --bs-alert-bg: var(--tat-blue-tint); --bs-alert-border-color: #c6d6f2; --bs-alert-color: #1d4c9e; }
.alert-secondary { --bs-alert-bg: var(--tat-mist); --bs-alert-border-color: var(--tat-line); --bs-alert-color: var(--tat-ink-2); }

/* ---- cards ---- */
.card {
  border: 1px solid var(--tat-line); border-radius: var(--tat-radius); background: var(--tat-white);
  box-shadow: var(--tat-shadow);
}
.card.shadow-sm, .card.shadow, .card.border-0 { box-shadow: var(--tat-shadow) !important; border: 1px solid var(--tat-line) !important; }
.card-header {
  background: var(--tat-white); border-bottom: 1px solid var(--tat-line-soft); font-weight: 600; color: var(--tat-ink);
  border-radius: var(--tat-radius) var(--tat-radius) 0 0 !important; padding: .8rem 1.1rem;
}
.card-header.bg-white { background-color: var(--tat-white) !important; }   /* the colour only: the luxe heads paint their wash on top */
.card-header .badge { vertical-align: middle; }
.card-footer { background: var(--tat-white-2); border-top: 1px solid var(--tat-line-soft); border-radius: 0 0 var(--tat-radius) var(--tat-radius) !important; }
.card-body { padding: 1.1rem 1.2rem; }
.card-body.py-2 { padding-top: .5rem !important; padding-bottom: .5rem !important; }
.card-body.py-3 { padding-top: .85rem !important; padding-bottom: .85rem !important; }
.list-group-flush .list-group-item { border-color: var(--tat-line-soft); }

/* ---- stat tiles ---- */
.card-stat { position: relative; overflow: hidden; transition: box-shadow .15s, transform .15s; }
.card-stat::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--tat-navy); }
.card-stat.stat-accent::before { background: var(--tat-red); }
.card-stat.stat-green::before { background: var(--tat-green); }
.card-stat.stat-amber::before { background: var(--tat-amber); }
.card-stat:hover { box-shadow: var(--tat-shadow-hover); transform: translateY(-1px); }
.card-stat .stat-value {
  font-family: var(--f-sans); font-weight: 700; font-size: 1.85rem; letter-spacing: -.02em; line-height: 1.15; color: var(--tat-ink);
  font-variant-numeric: tabular-nums; margin: .15rem 0 .25rem;
}
.card-stat .stat-value.text-success { color: var(--tat-green) !important; }
.card-stat .stat-value.text-danger { color: var(--tat-red-deep) !important; }
.card-stat .stat-icon {
  position: absolute; right: 1rem; top: 1rem; width: 38px; height: 38px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 1.1rem;
  background: linear-gradient(160deg, #3d6a9c, var(--tat-navy) 60%, #06182b);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), inset 0 -1px 0 rgba(0, 0, 0, .25), 0 4px 10px -3px rgba(11, 42, 74, .6); text-shadow: 0 1px 1px rgba(0, 0, 0, .35);
}
/* The icon sits in the card's top-right corner, so the words beside it stop short of it (owner, 2026-09-21:
   the % badge sat on top of "$2.50 per load moved"). Only a card that carries an icon gives up the space. */
.card-stat:has(.stat-icon) .stat-label,
.card-stat:has(.stat-icon) .stat-value { padding-right: 3.2rem; }
/* A figure's unit rides with it, small and quiet, so the figure itself stays the thing you read. */
.card-stat .stat-unit { font-size: .82rem; font-weight: 600; color: var(--tat-muted); letter-spacing: 0; white-space: nowrap; }
.stat-label .fw-normal { text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--tat-muted); }

/* ---- tables ---- */
.table { --bs-table-color: var(--tat-ink-2); --bs-table-border-color: var(--tat-line-soft); margin-bottom: 0; }
.table > thead, .table thead.table-light {
  --bs-table-bg: var(--tat-white-2); color: var(--tat-muted); font-size: .7rem; text-transform: uppercase; letter-spacing: .08em;
}
.table > thead th { font-weight: 700; border-bottom: 1px solid var(--tat-line); padding: .65rem .85rem; white-space: nowrap; }
.table > thead th a { color: var(--tat-muted); }
.table > thead th a:hover { color: var(--tat-navy); text-decoration: none; }
.table td, .table th { padding: .7rem .85rem; vertical-align: middle; }
.table-sm td, .table-sm th { padding: .45rem .65rem; }
.table-hover > tbody > tr:hover > * { --bs-table-bg-state: var(--tat-hover); }
.table td.num, .table th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table > tbody > tr.table-light > * { --bs-table-bg: var(--tat-white-2); font-weight: 600; }
.table > tbody > tr.table-secondary > * { --bs-table-bg: #f3f4f7; }
.table tbody td a.fw-semibold { color: var(--tat-navy); }
.table tbody td a.fw-semibold:hover { color: var(--tat-red-deep); }
.table-responsive { border-radius: 0 0 var(--tat-radius) var(--tat-radius); }
.card > .table-responsive:first-child, .card > .table:first-child { border-radius: var(--tat-radius) var(--tat-radius) 0 0; }
.card > .table-responsive:first-child thead th:first-child { border-top-left-radius: var(--tat-radius); }
.card > .table-responsive:first-child thead th:last-child { border-top-right-radius: var(--tat-radius); }
/* A table whose rows carry a dropdown cannot sit in `.table-responsive`: `overflow-x: auto` clips the open
   menu against the card's edge (owner, 2026-09-23: the Vault's Download menu came out cut in half). Nothing
   positions its way out of that — a fixed-strategy popper drifts under the page zoom, the same trap the date
   pickers hit — so such a table simply does not sit in an overflow box. It must be one that fits the layout:
   its first cell truncates instead of pushing a scrollbar. */
.table-unclipped { border-radius: 0 0 var(--tat-radius) var(--tat-radius); }
.table-unclipped > .table > tbody > tr:last-child > td:first-child { border-bottom-left-radius: var(--tat-radius); }
.table-unclipped > .table > tbody > tr:last-child > td:last-child { border-bottom-right-radius: var(--tat-radius); }
.table-unclipped > .table > tbody > tr > td:first-child {
  max-width: 44rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ---- buttons ---- */
.btn { border-radius: 999px; font-weight: 600; letter-spacing: .01em; padding: .45rem 1.05rem; transition: background .12s, color .12s, box-shadow .12s, transform .06s; }
.btn-sm { padding: .3rem .8rem; font-size: .8rem; }
.btn-lg { padding: .65rem 1.4rem; }
.btn:active { transform: translateY(1px); }
.btn-primary {
  --bs-btn-bg: var(--tat-red); --bs-btn-border-color: var(--tat-red); --bs-btn-hover-bg: var(--tat-red-deep); --bs-btn-hover-border-color: var(--tat-red-deep);
  --bs-btn-active-bg: #b8031f; --bs-btn-active-border-color: #b8031f; --bs-btn-disabled-bg: #f7a1ac; --bs-btn-disabled-border-color: #f7a1ac;
  box-shadow: 0 6px 16px -8px rgba(239, 35, 60, .55);
}
.btn-outline-primary { --bs-btn-color: var(--tat-red-deep); --bs-btn-border-color: #f3b3bc; --bs-btn-hover-bg: var(--tat-red); --bs-btn-hover-border-color: var(--tat-red); --bs-btn-hover-color: #fff; --bs-btn-active-bg: var(--tat-red-deep); --bs-btn-active-border-color: var(--tat-red-deep); }
.btn-dark { --bs-btn-bg: var(--tat-navy); --bs-btn-border-color: var(--tat-navy); --bs-btn-hover-bg: var(--tat-navy-deep); --bs-btn-hover-border-color: var(--tat-navy-deep); --bs-btn-active-bg: var(--tat-navy-deep); --bs-btn-active-border-color: var(--tat-navy-deep); }
.btn-secondary { --bs-btn-bg: var(--tat-navy-soft); --bs-btn-border-color: var(--tat-navy-soft); --bs-btn-hover-bg: var(--tat-navy); --bs-btn-hover-border-color: var(--tat-navy); }
.btn-outline-secondary { --bs-btn-color: var(--tat-ink-2); --bs-btn-border-color: var(--tat-line); --bs-btn-hover-bg: var(--tat-navy); --bs-btn-hover-border-color: var(--tat-navy); --bs-btn-hover-color: #fff; --bs-btn-active-bg: var(--tat-navy-deep); --bs-btn-active-border-color: var(--tat-navy-deep); background: var(--tat-white); }
.btn-outline-success { --bs-btn-color: var(--tat-green); --bs-btn-border-color: #a9dcc6; --bs-btn-hover-bg: var(--tat-green); --bs-btn-hover-border-color: var(--tat-green); --bs-btn-active-bg: #0b5a45; --bs-btn-active-border-color: #0b5a45; }
.btn-outline-danger { --bs-btn-color: var(--tat-red-deep); --bs-btn-border-color: #f3b3bc; --bs-btn-hover-bg: var(--tat-red-deep); --bs-btn-hover-border-color: var(--tat-red-deep); --bs-btn-active-bg: #b8031f; --bs-btn-active-border-color: #b8031f; }
.btn-warning { --bs-btn-bg: #f4b942; --bs-btn-border-color: #f4b942; --bs-btn-hover-bg: #e2a729; --bs-btn-hover-border-color: #e2a729; --bs-btn-color: #3a2a05; }
.btn-light { --bs-btn-bg: var(--tat-white); --bs-btn-border-color: var(--tat-line); --bs-btn-hover-bg: var(--tat-mist); --bs-btn-hover-border-color: var(--tat-line); --bs-btn-color: var(--tat-ink-2); }
.btn-light.border { border-color: var(--tat-line) !important; }
.btn-link { color: var(--tat-muted); font-weight: 500; }
.btn-link:hover { color: var(--tat-red-deep); }
.btn.active, .btn:first-child:active { box-shadow: none; }
.btn-group-sm > .btn, .btn-sm { border-radius: 999px; }

/* ---- forms ---- */
.form-control, .form-select { border-radius: var(--tat-radius-sm); border-color: var(--tat-field); background-color: var(--tat-white); color: var(--tat-ink); padding: .5rem .75rem; transition: border-color .12s, box-shadow .12s; }
.form-control-sm, .form-select-sm { padding: .3rem .55rem; }
.form-control:focus, .form-select:focus { border-color: var(--tat-navy); box-shadow: 0 0 0 .2rem rgba(43, 45, 66, .12); }
.form-control::placeholder { color: #a5aab8; }
.form-label { font-weight: 600; color: var(--tat-ink-2); font-size: .82rem; margin-bottom: .35rem; }
.form-text { color: var(--tat-muted); font-size: .78rem; }
.form-check-input:checked { background-color: var(--tat-navy); border-color: var(--tat-navy); }
.form-check-input:focus { border-color: var(--tat-navy); box-shadow: 0 0 0 .2rem rgba(43, 45, 66, .12); }
.input-group-text { background: var(--tat-white-2); border-color: var(--tat-field); color: var(--tat-muted); border-radius: var(--tat-radius-sm); font-weight: 500; }
.input-group > .form-control, .input-group > .form-select { border-radius: var(--tat-radius-sm); }
.is-invalid, .form-control.is-invalid, .form-select.is-invalid { border-color: var(--tat-red); }
.invalid-feedback { color: var(--tat-red-deep); }
.side-badge { font-size: .62rem; vertical-align: middle; }

/* ---- badges ---- */
.badge { font-weight: 600; border-radius: 999px; padding: .38em .7em; letter-spacing: .01em; font-size: .72em; }
.badge.text-bg-primary { background-color: var(--tat-blue-tint) !important; color: var(--tat-blue-ink) !important; }
.badge.text-bg-success { background-color: var(--tat-green-tint) !important; color: #0b5a45 !important; }
.badge.text-bg-danger { background-color: var(--tat-red-tint) !important; color: #a3101f !important; }
.badge.text-bg-warning { background-color: var(--tat-amber-tint) !important; color: #7a4204 !important; }
.badge.text-bg-info { background-color: #e0f3f8 !important; color: #0b5c73 !important; }
.badge.text-bg-secondary { background-color: #e7e9ef !important; color: var(--tat-ink-2) !important; }
.badge.text-bg-light { background-color: var(--tat-white) !important; }
.badge.text-bg-dark { background-color: var(--tat-navy) !important; color: #fff !important; }

/* ---- pagination, misc ---- */
.pagination { --bs-pagination-border-radius: 999px; --bs-pagination-active-bg: var(--tat-navy); --bs-pagination-active-border-color: var(--tat-navy); --bs-pagination-color: var(--tat-ink-2); --bs-pagination-border-color: var(--tat-line); --bs-pagination-hover-bg: var(--tat-mist); --bs-pagination-hover-color: var(--tat-navy); gap: .25rem; }
.page-link { border-radius: 999px !important; min-width: 2rem; text-align: center; }
/* Dashboard charts: series colors as tokens (validated: margin/bar pair ΔE 18.5 CVD, ramps ordinal-checked). */
:root { --viz-margin: var(--viz-good); --viz-cost: var(--viz-other); --viz-bar: var(--viz-s1); --viz-grid: #eceff4; --viz-ink: #2f3140; --viz-muted: #6b7084; --viz-surface: #ffffff; --viz-tip: #1f2133; --viz-cap-sub: #6b7084; }
.viz-card .card-header { font-weight: 600; }
.viz-plot { position: relative; height: 280px; }
.viz-scroll { overflow-x: auto; overflow-y: hidden; padding-bottom: .25rem;
  scrollbar-width: thin; scrollbar-color: var(--tat-line) transparent; }
.viz-scroll::-webkit-scrollbar { height: 5px; }
.viz-scroll::-webkit-scrollbar-track { background: transparent; }
.viz-scroll::-webkit-scrollbar-thumb { background: var(--tat-line); border-radius: 3px; }
.viz-scroll::-webkit-scrollbar-thumb:hover { background: var(--tat-muted); }
.viz-scroll::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
.viz-scroll .viz-plot { min-width: 100%; }
.viz-plot-tall { height: 320px; }
.viz-plot-short { height: 240px; }
/* Upright, the ring and its legend share a narrower card (owner, 2026-09-21). */
html[data-orientation="portrait"] .viz-plot-tall { height: 370px; }
.viz-loss { font-size: .78rem; color: var(--tat-red); text-align: center; margin-top: .35rem; }
/* The dashboard's "Rates not entered" list: a long backlog scrolls inside its card. */
.missing-rates-scroll { max-height: 18rem; overflow-y: auto; }
.viz-legend { font-size: .88rem; color: var(--tat-muted); font-weight: 400; }
.viz-key { display: inline-block; width: .7rem; height: .7rem; border-radius: 2px; margin-right: .35rem; vertical-align: -1px; }
.viz-segments { display: flex; gap: 2px; height: 14px; border-radius: 4px; overflow: hidden; background: var(--tat-line-soft); margin: .25rem 0 .9rem; }
.viz-segment { display: block; min-width: 3px; transition: opacity .15s; }
.viz-segment:hover { opacity: .8; }
.viz-list { list-style: none; margin: 0; padding: 0; font-size: .95rem; }
.viz-list li { display: flex; align-items: center; gap: .5rem; padding: .36rem 0; border-top: 1px solid var(--tat-line-soft); }
.viz-list li:first-child { border-top: 0; }
.viz-list li > span:nth-child(2) { flex: 1; }
.viz-list li strong { font-variant-numeric: tabular-nums; }
.viz-list li > span:last-child { min-width: 2.6rem; text-align: right; font-variant-numeric: tabular-nums; font-size: .88rem; }
/* The map stays inside the page (owner, 2026-09-21: "why this map is overlapping?" — it painted over the sidebar
   on a portrait screen, where the sidebar slides across the content): Leaflet's panes and controls carry z-index
   200-800 of their own, which beats the sidebar (30) and the top bar (15) as long as nothing above them opens a
   stacking context. `z-index: 0` on the map's own box opens one, so every pane inside it stays at the page's
   level — the shell slides over the map exactly as it does over a table. The same box is the Google / HERE
   container, so all three map engines are covered. */
.route-map { border-radius: var(--tat-radius-sm); background: var(--tat-mist); border: 1px solid var(--tat-line) !important;
  position: relative; z-index: 0; overflow: hidden; }
.leaflet-container { font-family: var(--f-sans); }
/* explicit heights, not whatever the column leaves (follow-on brief 2026-10-18): 200px on the Edit page (the load page's own is 150px, .load-map) */
#routeMap { height: 200px; }
/* Route pins: green pickup, red delivery; additional stops outlined with their number. */
.map-pin { background: none; border: 0; }
.map-pin-body { display: block; width: 30px; height: 30px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
  border: 3px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.4); }
.map-pin-text { display: block; transform: rotate(45deg); line-height: 24px; text-align: center; font-size: 11px; font-weight: 700; }
.map-pin-pickup .map-pin-body { background: #198754; color: #fff; }
.map-pin-delivery .map-pin-body { background: #dc3545; color: #fff; }
.map-pin-extra_pickup .map-pin-body { background: #fff; border-color: #198754; color: #198754; }
.map-pin-extra_delivery .map-pin-body { background: #fff; border-color: #dc3545; color: #dc3545; }
.margin-value { font-family: var(--f-sans); font-weight: 700; font-size: 1.6rem; }
dl.row dt, dl.load-facts dt { color: var(--tat-muted); font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; }
hr { border-color: var(--tat-line-soft); opacity: 1; }
.modal-content { border-radius: var(--tat-radius); border: 1px solid var(--tat-line); }
.border-start.border-2 { border-color: var(--tat-line) !important; }
::selection { background: rgba(239, 35, 60, .18); }

/* ---- sign-in: one centred card on the sunrise backdrop (owner, 2026-09-21: no tagline, no hero panel) ---- */
body.auth-page { background: var(--tat-navy-deep); }
body.auth-page main {
  display: flex; align-items: center; justify-content: center; padding: 0 !important; max-width: none;
  position: fixed; inset: 0; overflow: auto; /* inset: 0 covers the window under the page zoom; 100vh does not */
  background: linear-gradient(180deg, rgba(31, 33, 51, .55) 0%, rgba(31, 33, 51, .85) 100%), var(--tat-navy-deep) url("../img/hero-sunrise.jpg") center/cover no-repeat;
}
.auth-shell {
  width: min(520px, calc(100% - 2rem)); margin: 2rem auto;
  border-radius: 1.25rem; overflow: hidden; background: var(--tat-white); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6);
}
.auth-form { padding: 3rem 3rem 2.5rem; display: flex; flex-direction: column; justify-content: center; }
.auth-form .logo { height: 72px; width: auto; max-width: none; align-self: center; margin-bottom: 1.5rem; }
.auth-form h1 { font-size: 1.75rem; margin-bottom: .25rem; text-align: center; }
.auth-form .lead { color: var(--tat-muted); font-size: .92rem; margin-bottom: 1.75rem; text-align: center; }
.auth-form .form-control { padding: .7rem .9rem; }
.auth-form .btn-primary { padding: .7rem 1rem; font-size: .95rem; margin-top: .25rem; }
/* ---- One layout on every screen. The page is laid out 1920px wide and scaled to the window (base.html),
   so there are no width breakpoints in this file: what fits on a desktop monitor fits, at the same
   proportions, on a laptop, a portrait screen or a 45" display. ---- */

/* ---- the four US clocks (owner, 2026-09-20): a deck across the top of the dashboard, nowhere else.
   Navy cards, each ringed in its zone's time.gov colour (--zone, inline on the card). ---- */
.clocks-deck { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 1.25rem; }
/* A screen turned upright lays the page out 1080-1440 wide, where four cards in a row leave each one so narrow that
   the weather sits on the time and the city is cut (owner, 2026-09-21): two by two there. */
html[data-orientation="portrait"] .clocks-deck { grid-template-columns: repeat(2, 1fr); }
.clock-card { display: flex; align-items: center; gap: 1rem; padding: .9rem 1.1rem; border-radius: var(--tat-radius);
  background: linear-gradient(135deg, #0b2a4a 0%, #123a63 100%); color: #fff; box-shadow: var(--tat-shadow);
  border-left: 4px solid var(--zone); position: relative; overflow: hidden; }
.clock-card::after { content: ""; position: absolute; right: -3rem; top: -3rem; width: 9rem; height: 9rem; border-radius: 50%;
  background: var(--zone); opacity: .12; }
.clock-face { width: 84px; height: 84px; flex: 0 0 auto; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .35)); }
.clock-rim { fill: #fff; stroke: var(--zone); stroke-width: 4; }
.clock-tick { stroke: #c9d1dc; stroke-width: 1; stroke-linecap: round; }
.clock-tick.major { stroke: #0b2a4a; stroke-width: 2; }
.clock-num { font: 700 11px var(--f-sans); fill: #0b2a4a; text-anchor: middle; dominant-baseline: central; }
.clock-hand { stroke-linecap: round; }
.clock-hand.hour { stroke: #0b2a4a; stroke-width: 4; }
.clock-hand.minute { stroke: #0b2a4a; stroke-width: 2.5; }
.clock-hand.second { stroke: var(--zone); stroke-width: 1.2; }
.clock-pin { fill: var(--zone); }
.clock-body { min-width: 0; flex: 1 1 auto; position: relative; }
.clock-head { display: flex; align-items: baseline; gap: .5rem; padding-right: 4.5rem; }
.clock-zone { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .75); }
.clock-abbr { font-size: .72rem; font-weight: 700; letter-spacing: .06em; color: var(--zone); background: rgba(255, 255, 255, .1); padding: .05rem .45rem; border-radius: 1rem; }
.clock-digital { display: flex; align-items: baseline; gap: .15rem; font-variant-numeric: tabular-nums; line-height: 1.05; margin: .15rem 0 .25rem; white-space: nowrap; }
.clock-time { font-size: 2rem; font-weight: 700; letter-spacing: -.02em; }
.clock-sec { font-size: 1.05rem; font-weight: 600; color: rgba(255, 255, 255, .6); }
.clock-ampm { font-size: .85rem; font-weight: 700; margin-left: .35rem; color: var(--zone); }
.clock-meta { display: flex; align-items: center; gap: .4rem; font-size: .8rem; color: rgba(255, 255, 255, .85); white-space: nowrap; min-width: 0; overflow: hidden; }
.clock-city { min-width: 0; overflow: hidden; text-overflow: ellipsis; }   /* "Los Angeles" gives way before the date is cut */
.clock-daynight, .clock-date, .clock-dot { flex: 0 0 auto; }
.clock-dot { color: rgba(255, 255, 255, .4); }
/* The weather, top right of the card: icon, temperature, one word. */
.clock-weather { position: absolute; top: .55rem; right: .8rem; display: flex; flex-direction: column; align-items: flex-end; line-height: 1.1;
  color: rgba(255, 255, 255, .92); text-align: right; z-index: 1; }
.clock-weather-icon { font-size: 1.35rem; color: var(--zone); filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .35)); }
.clock-weather-temp { font-size: .95rem; font-weight: 700; font-variant-numeric: tabular-nums; margin-top: .1rem; }
.clock-weather-label { font-size: .66rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: rgba(255, 255, 255, .7);
  max-width: 5.5rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.clock-daynight.is-day { color: #ffd166; } .clock-daynight.is-night { color: #9fb6ff; }

/* ---- every box in a row lines up with the boxes beside it (owner, 2026-09-21: "some are showing bugs and
   overlapping with each other" — on the portrait layout "State / Prov." wrapped onto a second line and dropped
   its box below City and ZIP). The cell is a column with the box at its foot, so a label of one line and a label
   of two end at the same baseline; on a wide screen nothing moves, because there is no spare height to take up. ---- */
/* Two limits (owner, 2026-09-23: "payment method box is far away from the text"):
   - the cell's bottom margin is padding inside its 100% height — as a margin it overflowed the row by 1rem, which
     put every box a rem below its own label and every label tight under the box above it;
   - only in a row of plain fields. A column carrying something under its box (the carrier's compliance note) makes
     the row tall for its own reasons, and the boxes beside it must stay under their labels, not sink to its foot. */
.row:not(:has(> [class*="col"] > :nth-child(2):not([hidden]))) > [class*="col"] > .mb-3:only-child {
  display: flex; flex-direction: column; height: 100%; margin-bottom: 0 !important; padding-bottom: 1rem; }
.row:not(:has(> [class*="col"] > :nth-child(2):not([hidden]))) > [class*="col"] > .mb-3:only-child > .form-control,
.row:not(:has(> [class*="col"] > :nth-child(2):not([hidden]))) > [class*="col"] > .mb-3:only-child > .form-select,
.row:not(:has(> [class*="col"] > :nth-child(2):not([hidden]))) > [class*="col"] > .mb-3:only-child > .input-group,
.row:not(:has(> [class*="col"] > :nth-child(2):not([hidden]))) > [class*="col"] > .mb-3:only-child > .flatpickr-wrapper { margin-top: auto; }
/* The extra-stop cards write their label and box straight into the column (loads/form.html stopRowTpl). */
.stop-body .row > [class*="col"] { display: flex; flex-direction: column; }
.stop-body .row > [class*="col"] > .form-control,
.stop-body .row > [class*="col"] > .form-select,
.stop-body .row > [class*="col"] > .flatpickr-wrapper { margin-top: auto; }
/* A screen turned upright is 1080-1440 wide: the street / country split of a wide screen leaves the country box
   too narrow to read "United States", so upright they share the line evenly. */
html[data-orientation="portrait"] .street-col,
html[data-orientation="portrait"] .country-col { flex: 0 0 auto; width: 50%; }

/* ---- form panels (load form): one look for every section — a coloured rail,
   an icon, a small-caps title and, on the right, what the section adds up to ---- */
.fpanel { border: 0; border-left: 4px solid var(--fp, var(--tat-navy)); border-radius: var(--tat-radius); box-shadow: var(--tat-shadow); background: var(--tat-white); }
.fpanel-head { display: flex; align-items: center; gap: .7rem; padding: .7rem 1.1rem; border-bottom: 1px solid var(--tat-line-soft); background: var(--tat-white-2);
  border-top-right-radius: var(--tat-radius); }
.fpanel-icon { width: 2.1rem; height: 2.1rem; flex: 0 0 auto; border-radius: .6rem; display: inline-flex; align-items: center; justify-content: center;
  font-size: 1rem; color: #fff;
  background: linear-gradient(160deg, color-mix(in srgb, var(--fp, var(--tat-navy)) 55%, white), var(--fp, var(--tat-navy)) 60%, color-mix(in srgb, var(--fp, var(--tat-navy)) 70%, black));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), inset 0 -1px 0 rgba(0, 0, 0, .2), 0 4px 10px -3px color-mix(in srgb, var(--fp, var(--tat-navy)) 70%, transparent);
  text-shadow: 0 1px 1px rgba(0, 0, 0, .3); }
.fpanel-title { font-size: .72rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--tat-ink-2); }
.fpanel-aside { margin-left: auto; display: flex; align-items: center; gap: .5rem; }
.fpanel-aside .badge { font-size: .7rem; }
.fpanel-chip { font-size: .78rem; font-weight: 600; font-variant-numeric: tabular-nums; padding: .2rem .55rem; border-radius: 1rem; background: var(--tat-mist); color: var(--tat-ink-2); }
.fpanel-chip.is-pos { background: color-mix(in srgb, var(--viz-good) 14%, var(--tat-white)); color: var(--tat-green); }
.fpanel-chip.is-neg { background: color-mix(in srgb, var(--viz-bad) 12%, var(--tat-white)); color: var(--tat-red-ink); }
.fpanel .card-body { padding: 1.1rem 1.25rem 1.25rem; }
.fpanel .section-title { border-bottom: 0; padding-bottom: 0; margin-bottom: .5rem; }
.fp-navy { --fp: var(--viz-s1); } .fp-blue { --fp: var(--viz-s7); } .fp-teal { --fp: var(--viz-s3); } .fp-green { --fp: var(--viz-good); }
.fp-amber { --fp: var(--viz-warn); } .fp-slate { --fp: var(--viz-neutral); } .fp-red { --fp: var(--viz-bad); } .fp-orange { --fp: var(--viz-s4); }
/* Master forms (owner, 2026-09-20): the Save and Record panels keep pace down the right. */
@media (min-width: 992px) { .form-side { position: sticky; top: 1rem; } }
.record-facts dt { font-weight: 600; color: var(--tat-muted); }
.record-facts dd { margin-bottom: .3rem; }

/* ---- list tables (dashboard, loads, AR, AP): one line per cell, scroll
   sideways when the screen is narrow (portrait monitors), first columns pinned ---- */
.table-list td, .table-list th { white-space: nowrap; }
.table-list td.cell-name { max-width: 13rem; overflow: hidden; text-overflow: ellipsis; }
.table-list td.cell-name > div { overflow: hidden; text-overflow: ellipsis; }
/* The lane is the one cell allowed to wrap (two lines max in practice), so the
   money columns on the right stay on screen. */
.table-list td.cell-lane { white-space: normal; min-width: 11rem; max-width: 17rem; line-height: 1.25; }
.table-list td.cell-lane .paper-badges { display: flex; gap: .2rem; margin-top: .25rem; }
.table-list td.cell-lane .paper-badges .badge { font-size: .62rem; padding: .2em .4em; }
.table-list td.cell-stage { white-space: nowrap; line-height: 1.35; }
/* Free text on a master list (lead lanes, notes): the one cell that may wrap (owner, 2026-09-20: names,
   numbers and every other cell stay on one line). */
.table-list td.cell-text { white-space: normal; min-width: 14rem; max-width: 24rem; line-height: 1.3; }
.table-list td.cell-stage .badge { white-space: nowrap; }
.table-list td.cell-stage .stage-track { display: block; }
/* A pinned cell is what the rest of the row scrolls under: it has to be opaque, and it has to be the
   same colour as its row, or hovering (and a deactivated row) leaves a mismatched band down the left.
   Every row publishes its own background here and the pinned cells copy it, so a new row state is one
   line and never a second place to forget. */
.table-list > tbody > tr { --row-bg: var(--tat-white); }
.table-list > thead > tr { --row-bg: var(--tat-white-2); }
.table-list.table-hover > tbody > tr:hover { --row-bg: var(--tat-hover); }
.table-list > tbody > tr.table-light { --row-bg: var(--tat-white-2); }
.table-list > tbody > tr.table-secondary { --row-bg: #f3f4f7; }
.table-list td.cell-sticky, .table-list th.cell-sticky { position: sticky; z-index: var(--z-pinned-cell); background-color: var(--row-bg); }
.table-list .cell-sticky.bulk-col { left: 0; }
.table-list .cell-sticky.cell-num { left: 0; box-shadow: 1px 0 0 var(--tat-line-soft); }
/* Only when a checkbox column sits before it does the load number start after that column. */
.table-list .bulk-col + .cell-sticky.cell-num { left: 2.25rem; }
.table-list > thead .cell-sticky { z-index: var(--z-pinned-head); }   /* the colour comes from the row */

/* ---- row selection (clone / delete selected loads) ---- */
.bulk-col { width: 2.25rem; padding-right: 0 !important; }
.bulk-col .form-check-input { margin: 0; cursor: pointer; }
.bulk-bar {
  position: fixed; left: 50%; bottom: 1.25rem; transform: translateX(-50%); z-index: 1040;
  display: flex; align-items: center; gap: .5rem;
  padding: .55rem .6rem .55rem 1rem; border-radius: 999px;
  background: var(--tat-navy-deep); color: var(--tat-white);
  box-shadow: 0 12px 32px -8px rgba(10, 10, 15, .45);
  animation: bulk-in .18s ease-out;
}
.bulk-bar[hidden] { display: none; }
.bulk-bar .bulk-count { font-size: .9rem; margin-right: .35rem; white-space: nowrap; }
.bulk-bar .btn { border-radius: 999px; }
.bulk-numbers { max-height: 9rem; overflow-y: auto; }
tr.table-active > td { background-color: var(--tat-blue-tint) !important; }
@keyframes bulk-in { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* Stop markers in text, matching the map pins. */
.map-key { display: inline-block; min-width: 1.5rem; padding: 0 .3rem; margin-right: .4rem; border-radius: .25rem; text-align: center;
  font-size: .7rem; font-weight: 700; letter-spacing: 0; line-height: 1.25rem; border: 2px solid transparent; }
.map-key-pickup { background: #198754; color: #fff; }
.map-key-delivery { background: #dc3545; color: #fff; }
.map-key-extra-pickup { background: #fff; border-color: #198754; color: #198754; }
.map-key-extra-delivery { background: #fff; border-color: #dc3545; color: #dc3545; }

/* Paperwork panel */
.docs-progress { display: inline-flex; gap: 3px; }
.docs-progress-seg { width: 22px; height: 6px; border-radius: 3px; background: var(--tat-line); }
.docs-progress-seg.is-ok { background: #198754; }
.docs-progress-seg.is-expiring { background: #f0a202; }
.docs-progress-seg.is-expired { background: #dc3545; }
.docs-rows { display: flex; flex-direction: column; }
.docs-row { display: grid; grid-template-columns: 15rem 1fr auto; gap: 1rem; align-items: start; padding: .8rem 1rem;
  border-top: 1px solid var(--tat-line-soft); border-left: 3px solid transparent; transition: background .15s, border-color .15s; }
.docs-row.is-missing { border-left-color: #f0a202; }
.docs-row.is-expired { border-left-color: #dc3545; }
.docs-row.is-expiring { border-left-color: #f0a202; }
.docs-row.is-ok { border-left-color: #198754; }
.docs-row.is-dragover { background: #eef5ff; border-left-color: #256abf; }
.docs-row.is-dragover .docs-empty { color: #256abf; }
.docs-row.is-uploading { opacity: .6; }
.docs-type { display: flex; gap: .6rem; align-items: flex-start; }
.docs-code { display: inline-block; white-space: nowrap; min-width: 2.9rem; text-align: center; padding: .15rem .4rem; border-radius: .3rem; font-size: .7rem;
  font-weight: 700; letter-spacing: .04em; background: var(--tat-mist); color: var(--tat-ink-2); margin-top: .15rem; }
.docs-files { min-width: 0; }
.docs-file { display: flex; align-items: center; gap: .6rem; padding: .3rem 0; }
.docs-file + .docs-file { border-top: 1px dashed var(--tat-line-soft); }
.docs-icon { width: 2rem; height: 2rem; border-radius: .4rem; display: inline-flex; align-items: center; justify-content: center; font-size: 1rem; flex: 0 0 auto; }
.docs-icon-pdf { background: #fdecef; color: #c8102e; }
.docs-icon-image { background: #e8f3ee; color: #0f7b5f; }
.docs-icon-sheet { background: #e8f0ea; color: #1e6b3a; }
.docs-icon-doc { background: #e7eefb; color: #1f4e9e; }
.docs-icon-file { background: var(--tat-mist); color: var(--tat-muted); }
.docs-file-body { min-width: 0; flex: 1; }
.docs-name { display: block; font-weight: 500; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.docs-name:hover { text-decoration: none; }
.docs-file-actions { display: flex; gap: .1rem; opacity: .55; transition: opacity .15s; }
.docs-file:hover .docs-file-actions { opacity: 1; }
.docs-file-actions .btn { padding: .1rem .35rem; }
.docs-empty { padding: .4rem .6rem; border: 1px dashed var(--tat-line); border-radius: .4rem; }
.docs-add { display: flex; }
.docs-upload { display: flex; align-items: center; gap: .4rem; }
.docs-expiry { width: 9.5rem; }
.docs-carrier { width: 14rem; }
#documents { scroll-margin-top: 1rem; }
.docs-preview-frame { width: 100%; height: 78vh; border: 0; background: #444; }
/* A PDF in a frame at the screen's own size (owner, 2026-10-06, on the quick view of RC v2: "I'm not be able to see the
   end of the document in this quick view"). The page is laid out 1920 wide and zoomed to the window, and the browser's
   PDF viewer draws at the frame's own size unscaled - at a laptop's 0.79 it overflowed the shrunk box by a fifth and its
   foot and right edge could never be scrolled to. The frame undoes the page zoom (--page-zoom, set with the zoom in
   base.html), so the viewer and its box agree; its width still follows the box, and its height is a share of the real
   window - the one place vh is right, because this frame is not zoomed. */
.pdf-native { zoom: calc(1 / var(--page-zoom, 1)); }
.pw-frame.pdf-native { height: 76vh; }

/* FMCSA health card */
.fmcsa { border-left: 3px solid var(--tat-line) !important; }
.fmcsa-ok { border-left-color: #198754 !important; }
.fmcsa-warn { border-left-color: #f0a202 !important; }
.fmcsa-bad { border-left-color: #dc3545 !important; }
.fmcsa-flags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.fmcsa-flags li { padding: .2rem .6rem; border-radius: .4rem; font-weight: 500; }
.fmcsa-flag-bad { background: #fdecef; color: #b02a37; }
.fmcsa-flag-warn { background: #fff4d6; color: #7a5a00; }
.fmcsa dt { font-weight: 500; color: var(--tat-muted); }

/* ---- KPI tracker: progress against target, the 14-day strip ---- */
/* A counted KPI keeps the system's figure in the box until the person writes their own over it
   (owner, 2026-09-21): the count is a figure, not a hint, so it is not dimmed to placeholder grey. */
.kpi-input.kpi-counted::placeholder { color: var(--tat-ink-2); opacity: 1; }
.kpi-bar { height: 6px; border-radius: 3px; background: var(--tat-line-soft); overflow: hidden; }
.kpi-bar > span { display: block; height: 100%; border-radius: 3px; background: var(--tat-navy); }
.kpi-bar.kpi-good > span { background: var(--tat-green); }
.kpi-bar.kpi-warn > span { background: var(--tat-amber); }
.kpi-bar.kpi-bad > span { background: var(--tat-red); }
.kpi-strip { table-layout: fixed; }
.kpi-strip th, .kpi-strip td { padding: .35rem .3rem; text-align: center; font-variant-numeric: tabular-nums; font-size: .82rem; }
.kpi-strip th:first-child, .kpi-strip td:first-child { text-align: left; width: 14rem; font-weight: 600; }
.kpi-strip th.today { color: var(--tat-red); }
.kpi-cell { display: inline-block; min-width: 2.2rem; padding: .15rem .3rem; border-radius: .35rem; font-weight: 600; }
.kpi-cell.kpi-good { background: #dff3ea; color: #0b5c45; }
.kpi-cell.kpi-warn { background: #fdf0d5; color: #7a4d00; }
.kpi-cell.kpi-bad { background: #fbe1e3; color: #8b1520; }
.kpi-cell.kpi-plain { background: #eef0f4; color: var(--tat-ink); }
.kpi-cell.kpi-none { color: var(--tat-muted); font-weight: 400; }
.kpi-day-nav .btn { min-width: 2.4rem; }
.kpi-score { font-size: 1.6rem; font-weight: 700; letter-spacing: -.02em; }
.kpi-notes .note { border-left: 3px solid var(--tat-navy); padding: .35rem .75rem; margin-bottom: .6rem; }
.kpi-notes .note.blockers { border-left-color: var(--tat-red); }
.kpi-notes .note .who { font-weight: 600; }
.kpi-notes .note .when { color: var(--tat-muted); font-size: .8rem; }
/* Work outside the plan (owner, 2026-09-25): typed entries navy, finished tasks from My Tasks green. */
.kpi-work-item { border-left: 3px solid var(--tat-navy); padding: .4rem .75rem; margin-bottom: .6rem; }
.kpi-work-item.from-task { border-left-color: var(--bs-success); }
.kpi-work-output { color: var(--tat-ink); }

/* ---- load form: extra stops as numbered cards, in two rails ---- */
.stop-column { border: 1px solid var(--tat-line-soft); border-radius: var(--tat-radius); padding: .75rem; background: var(--tat-white-2); height: 100%; }
.stop-column-head { display: flex; align-items: center; gap: .5rem; margin-bottom: .6rem; }
.stop-column-title { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--tat-ink-2); }
.stop-marker { display: inline-flex; align-items: center; justify-content: center; min-width: 1.75rem; height: 1.75rem; padding: 0 .4rem; border-radius: 50rem;
  font-size: .72rem; font-weight: 700; letter-spacing: .02em; color: #fff; background: var(--tat-navy); }
.stop-marker-delivery, .stop-card[data-kind="delivery"] .stop-marker { background: var(--tat-green); }
.stop-empty { color: var(--tat-muted); font-size: .85rem; padding: .35rem .25rem; }
.stop-card { background: var(--tat-white); border: 1px solid var(--tat-line-soft); border-left: 4px solid var(--tat-navy); border-radius: var(--tat-radius-sm); margin-bottom: .6rem;
  box-shadow: 0 1px 2px rgba(20, 22, 40, .04); transition: box-shadow .15s; }
.stop-card:focus-within { box-shadow: var(--tat-shadow); }
.stop-card[data-kind="delivery"] { border-left-color: var(--tat-green); }
.stop-head { display: flex; align-items: center; gap: .5rem; padding: .45rem .6rem; border-bottom: 1px solid var(--tat-line-soft); }
.stop-title { font-weight: 600; font-size: .9rem; }
.stop-where { color: var(--tat-muted); font-size: .8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stop-tools { margin-left: auto; display: flex; gap: .25rem; }
.stop-tools .btn { padding: .1rem .4rem; line-height: 1.2; }
.stop-body { padding: .5rem .6rem .6rem; }
.stop-body .form-label { font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--tat-muted); margin-bottom: .15rem;
  /* Never broken across two lines (owner, 2026-09-21: "COUNTRY" came out as "COUNT RY"): the card is narrow,
     so a label that does not fit is cut with an ellipsis and keeps its row one line deep. */
  display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---- load form: accessorial lines with a side switch, quick-add chips and side totals ---- */
.acc-quick { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .75rem; }
.acc-quick:empty { display: none; }
.acc-chip { border: 1px dashed var(--tat-line); background: var(--tat-white); color: var(--tat-ink-2); border-radius: 50rem; padding: .25rem .7rem; font-size: .8rem; font-weight: 600; cursor: pointer; transition: all .12s; }
.acc-chip:hover { border-style: solid; border-color: var(--tat-navy); color: var(--tat-navy); }
.acc-chip small { color: var(--tat-muted); font-weight: 500; margin-left: .3rem; }
.acc-table { --acc-cols: minmax(0, 1fr) 7.4rem 6.6rem 1.9rem; }
/* a line is two lines of a grid: Charge / Side / Amount / remove, then the Note across the whole row; the head and the foot use the same columns */
.acc-head, .acc-row { display: grid; grid-template-columns: var(--acc-cols); column-gap: .45rem; align-items: center; }
.acc-head[hidden], .acc-foot[hidden] { display: none; }
.acc-head { padding: 0 0 .3rem; border-bottom: 1px solid var(--tat-line-soft); font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--tat-muted); }
.acc-row { row-gap: .3rem; padding: .5rem 0; border-bottom: 1px solid var(--tat-line-soft); transition: background .12s; }
.acc-row:hover { background: var(--tat-white-2); }
.acc-row .acc-note { grid-column: 1 / -1; }
.acc-row .acc-remove { padding: .15rem 0; line-height: 1.2; width: 1.9rem; }
.acc-table .acc-side-btn { padding: .3rem .45rem; white-space: nowrap; }
.acc-table select.acc-type.form-select { min-width: 0; text-overflow: ellipsis; padding-left: .5rem; padding-right: 1.6rem; }
.acc-table .form-control, .acc-table .form-select { min-width: 0; }
.acc-table .acc-amount { padding-left: .4rem; padding-right: .4rem; text-align: right; }
.acc-table .input-group { flex-wrap: nowrap; }
.acc-table .input-group-text { padding-left: .4rem; padding-right: .4rem; }
.acc-foot { display: grid; grid-template-columns: var(--acc-cols); column-gap: .45rem; padding-top: .35rem; font-variant-numeric: tabular-nums; }
.acc-foot-label { grid-column: 1 / 3; text-align: right; font-weight: 600; }
.acc-foot-ar, .acc-foot-ap { grid-column: 3; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.acc-side-group { display: inline-flex; border: 1px solid var(--tat-line); border-radius: .4rem; overflow: hidden; }
.acc-side-btn { border: 0; background: var(--tat-white); color: var(--tat-ink-2); font-size: .78rem; font-weight: 700; padding: .3rem .55rem; line-height: 1.2; cursor: pointer; }
.acc-side-btn span { display: block; font-size: .62rem; font-weight: 500; color: var(--tat-muted); letter-spacing: .02em; }
.acc-side-btn + .acc-side-btn { border-left: 1px solid var(--tat-line); }
.acc-side-btn.active { background: var(--tat-navy); color: #fff; }
.acc-side-btn.active span { color: rgba(255, 255, 255, .75); }
.acc-side-btn[data-side="AP"].active { background: var(--tat-green); }
.acc-side-btn:disabled { opacity: .35; cursor: not-allowed; }
.acc-empty { color: var(--tat-muted); font-size: .85rem; padding: .35rem .25rem; }

/* ---- a load's money, itemized: the form's Live totals and the load page's Rates card (owner, 2026-10-02) ----
   Base rates one step in, each accessorial two, the totals one; a long note is cut and shown whole on hover. */
.rate-lines { font-variant-numeric: tabular-nums; transition: opacity .15s; }
.rate-lines.is-updating { opacity: .55; }
.rl-side + .rl-side { margin-top: .85rem; }
.rl-head { font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--tat-muted); margin-bottom: .1rem; }
.rl-row { display: flex; align-items: baseline; gap: .75rem; padding: .2rem 0 .2rem .75rem; color: var(--tat-ink-2); }
.rl-row.rl-acc { padding-left: 1.6rem; font-size: .86rem; }
.rl-row.rl-none { color: var(--tat-muted); }
.rl-label { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rl-amt { flex: 0 0 auto; white-space: nowrap; text-align: right; }
.rl-row.rl-total { font-weight: 700; color: var(--tat-ink); border-top: 1px solid var(--tat-line); margin-top: .2rem; padding-top: .4rem; }
.rl-row.rl-qp { color: var(--tat-green); }
.rl-tag { display: inline-block; margin-left: .45rem; padding: 0 .4rem; border-radius: .3rem; font-size: .66rem; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; background: var(--tat-red-tint); color: var(--tat-red-ink); vertical-align: .1em; }
.rl-tbd { color: var(--tat-muted); }
.rl-pct { margin-left: .5rem; font-weight: 600; }
.rl-margin { text-align: center; border-top: 1px solid var(--tat-line-soft); margin-top: 1rem; padding-top: .8rem; }
.rl-margin-label { font-size: .8rem; color: var(--tat-muted); }
.rl-margin-value { font-size: 1.75rem; font-weight: 700; color: var(--tat-ink); }
.rl-margin-pct { font-size: 1.15rem; font-weight: 600; color: var(--tat-ink-2); }
.rl-margin.is-pos .rl-margin-value, .rl-margin.is-pos .rl-margin-pct, .rl-margin-row.is-pos .rl-amt { color: var(--tat-green); }
.rl-margin.is-neg .rl-margin-value, .rl-margin.is-neg .rl-margin-pct, .rl-margin-row.is-neg .rl-amt { color: var(--tat-red-ink); }
.rl-margin.is-quiet .rl-margin-value, .rl-margin.is-quiet .rl-margin-pct, .rl-margin-row.is-quiet .rl-amt { color: var(--tat-muted); }
.rl-margin-row { margin-top: .6rem; }
/* ---- the load page's three columns (owner, 2026-10-05: "I want these on the left side of the load details ... I want
   both of these in left corner at top the rates section under that the paperwork"): the page at full width, the
   Rates receipt over the Paperwork folder on the left, the load and its lane panel in the middle, Status & tracking
   on the right (24 / 49 / 27 of the wide page: the right column keeps the width it had in the old 8 / 4 split, so
   the stage buttons fit, and the lanes about theirs). The left and right columns span both rows and the second row is flexible, so neither ever opens a
   gap between the load card and the lanes. Upright, the receipt column stays, tracking goes under the load and the
   lanes take the whole width at the foot. ---- */
.load-layout { display: grid; grid-template-columns: minmax(0, 24fr) minmax(0, 49fr) minmax(0, 27fr); grid-template-rows: auto;
  grid-template-areas: "side mid track"; column-gap: 1rem; align-items: start; }
.ll-side { grid-area: side; }
.ll-mid { grid-area: mid; min-width: 0; }
.ll-track { grid-area: track; }
.load-layout.no-track { grid-template-columns: minmax(0, 24fr) minmax(0, 76fr); grid-template-areas: "side mid"; }
html[data-orientation="portrait"] .load-layout { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); grid-template-rows: auto auto;
  grid-template-areas: "side mid" "side track"; }
html[data-orientation="portrait"] .load-layout.no-track { grid-template-rows: auto; grid-template-areas: "side mid"; }

/* ---- the Rates card (owner, 2026-10-03/05: a receipt; 2026-11-13: "Plain card, no receipt look"): the card itself is styled in
   receipt.css now - a flat card, no terminal, torn foot, stamp or words. Only the AR / AP side tag below lives here. No barcode
   (owner, 2026-10-05: "Why is there barcode ... remove that"). DM Sans still, never a receipt font. ---- */
.rl-side-tag { display: inline-block; margin-left: .45rem; padding: 0 .4rem; border-radius: .3rem; font-size: .64rem; font-weight: 700;
  letter-spacing: .04em; vertical-align: .1em; }
.rl-side-tag.is-ar { background: var(--tat-blue-tint); color: var(--tat-blue-ink); }
.rl-side-tag.is-ap { background: var(--tat-green-tint); color: var(--tat-green); }
.totals-error { font-size: .76rem; font-weight: 700; color: var(--tat-red-ink); }

/* ---- the load page's Paperwork card (owner, 2026-10-02): information only since 2026-10-03, one line per kind of
   document on file or missing, a line with files opens to them; no invoice (2026-10-05). The look (owner, 2026-10-05:
   "most unique and advance"): a document folder - an amber tab with the title and a slanted edge, the status pill
   beside it, a meter of each line's state across the folder's top, and every kind of document a 3D tile in its own
   colour, a stack of sheets behind it for more than one file (box-shadows, so nothing escapes its row), dashed amber
   while it is missing. The tab and the tiles keep their colours in both themes, like the other 3D icons. ---- */
.pw { scroll-margin-top: 1rem; }
.pwf-tabrow { display: flex; align-items: flex-end; gap: .6rem; min-width: 0; }
.pwf-tab { position: relative; display: inline-flex; align-items: center; gap: .55rem; padding: .5rem .7rem .45rem .55rem; border-radius: .85rem 0 0 0;
  color: #fff; background: linear-gradient(180deg, #f0b13c, #d98c00); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4); }
.pwf-tab::after { content: ""; position: absolute; top: 0; bottom: 0; left: calc(100% - 1px); width: calc(1.35rem + 1px); background: inherit;
  clip-path: polygon(0 0, 22% 0, 100% 100%, 0 100%); border-radius: 0 .5rem 0 0; }
.pwf-icon { width: 1.75rem; height: 1.75rem; border-radius: .55rem; display: inline-flex; align-items: center; justify-content: center; font-size: .9rem;
  background: rgba(255, 255, 255, .22); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 2px 6px -2px rgba(120, 70, 0, .5); }
.pwf-title { font-size: .76rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; text-shadow: 0 1px 1px rgba(120, 70, 0, .35); }
/* The tab opens the Edit page at its document panel (owner, 2026-10-05) - for whoever may edit the load. */
.pwf-status { margin: 0 0 .4rem auto; display: inline-flex; align-items: center; gap: .35rem; padding: .2rem .65rem; border-radius: 1rem;
  font-size: .74rem; font-weight: 700; white-space: nowrap; }
.pwf-status.is-on { background: var(--tat-green-tint); color: var(--tat-green); }
.pwf-status.is-missing { background: var(--tat-amber-tint); color: var(--tat-amber); }
.pwf-body { position: relative; overflow: hidden; background: var(--tat-white); border: 1px solid var(--tat-line); border-top: 4px solid #d98c00;
  border-radius: 0 var(--tat-radius-sm) var(--tat-radius-sm) var(--tat-radius-sm); box-shadow: var(--tat-shadow); }
/* ---- the rows (follow-on brief 2026-10-18): one line per document - a small coloured tag, its name, its file / date / version, then
   View, a download button and a "..." - and a primary red Upload where it is missing ---- */
.pw-lines { padding: .2rem .4rem .05rem; }
.pw-line { border-radius: .7rem; }
.pw-line + .pw-line { margin-top: 0; }
.pw-line.is-missing { background: repeating-linear-gradient(135deg, var(--tat-amber-tint) 0 7px, transparent 7px 14px); }
.pw-sum { display: flex; align-items: center; gap: .55rem; min-width: 0; padding: .18rem .3rem .18rem .4rem; }
.pw-tag { --pt: #5f6b7a; flex: 0 0 auto; min-width: 2.1rem; height: 1.4rem; padding: 0 .4rem; border-radius: .45rem; display: inline-flex; align-items: center;
  justify-content: center; font-size: .66rem; font-weight: 800; letter-spacing: .06em; color: #fff; background: var(--pt); }
.pw-tag.is-icon { font-size: .85rem; letter-spacing: 0; }
.pw-tag[data-tone="blue"] { --pt: #256abf; }
.pw-tag[data-tone="teal"] { --pt: #0f7b5f; }
.pw-tag[data-tone="green"] { --pt: #198754; }
.pw-tag[data-tone="orange"] { --pt: #d66733; }
.pw-tag[data-tone="slate"] { --pt: #5f6b7a; }
.pw-tag[data-tone="amber"] { --pt: #b87500; }
.pw-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 0; }
.pw-title { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .86rem; font-weight: 700; line-height: 1.25; color: var(--tat-ink); }
.pw-t1 { display: flex; align-items: center; gap: .35rem; max-width: 100%; min-width: 0; }
.pw-ver { margin-left: .1rem; padding: 0 .4rem; border-radius: 1rem; font-size: .66rem; font-weight: 700; color: var(--tat-ink-2); background: var(--tat-mist); vertical-align: 1px; }
.pw-meta1 { display: flex; align-items: baseline; gap: .45rem; max-width: 100%; min-width: 0; }
.pw-what { display: block; max-width: 100%; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; font-size: .76rem; line-height: 1.3; }
.pw-quick { border: 0; background: none; padding: 0; color: var(--tat-blue-ink); text-decoration: none; }
.pw-quick:hover { text-decoration: none; color: var(--tat-red-deep); }
.pw-missing { font-weight: 700; color: var(--tat-amber); }
.pw-idle { color: var(--tat-muted); }
.pw-when { flex: 0 0 auto; font-size: .72rem; color: var(--tat-muted); font-variant-numeric: tabular-nums; }
.pw-count { flex: 0 0 auto; min-width: 1.3rem; padding: .02rem .35rem; border-radius: 1rem; background: var(--tat-mist); color: var(--tat-ink-2);
  font-size: .68rem; font-weight: 700; text-align: center; }
.pw-upload { flex: 0 0 auto; border-radius: 20px; font-weight: 600; font-size: .72rem; padding: .05rem .6rem; line-height: 1.4; white-space: nowrap; }
/* the buttons: the Haulmark pill, never a small square */
.pw-actions { flex: 0 0 auto; display: flex; align-items: center; gap: .25rem; }
.pw-pill { display: inline-flex; align-items: center; justify-content: center; height: 22px; min-width: 22px; padding: 0 .55rem; border: 1px solid var(--tat-field);
  border-radius: 22px; background: var(--tat-white); color: var(--tat-ink-2); font: inherit; font-size: .72rem; font-weight: 600; line-height: 1; text-decoration: none; cursor: pointer; }
.pw-pill:hover { border-color: var(--tat-field-hover); color: var(--tat-ink); background: var(--tat-hover); text-decoration: none; }
.pw-pill:focus-visible { outline: 0; box-shadow: 0 0 0 3px var(--tat-ring); }
.pw-ico { padding: 0 .35rem; font-size: .76rem; }
.pw-toggle i { transition: transform .15s; }
.pw-toggle[aria-expanded="true"] i { transform: rotate(180deg); }
/* the "..." list opens inside the row: the card clips what overflows it, so nothing floats */
.pw-menu { display: flex; flex-wrap: wrap; gap: .3rem; margin: 0 .45rem .45rem 3.1rem; }
.pw-menu[hidden] { display: none; }
.pw-mi { display: inline-flex; align-items: center; gap: .3rem; height: 22px; padding: 0 .65rem; border: 1px solid var(--tat-field); border-radius: 22px;
  background: var(--tat-white); color: var(--tat-ink-2); font: inherit; font-size: .72rem; font-weight: 600; cursor: pointer; }
.pw-mi:hover { background: var(--tat-hover); color: var(--tat-ink); }
.pw-mi.is-danger { color: var(--tat-red-ink); border-color: color-mix(in srgb, var(--tat-red-ink) 40%, var(--tat-field)); background: var(--tat-red-tint); }
.pw-mi.is-danger:hover { background: color-mix(in srgb, var(--tat-red-ink) 14%, var(--tat-red-tint)); }
.pw-mi:focus-visible { outline: 0; box-shadow: 0 0 0 3px var(--tat-ring); }
.pw-line.is-working { opacity: .55; pointer-events: none; }
.pw-line.is-dragover { outline: 2px dashed var(--tat-red); outline-offset: -2px; background: var(--tat-red-tint); }
.pw-files { margin: 0 .45rem .45rem 2.35rem; padding-left: .8rem; border-left: 2px dashed var(--tat-line); }
.pw-files[hidden] { display: none; }
.pw-row { display: flex; align-items: center; gap: .5rem; padding: .3rem .1rem; }
.pw-item + .pw-item { border-top: 1px dashed var(--tat-line-soft); }
.pw-item .pw-menu { margin-left: 2.7rem; }
.pw-thumb { flex: 0 0 auto; width: 2rem; height: 2rem; border-radius: .45rem; object-fit: cover; background-color: var(--tat-mist);
  box-shadow: 0 0 0 1px var(--tat-line); }
.pw-ficon { flex: 0 0 auto; width: 2rem; height: 2rem; border-radius: .45rem; display: inline-flex; align-items: center; justify-content: center;
  font-size: .95rem; background: var(--tat-mist); color: var(--tat-muted); }
.pw-ficon-pdf { background: var(--tat-red-tint); color: var(--tat-red-ink); }
.pw-ficon-image, .pw-ficon-sheet { background: var(--tat-green-tint); color: var(--tat-green); }
.pw-ficon-doc { background: var(--tat-blue-tint); color: var(--tat-blue-ink); }
.pw-body { flex: 1 1 auto; min-width: 0; }
.pw-fname { display: flex; align-items: center; gap: .35rem; min-width: 0; }
.pw-fname .pw-ver { margin-left: 0; }
.pw-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .8rem; font-weight: 600; color: var(--tat-ink); }
.pw-meta { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .7rem; color: var(--tat-muted); }
.pw-badge { flex: 0 0 auto; font-size: .66rem; font-weight: 700; padding: .02rem .4rem; border-radius: 50rem; white-space: nowrap; }
.pw-badge.is-signed { background: var(--tat-green-tint); color: var(--tat-green); }
.pw-badge.is-sent { background: var(--tat-blue-tint); color: var(--tat-blue-ink); }
.pw-error { margin: .5rem .6rem 0; padding: .35rem .7rem; border-radius: .6rem; font-size: .78rem; font-weight: 600; color: var(--tat-red-ink); background: var(--tat-red-tint); }
/* the drop zone: photos and other paperwork (and, on the new-load form, the rate confirmation) */
.pw-drop { display: flex; align-items: center; justify-content: center; gap: .4rem; margin: .1rem .5rem .35rem; padding: .3rem .4rem; border: 1.5px dashed var(--tat-field);
  border-radius: .65rem; color: var(--tat-muted); font-size: .68rem; font-weight: 500; line-height: 1.3; white-space: nowrap; text-align: center; cursor: pointer; transition: background .12s, border-color .12s; }
.pw-drop > i { font-size: 1rem; flex: 0 0 auto; }
.pw-drop-browse { color: var(--tat-red-ink); font-weight: 700; }
.pw-drop:hover, .pw-drop:focus-visible { border-color: var(--tat-field-hover); background: var(--tat-hover); outline: 0; }
.pw-drop:focus-visible { box-shadow: 0 0 0 3px var(--tat-ring); }
.pw-drop.is-dragover { border-color: var(--tat-red); border-style: solid; background: var(--tat-red-tint); color: var(--tat-ink); }
.pw-drop.has-file { border-style: solid; color: var(--tat-ink); }
.pw-drop.is-busy { opacity: .6; pointer-events: none; }

/* The load page's Activity card (owner, 2026-10-07): the Status & tracking card's own markup, chips under its head,
   then a thread of dots, newest first - green for the stage and tracking, violet for paperwork, amber for rates and
   billing, grey for other edits. Tokens only, so dark mode follows. load_activity.js works the chips and Show all. */
.la-filter { display: inline-flex; flex-wrap: wrap; gap: .2rem; padding: .2rem; margin-bottom: .75rem; border-radius: 999px;
  background: var(--tat-white-2); border: 1px solid var(--tat-line); }
.la-chip { border: 0; background: transparent; padding: .2rem .7rem; border-radius: 999px; font-size: .78rem; font-weight: 600;
  color: var(--tat-ink-2); }
.la-chip:hover { background: var(--tat-hover); }
.la-chip.is-on { background: var(--tat-ink); color: var(--tat-white); }
.la-list { list-style: none; margin: 0; padding: 0; }
.la-item { position: relative; display: flex; gap: .7rem; padding: 0 0 .8rem; }
.la-item[hidden] { display: none; }
.la-item::before { content: ""; position: absolute; left: .3rem; top: .95rem; bottom: -.1rem; width: 2px; border-radius: 1px;
  background: var(--tat-line-soft); }
.la-item.is-last::before { display: none; }
.la-dot { position: relative; flex: 0 0 auto; width: .65rem; height: .65rem; margin-top: .3rem; border-radius: 50%;
  background: var(--tat-muted); box-shadow: 0 0 0 3px var(--tat-white); }
.la-status .la-dot { background: var(--tat-green); }
.la-docs .la-dot { background: var(--tat-violet); }
.la-rates .la-dot { background: var(--tat-amber); }
.la-notes .la-dot { background: var(--tat-blue-ink); }
.la-body { flex: 1 1 auto; min-width: 0; }
.la-text { color: var(--tat-ink); line-height: 1.35; overflow-wrap: anywhere; }
.la-old { color: var(--tat-muted); }
.la-arrow { margin: 0 .35rem; font-size: .72rem; color: var(--tat-muted); }
.la-new { font-weight: 600; }
.la-meta { margin-top: .1rem; font-size: .76rem; color: var(--tat-muted); }
.la-more { margin-top: .1rem; }
.la-empty, .la-start { font-size: .78rem; }
.la-start { margin-top: .6rem; padding-top: .6rem; border-top: 1px solid var(--tat-line-soft); }
/* The preview: fixed pixel heights (the page is laid out 1920 wide and zoomed, never sized in vh). */
.pw-viewer { background: var(--tat-viewer); }
.pw-frame { display: block; width: 100%; height: 780px; border: 0; background: var(--tat-viewer); }
.pw-lightbox { position: relative; display: flex; align-items: center; justify-content: center; height: 780px; }
.pw-lightbox[hidden], .pw-frame[hidden], .pw-nav[hidden] { display: none; }
.pw-lightbox img { max-width: 100%; max-height: 780px; object-fit: contain; }
.pw-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 0;
  background: var(--tat-navy); color: #fff; font-size: 1.3rem; display: inline-flex; align-items: center; justify-content: center; opacity: .85; }
.pw-nav:hover { opacity: 1; }
.pw-prev { left: .75rem; }
.pw-next { right: .75rem; }
.auth-form .flash-area { margin: .75rem 0 1rem; }
.auth-form .flash-area .alert { padding: .6rem 2.4rem .6rem .9rem; font-size: .9rem; margin-bottom: .5rem; }

/* ---- the date picker (flatpickr), in the company's look ---- */
/* The clock picker (time boxes): hours, minutes, AM / PM in the same look as the calendar. */
.flatpickr-calendar.tat-picker.tat-time-picker { width: 14rem; }
.tat-time-picker .flatpickr-time { height: 3rem; border-top: 0; }
.tat-time-picker .flatpickr-time input, .tat-time-picker .flatpickr-time .flatpickr-am-pm { font-family: var(--f-sans); font-size: 1.05rem; font-weight: 600; color: var(--tat-ink); }
.tat-time-picker .flatpickr-time input:hover, .tat-time-picker .flatpickr-time .flatpickr-am-pm:hover, .tat-time-picker .flatpickr-time input:focus, .tat-time-picker .flatpickr-time .flatpickr-am-pm:focus { background: var(--tat-mist); }
.tat-time-picker .flatpickr-time .numInputWrapper span.arrowUp:after { border-bottom-color: var(--tat-navy); }
.tat-time-picker .flatpickr-time .numInputWrapper span.arrowDown:after { border-top-color: var(--tat-navy); }
.flatpickr-calendar.tat-picker { font-family: var(--f-sans); border: 1px solid var(--tat-line-soft); border-radius: var(--tat-radius); box-shadow: var(--tat-shadow-hover); padding: .35rem .35rem .5rem; width: 19.5rem; }
.flatpickr-calendar.tat-picker.arrowTop:before, .flatpickr-calendar.tat-picker.arrowTop:after, .flatpickr-calendar.tat-picker.arrowBottom:before, .flatpickr-calendar.tat-picker.arrowBottom:after { display: none; }
.tat-picker .flatpickr-months { align-items: center; padding: .35rem .25rem .25rem; }
.tat-picker .flatpickr-months .flatpickr-month { height: 2.4rem; color: var(--tat-ink); }
.tat-picker .flatpickr-current-month { font-size: .95rem; font-weight: 700; padding-top: .4rem; display: flex; align-items: center; justify-content: center; gap: .35rem; }
.tat-picker .flatpickr-current-month .cur-month { font-weight: 700; margin: 0; }
.tat-picker .flatpickr-current-month .numInputWrapper { width: 4.2rem; }
.tat-picker .flatpickr-current-month input.cur-year { font-weight: 600; color: var(--tat-ink-2); }
.tat-picker .flatpickr-months .flatpickr-prev-month, .tat-picker .flatpickr-months .flatpickr-next-month { top: .45rem; height: 2rem; width: 2rem; padding: .35rem; border-radius: 50rem; color: var(--tat-ink-2); }
.tat-picker .flatpickr-months .flatpickr-prev-month:hover, .tat-picker .flatpickr-months .flatpickr-next-month:hover { background: var(--tat-mist); color: var(--tat-navy); }
.tat-picker .flatpickr-months .flatpickr-prev-month svg, .tat-picker .flatpickr-months .flatpickr-next-month svg { width: .8rem; height: .8rem; }
.tat-picker .flatpickr-weekdays { height: 1.8rem; }
.tat-picker span.flatpickr-weekday { font-size: .66rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--tat-muted); }
.tat-picker .flatpickr-days { width: 100%; }
.tat-picker .dayContainer { width: 100%; min-width: 0; max-width: none; padding: 0 .25rem; }
.tat-picker .flatpickr-day { height: 2.35rem; line-height: 2.35rem; max-width: none; flex-basis: 14.2857%; border-radius: .55rem; margin: .1rem 0; font-size: .88rem; font-weight: 500; color: var(--tat-ink); border: 0; }
.tat-picker .flatpickr-day:hover, .tat-picker .flatpickr-day:focus { background: var(--tat-mist); border-color: transparent; }
.tat-picker .flatpickr-day.today { font-weight: 700; color: var(--tat-red); box-shadow: inset 0 0 0 1.5px var(--tat-red); }
.tat-picker .flatpickr-day.today:hover { background: var(--tat-mist); color: var(--tat-red); }
.tat-picker .flatpickr-day.selected, .tat-picker .flatpickr-day.selected:hover, .tat-picker .flatpickr-day.selected:focus { background: var(--tat-navy); color: #fff; box-shadow: 0 4px 10px rgba(43, 45, 66, .25); font-weight: 700; }
.tat-picker .flatpickr-day.prevMonthDay, .tat-picker .flatpickr-day.nextMonthDay { color: var(--tat-muted); opacity: .55; }
.tat-picker .flatpickr-day.flatpickr-disabled, .tat-picker .flatpickr-day.flatpickr-disabled:hover { color: var(--tat-line); background: transparent; }
.tat-picker .flatpickr-day.startRange, .tat-picker .flatpickr-day.endRange { background: var(--tat-navy); color: #fff; }
.tat-picker .flatpickr-day.inRange { background: #e9eefb; box-shadow: none; }
.form-control.flatpickr-input[readonly] { background-color: var(--tat-white); }
.flatpickr-wrapper { display: block; width: 100%; }
.flatpickr-calendar.static.open { z-index: 1060; }

/* ---- the route map on Google Maps: the same pins, anchored at their tip; the map takes the wheel ---- */
.map-pin-google { width: 30px; height: 36px; position: relative; }
.map-pin-google .map-pin-body { position: absolute; left: 0; top: 2px; box-shadow: 0 2px 4px rgba(0, 0, 0, .3); }
.route-map .gm-style { font-family: var(--f-sans); }

/* ---- dialogs: no dark shadow behind them (owner, 2026-09-19); the backdrop is invisible and covers the
   whole window (Bootstrap's 100vw / 100vh come up short under the page zoom, inset: 0 does not) ---- */
.modal-backdrop { inset: 0; width: auto; height: auto; background: transparent; }
.modal-backdrop.show { opacity: 0; }

/* ---- confirmation / reason dialogs (replace the browser's confirm and prompt) ---- */
.tat-dialog .modal-content { border: 0; border-radius: var(--tat-radius); box-shadow: 0 24px 60px -20px rgba(31, 33, 51, .45); overflow: hidden; }
.tat-dialog .modal-body { padding: 1.5rem 1.5rem .5rem; text-align: center; }
.tat-dialog-icon { width: 52px; height: 52px; margin: 0 auto .9rem; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--tat-mist); color: var(--tat-navy); font-size: 1.5rem; }
.tat-dialog.is-danger .tat-dialog-icon { background: var(--tat-red-tint); color: var(--tat-red-deep); }
.tat-dialog-text { font-size: 1.05rem; font-weight: 600; color: var(--tat-ink); line-height: 1.4; }
.tat-dialog .bulk-numbers { margin-top: .75rem; text-align: left; max-height: 12rem; overflow: auto; }
/* A dialog holding a date or time picker must not clip it (owner, 2026-09-23: the Postponed calendar lost its
   last week). The picker is `static: true` and has to stay that way — a screen-positioned one drifts under the
   page zoom — so it paints inside the dialog, where `overflow: hidden` cuts it off. `:has()` covers any such
   dialog without a class to remember, and the corners it was hiding have nothing to clip anyway. */
.tat-dialog:has(.flatpickr-wrapper) .modal-content { overflow: visible; }
.tat-dialog .modal-footer { border: 0; padding: .75rem 1.5rem 1.5rem; gap: .6rem; justify-content: center; }
.tat-dialog .modal-footer .btn { min-width: 6.5rem; border-radius: 999px; font-weight: 600; padding: .5rem 1.2rem; }
.tat-dialog .tat-dialog-no { border-color: var(--tat-line); color: var(--tat-ink-2); background: var(--tat-white); }
.tat-dialog .tat-dialog-no:hover { background: var(--tat-mist); color: var(--tat-navy); border-color: var(--tat-line); }
.tat-dialog .tat-dialog-yes { background: var(--tat-navy); border-color: var(--tat-navy); color: #fff; }
.tat-dialog .tat-dialog-yes:hover { background: var(--tat-navy-deep); border-color: var(--tat-navy-deep); }
.tat-dialog.is-danger .tat-dialog-yes { background: var(--tat-red-deep); border-color: var(--tat-red-deep); }
.tat-dialog.is-danger .tat-dialog-yes:hover { background: #b00322; border-color: #b00322; }

/* ---- carrier applications (onboarding review) ---- */
.doc-thumb { max-height: 260px; width: auto; background: #fff; }
.diff-table tr.diff-changed td:nth-child(4) { background: #fff7e6; }
.diff-table tr.diff-money td { border-left: 3px solid var(--tat-red); }
.callback-gate { background: var(--tat-red-tint); border: 1px solid #f3c1c8; border-radius: var(--tat-radius-sm); padding: .9rem 1rem; }

/* ---- address book (places.js): the names on file drop down under the box ---- */
.place-menu { position: absolute; z-index: 1080; background: var(--tat-white); border: 1px solid var(--tat-line); border-radius: var(--tat-radius-sm);
  box-shadow: 0 12px 32px -12px rgba(31, 33, 51, .35); max-height: 320px; overflow-y: auto; padding: .25rem 0; }
.place-item { display: block; width: 100%; text-align: left; border: 0; background: none; padding: .45rem .85rem; line-height: 1.25; }
.place-item:hover, .place-item.is-active { background: var(--tat-blue-tint); }
.place-name { display: block; font-weight: 600; color: var(--tat-ink); }
.place-where { display: block; font-size: .8rem; color: var(--bs-secondary-color); }

/* ---- carriers on this lane (lane_carriers.js) ---- */
.lane-carriers .lane-card { border: 1px solid var(--tat-line-soft); border-radius: var(--tat-radius-sm); padding: .6rem .85rem; margin-bottom: .5rem; background: var(--tat-white); }
.lane-carriers .lane-head { display: flex; align-items: center; gap: .25rem; }
.lane-carriers .lane-load { padding-top: .25rem; }
.lane-table .lane-carrier { min-width: 220px; }
.lane-table .lane-pick-col { width: 2.25rem; }
/* The equipment box on the carrier form: chips plus the dropdown that adds one. */
.equipment-box { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; min-height: 2.6rem; height: auto; }
.equipment-chip { display: inline-flex; align-items: center; gap: .3rem; background: var(--tat-mist); border: 1px solid var(--tat-line); border-radius: 999px; padding: .1rem .3rem .1rem .6rem; font-size: .85rem; }
.equipment-remove { border: 0; background: transparent; line-height: 1; padding: 0 .25rem; color: var(--tat-ink-soft, #6c757d); font-size: 1rem; }
.equipment-remove:hover { color: var(--tat-red, #b3261e); }
.equipment-add { border: 0; background: transparent; font-size: .875rem; min-width: 9rem; flex: 1 1 9rem; color: var(--tat-ink-soft, #6c757d); }
.equipment-add:focus { outline: none; }
.lane-tabs .nav-link, .dept-tabs .nav-link { padding: .3rem .75rem; font-size: .875rem; }
.lane-picked { background-color: var(--tat-tint); }
.bid-dialog .bid-recipients { max-height: 7rem; overflow: auto; }
.lane-search-box { max-width: 22rem; font-weight: 400; }
.lane-search-results .lane-card:last-child { margin-bottom: 0; }
.bid-dialog .modal-body { text-align: left; padding: 1.5rem 1.5rem .75rem; }

/* ---- the sales CRM (owner, 2026-09-20): strip, tiles, board, calendar, thread ---- */
.crm-strip { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.1rem; }
.crm-tabs { display: inline-flex; gap: .15rem; padding: .25rem; background: var(--tat-white); border: 1px solid var(--tat-line); border-radius: 999px; box-shadow: var(--tat-shadow); }
.crm-tab { display: inline-flex; align-items: center; gap: .45rem; padding: .45rem 1rem; border-radius: 999px; font-weight: 600; font-size: .92rem; color: var(--tat-ink-2); text-decoration: none; transition: background .12s, color .12s; }
.crm-tab:hover { background: var(--tat-mist); color: var(--tat-navy); }
.crm-tab.active { background: var(--tat-navy); color: #fff; }
.crm-tab .crm-count { font-size: .72rem; font-weight: 700; padding: .1rem .5rem; border-radius: 999px; background: rgba(0, 0, 0, .08); }
.crm-tab.active .crm-count { background: rgba(255, 255, 255, .22); }
.crm-rep { margin-left: auto; min-width: 14rem; }
.crm-tiles { display: grid; grid-template-columns: repeat(8, 1fr); gap: .75rem; margin-bottom: 1.1rem; }
/* Eight tiles in one row need a wide screen; upright (1080-1440) they go four and four (owner, 2026-09-21). */
html[data-orientation="portrait"] .crm-tiles { grid-template-columns: repeat(4, 1fr); }
.crm-tiles-5 { grid-template-columns: repeat(5, 1fr); }
.crm-tiles-4 { grid-template-columns: repeat(4, 1fr); }
.crm-tile { --t: var(--tat-navy); display: flex; flex-direction: column; gap: .15rem; padding: .9rem 1rem; background: var(--tat-white); border: 1px solid var(--tat-line-soft); border-top: 3px solid var(--t); border-radius: var(--tat-radius); box-shadow: var(--tat-shadow); text-decoration: none; color: var(--tat-ink); transition: box-shadow .15s, transform .15s; }
.crm-tile:hover { box-shadow: var(--tat-shadow-hover); transform: translateY(-1px); color: var(--tat-ink); }
.crm-tile.is-on { outline: 2px solid var(--t); outline-offset: -2px; }
.crm-tile-icon { width: 1.9rem; height: 1.9rem; border-radius: .5rem; display: inline-flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--t) 12%, #fff); color: var(--t); margin-bottom: .25rem; }
.crm-tile-label { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--tat-ink-2); }
.crm-tile-value { font-size: 1.9rem; font-weight: 700; line-height: 1.05; letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--t); }
.crm-tile-sub { font-size: .78rem; color: var(--tat-muted); }
.crm-t-navy { --t: var(--viz-s1); } .crm-t-blue { --t: var(--viz-s7); } .crm-t-green { --t: var(--viz-good); } .crm-t-amber { --t: var(--viz-warn); }
.crm-t-orange { --t: var(--viz-s4); } .crm-t-red { --t: var(--viz-bad); } .crm-t-slate { --t: var(--viz-neutral); }
.crm-perf { display: flex; flex-direction: column; }
.crm-perf-row { display: grid; grid-template-columns: 1fr auto; gap: 0 .75rem; padding: .5rem 0; border-bottom: 1px solid var(--tat-line-soft); align-items: baseline; }
.crm-perf-row:last-child { border-bottom: 0; }
.crm-perf-row > span { font-weight: 600; color: var(--tat-ink-2); }
.crm-perf-row > strong { font-size: 1.35rem; font-variant-numeric: tabular-nums; color: var(--tat-navy); grid-row: span 2; align-self: center; }
.crm-perf-row > em { font-style: normal; font-size: .76rem; color: var(--tat-muted); }
.crm-perf-row > em.is-pos { color: #0f7b5f; } .crm-perf-row > em.is-neg { color: #c8102e; }
.crm-funnel { display: grid; grid-template-columns: repeat(6, 1fr); gap: .5rem; }
.crm-funnel-step { --t: #5f6b7a; display: flex; flex-direction: column; gap: .2rem; padding: .6rem .7rem; border-radius: var(--tat-radius-sm); background: color-mix(in srgb, var(--t) 8%, #fff); text-decoration: none; color: var(--tat-ink); }
.crm-funnel-step:hover { background: color-mix(in srgb, var(--t) 16%, #fff); color: var(--tat-ink); }
.crm-funnel-label { font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--t); }
.crm-funnel-count { font-size: 1.4rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.crm-funnel-bar { display: block; height: 5px; border-radius: 3px; background: color-mix(in srgb, var(--t) 18%, #fff); overflow: hidden; }
.crm-funnel-bar > span { display: block; height: 100%; background: var(--t); }
.crm-funnel-sub { font-size: .72rem; color: var(--tat-muted); }
.tone-slate { --t: var(--viz-neutral); } .tone-amber { --t: var(--viz-warn); } .tone-green { --t: var(--viz-good); } .tone-blue { --t: var(--viz-s7); } .tone-red { --t: var(--viz-bad); } .tone-navy { --t: var(--viz-s1); }
.crm-stage { --t: #5f6b7a; display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: .15rem .5rem; border-radius: 999px; color: var(--t); background: color-mix(in srgb, var(--t) 12%, #fff); white-space: nowrap; }
.crm-chip { display: inline-block; font-size: .68rem; font-weight: 600; padding: .1rem .45rem; border-radius: .35rem; background: var(--tat-mist); color: var(--tat-ink-2); margin-left: .35rem; vertical-align: middle; }
/* The Quotes section's status chips (owner, 2026-09-29): tokens only, so the dark theme follows by itself. */
.quote-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.quote-chip { display: inline-flex; align-items: center; gap: .45rem; padding: .35rem .8rem; border-radius: 999px; border: 1px solid var(--tat-line); background: var(--tat-white); color: var(--tat-ink-2); font-size: .85rem; font-weight: 600; text-decoration: none; }
.quote-chip span { font-variant-numeric: tabular-nums; color: var(--tat-ink); }
.quote-chip:hover { border-color: var(--tat-ink-2); color: var(--tat-ink); }
.quote-chip.is-on { background: var(--tat-ink); border-color: var(--tat-ink); color: var(--tat-white); }
.quote-chip.is-on span { color: var(--tat-white); }
.quote-chip-requested span { color: var(--bs-warning-text-emphasis); }
.quote-email-body { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 24rem; overflow: auto; color: var(--tat-ink-2); }
.crm-prio { display: inline-block; font-size: .7rem; font-weight: 700; padding: .12rem .5rem; border-radius: 999px; }
.crm-prio.prio-high { background: #fdecef; color: #c8102e; } .crm-prio.prio-medium { background: #e6effa; color: #256abf; } .crm-prio.prio-low { background: var(--tat-mist); color: var(--tat-muted); }
.crm-list { list-style: none; margin: 0; padding: 0; }
.crm-list > li { display: flex; align-items: center; gap: .75rem; padding: .6rem 1.1rem; border-bottom: 1px solid var(--tat-line-soft); }
.crm-list > li:last-child { border-bottom: 0; }
.crm-list-main { flex: 1 1 auto; min-width: 0; text-decoration: none; color: var(--tat-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crm-list-main:hover { color: var(--tat-navy); }
.crm-list-meta { display: inline-flex; align-items: center; gap: .5rem; font-size: .8rem; white-space: nowrap; }
.crm-act-icon { width: 1.7rem; height: 1.7rem; flex: 0 0 auto; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--tat-mist); color: var(--tat-navy); margin-right: .4rem; }
/* the board */
.crm-board { display: flex; gap: .85rem; align-items: flex-start; overflow-x: auto; padding-bottom: .75rem; }
.crm-col { --t: #5f6b7a; flex: 0 0 17.5rem; min-height: 24rem; max-height: 42rem; display: flex; flex-direction: column; background: var(--tat-canvas, #f4f5f8); border: 1px solid var(--tat-line-soft); border-top: 3px solid var(--t); border-radius: var(--tat-radius); transition: box-shadow .12s, background .12s; }
.crm-col.is-over { background: color-mix(in srgb, var(--t) 8%, #fff); box-shadow: 0 0 0 2px var(--t) inset; }
.crm-col.is-lit { box-shadow: 0 0 0 2px var(--t) inset; }
.crm-col-head { display: flex; align-items: center; gap: .5rem; padding: .7rem .9rem 0; }
.crm-col-dot { width: .6rem; height: .6rem; border-radius: 50%; background: var(--t); }
.crm-col-title { font-weight: 700; }
.crm-col-count { margin-left: auto; font-size: .72rem; font-weight: 700; padding: .1rem .5rem; border-radius: 999px; background: var(--tat-white); border: 1px solid var(--tat-line); }
.crm-col-sub { padding: .1rem .9rem .5rem; font-size: .74rem; color: var(--tat-muted); }
.crm-col-body { flex: 1 1 auto; overflow-y: auto; padding: .25rem .6rem .6rem; display: flex; flex-direction: column; gap: .5rem; }
.crm-col-empty { border: 1px dashed var(--tat-line); border-radius: var(--tat-radius-sm); padding: 1rem; text-align: center; font-size: .8rem; color: var(--tat-muted); }
.crm-card { display: block; background: var(--tat-white); border: 1px solid var(--tat-line-soft); border-left: 3px solid var(--tat-line); border-radius: var(--tat-radius-sm); padding: .65rem .75rem; text-decoration: none; color: var(--tat-ink); box-shadow: 0 1px 2px rgba(31, 33, 51, .06); cursor: grab; }
.crm-card:hover { color: var(--tat-ink); box-shadow: var(--tat-shadow); }
.crm-card.is-dragging { opacity: .5; }
.crm-card.prio-high { border-left-color: #c8102e; } .crm-card.prio-medium { border-left-color: #256abf; }
.crm-card-name { font-weight: 700; }
.crm-card-co { font-size: .82rem; color: var(--tat-ink-2); display: flex; align-items: center; gap: .1rem; flex-wrap: wrap; }
.crm-card-note { font-size: .8rem; color: var(--tat-muted); margin-top: .3rem; line-height: 1.3; }
.crm-card-foot { display: flex; align-items: center; gap: .45rem; margin-top: .5rem; font-size: .74rem; }
.crm-card-due { display: inline-flex; align-items: center; gap: .25rem; color: var(--tat-muted); }
.crm-card-due.is-late { color: #c8102e; font-weight: 700; }
.crm-rep { margin-left: auto; display: inline-flex; align-items: center; gap: .3rem; color: var(--tat-ink-2); font-weight: 600; }
.crm-rep-dot { width: .5rem; height: .5rem; border-radius: 50%; background: var(--tat-red); display: inline-block; }
/* the calendar */
.crm-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: .35rem; }
.crm-cal-wd { font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--tat-muted); text-align: center; padding-bottom: .2rem; }
.crm-cal-day { position: relative; min-height: 4.6rem; border: 1px solid var(--tat-line-soft); border-radius: var(--tat-radius-sm); background: var(--tat-white); text-align: left; padding: .4rem .5rem; font: inherit; color: var(--tat-ink); display: flex; flex-direction: column; gap: .2rem; transition: box-shadow .12s; }
.crm-cal-day:hover { box-shadow: var(--tat-shadow); }
.crm-cal-day.is-blank { border: 0; background: transparent; }
.crm-cal-day.is-closed { background: repeating-linear-gradient(135deg, #fafbfc, #fafbfc 6px, #f1f3f6 6px, #f1f3f6 7px); color: var(--tat-muted); }
.crm-cal-day.is-today { border-color: var(--tat-navy); box-shadow: 0 0 0 1px var(--tat-navy) inset; }
.crm-cal-day.is-picked { border-color: var(--tat-red); box-shadow: 0 0 0 2px var(--tat-red) inset; }
.crm-cal-day.is-late .crm-cal-count { background: #c8102e; }
.crm-cal-num { font-weight: 700; font-size: .85rem; }
.crm-cal-count { position: absolute; top: .35rem; right: .4rem; min-width: 1.3rem; text-align: center; font-size: .72rem; font-weight: 700; color: #fff; background: var(--tat-navy); border-radius: 999px; padding: .05rem .35rem; }
.crm-cal-bars { display: flex; flex-direction: column; gap: 2px; margin-top: auto; }
.crm-cal-bar { display: block; height: 4px; border-radius: 2px; background: var(--tat-red); }
.crm-cal-bar:nth-child(2) { background: var(--viz-s1); } .crm-cal-bar:nth-child(3) { background: var(--viz-good); }
.crm-cal-closed { font-size: .68rem; color: var(--tat-muted); margin-top: auto; }
/* the lead page */
.crm-kinds { display: flex; flex-wrap: wrap; gap: .4rem; }
.crm-kind input { position: absolute; opacity: 0; pointer-events: none; }
.crm-kind span { display: inline-flex; align-items: center; gap: .4rem; padding: .4rem .85rem; border-radius: 999px; border: 1px solid var(--tat-line); font-weight: 600; font-size: .88rem; cursor: pointer; background: var(--tat-white); color: var(--tat-ink-2); }
.crm-kind input:checked + span { background: var(--tat-navy); color: #fff; border-color: var(--tat-navy); }
.crm-stage-row { display: flex; flex-wrap: wrap; gap: .35rem; }
.crm-stage-btn { --t: #5f6b7a; font: inherit; font-size: .78rem; font-weight: 700; padding: .3rem .7rem; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--t) 40%, #fff); background: var(--tat-white); color: var(--t); cursor: pointer; }
.crm-stage-btn:hover { background: color-mix(in srgb, var(--t) 10%, #fff); }
.crm-stage-btn.is-current { background: var(--t); color: #fff; border-color: var(--t); cursor: default; }
.crm-thread { list-style: none; margin: 0; padding: 0; }
.crm-thread-item { display: flex; gap: .6rem; padding: .7rem 1.1rem; border-bottom: 1px solid var(--tat-line-soft); }
.crm-thread-item:last-child { border-bottom: 0; }
.crm-thread-item.kind-reply .crm-act-icon { background: #e8f3ee; color: #0f7b5f; }
.crm-thread-body { min-width: 0; flex: 1 1 auto; font-size: .9rem; }
.crm-thread-note { white-space: pre-wrap; color: var(--tat-ink-2); margin-top: .25rem; }

.crm-thread-tools { display: flex; gap: .5rem; align-items: flex-start; opacity: 0; transition: opacity .12s; }
.crm-thread-item:hover .crm-thread-tools { opacity: 1; }
.crm-thread-tools form { display: inline; }

/* ---- the CRM's motion and polish (owner, 2026-09-20: "pro level … graphs, real-time animations") ---- */
@keyframes crm-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.crm-rise { animation: crm-rise .5s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--i, 0) * 45ms); }
@media (prefers-reduced-motion: reduce) { .crm-rise { animation: none; } }
.crm-tile { position: relative; overflow: hidden; background: linear-gradient(160deg, #fff 0%, color-mix(in srgb, var(--t) 5%, #fff) 100%); }
.crm-tile::after { content: ""; position: absolute; right: -2.2rem; bottom: -2.2rem; width: 6rem; height: 6rem; border-radius: 50%; background: var(--t); opacity: .06; transition: transform .25s; }
.crm-tile:hover::after { transform: scale(1.35); }
.crm-tile-top { display: flex; align-items: center; justify-content: space-between; }
.crm-tile-delta { font-size: .68rem; font-weight: 700; padding: .1rem .45rem; border-radius: 999px; background: color-mix(in srgb, var(--t) 12%, #fff); color: var(--t); white-space: nowrap; }
.crm-live { display: inline-flex; align-items: center; gap: .35rem; font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #0f7b5f; }
.crm-live i { width: .5rem; height: .5rem; border-radius: 50%; background: #0f7b5f; box-shadow: 0 0 0 0 rgba(15, 123, 95, .5); animation: crm-pulse 1.8s infinite; }
@keyframes crm-pulse { 0% { box-shadow: 0 0 0 0 rgba(15, 123, 95, .5); } 70% { box-shadow: 0 0 0 7px rgba(15, 123, 95, 0); } 100% { box-shadow: 0 0 0 0 rgba(15, 123, 95, 0); } }
.crm-rings { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: .5rem; align-items: center; padding-bottom: .75rem; margin-bottom: .5rem; border-bottom: 1px solid var(--tat-line-soft); }
.crm-ring { --c: var(--viz-good); position: relative; width: 5.6rem; height: 5.6rem; margin: 0 auto; }
.crm-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.crm-ring-track { fill: none; stroke: var(--tat-line-soft); stroke-width: 7; }
.crm-ring-bar { fill: none; stroke: var(--c); stroke-width: 7; stroke-linecap: round; transition: stroke-dashoffset 1.2s cubic-bezier(.2, .7, .2, 1); }
.crm-ring-text { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.05; }
.crm-ring-text strong { font-size: 1.05rem; font-variant-numeric: tabular-nums; color: var(--tat-navy); }
.crm-ring-text span { font-size: .62rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--tat-muted); }
.crm-today { text-align: center; }
.crm-today-num { font-size: 2.2rem; font-weight: 700; line-height: 1; color: var(--tat-red); font-variant-numeric: tabular-nums; }
.crm-today-label { font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--tat-ink-2); margin-top: .2rem; }
.crm-today-sub { font-size: .76rem; color: var(--tat-muted); }
.crm-perf-row > em i { font-size: .8em; }
.crm-donut-center, .viz-donut-center { position: absolute; left: 0; right: 0; top: 40%; transform: translateY(-50%); text-align: center; pointer-events: none; line-height: 1.05; }
.crm-donut-center strong, .viz-donut-center strong { display: block; font-size: 1.6rem; color: var(--tat-navy); font-variant-numeric: tabular-nums; }
.crm-donut-center span, .viz-donut-center span { font-size: .66rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--tat-muted); }
.crm-donut-center-sm strong { font-size: 1.35rem; }
.crm-funnel-bar > span { width: 0; transition: width 1.1s cubic-bezier(.2, .7, .2, 1); }
.crm-funnel-bar > span.is-in { width: var(--w, 0%); }
.crm-plot-title { font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--tat-muted); margin-bottom: .35rem; }
.crm-hbar { display: inline-block; vertical-align: middle; width: 6rem; height: 6px; border-radius: 3px; background: var(--tat-line-soft); overflow: hidden; }
.crm-hbar > span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--viz-s7), var(--viz-s1)); transition: width 1s cubic-bezier(.2, .7, .2, 1); }
.crm-hbar > span.is-in { width: var(--w, 0%); }
.crm-avatar { display: inline-flex; width: 1.6rem; height: 1.6rem; border-radius: 50%; align-items: center; justify-content: center; background: var(--c, var(--tat-navy)); color: #fff; font-size: .62rem; font-weight: 700; margin-right: .5rem; overflow: hidden; vertical-align: middle; }
.crm-avatar img { width: 100%; height: 100%; object-fit: cover; }
.crm-prio-dot { width: .55rem; height: .55rem; border-radius: 50%; flex: 0 0 auto; background: var(--tat-line); }
.crm-prio-dot.prio-high { background: #c8102e; box-shadow: 0 0 0 3px #fdecef; } .crm-prio-dot.prio-medium { background: #256abf; }
.crm-empty { display: flex; flex-direction: column; align-items: center; gap: .35rem; padding: 1.6rem 1rem; color: var(--tat-muted); font-size: .9rem; }
.crm-empty i { font-size: 1.6rem; color: var(--tat-line); }
#crmFeed > li.is-new { background: #e8f3ee; animation: crm-rise .5s both; }
#crmFeed > li { transition: background 1.2s; }
.crm-card.is-dropped { animation: crm-drop .6s cubic-bezier(.2, .7, .2, 1); }
@keyframes crm-drop { 0% { transform: scale(1.04); box-shadow: 0 0 0 3px rgba(37, 106, 191, .35); } 100% { transform: none; } }
.crm-col-count.is-bump { animation: crm-bump .45s; }
@keyframes crm-bump { 30% { transform: scale(1.3); background: var(--t); color: #fff; } }
.crm-card { animation: crm-rise .45s both; }
.crm-col-body .crm-card:nth-child(1) { animation-delay: .05s; } .crm-col-body .crm-card:nth-child(2) { animation-delay: .1s; }
.crm-col-body .crm-card:nth-child(3) { animation-delay: .15s; } .crm-col-body .crm-card:nth-child(4) { animation-delay: .2s; }
.crm-col-body .crm-card:nth-child(5) { animation-delay: .25s; } .crm-col-body .crm-card:nth-child(n+6) { animation-delay: .3s; }
.crm-card:hover { transform: translateY(-2px); transition: transform .15s, box-shadow .15s; }
.crm-cal-day.is-today .crm-cal-num { color: var(--tat-red); }
.crm-cal-day.is-today::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; border: 2px solid var(--tat-navy); animation: crm-ring-pulse 2.2s infinite; pointer-events: none; }
@keyframes crm-ring-pulse { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
.crm-cal-day.has-items { background: linear-gradient(180deg, #fff, var(--tat-tint)); }
.crm-tab { position: relative; }
.crm-tab.active { box-shadow: 0 6px 16px -8px rgba(11, 42, 74, .6); }

/* the CRM tiles' and feed icons: the same depth */
.crm-tile-icon { color: #fff; background: linear-gradient(160deg, color-mix(in srgb, var(--t) 55%, white), var(--t) 60%, color-mix(in srgb, var(--t) 70%, black));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), inset 0 -1px 0 rgba(0, 0, 0, .2), 0 4px 10px -3px color-mix(in srgb, var(--t) 70%, transparent); text-shadow: 0 1px 1px rgba(0, 0, 0, .3); }
.crm-act-icon { background: linear-gradient(160deg, #fff, #e6eaf1); box-shadow: inset 0 1px 0 #fff, inset 0 -1px 0 rgba(0, 0, 0, .08), 0 2px 5px -2px rgba(31, 33, 51, .35); }
.btn-primary i, .btn-outline-dark i, .page-actions i { text-shadow: 0 1px 1px rgba(0, 0, 0, .18); }

/* the little progress bar sits on the sub line, so a fact is never more than three lines and its label is never clipped */

/* the performance bars (every figure toward its weekly target), the tile sparklines, the charts' empty states */
.crm-bars { display: flex; flex-direction: column; gap: .55rem; }
.crm-barrow { --c: var(--viz-s1); }
.crm-barrow-head { display: flex; justify-content: space-between; align-items: baseline; font-size: .86rem; font-weight: 600; color: var(--tat-ink-2); }
.crm-barrow-head strong { font-size: 1.05rem; color: var(--tat-navy); font-variant-numeric: tabular-nums; }
.crm-barrow-head strong em { font-style: normal; color: var(--c); }
.crm-barrow-head small { font-size: .74rem; font-weight: 600; color: var(--tat-muted); }
.crm-barrow-track { height: 8px; border-radius: 4px; background: var(--tat-line-soft); overflow: hidden; margin: .25rem 0 .15rem; }
.crm-barrow-track > span { display: block; height: 100%; width: 0; border-radius: 4px; background: linear-gradient(90deg, color-mix(in srgb, var(--c) 55%, white), var(--c)); transition: width 1.2s cubic-bezier(.2, .7, .2, 1); }
.crm-barrow-track > span.is-in { width: var(--w, 0%); }
.crm-barrow-sub { display: flex; justify-content: space-between; font-size: .74rem; color: var(--tat-muted); }
.crm-barrow-sub .is-hit { color: var(--tat-green); font-weight: 700; }
.crm-barrow-note { font-size: .8rem; color: var(--tat-muted); padding-top: .4rem; border-top: 1px solid var(--tat-line-soft); }
.crm-spark { position: absolute; left: 0; right: 0; bottom: 0; height: 28px; width: 100%; opacity: .9; pointer-events: none; }
.crm-spark polyline { fill: none; stroke: var(--t); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: 300; stroke-dashoffset: 300; animation: crm-draw 1.4s ease-out forwards; }
.crm-spark polygon { fill: var(--t); opacity: .08; }
@keyframes crm-draw { to { stroke-dashoffset: 0; } }
.crm-tile { padding-bottom: 1.4rem; }
/* An empty chart keeps its axes (it is still a graph); the hint sits as a card in the upper half. */
.crm-chart-empty { position: absolute; left: 50%; top: 34%; transform: translate(-50%, -50%); width: min(26rem, 88%); display: flex; flex-direction: column; align-items: center; gap: .2rem; text-align: center; padding: .7rem 1rem; background: var(--tat-white); border: 1px dashed var(--tat-line); border-radius: var(--tat-radius-sm); color: var(--tat-muted); font-size: .82rem; pointer-events: none; }
.crm-chart-empty a { pointer-events: auto; }
.crm-chart-empty i { font-size: 1.3rem; color: var(--tat-line); }
.crm-chart-empty strong { color: var(--tat-ink-2); }

/* bulk selection in the CRM (owner, 2026-09-20): a tick on every row, a bar that rises with the actions */
.crm-pick-col { width: 2.2rem; }
.crm-pick { cursor: pointer; }
.crm-card { position: relative; }
.crm-card .crm-pick { position: absolute; top: .55rem; right: .6rem; margin: 0; opacity: .35; transition: opacity .12s; }
.crm-card:hover .crm-pick, .crm-card .crm-pick:checked { opacity: 1; }
.crm-card.is-inactive { opacity: .7; border-left-color: var(--tat-red); background: var(--tat-white-2); }
.crm-list > li > .crm-pick { flex: 0 0 auto; margin: 0; }
.crm-bulk { position: fixed; left: 50%; bottom: 1.5rem; transform: translateX(-50%); z-index: 1055; display: flex; align-items: center; gap: .5rem; flex-wrap: wrap;
  max-width: calc(100% - 3rem); padding: .6rem .9rem; background: var(--tat-navy); color: #fff; border-radius: .9rem; box-shadow: 0 18px 40px -12px rgba(11, 42, 74, .6);
  animation: crm-rise .3s both; }
.crm-bulk[hidden] { display: none; }
.crm-bulk-count { font-size: .9rem; margin-right: .25rem; white-space: nowrap; }
.crm-bulk .btn { background: transparent; --bs-btn-bg: transparent; --bs-btn-color: #fff; --bs-btn-border-color: rgba(255, 255, 255, .55); --bs-btn-hover-bg: rgba(255, 255, 255, .15); --bs-btn-hover-color: #fff; --bs-btn-hover-border-color: #fff; --bs-btn-active-bg: rgba(255, 255, 255, .25); --bs-btn-active-color: #fff; --bs-btn-active-border-color: #fff; }
.crm-bulk .btn-outline-success { --bs-btn-color: #7fe0b8; --bs-btn-border-color: #7fe0b8; --bs-btn-hover-bg: #0f7b5f; --bs-btn-hover-border-color: #0f7b5f; }
.crm-bulk .btn-outline-danger { --bs-btn-color: #ff8a97; --bs-btn-border-color: #ff8a97; --bs-btn-hover-bg: var(--tat-red); --bs-btn-hover-border-color: var(--tat-red); }
.crm-bulk .btn-outline-primary { --bs-btn-color: #9cc4f5; --bs-btn-border-color: #9cc4f5; --bs-btn-hover-bg: #256abf; --bs-btn-hover-border-color: #256abf; }
.crm-bulk .btn-link { color: rgba(255, 255, 255, .8); }
.crm-bulk .form-select, .crm-bulk .form-control { max-width: 10rem; }

/* The profile page's head: the photo (a camera on it opens the picture editor, photo.js), the name, the role. */
.profile-head { display: flex; align-items: center; gap: .9rem; padding: 1rem 1.25rem; border-radius: var(--tat-radius) var(--tat-radius) 0 0;
  background: linear-gradient(160deg, var(--tat-navy-soft), var(--tat-navy) 70%); color: #fff; }
.profile-avatar { position: relative; width: 3.6rem; height: 3.6rem; border: 0; padding: 0; border-radius: 50%; flex: 0 0 auto; display: inline-flex;
  align-items: center; justify-content: center; font-size: 1.2rem; font-weight: 700; color: #fff; background: var(--tat-red); cursor: pointer; }
.profile-avatar[data-c] { background: var(--c); }
.profile-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.profile-cam { position: absolute; right: -.2rem; bottom: -.2rem; width: 1.4rem; height: 1.4rem; border-radius: 50%; background: #fff; color: var(--tat-navy);
  display: inline-flex; align-items: center; justify-content: center; font-size: .7rem; box-shadow: 0 1px 4px rgba(0, 0, 0, .35); }
.profile-avatar:hover .profile-cam { background: var(--tat-red); color: #fff; }
.profile-who { min-width: 0; }
.profile-name { font-weight: 700; font-size: 1.1rem; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-role { display: flex; align-items: center; gap: .45rem; font-size: .82rem; color: rgba(255, 255, 255, .8); margin-top: .25rem; }
/* Your photo: drag to place it, slide to zoom; the server cuts the square (photo.js, people_photos). */
.photo-crop-back { position: fixed; inset: 0; z-index: 1080; display: flex; align-items: center; justify-content: center; background: transparent; }
.photo-crop { width: 22rem; max-width: calc(100% - 2rem); border: 1px solid var(--tat-line); border-radius: var(--tat-radius); background: var(--tat-white); box-shadow: 0 24px 64px -12px rgba(15, 17, 28, .45); }
.photo-crop-head { display: flex; align-items: center; padding: .75rem 1rem; border-bottom: 1px solid var(--tat-line-soft); font-weight: 700; color: var(--tat-ink); }
.photo-crop-stage { position: relative; width: 18rem; height: 18rem; margin: 1rem auto .75rem; overflow: hidden; border-radius: .75rem; background: var(--tat-mist); cursor: grab; touch-action: none; user-select: none; }
.photo-crop-stage img { position: absolute; left: 0; top: 0; max-width: none; transform-origin: 0 0; pointer-events: none; }
.photo-crop-ring { position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 999px rgba(15, 17, 28, .45); pointer-events: none; }
.photo-crop-zoom { display: flex; align-items: center; gap: .5rem; padding: 0 1.5rem; color: var(--tat-muted); }
.photo-crop-zoom input { flex: 1; }
.photo-crop-error { color: var(--tat-red-deep); font-size: .85rem; padding: .5rem 1.5rem 0; }
.photo-crop-foot { display: flex; gap: .5rem; justify-content: flex-end; padding: .75rem 1rem; border-top: 1px solid var(--tat-line-soft); margin-top: .75rem; }
.seg { display: flex; padding: .2rem; gap: .15rem; background: var(--tat-mist); border-radius: .6rem; }
.seg-item { flex: 1 1 0; display: inline-flex; align-items: center; justify-content: center; gap: .35rem; padding: .3rem .4rem; border-radius: .45rem; font-size: .82rem; font-weight: 600; color: var(--tat-ink-2); cursor: pointer; transition: background .12s, color .12s, box-shadow .12s; user-select: none; }
.seg-item input { position: absolute; opacity: 0; width: 0; height: 0; }
.seg-item i { font-size: .95rem; }
.seg-item:hover { color: var(--tat-navy); }
.seg-item.is-on { background: var(--tat-white); color: var(--tat-navy); box-shadow: 0 1px 2px rgba(31, 33, 51, .12), 0 3px 8px -4px rgba(31, 33, 51, .3); }

/* ---- density (owner, 2026-09-20): compact = tighter tables, cards and forms ---- */
html[data-density="compact"] { --bs-body-font-size: .84rem; }
html[data-density="compact"] .table td, html[data-density="compact"] .table th { padding: .42rem .65rem; }
html[data-density="compact"] .card-body { padding: .75rem .9rem; }
html[data-density="compact"] .card-header { padding: .55rem .9rem; }
html[data-density="compact"] .form-control, html[data-density="compact"] .form-select { padding: .32rem .6rem; }
html[data-density="compact"] main.container-fluid { padding-top: 1rem !important; padding-bottom: 1rem !important; }
html[data-density="compact"] .side-link { padding: .42rem .8rem; }
html[data-density="compact"] .fpanel .card-body { padding: .75rem .9rem; }

/* ---- the sidebar kept open (owner, 2026-09-20) ---- */
html[data-sidebar="open"] .app-side { width: var(--side-w-open); overflow-y: auto; box-shadow: none; }
html[data-sidebar="open"] .app-main { margin-left: var(--side-w-open); }
html[data-sidebar="open"] .side-link > span, html[data-sidebar="open"] .side-link .badge, html[data-sidebar="open"] .side-caret { opacity: 1; }
html[data-sidebar="open"] .app-side:not(:hover):not(:focus-within) .side-sub { display: flex; }
html[data-sidebar="open"] .side-brand img { width: 8rem; height: auto; object-fit: contain; }

/* ---- animations off (owner, 2026-09-20) ---- */
html[data-motion="off"] *, html[data-motion="off"] *::before, html[data-motion="off"] *::after { animation: none !important; transition: none !important; }

/* ---- the dark theme (owner, 2026-09-20: "change the theme") — the tokens turn, the components follow ---- */html[data-bs-theme="dark"] {
  --tat-mist: #2a2d3f;
  --tat-ink: #f2f3f7;
  --tat-ink-2: #d5d8e3;
  --tat-muted: #9a9fb5;
  --tat-line: #383b52;
  --tat-line-soft: #30334a;
  --tat-canvas: #15161f;
  --tat-white: #1e2030;
  --tat-white-2: #23253a;
  --tat-tint: #262939;
  --tat-red-tint: #3a1b22;
  --tat-green-tint: #16302a;
  --tat-amber-tint: #382b15;
  --tat-blue-tint: #1c2740;
  --tat-blue-ink: #8fb4f0;
  --tat-red-ink: #ff8a96;
  --tat-viewer: #0f1017;
  --tat-green: #4fc79e;
  --cr-ok: var(--viz-good);
  --cr-near: var(--viz-warn);
  --cr-over: var(--viz-bad);
  --cr-none: var(--viz-neutral);
  --cr-track: #2c2f45;
  --tat-amber: #e9a94a;
  --tat-violet: #8752ee;
  --tat-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 30px -18px rgba(0, 0, 0, .7);
  --tat-shadow-hover: 0 2px 4px rgba(0, 0, 0, .35), 0 20px 44px -20px rgba(0, 0, 0, .8);
  --tat-shadow-sm: 0 1px 2px rgba(0, 0, 0, .3), 0 4px 12px -8px rgba(0, 0, 0, .6);
  --tat-shadow-pop: 0 1px 2px rgba(0, 0, 0, .35), 0 22px 48px -16px rgba(0, 0, 0, .75);
  --tat-field: #3d4058;
  --tat-field-hover: #4f5370;
  --tat-hover: #262939;
  --tat-ring: rgba(156, 196, 245, .22);
  --bs-body-bg: var(--tat-canvas);
  --bs-body-color: var(--tat-ink-2);
  --bs-border-color: var(--tat-line);
  --bs-heading-color: var(--tat-ink);
  --bs-secondary-color: var(--tat-muted);
  --bs-tertiary-bg: #262939;
  --bs-secondary-bg: #262939;
  --bs-link-color: var(--tat-blue-ink);
  --bs-emphasis-color: var(--tat-ink);
  --viz-s1: #496db0; --viz-s2: #c28700; --viz-s3: #00a2ae; --viz-s4: #a15834; --viz-s5: #8789d7; --viz-s6: #7da04d; --viz-s7: #297ab4;
  --viz-s8: #cf675f; --viz-other: #5c6a7d; --viz-good: #5abb88; --viz-warn: #cd9c34; --viz-bad: #bf5354; --viz-neutral: #838d9b;
  --viz-seq-1: #324e73; --viz-seq-2: #3d618e; --viz-seq-3: #4773ab; --viz-seq-4: #5887c3; --viz-seq-5: #689bdb; --viz-seq-6: #7caff1;
  --viz-seq-7: #96c4ff;
  --viz-cost: var(--viz-other); --viz-grid: #272a3d; --viz-ink: #f2f3f7; --viz-muted: #9a9fb5; --viz-cap-sub: #c9cde0; --viz-surface: #1e2030; --viz-tip: #0f1017;
  --bs-table-striped-bg: rgba(255, 255, 255, .03);
  color-scheme: dark;
}
html[data-bs-theme="dark"] body { background: var(--tat-canvas); color: var(--tat-ink-2); }
html[data-bs-theme="dark"] .app-side { border-right-color: #0f1017; }
html[data-bs-theme="dark"] .card, html[data-bs-theme="dark"] .fpanel, html[data-bs-theme="dark"] .card-header, html[data-bs-theme="dark"] .card-header.bg-white,
html[data-bs-theme="dark"] .crm-tile, html[data-bs-theme="dark"] .crm-card, html[data-bs-theme="dark"] .crm-col-count, html[data-bs-theme="dark"] .crm-tabs,
html[data-bs-theme="dark"] .notif-toast, html[data-bs-theme="dark"] .place-menu, html[data-bs-theme="dark"] .stop-card, html[data-bs-theme="dark"] .acc-chip,
html[data-bs-theme="dark"] .acc-side-btn,
html[data-bs-theme="dark"] .tat-dialog .tat-dialog-no, html[data-bs-theme="dark"] .modal-content,
html[data-bs-theme="dark"] .list-group-item, html[data-bs-theme="dark"] .doc-thumb, html[data-bs-theme="dark"] .crm-cal-day { background: var(--tat-white); color: var(--tat-ink-2); }
html[data-bs-theme="dark"] .card-footer { background: #1a1c29; }
html[data-bs-theme="dark"] .table { --bs-table-bg: transparent; --bs-table-color: var(--tat-ink-2); --bs-table-border-color: var(--tat-line-soft); --bs-table-striped-bg: #22243400; }
html[data-bs-theme="dark"] .table > :not(caption) > * > * { background-color: transparent; color: inherit; }
html[data-bs-theme="dark"] .table thead th, html[data-bs-theme="dark"] .table-light, html[data-bs-theme="dark"] .table > thead { --bs-table-bg: #262939; background: #262939; color: var(--tat-ink-2); }
html[data-bs-theme="dark"] .table-hover > tbody > tr:hover > * { --bs-table-bg-state: #262939; color: var(--tat-ink); }
html[data-bs-theme="dark"] .notif-menu .notif-item.unread, html[data-bs-theme="dark"] .lane-picked { background-color: #262939; }
html[data-bs-theme="dark"] .form-control, html[data-bs-theme="dark"] .form-select, html[data-bs-theme="dark"] .input-group-text { background-color: #262939; border-color: var(--tat-line); color: var(--tat-ink); }
html[data-bs-theme="dark"] .form-control:focus, html[data-bs-theme="dark"] .form-select:focus { background-color: #262939; color: var(--tat-ink); }
html[data-bs-theme="dark"] .form-check-input { background-color: #383b52; border-color: #4a4e6a; }
html[data-bs-theme="dark"] .badge.text-bg-secondary { background-color: #383b52 !important; color: var(--tat-ink) !important; }
html[data-bs-theme="dark"] .btn-outline-dark { --bs-btn-color: var(--tat-ink); --bs-btn-border-color: var(--tat-line); --bs-btn-hover-bg: var(--tat-mist); --bs-btn-hover-color: var(--tat-ink); }
html[data-bs-theme="dark"] .filter-chip, html[data-bs-theme="dark"] .btn-check + .btn-outline-secondary { --bs-btn-color: var(--tat-ink-2); }
html[data-bs-theme="dark"] .form-control::placeholder { color: var(--tat-muted); }
html[data-bs-theme="dark"] .dropdown-menu { background: var(--tat-white); border-color: var(--tat-line); color: var(--tat-ink-2); }
html[data-bs-theme="dark"] .dropdown-item { color: var(--tat-ink-2); }
html[data-bs-theme="dark"] .dropdown-item:hover, html[data-bs-theme="dark"] .dropdown-item:focus { background: var(--tat-mist); color: var(--tat-ink); }
html[data-bs-theme="dark"] .btn-light { --bs-btn-bg: #262939; --bs-btn-border-color: #262939; --bs-btn-color: var(--tat-ink-2); --bs-btn-hover-bg: #30334a; --bs-btn-hover-border-color: #30334a; --bs-btn-hover-color: var(--tat-ink); --bs-btn-active-bg: #383b52; --bs-btn-active-color: var(--tat-ink); }
html[data-bs-theme="dark"] .btn-outline-secondary { --bs-btn-color: var(--tat-ink-2); --bs-btn-border-color: var(--tat-line); }
html[data-bs-theme="dark"] .text-secondary, html[data-bs-theme="dark"] .text-muted { color: var(--tat-muted) !important; }
html[data-bs-theme="dark"] .text-dark { color: var(--tat-ink) !important; }
html[data-bs-theme="dark"] .bg-white, html[data-bs-theme="dark"] .bg-light { background: var(--tat-white) !important; }
html[data-bs-theme="dark"] .badge.text-bg-light { background: #383b52 !important; color: var(--tat-ink) !important; }
html[data-bs-theme="dark"] .seg { background: #262939; }
html[data-bs-theme="dark"] .seg-item.is-on { background: #383b52; color: var(--tat-ink); }
html[data-bs-theme="dark"] .crm-tile-icon { background: color-mix(in srgb, var(--t) 28%, #1e2030); }
html[data-bs-theme="dark"] .crm-cal-day.is-closed { background: repeating-linear-gradient(135deg, #1a1c29, #1a1c29 6px, #22243a 6px, #22243a 7px); }
html[data-bs-theme="dark"] .crm-cal-day.has-items { background: linear-gradient(180deg, #1e2030, #262939); }
html[data-bs-theme="dark"] .flatpickr-calendar { background: var(--tat-white); color: var(--tat-ink-2); box-shadow: var(--tat-shadow-hover); }
html[data-bs-theme="dark"] .flatpickr-day, html[data-bs-theme="dark"] .flatpickr-months .flatpickr-month, html[data-bs-theme="dark"] .flatpickr-weekday, html[data-bs-theme="dark"] .flatpickr-current-month input.cur-year { color: var(--tat-ink-2); }
html[data-bs-theme="dark"] .flatpickr-day:hover { background: var(--tat-mist); border-color: var(--tat-mist); }
html[data-bs-theme="dark"] .alert-secondary { --bs-alert-color: var(--tat-ink-2); }
html[data-bs-theme="dark"] .fmcsa-flag-warn { background: #382b15; color: #f0c674; }
html[data-bs-theme="dark"] .diff-table tr.diff-changed td:nth-child(4) { background: #382b15; }
html[data-bs-theme="dark"] .notes-paper, html[data-bs-theme="dark"] .notes-list, html[data-bs-theme="dark"] .notes-folders { background: var(--tat-white); }
html[data-bs-theme="dark"] .notes-body td, html[data-bs-theme="dark"] .notes-body th { border-color: var(--tat-line); }
html[data-bs-theme="dark"] .notes-body mark { background: #6b5a12; color: var(--tat-ink); }
html[data-bs-theme="dark"] .route-map { background: #262939; }
html[data-bs-theme="dark"] tr.row-error td { background: #3a1b22; }
html[data-bs-theme="dark"] tr.row-create td { background: #16302a; }
html[data-bs-theme="dark"] tr.row-update td { background: #1c2740; }
html[data-bs-theme="dark"] tr.row-review td { background: #382b15; }
html[data-bs-theme="dark"] .col-chip.req { background: #382b15; color: #f0c674; }
html[data-bs-theme="dark"] .table-light > *, html[data-bs-theme="dark"] .table > thead > tr > th { background-color: #262939; color: var(--tat-ink-2); }
html[data-bs-theme="dark"] .text-body, html[data-bs-theme="dark"] .text-body-secondary { color: var(--tat-ink-2) !important; }
html[data-bs-theme="dark"] .list-group-item { border-color: var(--tat-line-soft); }
html[data-bs-theme="dark"] .accordion-item, html[data-bs-theme="dark"] .accordion-button { background: var(--tat-white); color: var(--tat-ink-2); }
html[data-bs-theme="dark"] .toast, html[data-bs-theme="dark"] .popover, html[data-bs-theme="dark"] .offcanvas { background: var(--tat-white); color: var(--tat-ink-2); }
html[data-bs-theme="dark"] .form-check-input:checked { background-color: var(--tat-red); border-color: var(--tat-red); }
html[data-bs-theme="dark"] .page-link { background: var(--tat-white); border-color: var(--tat-line); color: var(--tat-ink-2); }
html[data-bs-theme="dark"] .side-link.disabled { color: rgba(255, 255, 255, .35); }
/* Navy words on a light hover are navy words on a dark hover once the theme turns (owner, 2026-09-21). */
html[data-bs-theme="dark"] .table > thead th a:hover,
html[data-bs-theme="dark"] .acc-chip:hover,
html[data-bs-theme="dark"] .notes-folders-head .btn,
html[data-bs-theme="dark"] .tat-dialog .tat-dialog-no:hover,
html[data-bs-theme="dark"] .tat-picker .flatpickr-months .flatpickr-prev-month:hover,
html[data-bs-theme="dark"] .tat-picker .flatpickr-months .flatpickr-next-month:hover { color: var(--tat-ink); }

/* ---- My Notes (owner, 2026-09-20: "inspired from Apple's note taking app") — three panes: folders, the list, the note ---- */
.notes { display: grid; grid-template-columns: 15rem 20rem 1fr; height: 46rem; border: 1px solid var(--tat-line); border-radius: var(--tat-radius); overflow: hidden; background: var(--tat-white); box-shadow: var(--tat-shadow); }
.notes-folders { background: var(--tat-canvas); border-right: 1px solid var(--tat-line); padding: .85rem .6rem; display: flex; flex-direction: column; overflow-y: auto; }
.notes-folders-head { display: flex; align-items: center; justify-content: space-between; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--tat-muted); padding: 0 .5rem .5rem; }
.notes-folders-head .btn { color: var(--tat-navy); font-size: 1rem; }
.notes-folder-list { list-style: none; margin: 0 0 .5rem; padding: 0; display: flex; flex-direction: column; gap: .1rem; }
.notes-folder-list-bottom { margin-top: auto; }
.notes-folder { display: flex; align-items: center; gap: .55rem; padding: .45rem .6rem; border-radius: .5rem; cursor: pointer; font-size: .9rem; color: var(--tat-ink-2); user-select: none; }
.notes-folder i { color: #e6a730; font-size: 1rem; width: 1.2rem; text-align: center; }
.notes-folder span { flex: 1 1 auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.notes-folder em { font-style: normal; font-size: .75rem; color: var(--tat-muted); font-variant-numeric: tabular-nums; }
.notes-folder:hover { background: var(--tat-mist); }
.notes-folder.is-on { background: var(--tat-navy); color: #fff; }
.notes-folder.is-on i, .notes-folder.is-on em { color: rgba(255, 255, 255, .85); }
.notes-folder-menu { border: 0; background: transparent; color: inherit; opacity: 0; padding: 0 .1rem; font-size: .9rem; line-height: 1; }
.notes-folder:hover .notes-folder-menu { opacity: .7; }
.notes-list { border-right: 1px solid var(--tat-line); display: flex; flex-direction: column; min-height: 0; background: var(--tat-white); }
.notes-list-head { display: flex; align-items: center; gap: .5rem; padding: .75rem .75rem .5rem; }
.notes-search { flex: 1 1 auto; display: flex; align-items: center; gap: .4rem; background: var(--tat-mist); border-radius: .55rem; padding: .35rem .6rem; color: var(--tat-muted); }
.notes-search input { border: 0; background: transparent; outline: 0; flex: 1 1 auto; min-width: 0; font-size: .88rem; color: var(--tat-ink); }
.notes-list-head .btn-primary { border-radius: .55rem; }
.notes-list-title { font-weight: 700; font-size: 1.05rem; padding: .35rem .95rem .5rem; color: var(--tat-ink); }
.notes-items { list-style: none; margin: 0; padding: 0 .5rem .5rem; overflow-y: auto; flex: 1 1 auto; display: flex; flex-direction: column; gap: .1rem; }
.notes-item { padding: .6rem .7rem; border-radius: .55rem; cursor: pointer; border-bottom: 1px solid var(--tat-line-soft); }
.notes-item:hover { background: var(--tat-mist); }
.notes-item.is-on { background: #fdecef; border-bottom-color: transparent; }
html[data-bs-theme="dark"] .notes-item.is-on { background: #3a1b22; }
.notes-item-title { font-weight: 600; font-size: .92rem; color: var(--tat-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: .35rem; }
.notes-item-title i { color: var(--tat-amber); font-size: .8rem; }
.notes-item-sub { display: flex; align-items: baseline; gap: .5rem; font-size: .8rem; color: var(--tat-muted); margin-top: .15rem; }
.notes-item-when { color: var(--tat-ink-2); flex: 0 0 auto; }
.notes-item-preview { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.notes-empty { display: flex; flex-direction: column; align-items: center; gap: .4rem; color: var(--tat-muted); padding: 2.5rem 1rem; font-size: .9rem; }
.notes-empty i { font-size: 2rem; }
.notes-editor { display: flex; flex-direction: column; min-height: 0; background: var(--tat-white); }

/* ---- My Tasks (owner, 2026-09-23): the same three panes as My Notes, so it reuses .notes / .notes-folders /
   .notes-list wholesale. Only the task row and the detail pane are its own. Every colour is a token, so the
   dark theme follows without a second set of rules. */
.tasks-items .tasks-item { display: flex; align-items: flex-start; gap: .55rem; }
.tasks-item-body { min-width: 0; flex: 1 1 auto; }
.tasks-item.is-done .notes-item-title { color: var(--tat-muted); text-decoration: line-through; }
.tasks-tick { border: 0; background: transparent; padding: 0; line-height: 1; color: var(--tat-muted); font-size: 1.15rem; }
.tasks-tick:hover { color: var(--tat-navy); }
.tasks-tick-sm { margin-top: .1rem; }
.tasks-item.is-done .tasks-tick { color: var(--tat-green, #2f9e5f); }
.tasks-mark { color: var(--tat-red-deep); font-weight: 700; margin-right: .2rem; }
.tasks-flagged { color: #e6a730; font-size: .78rem; }
.tasks-when { color: var(--tat-ink-2); flex: 0 0 auto; }
.tasks-when.is-late { color: var(--tat-red-deep); font-weight: 600; }
.tasks-steps-count { color: var(--tat-muted); flex: 0 0 auto; font-variant-numeric: tabular-nums; }

.tasks-detail { padding: 1rem 1.15rem; overflow-y: auto; gap: .2rem; }
.tasks-detail-head { display: flex; align-items: center; gap: .5rem; }
.tasks-title { flex: 1 1 auto; border: 0; outline: 0; background: transparent; font-size: 1.25rem; font-weight: 700; color: var(--tat-ink); min-width: 0; }
.tasks-flag { border: 0; background: transparent; color: var(--tat-muted); font-size: 1rem; padding: 0 .2rem; }
.tasks-flag.is-on { color: #e6a730; }
.tasks-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem .75rem; margin: .9rem 0 .4rem; }
.tasks-field { display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.tasks-field > span { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--tat-muted); }
.tasks-kpi { border: 1px solid var(--tat-line); border-radius: .55rem; padding: .55rem .7rem; margin: .5rem 0 .2rem; }
.tasks-kpi .form-check-label { font-size: .88rem; }
.tasks-steps-head { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--tat-muted); margin: .9rem 0 .35rem; }
.tasks-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .1rem; }
.tasks-steps li { display: flex; align-items: center; gap: .45rem; padding: .25rem .3rem; border-radius: .4rem; }
.tasks-steps li:hover { background: var(--tat-mist); }
.tasks-steps li button { border: 0; background: transparent; padding: 0; color: var(--tat-ink-2); line-height: 1; }
.tasks-steps li span { flex: 1 1 auto; font-size: .9rem; color: var(--tat-ink); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tasks-steps li span.is-done { color: var(--tat-muted); text-decoration: line-through; }
.tasks-step-x { opacity: 0; color: var(--tat-muted) !important; }
.tasks-steps li:hover .tasks-step-x { opacity: .7; }
.tasks-step-add { display: flex; align-items: center; gap: .45rem; padding: .3rem .3rem; color: var(--tat-muted); }
.tasks-step-add input { border: 0; outline: 0; background: transparent; flex: 1 1 auto; font-size: .9rem; color: var(--tat-ink); min-width: 0; }
.tasks-notes { border: 1px solid var(--tat-line); border-radius: .55rem; background: var(--tat-white); color: var(--tat-ink); padding: .55rem .65rem; font-size: .9rem; min-height: 7rem; resize: vertical; outline: 0; }
.tasks-notes:focus { border-color: var(--tat-navy); }
.tasks-total { float: right; font-weight: 700; color: var(--tat-navy); letter-spacing: 0; text-transform: none; }
.tasks-timer { display: flex; align-items: center; gap: .5rem; margin-bottom: .4rem; }
.tasks-running { font-size: .82rem; color: var(--tat-red-deep); font-variant-numeric: tabular-nums; }
.tasks-sessions { list-style: none; margin: 0 0 .4rem; padding: 0; display: flex; flex-direction: column; gap: .1rem; }
.tasks-sessions li { display: flex; align-items: center; gap: .5rem; font-size: .84rem; color: var(--tat-ink-2);
  padding: .22rem .3rem; border-radius: .4rem; }
.tasks-sessions li:hover { background: var(--tat-mist); }
.tasks-sessions .tasks-span { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tasks-sessions .tasks-len { font-weight: 600; color: var(--tat-ink); font-variant-numeric: tabular-nums; }
.tasks-sessions button { border: 0; background: transparent; color: var(--tat-muted); opacity: 0; padding: 0; line-height: 1; }
.tasks-sessions li:hover button { opacity: .7; }
.tasks-session-add { display: grid; grid-template-columns: 1fr 1fr auto; gap: .35rem; }
.tasks-saved { font-size: .78rem; color: var(--tat-muted); min-height: 1.1rem; padding-top: .35rem; }

.notes-editor-blank { align-items: center; justify-content: center; color: var(--tat-muted); gap: .5rem; font-size: .95rem; }
.notes-editor-blank i { font-size: 2.6rem; color: var(--tat-line); }
.notes-toolbar { display: flex; align-items: center; gap: .5rem; padding: .5rem .85rem; border-bottom: 1px solid var(--tat-line-soft); flex-wrap: wrap; }
.notes-toolbar .btn-light { --bs-btn-bg: transparent; --bs-btn-border-color: transparent; --bs-btn-color: var(--tat-ink-2); --bs-btn-hover-bg: var(--tat-mist); --bs-btn-hover-color: var(--tat-navy); --bs-btn-active-bg: var(--tat-navy); --bs-btn-active-color: #fff; font-size: 1rem; padding: .25rem .5rem; }
.notes-toolbar .btn-group .btn-light { border-radius: .4rem !important; }
.notes-toolbar #notesPin.is-on { color: var(--tat-amber); }
.notes-saved { font-size: .75rem; color: var(--tat-muted); margin-right: .4rem; }
.notes-paper { flex: 1 1 auto; overflow-y: auto; padding: 1.4rem 3rem 3rem; max-width: 62rem; width: 100%; }
.notes-date { font-size: .78rem; color: var(--tat-muted); text-align: center; margin-bottom: .6rem; }
.notes-title { display: block; width: 100%; border: 0; outline: 0; background: transparent; font-size: 1.65rem; font-weight: 700; color: var(--tat-ink); letter-spacing: -.01em; padding: 0 0 .35rem; }
.notes-title::placeholder { color: var(--tat-line); }
.notes-body { min-height: 20rem; outline: 0; font-size: 1rem; line-height: 1.6; color: var(--tat-ink-2); }
.notes-body:empty::before { content: "Start writing, or paste a picture…"; color: var(--tat-muted); }
.notes-body h1 { font-size: 1.4rem; font-weight: 700; margin: 1rem 0 .4rem; }
.notes-body h2 { font-size: 1.15rem; font-weight: 700; margin: .9rem 0 .3rem; }
.notes-body h3 { font-size: 1rem; font-weight: 700; margin: .8rem 0 .3rem; }
.notes-body p { margin: 0 0 .5rem; }
.notes-body blockquote { border-left: 3px solid var(--tat-red); margin: .6rem 0; padding: .2rem .9rem; color: var(--tat-muted); }
.notes-body pre, .notes-body code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .88em; background: var(--tat-mist); border-radius: .35rem; padding: .1rem .3rem; }
.notes-body pre { padding: .6rem .8rem; overflow-x: auto; }
.notes-body img { max-width: 100%; height: auto; border-radius: .6rem; box-shadow: var(--tat-shadow); margin: .4rem 0; display: block; }
.notes-body a { color: var(--tat-blue-ink); text-decoration: underline; text-underline-offset: .15em; }
.notes-body table { border-collapse: collapse; margin: .6rem 0; width: 100%; }
.notes-body td, .notes-body th { border: 1px solid var(--tat-line); padding: .35rem .6rem; min-width: 4rem; }
.notes-body hr { border: 0; border-top: 1px solid var(--tat-line); margin: 1rem 0; }
.notes-body mark { background: #fff3a3; border-radius: .2rem; padding: 0 .1rem; }
.notes-body ul.checklist { list-style: none; padding-left: 0; margin: .3rem 0 .6rem; }
.notes-body li.checklist-item { position: relative; padding-left: 1.9rem; min-height: 1.6rem; }
.notes-body li.checklist-item::before { content: ""; position: absolute; left: .15rem; top: .3rem; width: 1.1rem; height: 1.1rem; border: 1.5px solid var(--tat-muted); border-radius: 50%; cursor: pointer; transition: background .12s, border-color .12s; }
.notes-body li.checklist-item[data-checked="true"]::before { background: var(--tat-red); border-color: var(--tat-red); box-shadow: inset 0 0 0 2px var(--tat-white); }
.notes-body li.checklist-item[data-checked="true"] { color: var(--tat-muted); text-decoration: line-through; }
.notes-files { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.2rem; }
.notes-file { display: inline-flex; align-items: center; gap: .5rem; border: 1px solid var(--tat-line); border-radius: .55rem; padding: .35rem .65rem; font-size: .85rem; background: var(--tat-canvas); }
.notes-file a { display: inline-flex; align-items: center; gap: .35rem; color: var(--tat-ink); font-weight: 600; }
.notes-file small { color: var(--tat-muted); }
html[data-orientation="portrait"] .notes { grid-template-columns: 12rem 16rem 1fr; }
html[data-bs-theme="dark"] .tat-dialog .modal-content { box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .8); border: 1px solid var(--tat-line); }
html[data-bs-theme="dark"] .tat-dialog-icon { background: #383b52; color: var(--tat-ink); }
html[data-bs-theme="dark"] .tat-dialog .tat-dialog-yes { background: var(--tat-red); border-color: var(--tat-red); }
html[data-bs-theme="dark"] .tat-dialog .tat-dialog-yes:hover { background: var(--tat-red-deep); border-color: var(--tat-red-deep); }
html[data-bs-theme="dark"] .notes-folders-head .btn, html[data-bs-theme="dark"] .notes-toolbar .btn-light { --bs-btn-color: var(--tat-ink-2); color: var(--tat-ink-2); }
html[data-bs-theme="dark"] .notes-folder.is-on { background: #383b52; }
html[data-bs-theme="dark"] .notes-title::placeholder { color: var(--tat-line); }
/* navy as a text colour reads as black on the dark surfaces: these lines go light */
html[data-bs-theme="dark"] .table tbody td a.fw-semibold, html[data-bs-theme="dark"] .crm-perf-row > strong, html[data-bs-theme="dark"] .crm-act-icon,
html[data-bs-theme="dark"] .crm-ring-text strong, html[data-bs-theme="dark"] .crm-donut-center strong,
html[data-bs-theme="dark"] .viz-donut-center strong, html[data-bs-theme="dark"] .crm-barrow-head strong { color: var(--tat-ink); }
html[data-bs-theme="dark"] .table tbody td a.fw-semibold:hover { color: #ff8a97; }
html[data-bs-theme="dark"] .table-list > tbody > tr { --row-bg: var(--tat-white); }
html[data-bs-theme="dark"] .table-list > thead > tr { --row-bg: #262939; }
html[data-bs-theme="dark"] .table-list.table-hover > tbody > tr:hover { --row-bg: #262939; }
html[data-bs-theme="dark"] .table-list > tbody > tr.table-secondary { --row-bg: #262939; }
/* tinted badges and alerts: the same tone, lit for the dark surfaces */
html[data-bs-theme="dark"] .badge.text-bg-primary { color: #9cc4f5 !important; }
html[data-bs-theme="dark"] .badge.text-bg-success { color: #4fc79e !important; }
html[data-bs-theme="dark"] .badge.text-bg-danger { color: #ff8a97 !important; }
html[data-bs-theme="dark"] .badge.text-bg-warning { color: #f0c674 !important; }
html[data-bs-theme="dark"] .badge.text-bg-info { background-color: #16303a !important; color: #7fd4ea !important; }
html[data-bs-theme="dark"] .badge.text-bg-dark { background-color: #383b52 !important; }
html[data-bs-theme="dark"] .alert-success { --bs-alert-border-color: #1f5a45; --bs-alert-color: #7fe0b8; }
html[data-bs-theme="dark"] .alert-danger { --bs-alert-border-color: #6b1f2b; --bs-alert-color: #ff8a97; }
html[data-bs-theme="dark"] .alert-warning { --bs-alert-border-color: #6b4a12; --bs-alert-color: #f0c674; }
html[data-bs-theme="dark"] .alert-info { --bs-alert-border-color: #2b4370; --bs-alert-color: #9cc4f5; }
html[data-bs-theme="dark"] .text-success { color: #4fc79e !important; }
html[data-bs-theme="dark"] .text-danger { color: #ff7b8b !important; }
html[data-bs-theme="dark"] .text-warning { color: #f0c674 !important; }
html[data-bs-theme="dark"] .text-primary { color: #9cc4f5 !important; }
html[data-bs-theme="dark"] .text-info { color: #7fd4ea !important; }
html[data-bs-theme="dark"] .btn-dark { --bs-btn-bg: #e9ecf5; --bs-btn-border-color: #e9ecf5; --bs-btn-color: #1e2030; --bs-btn-disabled-bg: #e9ecf5; --bs-btn-disabled-border-color: #e9ecf5; --bs-btn-disabled-color: #1e2030; --bs-btn-hover-bg: #fff; --bs-btn-hover-color: #1e2030; }
html[data-bs-theme="dark"] .btn-outline-success { --bs-btn-color: #4fc79e; --bs-btn-border-color: #2c7a5e; }
html[data-bs-theme="dark"] .btn-outline-danger { --bs-btn-color: #ff8a97; --bs-btn-border-color: #8a2a38; }
html[data-bs-theme="dark"] .btn-outline-primary { --bs-btn-color: #9cc4f5; --bs-btn-border-color: #3d5f96; }
html[data-bs-theme="dark"] .btn-primary:disabled, html[data-bs-theme="dark"] .btn-primary.disabled { background: #6b2a34; border-color: #6b2a34; color: #d9a3ab; }
html[data-bs-theme="dark"] .btn-link { color: #9cc4f5; }
html[data-bs-theme="dark"] .crm-stage-btn { border-color: color-mix(in srgb, var(--t) 55%, #1e2030); background: color-mix(in srgb, var(--t) 18%, #1e2030); color: #e9ecf5; }
html[data-bs-theme="dark"] .crm-stage-btn:hover { background: color-mix(in srgb, var(--t) 30%, #1e2030); }
html[data-bs-theme="dark"] .crm-stage-btn.is-current { background: var(--t); color: #fff; }
/* the .tone-* colours are --viz tokens, which already turn with the theme */
/* the thread-pipeline tiles and stage chips mixed their tint into white, which left pale tiles with pale text in the dark theme: mix into the dark surface instead */
html[data-bs-theme="dark"] .crm-funnel-step { background: color-mix(in srgb, var(--t) 14%, var(--viz-surface)); color: var(--viz-ink); }
html[data-bs-theme="dark"] .crm-funnel-step:hover { background: color-mix(in srgb, var(--t) 24%, var(--viz-surface)); color: var(--viz-ink); }
html[data-bs-theme="dark"] .crm-funnel-bar { background: color-mix(in srgb, var(--t) 24%, var(--viz-surface)); }
html[data-bs-theme="dark"] .crm-stage { background: color-mix(in srgb, var(--t) 22%, var(--viz-surface)); }

@keyframes lt-spin { to { transform: rotate(360deg); } }
/* The tracking box's Refresh: a wheel that turns while the pull runs. */
.tat-wheel-btn { display: inline-flex; align-items: center; gap: .35rem; }
.tat-wheel { flex: 0 0 auto; }
form.is-busy .tat-wheel { animation: lt-spin .7s linear infinite; }

/* The open track in the Status & tracking box (owner, 2026-09-23: "properly aligned"): one grid for the facts and
   the notices, a timeline for the milestones — labels on the left edge, times flush right in tabular figures. */
.trk-facts { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: .75rem; row-gap: .2rem; margin: .35rem 0; }
.trk-what { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trk-when { text-align: right; white-space: nowrap; color: var(--tat-muted); font-variant-numeric: tabular-nums; }
.trk-facts .trk-what { color: var(--tat-muted); }
.trk-facts .trk-when.fw-semibold { color: var(--tat-ink); }
.trk-notice { display: flex; align-items: center; gap: .4rem; margin: .3rem 0; padding: .3rem .55rem; border-radius: .45rem;
  font-weight: 600; color: #8a5a00; background: var(--tat-warn-tint, rgba(230, 167, 48, .14)); }
.trk-notice.is-error { color: #a4121f; background: rgba(200, 16, 46, .10); }
.trk-timeline { list-style: none; margin: .5rem 0 .25rem; padding: 0; position: relative; }
.trk-timeline::before { content: ""; position: absolute; left: .3rem; top: .55rem; bottom: .55rem; width: 2px; background: var(--tat-line); }
.trk-timeline li { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: .75rem;
  align-items: center; padding: .15rem 0 .15rem 1.2rem; }
.trk-timeline li::before { content: ""; position: absolute; left: 0; top: 50%; width: .65rem; height: .65rem; margin-top: -.325rem;
  border-radius: 50%; background: var(--tat-white); border: 2px solid var(--tat-muted); }
.trk-timeline li.is-latest::before { background: var(--tat-red); border-color: var(--tat-red); }
.trk-timeline li.is-latest .trk-what { font-weight: 600; }
.trk-started { margin-top: .4rem; color: var(--tat-muted); font-size: .8rem; }
html[data-bs-theme="dark"] .trk-notice { color: #f0c36b; background: rgba(230, 167, 48, .16); }
html[data-bs-theme="dark"] .trk-notice.is-error { color: #ff8a95; background: rgba(200, 16, 46, .18); }

/* The stage buttons on the load page: an even grid, four to a row, so the second row (At Delivery, Delivered,
   Cancelled) lines up under the first instead of Cancelled being pushed to the far edge (owner, 2026-09-23). */
.stage-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .3rem; }   /* three to a row: the right column is 322px, and a name is never cut */
.stage-grid form { margin: 0; min-width: 0; }
.stage-grid .btn { width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  padding-left: .25rem; padding-right: .25rem; font-size: .8rem; }
/* the 340px right column of a window under 1200 wide: the chips drop to 10px rather than lose a letter of a label */
html[data-shell="fixed"][data-shell-narrow="1"] .stage-grid .btn { font-size: 10px; padding-left: .15rem; padding-right: .15rem; }


/* ==== The premium finish (owner, 2026-10-02: "update the whole UI of Haulmark more premium look as you've done with
   onboarding portal. Don't change any feature option/button keep it as it is"). The portal's quality on the same
   layout: rounder corners and a soft two-layer elevation (the tokens at the top), hairline borders, heavier titles,
   one field look with one focus ring, pill buttons with depth, a quiet row hover with a red edge. Looks only - nothing
   is added, moved or hidden. Every colour is a token or the navy shell's fixed white; the dark lines close the block. */

/* the page head: see .page-bar below (owner ticket, 2026-10-18) */
.section-title { color: var(--tat-ink-2); letter-spacing: .1em; }

/* cards and form panels: a hairline all round, the panel's colour rail kept, refined heads */
.card-header { font-weight: 700; letter-spacing: -.005em; padding: .85rem 1.2rem; }
.fpanel { border: 1px solid var(--tat-line); border-left: 4px solid var(--fp, var(--tat-navy)); }
.fpanel-head { padding: .8rem 1.2rem; background: linear-gradient(180deg, var(--tat-white), var(--tat-white-2)); border-top-right-radius: calc(var(--tat-radius) - 1px); }
.fpanel-icon { width: 2.3rem; height: 2.3rem; border-radius: .7rem; font-size: 1.05rem; }
.fpanel-title { font-size: .74rem; letter-spacing: .1em; color: var(--tat-ink); }
.alert { border-radius: var(--tat-radius-sm); box-shadow: var(--tat-shadow-sm); }

/* stat tiles: the rail lit from above and a faint glow of its tone behind the icon */
.card-stat { --st: var(--tat-navy); background: radial-gradient(18rem 10rem at 100% 0%, color-mix(in srgb, var(--st) 9%, transparent), transparent 70%), var(--tat-white); }
.card-stat.stat-accent { --st: var(--tat-red); } .card-stat.stat-green { --st: var(--tat-green); } .card-stat.stat-amber { --st: var(--tat-amber); }
.card-stat::before, .card-stat.stat-accent::before, .card-stat.stat-green::before, .card-stat.stat-amber::before {
  background: linear-gradient(180deg, color-mix(in srgb, var(--st) 65%, white), var(--st)); }
.card-stat .stat-value { letter-spacing: -.025em; }
.card-stat .stat-icon { width: 40px; height: 40px; border-radius: 12px; }

/* tables: rows on the card's own white (Bootstrap painted them the page's grey, beside white pinned cells), a little
   more air per row (never wider), a quiet hover with a red edge, no line above the card's foot */
.table { --bs-table-bg: transparent; }
.table td { padding-top: .78rem; padding-bottom: .78rem; }
.table > thead th { padding-top: .72rem; padding-bottom: .72rem; letter-spacing: .09em; }
.table-hover > tbody > tr:hover > :first-child:not(.cell-sticky) {
  box-shadow: inset 3px 0 0 var(--tat-red), inset 0 0 0 9999px var(--bs-table-bg-state, var(--bs-table-bg-type, var(--bs-table-accent-bg))); }
.table-list.table-hover > tbody > tr:hover > .cell-sticky:first-child { box-shadow: inset 3px 0 0 var(--tat-red); }
.table-list.table-hover > tbody > tr:hover > .cell-sticky.cell-num:first-child { box-shadow: inset 3px 0 0 var(--tat-red), 1px 0 0 var(--tat-line-soft); }
.card .table > tbody:last-child > tr:last-child > * { border-bottom-width: 0; }

/* forms: one border, a hover, the portal's 4px focus ring */
.form-control, .form-select { box-shadow: 0 1px 1px rgba(16, 24, 40, .04); }
.form-control:hover:not(:focus):not(:disabled), .form-select:hover:not(:focus):not(:disabled) { border-color: var(--tat-field-hover); }
.form-control:focus, .form-select:focus { border-color: var(--tat-navy); box-shadow: 0 0 0 4px var(--tat-ring); }
.form-control.is-invalid:focus, .form-select.is-invalid:focus { border-color: var(--tat-red); box-shadow: 0 0 0 4px rgba(239, 35, 60, .14); }
.form-label { color: var(--tat-ink); letter-spacing: .005em; }
.form-check-input { border-color: var(--tat-field); }
.form-check-input:focus { box-shadow: 0 0 0 4px var(--tat-ring); }

/* buttons: pills with depth - the signal red lit from above, the outlines on a white face with a hairline shadow */
.btn { --bs-btn-focus-box-shadow: 0 0 0 4px var(--tat-ring); }
.btn-primary { background-image: linear-gradient(180deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, 0) 55%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 8px 18px -10px rgba(239, 35, 60, .75); }
.btn-primary:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 12px 24px -10px rgba(239, 35, 60, .8); transform: translateY(-1px); }
.btn-primary:active, .btn-primary.active { transform: translateY(1px); box-shadow: inset 0 2px 4px rgba(0, 0, 0, .18); }
.btn-primary:focus-visible { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 0 0 4px rgba(239, 35, 60, .22); }
.btn-primary:disabled, .btn-primary.disabled { background-image: none; box-shadow: none; transform: none; }
.btn-outline-primary, .btn-outline-danger, .btn-outline-success, .btn-outline-dark { --bs-btn-bg: var(--tat-white); }
.btn-outline-secondary, .btn-outline-primary, .btn-outline-danger, .btn-outline-success, .btn-outline-dark, .btn-light { box-shadow: 0 1px 2px rgba(31, 33, 51, .07); }
.btn-outline-secondary:hover, .btn-outline-primary:hover, .btn-outline-danger:hover, .btn-outline-success:hover, .btn-outline-dark:hover { box-shadow: 0 6px 14px -8px rgba(31, 33, 51, .45); }
.tat-dialog .tat-dialog-yes { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 8px 18px -10px rgba(31, 33, 51, .6); }
.tat-dialog.is-danger .tat-dialog-yes { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 8px 18px -10px rgba(239, 35, 60, .75); }

/* badges: the tint ringed in its own colour */
.badge { letter-spacing: .02em; box-shadow: inset 0 0 0 1px color-mix(in srgb, currentColor 16%, transparent); }

/* the shell: the navy lit from the top, a red edge on the open page */
.app-side { background: linear-gradient(180deg, var(--tat-navy) 0%, var(--tat-navy-deep) 100%); }
.side-link { position: relative; }
.side-link:hover { background: rgba(255, 255, 255, .07); }
.side-group.active, .side-group.active:hover { background: rgba(255, 255, 255, .08); }
.side-nav > .side-link.active::before { content: ""; position: absolute; left: -.7rem; top: .55rem; bottom: .55rem; width: 3px; border-radius: 0 3px 3px 0;
  background: var(--tat-red); box-shadow: 0 0 10px rgba(239, 35, 60, .7); }

/* menus, dialogs, toasts, the calendar: one floating look */
.dropdown-menu { border-color: var(--tat-line); border-radius: var(--tat-radius); box-shadow: var(--tat-shadow-pop); }
.dropdown-item { border-radius: .5rem; transition: background .1s, color .1s; }
.modal-content { border-radius: 1rem; box-shadow: var(--tat-shadow-pop); }
.modal-header { padding: 1rem 1.35rem; border-bottom-color: var(--tat-line-soft); }
.modal-header .modal-title { font-weight: 700; letter-spacing: -.01em; }
.modal-footer { border-top-color: var(--tat-line-soft); }
.tat-dialog .modal-content { border-radius: 1.1rem; }
.tat-dialog-icon { width: 56px; height: 56px; border-radius: 1rem; color: #fff; text-shadow: 0 1px 1px rgba(0, 0, 0, .35);
  background: linear-gradient(160deg, #3d6a9c, var(--tat-navy) 60%, #06182b);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), inset 0 -1px 0 rgba(0, 0, 0, .25), 0 10px 22px -8px rgba(11, 42, 74, .55); }
.tat-dialog.is-danger .tat-dialog-icon { color: #fff; background: linear-gradient(160deg, #ff5a6e, var(--tat-red) 55%, #a50d25);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), inset 0 -1px 0 rgba(0, 0, 0, .25), 0 10px 22px -8px rgba(239, 35, 60, .6); }
.notif-toast { border: 1px solid var(--tat-line); border-left: 4px solid var(--tat-red); border-radius: var(--tat-radius); box-shadow: var(--tat-shadow-pop); }
.flatpickr-calendar.tat-picker { border-color: var(--tat-line); border-radius: 1rem; box-shadow: var(--tat-shadow-pop); }
.tat-picker .flatpickr-day.selected, .tat-picker .flatpickr-day.selected:hover, .tat-picker .flatpickr-day.selected:focus {
  background: linear-gradient(160deg, var(--tat-navy-soft), var(--tat-navy) 60%, var(--tat-navy-deep)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 6px 14px -6px rgba(43, 45, 66, .6); }

/* tabs: the pills in navy (they were Bootstrap's blue), the tabs quiet */
.nav-pills { --bs-nav-pills-border-radius: 999px; --bs-nav-pills-link-active-bg: var(--tat-navy); --bs-nav-pills-link-active-color: #fff;
  --bs-nav-link-color: var(--tat-ink-2); --bs-nav-link-hover-color: var(--tat-ink); }
.nav-pills .nav-link { font-weight: 600; transition: background .12s, color .12s; }
.nav-pills .nav-link:not(.active):hover { background: var(--tat-mist); }
.nav-pills .nav-link.active { box-shadow: 0 6px 14px -8px rgba(31, 33, 51, .6); }
.nav-tabs { --bs-nav-tabs-border-color: var(--tat-line); --bs-nav-link-color: var(--tat-muted); --bs-nav-link-hover-color: var(--tat-ink);
  --bs-nav-tabs-link-active-color: var(--tat-ink); --bs-nav-tabs-link-active-bg: var(--tat-white); }
.nav-tabs .nav-link { font-weight: 600; }

/* motion stays where it was: no lift with Animations off or reduced motion */
html[data-motion="off"] .btn-primary:hover, html[data-motion="off"] .card-stat:hover, html[data-motion="off"] .crm-tile:hover { transform: none; }
@media (prefers-reduced-motion: reduce) { .btn-primary:hover, .card-stat:hover, .crm-tile:hover { transform: none; } }

/* the same finish, dark */
html[data-bs-theme="dark"] .card-stat { background: radial-gradient(18rem 10rem at 100% 0%, color-mix(in srgb, var(--st) 16%, transparent), transparent 70%), var(--tat-white); }
html[data-bs-theme="dark"] .card-stat:not(.stat-accent):not(.stat-green):not(.stat-amber) { --st: #6f86c9; }
html[data-bs-theme="dark"] .form-control:focus, html[data-bs-theme="dark"] .form-select:focus { border-color: #6f86c9; }
html[data-bs-theme="dark"] .tat-dialog-icon { background: linear-gradient(160deg, #6f86c9, #3d4f8f 60%, #1f2a55); color: #fff; }
html[data-bs-theme="dark"] .nav-pills { --bs-nav-pills-link-active-bg: #3d4f8f; }
html[data-bs-theme="dark"] .btn-outline-secondary, html[data-bs-theme="dark"] .btn-outline-primary, html[data-bs-theme="dark"] .btn-outline-danger,
html[data-bs-theme="dark"] .btn-outline-success, html[data-bs-theme="dark"] .btn-outline-dark, html[data-bs-theme="dark"] .btn-light { box-shadow: 0 1px 2px rgba(0, 0, 0, .3); }

/* ==== The portal look (owner, 2026-10-02): the portal's 18px corners and deeper floating shadow on every card (the tokens at the top)
   and a faint light on the canvas. Its navy page-head hero was replaced by the plain page header below (owner, 2026-10-25). */
/* ==== The page header (owner order, 2026-10-25: "build exactly like the reference"). It replaces the 44px navy page bar: a
   plain head - the title at 28px / 600, the grey count or subtitle on the same baseline beside it, the actions at the right
   as pills (red for the main one, grey for the rest, a soft tint for danger / success / warning). One partial draws it
   (base.html `page_header`), so this is the only place it is styled. Not sticky. Reference: .pg-head, .pg-title, .pg-sub
   and .btn in docs/ui-reference/haulmark-dashboard.html. The class names stay (`page-bar`, `page-title`, ...), so no
   page template changes. No width media queries. */
.page-bar { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin: 6px 0 14px;
  --pb-soft: var(--hm-soft); color: var(--hm-fg); font-size: 14px; line-height: 1.45; }
html[data-bs-theme="dark"] .page-bar { --pb-soft: #262939; }   /* the reference's dark --soft */
.pg-ttl { display: flex; align-items: baseline; flex-wrap: wrap; gap: 12px; min-width: 0; }
.page-bar h1.page-title { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; margin: 0; color: var(--hm-ink);
  font-size: 28px; font-weight: 600; letter-spacing: -.025em; line-height: 1.1; }
.page-bar .page-title .badge { font-size: 11px; font-weight: 600; letter-spacing: 0; padding: 3px 8px; }
.page-bar .page-title .text-secondary, .page-bar .page-title .fw-normal { color: var(--hm-fg2) !important; font-size: 13px; font-weight: 400; letter-spacing: 0; }
.page-count { color: var(--hm-fg2); font-size: 13px; }
.page-count:empty { display: none; }
/* No page title and no count in the page head (owner, 2026-10-27: "remove the page heading texts from every page"): the sidebar names the
   page and the tiles hold the numbers. The words stay in the page for screen readers. base.html leaves `pb-notitle` off a page about one
   record, so that heading stays. A head with nothing else in it takes no room. */
.page-bar { position: relative; }
.page-bar.pb-notitle h1.page-title, .page-bar.pb-notitle .page-count { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.page-bar.pb-notitle:not(:has(.page-crumb, .page-bar-actions > *)) { margin: 0; }
.page-crumb { display: inline-flex; align-items: center; gap: 3px; color: var(--hm-fg2); font-size: 13px; text-decoration: none; white-space: nowrap; }
.page-crumb:hover { color: var(--hm-ink); text-decoration: none; }   /* no underlines anywhere (owner, 2026-10-05) */
.page-crumb + h1.page-title { padding-left: 12px; border-left: 1px solid var(--hm-line); }
.page-bar-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.page-bar-actions > form { display: inline-flex; margin: 0; }
.page-bar .ix-live { margin: 0 4px 0 0; font-size: 12px; font-weight: 400; color: var(--hm-fg2); }
.page-bar .ix-live i { width: 6px; height: 6px; }
/* the buttons: the reference's .btn - 13px, 9px 18px, a full pill, no border; red .acc, grey .gry */
.page-bar .btn {
  --bs-btn-padding-y: 9px; --bs-btn-padding-x: 18px; --bs-btn-font-size: 13px; --bs-btn-font-weight: 500; --bs-btn-border-radius: 99px; --bs-btn-border-width: 0;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 18px; border: 0; border-radius: 99px;
  font-size: 13px; font-weight: 500; line-height: 1.45; letter-spacing: normal; white-space: nowrap; box-shadow: none; background-image: none !important;
  transition: transform .12s, opacity .12s; }
.page-bar .btn:hover { opacity: .9; }
.page-bar .btn:active { transform: scale(.98); }
.page-bar .btn i.bi { margin: 0 !important; font-size: 16px; line-height: 1; }
.page-bar .btn-primary, .page-bar .btn-danger {
  --bs-btn-color: #fff; --bs-btn-bg: var(--tat-red); --bs-btn-border-color: transparent;
  --bs-btn-hover-color: #fff; --bs-btn-hover-bg: var(--tat-red-deep); --bs-btn-hover-border-color: transparent;
  --bs-btn-active-color: #fff; --bs-btn-active-bg: var(--tat-red-deep); --bs-btn-active-border-color: transparent;
  --bs-btn-disabled-color: #fff; --bs-btn-disabled-bg: var(--tat-red); --bs-btn-disabled-border-color: transparent;
  color: #fff; background-color: var(--tat-red); box-shadow: 0 6px 16px -8px color-mix(in srgb, var(--tat-red) 80%, transparent); }
.page-bar .btn-primary:hover, .page-bar .btn-danger:hover { background-color: var(--tat-red-deep); color: #fff; opacity: 1; }
.page-bar .btn-dark {
  --bs-btn-color: var(--hm-panel); --bs-btn-bg: var(--hm-ink); --bs-btn-border-color: transparent;
  --bs-btn-hover-color: var(--hm-panel); --bs-btn-hover-bg: var(--hm-ink); --bs-btn-hover-border-color: transparent;
  --bs-btn-active-color: var(--hm-panel); --bs-btn-active-bg: var(--hm-ink); --bs-btn-active-border-color: transparent;
  color: var(--hm-panel); background-color: var(--hm-ink); }
.page-bar .btn-outline-secondary, .page-bar .btn-outline-primary, .page-bar .btn-outline-dark, .page-bar .btn-outline-light, .page-bar .btn-light, .page-bar .btn-secondary, .page-bar .btn-link {
  --bs-btn-color: var(--hm-fg2); --bs-btn-bg: var(--pb-soft); --bs-btn-border-color: transparent;
  --bs-btn-hover-color: var(--hm-fg2); --bs-btn-hover-bg: var(--pb-soft); --bs-btn-hover-border-color: transparent;
  --bs-btn-active-color: var(--hm-fg2); --bs-btn-active-bg: var(--pb-soft); --bs-btn-active-border-color: transparent;
  --bs-btn-disabled-color: var(--hm-fg2); --bs-btn-disabled-bg: var(--pb-soft); --bs-btn-disabled-border-color: transparent;
  color: var(--hm-fg2); background-color: var(--pb-soft); font-weight: 400; text-decoration: none; }
.page-bar .btn-outline-secondary.show, .page-bar .btn-outline-secondary:active { color: var(--hm-fg2); background-color: var(--pb-soft); }
/* the dark theme gives every outline / light button a faint shadow (line ~1772); the reference pills are flat */
html[data-bs-theme="dark"] .page-bar :is(.btn-outline-secondary, .btn-outline-primary, .btn-outline-danger, .btn-outline-success, .btn-outline-dark, .btn-outline-light, .btn-light) { box-shadow: none; }
/* the list pages (Loads, Customers, Carriers, Receivables, Payables; `pb-lnk` from page_bar_class): their secondary actions are the
   reference's .lnk - a white pill with a 1px line, 12px / 500, 14px icon - beside the red pill; the other pages keep the grey pill */
.page-bar.pb-lnk :is(.btn-outline-secondary, .btn-outline-primary, .btn-outline-dark, .btn-outline-light, .btn-light, .btn-secondary) {
  --bs-btn-color: var(--hm-fg); --bs-btn-bg: var(--hm-panel); --bs-btn-border-color: var(--hm-line);
  --bs-btn-hover-color: var(--hm-fg); --bs-btn-hover-bg: var(--hm-soft); --bs-btn-hover-border-color: var(--hm-line2);
  --bs-btn-active-color: var(--hm-fg); --bs-btn-active-bg: var(--hm-soft); --bs-btn-active-border-color: var(--hm-line2);
  padding: 6px 14px; font-size: 12px; font-weight: 500; color: var(--hm-fg); background-color: var(--hm-panel); border: 1px solid var(--hm-line); }
.page-bar.pb-lnk :is(.btn-outline-secondary, .btn-outline-primary, .btn-outline-dark, .btn-outline-light, .btn-light, .btn-secondary):hover {
  color: var(--hm-fg); background-color: var(--hm-soft); border-color: var(--hm-line2); opacity: 1; }
.page-bar.pb-lnk :is(.btn-outline-secondary, .btn-outline-primary, .btn-outline-dark, .btn-outline-light, .btn-light, .btn-secondary) i.bi { font-size: 14px; }
.page-bar .btn-outline-danger, .page-bar .btn-outline-success, .page-bar .btn-outline-warning {
  --bs-btn-border-color: transparent; --bs-btn-hover-border-color: transparent; --bs-btn-active-border-color: transparent; --bs-btn-hover-color: #fff; --bs-btn-active-color: #fff; }
.page-bar .btn-outline-danger { --bs-btn-color: var(--tat-red-ink); --bs-btn-bg: color-mix(in srgb, var(--tat-red) 12%, transparent); --bs-btn-hover-bg: var(--tat-red); --bs-btn-active-bg: var(--tat-red);
  color: var(--tat-red-ink); background-color: color-mix(in srgb, var(--tat-red) 12%, transparent); }
.page-bar .btn-outline-success { --bs-btn-color: var(--tat-green); --bs-btn-bg: color-mix(in srgb, var(--tat-green) 12%, transparent); --bs-btn-hover-bg: var(--tat-green); --bs-btn-active-bg: var(--tat-green);
  color: var(--tat-green); background-color: color-mix(in srgb, var(--tat-green) 12%, transparent); }
.page-bar .btn-outline-warning { --bs-btn-color: var(--tat-amber); --bs-btn-bg: color-mix(in srgb, var(--tat-amber) 12%, transparent); --bs-btn-hover-bg: var(--tat-amber); --bs-btn-active-bg: var(--tat-amber);
  color: var(--tat-amber); background-color: color-mix(in srgb, var(--tat-amber) 12%, transparent); }
.page-bar .btn-outline-danger:hover, .page-bar .btn-outline-success:hover, .page-bar .btn-outline-warning:hover { color: #fff; opacity: 1; }
.page-bar .btn-outline-danger:hover { background-color: var(--tat-red); }
.page-bar .btn-outline-success:hover { background-color: var(--tat-green); }
.page-bar .btn-outline-warning:hover { background-color: var(--tat-amber); }
/* the cards lift a little more under the pointer where they are links (the stat tiles), like the portal's tiles */
.card { transition: box-shadow .18s ease, transform .18s ease; }
a.card:hover, .card.card-link:hover { box-shadow: var(--tat-shadow-hover); transform: translateY(-2px); }
html[data-motion="off"] .card, html[data-motion="off"] a.card:hover { transition: none; transform: none; }
@media (prefers-reduced-motion: reduce) { .card, a.card:hover { transition: none; transform: none; } }

/* ==== Every card a load-form tile (owner, 2026-10-02 23:2x, on the Commissions page: "I need these tiles also in most
   premium feel within same color as it was earlier but these will look more premium same as the tiles of loads ...
   every page should be look premium level not only headings"). Each card with a head takes the load form's panel
   (`.fpanel`): a colour rail down its left, the head on a soft gradient, the head's own icon raised into the same 3D tile,
   a simple head's title in the panel's small capitals. The rail's colour follows the head's icon, from the panels' own
   palette: money teal, the road blue, paperwork amber, checks green, warnings red, the rest navy. Totals rows sit on a
   tint under a firmer rule. Markup untouched: the same heads, icons, buttons and tabs. */
.card:has(> .card-header) { border-left: 4px solid var(--fp, var(--tat-navy)) !important; }
.card > .card-header { background-image: linear-gradient(180deg, var(--tat-white), var(--tat-white-2)); border-bottom: 1px solid var(--tat-line-soft);
  color: var(--tat-ink); min-height: 3.55rem; display: flex; flex-wrap: wrap; align-items: center; column-gap: .5rem; row-gap: .4rem;
  border-top-right-radius: calc(var(--tat-radius) - 1px); }
.card > .card-header:has(> .card-header-tabs, > .nav) { display: block; min-height: 0; }
.card > .card-header.fw-semibold { font-size: .76rem; font-weight: 700 !important; letter-spacing: .09em; text-transform: uppercase; }
.card > .card-header.fw-semibold :is(a, .btn, .badge, small, .small, input, select, .form-control, .form-select, .dropdown-menu, .text-secondary) {
  text-transform: none; letter-spacing: normal; }
.card > .card-header > i.bi:first-child, .card > .card-header > span:first-child > i.bi:first-child {
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 2.3rem; height: 2.3rem; margin-right: .55rem !important;
  border-radius: .7rem; font-size: 1.05rem; color: #fff; vertical-align: middle; letter-spacing: normal;
  background: linear-gradient(160deg, color-mix(in srgb, var(--fp, var(--tat-navy)) 55%, white), var(--fp, var(--tat-navy)) 60%, color-mix(in srgb, var(--fp, var(--tat-navy)) 70%, black));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), inset 0 -1px 0 rgba(0, 0, 0, .2), 0 4px 10px -3px color-mix(in srgb, var(--fp, var(--tat-navy)) 70%, transparent);
  text-shadow: 0 1px 1px rgba(0, 0, 0, .3);
}
.card > .card-header > span:first-child:has(> i.bi:first-child) { display: inline-flex; align-items: center; }
.card:has(> .card-header > i.bi:first-child:is(.bi-cash-coin, .bi-cash, .bi-cash-stack, .bi-currency-exchange, .bi-currency-dollar, .bi-wallet2, .bi-bank, .bi-receipt, .bi-graph-up-arrow, .bi-graph-up, .bi-percent, .bi-piggy-bank, .bi-coin), > .card-header > span:first-child > i.bi:first-child:is(.bi-cash-coin, .bi-cash, .bi-cash-stack, .bi-currency-exchange, .bi-currency-dollar, .bi-wallet2, .bi-bank, .bi-receipt, .bi-graph-up-arrow, .bi-graph-up, .bi-percent, .bi-piggy-bank, .bi-coin)) { --fp: #0f7b5f; }
.card:has(> .card-header > i.bi:first-child:is(.bi-truck, .bi-signpost-split, .bi-arrow-left-right, .bi-geo-alt, .bi-send, .bi-map, .bi-pin-map), > .card-header > span:first-child > i.bi:first-child:is(.bi-truck, .bi-signpost-split, .bi-arrow-left-right, .bi-geo-alt, .bi-send, .bi-map, .bi-pin-map)) { --fp: #256abf; }
.card:has(> .card-header > i.bi:first-child:is(.bi-file-earmark-pdf, .bi-file-earmark-text, .bi-folder2-open, .bi-pen, .bi-envelope-paper, .bi-card-text, .bi-journal-plus, .bi-clipboard2-check, .bi-paperclip, .bi-files), > .card-header > span:first-child > i.bi:first-child:is(.bi-file-earmark-pdf, .bi-file-earmark-text, .bi-folder2-open, .bi-pen, .bi-envelope-paper, .bi-card-text, .bi-journal-plus, .bi-clipboard2-check, .bi-paperclip, .bi-files)) { --fp: #d98c00; }
.card:has(> .card-header > i.bi:first-child:is(.bi-shield-check, .bi-person-check, .bi-check2-square, .bi-patch-check), > .card-header > span:first-child > i.bi:first-child:is(.bi-shield-check, .bi-person-check, .bi-check2-square, .bi-patch-check)) { --fp: #198754; }
.card:has(> .card-header > i.bi:first-child:is(.bi-exclamation-triangle, .bi-exclamation-octagon, .bi-x-octagon), > .card-header > span:first-child > i.bi:first-child:is(.bi-exclamation-triangle, .bi-exclamation-octagon, .bi-x-octagon)) { --fp: #c8102e; }
/* a head with no icon of its own: the same small capitals, and a short rule in the card's colour before the title */
.card > .card-header:not(:has(> *)), .card > .card-header > span:first-child:not([class]) { font-size: .76rem; font-weight: 700;
  letter-spacing: .09em; text-transform: uppercase; color: var(--tat-ink); }
.card > .card-header > span:first-child:not([class]) :is(a, .btn, .badge, small) { text-transform: none; letter-spacing: normal; }
.card > .card-header:not(:has(> i.bi:first-child, > span:first-child > i.bi:first-child, > .nav, > .card-header-tabs)) { position: relative; padding-left: 2.15rem; }
.card > .card-header:not(:has(> i.bi:first-child, > span:first-child > i.bi:first-child, > .nav, > .card-header-tabs))::before {
  content: ""; position: absolute; left: 1.2rem; top: 50%; transform: translateY(-50%); width: 4px; height: 1.15rem; border-radius: 4px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--fp, var(--tat-navy)) 55%, white), var(--fp, var(--tat-navy)));
  box-shadow: 0 3px 8px -2px color-mix(in srgb, var(--fp, var(--tat-navy)) 60%, transparent); }
/* a list's own card (a table straight in it, no head): the same rail, so the lists read as the same tiles */
.card:not(:has(> .card-header)):has(> .table-responsive, > .table, > .card-body.p-0 > .table-responsive, > .card-body.p-0 > .table) {
  border-left: 4px solid var(--fp, var(--tat-navy)) !important; }
/* totals rows: on a tint, under a firmer rule */
.card .table > tfoot > tr > *, .card .table > tbody > tr.table-light > * { border-top: 2px solid var(--tat-line); color: var(--tat-ink); }
/* a card without a head: a hairline of light along its top edge, like the portal's panels */
.card:not(:has(> .card-header)) { box-shadow: var(--tat-shadow), inset 0 1px 0 rgba(255, 255, 255, .9); }
html[data-bs-theme="dark"] .card:not(:has(> .card-header)) { box-shadow: var(--tat-shadow), inset 0 1px 0 rgba(255, 255, 255, .05); }

/* ==== The luxe layer (owner, 2026-10-02 23:2x, after the tiles: "I need more premimum feel than this it is still not on
   that level which I want"). Styling only, the same markup. The room: a soft light falls on the page from three sides
   and stays put while it scrolls; the top bar is frosted glass; the navy shell carries a red glow above and a blue one
   below. The things in it: cards on four soft shadow layers with a line of light along the top, heads tinted with the
   card's own colour, icon tiles with a halo; tables with lighter heads, a little more air, money in tabular figures;
   the primary button lit like the portal's; the page's parts rise in as it opens (never under Animations off or the
   system's reduced motion; nothing stays transformed, so menus and dialogs are untouched). */
body { background-color: var(--tat-canvas);
  background-image: radial-gradient(60rem 38rem at 92% -8%, rgba(239, 35, 60, .15), transparent 62%),
                    radial-gradient(54rem 40rem at 4% -6%, rgba(47, 111, 214, .16), transparent 60%),
                    radial-gradient(70rem 50rem at 50% 115%, rgba(43, 45, 66, .12), transparent 62%);
  background-attachment: fixed; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
.app-side { background: radial-gradient(18rem 14rem at 0 0, rgba(239, 35, 60, .18), transparent 70%),
                        radial-gradient(18rem 22rem at 100% 100%, rgba(47, 111, 214, .16), transparent 70%),
                        linear-gradient(180deg, #2b2d42 0%, #1f2133 55%, #181a29 100%);
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, .05), 10px 0 34px -20px rgba(15, 16, 28, .7); }
/* cards */
.card { border-color: color-mix(in srgb, var(--tat-line) 70%, transparent); }
.card:not(.card-stat) { box-shadow: var(--tat-shadow), inset 0 1px 0 rgba(255, 255, 255, .95); }
html[data-bs-theme="dark"] .card:not(.card-stat) { box-shadow: var(--tat-shadow), inset 0 1px 0 rgba(255, 255, 255, .05); }
.card > .card-header { background-image: radial-gradient(26rem 8rem at 0 0, color-mix(in srgb, var(--fp, var(--tat-navy)) 10%, transparent), transparent 70%),
                                         linear-gradient(180deg, var(--tat-white), var(--tat-white-2)); }
.card > .card-header > i.bi:first-child, .card > .card-header > span:first-child > i.bi:first-child {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), inset 0 -1px 0 rgba(0, 0, 0, .2), 0 6px 14px -4px color-mix(in srgb, var(--fp, var(--tat-navy)) 70%, transparent),
              0 0 0 4px color-mix(in srgb, var(--fp, var(--tat-navy)) 11%, transparent); }
.card-stat { transition: transform .18s ease, box-shadow .18s ease; }
.card-stat:hover { transform: translateY(-2px); box-shadow: var(--tat-shadow-hover); }
/* tables: lighter heads, more air, money in tabular figures */
.table { --bs-table-border-color: color-mix(in srgb, var(--tat-line-soft) 85%, transparent); }
.table > thead, .table thead.table-light { --bs-table-bg: var(--tat-white); font-size: .68rem; letter-spacing: .1em; }
.table > thead th { background-image: linear-gradient(180deg, var(--tat-white), var(--tat-white-2)); border-bottom: 1px solid var(--tat-line); }
.table > tbody > tr > td { padding-top: .78rem; padding-bottom: .78rem; }
.table td.num, .table th.num { font-variant-numeric: tabular-nums; }
.table > tbody > tr > td.num { font-weight: 600; }
.table-hover > tbody > tr:hover > * { --bs-table-bg-state: color-mix(in srgb, var(--fp, var(--tat-navy)) 5%, var(--tat-white)); }
/* fields: a hairline and a breath of depth; the focus ring as before */
.form-control, .form-select { border-color: color-mix(in srgb, var(--tat-field) 85%, transparent); box-shadow: 0 1px 2px rgba(31, 33, 51, .05); }
.form-control:hover:not(:focus):not(:disabled), .form-select:hover:not(:focus):not(:disabled) { border-color: color-mix(in srgb, var(--tat-navy) 35%, var(--tat-field)); }
/* buttons: the primary lit from above like the portal's, the quiet ones with a face of light */
.btn-primary { --bs-btn-border-color: transparent; --bs-btn-hover-border-color: transparent; --bs-btn-active-border-color: transparent;
  background-image: linear-gradient(180deg, #ff4b61 0%, #ef233c 55%, #d90429 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 1px 2px rgba(150, 10, 30, .3), 0 10px 20px -10px rgba(239, 35, 60, .75); }
.btn-primary:hover { background-image: linear-gradient(180deg, #ff5a6e 0%, #f02a43 55%, #d90429 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 2px 4px rgba(150, 10, 30, .25), 0 14px 26px -10px rgba(239, 35, 60, .85); }
.btn-primary:active { background-image: linear-gradient(180deg, #d90429, #c00322); box-shadow: inset 0 2px 4px rgba(0, 0, 0, .2); }
.btn-outline-secondary:not(:hover):not(:active):not(.active), .btn-outline-dark:not(:hover):not(:active):not(.active),
.btn-light:not(:hover):not(:active):not(.active) { background-image: linear-gradient(180deg, var(--tat-white), var(--tat-white-2)); }
/* the hero: a line of light along its top edge, a deeper glow */
/* each card's head washed in its own colour (the stat tiles' idea), a larger tile, the totals on the card's tint */
.card > .card-header { min-height: 3.9rem;
  background-image: linear-gradient(90deg, color-mix(in srgb, var(--fp, var(--tat-navy)) 19%, var(--tat-white)) 0%, color-mix(in srgb, var(--fp, var(--tat-navy)) 8%, var(--tat-white)) 45%, color-mix(in srgb, var(--fp, var(--tat-navy)) 2%, var(--tat-white)) 100%); }
.card > .card-header.fw-semibold, .card > .card-header:not(:has(> *)), .card > .card-header > span:first-child:not([class]) { font-size: .8rem; letter-spacing: .085em; }
.card > .card-header > i.bi:first-child, .card > .card-header > span:first-child > i.bi:first-child { width: 2.55rem; height: 2.55rem; border-radius: .8rem; font-size: 1.15rem; }
.card .table > tfoot > tr > *, .card .table > tbody > tr.table-light > * { --bs-table-bg: color-mix(in srgb, var(--fp, var(--tat-navy)) 6%, var(--tat-white));
  border-top: 2px solid color-mix(in srgb, var(--fp, var(--tat-navy)) 28%, var(--tat-line)); }
.table > thead th { background-image: none; color: color-mix(in srgb, var(--tat-muted) 80%, var(--tat-ink)); }
.card .table > tbody > tr > td:first-child { color: var(--tat-ink); }
/* the page's parts rise in as it opens */
@keyframes tat-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
main.container-fluid > * { animation: tat-rise .5s cubic-bezier(.2, .8, .2, 1) backwards; }
main.container-fluid > :nth-child(2) { animation-delay: .04s; }
main.container-fluid > :nth-child(3) { animation-delay: .08s; }
main.container-fluid > :nth-child(4) { animation-delay: .12s; }
main.container-fluid > :nth-child(5) { animation-delay: .16s; }
main.container-fluid > :nth-child(n+6) { animation-delay: .2s; }
/* The row-selection bar centres itself with `transform: translateX(-50%)`, and it is a direct child of <main> like the page's parts, so the rule
   above gave it tat-rise, which ends in `transform: none`: while it ran (half a second) the bar sat in the RIGHT half of the screen, then jumped to the
   middle (owner, 2026-11-10: "first it pops up on the right side then it switches to middle"). It keeps its own animation, which holds the centring. */
main.container-fluid > .bulk-bar { animation: bulk-in .18s ease-out; }
html[data-motion="off"] main.container-fluid > * { animation: none; }
@media (prefers-reduced-motion: reduce) { main.container-fluid > *, main.container-fluid > .bulk-bar { animation: none; } }

/* ==== The Quotes statistics board (owner, 2026-10-02 ~23:30: "For the quotes page I want a statics board there ... I want
   everything on that page"). quotes/_board.html + static/js/quote_board.js. The head is a panel of its own (title tile,
   the range, the notes, the period as a segmented pill, the fold chevron); the tiles are the dashboard's stat tiles with
   their icon in their own tone; the charts and lists are ordinary cards, coloured by their head's icon like every card.
   Every colour is a token (the --viz-* palette for the data), so dark mode turns with the rest. */
.qb-head { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; padding: .85rem 1rem .85rem 1.1rem; margin-bottom: 1rem;
  border: 1px solid color-mix(in srgb, var(--tat-line) 70%, transparent); border-left: 4px solid var(--tat-navy); border-radius: var(--tat-radius);
  background-color: var(--tat-white); background-image: linear-gradient(90deg, color-mix(in srgb, var(--tat-navy) 9%, var(--tat-white)), var(--tat-white) 55%);
  box-shadow: var(--tat-shadow); }
.qb-title { display: flex; align-items: center; gap: .8rem; min-width: 0; }
.qb-title-icon { width: 2.55rem; height: 2.55rem; flex: 0 0 auto; border-radius: .8rem; display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.15rem; text-shadow: 0 1px 1px rgba(0, 0, 0, .3);
  background: linear-gradient(160deg, color-mix(in srgb, var(--tat-navy) 55%, white), var(--tat-navy) 60%, color-mix(in srgb, var(--tat-navy) 70%, black));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), inset 0 -1px 0 rgba(0, 0, 0, .2), 0 6px 14px -4px color-mix(in srgb, var(--tat-navy) 70%, transparent),
              0 0 0 4px color-mix(in srgb, var(--tat-navy) 11%, transparent); }
.qb-title-name { font-size: 1.05rem; font-weight: 700; letter-spacing: -.01em; color: var(--tat-ink); line-height: 1.2; }
.qb-title-range { font-size: .8rem; color: var(--tat-muted); font-variant-numeric: tabular-nums; }
.qb-notes { display: flex; flex-wrap: wrap; gap: .5rem; }
.qb-note { display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .75rem; border-radius: 999px; font-size: .8rem; font-weight: 600; line-height: 1.3; }
.qb-note-sample { background: var(--tat-blue-tint); color: var(--tat-blue-ink); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tat-blue-ink) 18%, transparent); }
.qb-note-paused { background: var(--tat-amber-tint); color: var(--tat-amber); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tat-amber) 25%, transparent); }
.qb-periods { margin-left: auto; display: inline-flex; gap: .2rem; padding: .25rem; border-radius: 999px; background: var(--tat-white-2);
  border: 1px solid var(--tat-line); box-shadow: inset 0 1px 2px rgba(31, 33, 51, .05); }
.qb-period { padding: .38rem .9rem; border-radius: 999px; font-size: .82rem; font-weight: 600; color: var(--tat-ink-2); text-decoration: none; white-space: nowrap;
  transition: background-color .15s, color .15s; }
.qb-period:hover { background: var(--tat-hover); color: var(--tat-ink); }
.qb-period.is-on { background: var(--tat-ink); color: var(--tat-white); box-shadow: var(--tat-shadow-sm); }
.qb-toggle { width: 2.3rem; height: 2.3rem; flex: 0 0 auto; border-radius: 50%; border: 1px solid var(--tat-line); background: var(--tat-white);
  color: var(--tat-ink-2); display: inline-flex; align-items: center; justify-content: center; box-shadow: var(--tat-shadow-sm); }
.qb-toggle:hover { border-color: var(--tat-field-hover); color: var(--tat-ink); }
.qb-toggle:focus-visible { outline: 0; box-shadow: 0 0 0 4px var(--tat-ring); }
.qb-toggle i { transition: transform .2s ease; }
.qb-toggle.is-folded i { transform: rotate(180deg); }
/* the tiles: medium, one row of them (owner, 2026-10-06: "these tabs on Quotes page are too large decrease the size to
   more medium and easy to readbale") - eight with the revenue, six without; upright, two rows. The label shares its
   line with the icon, so the figure below has the tile's whole width; one quiet line under it, cut with the whole
   text on hover. The icon in the tile's own tone. */
.qb-tiles { display: grid; gap: .75rem; margin-bottom: 1rem; }
.qb-tiles-8 { grid-template-columns: repeat(8, minmax(0, 1fr)); }
.qb-tiles-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
html[data-orientation="portrait"] .qb-tiles-8 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
html[data-orientation="portrait"] .qb-tiles-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.qb-tiles .card-stat.qb-tile .card-body { padding: .8rem .9rem .75rem 1.05rem; }
.qb-tiles .card-stat.qb-tile .stat-icon { top: .75rem; right: .75rem; width: 30px; height: 30px; border-radius: 9px; font-size: .88rem; }
.qb-tiles .card-stat.qb-tile .stat-label { display: flex; align-items: center; min-height: 30px; padding-right: 2.3rem; line-height: 1.2; }
.qb-tiles .card-stat.qb-tile .stat-value { font-size: 1.5rem; line-height: 1.2; margin: .35rem 0 .15rem; padding-right: 0; white-space: nowrap;
  font-variant-numeric: normal; }
.qb-tiles .card-stat.qb-tile .stat-unit { font-size: .9rem; }
.qb-tile-sub { font-size: .8rem; line-height: 1.3; color: var(--tat-muted); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
  overflow: hidden; }
.qb-tiles .card-stat.stat-blue { --st: var(--viz-s1) !important; }
.qb-tiles .card-stat.stat-teal { --st: var(--viz-s3) !important; }
.qb-tiles .card-stat.stat-slate { --st: var(--viz-neutral) !important; }
.qb-tiles .card-stat .stat-icon { background: linear-gradient(160deg, color-mix(in srgb, var(--st) 55%, white), var(--st) 60%, color-mix(in srgb, var(--st) 70%, black));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), inset 0 -1px 0 rgba(0, 0, 0, .25), 0 6px 14px -5px color-mix(in srgb, var(--st) 75%, transparent); }
/* chart cards: the legend keys and the reasons' and statuses' colours, one fixed colour each */
.qb-card .card-header .viz-legend { font-size: .82rem; letter-spacing: 0; text-transform: none; font-weight: 500; }
.viz-key.viz-key-line { height: 3px; width: 1rem; border-radius: 2px; vertical-align: middle; }
.qb-k-received { background: var(--viz-cost); } .qb-k-submitted { background: var(--viz-s1); } .qb-k-approved { background: var(--viz-good); }
.qb-k-win { background: var(--viz-warn); } .qb-k-won { background: var(--viz-good); } .qb-k-lost { background: var(--viz-bad); }
.qb-st-requested { background: var(--viz-warn); } .qb-st-sent { background: var(--viz-s1); } .qb-st-accepted { background: var(--viz-good); }
.qb-st-declined { background: var(--viz-bad); } .qb-st-rejected { background: var(--viz-s4); } .qb-st-postponed { background: var(--viz-s7); }
.qb-st-cancelled, .qb-st-no_rate, .qb-st-expired { background: var(--viz-other); }
/* a chart beside a taller card fills its card's height rather than leaving a gap under it (the counts take the slack,
   the win rate keeps its height) - but medium: never taller than its neighbour asks */
.qb-fill { display: flex; flex-direction: column; }
.qb-fill > .viz-plot { flex: 1 1 0; min-height: 240px; height: auto; }
.qb-fill > .viz-plot.qb-plot-counts { min-height: 220px; }
.qb-fill > .viz-plot.qb-plot-rate { flex: 0 0 auto; min-height: 0; height: 120px; }
.qb-subhead { display: flex; align-items: center; margin: .9rem 0 .15rem; padding-top: .75rem; border-top: 1px solid var(--tat-line-soft);
  font-size: .82rem; font-weight: 600; color: var(--tat-ink-2); }
/* why we lose: ranked, each reason a bar against the most common one, its count / value / share beside the name */
.qb-reasons { list-style: none; margin: 0; padding: 0; }
.qb-reason { padding: .55rem 0; border-top: 1px solid var(--tat-line-soft); }
.qb-reason:first-child { border-top: 0; padding-top: .1rem; }
.qb-reason-head { display: flex; align-items: baseline; gap: .75rem; font-size: .92rem; }
.qb-reason-name { flex: 1 1 auto; min-width: 0; font-weight: 600; color: var(--tat-ink); }
.qb-reason-head strong { color: var(--tat-ink); font-variant-numeric: tabular-nums; }
.qb-reason-value { min-width: 6.4rem; text-align: right; font-size: .86rem; font-weight: 600; color: var(--tat-ink-2); font-variant-numeric: tabular-nums; }
.qb-reason-pct { min-width: 2.6rem; text-align: right; font-size: .86rem; color: var(--tat-muted); font-variant-numeric: tabular-nums; }
.qb-reason-bar { height: 6px; margin-top: .4rem; border-radius: 3px; background: var(--tat-line-soft); overflow: hidden; }
.qb-reason-bar > span { display: block; height: 100%; border-radius: 3px; background: var(--viz-bad); }
.qb-reason-none .qb-reason-bar > span { background: var(--viz-other); }
.qb-segments { height: 16px; border-radius: 6px; }
.qb-empty { display: flex; flex-direction: column; align-items: center; gap: .45rem; padding: 2.5rem 0; color: var(--tat-muted); font-size: .9rem; }
.qb-empty i { font-size: 1.6rem; color: var(--tat-line); }
/* the top lanes: rank, lane, a bar of how often it was asked with what was won inside it */
.qb-lane { padding: .55rem 0; border-top: 1px solid var(--tat-line-soft); }
.qb-lane:first-child { border-top: 0; padding-top: .1rem; }
.qb-lane-name { display: flex; align-items: center; gap: .6rem; min-width: 0; font-weight: 600; color: var(--tat-ink); font-size: .92rem; }
.qb-lane-name i { color: var(--tat-muted); font-size: .8rem; }
.qb-lane-rank { width: 1.55rem; height: 1.55rem; flex: 0 0 auto; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  font-size: .74rem; font-weight: 700; background: var(--tat-blue-tint); color: var(--tat-blue-ink); }
.qb-lane-bar { position: relative; height: 6px; margin: .4rem 0 0 2.15rem; border-radius: 3px; background: var(--tat-line-soft); overflow: hidden; }
.qb-lane-bar > span { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 3px; background: color-mix(in srgb, var(--viz-s1) 38%, transparent); }
.qb-lane-bar > span.qb-lane-won { background: var(--viz-good); }
/* the lane's figures share its line, the bar under both (one line a lane, as Why we lose) */
.qb-lane-fig { margin-left: auto; flex: 0 0 auto; padding-left: .5rem; white-space: nowrap; font-size: .82rem; font-weight: 400; color: var(--tat-muted);
  font-variant-numeric: tabular-nums; }
.qb-lane-fig strong { color: var(--tat-ink); }
/* a sample row says so: a small badge beside its number (and on its own page) */
.qb-sample-badge { display: inline-block; padding: .12rem .42rem; border-radius: .35rem; font-size: .6rem; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; line-height: 1.35; vertical-align: middle; background: var(--tat-blue-tint); color: var(--tat-blue-ink);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tat-blue-ink) 22%, transparent); }
.qb-lostbox { display: inline-flex; align-items: center; gap: .5rem; white-space: nowrap; }
.qb-lostbox[hidden] { display: none; }
html[data-motion="off"] .qb-toggle i { transition: none; }
@media (prefers-reduced-motion: reduce) { .qb-toggle i { transition: none; } }

/* ---- Credit (owner, 2026-10-05: "this page shuld be on more premium level this is looking too basic") ----
   The overview band (a ring of the credit used, the standings as one stacked bar, the scores as columns), the standing
   pills, rich rows (a tile per party, a usage meter, an aging pill, a score ring) and the party's page (a navy credit
   card, the score's own ring with its factors, the aging bar, the limit's timeline). Colours: the --cr-* tokens
   (validated, both themes), always beside their words. */
.cr-tone-ok { --cr: var(--cr-ok); } .cr-tone-near { --cr: var(--cr-near); } .cr-tone-over { --cr: var(--cr-over); }
.cr-tone-none { --cr: var(--cr-none); }
.cr-ov { display: grid; grid-template-columns: 1.15fr 1.35fr 1.15fr; gap: 0; padding: 0; overflow: hidden; }
.cr-ov-sec { padding: 1.25rem 1.5rem; min-width: 0; }
.cr-ov-sec + .cr-ov-sec { border-left: 1px solid var(--tat-line); }
.cr-eyebrow { font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--tat-muted); margin-bottom: .75rem; display: flex; align-items: center; gap: .4rem; }
.cr-eyebrow i { font-size: .85rem; }
.cr-ring-row { display: flex; align-items: center; gap: 1.25rem; }
.cr-ring { --p: 0; --size: 128px; --w: 13px; position: relative; flex: 0 0 var(--size); width: var(--size); height: var(--size); border-radius: 50%;
  background: conic-gradient(var(--cr, var(--cr-ok)) calc(var(--p) * 1%), var(--cr-track) 0); }
.cr-ring::before { content: ""; position: absolute; inset: var(--w); border-radius: 50%; background: var(--tat-white);
  box-shadow: inset 0 1px 3px rgba(11, 42, 74, .08); }
.cr-ring-c { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; line-height: 1.1; }
.cr-ring-c strong { font-size: 1.6rem; font-weight: 700; color: var(--tat-ink); font-variant-numeric: tabular-nums; }
.cr-ring-c span { font-size: .7rem; color: var(--tat-muted); text-transform: uppercase; letter-spacing: .06em; margin-top: .2rem; }
.cr-ring.is-empty { background: repeating-conic-gradient(var(--cr-track) 0 6deg, transparent 6deg 10deg); }
.cr-figs { display: grid; gap: .55rem; min-width: 0; }
.cr-fig { display: flex; justify-content: space-between; gap: .75rem; font-size: .85rem; color: var(--tat-muted); white-space: nowrap; }
.cr-fig b { color: var(--tat-ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.cr-fig.is-big b { font-size: 1.15rem; }
.cr-fig-note { margin-top: -.3rem; font-size: .75rem; color: var(--tat-muted); text-align: right; }
.cr-stack { display: flex; gap: 2px; height: 12px; border-radius: 6px; overflow: hidden; background: var(--cr-track); margin: .15rem 0 1rem; }
.cr-stack > span { background: var(--cr); min-width: 6px; }
.cr-stack > span:first-child { border-radius: 6px 0 0 6px; } .cr-stack > span:last-child { border-radius: 0 6px 6px 0; }
.cr-stack > span:only-child { border-radius: 6px; }
.cr-legend { display: grid; grid-template-columns: 1fr 1fr; gap: .35rem 1rem; }
.cr-leg { display: flex; align-items: center; gap: .5rem; padding: .3rem .5rem; border-radius: .5rem; color: var(--tat-ink-2); text-decoration: none; font-size: .85rem; }
.cr-leg:hover { background: var(--tat-hover, var(--tat-tint)); color: var(--tat-ink); }
.cr-leg.is-on { background: var(--tat-tint); box-shadow: inset 0 0 0 1px var(--tat-field); }
.cr-leg i { color: var(--cr); font-size: .95rem; }
.cr-leg b { margin-left: auto; font-variant-numeric: tabular-nums; color: var(--tat-ink); }
.cr-pastdue { margin-top: .85rem; display: flex; align-items: center; gap: .5rem; font-size: .85rem; color: var(--tat-ink-2); }
.cr-pastdue i { color: var(--cr-over); }
.cr-pastdue b { color: var(--tat-ink); font-variant-numeric: tabular-nums; }
.cr-grades { display: grid; grid-template-columns: repeat(6, 1fr); gap: .5rem; align-items: end; height: 118px; }
.cr-gcol { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: .3rem; height: 100%; }
.cr-gcol small { font-size: .75rem; font-weight: 600; color: var(--tat-ink-2); font-variant-numeric: tabular-nums; }
.cr-gbar { width: 100%; max-width: 30px; border-radius: 4px 4px 0 0; background: var(--cr); min-height: 3px; }
.cr-gletter { font-size: .78rem; font-weight: 700; color: var(--tat-ink); }
.cr-filter { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.cr-pill { display: inline-flex; align-items: center; gap: .45rem; padding: .4rem .85rem; border-radius: 999px; border: 1px solid var(--tat-field);
  background: var(--tat-white); color: var(--tat-ink-2); font-size: .85rem; font-weight: 600; text-decoration: none; }
.cr-pill i { color: var(--cr, var(--tat-muted)); }
.cr-pill .n { font-size: .72rem; padding: .05rem .45rem; border-radius: 999px; background: var(--tat-mist); color: var(--tat-ink-2); font-variant-numeric: tabular-nums; }
.cr-pill:hover { border-color: var(--tat-field-hover, var(--tat-field)); color: var(--tat-ink); }
.cr-pill.is-on { background: var(--tat-navy); border-color: var(--tat-navy); color: #fff; }
.cr-pill.is-on .n { background: rgba(255, 255, 255, .18); color: #fff; }
.cr-pill.is-on i { color: #fff; }
.cr-search { position: relative; margin-left: auto; width: 22rem; max-width: 100%; }
.cr-search i { position: absolute; left: .85rem; top: 50%; transform: translateY(-50%); color: var(--tat-muted); }
.cr-search input { padding-left: 2.3rem; border-radius: 999px; }
.cr-table td { padding-top: .85rem; padding-bottom: .85rem; }
.cr-party { display: flex; align-items: center; gap: .8rem; min-width: 0; }
.cr-av { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; color: #fff;
  font-weight: 700; font-size: .85rem; letter-spacing: .02em; background: linear-gradient(160deg, color-mix(in srgb, var(--cr) 70%, white), var(--cr) 65%, color-mix(in srgb, var(--cr) 75%, black));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 4px 10px -4px color-mix(in srgb, var(--cr) 70%, transparent); }
.cr-av i { font-size: 1.05rem; }
.cr-av.is-brand { --cr: var(--tat-navy); }
.cr-gbar.is-zero { opacity: .35; }
.cr-party .t { min-width: 0; }
.cr-party .t a { font-weight: 600; color: var(--tat-ink); text-decoration: none; display: block; overflow: hidden; text-overflow: ellipsis; }
.cr-party .t a:hover { color: var(--tat-red-deep); }
.cr-party .t small { color: var(--tat-muted); display: block; overflow: hidden; text-overflow: ellipsis; }
.cr-meter { min-width: 13rem; }
.cr-meter .top { display: flex; justify-content: space-between; gap: .75rem; font-size: .8rem; color: var(--tat-muted); margin-bottom: .35rem; white-space: nowrap; }
.cr-meter .top b { color: var(--tat-ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.cr-bar { height: 8px; border-radius: 4px; background: var(--cr-track); position: relative; overflow: hidden; }
.cr-bar > span { position: absolute; inset: 0 auto 0 0; width: calc(min(var(--p), 100) * 1%); border-radius: 4px; background: var(--cr); }
.cr-bar.is-none { background: repeating-linear-gradient(135deg, var(--cr-track) 0 6px, transparent 6px 10px); box-shadow: inset 0 0 0 1px var(--tat-line); }
.cr-age { display: inline-flex; align-items: center; gap: .3rem; font-size: .72rem; font-weight: 700; padding: .12rem .5rem; border-radius: 999px;
  color: var(--tat-ink); background: color-mix(in srgb, var(--cr) 16%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--cr) 45%, transparent); }
.cr-age::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--cr); }
.cr-score { display: inline-flex; align-items: center; gap: .55rem; }
.cr-score .cr-ring { --size: 38px; --w: 4px; }
.cr-score .cr-ring-c strong { font-size: .85rem; }
.cr-score small { font-size: .78rem; color: var(--tat-muted); line-height: 1.15; }
.cr-score small b { display: block; color: var(--tat-ink); font-size: .85rem; font-variant-numeric: tabular-nums; }
.cr-chip { display: inline-flex; align-items: center; gap: .35rem; font-size: .78rem; font-weight: 600; color: var(--tat-ink-2); white-space: nowrap; }
.cr-chip i { color: var(--cr); }
.cr-when b { display: block; font-weight: 600; color: var(--tat-ink); }
.cr-when small { color: var(--tat-muted); }
/* the party's page */
.cr-card { position: relative; border-radius: 20px; padding: 1.6rem 1.75rem; color: #fff; overflow: hidden;
  background: radial-gradient(28rem 14rem at 105% -10%, rgba(239, 35, 60, .38), transparent 60%),
              radial-gradient(22rem 16rem at -10% 120%, rgba(86, 140, 255, .28), transparent 60%),
              linear-gradient(135deg, #1b2347 0%, #2b2d42 55%, #151827 100%);
  box-shadow: 0 18px 40px -22px rgba(11, 20, 46, .8), inset 0 1px 0 rgba(255, 255, 255, .12); }
.cr-card::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(115deg, rgba(255, 255, 255, .035) 0 2px, transparent 2px 22px); pointer-events: none; }
.cr-card > * { position: relative; z-index: 1; }
.cr-card .k { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .65); }
.cr-card .big { font-size: 2.1rem; font-weight: 700; letter-spacing: -.01em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.cr-card .who { font-weight: 600; font-size: 1.05rem; }
.cr-card .row-figs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1.1rem; }
.cr-card .row-figs b { display: block; font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.cr-card .cr-bar { background: rgba(255, 255, 255, .16); height: 10px; border-radius: 5px; margin-top: 1rem; }
.cr-card .cr-bar.is-none { background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .14) 0 6px, transparent 6px 10px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); }
.cr-card .chip-glass { display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .75rem; border-radius: 999px; font-size: .78rem; font-weight: 600;
  background: rgba(255, 255, 255, .12); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); color: #fff; }
.cr-card .chip-glass i { color: color-mix(in srgb, var(--cr) 55%, white); }
.cr-card .emv { width: 42px; height: 32px; border-radius: 7px; background: linear-gradient(135deg, #f1d58a, #c9a24a 60%, #a8842f);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .18); position: relative; }
.cr-card .emv::before { content: ""; position: absolute; inset: 8px 6px; border: 1px solid rgba(80, 60, 10, .35); border-radius: 3px; }
.cr-bigscore { display: flex; align-items: center; gap: 1.5rem; }
.cr-bigscore .cr-ring { --size: 148px; --w: 14px; }
.cr-bigscore .cr-ring-c strong { font-size: 2.6rem; }
.cr-factor + .cr-factor { margin-top: .85rem; }
.cr-factor .top { display: flex; justify-content: space-between; font-size: .82rem; color: var(--tat-muted); margin-bottom: .3rem; }
.cr-factor .top b { color: var(--tat-ink); font-variant-numeric: tabular-nums; }
.cr-aging { display: grid; grid-template-columns: repeat(6, 1fr); gap: .5rem; margin-top: 1rem; }
.cr-aging > div { padding: .55rem .65rem; border-radius: .6rem; background: var(--tat-white-2); box-shadow: inset 0 3px 0 var(--cr); }
.cr-aging small { display: block; font-size: .72rem; color: var(--tat-muted); text-transform: uppercase; letter-spacing: .05em; }
.cr-aging b { font-variant-numeric: tabular-nums; color: var(--tat-ink); }
.cr-timeline { list-style: none; margin: 0; padding: .25rem 0 0 0; }
.cr-timeline li { position: relative; padding: 0 0 1rem 1.6rem; }
.cr-timeline li::before { content: ""; position: absolute; left: .35rem; top: .4rem; bottom: -.2rem; width: 2px; background: var(--tat-line); }
.cr-timeline li:last-child::before { display: none; }
.cr-timeline li::after { content: ""; position: absolute; left: 0; top: .2rem; width: .8rem; height: .8rem; border-radius: 50%; background: var(--tat-white);
  box-shadow: inset 0 0 0 3px var(--tat-navy); }
.cr-timeline .what { font-weight: 600; color: var(--tat-ink); font-variant-numeric: tabular-nums; }
.cr-timeline small { color: var(--tat-muted); }
html[data-bs-theme="dark"] .cr-ring::before { box-shadow: inset 0 1px 3px rgba(0, 0, 0, .4); }
html[data-bs-theme="dark"] .cr-timeline li::after { box-shadow: inset 0 0 0 3px #8fa2d8; }
html[data-bs-theme="dark"] .cr-pill.is-on { background: #3a4170; border-color: #3a4170; }
html[data-motion="off"] .cr-bar > span, html[data-motion="off"] .cr-gbar { transition: none; }
.cr-bar > span, .cr-gbar { transition: width .5s ease, height .5s ease; }
@media (prefers-reduced-motion: reduce) { .cr-bar > span, .cr-gbar { transition: none; } }

/* The select arrow (owner, 2026-10-09: "the drop down arrow sign ... is showing over text in the carrier selection
   box and every selection box"). `.form-select { padding: .5rem .75rem }` (and the density rule) overwrote Bootstrap's
   room for the arrow, so a long choice ran under it. The room is back, in every size and density, the choice is cut
   with an ellipsis before it reaches the arrow, and the arrow is a finer chevron beside a hairline divider that
   darkens under the pointer and turns signal red while the box is open. Image, position and size are set apart
   (never the `background:` shorthand, which wipes the arrow: test_theme). */
.form-select { --hmk-chev: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3e%3cpath fill='none' stroke='%236b7088' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.7' d='m2.5 4.5 3.5 3.5 3.5-3.5'/%3e%3c/svg%3e"); }
.form-select, html[data-density] .form-select {
  padding-right: 2.5rem; text-overflow: ellipsis; white-space: nowrap; cursor: pointer;
  background-image: var(--hmk-chev),
    linear-gradient(to bottom, transparent 24%, var(--tat-field) 24%, var(--tat-field) 76%, transparent 76%);
  background-repeat: no-repeat, no-repeat; background-position: right .8rem center, right 2.1rem center;
  background-size: 12px 12px, 1px 100%;
}
.form-select-sm, html[data-density] .form-select-sm {
  padding-right: 2.2rem; background-position: right .6rem center, right 1.85rem center; }
.form-select:hover:not(:focus):not(:disabled) { --hmk-chev: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3e%3cpath fill='none' stroke='%232b2d42' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.7' d='m2.5 4.5 3.5 3.5 3.5-3.5'/%3e%3c/svg%3e"); }
.form-select:focus { --hmk-chev: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3e%3cpath fill='none' stroke='%23ef233c' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.7' d='m2.5 4.5 3.5 3.5 3.5-3.5'/%3e%3c/svg%3e"); }
.form-select:disabled { cursor: not-allowed; opacity: .65; }
.form-select[multiple], .form-select[size]:not([size="1"]) {
  background-image: none; padding-right: .75rem; text-overflow: clip; white-space: normal; cursor: auto; }
html[data-bs-theme="dark"] .form-select { --hmk-chev: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3e%3cpath fill='none' stroke='%23aab0c6' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.7' d='m2.5 4.5 3.5 3.5 3.5-3.5'/%3e%3c/svg%3e"); }
html[data-bs-theme="dark"] .form-select:hover:not(:focus):not(:disabled) { --hmk-chev: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3e%3cpath fill='none' stroke='%23e6e8f2' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.7' d='m2.5 4.5 3.5 3.5 3.5-3.5'/%3e%3c/svg%3e"); }
html[data-bs-theme="dark"] .form-select:focus { --hmk-chev: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3e%3cpath fill='none' stroke='%23ff6b7d' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.7' d='m2.5 4.5 3.5 3.5 3.5-3.5'/%3e%3c/svg%3e"); }

/* Accounts reports: the four totals and the net sit smaller than the dashboard's tiles, so two currencies stack
   without a figure filling the card (owner, 2026-10-13: "the text on these boxes is looking much bigger"). */
.report-stat .stat-value { font-size: 1.3rem; line-height: 1.25; margin: .2rem 0 .3rem; white-space: nowrap; }

/* ---- Intelligence (services/bi): the page at /insights/ and the strip on the dashboard. Every colour is a token, so
   dark mode follows; severity is never colour alone (the word or the icon rides with it). ---- */
.ix-row { display: grid; gap: 1rem; margin-bottom: 1rem; }
.ix-row-3 { grid-template-columns: 22rem minmax(0, 1fr) 26rem; }
.ix-row-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.ix-row-2-1 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
html[data-orientation="portrait"] .ix-row-3, html[data-orientation="portrait"] .ix-row-2,
html[data-orientation="portrait"] .ix-row-2-1 { grid-template-columns: minmax(0, 1fr); }
.ix-ring { --p: 0; --c: var(--tat-green); position: relative; width: 9.5rem; height: 9.5rem; border-radius: 50%; display: grid;
  place-items: center; margin: 0 auto; background: conic-gradient(var(--c) calc(var(--p) * 1%), var(--tat-line-soft) 0); }
.ix-ring::before { content: ""; position: absolute; inset: .75rem; border-radius: 50%; background: var(--tat-white); }
.ix-ring > div { position: relative; text-align: center; line-height: 1.05; }
.ix-ring .ix-score { font-size: 2.4rem; font-weight: 700; color: var(--tat-ink); }
.ix-ring .ix-grade { font-size: .95rem; font-weight: 600; color: var(--c); letter-spacing: .08em; }
.ix-ring[data-grade="C"] { --c: var(--tat-amber); }
.ix-ring[data-grade="D"], .ix-ring[data-grade="F"] { --c: var(--tat-red); }
.ix-comp { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr) 2rem; gap: .5rem; align-items: center; font-size: .85rem; padding: .18rem 0; }
.ix-comp .ix-track { height: .45rem; border-radius: .25rem; background: var(--tat-line-soft); overflow: hidden; }
.ix-comp .ix-track > span { display: block; height: 100%; border-radius: .25rem; background: var(--tat-green); width: 0; }
.ix-comp[data-tone="amber"] .ix-track > span { background: var(--tat-amber); }
.ix-comp[data-tone="red"] .ix-track > span { background: var(--tat-red); }
.ix-comp .ix-num { text-align: right; color: var(--tat-muted); font-variant-numeric: tabular-nums; }
.ix-list { list-style: none; margin: 0; padding: 0; }
.ix-item { display: grid; grid-template-columns: 1.4rem minmax(0, 1fr) auto; gap: .6rem; align-items: start; padding: .6rem 0;
  border-top: 1px solid var(--tat-line-soft); }
.ix-item:first-child { border-top: 0; }
.ix-sev { width: .7rem; height: .7rem; border-radius: 50%; margin-top: .4rem; background: var(--tat-muted); }
.ix-sev-critical { background: var(--tat-red); } .ix-sev-warning { background: var(--tat-amber); }
.ix-sev-opportunity { background: var(--tat-green); } .ix-sev-info { background: var(--tat-muted); }
.ix-title { font-weight: 600; color: var(--tat-ink); }
.ix-body { font-size: .86rem; color: var(--tat-ink-2); margin-top: .1rem; }
.ix-act { font-size: .82rem; color: var(--tat-muted); margin-top: .15rem; }
.ix-amt { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ix-amt small { display: block; font-weight: 400; color: var(--tat-muted); }
.ix-kind { display: inline-block; font-size: .7rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: .08rem .45rem;
  border-radius: .75rem; background: var(--tat-line-soft); color: var(--tat-ink-2); margin-right: .4rem; }
.ix-tiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .75rem; margin-bottom: 1rem; }
html[data-orientation="portrait"] .ix-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ix-tile { background: var(--tat-white); border: 1px solid var(--tat-line-soft); border-radius: var(--tat-radius-sm); padding: .7rem .85rem; box-shadow: var(--tat-shadow-sm); }
.ix-tile .ix-tl { font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--tat-muted); }
.ix-tile .ix-tv { font-size: 1.45rem; font-weight: 700; color: var(--tat-ink); font-variant-numeric: tabular-nums; }
.ix-tile .ix-ts { font-size: .8rem; color: var(--tat-muted); }
.ix-chart { position: relative; height: 15rem; }
.ix-chart-sm { position: relative; height: 11rem; }
.ix-val { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .4rem; padding: .3rem 0; border-top: 1px solid var(--tat-line-soft); font-size: .9rem; }
.ix-val:first-child { border-top: 0; }
.ix-val b { font-variant-numeric: tabular-nums; }
.ix-val small { color: var(--tat-muted); display: block; }
.ix-chip { cursor: pointer; }
.ix-bandrow { display: grid; grid-template-columns: 12rem minmax(0, 1fr) 4.5rem; gap: .5rem; align-items: center; font-size: .86rem; padding: .2rem 0; }
.ix-bandrow .ix-track { height: .55rem; border-radius: .3rem; background: var(--tat-line-soft); overflow: hidden; }
.ix-bandrow .ix-track > span { display: block; height: 100%; background: var(--viz-s1); border-radius: .3rem; width: 0; }
.ix-pos { color: var(--tat-green); } .ix-neg { color: var(--tat-red-ink); }
.ix-skip { font-size: .82rem; color: var(--tat-muted); }
.ix-mini { display: grid; gap: .6rem; }
.ix-strip { display: grid; grid-template-columns: 21rem minmax(0, 1fr) 24rem; gap: 1rem; }
.ix-strip .ix-comp { grid-template-columns: 8rem minmax(0, 1fr) 1.6rem; font-size: .8rem; }
html[data-orientation="portrait"] .ix-strip { grid-template-columns: minmax(0, 1fr); }
.ix-load { text-decoration: none; }
.ix-load:hover { text-decoration: none; }
.ix-form { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .6rem; align-items: end; }
html[data-orientation="portrait"] .ix-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ix-delta { font-size: 1.3rem; font-weight: 700; font-variant-numeric: tabular-nums; }

/* ---- Intelligence v2: the Credit page's language (the cr-* band, pills, monogram rows, meters) with a few ix-* additions ---- */
.ix-live { display: inline-flex; align-items: center; gap: .45rem; font-size: .8rem; font-weight: 600; color: rgba(255, 255, 255, .85); margin-right: .75rem; }
.ix-live i { width: .55rem; height: .55rem; border-radius: 50%; background: var(--cr-ok); box-shadow: 0 0 0 0 var(--cr-ok); animation: ix-pulse 2s infinite; }
.ix-live[data-state="busy"] i { background: var(--cr-near); animation: none; }
.ix-live[data-state="stale"] i { background: var(--cr-over); animation: none; }
/* No clock time in the page bar (owner brief 2026-10-24): the chip stays in the page (it carries the poll's URLs) but shows only when
   something is wrong - Updating / Reconnecting / Stale. */
.ix-live[data-state="live"] { display: none; }
@keyframes ix-pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--cr-ok) 55%, transparent); } 70% { box-shadow: 0 0 0 .5rem transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.ix-comps { margin-top: .9rem; display: grid; gap: .3rem; }
.ix-comp { display: grid; grid-template-columns: 9rem minmax(0, 1fr) 1.8rem; gap: .6rem; align-items: center; font-size: .78rem; color: var(--tat-muted); }
.ix-comp b { text-align: right; color: var(--tat-ink); font-variant-numeric: tabular-nums; }
.ix-comp .cr-bar { height: 6px; }
.ix-spark { position: relative; height: 4.5rem; margin-top: .9rem; }
.ix-worth { margin-top: 1rem; padding-top: .8rem; border-top: 1px solid var(--tat-line); }
.ix-av { flex: 0 0 34px; width: 34px; height: 34px; border-radius: 10px; font-size: .8rem; }
.ix-pts { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .75rem; }
html[data-orientation="portrait"] .ix-pts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ix-pt { display: flex; align-items: center; gap: .75rem; padding: .75rem .9rem; background: var(--tat-white); border: 1px solid var(--tat-line); border-radius: var(--tat-radius-sm); box-shadow: var(--tat-shadow-sm); min-width: 0; }
.ix-pt .cr-av { flex: 0 0 38px; width: 38px; height: 38px; }
.ix-pt > div { min-width: 0; }
.ix-pt .l { display: block; font-size: .68rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--tat-muted); }
.ix-pt b { display: block; font-size: 1.15rem; color: var(--tat-ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ix-pt small { display: block; font-size: .76rem; color: var(--tat-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ix-row { border-top: 1px solid var(--tat-line-soft); }
.ix-row:first-child { border-top: 0; }
.ix-row-h, .ix-line { display: flex; align-items: center; gap: .8rem; padding: .6rem .25rem; min-width: 0; }
.ix-row-h { cursor: pointer; border-radius: .5rem; }
.ix-row-h:hover { background: var(--tat-hover); }
.ix-line { border-top: 1px solid var(--tat-line-soft); }
.ix-line:first-child { border-top: 0; }
.ix-t { flex: 1 1 auto; min-width: 0; }
.ix-t b { display: block; font-weight: 600; color: var(--tat-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ix-t small { display: block; color: var(--tat-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .78rem; }
.ix-amt { margin-left: auto; text-align: right; font-weight: 600; color: var(--tat-ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ix-amt small { display: block; font-weight: 400; color: var(--tat-muted); font-size: .76rem; }
.ix-chev { color: var(--tat-muted); transition: transform .15s; }
.ix-row.is-open .ix-chev { transform: rotate(180deg); }
.ix-row-d { display: none; padding: 0 .25rem .75rem 3.1rem; font-size: .86rem; color: var(--tat-ink-2); }
.ix-row.is-open .ix-row-d { display: block; }
.ix-row-d p { margin: 0 0 .35rem; }
.ix-panel[hidden] { display: none; }
.ix-grid-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; }
.ix-grid-2-1 { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 1rem; }
.ix-grid-1-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 1rem; }
html[data-orientation="portrait"] .ix-grid-2, html[data-orientation="portrait"] .ix-grid-2-1, html[data-orientation="portrait"] .ix-grid-1-2 { grid-template-columns: minmax(0, 1fr); }
.ix-bk { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; margin-top: .75rem; }
.ix-bk > div { padding: .5rem .7rem; border-radius: var(--tat-radius-sm); background: var(--tat-white-2); border: 1px solid var(--tat-line-soft); }
.ix-bk span { display: block; font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; color: var(--tat-muted); }
.ix-bk b { display: block; font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.ix-bk small { color: var(--tat-muted); font-size: .76rem; }
.ix-band { display: grid; grid-template-columns: 11rem minmax(0, 1fr) 2.6rem 3.4rem; gap: .6rem; align-items: center; font-size: .85rem; padding: .22rem 0; }
.ix-band b { text-align: right; font-variant-numeric: tabular-nums; }
.ix-band small { color: var(--tat-muted); }

/* Live figures (ledger_live.js): a number that changed flashes once; the bar offers changes held back from a table being read. */
.ledger-flash { animation: ledger-flash 1.6s ease-out; border-radius: .3rem; }
@keyframes ledger-flash { 0% { background: color-mix(in srgb, var(--cr-near) 45%, transparent); } 100% { background: transparent; } }
html[data-motion="off"] .ledger-flash { animation: none; }
@media (prefers-reduced-motion: reduce) { .ledger-flash { animation: none; } }
.ledger-new-bar { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin: 0 0 1rem; padding: .5rem .85rem; border: 1px solid var(--tat-field); border-radius: var(--tat-radius-sm); background: var(--tat-tint); font-size: .85rem; font-weight: 600; }
.ledger-new-bar[hidden], #ledgerBanner[hidden] { display: none; }
/* Intelligence while its heavy models recalculate: the headline figures and the rules are already live; the models say so. */
#ixRoot[data-recalc="1"] .cr-ring, #ixRoot[data-recalc="1"] .ix-comps, #ixRoot[data-recalc="1"] .ix-spark,
#ixRoot[data-recalc="1"] .ix-worth, #ixRoot[data-recalc="1"] .ix-panel:not([data-panel="rules"]) { opacity: .55; transition: opacity .2s; }
#ixRoot[data-recalc="1"] .cr-eyebrow::after { content: "Recalculating…"; margin-left: .6rem; text-transform: none; letter-spacing: 0; font-weight: 600; color: var(--tat-muted); }
html[data-motion="off"] #ixRoot[data-recalc="1"] * { transition: none; }
.ix-stale { display: flex; align-items: center; gap: .55rem; margin: 0 0 .75rem; padding: .4rem .75rem; border-radius: var(--tat-radius-sm);
            background: var(--tat-tint); border: 1px solid var(--tat-field); color: var(--tat-navy); font-size: .875rem; }
.ix-stale[hidden] { display: none; }
.ix-stale strong { font-weight: 600; }
.ix-stale span:last-child { color: var(--tat-muted); }
html[data-motion="off"] .ix-stale .spinner-border { animation: none; }
.ix-assume { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: .2rem .75rem; color: var(--tat-muted); }
.ix-assume dt { font-weight: 600; color: var(--tat-ink); }
.ix-assume dd { margin: 0; }

/* ---- Control Tower (owner brief, 2026-10-17): window pills, zone tiles, the small lines. Tokens only; both themes. ---- */
.ct-pill { display: inline-flex; align-items: center; gap: .35rem; padding: .12rem .6rem; border-radius: 999px; font-size: .74rem; font-weight: 700;
           white-space: nowrap; border: 1px solid transparent; line-height: 1.4; }
.ct-pill::before { content: ""; flex: 0 0 auto; width: .45rem; height: .45rem; border-radius: 50%; background: currentColor; }
.ct-pill.ct-open { color: var(--cr-ok); background: color-mix(in srgb, var(--cr-ok) 13%, transparent); border-color: color-mix(in srgb, var(--cr-ok) 28%, transparent); }
.ct-pill.ct-closing_soon { color: var(--cr-near); background: color-mix(in srgb, var(--cr-near) 14%, transparent); border-color: color-mix(in srgb, var(--cr-near) 30%, transparent); }
.ct-pill.ct-closed { color: var(--tat-muted); background: color-mix(in srgb, var(--tat-muted) 11%, transparent); border-color: color-mix(in srgb, var(--tat-muted) 22%, transparent); }
.ct-pill.ct-unknown { color: var(--tat-muted); background: transparent; border-style: dashed; border-color: var(--tat-line); }
.ct-pill.ct-late { color: var(--cr-over); background: color-mix(in srgb, var(--cr-over) 12%, transparent); border-color: color-mix(in srgb, var(--cr-over) 30%, transparent); }
.ct-time { font-variant-numeric: tabular-nums; white-space: nowrap; }
.ct-zone { padding: .8rem .95rem; border: 1px solid var(--tat-line); border-radius: var(--tat-radius-sm); background: var(--tat-white-2); height: 100%; }
.ct-zone-head { display: flex; gap: .5rem; align-items: baseline; font-size: .82rem; }
.ct-zone-count { font-size: 1.6rem; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; margin: .1rem 0 .35rem; }
.ct-zone-count .text-secondary { font-size: .85rem; font-weight: 500; letter-spacing: 0; }
.ct-line { display: flex; flex-wrap: wrap; align-items: center; gap: .15rem .6rem; padding: .45rem 0; border-bottom: 1px solid var(--tat-line-soft); }
.ct-line:last-child { border-bottom: 0; }
.ct-empty { padding: 1rem 1.1rem; }
.ct-note { padding: .5rem 1.1rem .75rem; }
.ct-why { display: inline-block; margin-right: .35rem; padding: .05rem .5rem; border-radius: 999px; font-size: .72rem; font-weight: 600;
          color: var(--tat-ink); background: color-mix(in srgb, var(--tat-muted) 12%, transparent); }
.ct-bar { display: inline-block; width: 6rem; height: 6px; border-radius: 6px; background: var(--tat-line); vertical-align: middle; overflow: hidden; }
.ct-bar i { display: block; height: 100%; border-radius: 6px; background: var(--cr-ok); }
.ct-dst i { font-size: 1.1rem; }

/* ==== The loads list (ticket 2026-10-18, part 3). Rules: no width media queries; fixed px / rem. ==== */
:root { --f-mono: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; }
/* Every numeric cell: tabular figures in a mono face, so a column does not jitter from row to row (money right-aligned). */
.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; font-size: .92em; }
.mute { color: var(--tat-muted); font-weight: 400; }
/* the saved views: a row of pills, scrolling inside its own box when the window is narrow (owner brief 2026-10-24, set D) */
.view-tabs { display: flex; flex-wrap: nowrap; gap: .35rem; padding: .65rem .85rem; max-width: 100%; overflow-x: auto; border-bottom: 1px solid var(--tat-line); }
.view-tab { flex: none; display: inline-flex; align-items: center; gap: .45rem; padding: .3rem .8rem; border: 1px solid transparent; border-radius: 99px;
  color: var(--tat-muted); font-size: .84rem; font-weight: 600; white-space: nowrap; text-decoration: none; }
.view-tab:hover { color: var(--tat-ink); background-color: var(--tat-hover); text-decoration: none; }
.view-tab.is-on { color: #fff; background-color: var(--tat-navy); }
html[data-bs-theme="dark"] .view-tab.is-on { color: #1e2030; background-color: #e9ecf5; }
.view-count { font-family: var(--f-mono); font-variant-numeric: tabular-nums; font-size: .74rem; font-weight: 600; min-width: 1.5rem; text-align: center;
  padding: .05rem .4rem; border-radius: 1rem; background: var(--tat-mist); color: var(--tat-ink-2); }
.view-tab.is-on .view-count { background-color: rgba(255, 255, 255, .22); color: inherit; }
html[data-bs-theme="dark"] .view-tab.is-on .view-count { background-color: rgba(30, 32, 48, .14); }
/* the table scrolls inside its own box so its head and its first columns stay put on both axes (the page's own scroll
   is above it); --vh-px is the window's height in this page's own pixels, set by app.js */
.loads-scroll { overflow: auto; max-height: calc(var(--vh-px, 900px) - 44px - 5rem); }
.loads-table { --row-h: 54px; }
.loads-table[data-density="tight"] { --row-h: 40px; }
.loads-table > tbody > tr > td { height: var(--row-h); padding-top: 0; padding-bottom: 0; }
.tnum { font-variant-numeric: tabular-nums; }
.loads-table > thead > tr > th { position: sticky; top: 0; z-index: var(--z-pinned-cell); background-color: var(--row-bg); }
.loads-table > thead > tr > th.cell-sticky { z-index: var(--z-pinned-head); top: 0; }
.loads-table td.num { text-align: right; white-space: nowrap; }
/* attention: a 3px rule on the row's left edge - danger red for critical, amber for warning - and no other row styling */
.loads-table > tbody > tr[data-flag="critical"] > td:first-child { box-shadow: inset 3px 0 0 var(--tat-red-ink); }
.loads-table > tbody > tr[data-flag="warning"] > td:first-child { box-shadow: inset 3px 0 0 var(--tat-amber); }
/* Stage over billing */
.loads-table .stage-line { display: flex; align-items: center; gap: .4rem; }
.loads-table .stage-sub { font-size: 10.5px; line-height: 1.2; color: var(--tat-muted); white-space: nowrap; }
.loads-table .stage-track { text-decoration: none; }
.bill.is-not { color: var(--tat-amber); font-weight: 600; }
.bill.is-invoiced { color: var(--tat-muted); }
.bill.is-paid { color: var(--tat-green); }
/* Margin: a 56px bar before the figure, its zero tick a quarter of the way in */
.mbar { position: relative; display: inline-block; width: 56px; height: 6px; margin-right: .5rem; vertical-align: middle; border-radius: 3px; background: var(--cr-track); }
.mbar::before { content: ""; position: absolute; left: 25%; top: -3px; bottom: -3px; width: 1px; background: var(--tat-muted); }
.mbar-fill { position: absolute; top: 0; bottom: 0; border-radius: 3px; }
.mbar-fill.pos { background: var(--cr-ok); }
.mbar-fill.neg { background: var(--cr-over); }
/* Tight rows are 40px high. Only the height changes: the Lane cell keeps its two lines at both densities. */
.loads-table[data-density="tight"] td.cell-name > .small { display: none; }

/* ==== The load page (ticket 2026-10-18, part 4). No width media queries and no vh: the page is laid out 1920 wide and
   zoomed, so the one-screen shell is switched by `html[data-shell="fixed"]` (the head script: a landscape window of at
   least 1100 x 500) and sized from --vh-px, the window's height in the page's own pixels. Below that the page is an
   ordinary scrolling page with nothing overlapping. ==== */
[hidden] { display: none !important; }

/* the detail list: two label / value pairs a row, a label as wide as its text so a value never wraps under it */
.load-facts { display: grid; grid-template-columns: max-content minmax(0, 1fr) max-content minmax(0, 1fr); column-gap: 1rem; row-gap: .5rem; align-items: baseline; }
.load-facts dt { margin: 0; white-space: nowrap; }
.load-facts dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }

/* the map: a fixed 340px box inside the route card (owner, 2026-10-19: "too much compressed in length ... increase the
   height so the pins will be more visible"; it was 150px, a strip a 250-mile lane's two pins and the truck crowded) */
.load-map { height: 340px; }
.load-map .leaflet-control-zoom a, .load-map-reset a { width: 26px; height: 26px; line-height: 26px; font-size: 13px; }
.load-map-reset a { display: flex; align-items: center; justify-content: center; color: var(--tat-ink-2); }
.load-map-tip { font-size: .78rem; line-height: 1.3; }
.load-map-tip strong { font-weight: 600; }

/* the tracking bar, under the map: a bead, the state, a detail line, the actions */
.trk-bar { margin-top: .6rem; padding: .5rem .7rem; border: 1px solid var(--tat-line); border-radius: .7rem; background: var(--tat-white-2); }
.trk-row { display: flex; align-items: center; gap: .7rem; min-width: 0; }
.trk-bead { flex: 0 0 auto; width: 10px; height: 10px; border-radius: 50%; background: var(--tat-muted); }
.trk-bar.is-live .trk-bead { background: #1f9d55; box-shadow: 0 0 0 0 rgba(31, 157, 85, .55); animation: trk-pulse 2s infinite; }
.trk-bar.is-ready .trk-bead, .trk-bar.is-paused .trk-bead { background: var(--tat-amber); }
.trk-bar.is-ended .trk-bead { background: transparent; box-shadow: inset 0 0 0 2px var(--tat-muted); }
@keyframes trk-pulse { 0% { box-shadow: 0 0 0 0 rgba(31, 157, 85, .55); } 70% { box-shadow: 0 0 0 8px rgba(31, 157, 85, 0); } 100% { box-shadow: 0 0 0 0 rgba(31, 157, 85, 0); } }
@media (prefers-reduced-motion: reduce) { .trk-bar.is-live .trk-bead { animation: none; } }
.trk-text { min-width: 0; flex: 1 1 auto; }
.trk-line { font-weight: 600; font-size: .86rem; line-height: 1.25; }
.trk-detail { font-size: .76rem; color: var(--tat-muted); line-height: 1.25; }
.trk-detail:empty { display: none; }
.trk-actions { display: flex; align-items: center; gap: .4rem; flex: 0 0 auto; margin-left: auto; }
.trk-actions form { margin: 0; }
.trk-more { margin-top: .4rem; font-size: .8rem; }
.trk-more > summary { cursor: pointer; color: var(--tat-muted); font-weight: 600; }

/* the issue strip: one line between the page bar and the columns */
.issue-strip { flex: 0 0 auto; margin: 0 0 .6rem; border: 1px solid var(--tat-line); border-left-width: 4px; border-radius: .7rem; background: var(--tat-white); font-size: .85rem; }
.issue-strip.is-critical { border-color: var(--tat-red-ink); background: var(--tat-red-tint); }
.issue-strip.is-warning { border-color: var(--tat-amber); background: var(--tat-amber-tint); }
.issue-main { display: flex; align-items: center; gap: .6rem; padding: .45rem .75rem; min-width: 0; }
.issue-main > i { flex: 0 0 auto; }
.issue-strip.is-critical .issue-main > i { color: var(--tat-red-ink); }
.issue-strip.is-warning .issue-main > i { color: var(--tat-amber); }
.issue-text { flex: 1 1 auto; min-width: 0; font-weight: 500; }
.issue-more { flex: 0 0 auto; border: 0; background: transparent; padding: 0 .25rem; color: var(--tat-ink-2); font-weight: 600; font-size: .8rem; white-space: nowrap; }
.issue-fix { flex: 0 0 auto; border-radius: 20px; font-weight: 600; font-size: .8rem; padding: .2rem .8rem; background: var(--tat-red); border-color: var(--tat-red); color: #fff; white-space: nowrap; }
.issue-strip.is-warning .issue-fix { background: var(--tat-navy); border-color: var(--tat-navy); }
@keyframes pw-flash { 0%, 100% { box-shadow: 0 0 0 0 rgba(224, 160, 40, 0); } 25%, 65% { box-shadow: 0 0 0 4px rgba(224, 160, 40, .55); } }
#paperwork.is-flash { animation: pw-flash 1.4s ease-out; border-radius: 14px; }
.issue-rest { list-style: none; margin: 0; padding: .1rem .75rem .5rem 2.3rem; }
.issue-rest li { display: flex; align-items: center; gap: .6rem; padding: .15rem 0; }
.issue-rest li > span { flex: 1 1 auto; min-width: 0; }
.issue-link { flex: 0 0 auto; font-weight: 600; font-size: .8rem; }

/* Activity: runs of near-identical events folded into one line */
.la-group .la-fold > summary { cursor: pointer; list-style: none; }
.la-group .la-fold > summary::-webkit-details-marker { display: none; }
.la-group .la-fold > summary::after { content: "\F282"; font-family: "bootstrap-icons"; font-size: .7rem; margin-left: .4rem; color: var(--tat-muted); }
.la-sublist { list-style: none; margin: .3rem 0 .2rem; padding: 0 0 0 .2rem; border-left: 2px solid var(--tat-line); }
.la-sublist li { display: flex; justify-content: space-between; gap: .75rem; padding: .1rem 0 .1rem .6rem; font-size: .78rem; }
.la-sublist .la-meta { white-space: nowrap; }

/* ---- the one-screen shell: on only for a window of 1100 x 500 or more, landscape ---- */
html[data-shell="fixed"] body.page-load-detail { height: var(--vh-px, 100%); overflow: hidden; }
html[data-shell="fixed"] body.page-load-detail .app-shell { min-height: 0; height: var(--vh-px, 100%); }
html[data-shell="fixed"] body.page-load-detail .app-main { height: var(--vh-px, 100%); min-height: 0; overflow: hidden; }
html[data-shell="fixed"] body.page-load-detail main.container-fluid { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column;
  overflow: hidden; padding-top: .6rem !important; padding-bottom: .6rem !important; animation: none; }
html[data-shell="fixed"] body.page-load-detail main.container-fluid > * { flex: 0 0 auto; animation: none; }
html[data-shell="fixed"] body.page-load-detail .page-bar { margin-bottom: .6rem; }   /* nothing scrolls under it here */
html[data-shell="fixed"] body.page-load-detail main.container-fluid > .load-layout { flex: 1 1 auto; min-height: 0; align-items: stretch;
  grid-template-columns: 340px minmax(0, 1fr) 380px; grid-template-rows: minmax(0, 1fr); column-gap: 9px; }
html[data-shell="fixed"] body.page-load-detail main.container-fluid > .load-layout.no-track { grid-template-columns: 340px minmax(0, 1fr); }
/* a window under 1200px wide (the head script sets data-shell-narrow): the side columns give back a little */
html[data-shell="fixed"][data-shell-narrow="1"] body.page-load-detail main.container-fluid > .load-layout { grid-template-columns: 300px minmax(0, 1fr) 340px; }
html[data-shell="fixed"][data-shell-narrow="1"] body.page-load-detail main.container-fluid > .load-layout.no-track { grid-template-columns: 300px minmax(0, 1fr); }
/* a column is its own one scroller: the middle (.col.flow, cards at their natural height) scrolls whenever it is deeper than the
   window; the side and right ones hold their growing card's list as the working scroll region and scroll themselves only when
   even its minimum no longer fits (a 500px-high window), so no card is ever clipped */
html[data-shell="fixed"] .load-layout > .col { min-height: 0; min-width: 0; }
html[data-shell="fixed"] .ll-side, html[data-shell="fixed"] .ll-track { display: flex; flex-direction: column; overflow-x: hidden; overflow-y: auto; }
html[data-shell="fixed"] .col.flow > .ll-main, html[data-shell="fixed"] .col.flow > .ll-lanes { flex: 0 0 auto; }
html[data-shell="fixed"] .ll-mid { overflow-y: auto; scrollbar-gutter: stable; padding-right: .15rem; }
/* every card in the side and right columns keeps its box (flex-shrink 0) and clips what it holds (overflow hidden), or a
   short column would squeeze the boxes while their contents spilled over the card below; one card may grow */
html[data-shell="fixed"] .ll-side > *, html[data-shell="fixed"] .ll-track > * { flex: 0 0 auto; min-height: 0; overflow: hidden; margin-bottom: .6rem !important; }
html[data-shell="fixed"] .ll-side > .grow, html[data-shell="fixed"] .ll-track > .grow { flex: 1 1 auto; display: flex; flex-direction: column; }
html[data-shell="fixed"] .ll-side > .grow > .scroll, html[data-shell="fixed"] .ll-track > .grow .scroll,
html[data-shell="fixed"] .ll-track > .grow > .la-body > .scroll { flex: 1 1 auto; min-height: 0; max-height: none; overflow-y: auto; }
html[data-shell="fixed"] .ll-track > .grow > .la-body { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }
html[data-shell="fixed"] .ll-mid .card { overflow: visible; }
/* the Activity list scrolls in its card whatever the shell */
.la-body { display: flex; flex-direction: column; }
html[data-shell="fixed"]:has(> body.page-load-detail) { overflow: hidden; }   /* the window itself never scrolls here */

/* ---- the carriers table on the load page (ticket 2026-10-18, part 4.7): full width, no scroller of its own ---- */
.lane-card-panel .lane-table { table-layout: auto; width: 100%; }
/* where the column is narrower than the table (the flowing page) the table scrolls sideways inside its card, never past it */
.ll-lanes .tab-content { overflow-x: auto; }
.lane-table .lane-name { font-weight: 500; color: var(--tat-ink); text-decoration: none; }
.lane-table .lane-sub { font-size: .74rem; color: var(--tat-muted); line-height: 1.3; }
.lane-table .lane-rate { font-weight: 500; }
.lane-table .lane-lane { min-width: 14rem; }
.lane-table .lane-actions .btn { white-space: nowrap; }
.lane-picked.is-empty { opacity: .5; }
.lane-empty { padding-top: .9rem; padding-bottom: .9rem; }

/* ==== The Edit page (follow-on brief 2026-10-18, part 6): two columns that scroll on their own. The base is an ordinary scrolling page;
   everything that fixes the page to the window sits behind html[data-shell="fixed"] (the head script: landscape, 1100 x 500 or more),
   exactly like the load page's - no width media query, no vh. Left: Load details, then Route - it scrolls. Right: the rates and the
   accessorials scroll in .scrollpart; Live totals, the margin, Save and Cancel are .pinned and never leave the window.
   Both scrollers keep a stable gutter so nothing shifts sideways when a scrollbar appears. ==== */
/* Load details in four labelled groups, a hairline between them */
.fgroup + .fgroup { margin-top: .35rem; padding-top: .9rem; border-top: 1px solid var(--tat-line); }
.fgroup-title { margin: 0 0 .6rem; font-size: 10.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--tat-muted); }
.transit-read { display: flex; align-items: center; min-height: calc(1.5em + .75rem + 2px); padding: 0 .75rem; border: 1px dashed var(--tat-field); border-radius: var(--tat-radius-sm);
  color: var(--tat-ink-2); background: var(--tat-mist); font-variant-numeric: tabular-nums; }
.transit-read.is-bad { color: var(--tat-red-ink); }
.fcheck-row { margin-top: -.2rem; }
.country-toggle, .dock-hours-toggle { margin-bottom: 1rem; }
.country-toggle[hidden], .dock-hours-toggle[hidden] { display: none; }
html[data-shell="fixed"] body.page-load-form { height: var(--vh-px, 100%); overflow: hidden; }
html[data-shell="fixed"] body.page-load-form .app-shell { min-height: 0; height: var(--vh-px, 100%); }
html[data-shell="fixed"] body.page-load-form .app-main { height: var(--vh-px, 100%); min-height: 0; overflow: hidden; }
html[data-shell="fixed"] body.page-load-form main.container-fluid { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column;
  overflow: hidden; padding-top: .6rem !important; padding-bottom: .6rem !important; animation: none; }
html[data-shell="fixed"] body.page-load-form main.container-fluid > * { flex: 0 0 auto; animation: none; }
html[data-shell="fixed"] body.page-load-form .page-bar { margin-bottom: .6rem; }
html[data-shell="fixed"] body.page-load-form main.container-fluid > form#loadForm { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
html[data-shell="fixed"] body.page-load-form .form-wrap { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: minmax(660px, 1.6fr) minmax(430px, 1fr); grid-template-rows: minmax(0, 1fr);
  column-gap: 9px; align-items: stretch; margin: 0; --bs-gutter-x: 0; --bs-gutter-y: 0; }
/* a split, not a fixed money column (owner, 2026-10-18): the form's fields stop needing width at a point and the accessorials keep wanting it, so the
   two share the row 1.6 : 1 and each has a floor - 660px is where the four-across Freight row stops fitting, 430px where the accessorial lines stop working */
html[data-shell="fixed"] body.page-load-form .form-wrap > * { width: auto; max-width: none; flex: none; padding: 0; margin: 0; min-width: 0; min-height: 0; }
html[data-shell="fixed"] body.page-load-form .colL { overflow-y: auto; scrollbar-gutter: stable; }
html[data-shell="fixed"] body.page-load-form .colR { display: flex; flex-direction: column; overflow: hidden; }
html[data-shell="fixed"] body.page-load-form .colR .scrollpart { flex: 1 1 auto; min-height: 0; overflow-y: auto; scrollbar-gutter: stable; }
html[data-shell="fixed"] body.page-load-form .colR .pinned { flex: 0 0 auto; padding-top: .5rem; }
html[data-shell="fixed"] body.page-load-form .colR .pinned .totals-card { position: static; margin-bottom: 0; }
html[data-shell="fixed"]:has(> body.page-load-form) { overflow: hidden; }
/* a panel head in the narrower money column: the chips wrap under the button, the button never breaks its words */
html[data-shell="fixed"] body.page-load-form .colR .fpanel-head > .fpanel-title { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html[data-shell="fixed"] body.page-load-form .colR .fpanel-aside { flex: 0 0 auto; flex-wrap: nowrap; }
html[data-shell="fixed"] body.page-load-form .colR .fpanel-aside .btn, html[data-shell="fixed"] body.page-load-form .colR .fpanel-aside .fpanel-chip { white-space: nowrap; }
/* the pinned foot is kept short so the rates above it keep their room in a 650px window: tighter lines, the margin on one line, the
   two secondary saves side by side */
html[data-shell="fixed"] body.page-load-form .pinned .totals-card .fpanel-head { padding-top: .4rem; padding-bottom: .4rem; }
html[data-shell="fixed"] body.page-load-form .pinned .totals-card .card-body { padding: .45rem .85rem .65rem; }
html[data-shell="fixed"] body.page-load-form .pinned .rl-row { padding-top: .05rem; padding-bottom: .05rem; font-size: .84rem; }
html[data-shell="fixed"] body.page-load-form .pinned .rl-side + .rl-side { margin-top: .35rem; }
html[data-shell="fixed"] body.page-load-form .pinned .rl-margin { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; margin-top: .4rem; padding-top: .35rem; text-align: left; }
html[data-shell="fixed"] body.page-load-form .pinned .rl-margin-value { font-size: 1.3rem; margin-left: auto; }
html[data-shell="fixed"] body.page-load-form .pinned .rl-margin-pct { font-size: .95rem; }
html[data-shell="fixed"] body.page-load-form .pinned .d-grid { grid-template-columns: 1fr 1fr; gap: .35rem !important; margin-top: .5rem !important; }
html[data-shell="fixed"] body.page-load-form .pinned .d-grid > * { white-space: nowrap; font-size: .76rem; padding-left: .3rem; padding-right: .3rem; }
html[data-shell="fixed"] body.page-load-form .pinned .d-grid > .btn-primary, html[data-shell="fixed"] body.page-load-form .pinned .d-grid > a { grid-column: span 2; font-size: .84rem; }
/* below the thresholds the page scrolls as one, and the money column's foot follows you down it */
html:not([data-shell="fixed"]) .colR .pinned { position: sticky; top: 1rem; }

/* ---- the quick-peek drawer on the loads list (ticket 2026-10-18, part 5): 400px from the right, read-only. It wears the
   load page's own components (cards, chips, the receipt, the stop badges, the detail list, the paperwork strip), so there is
   almost nothing here: its chrome and its motion. ---- */
.loads-table > tbody > tr[data-load-id] { cursor: pointer; }
.loads-table > tbody > tr.is-peeked { --row-bg: var(--tat-tint); }
.peek-scrim { position: fixed; inset: 0; z-index: 1034; background: rgba(15, 16, 23, .28); opacity: 0; transition: opacity .18s ease; }
.peek-scrim.is-open { opacity: 1; }
.peek { position: fixed; top: 0; right: 0; width: 400px; max-width: 100%; height: var(--vh-px, 100%); z-index: 1035; display: flex; flex-direction: column;
  background: var(--tat-canvas); box-shadow: var(--tat-shadow-pop); transform: translateX(100%); transition: transform .2s ease; }
.peek.is-open { transform: translateX(0); }
.peek-head { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .8rem 1rem;
  background: var(--tat-white); border-bottom: 1px solid var(--tat-line); }
.peek-title { display: flex; align-items: center; gap: .55rem; min-width: 0; font-size: 1rem; }
.peek-title a { color: var(--tat-ink); text-decoration: none; }
.peek-chips { display: inline-flex; gap: .3rem; }
.peek-content { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: .85rem 1rem 1rem; }
.peek-content .rr { max-width: 100%; }
.peek-content .issue-strip { margin-bottom: .75rem; }

/* ---- the quick view, redesigned at the owner's request (2026-11-11: "more advance aesthetically clean professional showing the right
   information at right manner"): a head with the load number, "Open full" and the chips; then, in the body (loads/_peek.html, shared
   with the Home page's load card), a dark Next step bar, the route with the stage as a progress bar, the money, the people, the
   shipment facts, the stops and the paperwork. Every colour is a token the app already has, so the dark theme follows with no rule of
   its own; there is no width media query - the panel is as wide as its column and every cell wraps. ---- */
#loadPeek .peek-head.qv-head { flex-direction: column; align-items: stretch; justify-content: flex-start; gap: .55rem; padding: .85rem 1rem .75rem; }
.qv-top { display: flex; align-items: center; gap: .6rem; min-width: 0; }
.qv-no { min-width: 0; font-size: 1.2rem; font-weight: 700; letter-spacing: -.01em; color: var(--tat-ink); text-decoration: none; overflow-wrap: anywhere; }
.qv-no:hover { color: var(--tat-ink); text-decoration: none; opacity: .72; }
.qv-open { flex: none; margin-left: auto; display: inline-flex; align-items: center; gap: .4rem; font-size: .8125rem; font-weight: 600; line-height: 1.4;
  color: #fff; background: var(--tat-navy); border-radius: 99px; padding: .38rem .85rem; text-decoration: none; }
.qv-open:hover { color: #fff; text-decoration: none; filter: brightness(1.14); }
html[data-bs-theme="dark"] .qv-open { background: var(--tat-navy-soft); }
.qv-chips { display: flex; flex-wrap: wrap; gap: .35rem; }
.qv-chips:empty { display: none; }
.qv-stack { display: flex; flex-direction: column; gap: .75rem; min-width: 0; container-type: inline-size; }
.qv-stack > .issue-strip, .qv-stack > .pk-more { margin-bottom: 0; }
.qv-card { min-width: 0; padding: 1rem; background: var(--tat-white); border: 1px solid var(--tat-line-soft); border-radius: var(--tat-radius); box-shadow: var(--tat-shadow-sm); }
.qv-lab { font-size: .6875rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--tat-muted); }
.qv-card-h { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .75rem; }
.qv-card-h.is-tight { margin-bottom: .2rem; }
.qv-dim { color: var(--tat-muted); font-weight: 500; }
/* the Next step bar (the script puts it above the body; its button is the row's own, kept in step with it) */
.peek-content > .nx-box { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: .75rem; row-gap: .1rem;
  padding: .75rem .9rem .75rem 1rem; color: #fff; border: 0; border-radius: var(--tat-radius); background: linear-gradient(135deg, var(--tat-navy-deep), var(--tat-navy-soft)); }
.peek-content > .nx-box .nx-slot { display: contents; }
.peek-content > .nx-box .nx-box-title { grid-column: 1; grid-row: 1; margin: 0; color: rgba(255, 255, 255, .66); }
.peek-content > .nx-box .nx-why, .peek-content > .nx-box .nx-none { grid-column: 1; grid-row: 2; color: rgba(255, 255, 255, .92); font-size: .8125rem; }
.peek-content > .nx-box .nx-btn { grid-column: 2; grid-row: 1 / span 2; padding: .42rem .95rem; font-size: .8125rem; font-weight: 700; color: var(--tat-navy); background: #fff; border-color: #fff; }
.peek-content > .nx-box .nx-btn:hover { color: var(--tat-navy); background: #fff; filter: none; transform: translateX(2px); }
.peek-content > .nx-box .nx-btn.is-quiet { color: #fff; background: transparent; border-color: rgba(255, 255, 255, .5); }
/* the route */
.qv-route { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: start; gap: .4rem; }
.qv-end.is-r { text-align: right; }
.qv-city { margin-top: .3rem; font-size: 1.15rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.12; color: var(--tat-ink); overflow-wrap: anywhere; }
.qv-sub { margin-top: .15rem; font-size: .8125rem; color: var(--tat-muted); }
.qv-when { display: inline-flex; align-items: center; gap: .4rem; margin-top: .6rem; padding: .25rem .55rem; white-space: nowrap; font-size: .78rem; font-weight: 600; color: var(--tat-ink-2); background: var(--tat-canvas); border-radius: .5rem; }
.qv-when .bi { color: var(--tat-muted); }
.qv-sq { display: inline-block; width: .5rem; height: .5rem; border-radius: 2px; vertical-align: 1px; }
.qv-sq.is-p { margin-right: .4rem; background: var(--viz-s3); }
.qv-sq.is-d { margin-left: .4rem; background: var(--viz-s8); }
.qv-mid { display: flex; flex-direction: column; align-items: center; width: 3.8rem; padding-top: .1rem; text-align: center; }
.qv-ln { position: relative; width: 100%; height: 1.4rem; }
.qv-ln::before { content: ""; position: absolute; inset: .7rem 0 auto; border-top: 2px dashed var(--tat-line); }
.qv-ln .bi { position: absolute; left: 50%; top: 0; transform: translateX(-50%); padding: 0 .25rem; font-size: 1.1rem; line-height: 1.4rem; color: var(--tat-ink-2); background: var(--tat-white); }
.qv-mi { margin-top: .1rem; font-size: .75rem; font-weight: 600; color: var(--tat-muted); white-space: nowrap; }
.qv-eq { margin-top: .1rem; font-size: .68rem; line-height: 1.2; color: var(--tat-muted); overflow-wrap: anywhere; }
/* the stage as a progress bar: 6 steps, 7 with Postponed, 2 for a cancelled load */
.qv-steps { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); margin: 1.1rem -.4rem 0; padding: 1rem 0 0; list-style: none; border-top: 1px solid var(--tat-line-soft); }
.qv-steps.n7 { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.qv-steps.n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.qv-step { position: relative; min-width: 0; padding: 0; font-size: .64rem; font-weight: 500; line-height: 1.25; text-align: center; color: var(--tat-muted); overflow-wrap: normal; }
.qv-step::before { content: ""; position: absolute; top: .4rem; left: -50%; width: 100%; height: 2px; background: var(--tat-line); }
.qv-step:first-child::before { display: none; }
.qv-step.done::before, .qv-step.now::before { background: var(--tat-green); }
.qv-step.warn::before { background: var(--tat-amber); }
.qv-dot { position: relative; z-index: 1; display: block; width: .9rem; height: .9rem; margin: 0 auto .45rem; border-radius: 50%; background: var(--tat-white); border: 2px solid var(--tat-line); }
.qv-step.done { color: var(--tat-ink-2); }
.qv-step.done .qv-dot { background: var(--tat-green); border-color: var(--tat-green); }
.qv-step.now { font-weight: 700; color: var(--tat-ink); }
.qv-step.now .qv-dot { background: var(--viz-s1); border-color: var(--viz-s1); box-shadow: 0 0 0 4px color-mix(in srgb, var(--viz-s1) 22%, transparent); }
.qv-step.warn { font-weight: 700; color: var(--tat-amber); }
.qv-step.warn .qv-dot { background: var(--tat-amber); border-color: var(--tat-amber); }
.qv-step em { display: block; margin-top: .05rem; font-size: .625rem; font-style: normal; font-weight: 400; color: var(--tat-muted); }
.qv-bill { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .9rem; }
.qv-bill > span { flex: 1 1 6.5rem; white-space: nowrap; display: flex; align-items: center; gap: .45rem; padding: .45rem .6rem; font-size: .75rem; font-weight: 600; color: var(--tat-muted); background: var(--tat-canvas); border-radius: .6rem; }
.qv-bill > span.on { color: var(--tat-green); background: var(--tat-green-tint); }
/* the money */
.qv-money { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.qv-fig { min-width: 0; padding: .7rem .8rem; background: var(--tat-white); border: 1px solid var(--tat-line-soft); border-radius: .85rem; }
.qv-wide { grid-column: 1 / -1; }
.qv-v { margin-top: .2rem; font-size: 1.35rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; color: var(--tat-ink); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.qv-n { display: flex; align-items: center; gap: .4rem; margin-top: .3rem; font-size: .75rem; color: var(--tat-muted); }
.qv-n::before { content: ""; flex: none; width: .4rem; height: .4rem; border-radius: 50%; background: var(--tat-muted); opacity: .6; }
.qv-n.is-ok::before { background: var(--tat-green); opacity: 1; }
.qv-n.is-mid::before { background: var(--viz-s1); opacity: 1; }
.qv-margin { display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: .75rem; background: var(--tat-green-tint); border-color: color-mix(in srgb, var(--tat-green) 25%, transparent); }
.qv-margin .qv-lab, .qv-margin .qv-v { color: var(--tat-green); }
.qv-margin .qv-v { font-size: 1.6rem; }
.qv-margin.is-neg { background: var(--tat-red-tint); border-color: transparent; }
.qv-margin.is-neg .qv-lab, .qv-margin.is-neg .qv-v, .qv-margin.is-neg .qv-pct { color: var(--tat-red-ink); }
.qv-pct { padding: .3rem .75rem; font-size: .95rem; font-weight: 700; color: var(--tat-green); background: var(--tat-white); border-radius: 99px; font-variant-numeric: tabular-nums;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tat-green) 25%, transparent); }
.qv-bar { grid-column: 1 / -1; height: .45rem; margin-top: .65rem; overflow: hidden; border-radius: 99px; background: color-mix(in srgb, var(--tat-green) 22%, var(--tat-white)); }
.qv-bar b { display: block; height: 100%; border-radius: 99px; background: var(--tat-green); }
.qv-bar-k { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: .5rem; margin-top: .3rem; font-size: .69rem; white-space: nowrap; color: var(--tat-green); }
.qv-tbd { display: inline-block; padding: .1rem .6rem; font-size: .75rem; font-weight: 700; letter-spacing: .04em; color: var(--tat-amber); background: var(--tat-amber-tint); border-radius: 99px;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tat-amber) 35%, transparent); }
/* the Rates card (plain, owner 2026-11-13) opens from its own row (a <details>): shut until asked for */
.qv-rcpt { margin-top: .65rem; }
.qv-rcpt > summary { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .5rem; padding: .6rem .8rem; list-style: none; cursor: pointer; font-size: .8125rem; font-weight: 600;
  color: var(--tat-ink-2); background: var(--tat-canvas); border: 1px solid var(--tat-field); border-radius: .75rem; }
.qv-rcpt > summary::-webkit-details-marker { display: none; }
.qv-rcpt > summary:focus-visible { outline: 2px solid var(--viz-s1); outline-offset: 2px; }
.qv-rcpt-t { white-space: nowrap; }
.qv-owed { margin-left: auto; font-size: .78rem; font-weight: 600; color: var(--tat-muted); white-space: nowrap; }
.qv-owed b { color: var(--tat-ink); }
.qv-chev { transition: transform .18s; }
.qv-rcpt[open] .qv-chev { transform: rotate(180deg); }
.qv-rcpt .rr.mb-3 { margin: .65rem 0 0 !important; }
/* the people */
.qv-party { display: flex; align-items: center; gap: .75rem; padding: .65rem 0; }
.qv-party:first-child { padding-top: 0; }
.qv-party + .qv-party { border-top: 1px solid var(--tat-line-soft); }
.qv-av { flex: none; display: grid; place-items: center; width: 2.25rem; height: 2.25rem; overflow: hidden; font-size: .8rem; font-weight: 700; color: #fff; background: var(--tat-muted); border-radius: .7rem; }
.qv-av[data-c] { background: var(--c); }
.qv-av.is-sm { width: 1.75rem; height: 1.75rem; font-size: .68rem; border-radius: 50%; }
.qv-av img { width: 100%; height: 100%; object-fit: cover; }
.qv-party-b { flex: 1 1 auto; min-width: 0; }
.qv-party-nm { font-size: .9rem; font-weight: 600; line-height: 1.2; color: var(--tat-ink); overflow-wrap: anywhere; }
.qv-party-sb { margin-top: .1rem; font-size: .78rem; color: var(--tat-muted); overflow-wrap: anywhere; }
.qv-role { flex: none; margin-left: auto; font-size: .66rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--tat-muted); }
.qv-staff { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .25rem; padding-top: .75rem; border-top: 1px solid var(--tat-line-soft); }
.qv-staff-c { flex: 1 1 7.5rem; display: flex; align-items: center; gap: .5rem; min-width: 0; font-size: .8rem; font-weight: 500; color: var(--tat-ink-2); }
.qv-staff-t { min-width: 0; overflow-wrap: anywhere; }
.qv-staff-t small { display: block; font-size: .65rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--tat-muted); }
/* the shipment facts: only the ones the load holds */
.qv-facts { display: grid; grid-template-columns: 1fr 1fr; }
.qv-fact { min-width: 0; padding: .55rem 0; }
.qv-fact:nth-child(odd) { padding-right: .75rem; }
.qv-fact:nth-child(n+3) { border-top: 1px solid var(--tat-line-soft); }
.qv-fact:nth-child(odd):last-child { grid-column: 1 / -1; }
.qv-k { font-size: .66rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--tat-muted); }
.qv-fv { margin-top: .1rem; font-size: .875rem; font-weight: 600; color: var(--tat-ink); overflow-wrap: anywhere; }
/* the stops, joined by a dashed line */
.qv-stop { position: relative; display: grid; grid-template-columns: 1.4rem minmax(0, 1fr); column-gap: .75rem; padding-bottom: .9rem; }
.qv-stop:last-child { padding-bottom: 0; }
.qv-stop::before { content: ""; position: absolute; left: .65rem; top: 1.55rem; bottom: .1rem; border-left: 2px dashed var(--tat-line); }
.qv-stop:last-child::before { display: none; }
.qv-pin { display: grid; place-items: center; width: 1.4rem; height: 1.4rem; font-size: .62rem; font-weight: 700; color: #fff; border-radius: .45rem; }
.qv-pin.is-p { background: var(--viz-s3); }
.qv-pin.is-d { background: var(--viz-s8); }
.qv-stop-b { min-width: 0; }
.qv-stop-co { font-size: .9rem; font-weight: 700; color: var(--tat-ink); overflow-wrap: anywhere; }
.qv-stop-ad { margin-top: .05rem; font-size: .8125rem; color: var(--tat-ink-2); overflow-wrap: anywhere; }
.qv-stop-ad:first-child { font-size: .9rem; font-weight: 700; color: var(--tat-ink); }
.qv-stop-mt { display: flex; flex-wrap: wrap; gap: .25rem .9rem; margin-top: .4rem; font-size: .78rem; color: var(--tat-muted); }
.qv-stop-mt > span { display: inline-flex; align-items: center; gap: .35rem; min-width: 0; overflow-wrap: anywhere; }
.qv-note { display: flex; align-items: flex-start; gap: .45rem; margin-top: .5rem; padding: .45rem .65rem; font-size: .78rem; color: var(--tat-amber); background: var(--tat-amber-tint); border-radius: .6rem; }
/* the paperwork: RC, BOL, POD */
.qv-count { font-size: .78rem; font-weight: 600; color: var(--tat-amber); }
.qv-count.is-ok { color: var(--tat-green); }
.qv-paper { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.qv-doc { padding: .6rem .3rem; font-size: .8125rem; font-weight: 700; text-align: center; color: var(--tat-amber); background: var(--tat-amber-tint); border: 1.5px dashed color-mix(in srgb, var(--tat-amber) 45%, transparent); border-radius: .75rem; }
.qv-doc small { display: block; margin-top: .1rem; font-size: .69rem; font-weight: 500; }
.qv-doc.is-ok { color: var(--tat-green); background: var(--tat-green-tint); border: 1.5px solid color-mix(in srgb, var(--tat-green) 30%, transparent); }
.qv-doc.is-red { color: var(--tat-red-ink); background: var(--tat-red-tint); border-color: color-mix(in srgb, var(--tat-red-ink) 45%, transparent); }
.qv-prog { height: .32rem; margin-top: .75rem; overflow: hidden; border-radius: 99px; background: var(--tat-line-soft); }
.qv-prog b { display: block; height: 100%; background: var(--tat-green); }
/* a narrow body (the Home page's Load detail card) reads the width of its own box, not the screen's - these are container queries, not
   width media queries: the route puts its middle under the two ends, the steps become a list, the money goes one figure to a row */
@container (max-width: 270px) {
  .qv-route { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); row-gap: .6rem; }
  .qv-route .qv-mid { grid-column: 1 / -1; grid-row: 2; flex-direction: row; width: auto; justify-content: center; gap: .55rem; padding: 0; }
  .qv-route .qv-ln { flex: none; width: 1.8rem; }
  .qv-route .qv-mi, .qv-route .qv-eq { margin: 0; }
  .qv-city { font-size: 1.02rem; }
  .qv-money { grid-template-columns: minmax(0, 1fr); }
  .qv-margin .qv-v { font-size: 1.4rem; }
  .qv-pct { padding: .25rem .6rem; font-size: .85rem; }
  .qv-steps, .qv-steps.n7, .qv-steps.n2 { grid-template-columns: minmax(0, 1fr); margin: 1rem 0 0; padding-top: .8rem; }
  .qv-step { display: flex; align-items: center; gap: .6rem; padding: .3rem 0; font-size: .75rem; text-align: left; }
  .qv-step::before { top: -50%; left: calc(.45rem - 1px); width: 2px; height: 100%; }
  .qv-dot { flex: none; margin: 0; }
  .qv-step em { margin: 0 0 0 auto; font-size: .7rem; }
  /* a person: the role label goes on a line of its own above, so the name keeps the whole width and breaks only between words */
  .qv-party { flex-wrap: wrap; row-gap: .15rem; }
  .qv-role { order: -1; flex: 1 0 100%; margin: 0; }
  /* the Rates row: "Rates" and the chevron share the first line, what is owed goes under them */
  .qv-rcpt > summary .qv-chev { order: 1; margin-left: auto; }
  .qv-rcpt > summary .qv-owed { order: 2; flex: 1 0 100%; margin-left: 0; }
  /* the card inside has no frame of its own here and less side padding (the margin band still fits its bleed); a label wraps
     instead of being cut off, and the strip (title, number, date) wraps to a second line */
  .qv-rcpt .rc.card { border: 0; box-shadow: none; background: transparent; }
  .qv-rcpt .rc-strip, .qv-rcpt .rc-body { padding-inline: .5rem; }
  .qv-rcpt .rc-strip { flex-wrap: wrap; row-gap: .1rem; }
  .qv-rcpt .rc-label { white-space: normal; }
}
html[data-motion="off"] .qv-chev, html[data-motion="off"] .peek-content > .nx-box .nx-btn { transition: none; }
html[data-motion="off"] .peek, html[data-motion="off"] .peek-scrim { transition: none; }
@media (prefers-reduced-motion: reduce) { .peek, .peek-scrim { transition: none; } }

/* ==== The Notes notebook (ticket 2026-10-18, part 7; the follow-on brief of the same day: edit, delete, history). Cream paper ruled to
   the body's own line-height - the one --nb-lh both the text and the rules read, so the words sit on the rules whatever the zoom;
   a red margin rule 28px from the card's left edge that stays put while the notes scroll; a torn top edge. Two devices, not
   five: no binding, no texture image, no drop shadow. The body is the UI sans; handwriting (Caveat, with an italic sans behind
   it) is for the empty prompt alone.
   THE BASELINE GRID: everything in the list is a multiple of --nb-lh (26px) or the text drifts off the rules as the list grows -
   the metadata row is 26px tall with a 26px line (not padding), the body has a 26px line, each note ends with 25px of space and
   a 1px dashed line (= 26px; the last note with neither), a history row is a 25px line inside a 1px border (= 26px), and the
   20px buttons centre in the 26px band. ==== */
.nb { --nb-fs: 13.5px; --nb-lh: 26px; --nb-tear: 5px;
  --nb-paper: #FDFBF4; --nb-ink: #1d1f2b; --nb-muted: #6b7084; --nb-rule: rgba(104, 128, 166, .24); --nb-redline: rgba(214, 31, 51, .38); --nb-edge: #e6e1d3;
  --nb-dash: color-mix(in srgb, var(--nb-muted) 60%, transparent); --nb-btn-bg: #fffefb; --nb-btn-line: #cfc9b8;
  --nb-danger-bg: #fdecee; --nb-danger-line: #f0b3ba; --nb-danger-ink: #b3202f;
  position: relative; display: flex; flex-direction: column; min-height: 120px; color: var(--nb-ink); background: var(--nb-paper);
  font-size: var(--nb-fs); line-height: var(--nb-lh); transition: opacity .15s;
  box-shadow: inset 0 0 0 1px var(--nb-edge); border-radius: 0 0 .7rem .7rem;
  -webkit-mask: conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top / calc(2 * var(--nb-tear)) var(--nb-tear) repeat-x,
    linear-gradient(#000 0 0) 0 var(--nb-tear) / 100% calc(100% - var(--nb-tear) + 1px) no-repeat;
  mask: conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top / calc(2 * var(--nb-tear)) var(--nb-tear) repeat-x,
    linear-gradient(#000 0 0) 0 var(--nb-tear) / 100% calc(100% - var(--nb-tear) + 1px) no-repeat; }
html[data-bs-theme="dark"] .nb { --nb-paper: #17161A; --nb-ink: #ECE8E0; --nb-muted: #aaa59b; --nb-rule: rgba(190, 200, 224, .11); --nb-redline: rgba(255, 116, 128, .32); --nb-edge: #2c2a2f;
  --nb-btn-bg: #1f1e23; --nb-btn-line: #3b3941; --nb-danger-bg: #3a1d22; --nb-danger-line: #6b2f38; --nb-danger-ink: #ff9aa5; }
.nb.is-busy { opacity: .6; pointer-events: none; }
.nb-head { flex: 0 0 auto; display: flex; align-items: center; gap: .55rem; margin-top: var(--nb-tear); padding: .5rem .8rem .4rem 12px; }
.nb-title { display: inline-flex; align-items: center; gap: .4rem; font-size: 10.5px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--nb-muted); }
.nb-count { min-width: 1.4rem; padding: 0 .45rem; border-radius: 1rem; text-align: center; font-size: 11px; font-weight: 700; line-height: 1.5; color: #fff; background: var(--tat-navy);
  font-variant-numeric: tabular-nums; }
html[data-bs-theme="dark"] .nb-count { background: #3a3d52; }
.nb-add { margin-left: auto; padding-top: .12rem; padding-bottom: .12rem; font-size: 12px; white-space: nowrap; }
.nb-body { position: relative; flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
/* the red margin: on the card, not in the scroller, so it reads as the page's edge */
.nb-margin { position: absolute; z-index: 2; left: 28px; top: 0; bottom: 0; width: 1px; background: var(--nb-redline); pointer-events: none; }
.nb-scroll { flex: 1 1 auto; min-height: calc(var(--nb-lh) * 3); max-height: calc(var(--nb-lh) * 14); overflow-y: auto; scrollbar-width: thin; }
/* the rules are on the scrolling content, so they travel with the notes */
.nb-content { position: relative; min-height: 100%; padding-right: 12px; }
.nb-rules { position: absolute; inset: 0; pointer-events: none;
  background-image: repeating-linear-gradient(180deg, transparent 0 calc(var(--nb-lh) - 1px), var(--nb-rule) calc(var(--nb-lh) - 1px) var(--nb-lh)); }
.nb-list { position: relative; z-index: 1; }
.nb-note { position: relative; padding-left: 40px; padding-bottom: calc(var(--nb-lh) - 1px); border-bottom: 1px dashed var(--nb-dash); }
.nb-note:last-child { padding-bottom: 0; border-bottom: 0; }
.nb-meta { position: relative; display: flex; align-items: center; gap: .5rem; height: var(--nb-lh); min-width: 0; font-size: 10.5px; line-height: var(--nb-lh); color: var(--nb-muted); }
.nb-who { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.nb-edited { flex: 0 0 auto; font-style: italic; }
/* edited by someone other than the writer: said on the note's face, on the same 26px line at the same size and muted, never a second line */
.nb-edited.is-other { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-style: normal; }
.nb-when.is-inline { margin-left: 0; }
.nb-when.is-inline::before, .nb-edited.is-other::before { content: "\00b7"; margin-right: .5rem; }
.nb-when { margin-left: auto; flex: 0 0 auto; white-space: nowrap; font-variant-numeric: tabular-nums; }
.nb-av { position: absolute; left: -36px; top: 3px; width: 20px; height: 20px; border-radius: 50%; overflow: hidden; display: inline-flex; align-items: center; justify-content: center;
  font-size: 8.5px; font-weight: 700; letter-spacing: 0; line-height: 1; color: #fff; background: var(--c, var(--hc-av1)); }
.nb-av img { width: 100%; height: 100%; object-fit: cover; }
.nb-text { font-size: var(--nb-fs); line-height: var(--nb-lh); color: var(--nb-ink); white-space: pre-wrap; overflow-wrap: anywhere; }
.nb-text.is-struck { color: var(--nb-muted); text-decoration: line-through; }
.nb-text[contenteditable] { outline: 0; background: color-mix(in srgb, var(--tat-red) 6%, transparent); box-shadow: 0 1px 0 0 var(--tat-red); }
/* the three pill buttons, in the metadata row: out of sight until the note is hovered or something in it has the keyboard */
/* over the timestamp, not beside it: the name keeps its room, and the buttons sit centred in the 26px band */
.nb-acts { position: absolute; right: 0; top: 3px; display: inline-flex; align-items: center; gap: 3px; padding-left: 6px; background: var(--nb-paper); opacity: 0; transition: opacity .12s; }
.nb-note:hover .nb-acts, .nb-note:focus-within .nb-acts, .nb-note.is-editing .nb-acts, .nb-acts.is-shown { opacity: 1; }
@media (hover: none) { .nb-acts { position: static; opacity: 1; padding-left: 0; background: none; } }
.nb-btn { display: inline-flex; align-items: center; justify-content: center; gap: 4px; height: 20px; min-width: 20px; padding: 0 6px; border: 1px solid var(--nb-btn-line);
  border-radius: 20px; background: var(--nb-btn-bg); color: var(--nb-muted); font: inherit; font-size: 10px; font-weight: 600; line-height: 1; cursor: pointer; }
.nb-btn:hover { color: var(--nb-ink); border-color: var(--nb-muted); }
.nb-btn:focus-visible { outline: 0; box-shadow: 0 0 0 3px var(--tat-ring); }
.nb-btn[aria-expanded="true"] { color: var(--nb-ink); border-color: var(--nb-muted); background: var(--nb-rule); }
.nb-btn.is-danger { background: var(--nb-danger-bg); border-color: var(--nb-danger-line); color: var(--nb-danger-ink); }
.nb-btn.is-danger:hover { border-color: var(--nb-danger-ink); }
.nb-btn.is-active { background: var(--tat-red); border-color: var(--tat-red); color: #fff; }
.nb-ico { flex: 0 0 auto; display: block; }
/* the history: a 25px line in a 1px border is 26px, the replaced words 26px a line */
.nb-hist { border-top: 0; }
.nb-hrow { box-sizing: content-box; height: auto; line-height: calc(var(--nb-lh) - 1px); border-bottom: 1px solid var(--nb-rule); font-size: 10.5px; color: var(--nb-muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nb-hrow b { font-weight: 700; color: var(--nb-ink); }
.nb-hprev { line-height: var(--nb-lh); font-size: 11.5px; color: var(--nb-ink); white-space: pre-wrap; overflow-wrap: anywhere; border-left: 2px solid var(--nb-redline); padding-left: .5rem; }
.nb-hwas { color: var(--nb-muted); font-weight: 600; }
/* the deleted tray, at the foot of the list */
.nb-tray { position: relative; z-index: 1; margin-top: var(--nb-lh); }
.nb-tray-toggle { display: flex; align-items: center; gap: .35rem; width: 100%; height: var(--nb-lh); padding: 0 0 0 40px; border: 0; background: none; text-align: left;
  font: inherit; font-size: 10.5px; font-weight: 600; line-height: var(--nb-lh); color: var(--nb-muted); cursor: pointer; }
.nb-tray-toggle:hover { color: var(--nb-ink); }
.nb-tray-toggle:focus-visible { outline: 0; box-shadow: inset 0 0 0 2px var(--tat-ring); }
.nb-tray-toggle[aria-expanded="true"] .nb-chev { transform: rotate(180deg); }
.nb-gone { height: var(--nb-lh); line-height: var(--nb-lh); font-size: 10.5px; color: var(--nb-danger-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nb-btn.is-restore { padding: 0 8px; }
.nb-btn-l { font-size: 10px; }
/* the empty prompt, on the first rule: the one place a handwriting face appears */
.nb-empty { position: relative; z-index: 1; margin: 0; padding: 0 0 0 40px; min-height: var(--nb-lh);
  font-family: "Caveat", var(--f-sans); font-style: italic; font-size: 16px; line-height: var(--nb-lh); color: var(--nb-muted); }
/* the composer: pinned under the list, the same paper, the same rules, the same type */
.nb-compose { flex: 0 0 auto; position: relative; padding: .35rem 12px .5rem 40px; background: var(--nb-paper); border-top: 1px dashed var(--nb-dash); }
.nb-compose::before { content: ""; position: absolute; left: 28px; top: 0; bottom: 0; width: 1px; background: var(--nb-redline); }
.nb-input { display: block; width: 100%; height: calc(var(--nb-lh) * 3); padding: 0; border: 0; border-radius: 0; resize: none; outline: 0; color: var(--nb-ink); background-color: transparent;
  font: inherit; font-size: var(--nb-fs); line-height: var(--nb-lh);
  background-image: repeating-linear-gradient(180deg, transparent 0 calc(var(--nb-lh) - 1px), var(--nb-rule) calc(var(--nb-lh) - 1px) var(--nb-lh)); background-attachment: local; }
.nb-input:focus-visible { box-shadow: 0 2px 0 0 var(--tat-ring-solid, #8b93c4); }
.nb-input.is-invalid { box-shadow: 0 2px 0 0 var(--tat-red); }
.nb-error { font-size: 11.5px; line-height: var(--nb-lh); color: var(--tat-red-ink); }
html[data-bs-theme="dark"] .nb-error { color: #ff8f99; }
.nb-flash { position: relative; z-index: 1; margin: 0; padding: 0 0 0 40px; min-height: var(--nb-lh); font-size: 11.5px; line-height: var(--nb-lh); color: var(--tat-red-ink); }
html[data-bs-theme="dark"] .nb-flash { color: #ff8f99; }
.nb-flash[hidden] { display: none; }
.nb-compose-foot { display: flex; justify-content: flex-end; gap: .4rem; padding-top: .25rem; }
/* the shell: the card is the growing one of the left column; its list is that column's one scroll region */
html[data-shell="fixed"] .ll-side > .nb { min-height: 120px; }
html[data-shell="fixed"] .ll-side > .nb > .nb-body { flex: 1 1 auto; min-height: 0; }
html[data-shell="fixed"] .ll-side > .nb .nb-scroll { flex: 1 1 auto; min-height: 0; max-height: none; }
/* a plain surface for anyone who asked for less: the rules and the margin go */
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
  .nb-rules, .nb-margin, .nb-compose::before { display: none; }
  .nb { --nb-paper: var(--tat-white); --nb-ink: var(--tat-ink); -webkit-mask: none; mask: none; }
  .nb-input { background-image: none; }
}
/* printed: the rules stay, the margin and the cream go - black on white */
@media print {
  .nb { --nb-paper: #fff; --nb-ink: #000; --nb-muted: #333; --nb-rule: rgba(0, 0, 0, .22); -webkit-mask: none; mask: none; box-shadow: none; }
  .nb-margin, .nb-compose::before, .nb-compose, .nb-add, .nb-acts { display: none; }
  .nb-scroll { max-height: none; overflow: visible; }
}

/* ==== The settings area (owner brief, 2026-10-18). Two panes under the page bar: a 252px navigation and the content, each its own
   scroller inside the fixed shell (`html[data-shell="fixed"]`, set by the head script: landscape, at least 1100 x 500 - the same
   guard as the load page); below that it is an ordinary scrolling page. No width media queries: a window under 900px wide is
   `html[data-shell-small="1"]` (also the head script), which swaps the navigation for a select. Colours are tokens, so dark follows. ==== */
.set-area { display: grid; grid-template-columns: 252px minmax(0, 1fr); gap: 14px; align-items: start; }
.set-nav { box-sizing: border-box; background: var(--tat-white); border: 1px solid var(--tat-line); border-radius: var(--tat-radius-sm);
  box-shadow: var(--tat-shadow-sm); padding: 10px 8px 12px; }
.set-search { position: relative; margin: 0 2px 6px; }
.set-search > i { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--tat-muted); font-size: 12px; pointer-events: none; }
.set-search .form-control { padding-left: 30px; }
.set-group-h { margin: 12px 8px 4px; font-size: 10.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--tat-muted); }
.set-list { list-style: none; margin: 0; padding: 0; }
.set-item { display: block; padding: 6px 10px; border-radius: 8px; border-left: 3px solid transparent; color: var(--tat-ink-2);
  font-size: 13px; line-height: 1.3; text-decoration: none; }
.set-item:hover { background: var(--tat-hover); color: var(--tat-ink); text-decoration: none; }
.set-item.is-active { background: var(--tat-tint); color: var(--tat-ink); font-weight: 600; border-left-color: var(--tat-red); }
.set-item-hit { display: block; margin-top: 1px; font-size: 11px; font-weight: 400; color: var(--tat-muted); overflow-wrap: anywhere; }
.set-none { margin: 14px 8px 4px; font-size: 12.5px; color: var(--tat-muted); }
.set-select { display: none; margin-bottom: 10px; }
.set-pane { min-width: 0; display: flex; flex-direction: column; }
.set-scroll { min-width: 0; }

/* the sticky save bar: what changed on the left, Cancel and Save changes on the right */
.set-savebar { position: sticky; bottom: 0; z-index: var(--z-pinned-head); display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 12px; padding: 9px 12px 9px 16px; background: var(--tat-white); border: 1px solid var(--tat-line); border-radius: var(--tat-radius-sm);
  box-shadow: var(--tat-shadow-pop); }
.set-savebar.is-dirty { border-color: var(--tat-amber); }
.set-save-actions { display: inline-flex; gap: 8px; margin-left: auto; }

/* a page not built yet */
.set-stub-line { margin: 0 0 14px; color: var(--tat-ink-2); }
.set-stub-h { margin: 0 0 6px; font-size: 10.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--tat-muted); }
.set-stub-list { margin: 0; padding-left: 1.1rem; columns: 2; column-gap: 2rem; color: var(--tat-ink-2); }
.set-stub-list li { break-inside: avoid; margin-bottom: 3px; }

/* the latest saves under a page, from the audit log */
.set-recent > summary { cursor: pointer; list-style: none; }
.set-recent > summary::-webkit-details-marker { display: none; }
.set-recent-list { list-style: none; margin: 0; padding: 8px 18px 12px; }
.set-recent-list > li { padding: 7px 0; border-top: 1px solid var(--tat-line-soft); }
.set-recent-list > li:first-child { border-top: 0; }
.set-recent-who { font-size: 12.5px; }
.set-recent-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; font-size: 12px; color: var(--tat-ink-2); }
.set-recent-field { font-weight: 600; }
.set-recent-old { color: var(--tat-muted); text-decoration: line-through; text-decoration-color: var(--tat-line); overflow-wrap: anywhere; }
.set-recent-new { overflow-wrap: anywhere; }

/* a window under 900px wide: the navigation is a select at the top of the content */
html[data-shell-small="1"] .set-area { grid-template-columns: minmax(0, 1fr); }
html[data-shell-small="1"] .set-nav { display: none; }
html[data-shell-small="1"] .set-select { display: block; }

/* the fixed shell: the page body does not scroll; the navigation and the content each do */
html[data-shell="fixed"] body.page-settings { height: var(--vh-px, 100%); overflow: hidden; }
html[data-shell="fixed"] body.page-settings .app-shell { min-height: 0; height: var(--vh-px, 100%); }
html[data-shell="fixed"] body.page-settings .app-main { height: var(--vh-px, 100%); min-height: 0; overflow: hidden; }
html[data-shell="fixed"] body.page-settings main.container-fluid { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column;
  overflow: hidden; padding-top: .6rem !important; padding-bottom: .6rem !important; animation: none; }
html[data-shell="fixed"] body.page-settings main.container-fluid > * { flex: 0 0 auto; animation: none; }
html[data-shell="fixed"] body.page-settings main.container-fluid > .set-area { flex: 1 1 auto; min-height: 0; align-items: stretch; grid-template-rows: minmax(0, 1fr); }
html[data-shell="fixed"] .set-nav { min-height: 0; overflow-y: auto; scrollbar-gutter: stable; }
html[data-shell="fixed"] .set-pane { min-height: 0; }
html[data-shell="fixed"] .set-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; scrollbar-gutter: stable; padding-right: .15rem; }
html[data-shell="fixed"] .set-savebar { position: static; flex: 0 0 auto; }

/* Access control table (owner brief, 2026-10-18): fixed columns so a radio is one radio, centred, and the Result chip sits under
   its own heading. Role default, Allow, Needs approval and Block are 70px each, Result 116px, Option takes the rest. */
.access-table { table-layout: fixed; width: 100%; }
.access-table col.ac-radio { width: 70px; }
.access-table col.ac-result { width: 116px; }
.access-table th.ac-c, .access-table td.ac-c { text-align: center; padding-left: 4px; padding-right: 4px; }
.access-table th.ac-c { font-size: 11px; line-height: 1.15; white-space: normal; }
.access-table td.ac-c .form-check-input { float: none; display: block; margin: 0 auto; }
.access-table td.ac-c .small { line-height: 1.1; font-size: 10.5px; }
.access-table td.ac-result .badge { white-space: normal; }

/* Terms and conditions (owner brief, 2026-10-18) */
.terms-ver { font-size: 12.5px; font-weight: 600; color: var(--tat-ink-2); white-space: nowrap; }
.terms-prints { margin-bottom: 10px; font-size: 12.5px; }
.terms-tokens { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.terms-token { font-family: var(--bs-font-monospace); font-size: 12px; }
.terms-preview { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.terms-preview .form-select { max-width: 22rem; }
.terms-file { display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin-bottom: 10px; border: 1px solid var(--tat-line); border-radius: var(--tat-radius-sm); background: var(--tat-white-2); }
.terms-file > i { font-size: 22px; color: var(--tat-red); }
.terms-upload { display: flex; gap: 8px; align-items: center; max-width: 36rem; }
.terms-sum { cursor: pointer; font-size: 12px; font-weight: 600; color: var(--tat-ink-2); margin-bottom: 6px; }
.terms-diff { border: 1px solid var(--tat-line); border-radius: 8px; padding: 6px 0; background: var(--tat-white-2); overflow-wrap: anywhere; }
.terms-diff > div { padding: 1px 12px; white-space: pre-wrap; }
.td-del { background: var(--tat-red-tint); color: var(--tat-red-ink); }
.td-add { background: var(--tat-green-tint); color: var(--tat-green); }
.terms-diff mark { background: transparent; color: inherit; font-weight: 700; box-shadow: inset 0 -2px 0 currentColor; }
.terms-full { margin: 0; padding: 10px 12px; border: 1px solid var(--tat-line); border-radius: 8px; background: var(--tat-white-2); white-space: pre-wrap; font-size: 12px; color: var(--tat-ink-2); }
.set-recent-what { font-size: 12px; color: var(--tat-muted); }

/* Integrations (owner brief, 2026-10-18) */

/* the segmented choice on the Preferences page follows its own checked radio (it was the menu's copy once; prefs.js went with the profile card) */
.seg-item:has(> input:checked) { background: var(--tat-white); color: var(--tat-navy); box-shadow: 0 1px 2px rgba(31, 33, 51, .12), 0 3px 8px -4px rgba(31, 33, 51, .3); }
html[data-bs-theme="dark"] .seg-item:has(> input:checked) { background: #383b52; color: var(--tat-ink); }
.md-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
a.md-card { display: block; color: inherit; text-decoration: none; }
a.md-card:hover { border-color: var(--tat-field-hover); background: var(--tat-hover); color: inherit; text-decoration: none; }


/* =====================================================================================================================
   UI redesign (owner brief 2026-10-24): the shared viz components - donut, legend list, ring gauge, tooltip, segmented
   control, stat chips, vertical timeline, empty state, bento grid. Ported from docs/ui-reference/haulmark-dashboard.html
   onto the app's own tokens (every one already has a dark value), under an `hm-` prefix so nothing existing is touched.
   No width media queries: the grid answers to the orientation / small-shell attributes base.html sets.
   ===================================================================================================================== */
:root {
  --hm-soft: var(--tat-line-soft); --hm-line: var(--tat-line); --hm-line2: var(--tat-field);
  --hm-ink: var(--tat-ink); --hm-fg: var(--tat-ink-2); --hm-fg2: var(--tat-muted); --hm-fgm: var(--cr-none);
  --hm-panel: var(--tat-white); --hm-bg: var(--tat-canvas);
  --hm-accent: var(--viz-s1); --hm-ok: var(--tat-green); --hm-bad: var(--tat-red-ink); --hm-warn: var(--tat-amber);
  --hm-crit: var(--tat-red-deep); --hm-muted: var(--viz-other);
  --hm-r: 18px;
}
html[data-bs-theme="dark"] { --hm-crit: #df3b56; }

/* ---- bento grid: 4 columns on the 1920 layout, 2 on an upright screen, 1 on a small shell ---- */
.hm-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.hm-grid > .hm-s2 { grid-column: span 2; }
.hm-grid > .hm-s3 { grid-column: span 3; }
.hm-grid > .hm-s4 { grid-column: 1 / -1; }
html[data-orientation="portrait"] .hm-grid, html[data-w1000="1"] .hm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
html[data-orientation="portrait"] .hm-grid > .hm-s3, html[data-w1000="1"] .hm-grid > .hm-s3 { grid-column: 1 / -1; }
html[data-w620="1"] .hm-grid, html[data-orientation="phone"] .hm-grid { grid-template-columns: minmax(0, 1fr); }
html[data-w620="1"] .hm-grid > *, html[data-orientation="phone"] .hm-grid > * { grid-column: 1 / -1; }
.hm-card { display: flex; flex-direction: column; gap: 12px; padding: 18px; min-width: 0; border-radius: var(--hm-r); }
.hm-card > .hm-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.hm-card > .hm-head > .hm-title { margin-right: auto; }
.hm-title { margin: 0; font-size: 15px; font-weight: 600; color: var(--hm-ink); }
.hm-sub { font-size: 12px; color: var(--hm-fg2); }
.hm-mut { color: var(--hm-fgm); }
.hm-mlab { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--hm-fg2); }
.hm-big { font-weight: 600; font-size: 30px; line-height: 1.1; letter-spacing: -.02em; color: var(--hm-ink); font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }
.hm-row { display: flex; align-items: center; gap: 10px; }
.hm-wrap { flex-wrap: wrap; }
.hm-hr { height: 1px; background: var(--hm-line); width: 100%; }
.hm-sw { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 6px; flex: none; }

/* icon tile: soft gradient tint, never larger than 64px */
.hm-ic { width: 38px; height: 38px; border-radius: 50%; flex: none; display: inline-flex; align-items: center; justify-content: center; font-size: 19px;
  color: var(--kc, var(--hm-accent));
  background: linear-gradient(145deg, color-mix(in srgb, var(--kc, var(--hm-accent)) 24%, var(--hm-panel)), color-mix(in srgb, var(--kc, var(--hm-accent)) 7%, var(--hm-panel)));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--kc, var(--hm-accent)) 24%, transparent); }

/* pill (a read-only label), tag (change badge), button, link-pill */
.hm-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; padding: 4px 11px; border-radius: 99px; background: var(--hm-panel); border: 1px solid var(--hm-line); color: var(--hm-fg2); white-space: nowrap; }
.hm-tag { font-size: 12px; padding: 2px 10px; border-radius: 99px; white-space: nowrap; font-weight: 500; background: color-mix(in srgb, currentColor 14%, transparent); }
.hm-tag.up { color: var(--hm-ok); } .hm-tag.dn { color: var(--hm-bad); }
.hm-btn { display: inline-flex; align-items: center; gap: 6px; border: 0; border-radius: 99px; padding: 7px 16px; font-size: 13px; font-weight: 500; cursor: pointer; white-space: nowrap; text-decoration: none; }
.hm-btn.blk { background: var(--tat-navy); color: #fff; }
html[data-bs-theme="dark"] .hm-btn.blk { background: #e9ecf5; color: #1e2030; }
.hm-btn.blk:hover { color: #fff; filter: brightness(1.15); text-decoration: none; }
html[data-bs-theme="dark"] .hm-btn.blk:hover { color: #1e2030; }
.hm-btn.red { background: var(--tat-red); color: #fff; box-shadow: 0 1px 2px rgba(31,33,51,.15), 0 6px 14px -8px var(--tat-red); }
.hm-btn.red:hover { background: var(--tat-red-deep); color: #fff; text-decoration: none; }
.hm-btn.gry { background: var(--hm-soft); color: var(--hm-fg2); font-weight: 400; cursor: default; }
.hm-lnk { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--hm-line); background: var(--hm-panel); color: var(--hm-fg); text-decoration: none; border-radius: 99px; padding: 6px 14px; font-size: 12px; font-weight: 500; cursor: pointer; white-space: nowrap; transition: background .12s, border-color .12s, transform .12s; }
.hm-lnk:hover { background: var(--hm-soft); border-color: var(--hm-line2); color: var(--hm-fg); text-decoration: none; }
.hm-lnk:active { transform: scale(.98); }
.hm-lnk[disabled] { opacity: .45; cursor: default; }
.hm-btn:focus-visible, .hm-lnk:focus-visible, .hm-seg button:focus-visible, .hm-seg a:focus-visible, .hm-chip:focus-visible, .hm-dlrow:focus-visible { outline: 2px solid var(--hm-ink); outline-offset: 2px; }

/* segmented control + chips */
.hm-seg { display: inline-flex; padding: 2px; border: 1px solid var(--hm-line); border-radius: 99px; background: var(--hm-bg); }
.hm-seg button, .hm-seg a { border: 0; text-decoration: none; display: inline-flex; align-items: center; background: transparent; color: var(--hm-fg2); padding: 4px 12px; border-radius: 99px; cursor: pointer; font-size: 12px; white-space: nowrap; }
.hm-seg button:hover, .hm-seg a:hover { color: var(--hm-fg); }
.hm-seg button[aria-pressed="true"], .hm-seg a[aria-current="true"] { background: var(--tat-navy); color: #fff; font-weight: 500; }
html[data-bs-theme="dark"] .hm-seg button[aria-pressed="true"], .hm-seg a[aria-current="true"] { background: #e9ecf5; color: #1e2030; }
.hm-seg.sm button, .hm-seg.sm a { padding: 3px 11px; font-size: 11.5px; }
.hm-chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--hm-line); background: var(--hm-bg); color: var(--hm-fg); border-radius: 99px; padding: 4px 12px; font-size: 12px; cursor: pointer; white-space: nowrap; text-decoration: none; }
.hm-chip:hover { border-color: var(--hm-line2); color: var(--hm-fg); text-decoration: none; }
.hm-chip[aria-pressed="true"], .hm-chip[aria-current="true"] { background: var(--tat-navy); color: #fff; border-color: var(--tat-navy); font-weight: 500; }
html[data-bs-theme="dark"] .hm-chip[aria-pressed="true"], html[data-bs-theme="dark"] .hm-chip[aria-current="true"] { background: #e9ecf5; color: #1e2030; border-color: #e9ecf5; }

/* tooltip that follows the pointer, clamped inside its host (the host is position: relative) */
.hm-tip { position: absolute; z-index: 6; pointer-events: none; background: var(--hm-panel); color: var(--hm-fg); border: 1px solid var(--hm-line2); border-radius: 10px; padding: 5px 10px; font-size: 12px; white-space: nowrap; box-shadow: var(--tat-shadow-pop); }

/* donut */
.hm-dbody { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.hm-dbody.push { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--hm-line); }
/* The Margin card is stretched to the height of the row it sits in. Its spare height used to collect in one hole above the ring (owner,
   2026-10-27: "there is gap between the above text and graph below"): now it is shared between the card's parts, and the ring below is larger. */
.hm-card[data-card="margin"] { justify-content: space-between; }
.hm-dnut { position: relative; flex: none; }
.hm-dnut svg { display: block; overflow: visible; }
.hm-dn-seg { transition: opacity .15s ease; }
.hm-dnut:hover .hm-dn-seg { opacity: .4; } .hm-dnut .hm-dn-seg:hover { opacity: 1; }
.hm-dn-seg.dim { opacity: .28 !important; }
.hm-dn-c { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; pointer-events: none; padding: 14%; }
.hm-dn-c b { font-size: 20px; font-weight: 600; letter-spacing: -.02em; color: var(--hm-ink); line-height: 1.1; font-variant-numeric: tabular-nums; }
.hm-dn-c b.sm { font-size: 14px; letter-spacing: -.01em; }
.hm-dn-c span { font-size: 11px; color: var(--hm-fg2); margin-top: 2px; }
.hm-dlist { flex: 1; min-width: 190px; display: flex; flex-direction: column; }
.hm-dlrow { display: flex; align-items: center; gap: 9px; width: 100%; padding: 6px 8px; border: 0; background: none; border-radius: 10px; font: inherit; font-size: 13px; color: var(--hm-fg); text-align: left; cursor: default; }
.hm-dlrow.click { cursor: pointer; } .hm-dlrow.click:hover { background: var(--hm-soft); }
.hm-dlrow .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hm-dlrow .vl { font-weight: 600; color: var(--hm-ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.hm-dlrow .sh { width: 40px; text-align: right; color: var(--hm-fg2); font-size: 12px; font-variant-numeric: tabular-nums; }
.hm-dlrow.neg .vl { color: var(--hm-bad); }
.hm-dlrow.on { background: color-mix(in srgb, var(--hm-accent) 12%, var(--hm-panel)); box-shadow: inset 3px 0 0 var(--hm-accent); }
.hm-dlrow.on .nm { font-weight: 600; color: var(--hm-ink); }
.hm-loss { font-size: 12px; color: var(--hm-bad); }
@media (prefers-reduced-motion: no-preference) { .hm-dn-seg { animation: hm-dnin .7s ease backwards; animation-delay: calc(var(--i, 0) * 70ms); } }
@keyframes hm-dnin { from { opacity: 0; } }

/* ring gauge: a dark disc, a faint track, an arc with round caps */
.hm-gblock { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.hm-gblock svg { display: block; }

/* stat chips */
.hm-mstats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.hm-mst { background: var(--hm-bg); border: 1px solid var(--hm-line); border-radius: 14px; padding: 10px 14px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hm-mst b { font-size: 18px; font-weight: 600; color: var(--hm-ink); letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.hm-mst b.up { color: var(--hm-ok); } .hm-mst b.dn, .hm-mst b.bad { color: var(--hm-bad); }
.hm-mst span { font-size: 11px; color: var(--hm-fg2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }   /* a label never wraps */
.hm-mst b { overflow-wrap: anywhere; }   /* a value wraps rather than spilling */

/* the monthly margin chart and its timeline slider */
.hm-tchart { position: relative; touch-action: pan-y; }
.hm-tchart.panning { cursor: grabbing; }
.hm-tbar { transform-box: fill-box; transform-origin: 50% 100%; }
@media (prefers-reduced-motion: no-preference) { .hm-tbar { animation: hm-bar .45s cubic-bezier(.165,.84,.44,1) backwards; animation-delay: calc(var(--i, 0) * 28ms); } }
@keyframes hm-bar { from { transform: scaleY(0); } }
/* Carrier Prospects details panel: it slides in (and the page behind it fades) only for people who have not asked for reduced motion. The rule sits up here, not beside the panel, because the Control Tower step-3 test allows no @media below its "Pricing Desk and Control Tower" header. */
@media (prefers-reduced-motion: no-preference) { .cp-peek-shade { animation: cp-peek-fade .18s ease-out; } .cp-peek { animation: cp-peek-in .24s cubic-bezier(.2, .8, .2, 1); } }
@media (prefers-reduced-motion: no-preference) { .cp-peek-step.done:not(:first-child)::after, .cp-peek-step.now:not(:first-child)::after { animation: cp-prog-fill .55s cubic-bezier(.2, .8, .2, 1) backwards; animation-delay: calc(var(--i) * 130ms + 160ms); } .cp-peek-step.now .cp-peek-dot { animation: cp-prog-pop .5s cubic-bezier(.2, .8, .2, 1) backwards; animation-delay: calc(var(--i) * 130ms + 260ms); } .cp-peek-step.now .cp-peek-dot::after { animation: cp-prog-pulse 2.2s ease-out 1s infinite; } }
.hm-tnav { display: flex; flex-direction: column; gap: 8px; }
.hm-tnav svg:focus-visible { outline: 2px solid var(--hm-ink); outline-offset: 3px; border-radius: 6px; }
.hm-tlbl { font-size: 12px; color: var(--hm-fg2); font-variant-numeric: tabular-nums; }
.hm-tcap { display: flex; flex-direction: column; align-items: center; line-height: 1.25; }
.hm-tsize { display: block; text-align: center; font-size: 11px; color: var(--hm-fg2); }
.hm-circ-sm { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--hm-line); background: var(--hm-panel); color: var(--hm-fg2); font-size: 18px; line-height: 1; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; transition: background .12s, border-color .12s; }
.hm-circ-sm:hover { border-color: var(--hm-line2); color: var(--hm-ink); background: var(--hm-soft); }
.hm-circ-sm[disabled] { opacity: .4; cursor: default; }
.hm-circ-sm:focus-visible { outline: 2px solid var(--hm-ink); outline-offset: 2px; }

/* Lanes and activity (an administrator's Dashboard): top lanes as a chart or a board, the pickup calendar, the loads at a loss */
.hm-title-wrap { margin-right: auto; min-width: 0; }
.hm-me-name { max-width: 14em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hm-title-wrap .hm-title { line-height: 1.25; }
.hm-lanes-in { display: flex; flex-direction: column; gap: 10px; }
.hm-lanes-in.nar { width: 100%; max-width: 960px; margin: 0 auto; }   /* the chart and the calendar are drawn to scale: not stretched across a full-width card */
.hm-lane { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 8px; border: 0; border-bottom: 1px solid var(--hm-line); border-radius: 0; background: none; color: inherit; text-decoration: none; }
.hm-lane:last-child { border-bottom: 0; }
.hm-lane.click { cursor: pointer; border-radius: 12px; }
.hm-lane.click:hover { background: var(--hm-soft); color: inherit; text-decoration: none; }
.hm-lane:focus-visible { outline: 2px solid var(--hm-ink); outline-offset: -2px; }
.hm-lnt { font-size: 13.5px; font-weight: 600; color: var(--hm-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hm-lbcard .hm-lnt { white-space: normal; line-height: 1.25; }
.hm-abs { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 99px; border: 1px solid var(--hm-line2); background: var(--hm-soft); color: var(--hm-fg2); font-size: 11px; font-weight: 500; white-space: nowrap; vertical-align: 1px; }   /* a label: never wraps */
.hm-lnt-row { display: flex; align-items: center; min-width: 0; }
.hm-lnt-row .hm-abs { flex: none; }
.hm-clip { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hm-bad { color: var(--hm-bad); }
.hm-rk { width: 22px; height: 22px; border-radius: 50%; background: var(--hm-soft); display: grid; place-items: center; font-size: 11px; font-weight: 600; color: var(--hm-fg2); flex: none; }
.hm-lboard { display: grid; grid-template-columns: repeat(auto-fit, minmax(235px, 1fr)); gap: 10px; }
.hm-lbcard { display: flex; align-items: center; gap: 10px; border: 1px solid var(--hm-line); background: var(--hm-bg); border-radius: 16px; padding: 10px 12px; min-width: 0; }
.hm-lbval { font-size: 20px; font-weight: 600; color: var(--hm-ink); font-variant-numeric: tabular-nums; line-height: 1.2; }
.hm-lbval.bad { color: var(--hm-bad); }
.hm-mring { flex: none; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 10.5px; color: var(--hm-fgm); }
.hm-mring svg { display: block; }
.hm-heat { display: grid; grid-template-columns: 30px repeat(17, minmax(0, 1fr)); gap: 4px; align-items: center; margin: 6px 0 2px; }
.hm-hc { display: block; aspect-ratio: 1; border-radius: 6px; padding: 0; min-width: 0; transition: transform .1s; text-decoration: none; }
a.hm-hc { cursor: pointer; }
a.hm-hc:hover { transform: scale(1.18); box-shadow: 0 0 0 2px var(--hm-panel), 0 0 0 3.5px var(--hm-fg); position: relative; z-index: 1; text-decoration: none; }
a.hm-hc:focus-visible { outline: 2px solid var(--hm-ink); outline-offset: 2px; }
.hm-hc.off { opacity: .22; }
.hm-hlab { font-size: 10.5px; color: var(--hm-fgm); white-space: nowrap; }
.hm-dleg { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 11.5px; color: var(--hm-fg2); align-items: center; }

/* vertical timeline: done = green, now = blue with a halo, on hold = amber, pending = outline */
.hm-tlv { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.hm-tlv-i { position: relative; display: flex; align-items: center; gap: 12px; padding: 5px 0; font-size: 13px; color: var(--hm-fgm); }
.hm-tlv-i::after { content: ""; position: absolute; left: 6px; top: 50%; height: 100%; width: 2px; background: var(--hm-line2); }
.hm-tlv-i:last-child::after { display: none; }
.hm-tlv-i.done::after { background: var(--viz-good); }
.hm-tlv-d { position: relative; z-index: 1; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--hm-line2); background: var(--hm-panel); flex: none; }
.hm-tlv-i.done { color: var(--hm-fg); } .hm-tlv-i.done .hm-tlv-d { background: var(--viz-good); border-color: var(--viz-good); }
.hm-tlv-i.now { color: var(--hm-ink); font-weight: 600; } .hm-tlv-i.now .hm-tlv-d { background: var(--hm-accent); border-color: var(--hm-accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--hm-accent) 22%, transparent); }
.hm-tlv-i.warn { color: var(--hm-warn); font-weight: 600; } .hm-tlv-i.warn .hm-tlv-d { background: var(--viz-warn); border-color: var(--viz-warn); box-shadow: 0 0 0 4px color-mix(in srgb, var(--viz-warn) 22%, transparent); }
.hm-tlv-i em { margin-left: auto; font-style: normal; font-size: 11px; color: var(--hm-fg2); }

/* empty state: one line inside the card, never a blank gap */
.hm-empty { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 22px 12px; font-size: 13px; color: var(--hm-fg2); text-align: center; }

/* ---- the Dashboard's greeting row ---- */
.hm-greet { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.hm-date { display: flex; align-items: center; gap: 12px; }
.hm-dateball { width: 56px; height: 56px; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 600; color: var(--hm-ink); letter-spacing: -.02em;
  background: var(--hm-panel); border: 1px solid var(--hm-line); box-shadow: var(--tat-shadow-sm); font-variant-numeric: tabular-nums; }
.hm-datetxt { display: flex; flex-direction: column; line-height: 1.25; }
.hm-datetxt b { font-size: 15px; font-weight: 600; color: var(--hm-ink); }
.hm-datetxt span { font-size: 12.5px; color: var(--hm-fg2); }
.hm-hey { margin-left: auto; flex: 1 1 360px; min-width: 280px; max-width: 560px; text-align: right; }
.hm-hey h1 { margin: 0; font-size: 24px; font-weight: 500; line-height: 1.25; letter-spacing: -.015em; color: var(--hm-ink); }
html[data-orientation="portrait"] .hm-hey, html[data-w1000="1"] .hm-hey { margin-left: 0; text-align: left; }

/* ---- UI redesign 2026-10-24 (owner brief): Intelligence. Same markup and figures; the overview band becomes three separate cards
   with an icon chip and a sentence-case title, the "what is coming" tiles and the list cards take the 18px radius. ---- */
.ix-ov { background: transparent; border: 0; box-shadow: none; gap: 14px; overflow: visible; }
.ix-ov .cr-ov-sec { background: var(--tat-white); border: 1px solid var(--tat-line-soft); border-radius: 18px; box-shadow: var(--tat-shadow-sm); padding: 18px 20px; }
.ix-ov .cr-ov-sec + .cr-ov-sec { border-left: 1px solid var(--tat-line-soft); }
.ix-ov .cr-eyebrow { font-size: 15px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--tat-ink); gap: 12px; margin-bottom: 14px; }
.ix-ov .cr-eyebrow i { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; font-size: 16px;
  background: color-mix(in srgb, var(--viz-s1) 14%, transparent); color: var(--viz-s1); }
.ix-ov .cr-ov-sec:nth-child(1) .cr-eyebrow i { background: color-mix(in srgb, var(--tat-green) 14%, transparent); color: var(--tat-green); }
.ix-ov .cr-ov-sec:nth-child(3) .cr-eyebrow i { background: color-mix(in srgb, var(--tat-red-deep) 14%, transparent); color: var(--tat-red-deep); }
.ix-ov .cr-ov-sec:nth-child(3) .ix-worth .cr-eyebrow { font-size: .7rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--tat-muted); gap: 6px; }
.ix-ov .cr-ov-sec:nth-child(3) .ix-worth .cr-eyebrow i { width: auto; height: auto; background: none; font-size: .85rem; color: var(--tat-muted); }
.ix-pt { border-radius: 18px; border-color: var(--tat-line-soft); }
.ix-pt .cr-av { border-radius: 50%; }

/* ---- UI redesign 2026-10-24 (owner brief): card heads. The luxe heads above (colour wash, left rail, uppercase, glossy tile)
   give way to the new flat look: a sentence-case title and a soft tinted round icon chip. Markup, icons and the per-card
   colour (--fp) stay; this block comes last so it wins at equal specificity. ---- */
.card:has(> .card-header) { border-left: 1px solid var(--tat-line-soft) !important; }
/* 2026-10-27 (owner: "remove that"): a list's own card (a table straight in it, no head) loses its navy left rail too, same hairline as every card */
.card:not(:has(> .card-header)):has(> .table-responsive, > .table, > .card-body.p-0 > .table-responsive, > .card-body.p-0 > .table) { border-left: 1px solid var(--tat-line-soft) !important; }
.card > .card-header { background-image: none; background: transparent; border-bottom: 1px solid var(--tat-line-soft); min-height: 0; padding: 14px 20px; }
.card > .card-header.fw-semibold, .card > .card-header:not(:has(> *)), .card > .card-header > span:first-child:not([class]),
.card > .card-header { font-size: 15px; font-weight: 500 !important; letter-spacing: 0; text-transform: none; color: var(--tat-ink); }
.card > .card-header:not(:has(> i.bi:first-child, > span:first-child > i.bi:first-child, > .nav, > .card-header-tabs)) { padding-left: 20px; }
.card > .card-header:not(:has(> i.bi:first-child, > span:first-child > i.bi:first-child, > .nav, > .card-header-tabs))::before { content: none; }
.card > .card-header > i.bi:first-child, .card > .card-header > span:first-child > i.bi:first-child {
  width: 34px; height: 34px; border-radius: 50%; font-size: 16px; margin-right: 12px !important; text-shadow: none; box-shadow: none;
  color: var(--fp, var(--tat-navy)); background: color-mix(in srgb, var(--fp, var(--tat-navy)) 13%, transparent); }
.card .table > tfoot > tr > *, .card .table > tbody > tr.table-light > * { --bs-table-bg: var(--tat-white-2); }

/* ---- Icons: Phosphor Duotone 2.1.1 (owner brief 2026-10-24), vendored in vendor/phosphor-2.1.1/. Its own commit, so it can be
   reverted alone. The markup keeps its `bi bi-name` classes (nav.py, the tests and the JS name icons that way); this table
   points each name at a Phosphor glyph pair (a 20% fill layer under the line layer). The Bootstrap Icons stylesheet stays
   linked as the fallback for a name this table does not know. The name-by-name mapping is docs/ui-reference/icon-mapping.md. ---- */
@font-face { font-family: "Phosphor-Duotone"; src: url("../vendor/phosphor-2.1.1/Phosphor-Duotone.woff2") format("woff2"); font-weight: normal; font-style: normal; font-display: block; }
.bi::before, .bi::after, [class^="bi-"]::before, [class^="bi-"]::after, [class*=" bi-"]::before, [class*=" bi-"]::after {
  font-family: "Phosphor-Duotone" !important; font-style: normal; font-weight: normal; font-variant: normal; text-transform: none; line-height: 1;
  display: inline-block; vertical-align: -.125em; -webkit-font-smoothing: antialiased; speak: never; }
.bi-circle-fill::before { content: ""; width: .6em; height: .6em; border-radius: 50%; background: currentColor; vertical-align: .05em; }
.bi-circle-fill::after { content: none; }
.bi-activity::before { content: "\e000"; opacity: .2; } .bi-activity::after { content: "\e001"; margin-left: -1em; }
.bi-alarm::before { content: "\e006"; opacity: .2; } .bi-alarm::after { content: "\e007"; margin-left: -1em; }
.bi-alarm-fill::before { content: "\e006"; opacity: .2; } .bi-alarm-fill::after { content: "\e007"; margin-left: -1em; }
.bi-arrow-counterclockwise::before { content: "\e038"; opacity: .2; } .bi-arrow-counterclockwise::after { content: "\e039"; margin-left: -1em; }
.bi-arrow-down-circle::before { content: "\e028"; opacity: .2; } .bi-arrow-down-circle::after { content: "\e029"; margin-left: -1em; }
.bi-arrow-down-left::before { content: "\e040"; opacity: .2; } .bi-arrow-down-left::after { content: "\e041"; margin-left: -1em; }
.bi-arrow-down-right::before { content: "\e042"; opacity: .2; } .bi-arrow-down-right::after { content: "\e043"; margin-left: -1em; }
.bi-arrow-down-right-circle::before { content: "\e02c"; opacity: .2; } .bi-arrow-down-right-circle::after { content: "\e02d"; margin-left: -1em; }
.bi-arrow-left::before { content: "\e058"; opacity: .2; } .bi-arrow-left::after { content: "\e059"; margin-left: -1em; }
.bi-arrow-left-right::before { content: "\e0a0"; opacity: .2; } .bi-arrow-left-right::after { content: "\e0a1"; margin-left: -1em; }
.bi-arrow-repeat::before { content: "\e094"; opacity: .2; } .bi-arrow-repeat::after { content: "\e095"; margin-left: -1em; }
.bi-arrow-return-left::before { content: "\e07e"; opacity: .2; } .bi-arrow-return-left::after { content: "\e07f"; margin-left: -1em; }
.bi-arrow-right::before { content: "\e06c"; opacity: .2; } .bi-arrow-right::after { content: "\e06d"; margin-left: -1em; }
.bi-arrow-right-circle::before { content: "\e02e"; opacity: .2; } .bi-arrow-right-circle::after { content: "\e02f"; margin-left: -1em; }
.bi-arrow-up-right::before { content: "\e092"; opacity: .2; } .bi-arrow-up-right::after { content: "\e093"; margin-left: -1em; }
.bi-arrow-up-right-circle::before { content: "\e034"; opacity: .2; } .bi-arrow-up-right-circle::after { content: "\e035"; margin-left: -1em; }
.bi-arrows-fullscreen::before { content: "\e0a2"; opacity: .2; } .bi-arrows-fullscreen::after { content: "\e0a3"; margin-left: -1em; }
.bi-bank::before { content: "\e0b4"; opacity: .2; } .bi-bank::after { content: "\e0b5"; margin-left: -1em; }
.bi-bar-chart-line::before { content: "\e150"; opacity: .2; } .bi-bar-chart-line::after { content: "\e151"; margin-left: -1em; }
.bi-bar-chart-steps::before { content: "\e152"; opacity: .2; } .bi-bar-chart-steps::after { content: "\e153"; margin-left: -1em; }
.bi-bell::before { content: "\e0ce"; opacity: .2; } .bi-bell::after { content: "\e0cf"; margin-left: -1em; }
.bi-bell-fill::before { content: "\e0ce"; opacity: .2; } .bi-bell-fill::after { content: "\e0cf"; margin-left: -1em; }
.bi-bookmark::before { content: "\e0e8"; opacity: .2; } .bi-bookmark::after { content: "\e0e9"; margin-left: -1em; }
.bi-box-arrow-down::before { content: "\e00e"; opacity: .2; } .bi-box-arrow-down::after { content: "\e00f"; margin-left: -1em; }
.bi-box-arrow-in-down::before { content: "\e05c"; opacity: .2; } .bi-box-arrow-in-down::after { content: "\e05d"; margin-left: -1em; }
.bi-box-arrow-in-right::before { content: "\e428"; opacity: .2; } .bi-box-arrow-in-right::after { content: "\e429"; margin-left: -1em; }
.bi-box-arrow-right::before { content: "\e42a"; opacity: .2; } .bi-box-arrow-right::after { content: "\e42b"; margin-left: -1em; }
.bi-box-arrow-up-right::before { content: "\e5de"; opacity: .2; } .bi-box-arrow-up-right::after { content: "\e5df"; margin-left: -1em; }
.bi-box-seam::before { content: "\e390"; opacity: .2; } .bi-box-seam::after { content: "\e391"; margin-left: -1em; }
.bi-briefcase::before { content: "\e0ee"; opacity: .2; } .bi-briefcase::after { content: "\e0ef"; margin-left: -1em; }
.bi-broadcast::before { content: "\e0f2"; opacity: .2; } .bi-broadcast::after { content: "\e0f3"; margin-left: -1em; }
.bi-broadcast-pin::before { content: "\e0f2"; opacity: .2; } .bi-broadcast-pin::after { content: "\e0f3"; margin-left: -1em; }
.bi-building::before { content: "\e100"; opacity: .2; } .bi-building::after { content: "\e101"; margin-left: -1em; }
.bi-building-add::before { content: "\e102"; opacity: .2; } .bi-building-add::after { content: "\e105"; margin-left: -1em; }
.bi-building-check::before { content: "\e102"; opacity: .2; } .bi-building-check::after { content: "\e105"; margin-left: -1em; }
.bi-building-exclamation::before { content: "\e102"; opacity: .2; } .bi-building-exclamation::after { content: "\e105"; margin-left: -1em; }
.bi-bullseye::before { content: "\e47c"; opacity: .2; } .bi-bullseye::after { content: "\e47d"; margin-left: -1em; }
.bi-calculator::before { content: "\e538"; opacity: .2; } .bi-calculator::after { content: "\e539"; margin-left: -1em; }
.bi-calendar-check::before { content: "\e712"; opacity: .2; } .bi-calendar-check::after { content: "\e713"; margin-left: -1em; }
.bi-calendar-event::before { content: "\e7b4"; opacity: .2; } .bi-calendar-event::after { content: "\e7b5"; margin-left: -1em; }
.bi-calendar-week::before { content: "\e108"; opacity: .2; } .bi-calendar-week::after { content: "\e109"; margin-left: -1em; }
.bi-calendar2-check::before { content: "\e712"; opacity: .2; } .bi-calendar2-check::after { content: "\e713"; margin-left: -1em; }
.bi-calendar2-range::before { content: "\e7b4"; opacity: .2; } .bi-calendar2-range::after { content: "\e7b5"; margin-left: -1em; }
.bi-calendar3::before { content: "\e108"; opacity: .2; } .bi-calendar3::after { content: "\e109"; margin-left: -1em; }
.bi-camera-fill::before { content: "\e10e"; opacity: .2; } .bi-camera-fill::after { content: "\e10f"; margin-left: -1em; }
.bi-card-list::before { content: "\e2f4"; opacity: .2; } .bi-card-list::after { content: "\e2f5"; margin-left: -1em; }
.bi-card-text::before { content: "\e0a8"; opacity: .2; } .bi-card-text::after { content: "\e0a9"; margin-left: -1em; }
.bi-caret-down-fill::before { content: "\e136"; opacity: .2; } .bi-caret-down-fill::after { content: "\e137"; margin-left: -1em; }
.bi-caret-up-fill::before { content: "\e13c"; opacity: .2; } .bi-caret-up-fill::after { content: "\e13d"; margin-left: -1em; }
.bi-cart-check::before { content: "\e41e"; opacity: .2; } .bi-cart-check::after { content: "\e41f"; margin-left: -1em; }
.bi-cash::before { content: "\e588"; opacity: .2; } .bi-cash::after { content: "\e589"; margin-left: -1em; }
.bi-cash-coin::before { content: "\e78e"; opacity: .2; } .bi-cash-coin::after { content: "\e78f"; margin-left: -1em; }
.bi-cash-stack::before { content: "\e588"; opacity: .2; } .bi-cash-stack::after { content: "\e589"; margin-left: -1em; }
.bi-chat-dots::before { content: "\e170"; opacity: .2; } .bi-chat-dots::after { content: "\e171"; margin-left: -1em; }
.bi-chat-dots-fill::before { content: "\e170"; opacity: .2; } .bi-chat-dots-fill::after { content: "\e171"; margin-left: -1em; }
.bi-chat-left-dots::before { content: "\e170"; opacity: .2; } .bi-chat-left-dots::after { content: "\e171"; margin-left: -1em; }
.bi-chat-left-text::before { content: "\e17a"; opacity: .2; } .bi-chat-left-text::after { content: "\e17b"; margin-left: -1em; }
.bi-chat-square-text::before { content: "\e17a"; opacity: .2; } .bi-chat-square-text::after { content: "\e17b"; margin-left: -1em; }
.bi-check-circle::before { content: "\e184"; opacity: .2; } .bi-check-circle::after { content: "\e185"; margin-left: -1em; }
.bi-check-circle-fill::before { content: "\e184"; opacity: .2; } .bi-check-circle-fill::after { content: "\e185"; margin-left: -1em; }
.bi-check-lg::before { content: "\e182"; opacity: .2; } .bi-check-lg::after { content: "\e183"; margin-left: -1em; }
.bi-check-square::before { content: "\e186"; opacity: .2; } .bi-check-square::after { content: "\e187"; margin-left: -1em; }
.bi-check2::before { content: "\e182"; opacity: .2; } .bi-check2::after { content: "\e183"; margin-left: -1em; }
.bi-check2-all::before { content: "\e53a"; opacity: .2; } .bi-check2-all::after { content: "\e53b"; margin-left: -1em; }
.bi-check2-circle::before { content: "\e184"; opacity: .2; } .bi-check2-circle::after { content: "\e185"; margin-left: -1em; }
.bi-check2-square::before { content: "\e186"; opacity: .2; } .bi-check2-square::after { content: "\e187"; margin-left: -1em; }
.bi-chevron-down::before { content: "\e136"; opacity: .2; } .bi-chevron-down::after { content: "\e137"; margin-left: -1em; }
.bi-chevron-left::before { content: "\e138"; opacity: .2; } .bi-chevron-left::after { content: "\e139"; margin-left: -1em; }
.bi-chevron-right::before { content: "\e13a"; opacity: .2; } .bi-chevron-right::after { content: "\e13b"; margin-left: -1em; }
.bi-chevron-up::before { content: "\e13c"; opacity: .2; } .bi-chevron-up::after { content: "\e13d"; margin-left: -1em; }
.bi-circle::before { content: "\e18a"; opacity: .2; } .bi-circle::after { content: "\e18b"; margin-left: -1em; }
.bi-circle-half::before { content: "\e18c"; opacity: .2; } .bi-circle-half::after { content: "\e18d"; margin-left: -1em; }
.bi-clipboard::before { content: "\e196"; opacity: .2; } .bi-clipboard::after { content: "\e197"; margin-left: -1em; }
.bi-clipboard-check::before { content: "\e198"; opacity: .2; } .bi-clipboard-check::after { content: "\e199"; margin-left: -1em; }
.bi-clipboard-data::before { content: "\e198"; opacity: .2; } .bi-clipboard-data::after { content: "\e199"; margin-left: -1em; }
.bi-clipboard-x::before { content: "\e196"; opacity: .2; } .bi-clipboard-x::after { content: "\e197"; margin-left: -1em; }
.bi-clipboard2-check::before { content: "\e198"; opacity: .2; } .bi-clipboard2-check::after { content: "\e199"; margin-left: -1em; }
.bi-clock::before { content: "\e19a"; opacity: .2; } .bi-clock::after { content: "\e19b"; margin-left: -1em; }
.bi-clock-history::before { content: "\e1a0"; opacity: .2; } .bi-clock-history::after { content: "\e1a1"; margin-left: -1em; }
.bi-cloud-arrow-down::before { content: "\e1ac"; opacity: .2; } .bi-cloud-arrow-down::after { content: "\e1ad"; margin-left: -1em; }
.bi-cloud-arrow-up::before { content: "\e1ae"; opacity: .2; } .bi-cloud-arrow-up::after { content: "\e1af"; margin-left: -1em; }
.bi-cloud-download::before { content: "\e1ac"; opacity: .2; } .bi-cloud-download::after { content: "\e1ad"; margin-left: -1em; }
.bi-cloud-drizzle-fill::before { content: "\e1b4"; opacity: .2; } .bi-cloud-drizzle-fill::after { content: "\e1b5"; margin-left: -1em; }
.bi-cloud-fog2-fill::before { content: "\e53c"; opacity: .2; } .bi-cloud-fog2-fill::after { content: "\e53d"; margin-left: -1em; }
.bi-cloud-lightning-rain-fill::before { content: "\e1b2"; opacity: .2; } .bi-cloud-lightning-rain-fill::after { content: "\e1b3"; margin-left: -1em; }
.bi-cloud-moon-fill::before { content: "\e53e"; opacity: .2; } .bi-cloud-moon-fill::after { content: "\e53f"; margin-left: -1em; }
.bi-cloud-rain-fill::before { content: "\e1b4"; opacity: .2; } .bi-cloud-rain-fill::after { content: "\e1b5"; margin-left: -1em; }
.bi-cloud-rain-heavy-fill::before { content: "\e1b4"; opacity: .2; } .bi-cloud-rain-heavy-fill::after { content: "\e1b5"; margin-left: -1em; }
.bi-cloud-snow-fill::before { content: "\e1b8"; opacity: .2; } .bi-cloud-snow-fill::after { content: "\e1b9"; margin-left: -1em; }
.bi-cloud-sun-fill::before { content: "\e540"; opacity: .2; } .bi-cloud-sun-fill::after { content: "\e541"; margin-left: -1em; }
.bi-clouds-fill::before { content: "\e1aa"; opacity: .2; } .bi-clouds-fill::after { content: "\e1ab"; margin-left: -1em; }
.bi-coin::before { content: "\e60e"; opacity: .2; } .bi-coin::after { content: "\e60f"; margin-left: -1em; }
.bi-cpu::before { content: "\e610"; opacity: .2; } .bi-cpu::after { content: "\e611"; margin-left: -1em; }
.bi-credit-card-2-front::before { content: "\e1d2"; opacity: .2; } .bi-credit-card-2-front::after { content: "\e1d3"; margin-left: -1em; }
.bi-crosshair::before { content: "\e1d6"; opacity: .2; } .bi-crosshair::after { content: "\e1d7"; margin-left: -1em; }
.bi-currency-dollar::before { content: "\e550"; opacity: .2; } .bi-currency-dollar::after { content: "\e551"; margin-left: -1em; }
.bi-currency-exchange::before { content: "\e54c"; opacity: .2; } .bi-currency-exchange::after { content: "\e54d"; margin-left: -1em; }
.bi-dash::before { content: "\e32a"; opacity: .2; } .bi-dash::after { content: "\e32b"; margin-left: -1em; }
.bi-dash-circle::before { content: "\e32c"; opacity: .2; } .bi-dash-circle::after { content: "\e32d"; margin-left: -1em; }
.bi-dash-circle-fill::before { content: "\e32c"; opacity: .2; } .bi-dash-circle-fill::after { content: "\e32d"; margin-left: -1em; }
.bi-database::before { content: "\e1de"; opacity: .2; } .bi-database::after { content: "\e1df"; margin-left: -1em; }
.bi-database-dash::before { content: "\e1de"; opacity: .2; } .bi-database-dash::after { content: "\e1df"; margin-left: -1em; }
.bi-diagram-3::before { content: "\e67c"; opacity: .2; } .bi-diagram-3::after { content: "\e67d"; margin-left: -1em; }
.bi-distribute-vertical::before { content: "\e5a2"; opacity: .2; } .bi-distribute-vertical::after { content: "\e5a3"; margin-left: -1em; }
.bi-dot::before { content: "\ecde"; opacity: .2; } .bi-dot::after { content: "\ecdf"; margin-left: -1em; }
.bi-download::before { content: "\e20a"; opacity: .2; } .bi-download::after { content: "\e20b"; margin-left: -1em; }
.bi-emoji-smile::before { content: "\e436"; opacity: .2; } .bi-emoji-smile::after { content: "\e437"; margin-left: -1em; }
.bi-envelope::before { content: "\e214"; opacity: .2; } .bi-envelope::after { content: "\e215"; margin-left: -1em; }
.bi-envelope-arrow-up::before { content: "\e218"; opacity: .2; } .bi-envelope-arrow-up::after { content: "\e219"; margin-left: -1em; }
.bi-envelope-check::before { content: "\e21a"; opacity: .2; } .bi-envelope-check::after { content: "\e21b"; margin-left: -1em; }
.bi-envelope-check-fill::before { content: "\e21a"; opacity: .2; } .bi-envelope-check-fill::after { content: "\e21b"; margin-left: -1em; }
.bi-envelope-open::before { content: "\e216"; opacity: .2; } .bi-envelope-open::after { content: "\e217"; margin-left: -1em; }
.bi-envelope-paper::before { content: "\e218"; opacity: .2; } .bi-envelope-paper::after { content: "\e219"; margin-left: -1em; }
.bi-envelope-plus::before { content: "\e214"; opacity: .2; } .bi-envelope-plus::after { content: "\e215"; margin-left: -1em; }
.bi-eraser::before { content: "\e21e"; opacity: .2; } .bi-eraser::after { content: "\e21f"; margin-left: -1em; }
.bi-exclamation-circle::before { content: "\e4e2"; opacity: .2; } .bi-exclamation-circle::after { content: "\e4e3"; margin-left: -1em; }
.bi-exclamation-circle-fill::before { content: "\e4e2"; opacity: .2; } .bi-exclamation-circle-fill::after { content: "\e4e3"; margin-left: -1em; }
.bi-exclamation-diamond-fill::before { content: "\e7fc"; opacity: .2; } .bi-exclamation-diamond-fill::after { content: "\e7fd"; margin-left: -1em; }
.bi-exclamation-octagon::before { content: "\e4e4"; opacity: .2; } .bi-exclamation-octagon::after { content: "\e4e5"; margin-left: -1em; }
.bi-exclamation-octagon-fill::before { content: "\e4e4"; opacity: .2; } .bi-exclamation-octagon-fill::after { content: "\e4e5"; margin-left: -1em; }
.bi-exclamation-triangle::before { content: "\e4e0"; opacity: .2; } .bi-exclamation-triangle::after { content: "\e4e1"; margin-left: -1em; }
.bi-exclamation-triangle-fill::before { content: "\e4e0"; opacity: .2; } .bi-exclamation-triangle-fill::after { content: "\e4e1"; margin-left: -1em; }
.bi-eye::before { content: "\e220"; opacity: .2; } .bi-eye::after { content: "\e221"; margin-left: -1em; }
.bi-file-earmark::before { content: "\e230"; opacity: .2; } .bi-file-earmark::after { content: "\e231"; margin-left: -1em; }
.bi-file-earmark-check::before { content: "\e23a"; opacity: .2; } .bi-file-earmark-check::after { content: "\e23b"; margin-left: -1em; }
.bi-file-earmark-excel::before { content: "\eb22"; opacity: .2; } .bi-file-earmark-excel::after { content: "\eb23"; margin-left: -1em; }
.bi-file-earmark-image::before { content: "\ea24"; opacity: .2; } .bi-file-earmark-image::after { content: "\ea25"; margin-left: -1em; }
.bi-file-earmark-pdf::before { content: "\e702"; opacity: .2; } .bi-file-earmark-pdf::after { content: "\e703"; margin-left: -1em; }
.bi-file-earmark-plus::before { content: "\e236"; opacity: .2; } .bi-file-earmark-plus::after { content: "\e237"; margin-left: -1em; }
.bi-file-earmark-richtext::before { content: "\e23a"; opacity: .2; } .bi-file-earmark-richtext::after { content: "\e23b"; margin-left: -1em; }
.bi-file-earmark-ruled::before { content: "\e23a"; opacity: .2; } .bi-file-earmark-ruled::after { content: "\e23b"; margin-left: -1em; }
.bi-file-earmark-spreadsheet::before { content: "\eb22"; opacity: .2; } .bi-file-earmark-spreadsheet::after { content: "\eb23"; margin-left: -1em; }
.bi-file-earmark-text::before { content: "\e23a"; opacity: .2; } .bi-file-earmark-text::after { content: "\e23b"; margin-left: -1em; }
.bi-file-earmark-word::before { content: "\eb1e"; opacity: .2; } .bi-file-earmark-word::after { content: "\eb1f"; margin-left: -1em; }
.bi-files::before { content: "\e710"; opacity: .2; } .bi-files::after { content: "\e711"; margin-left: -1em; }
.bi-filetype-csv::before { content: "\eb1c"; opacity: .2; } .bi-filetype-csv::after { content: "\eb1d"; margin-left: -1em; }
.bi-filetype-pdf::before { content: "\e702"; opacity: .2; } .bi-filetype-pdf::after { content: "\e703"; margin-left: -1em; }
.bi-filetype-xlsx::before { content: "\eb22"; opacity: .2; } .bi-filetype-xlsx::after { content: "\eb23"; margin-left: -1em; }
.bi-fire::before { content: "\e242"; opacity: .2; } .bi-fire::after { content: "\e243"; margin-left: -1em; }
.bi-flag::before { content: "\e244"; opacity: .2; } .bi-flag::after { content: "\e245"; margin-left: -1em; }
.bi-flag-fill::before { content: "\e244"; opacity: .2; } .bi-flag-fill::after { content: "\e245"; margin-left: -1em; }
.bi-folder::before { content: "\e24a"; opacity: .2; } .bi-folder::after { content: "\e24b"; margin-left: -1em; }
.bi-folder-fill::before { content: "\e24a"; opacity: .2; } .bi-folder-fill::after { content: "\e24b"; margin-left: -1em; }
.bi-folder-plus::before { content: "\e258"; opacity: .2; } .bi-folder-plus::after { content: "\e259"; margin-left: -1em; }
.bi-folder-symlink::before { content: "\e25a"; opacity: .2; } .bi-folder-symlink::after { content: "\e25b"; margin-left: -1em; }
.bi-folder2-open::before { content: "\e256"; opacity: .2; } .bi-folder2-open::after { content: "\e257"; margin-left: -1em; }
.bi-funnel::before { content: "\e266"; opacity: .2; } .bi-funnel::after { content: "\e267"; margin-left: -1em; }
.bi-gear::before { content: "\e270"; opacity: .2; } .bi-gear::after { content: "\e271"; margin-left: -1em; }
.bi-geo::before { content: "\e316"; opacity: .2; } .bi-geo::after { content: "\e317"; margin-left: -1em; }
.bi-geo-alt::before { content: "\e316"; opacity: .2; } .bi-geo-alt::after { content: "\e317"; margin-left: -1em; }
.bi-geo-fill::before { content: "\e316"; opacity: .2; } .bi-geo-fill::after { content: "\e317"; margin-left: -1em; }
.bi-globe-americas::before { content: "\e28c"; opacity: .2; } .bi-globe-americas::after { content: "\e28d"; margin-left: -1em; }
.bi-graph-down::before { content: "\e8b6"; opacity: .2; } .bi-graph-down::after { content: "\e8b7"; margin-left: -1em; }
.bi-graph-down-arrow::before { content: "\e4ac"; opacity: .2; } .bi-graph-down-arrow::after { content: "\e4ad"; margin-left: -1em; }
.bi-graph-up::before { content: "\e156"; opacity: .2; } .bi-graph-up::after { content: "\e157"; margin-left: -1em; }
.bi-graph-up-arrow::before { content: "\e4ae"; opacity: .2; } .bi-graph-up-arrow::after { content: "\e4af"; margin-left: -1em; }
.bi-grid-1x2::before { content: "\e6d6"; opacity: .2; } .bi-grid-1x2::after { content: "\e6d7"; margin-left: -1em; }
.bi-grid-fill::before { content: "\e464"; opacity: .2; } .bi-grid-fill::after { content: "\e465"; margin-left: -1em; }
.bi-heart-pulse-fill::before { content: "\e2ac"; opacity: .2; } .bi-heart-pulse-fill::after { content: "\e2ad"; margin-left: -1em; }
.bi-highlighter::before { content: "\ec76"; opacity: .2; } .bi-highlighter::after { content: "\ec77"; margin-left: -1em; }
.bi-hourglass-split::before { content: "\e2b8"; opacity: .2; } .bi-hourglass-split::after { content: "\e2b9"; margin-left: -1em; }
.bi-house-door::before { content: "\e2c2"; opacity: .2; } .bi-house-door::after { content: "\e2c3"; margin-left: -1em; }
.bi-hr::before { content: "\e32a"; opacity: .2; } .bi-hr::after { content: "\e32b"; margin-left: -1em; }
.bi-image::before { content: "\e2ca"; opacity: .2; } .bi-image::after { content: "\e2cb"; margin-left: -1em; }
.bi-images::before { content: "\e836"; opacity: .2; } .bi-images::after { content: "\e837"; margin-left: -1em; }
.bi-inbox::before { content: "\e4aa"; opacity: .2; } .bi-inbox::after { content: "\e4ab"; margin-left: -1em; }
.bi-info-circle::before { content: "\e2ce"; opacity: .2; } .bi-info-circle::after { content: "\e2cf"; margin-left: -1em; }
.bi-info-circle-fill::before { content: "\e2ce"; opacity: .2; } .bi-info-circle-fill::after { content: "\e2cf"; margin-left: -1em; }
.bi-intersect::before { content: "\e2d2"; opacity: .2; } .bi-intersect::after { content: "\e2d3"; margin-left: -1em; }
.bi-journal::before { content: "\e34e"; opacity: .2; } .bi-journal::after { content: "\e34f"; margin-left: -1em; }
.bi-journal-plus::before { content: "\e34e"; opacity: .2; } .bi-journal-plus::after { content: "\e34f"; margin-left: -1em; }
.bi-journal-richtext::before { content: "\e34e"; opacity: .2; } .bi-journal-richtext::after { content: "\e34f"; margin-left: -1em; }
.bi-journal-text::before { content: "\e34e"; opacity: .2; } .bi-journal-text::after { content: "\e34f"; margin-left: -1em; }
.bi-kanban::before { content: "\eb54"; opacity: .2; } .bi-kanban::after { content: "\eb55"; margin-left: -1em; }
.bi-key::before { content: "\e2d6"; opacity: .2; } .bi-key::after { content: "\e2d7"; margin-left: -1em; }
.bi-lightbulb::before { content: "\e2dc"; opacity: .2; } .bi-lightbulb::after { content: "\e2dd"; margin-left: -1em; }
.bi-lightbulb-fill::before { content: "\e2dc"; opacity: .2; } .bi-lightbulb-fill::after { content: "\e2dd"; margin-left: -1em; }
.bi-link-45deg::before { content: "\e2e2"; opacity: .2; } .bi-link-45deg::after { content: "\e2e3"; margin-left: -1em; }
.bi-linkedin::before { content: "\e2ee"; opacity: .2; } .bi-linkedin::after { content: "\e2ef"; margin-left: -1em; }
.bi-list::before { content: "\e2f0"; opacity: .2; } .bi-list::after { content: "\e2f1"; margin-left: -1em; }
.bi-list-check::before { content: "\eadc"; opacity: .2; } .bi-list-check::after { content: "\eadd"; margin-left: -1em; }
.bi-list-ol::before { content: "\e2f6"; opacity: .2; } .bi-list-ol::after { content: "\e2f7"; margin-left: -1em; }
.bi-list-ul::before { content: "\e2f2"; opacity: .2; } .bi-list-ul::after { content: "\e2f3"; margin-left: -1em; }
.bi-lock-fill::before { content: "\e2fa"; opacity: .2; } .bi-lock-fill::after { content: "\e2fb"; margin-left: -1em; }
.bi-magic::before { content: "\e6b6"; opacity: .2; } .bi-magic::after { content: "\e6b7"; margin-left: -1em; }
.bi-map::before { content: "\e31a"; opacity: .2; } .bi-map::after { content: "\e31b"; margin-left: -1em; }
.bi-megaphone::before { content: "\e324"; opacity: .2; } .bi-megaphone::after { content: "\e325"; margin-left: -1em; }
.bi-microsoft::before { content: "\eb70"; opacity: .2; } .bi-microsoft::after { content: "\eb71"; margin-left: -1em; }
.bi-moon-stars::before { content: "\e58e"; opacity: .2; } .bi-moon-stars::after { content: "\e58f"; margin-left: -1em; }
.bi-moon-stars-fill::before { content: "\e58e"; opacity: .2; } .bi-moon-stars-fill::after { content: "\e58f"; margin-left: -1em; }
.bi-palette::before { content: "\e6c8"; opacity: .2; } .bi-palette::after { content: "\e6c9"; margin-left: -1em; }
.bi-paperclip::before { content: "\e39a"; opacity: .2; } .bi-paperclip::after { content: "\e39b"; margin-left: -1em; }
.bi-patch-check::before { content: "\e606"; opacity: .2; } .bi-patch-check::after { content: "\e607"; margin-left: -1em; }
.bi-patch-check-fill::before { content: "\e606"; opacity: .2; } .bi-patch-check-fill::after { content: "\e607"; margin-left: -1em; }
.bi-pause-circle::before { content: "\e3a0"; opacity: .2; } .bi-pause-circle::after { content: "\e3a1"; margin-left: -1em; }
.bi-pen::before { content: "\e3aa"; opacity: .2; } .bi-pen::after { content: "\e3ab"; margin-left: -1em; }
.bi-pencil::before { content: "\e3ae"; opacity: .2; } .bi-pencil::after { content: "\e3af"; margin-left: -1em; }
.bi-pencil-square::before { content: "\ebc6"; opacity: .2; } .bi-pencil-square::after { content: "\ebc7"; margin-left: -1em; }
.bi-people::before { content: "\e4d6"; opacity: .2; } .bi-people::after { content: "\e4d7"; margin-left: -1em; }
.bi-percent::before { content: "\e3b6"; opacity: .2; } .bi-percent::after { content: "\e3b7"; margin-left: -1em; }
.bi-person::before { content: "\e3a8"; opacity: .2; } .bi-person::after { content: "\e3a9"; margin-left: -1em; }
.bi-person-badge::before { content: "\e6f6"; opacity: .2; } .bi-person-badge::after { content: "\e6f7"; margin-left: -1em; }
.bi-person-check::before { content: "\eafa"; opacity: .2; } .bi-person-check::after { content: "\eafb"; margin-left: -1em; }
.bi-person-dash::before { content: "\e4ce"; opacity: .2; } .bi-person-dash::after { content: "\e4cf"; margin-left: -1em; }
.bi-person-lines-fill::before { content: "\e6f6"; opacity: .2; } .bi-person-lines-fill::after { content: "\e6f7"; margin-left: -1em; }
.bi-person-plus::before { content: "\e4d0"; opacity: .2; } .bi-person-plus::after { content: "\e4d1"; margin-left: -1em; }
.bi-person-vcard::before { content: "\e2c8"; opacity: .2; } .bi-person-vcard::after { content: "\e2c9"; margin-left: -1em; }
.bi-person-x::before { content: "\e4ce"; opacity: .2; } .bi-person-x::after { content: "\e4cf"; margin-left: -1em; }
.bi-person-x-fill::before { content: "\e4ce"; opacity: .2; } .bi-person-x-fill::after { content: "\e4cf"; margin-left: -1em; }
.bi-pie-chart::before { content: "\e158"; opacity: .2; } .bi-pie-chart::after { content: "\e159"; margin-left: -1em; }
.bi-pie-chart-fill::before { content: "\e15a"; opacity: .2; } .bi-pie-chart-fill::after { content: "\e15b"; margin-left: -1em; }
.bi-piggy-bank::before { content: "\ea04"; opacity: .2; } .bi-piggy-bank::after { content: "\ea05"; margin-left: -1em; }
.bi-pin-angle::before { content: "\e3e2"; opacity: .2; } .bi-pin-angle::after { content: "\e3e3"; margin-left: -1em; }
.bi-pin-angle-fill::before { content: "\e3e2"; opacity: .2; } .bi-pin-angle-fill::after { content: "\e3e3"; margin-left: -1em; }
.bi-pin-map::before { content: "\e318"; opacity: .2; } .bi-pin-map::after { content: "\e319"; margin-left: -1em; }
.bi-play-circle::before { content: "\e3d2"; opacity: .2; } .bi-play-circle::after { content: "\e3d3"; margin-left: -1em; }
.bi-play-fill::before { content: "\e3d0"; opacity: .2; } .bi-play-fill::after { content: "\e3d1"; margin-left: -1em; }
.bi-plus::before { content: "\e3d4"; opacity: .2; } .bi-plus::after { content: "\e3d5"; margin-left: -1em; }
.bi-plus-circle::before { content: "\e3d6"; opacity: .2; } .bi-plus-circle::after { content: "\e3d7"; margin-left: -1em; }
.bi-plus-lg::before { content: "\e3d4"; opacity: .2; } .bi-plus-lg::after { content: "\e3d5"; margin-left: -1em; }
.bi-plus-square::before { content: "\ed4a"; opacity: .2; } .bi-plus-square::after { content: "\ed56"; margin-left: -1em; }
.bi-printer::before { content: "\e3dc"; opacity: .2; } .bi-printer::after { content: "\e3dd"; margin-left: -1em; }
.bi-question-circle::before { content: "\e3e8"; opacity: .2; } .bi-question-circle::after { content: "\e3eb"; margin-left: -1em; }
.bi-question-lg::before { content: "\e3e8"; opacity: .2; } .bi-question-lg::after { content: "\e3eb"; margin-left: -1em; }
.bi-quote::before { content: "\e660"; opacity: .2; } .bi-quote::after { content: "\e661"; margin-left: -1em; }
.bi-receipt::before { content: "\e3ec"; opacity: .2; } .bi-receipt::after { content: "\e3f1"; margin-left: -1em; }
.bi-recompute::before { content: "\e094"; opacity: .2; } .bi-recompute::after { content: "\e095"; margin-left: -1em; }
.bi-reply::before { content: "\e024"; opacity: .2; } .bi-reply::after { content: "\e025"; margin-left: -1em; }
.bi-safe::before { content: "\e76e"; opacity: .2; } .bi-safe::after { content: "\e76f"; margin-left: -1em; }
.bi-save::before { content: "\e248"; opacity: .2; } .bi-save::after { content: "\e249"; margin-left: -1em; }
.bi-search::before { content: "\e30c"; opacity: .2; } .bi-search::after { content: "\e30d"; margin-left: -1em; }
.bi-send::before { content: "\e398"; opacity: .2; } .bi-send::after { content: "\e399"; margin-left: -1em; }
.bi-send-check::before { content: "\e398"; opacity: .2; } .bi-send-check::after { content: "\e399"; margin-left: -1em; }
.bi-send-fill::before { content: "\e398"; opacity: .2; } .bi-send-fill::after { content: "\e399"; margin-left: -1em; }
.bi-shield-check::before { content: "\e40c"; opacity: .2; } .bi-shield-check::after { content: "\e40f"; margin-left: -1em; }
.bi-shield-exclamation::before { content: "\e412"; opacity: .2; } .bi-shield-exclamation::after { content: "\e414"; margin-left: -1em; }
.bi-shield-fill-check::before { content: "\e40c"; opacity: .2; } .bi-shield-fill-check::after { content: "\e40f"; margin-left: -1em; }
.bi-shield-lock::before { content: "\e40c"; opacity: .2; } .bi-shield-lock::after { content: "\e40f"; margin-left: -1em; }
.bi-signpost::before { content: "\e89c"; opacity: .2; } .bi-signpost::after { content: "\e89d"; margin-left: -1em; }
.bi-signpost-2::before { content: "\e89c"; opacity: .2; } .bi-signpost-2::after { content: "\e89d"; margin-left: -1em; }
.bi-signpost-split::before { content: "\e89c"; opacity: .2; } .bi-signpost-split::after { content: "\e89d"; margin-left: -1em; }
.bi-signpost-split-fill::before { content: "\e89c"; opacity: .2; } .bi-signpost-split-fill::after { content: "\e89d"; margin-left: -1em; }
.bi-skip-forward::before { content: "\e5a6"; opacity: .2; } .bi-skip-forward::after { content: "\e5a7"; margin-left: -1em; }
.bi-slash-circle::before { content: "\e3de"; opacity: .2; } .bi-slash-circle::after { content: "\e3df"; margin-left: -1em; }
.bi-sliders::before { content: "\e432"; opacity: .2; } .bi-sliders::after { content: "\e433"; margin-left: -1em; }
.bi-snow::before { content: "\e5aa"; opacity: .2; } .bi-snow::after { content: "\e5ab"; margin-left: -1em; }
.bi-speedometer2::before { content: "\e628"; opacity: .2; } .bi-speedometer2::after { content: "\e629"; margin-left: -1em; }
.bi-square::before { content: "\e45e"; opacity: .2; } .bi-square::after { content: "\e45f"; margin-left: -1em; }
.bi-star-fill::before { content: "\e46a"; opacity: .2; } .bi-star-fill::after { content: "\e46b"; margin-left: -1em; }
.bi-stop-fill::before { content: "\e46c"; opacity: .2; } .bi-stop-fill::after { content: "\e46d"; margin-left: -1em; }
.bi-stopwatch::before { content: "\e492"; opacity: .2; } .bi-stopwatch::after { content: "\e493"; margin-left: -1em; }
.bi-sun::before { content: "\e472"; opacity: .2; } .bi-sun::after { content: "\e473"; margin-left: -1em; }
.bi-sun-fill::before { content: "\e472"; opacity: .2; } .bi-sun-fill::after { content: "\e473"; margin-left: -1em; }
.bi-table::before { content: "\e476"; opacity: .2; } .bi-table::after { content: "\e477"; margin-left: -1em; }
.bi-tag::before { content: "\e478"; opacity: .2; } .bi-tag::after { content: "\e479"; margin-left: -1em; }
.bi-tags::before { content: "\e478"; opacity: .2; } .bi-tags::after { content: "\e479"; margin-left: -1em; }
.bi-tags-fill::before { content: "\e478"; opacity: .2; } .bi-tags-fill::after { content: "\e479"; margin-left: -1em; }
.bi-telephone::before { content: "\e3b8"; opacity: .2; } .bi-telephone::after { content: "\e3b9"; margin-left: -1em; }
.bi-telephone-fill::before { content: "\e3b8"; opacity: .2; } .bi-telephone-fill::after { content: "\e3b9"; margin-left: -1em; }
.bi-telephone-inbound::before { content: "\e3be"; opacity: .2; } .bi-telephone-inbound::after { content: "\e3bf"; margin-left: -1em; }
.bi-telephone-outbound::before { content: "\e3c0"; opacity: .2; } .bi-telephone-outbound::after { content: "\e3c1"; margin-left: -1em; }
.bi-text-paragraph::before { content: "\e484"; opacity: .2; } .bi-text-paragraph::after { content: "\e485"; margin-left: -1em; }
.bi-three-dots::before { content: "\e1fe"; opacity: .2; } .bi-three-dots::after { content: "\e1ff"; margin-left: -1em; }
.bi-trash::before { content: "\e4a6"; opacity: .2; } .bi-trash::after { content: "\e4a7"; margin-left: -1em; }
.bi-trash3::before { content: "\e4a6"; opacity: .2; } .bi-trash3::after { content: "\e4a7"; margin-left: -1em; }
.bi-trophy::before { content: "\e67e"; opacity: .2; } .bi-trophy::after { content: "\e67f"; margin-left: -1em; }
.bi-trophy-fill::before { content: "\e67e"; opacity: .2; } .bi-trophy-fill::after { content: "\e67f"; margin-left: -1em; }
.bi-truck::before { content: "\e4b4"; opacity: .2; } .bi-truck::after { content: "\e4b5"; margin-left: -1em; }
.bi-truck-flatbed::before { content: "\e4b4"; opacity: .2; } .bi-truck-flatbed::after { content: "\e4b5"; margin-left: -1em; }
.bi-truck-front::before { content: "\e4b6"; opacity: .2; } .bi-truck-front::after { content: "\e4b7"; margin-left: -1em; }
.bi-type-bold::before { content: "\e5be"; opacity: .2; } .bi-type-bold::after { content: "\e5bf"; margin-left: -1em; }
.bi-type-h1::before { content: "\e6bc"; opacity: .2; } .bi-type-h1::after { content: "\e6bd"; margin-left: -1em; }
.bi-type-h2::before { content: "\e6be"; opacity: .2; } .bi-type-h2::after { content: "\e6bf"; margin-left: -1em; }
.bi-type-italic::before { content: "\e5c0"; opacity: .2; } .bi-type-italic::after { content: "\e5c1"; margin-left: -1em; }
.bi-type-strikethrough::before { content: "\e5c2"; opacity: .2; } .bi-type-strikethrough::after { content: "\e5c3"; margin-left: -1em; }
.bi-type-underline::before { content: "\e5c4"; opacity: .2; } .bi-type-underline::after { content: "\e5c5"; margin-left: -1em; }
.bi-upload::before { content: "\e4be"; opacity: .2; } .bi-upload::after { content: "\e4bf"; margin-left: -1em; }
.bi-wallet2::before { content: "\e68a"; opacity: .2; } .bi-wallet2::after { content: "\e68b"; margin-left: -1em; }
.bi-whatsapp::before { content: "\e5d0"; opacity: .2; } .bi-whatsapp::after { content: "\e5d1"; margin-left: -1em; }
.bi-x::before { content: "\e4f6"; opacity: .2; } .bi-x::after { content: "\e4f7"; margin-left: -1em; }
.bi-x-circle::before { content: "\e4f8"; opacity: .2; } .bi-x-circle::after { content: "\e4f9"; margin-left: -1em; }
.bi-x-lg::before { content: "\e4f6"; opacity: .2; } .bi-x-lg::after { content: "\e4f7"; margin-left: -1em; }
.bi-x-octagon::before { content: "\e4f8"; opacity: .2; } .bi-x-octagon::after { content: "\e4f9"; margin-left: -1em; }
.bi-x-octagon-fill::before { content: "\e4f8"; opacity: .2; } .bi-x-octagon-fill::after { content: "\e4f9"; margin-left: -1em; }
.bi-zoom-in::before { content: "\e310"; opacity: .2; } .bi-zoom-in::after { content: "\e311"; margin-left: -1em; }
.bi-zoom-out::before { content: "\e30e"; opacity: .2; } .bi-zoom-out::after { content: "\e30f"; margin-left: -1em; }

/* The four clocks keep Bootstrap Icons for their sun / moon / weather glyphs: the owner asked that the clocks stay exactly as they are
   (brief 2026-10-24), so the Phosphor swap does not reach inside them. */
.clock-card .bi-cloud-drizzle-fill::before { content: "\f29c"; opacity: 1; font-family: bootstrap-icons !important; }
.clock-card .bi-cloud-fog2-fill::before { content: "\f2a1"; opacity: 1; font-family: bootstrap-icons !important; }
.clock-card .bi-cloud-lightning-rain-fill::before { content: "\f2aa"; opacity: 1; font-family: bootstrap-icons !important; }
.clock-card .bi-cloud-moon-fill::before { content: "\f2af"; opacity: 1; font-family: bootstrap-icons !important; }
.clock-card .bi-cloud-rain-fill::before { content: "\f2b3"; opacity: 1; font-family: bootstrap-icons !important; }
.clock-card .bi-cloud-rain-heavy-fill::before { content: "\f2b4"; opacity: 1; font-family: bootstrap-icons !important; }
.clock-card .bi-cloud-snow-fill::before { content: "\f2bb"; opacity: 1; font-family: bootstrap-icons !important; }
.clock-card .bi-cloud-sun-fill::before { content: "\f2bd"; opacity: 1; font-family: bootstrap-icons !important; }
.clock-card .bi-clouds-fill::before { content: "\f2c2"; opacity: 1; font-family: bootstrap-icons !important; }
.clock-card .bi-moon-stars-fill::before { content: "\f495"; opacity: 1; font-family: bootstrap-icons !important; }
.clock-card .bi-sun-fill::before { content: "\f5a1"; opacity: 1; font-family: bootstrap-icons !important; }
.clock-card .bi::after { content: none; }

/* ---- UI redesign 2026-10-24 (owner brief): Pricing Desk and Settings. Same markup, figures and controls; the luxe pieces (the
   Statistics bar's colour wash and rail, the glossy icon tiles on the stat cards and the settings panels, uppercase panel
   titles) give way to the flat look, and the theme and density choices show a small preview of what they do. ---- */
.hm-pair { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 16px; align-items: stretch; margin-bottom: 1.5rem; }
.hm-pair > [data-live-region] > .card { margin-bottom: 0 !important; height: 100%; }
html[data-orientation="portrait"] .hm-pair, html[data-w1100="1"] .hm-pair, html[data-orientation="phone"] .hm-pair { grid-template-columns: minmax(0, 1fr); }
.qb-head { border: 0; border-left: 0; border-radius: 0; background: transparent; background-image: none; box-shadow: none; padding: 4px 2px; margin-bottom: 12px; }
.qb-title-icon { width: 34px; height: 34px; border-radius: 50%; font-size: 16px; text-shadow: none; box-shadow: none; color: var(--tat-navy);
  background: color-mix(in srgb, var(--tat-navy) 12%, transparent); }
html[data-bs-theme="dark"] .qb-title-icon { color: var(--tat-ink); background: color-mix(in srgb, var(--tat-ink) 14%, transparent); }
.qb-title-name { font-size: 18px; font-weight: 600; }
.card-stat { background: var(--tat-white); }
.card-stat .stat-icon, .qb-tiles .card-stat .stat-icon { border-radius: 50%; text-shadow: none; box-shadow: none; color: var(--st);
  background: color-mix(in srgb, var(--st) 14%, transparent); }
body.page-settings .fpanel { border: 1px solid var(--tat-line-soft); border-left-width: 1px; border-radius: var(--hm-r, 18px); }
body.page-settings .fpanel-head { background: transparent; background-image: none; border-top-right-radius: 0; padding: 14px 20px; }
body.page-settings .fpanel-icon { width: 34px; height: 34px; border-radius: 50%; font-size: 16px; text-shadow: none; box-shadow: none;
  color: var(--fp, var(--tat-navy)); background: color-mix(in srgb, var(--fp, var(--tat-navy)) 13%, transparent); }
body.page-settings .fpanel-title { font-size: 15px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--tat-ink); }
.hm-prevseg { background: transparent; padding: 0; gap: 12px; }
.hm-prevseg .seg-item { flex-direction: column; align-items: stretch; gap: 8px; padding: 10px; border: 1px solid var(--tat-line); border-radius: 14px;
  background: var(--tat-white-2); font-weight: 500; box-shadow: none; }
.hm-prevseg .seg-item:has(> input:checked) { border-color: #256abf; background: var(--tat-white); box-shadow: 0 0 0 2px color-mix(in srgb, #256abf 35%, transparent); }
.hm-prevseg .seg-item:has(> input:focus-visible) { outline: 2px solid #256abf; outline-offset: 2px; }
.hm-prev-name { display: inline-flex; align-items: center; justify-content: center; gap: .35rem; }
.hm-prev { display: flex; flex-direction: column; gap: 5px; justify-content: center; height: 64px; padding: 10px; border-radius: 9px; border: 1px solid #e3e6ee; background: #fff; }
.hm-prev > i { display: block; height: 7px; border-radius: 4px; background: #e6e8ef; }
.hm-prev > i:first-child { width: 45%; background: #256abf; }
.hm-prev-dark { background: #15161f; border-color: #2a2d41; }
.hm-prev-dark > i { background: #30334a; } .hm-prev-dark > i:first-child { background: #3987e5; }
.hm-prev-system { background: linear-gradient(90deg, #fff 50%, #15161f 50%); }
.hm-prev-system > i { background: linear-gradient(90deg, #e6e8ef 50%, #30334a 50%); } .hm-prev-system > i:first-child { background: #256abf; }
.hm-prev-compact { gap: 2px; justify-content: flex-start; } .hm-prev-compact > i { height: 5px; }
/* dark theme: a navy icon chip would vanish on the dark card, so the chips are lifted toward white there */
html[data-bs-theme="dark"] .card > .card-header > i.bi:first-child, html[data-bs-theme="dark"] .card > .card-header > span:first-child > i.bi:first-child,
html[data-bs-theme="dark"] body.page-settings .fpanel-icon {
  color: color-mix(in srgb, var(--fp, var(--tat-navy)) 38%, #fff); background: color-mix(in srgb, color-mix(in srgb, var(--fp, var(--tat-navy)) 38%, #fff) 16%, transparent); }

/* ---- The slim top bar (UI redesign phase 2, owner brief 2026-10-24, change set A; markup in _hm_topbar.html, behaviour in
   static/js/hm_topbar.js). On every page since 2026-10-27 (the bell and the person left the sidebar foot); on the pages that carry the
   1240px content column it lines up with that column. ---- */
.hm-topbar { display: flex; align-items: center; gap: 10px; padding: 14px 1.5rem 0; }
.app-main:has(> main.hm-col) > .hm-topbar { width: 100%; max-width: 1280px; margin-left: auto; margin-right: auto; padding: 14px 20px 0; }
@media print { .hm-topbar { display: none; } }
.hm-who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.hm-gico { width: 42px; height: 42px; border-radius: 12px; flex: none; display: grid; place-items: center; font-size: 22px; color: #fff;
  background: linear-gradient(135deg, var(--hm-accent), color-mix(in srgb, var(--hm-accent) 55%, #000));
  box-shadow: 0 6px 16px -6px color-mix(in srgb, var(--hm-accent) 70%, transparent), inset 0 0 0 1px rgba(255, 255, 255, .18); }
.hm-who > b { font-weight: 500; font-size: 15px; line-height: 1.25; color: var(--hm-ink); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hm-acts { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.hm-menuwrap { position: relative; }
.hm-circ, .hm-me { position: relative; display: inline-flex; align-items: center; border: 1px solid var(--hm-line); background: var(--hm-panel); color: var(--hm-fg2);
  cursor: pointer; font: inherit; }
.hm-circ { width: 42px; height: 42px; border-radius: 50%; justify-content: center; font-size: 20px; }
.hm-me { gap: 8px; padding: 4px 12px 4px 4px; border-radius: 99px; color: var(--hm-ink); font-size: 13px; }
.hm-circ:hover, .hm-me:hover, .hm-circ[aria-expanded="true"], .hm-me[aria-expanded="true"] { border-color: var(--hm-line2); color: var(--hm-ink); }
.hm-circ[aria-expanded="true"], .hm-me[aria-expanded="true"] { background: var(--hm-soft); }
.hm-me .avatar { width: 2rem; height: 2rem; }
.hm-me .badge { font-size: .66rem; }
.hm-me-caret { font-size: 12px; color: var(--hm-fgm); }
.hm-bell-badge { position: absolute; top: -4px; right: -4px; padding: .2rem .38rem; font-size: .62rem; line-height: 1; }
.hm-menu { position: absolute; right: 0; top: calc(100% + 10px); z-index: 1060; background: var(--hm-panel); border: 1px solid var(--hm-line2); border-radius: 18px;
  box-shadow: 0 18px 50px -10px rgba(0, 0, 0, .38); overflow: hidden; max-width: calc(100vw - 24px); }
.hm-menu[hidden] { display: none; }
.hm-menu.notif-menu .notif-list { max-height: 60vh; overflow-y: auto; }
.hm-menu-me { width: 280px; padding: 6px; }
.hm-menu-who { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px 12px; margin-bottom: 4px; border-bottom: 1px solid var(--hm-line); min-width: 0; }
.hm-menu-who b { font-weight: 600; color: var(--hm-ink); }
.hm-menu-who span { font-size: 12px; color: var(--hm-fg2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hm-mlink { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; border-radius: 12px; background: transparent; color: var(--hm-ink);
  font: inherit; font-size: 14px; text-align: left; cursor: pointer; text-decoration: none; }
.hm-mlink > i { width: 32px; height: 32px; border-radius: 10px; flex: none; display: grid; place-items: center; font-size: 17px; color: var(--hm-accent);
  background: color-mix(in srgb, var(--hm-accent) 12%, var(--hm-panel)); }
.hm-mlink:hover, .hm-mlink:focus-visible { background: var(--hm-soft); color: var(--hm-ink); }
.hm-signout { margin: 4px 0 0; padding-top: 4px; border-top: 1px solid var(--hm-line); }
html[data-w760="1"] .hm-me-name, html[data-w760="1"] .hm-me .badge, html[data-w760="1"] .hm-me-caret,
html[data-orientation="phone"] .hm-me-name, html[data-orientation="phone"] .hm-me .badge, html[data-orientation="phone"] .hm-me-caret { display: none; }
html[data-w760="1"] .hm-me, html[data-orientation="phone"] .hm-me { padding-right: 4px; }

/* ---- Loads: summary tiles and the quick view's timeline and "more" buttons (owner brief 2026-10-24, set D) ---- */
.hm-tiles { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
html[data-orientation="portrait"] .hm-tiles, html[data-w1000="1"] .hm-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
html[data-w620="1"] .hm-tiles, html[data-orientation="phone"] .hm-tiles { grid-template-columns: minmax(0, 1fr); }
.hm-tile { position: relative; display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 16px 18px 16px 22px; overflow: hidden;
  border-radius: var(--hm-r); color: var(--hm-fg); text-decoration: none; }
.hm-tile::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background-color: var(--kc, var(--hm-accent)); }
.hm-tile:hover { color: var(--hm-fg); text-decoration: none; background-color: var(--hm-soft); }
.hm-tile.is-on { box-shadow: inset 0 0 0 2px var(--kc, var(--hm-accent)); }
.hm-tile-t { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 0; }
.hm-tile-t .hm-mlab { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm-tile-n { min-width: 0; overflow-wrap: anywhere; }
.hm-tile-s { min-width: 0; overflow-wrap: anywhere; }
.pk-more { display: flex; flex-direction: column; gap: 8px; margin-bottom: .75rem; }
.pk-more > a { display: flex; align-items: center; gap: 8px; min-width: 0; max-width: 100%; white-space: normal; text-align: left; border-radius: 20px; padding: 8px 14px; }
.pk-more-l { flex: none; white-space: nowrap; color: var(--hm-fg2); }
.pk-more-v { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; font-weight: 600; }
.pk-more > a > i { flex: none; margin-left: auto; }
/* a restyled list page's table card: a head with the glyph, the title and the search (owner brief 2026-10-24, set D) */
.hm-lcard { overflow: hidden; border-radius: var(--hm-r); }
.hm-lhead { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 14px 18px; border-bottom: 1px solid var(--hm-line); }
.hm-lhead .hm-title { white-space: nowrap; }
.hm-lsearch { flex: 1 1 auto; min-width: 0; display: flex; justify-content: flex-end; }
.hm-lsearch > form { margin: 0; flex-wrap: wrap; justify-content: flex-end; min-width: 0; max-width: 100%; }

/* ---- Receivables / Payables: the summary head (owner brief 2026-10-24, set D). Scoped to .hm-ar so no other page is touched. ---- */
:root { --hm-b1: var(--viz-good); --hm-b2: var(--viz-warn); --hm-b3: color-mix(in srgb, var(--viz-warn) 50%, var(--viz-bad));
  --hm-b4: var(--viz-bad); --hm-b5: color-mix(in srgb, var(--viz-bad) 70%, #000); }
.hm-ar { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.hm-ar-top { display: grid; grid-template-columns: minmax(0, auto) minmax(0, 1fr); gap: 16px; align-items: stretch; min-width: 0; }
html[data-orientation="portrait"] .hm-ar-top, html[data-w1100="1"] .hm-ar-top, html[data-orientation="phone"] .hm-ar-top { grid-template-columns: minmax(0, 1fr); }
.hm-ar-top:not(:has(.hm-ar-rings)) { grid-template-columns: minmax(0, 1fr); }
.hm-ar-rings { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 20px 32px; padding: 16px 32px; min-width: 0; border-radius: var(--hm-r); }
.hm-ar-rings .hm-gblock { min-width: 0; max-width: 100%; }
.hm-ar-rings .hm-sub { text-align: center; min-width: 0; overflow-wrap: anywhere; }
.hm-ar-rings .hm-mlab { white-space: nowrap; }
.hm-ar-age { padding: 16px 20px; min-width: 0; border-radius: var(--hm-r); display: flex; flex-direction: column; gap: 10px; }
.hm-ar-chart { display: grid; grid-template-columns: repeat(5, minmax(84px, 1fr)); gap: 12px; align-items: end; min-width: 0; max-width: 100%; overflow-x: auto; }
.hm-ar-col { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; }
.hm-ar-amt { flex: none; margin-bottom: 7px; font-weight: 500; font-size: 12px; color: var(--hm-ink); text-align: center; max-width: 100%; min-width: 0; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.hm-ar-plot { height: 168px; width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; }
.hm-ar-bar { flex: none; width: min(100%, 64px); height: calc(var(--p, 0) * 1.38px); min-height: 3px; border-radius: 7px; background-color: var(--bc); }
.hm-ar-lab { white-space: nowrap; font-size: 12px; color: var(--hm-fg2); text-align: center; }
.hm-ar-cur { text-align: right; }
.hm-ar-tiles { margin-bottom: 0; }
.hm-ar-tiles .stat-value { font-weight: 600; font-size: 30px; line-height: 1.1; letter-spacing: -.02em; min-width: 0; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.hm-ar-tiles .hm-tile .small { min-width: 0; overflow-wrap: anywhere; }
/* a filter bar's labels never wrap: they end in an ellipsis and carry the full text in a title */
.hm-flt .form-label { display: block; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm-ar-split { display: flex; height: 10px; border-radius: 5px; overflow: hidden; background-color: var(--hm-line); min-width: 0; }
.hm-ar-split > span { flex: var(--w, 0) 1 0px; min-width: 0; }
.hm-ar-over { background-color: var(--viz-bad); }
.hm-ar-later { background-color: var(--viz-good); }
.hm-ar-key { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 12px; color: var(--hm-fg2); min-width: 0; }
.hm-ar-key > span { white-space: nowrap; }
.hm-ar-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }

/* Incidents styling (owner brief, 2026-10-27) */
#incident-page { min-width: 0; }
#incident-page .ix-page-head { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; margin-bottom: 1rem; }
#incident-page .ix-page-heading, #incident-page .ix-page-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; min-width: 0; }
#incident-page .ix-page-heading h2 { margin: 0; color: var(--tat-ink); font-size: 1.35rem; font-weight: 650; letter-spacing: -.02em; }
#incident-page .ix-page-actions { margin-left: auto; }
#incident-page .ix-page-actions .hm-seg { flex-wrap: wrap; }
#incident-page .ix-page-head .ix-live { margin: 0; color: var(--tat-green); font-size: .75rem; }
#incident-page .ix-page-head .ix-live[data-state="busy"] { color: var(--tat-amber); }
#incident-page .ix-page-head .ix-live[data-state="stale"] { color: var(--tat-red-ink); }
#incident-page .hm-btn, #incident-page .btn, #incident-page .hm-chip, #incident-page .hm-seg button,
#incident-report-modal .btn, #incident-report-modal .hm-chip { min-height: 36px; }
#incident-page .ix-kpis .card-stat { border-radius: var(--hm-r); }
#incident-page .ix-kpis .card-stat.stat-red { --st: var(--tat-red-deep); }
#incident-page .ix-kpis .card-body { padding: 1.1rem 1.2rem; }
#incident-page .ix-kpis .stat-label { color: var(--tat-muted); font-size: .7rem; font-weight: 650; letter-spacing: .075em; line-height: 1.35; text-transform: uppercase; }
#incident-page .ix-kpis .stat-value { font-weight: 650; }
#incident-page .ix-kpis .small { line-height: 1.35; }

#incident-page .ix-filters { gap: .75rem; margin-bottom: 1rem; padding: 1rem 1.15rem; }
#incident-page .ix-filter-row { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem .75rem; min-width: 0; }
#incident-page .ix-filter-label { flex: 0 0 4.25rem; color: var(--tat-muted); font-size: .78rem; }
#incident-page .ix-filter-chips { display: flex; flex: 1 1 24rem; flex-wrap: wrap; gap: .4rem; min-width: 0; }
#incident-page .ix-filter-chips .hm-chip i { font-size: .85em; }
#incident-page .ix-scope { flex-wrap: wrap; margin-left: auto; }
#incident-page .ix-filter-tools { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; padding-top: .65rem; border-top: 1px solid var(--tat-line-soft); }
#incident-page .ix-filter-tools .form-control { flex: 1 1 13rem; max-width: 20rem; }
#incident-page .ix-filter-tools .btn:last-child { margin-left: auto; }

#incident-page .ix-workspace { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 1rem; min-width: 0; }
#incident-page .ix-list-card { flex: 5 1 40rem; }
#incident-page .ix-detail-card { flex: 1 1 22rem; }
#incident-page .ix-list-card, #incident-page .ix-detail-card { min-width: 0; gap: 0; padding: 0; overflow: hidden; }
#incident-page .ix-list-card > .card-header, #incident-page .ix-detail-card > .card-header,
#incident-page .ix-detail-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
#incident-page .ix-list-card .hm-pill { padding: .1rem .55rem; background: var(--tat-white-2); font-variant-numeric: tabular-nums; }
#incident-page .ix-row { display: flex; flex-wrap: wrap; gap: .75rem 1rem; min-width: 0; padding: 1rem 1.15rem; color: var(--tat-ink-2); }
#incident-page .ix-row:hover { background: var(--tat-hover); color: var(--tat-ink-2); }
#incident-page .ix-row.is-selected { outline: 2px solid var(--tat-red); outline-offset: -2px; }
#incident-page .ix-row:focus-visible { position: relative; z-index: 1; outline: 2px solid var(--tat-red-deep); outline-offset: -3px; }
#incident-page .ix-row-main { flex: 1 1 20rem; min-width: 0; }
#incident-page .ix-row-side { flex: 1 1 11rem; max-width: 14rem; min-width: 9rem; margin-left: auto; text-align: right; }
#incident-page .ix-chip-row { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .45rem; min-width: 0; }
#incident-page .ix-chip { display: inline-flex; align-items: center; gap: .3rem; min-height: 1.35rem; padding: .12rem .55rem; border-radius: 99px; background: var(--tat-mist); color: var(--tat-ink-2); font-size: .68rem; font-weight: 600; line-height: 1.35; }
#incident-page .ix-chip.critical { background: var(--tat-red-tint); color: var(--tat-red-ink); }
#incident-page .ix-chip.high { background: var(--tat-amber-tint); color: var(--tat-amber); }
#incident-page .ix-chip.status-acknowledged, #incident-page .ix-chip.status-investigating { background: var(--tat-blue-tint); color: var(--tat-blue-ink); }
#incident-page .ix-chip.status-resolved { background: var(--tat-green-tint); color: var(--tat-green); }
#incident-page .ix-chip.category { background: transparent; color: var(--tat-muted); font-weight: 500; }
#incident-page .ix-number { color: var(--tat-muted); font-family: var(--bs-font-monospace); font-size: .7rem; font-variant-numeric: tabular-nums; }
#incident-page .ix-row-title { margin-top: .45rem; color: var(--tat-ink); font-size: .94rem; font-weight: 650; line-height: 1.35; overflow-wrap: anywhere; }
#incident-page .ix-related { color: var(--tat-muted); font-size: .76rem; line-height: 1.45; overflow-wrap: anywhere; }
#incident-page .ix-row-main > .ix-related { margin-top: .15rem; }
#incident-page .ix-timer { color: var(--tat-ink); font-size: .94rem; font-variant-numeric: tabular-nums; line-height: 1.25; }
#incident-page .ix-timer.is-missed { color: var(--tat-red-ink); }
#incident-page .ix-deadline-track { width: 100%; height: 4px; margin: .4rem 0 .3rem; overflow: hidden; border-radius: 99px; background: var(--tat-line-soft); }
#incident-page .ix-deadline-track > span { display: block; height: 100%; border-radius: inherit; background: var(--tat-green); }
#incident-page .ix-deadline-track.warn > span { background: var(--tat-amber); }
#incident-page .ix-deadline-track.bad > span { background: var(--tat-red-deep); }
#incident-page .ix-deadline-line { color: var(--tat-muted); font-size: .7rem; line-height: 1.35; }
#incident-page .ix-person { display: flex; align-items: center; justify-content: flex-end; gap: .4rem; margin-top: .35rem; color: var(--tat-ink-2); font-size: .7rem; }
#incident-page .ix-avatar { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; width: 1.65rem; height: 1.65rem; border-radius: 50%; background: var(--tat-mist); color: var(--tat-ink-2); font-size: .6rem; font-weight: 700; letter-spacing: .02em; }
#incident-page .ix-avatar.is-queue { background: var(--tat-line-soft); color: var(--tat-ink-2); }

#incident-page .ix-detail-card .card-body { min-width: 0; padding: 1.15rem; }
#incident-page .ix-detail-title { margin: .65rem 0 .2rem; color: var(--tat-ink); font-size: 1.05rem; font-weight: 650; line-height: 1.35; overflow-wrap: anywhere; }
#incident-page .ix-description { margin: .65rem 0 0; color: var(--tat-ink-2); font-size: .85rem; white-space: pre-wrap; overflow-wrap: anywhere; }
#incident-page .ix-open-block { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .85rem 1.25rem; margin-top: 1rem; }
#incident-page .ix-overline { margin-bottom: .25rem; color: var(--tat-muted); font-size: .7rem; }
#incident-page .ix-detail-timer { color: var(--tat-ink); font-size: 2rem; font-variant-numeric: tabular-nums; letter-spacing: -.035em; line-height: 1.1; }
#incident-page .ix-detail-timer.is-missed { color: var(--tat-red-ink); }
#incident-page .ix-deadline-block { flex: 1 1 13rem; min-width: 0; }
#incident-page .ix-deadline-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem .75rem; color: var(--tat-muted); font-size: .7rem; }
#incident-page .ix-deadline-head strong { color: var(--tat-ink-2); font-weight: 500; }
#incident-page .ix-assignee-card { display: flex; align-items: center; gap: .65rem; margin-top: 1rem; padding: .65rem .75rem; border: 1px solid var(--tat-line-soft); border-radius: var(--tat-radius-sm); background: var(--tat-white-2); }
#incident-page .ix-assignee-card .ix-avatar { width: 2.2rem; height: 2.2rem; font-size: .7rem; }
#incident-page .ix-assignee-card strong { display: block; color: var(--tat-ink); font-size: .85rem; }
#incident-page .ix-detail-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: .9rem 0; }
#incident-page .ix-detail-actions .btn { border-radius: 99px; }
#incident-page .ix-reassign { display: inline-flex; flex: 1 1 16rem; flex-wrap: wrap; gap: .4rem; min-width: 0; }
#incident-page .ix-reassign .form-select { flex: 1 1 9rem; min-width: 0; min-height: 36px; }
#incident-page .ix-deadline-form { display: flex; flex-direction: column; align-items: flex-start; gap: .65rem; margin-bottom: 1rem; padding: .85rem; border: 1px solid var(--tat-line-soft); border-radius: var(--tat-radius-sm); background: var(--tat-white-2); }
#incident-page .ix-deadline-boxes, #incident-report-modal .ix-deadline-boxes { display: flex; flex-wrap: wrap; gap: .5rem; width: 100%; }
#incident-page .ix-deadline-boxes label, #incident-report-modal .ix-deadline-boxes label { flex: 1 1 4.5rem; min-width: 0; color: var(--tat-muted); font-size: .68rem; }
#incident-page .ix-deadline-boxes .form-control, #incident-report-modal .ix-deadline-boxes .form-control { width: 100%; margin-top: .25rem; }
#incident-page .ix-presets, #incident-report-modal .ix-presets { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .65rem; }
#incident-report-modal .ix-assign-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
#incident-report-modal .ix-assign-row > div { min-width: 0; }
#incident-report-modal .ix-assign-row .form-select { width: 100%; }
#incident-page .ix-tabs { margin-top: .5rem; }
#incident-page .ix-tabs .nav-link { min-height: 36px; }
#incident-page .ix-tabs .nav-link:focus-visible { outline: 2px solid var(--tat-red-deep); outline-offset: 2px; }
#incident-page .ix-comment { padding: .75rem 0; border-bottom: 1px solid var(--tat-line-soft); }
#incident-page .ix-comment-head { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; }
#incident-page .ix-comment-head .ix-avatar { width: 1.9rem; height: 1.9rem; }
#incident-page .ix-comment-head strong { color: var(--tat-ink); font-size: .8rem; }
#incident-page .ix-comment-head span:last-child { color: var(--tat-muted); font-size: .72rem; }
#incident-page .ix-comment p { margin: .45rem 0 0 2.35rem; color: var(--tat-ink-2); font-size: .84rem; white-space: pre-wrap; overflow-wrap: anywhere; }
#incident-page .ix-comment-form { margin-top: .85rem; }
#incident-page .ix-comment-privacy { margin-top: .45rem; color: var(--tat-muted); font-size: .72rem; }
#incident-page .ix-detail-report dd { color: var(--tat-ink); font-weight: 600; text-align: right; }
#incident-page .ix-activity-body { display: flex; flex: 1 1 auto; flex-direction: column; min-width: 0; overflow-wrap: anywhere; }
#incident-page .ix-activity-body strong { color: var(--tat-ink); font-size: .78rem; }
#incident-page .ix-activity-body span, #incident-page .ix-activity-body small { color: var(--tat-muted); font-size: .72rem; font-weight: 400; }
#incident-page .hm-tlv-i em { flex: 0 0 auto; white-space: nowrap; }
#incident-page .ix-restricted { flex-direction: column; padding: 3rem 1rem; }
#incident-page .ix-restricted > i { color: var(--tat-muted); font-size: 2rem; }
#incident-page .ix-restricted h2 { margin: .5rem 0; color: var(--tat-ink); font-size: 1.1rem; }
#incident-page .ix-restricted p { margin: 0; }

#incident-page .idisc-badge, #incident-page .idisc-bubble { display: inline-flex; align-items: center; justify-content: center; background: var(--hm-accent); color: var(--bs-white); font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
#incident-page .idisc-badge { min-width: 1.2rem; min-height: 1.2rem; margin-left: .3rem; padding: .15rem .38rem; border-radius: 99px; font-size: .66rem; vertical-align: .08rem; }
#incident-page .idisc-bubble { min-width: 1.15rem; height: 1.15rem; padding: 0 .35rem; border-radius: 99px; font-size: .65rem; }
#incident-page [data-detail-comments] { position: relative; max-height: 24rem; min-width: 0; padding: .25rem .35rem; overflow-y: auto; border-top: 1px solid var(--tat-line-soft); border-bottom: 1px solid var(--tat-line-soft); }
#incident-page .idisc-msg { min-width: 0; }
#incident-page .ix-comment-head .idisc-when { color: var(--tat-muted); font-size: .72rem; }
#incident-page .ix-comment-head .idisc-new { padding: .12rem .4rem; border-radius: 99px; background: var(--tat-blue-tint); color: var(--tat-blue-ink); font-size: .62rem; font-weight: 700; }
#incident-page .idisc-body { white-space: pre-wrap; }
#incident-page .idisc-mention { padding: .04rem .2rem; border-radius: .25rem; background: var(--tat-blue-tint); color: var(--tat-blue-ink); font-weight: 600; }
#incident-page .idisc-divider { display: flex; align-items: center; gap: .6rem; padding: .4rem 0; color: var(--tat-blue-ink); font-size: .66rem; font-weight: 650; }
#incident-page .idisc-divider::before, #incident-page .idisc-divider::after { content: ""; flex: 1 1 auto; height: 1px; background: var(--tat-blue-tint); }
#incident-page .idisc-attachments { display: flex; flex-wrap: wrap; align-items: flex-start; gap: .5rem; max-width: 100%; min-width: 0; margin: .55rem 0 0 2.35rem; }
#incident-page .idisc-thumb { display: block; flex: 0 1 auto; width: 11rem; max-width: 100%; height: 9rem; overflow: hidden; border: 1px solid var(--hm-line); border-radius: .65rem; background: var(--tat-mist); }
#incident-page .idisc-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
#incident-page .idisc-file, #incident-page .idisc-link { display: inline-flex; align-items: center; gap: .4rem; max-width: 100%; min-width: 0; padding: .45rem .6rem; border: 1px solid var(--hm-line); border-radius: .6rem; background: var(--hm-panel); color: var(--tat-blue-ink); font-size: .75rem; text-decoration: none; }
#incident-page .idisc-file:hover, #incident-page .idisc-link:hover { background: var(--tat-blue-tint); color: var(--tat-blue-ink); text-decoration: none; }
#incident-page .idisc-file > i, #incident-page .idisc-link > i { flex: 0 0 auto; font-size: 1rem; }
#incident-page .idisc-file-name { flex: 0 1 auto; min-width: 0; max-width: 14rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#incident-page .idisc-file small, #incident-page .idisc-chip small { flex: 0 0 auto; color: var(--tat-muted); font-size: .66rem; }

#incident-page .idisc-composer { position: relative; min-width: 0; padding: .65rem; border: 1px solid var(--hm-line); border-radius: 12px; background: var(--hm-panel); }
#incident-page .idisc-composer.is-drop { outline: 2px dashed var(--hm-accent); outline-offset: 2px; }
#incident-page .idisc-text { display: block; width: 100%; min-height: 3.5rem; max-height: 10.5rem; overflow-y: auto; resize: vertical; line-height: 1.45; }
#incident-page .idisc-suggest { position: absolute; z-index: 5; left: .65rem; right: .65rem; max-height: 15rem; padding: .25rem; overflow-y: auto; border: 1px solid var(--hm-line); border-radius: .65rem; background: var(--hm-panel); box-shadow: var(--tat-shadow-pop); }
#incident-page .idisc-option { display: block; width: 100%; padding: .45rem .55rem; border: 0; border-radius: .4rem; background: transparent; color: var(--hm-fg); font-size: .78rem; text-align: left; }
#incident-page .idisc-option:hover, #incident-page .idisc-option.is-active { background: var(--tat-blue-tint); color: var(--tat-blue-ink); }
#incident-page .idisc-tray { display: flex; flex-wrap: wrap; gap: .4rem; min-width: 0; margin-top: .5rem; }
#incident-page .idisc-tray:empty { display: none; }
#incident-page .idisc-chip { display: inline-flex; align-items: center; gap: .35rem; max-width: 100%; min-width: 0; padding: .25rem .35rem .25rem .5rem; border: 1px solid var(--tat-line-soft); border-radius: .55rem; background: var(--tat-mist); color: var(--tat-ink-2); font-size: .72rem; }
#incident-page .idisc-chip-image { flex: 0 0 auto; width: 2rem; height: 2rem; border-radius: .35rem; object-fit: cover; }
#incident-page .idisc-remove { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; width: 1.65rem; height: 1.65rem; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--tat-muted); }
#incident-page .idisc-remove:hover { background: var(--tat-red-tint); color: var(--tat-red-ink); }
#incident-page .idisc-linkbar { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; min-width: 0; margin-top: .55rem; }
#incident-page .idisc-linkbar .form-control { flex: 1 1 9rem; min-width: 0; }
#incident-page .idisc-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; min-width: 0; margin-top: .55rem; }
#incident-page .idisc-tool { border: 1px solid var(--tat-line-soft); border-radius: 99px; background: var(--tat-mist); color: var(--tat-ink-2); }
#incident-page .idisc-tool:hover { border-color: var(--hm-line2); background: var(--tat-blue-tint); color: var(--tat-blue-ink); }
#incident-page .idisc-count { color: var(--tat-muted); font-size: .68rem; font-variant-numeric: tabular-nums; }
#incident-page .idisc-error { margin-top: .5rem; color: var(--tat-red-ink); font-size: .74rem; overflow-wrap: anywhere; }
#incident-page .idisc-composer .ix-comment-privacy { overflow-wrap: anywhere; }

#incident-page .irep { display: flex; flex-direction: column; gap: .85rem; min-width: 0; }
#incident-page .irep-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr)); gap: .75rem; }
#incident-page .irep-tile, #incident-page .irep-card { min-width: 0; padding: 1rem; border: 1px solid var(--hm-line); border-radius: 12px; background: var(--hm-panel); }
#incident-page .irep-tile { display: flex; flex-direction: column; gap: .3rem; }
#incident-page .irep-tile-icon { display: inline-flex; align-items: center; justify-content: center; width: 1.8rem; height: 1.8rem; margin-bottom: .2rem; border-radius: 50%; background: var(--tat-blue-tint); color: var(--tat-blue-ink); }
#incident-page .irep-value { color: var(--hm-ink); font-size: 1.2rem; font-weight: 650; line-height: 1.25; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
#incident-page .irep-value.is-muted { color: var(--hm-fg2); font-size: .95rem; font-weight: 500; }
#incident-page .irep-caption { color: var(--hm-fg2); font-size: .7rem; line-height: 1.35; }
#incident-page .irep-deadline { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
#incident-page .irep-ring { flex: 0 0 auto; }
#incident-page .irep-ring-track { stroke: var(--tat-line-soft); }
#incident-page .irep-ring-value { fill: var(--hm-ink); font-size: .85rem; font-weight: 700; font-variant-numeric: tabular-nums; }
#incident-page .irep-deadline-body { flex: 1 1 12rem; min-width: 0; }
#incident-page .irep-deadline-heading { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-bottom: .45rem; }
#incident-page .irep-deadline-heading > strong { color: var(--hm-ink); font-size: .95rem; }
#incident-page .irep-state { padding: .16rem .5rem; border-radius: 99px; font-size: .66rem; font-weight: 650; }
#incident-page .irep-state.ok { background: var(--tat-green-tint); color: var(--tat-green); }
#incident-page .irep-state.warn { background: var(--tat-amber-tint); color: var(--tat-amber); }
#incident-page .irep-state.bad { background: var(--tat-red-tint); color: var(--tat-red-ink); }
#incident-page .irep-line { color: var(--hm-fg2); font-size: .76rem; line-height: 1.5; overflow-wrap: anywhere; }
#incident-page .irep-remaining { margin-top: .3rem; color: var(--hm-ink); font-size: .85rem; font-weight: 650; }
#incident-page .irep-card > .ix-overline { font-weight: 650; letter-spacing: .075em; text-transform: uppercase; }
#incident-page .irep-path .hm-tlv-i { align-items: flex-start; padding: .55rem 0; }
#incident-page .irep-path .hm-tlv-d { margin-top: .2rem; }
#incident-page .irep-step-body { display: flex; flex: 1 1 auto; flex-direction: column; gap: .15rem; min-width: 0; }
#incident-page .irep-step-body strong { color: var(--hm-ink); font-size: .8rem; overflow-wrap: anywhere; }
#incident-page .irep-step-body small { color: var(--hm-fg2); font-size: .7rem; font-weight: 400; overflow-wrap: anywhere; }
#incident-page .irep-reopened { margin-top: .5rem; color: var(--hm-fg2); font-size: .7rem; }
#incident-page .irep-people-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: .85rem 1rem; margin: 0; }
#incident-page .irep-fact { min-width: 0; }
#incident-page .irep-fact dt { margin-bottom: .25rem; color: var(--hm-fg2); font-size: .68rem; font-weight: 500; }
#incident-page .irep-fact dd { min-width: 0; margin: 0; color: var(--hm-ink); font-size: .78rem; overflow-wrap: anywhere; }
#incident-page .irep-person, #incident-page .irep-category { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .4rem; min-width: 0; }
#incident-page .irep-person .ix-avatar { width: 1.5rem; height: 1.5rem; }

#incident-page .iact-filters { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .65rem; }
#incident-page .iact-filters .hm-chip.is-on { border-color: var(--hm-accent); background: var(--hm-accent); color: var(--bs-white); }
#incident-page .iact-list { min-width: 0; margin: 0; padding: 0; list-style: none; }
#incident-page .iact-day { display: flex; align-items: center; gap: .6rem; padding: .65rem 0 .25rem; color: var(--tat-muted); font-size: .65rem; font-weight: 650; letter-spacing: .065em; text-transform: uppercase; }
#incident-page .iact-day::after { content: ""; flex: 1 1 auto; height: 1px; background: var(--tat-line-soft); }
#incident-page .iact-item { position: relative; display: flex; gap: .65rem; min-width: 0; padding: .55rem 0; }
#incident-page .iact-item::after { content: ""; position: absolute; left: .82rem; top: 2rem; bottom: -.35rem; width: 1px; background: var(--hm-line); }
#incident-page .iact-item.is-day-end::after, #incident-page .iact-item:last-child::after { display: none; }
#incident-page .iact-dot { position: relative; z-index: 1; display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--tat-blue-tint); color: var(--tat-blue-ink); font-size: .8rem; }
#incident-page .iact-item.tone-ok .iact-dot { background: var(--tat-green-tint); color: var(--tat-green); }
#incident-page .iact-item.tone-warn .iact-dot { background: var(--tat-amber-tint); color: var(--tat-amber); }
#incident-page .iact-item.tone-bad .iact-dot { background: var(--tat-red-tint); color: var(--tat-red-ink); }
#incident-page .iact-item.tone-neutral .iact-dot { background: var(--tat-mist); color: var(--tat-muted); }
#incident-page .iact-body { display: flex; flex: 1 1 auto; flex-direction: column; gap: .15rem; min-width: 0; }
#incident-page .iact-body > strong { color: var(--tat-ink); font-size: .78rem; overflow-wrap: anywhere; }
#incident-page .iact-detail { color: var(--tat-muted); font-size: .73rem; line-height: 1.45; overflow-wrap: anywhere; }
#incident-page .iact-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem; min-width: 0; color: var(--tat-muted); font-size: .68rem; }
#incident-page .iact-meta .ix-avatar { width: 1.25rem; height: 1.25rem; font-size: .48rem; }
#incident-page .iact-meta em { font-style: normal; }
#incident-page .iact-separator { color: var(--tat-line); }

#incident-page .ix-report-grid .hm-card { padding: 1.15rem; }
#incident-page .ix-report-grid .hm-head .hm-title { margin-right: auto; }
#incident-page .ix-performance-bar { display: flex; width: 100%; height: 8px; overflow: hidden; border-radius: 99px; background: var(--tat-line-soft); }
#incident-page .ix-performance-bar > span { display: block; height: 100%; }
#incident-page .ix-performance-bar > .within { background: var(--tat-green); }
#incident-page .ix-performance-bar > .close { background: var(--tat-amber); }
#incident-page .ix-performance-bar > .past { background: var(--tat-red-deep); }
#incident-page .ix-report-row { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem .8rem; padding: .65rem 0; border-bottom: 1px solid var(--tat-line-soft); }
#incident-page .ix-report-row:last-child { border-bottom: 0; }
#incident-page .ix-report-label { display: flex; flex: 1 1 10rem; flex-direction: column; min-width: 0; }
#incident-page .ix-report-label strong { color: var(--tat-ink); font-size: .8rem; font-weight: 600; overflow-wrap: anywhere; }
#incident-page .ix-report-label strong i { margin-right: .4rem; color: var(--tat-muted); }
#incident-page .ix-report-label span, #incident-page .ix-report-row small { color: var(--tat-muted); font-size: .7rem; }
#incident-page .ix-report-bar { flex: 1 1 7rem; height: 6px; overflow: hidden; border-radius: 99px; background: var(--tat-line-soft); }
#incident-page .ix-report-bar > span { display: block; height: 100%; border-radius: inherit; background: var(--viz-s1); }
#incident-page .ix-report-row small { flex: 0 0 auto; white-space: nowrap; }

#incident-report-modal .modal-content { border-color: var(--tat-line); border-radius: var(--hm-r); box-shadow: var(--tat-shadow-pop); }
#incident-report-modal .modal-header { padding: 1rem 1.25rem; border-bottom-color: var(--tat-line-soft); }
#incident-report-modal .modal-body { padding: 1rem 1.25rem 1.25rem; }
#incident-report-modal .form-label, #incident-report-modal legend.form-label { margin-bottom: .35rem; color: var(--tat-ink-2); font-size: .78rem; font-weight: 600; }
#incident-report-modal .form-control, #incident-report-modal .form-select { min-height: 40px; }
#incident-report-modal textarea.form-control { min-height: 6rem; }
#incident-report-modal .ix-preview { padding: .75rem .85rem; border: 1px solid var(--tat-line-soft); border-radius: var(--tat-radius-sm); background: var(--tat-white-2); color: var(--tat-muted); line-height: 1.5; }
#incident-report-modal .ix-preview:empty { display: none; }
#incident-report-modal .ix-preview strong { color: var(--tat-ink); }
#incident-report-modal .ix-record-results { max-height: 13rem; overflow-y: auto; }
#incident-report-modal .modal-footer { border-top-color: var(--tat-line-soft); }
.ix-confirmation { max-width: 42rem; }
.ix-confirmation .hm-ic { width: 3rem; height: 3rem; font-size: 1.5rem; }
.ix-confirmation .hm-btn { min-height: 36px; }

@media (prefers-reduced-motion: reduce) {
  #incident-page .ix-live i { animation: none; }
  #incident-page .card-stat, #incident-page .ix-row, #incident-page .hm-chip, #incident-page .hm-btn { transition: none; }
}

/* Dashboard, reference cards 1 to 5 (UI redesign Step 3) */
/* The Search box is wide enough for its whole hint, "Load, customer, carrier, city" (owner 2026-11-09: the hint was cut off at "carrier"). */
.hm-filter-search { min-width: 280px; }
.hm-filter-rule { width: 1px; height: 18px; background: var(--hm-line); }
.hm-stage-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }
.hm-margin-value { gap: 10px; }
.hm-margin-notes { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.hm-margin-notes a { color: inherit; }
/* The Margin card's top (owner, 2026-11-14: the card "have too much empty space" - the Pricing Desk / Quotes figures sit beside the Margin). Wraps by itself
   (flex-wrap, no width media query): Margin on the left, the Desk panel on the right, one under the other when the card is narrow. No bars: one ring and figures. */
.hm-margin-top { display: flex; flex-wrap: wrap; align-items: stretch; gap: 14px 20px; min-width: 0; }
.hm-margin-main { flex: 1 1 240px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.hm-desk { flex: 1 1 290px; display: flex; flex-direction: column; gap: 14px; min-width: 0; padding-left: 20px; border-left: 1px solid var(--hm-line); }
/* The two halves are built the same way (owner, 2026-11-14: "no proper alignment, the box should show equal information of both"): a hero of one height (the Margin
   figure here, the win-rate ring there), then three figures on one line (.hm-dstats: a bold number with its caption under it), pushed to the bottom of the card so
   both rows start on the same line. */
.hm-margin-hero, .hm-desk-gauge { min-height: 140px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; }
.hm-margin-hero .hm-sub { line-height: 1; }
.hm-desk-gauge { color: inherit; text-decoration: none; border-radius: 12px; }
.hm-desk-gauge:hover { color: inherit; text-decoration: none; }
.hm-desk-ring { display: block; }
/* The panel's own period chips (owner, 2026-11-15: "show filters to see quotes of month year 3 months 6 months this month custom date range"): a row of the Dashboard's chips above the
   ring, wrapping by itself (no width media query); the Custom range opens the shared popover (pdx-period.css) pinned to the right edge so it stays on the screen. */
.hm-desk-periods { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; }
.hm-desk-periods .hm-chip { padding: 3px 10px; font-size: 12px; }
.hm-desk-periods .hm-desk-cr > summary.hm-chip:not([aria-current="true"]) { color: var(--hm-fg); }
.hm-desk-cr .pdxd-cr-pop { left: auto; right: 0; transform: none; }
.hm-dstats.hm-margin-stats, .hm-dstats.hm-desk-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }       /* three across; after .hm-dstats (two across) in the file, so it needs the longer selector */
.hm-margin-stats > *, .hm-desk-stats > * { display: block; min-width: 0; color: inherit; text-decoration: none; }
.hm-margin-stats > a:hover, .hm-desk-stats > a:hover { color: inherit; text-decoration: none; }
.hm-margin-stats > a:hover span, .hm-desk-stats > a:hover span { color: var(--hm-ink); }
.hm-margin-stats small, .hm-desk-stats small { display: block; min-height: 18px; margin-top: 2px; font-size: 11px; color: var(--hm-fg2); }
.hm-margin-stats small .hm-bad, .hm-desk-stats small.hm-bad { color: var(--hm-bad); }
.hm-margin-stats .hm-tag, .hm-desk-stats .hm-tag, .hm-desk-gauge .hm-tag, .hm-margin-hero .hm-tag { font-size: 11px; padding: 1px 8px; }
.hm-margin-notes { margin-top: 2px; }
/* The lower row of the Margin card is two halves under the two above, on the same flex bases so the hairline runs straight through (owner, 2026-11-14: "what about this
   section?"): the Margin's donut and legend on the left, the Desk's quote outcomes on the right, both 100px donuts with a legend of two-line rows (name, then the figure and
   its share). No width media query: each half keeps its own size and the pair wraps by itself. */
.hm-margin-bottom { display: flex; flex-wrap: wrap; align-items: stretch; gap: 14px 20px; min-width: 0; padding-top: 16px; border-top: 1px solid var(--hm-line); }
.hm-margin-bottom > .hm-dbody { flex-wrap: nowrap; justify-content: center; gap: 12px; min-width: 0; }
.hm-margin-split { flex: 1 1 240px; }
.hm-desk-split { flex: 1 1 290px; padding-left: 20px; border-left: 1px solid var(--hm-line); }
.hm-dcap { flex: 0 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.hm-dcap > .hm-sub { padding-left: 6px; white-space: nowrap; line-height: 1.2; }
.hm-dcap .hm-dlist { flex: none; min-width: 0; gap: 2px; }
/* A legend row is the name on the first line, then the figure (bold) with its share at the right edge of the legend, so the shares line up in one column. */
.hm-dcap .hm-dlrow { display: grid; grid-template-columns: 9px minmax(min-content, 1fr) auto; column-gap: 8px; row-gap: 1px; align-items: baseline; padding: 5px 6px; line-height: 1.25; }
.hm-dcap .hm-dlrow .hm-sw { grid-row: 1 / span 2; margin: 0; align-self: start; position: relative; top: 4px; }
.hm-dcap .hm-dlrow .nm { grid-column: 2 / 4; font-size: 12.5px; color: var(--hm-fg2); }
.hm-dcap .hm-dlrow .vl { grid-column: 2; font-size: 14px; }
.hm-dcap .hm-dlrow .sh { grid-column: 3; width: auto; justify-self: end; text-align: right; }
.hm-ring-link { display: block; color: inherit; text-decoration: none; border-radius: 12px; }
.hm-ring-link:hover { color: inherit; text-decoration: none; }
.hm-24 { font-size: 24px; }
.hm-26 { font-size: 26px; }
.hm-dots-card { position: relative; }
.hm-dots-card [data-hm="dots-head"], .hm-dots-body, [data-hm="revenue"], [data-hm="bubbles"], [data-hm="carriers"] { display: flex; flex-direction: column; gap: 12px; }
.hm-dots-body { position: relative; flex: 1; }
.hm-ldots { display: flex; flex-wrap: wrap; gap: 5px; }
.hm-ld { width: 11px; height: 11px; border-radius: 50%; border: 0; padding: 0; cursor: pointer; flex: none; transition: transform .12s ease, box-shadow .12s ease; }
.hm-ld:hover, .hm-ld:focus-visible { transform: scale(1.55); box-shadow: 0 0 0 2px var(--hm-panel), 0 0 0 3.5px var(--hm-fg); outline: none; z-index: 2; position: relative; }
.hm-ld.ghost { width: 7px; height: 7px; background: transparent; border: 1.5px solid var(--hm-line2); cursor: default; display: inline-block; margin: 2px; }
.hm-lghost { display: flex; flex-direction: column; gap: 6px; padding-top: 4px; }
.hm-lghost .hm-ldots { gap: 3px; }
.hm-dleg b { font-weight: 600; color: var(--hm-ink); }
.hm-dstats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; border-top: 1px solid var(--hm-line); padding-top: 10px; margin-top: auto; }
.hm-dstats b { display: block; font-weight: 600; font-size: 15px; color: var(--hm-ink); font-variant-numeric: tabular-nums; }
.hm-dstats span { font-size: 11px; color: var(--hm-fg2); }
.hm-rev-value { flex: 1; min-width: 0; }
.hm-rev-months { display: flex; flex-direction: column; gap: 6px; }
.hm-rev-legend, .hm-rev-customer-head { justify-content: space-between; gap: 8px; }
.hm-rev-customer-head { padding: 0 8px 4px; }
.hm-dlrow[href] { color: var(--hm-fg); text-decoration: none; }
.hm-dlrow[href]:hover { color: var(--hm-fg); text-decoration: none; }
.hm-dnut a:focus-visible, .hm-ring-link:focus-visible, .hm-dlrow[href]:focus-visible, .hm-taskline:focus-visible, .hm-bleg a:focus-visible { outline: 2px solid var(--hm-ink); outline-offset: 2px; border-radius: 8px; }
.hm-nest { position: relative; height: 230px; }
.hm-bubble { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); border-radius: 50%; cursor: pointer; outline: 2px solid transparent; outline-offset: 2px; color: inherit; text-decoration: none; }
.hm-bubble:hover { text-decoration: none; }
.hm-bubble b { position: absolute; top: 10px; left: 0; right: 0; text-align: center; font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums; }
.hm-bubble.small b { top: 8px; }
.hm-bubble.on { outline-color: var(--hm-fg); }
.hm-bubble.dim { opacity: .4; }
.hm-bubble:focus-visible { outline-color: var(--hm-ink); }
.hm-bleg { display: flex; flex-direction: column; gap: 2px; }
.hm-bleg > a, .hm-bleg > div { display: flex; align-items: center; gap: 8px; border: 0; border-radius: 8px; padding: 4px 6px; color: var(--hm-fg); text-align: left; font-size: 12px; text-decoration: none; }
.hm-bleg > a:hover, .hm-bleg > a.on { background: var(--hm-soft); color: var(--hm-fg); text-decoration: none; }
.hm-bleg i { width: 9px; height: 9px; border-radius: 3px; flex: none; }
.hm-bleg span.v { margin-left: auto; font-variant-numeric: tabular-nums; }
.hm-attention { background: var(--hm-bg); }
.hm-mini3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
html[data-orientation="portrait"] .hm-mini3, html[data-w620="1"] .hm-mini3, html[data-orientation="phone"] .hm-mini3 { grid-template-columns: minmax(0, 1fr); }
.hm-mini { background: var(--hm-panel); border: 1px solid var(--hm-line); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.hm-abars { display: flex; align-items: flex-end; gap: 10px; height: 80px; }
.hm-abars > a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 3px; font-size: 11px; color: var(--hm-fg2); height: 100%; min-width: 0; text-decoration: none; }
.hm-abars > a:hover { color: var(--hm-fg); text-decoration: none; }
.hm-abars b { display: block; width: 100%; max-width: 34px; border-radius: 6px; }
.hm-abars .num { font-variant-numeric: tabular-nums; }
.hm-not-due { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--hm-fg2); }
.hm-hatch { width: 14px; height: 14px; border: 1px solid var(--hm-muted); border-radius: 3px; flex: none; background: repeating-linear-gradient(45deg, var(--hm-fgm) 0, var(--hm-fgm) 1px, transparent 1px, transparent 4px); }
.hm-attention-title { justify-content: space-between; font-size: 13px; font-weight: 500; }
.hm-taskline { display: flex; align-items: center; gap: 12px; width: 100%; padding: 6px; border-radius: 10px; color: var(--hm-fg); text-align: left; text-decoration: none; }
.hm-taskline:hover { background: var(--hm-soft); color: var(--hm-fg); text-decoration: none; }
.hm-taskline > span:nth-child(2) { flex: 1; min-width: 0; }
.hm-taskline b { display: block; font-size: 13px; font-weight: 500; }
.hm-taskline small { display: block; font-size: 12px; color: var(--hm-fg2); }
.hm-taskline > i { color: var(--hm-fgm); }
.hm-attnn { font-size: 22px; min-width: 38px; font-weight: 500; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.hm-ready-title { font-size: 14px; font-weight: 500; margin-top: 4px; }
.hm-ready-copy { line-height: 1.5; }
.hm-review { align-self: flex-start; margin-top: auto; }
.hm-cfilter { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 8px 12px; border-radius: 12px; background: color-mix(in srgb, var(--hm-accent) 10%, var(--hm-panel)); border: 1px solid color-mix(in srgb, var(--hm-accent) 30%, var(--hm-line)); font-size: 13px; }
.hm-cfilter b { font-weight: 600; }
.hm-grid > #hmTrend .hm-mstats { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: auto; }
.hm-grid > #hmTrend .hm-mst span, .hm-grid > #hmLanes .hm-mst span { white-space: normal; overflow: visible; text-overflow: clip; }
.hm-grid > #hmTrend .hm-tchart svg { overflow: visible; }
.hm-grid > #hmLanes .hm-head { flex-wrap: wrap; }
.hm-grid > #hmLanes .hm-seg { flex-wrap: wrap; }
.hm-grid > #hmLanes .hm-heat { gap: 3px; }
.hm-grid > #hmLanes .hm-lboard { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
@media (prefers-reduced-motion: reduce) { .hm-ld { transition: none; } }
[data-hm="dots-head"] > .hm-head, [data-hm="carriers"] > .hm-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.hm-dots-body .hm-seg { align-self: flex-start; }

/* Loads page, reference layout (UI redesign Step 3) */
#loadsFilterForm { background: var(--hm-panel); border: 1px solid var(--hm-line); border-radius: var(--hm-r); box-shadow: var(--tat-shadow-sm); }
#loadsFilterForm .filter-bar { gap: 12px; }
#loadsFilterForm .form-label { margin-bottom: 5px; color: var(--hm-fg2); font-size: 11px; font-weight: 600; }
#loadsFilterForm .form-control, #loadsFilterForm .form-select { min-height: 36px; border-color: var(--hm-line2); border-radius: 10px; background-color: var(--hm-panel); color: var(--hm-ink); font-size: 13px; }
#loadsFilterForm .btn { border-radius: 99px; padding-inline: 14px; }
#loadsFilterForm .form-check-label { color: var(--hm-fg); font-size: 13px; }
#loadsFilterForm :is(input, select, a, button):focus-visible { outline: 2px solid var(--hm-ink); outline-offset: 2px; }
.lx-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 14px; }
.lx-toolbar .view-tabs { flex: 0 1 auto; min-width: 0; gap: 2px; padding: 2px; border: 1px solid var(--hm-line); border-radius: 99px; background: var(--hm-bg); }
.lx-toolbar .view-tab { gap: 6px; padding: 5px 10px; color: var(--hm-fg2); font-size: 12px; font-weight: 500; }
.lx-toolbar .view-tab:hover { color: var(--hm-ink); background: var(--hm-soft); }
.lx-toolbar .view-tab.is-on { color: var(--bs-white); background: var(--tat-navy); }
.lx-toolbar .view-count, .lx-toolbar .hm-ratelink .view-count { min-width: 0; padding: 0 7px; background: color-mix(in srgb, currentColor 16%, transparent); color: inherit; font-size: 11px; line-height: 1.55; }
.lx-toolbar .hm-ratelink { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 99px; color: var(--hm-bad); font-size: 12px; font-weight: 500; white-space: nowrap; text-decoration: none; }
.lx-toolbar :is(a, button, input, select):focus-visible { outline: 2px solid var(--hm-ink); outline-offset: 2px; }
.lx-mnav { display: inline-flex; flex: none; align-items: center; gap: 7px; }
.lx-circ { width: 34px; height: 34px; flex: none; display: inline-flex; align-items: center; justify-content: center; padding: 0; border: 1px solid var(--hm-line); border-radius: 50%; background: var(--hm-panel); color: var(--hm-fg2); font-size: 16px; text-decoration: none; }
.lx-circ:hover { border-color: var(--hm-line2); background: var(--hm-soft); color: var(--hm-ink); }
.lx-circ[aria-disabled="true"] { opacity: .4; pointer-events: none; }
.lx-mselect { width: auto; min-width: 160px; height: 34px; padding: 0 32px 0 14px; border-color: var(--hm-line); border-radius: 99px; background-color: var(--hm-panel); color: var(--hm-fg); font-size: 13px; font-weight: 500; }
.lx-toolbar [data-layout-toggle] { flex: none; }
.lx-toolbar [data-layout-toggle] button { gap: 6px; min-height: 28px; }
.lx-search { flex: 1 1 260px; min-width: 260px; max-width: 340px; min-height: 36px; margin-left: auto; border-color: var(--hm-line); border-radius: 99px; background-color: var(--hm-panel); color: var(--hm-ink); font-size: 13px; }
html[data-w760="1"] .lx-search, html[data-orientation="phone"] .lx-search { flex: 1 0 100%; max-width: none; margin-left: 0; }
.lx-grid { display: block; }
.lx-list { min-width: 0; }
.lx-list > .card { overflow: hidden; border: 1px solid var(--hm-line); border-radius: var(--hm-r); background: var(--hm-panel); box-shadow: var(--tat-shadow-sm); }
.lx-count { padding: 12px 16px; border-bottom: 1px solid var(--hm-line); }
.lx-list .loads-table > thead > tr > th { padding: 10px 12px; border: 0; background: var(--hm-bg); color: var(--hm-fg2); font-size: 12px; font-weight: 500; }
.lx-list .loads-table > thead > tr > th > a { color: var(--hm-fg2); }
.lx-list .loads-table > tbody > tr > td { padding: 10px 12px; border-bottom: 1px solid var(--hm-line); background: var(--hm-panel); }
.lx-list .loads-table > tbody > tr:last-child > td { border-bottom: 0; }
.lx-list .loads-table > tbody > tr.is-peeked > td { background: color-mix(in srgb, var(--hm-accent) 9%, var(--hm-panel)); }
.lx-list .loads-table > tbody > tr[data-load-id]:focus-visible { outline: 2px solid var(--hm-ink); outline-offset: -2px; }
.lx-list .card-footer { border-top: 1px solid var(--hm-line); background: var(--hm-panel); }
.lx-board { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); align-items: start; gap: 12px; padding: 12px; }
.lx-bcol { display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 10px; border: 1px solid var(--hm-line); border-radius: 16px; background: var(--hm-bg); }
.lx-bhead { display: flex; align-items: center; gap: 7px; min-width: 0; }
.lx-bname { color: var(--hm-ink); font-size: 13px; font-weight: 600; }
.lx-bhead .cnt2 { padding: 1px 7px; border-radius: 99px; background: var(--hm-soft); color: var(--hm-fg2); font-size: 11px; line-height: 1.55; }
.lx-btotal { margin-left: auto; color: var(--hm-fg2); font-size: 11px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.lx-btotal.neg { color: var(--hm-bad); }
.lx-card { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 10px 12px; border: 1px solid var(--hm-line); border-radius: 14px; background: var(--hm-panel); box-shadow: var(--tat-shadow-sm); cursor: pointer; }
.lx-card:hover { border-color: var(--hm-line2); }
.lx-card:focus-visible { outline: 2px solid var(--hm-ink); outline-offset: 2px; }
.lx-card.is-peeked { border-color: var(--hm-accent); outline: 2px solid color-mix(in srgb, var(--hm-accent) 25%, transparent); outline-offset: 0; }
.lx-crow { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; min-width: 0; }
.lx-cnum { color: var(--hm-ink); font-weight: 600; text-decoration: none; }
.lx-cpick { flex: none; color: var(--hm-fg2); font-size: 11px; }
.lx-ccust { color: var(--hm-fg); font-size: 13px; font-weight: 500; overflow-wrap: anywhere; }
.lx-clane, .lx-ccar { color: var(--hm-fg2); font-size: 12px; overflow-wrap: anywhere; }
.lx-cmargin { flex: none; color: var(--hm-ink); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.lx-cmargin.tbd { color: var(--hm-fg2); font-weight: 400; }
.lx-cmargin.neg, .lx-btotal.neg { color: var(--hm-bad); }
.lx-empty { min-height: 180px; }
html[data-orientation="landscape"][data-w1100="0"] .lx-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; align-items: start; gap: 16px; }
html[data-orientation="landscape"][data-w1100="0"] .lx-grid .col-opt-lg { display: none; }
html[data-orientation="landscape"][data-w1100="0"] .lx-grid .lx-panel { position: sticky; top: 14px; right: auto; z-index: auto; width: 100%; max-width: none; height: auto; max-height: calc(var(--vh-px, 100vh) - 28px); overflow: auto; transform: none; border: 1px solid var(--hm-line); border-radius: var(--hm-r); background: var(--hm-panel); box-shadow: var(--tat-shadow-sm); }
html[data-orientation="landscape"][data-w1100="0"] .lx-grid .lx-panel .peek-head { background: var(--hm-panel); }
html[data-orientation="landscape"][data-w1100="0"] .lx-grid .lx-panel:not(.has-load) .peek-head, html[data-orientation="landscape"][data-w1100="0"] .lx-grid .lx-panel [data-peek-close] { display: none; }
html[data-orientation="landscape"][data-w1100="0"] .peek-scrim { display: none !important; }

/* Customers and Carriers, reference layout (UI redesign Step 3) */
.hm-cu-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 14px; align-items: start; margin-bottom: 16px; }
html[data-orientation="portrait"] .hm-cu-grid, html[data-orientation="phone"] .hm-cu-grid, html[data-w1100="1"] .hm-cu-grid { grid-template-columns: minmax(0, 1fr); }
.hm-stackcol { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.hm-scroll { overflow: auto; max-height: 520px; border: 1px solid var(--hm-line); border-radius: 14px; }
.hm-atable { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 12px; font-variant-numeric: tabular-nums; }
.hm-atable th { position: sticky; top: 0; z-index: 1; background: var(--hm-panel); color: var(--hm-fg2); padding: 8px 9px; border-bottom: 1px solid var(--hm-line); font-weight: 500; text-align: left; white-space: nowrap; }
.hm-atable td { padding: 7px 9px; border-bottom: 1px solid var(--hm-line); white-space: nowrap; cursor: default; }
.hm-atable .r { text-align: right; }
.hm-atable tbody tr:last-child td { border-bottom: 0; }
.hm-atable tbody tr:hover { background: var(--hm-soft); }
.hm-atable .bad { color: var(--hm-bad); }
.hm-atable td.hm-db { background-image: linear-gradient(90deg, color-mix(in srgb, var(--hm-accent) 55%, transparent) var(--bar), transparent var(--bar)); background-repeat: no-repeat; background-size: 100% 3px; background-position: 0 calc(100% - 3px); }
.hm-table-search { width: 220px; max-width: 100%; flex: none; border-radius: 99px; font-size: 12px; }
.hm-aname { font-weight: 500; }
.hm-spark { display: block; }
.hm-cu-grid [data-show-all] { align-self: flex-start; }
.hm-quiet { list-style: none; margin: 0; padding: 0; }
.hm-quiet-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--hm-line); font-size: 13px; }
.hm-quiet-row:last-child { border-bottom: 0; }
.hm-quiet-main { flex: 1; min-width: 0; }
.hm-quiet-main .hm-aname { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hm-quiet-row > b { font-weight: 500; white-space: nowrap; }
html[data-w760="1"] .hm-hide-small, html[data-orientation="phone"] .hm-hide-small { display: none; }
.hm-cu-grid [data-card="carrier-share"] .hm-dbody { flex-direction: column; align-items: stretch; }
.hm-cu-grid [data-card="carrier-share"] .hm-dnut { align-self: center; }

/* Receivables and Payables, reference layout (UI redesign Step 3) */
.hm-ar { gap: 14px; }
.hm-ar-tiles { gap: 14px; }
.rp-g3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: stretch; min-width: 0; }
.rp-span2 { grid-column: span 2; }
.rp-cu { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 14px; align-items: start; min-width: 0; }
html[data-orientation="portrait"] .rp-g3, html[data-w1100="1"] .rp-g3, html[data-orientation="phone"] .rp-g3,
html[data-orientation="portrait"] .rp-cu, html[data-w1100="1"] .rp-cu, html[data-orientation="phone"] .rp-cu { grid-template-columns: minmax(0, 1fr); }
html[data-orientation="portrait"] .rp-span2, html[data-w1100="1"] .rp-span2, html[data-orientation="phone"] .rp-span2 { grid-column: auto; }
.rp-center { align-items: center; justify-content: center; text-align: center; }
.rp-center > .hm-sub { overflow-wrap: anywhere; }
.rp-ring { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.rp-ring svg { display: block; }
.rp-ring .hm-sub { overflow-wrap: anywhere; }
.hm-ar-lab { font-size: 12px; }
.rp-n { font-size: 11px; color: var(--hm-fgm); }
.rp-split-stats { display: flex; flex-wrap: wrap; gap: 22px; }
.rp-split-stats .hm-sub { display: flex; align-items: center; }
.rp-big { font-size: 26px; font-weight: 600; color: var(--hm-ink); font-variant-numeric: tabular-nums; }
.rp-scroll { max-height: 720px; overflow: auto; border: 1px solid var(--hm-line); border-radius: 14px; }
.rp-scroll table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 12px; font-variant-numeric: tabular-nums; }
.rp-scroll th { position: sticky; top: 0; z-index: 1; padding: 8px 9px; border-bottom: 1px solid var(--hm-line); background: var(--hm-panel); color: var(--hm-fg2); font-weight: 500; text-align: left; white-space: nowrap; }
.rp-scroll td { padding: 7px 9px; border-bottom: 1px solid var(--hm-line); color: var(--hm-fg); }
.rp-scroll tbody tr:last-child td { border-bottom: 0; }
.rp-scroll tbody tr:hover { background: var(--hm-soft); }
.rp-scroll .r { text-align: right; }
.rp-party { font-weight: 500; }
.rp-party .hm-sw { vertical-align: middle; }
.rp-empty { color: var(--hm-fg2) !important; text-align: center; }
.rp-dbody { flex-direction: column; align-items: stretch; }
.rp-dbody > .hm-dnut { align-self: center; }
.rp-total { display: flex; justify-content: space-between; gap: 10px; }
.rp-total b { color: var(--hm-ink); font-variant-numeric: tabular-nums; }

/* Intelligence page, reference layout (UI redesign Step 3) */
.ix-g3.cr-ov { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; padding: 0; overflow: visible; background: none; border: 0; box-shadow: none; }
.ix-g3 > *, .ix-grid-2 > *, .ix-grid-1-2 > *, .ix-kcs > *, .ix-ftiles > *, .ix-buckets > *, .ix-scen-summary > *, .ix-scen-deltas > * { min-width: 0; }
html[data-orientation="portrait"] .ix-g3.cr-ov, html[data-orientation="phone"] .ix-g3.cr-ov, html[data-w1100="1"] .ix-g3.cr-ov { grid-template-columns: minmax(0, 1fr); }
html[data-orientation="phone"] .ix-grid-2, html[data-w1100="1"] .ix-grid-2,
html[data-orientation="phone"] .ix-grid-2-1, html[data-w1100="1"] .ix-grid-2-1,
html[data-orientation="phone"] .ix-grid-1-2, html[data-w1100="1"] .ix-grid-1-2 { grid-template-columns: minmax(0, 1fr); }
#ixRoot .hm-card > .hm-head { flex-wrap: wrap; }
#ixRoot .hm-card .table-responsive { margin: 0 -18px -18px; width: calc(100% + 36px); border-radius: 0 0 18px 18px; }
.ix-hbody { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; }
.ix-hbody .cr-ring { --size: 130px; --w: 13px; }
.ix-hbody .cr-ring-c strong { font-size: 34px; font-weight: 500; }
.ix-hbody .cr-ring-c span { font-size: 10px; color: var(--hm-fg2); letter-spacing: .08em; }
.ix-hbody .cr-figs { flex: 1; min-width: 200px; }
#ixRoot .cr-figs, #ixRoot .ix-worth { display: flex; flex-direction: column; gap: 0; min-width: 0; }
#ixRoot .cr-fig { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--hm-line); font-size: 13px; color: var(--hm-fg2); white-space: nowrap; }
#ixRoot .cr-fig b { color: var(--hm-ink); font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
#ixRoot .cr-fig.is-big b { font-size: inherit; }
#ixRoot .cr-fig:last-child, #ixRoot .cr-fig:has(+ .cr-fig-note) { border-bottom: 0; }
#ixRoot .cr-fig-note { margin: 0; padding: 0 0 7px; border-bottom: 1px solid var(--hm-line); color: var(--hm-fg2); font-size: 12px; text-align: left; }
#ixRoot .cr-fig-note:last-child { padding-bottom: 0; border-bottom: 0; }
#ixRoot .ix-comps { display: grid; gap: 7px; margin-top: 0; }
#ixRoot .ix-comp { grid-template-columns: minmax(120px, 1fr) 1.4fr 30px; gap: 10px; align-items: center; padding: 0; color: var(--hm-fg2); font-size: 12px; }
#ixRoot .ix-comp .cr-bar { height: 8px; }
#ixRoot .ix-comp b { font-weight: 500; }
#ixRoot .ix-spark { position: relative; height: 150px; margin-top: auto; }
#ixRoot [data-card="needs"] .cr-stack { height: 10px; gap: 2px; margin: 0; }
#ixRoot [data-card="needs"] .cr-legend { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 18px; font-size: 13px; }
#ixRoot .cr-leg { display: flex; align-items: center; min-width: 0; color: var(--hm-fg2); }
#ixRoot .cr-leg .hm-sw { background: var(--cr); }
#ixRoot .cr-leg b { margin-left: auto; color: var(--hm-ink); font-weight: 500; font-variant-numeric: tabular-nums; }
#ixRoot .ix-worth { margin-top: 0; padding-top: 12px; border-top: 1px solid var(--hm-line); }
#ixRoot .ix-worth > .hm-mlab { margin-bottom: 5px; }
.ix-kcs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 14px; margin: 14px 0; }
.ix-kcs .hm-tile-n.sm { font-size: 20px; line-height: 1.25; }
.ix-tabrow { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin: 14px 0; }
#ixRoot .ix-seg { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 2px; border: 1px solid var(--hm-line); border-radius: 16px; background: var(--hm-bg); }
#ixRoot .ix-seg .cr-pill { display: inline-flex; align-items: center; gap: 7px; padding: 6px 13px; border: 0; border-radius: 99px; background: transparent; color: var(--hm-fg2); font-size: 12px; font-weight: 400; text-decoration: none; white-space: nowrap; }
#ixRoot .ix-seg .cr-pill:hover { background: transparent; color: var(--hm-fg); }
#ixRoot .ix-seg .cr-pill.is-on { background: var(--tat-navy); color: #fff; font-weight: 500; }
html[data-bs-theme="dark"] #ixRoot .ix-seg .cr-pill.is-on { background: #e9ecf5; color: #1e2030; }
#ixRoot .cr-pill .n, #ixRoot .cnt2 { display: inline-block; padding: 0 7px; border-radius: 99px; background: color-mix(in srgb, currentColor 16%, transparent); color: inherit; font-size: 11px; font-weight: 500; line-height: 1.55; font-variant-numeric: tabular-nums; }
#ixRoot .cnt2 { color: var(--hm-fg2); }
#ixRoot .hm-chip[aria-pressed="true"] .cnt2 { color: inherit; }
.ix-search { display: flex; align-items: center; gap: 8px; width: 230px; color: var(--hm-fg2); }
.ix-search .form-control { width: 100%; min-width: 0; height: auto; padding: 6px 12px; border-radius: 99px; background: var(--hm-panel); color: var(--hm-fg); font-size: 12px; }
.ix-chips { display: flex; gap: 7px; flex-wrap: wrap; }
#ixRoot .ix-attlist .ix-row { display: block; margin: 0; border: 0; }
#ixRoot .ix-attlist .ix-row-h { padding: 12px 6px; border-bottom: 1px solid var(--hm-line); border-radius: 12px; }
#ixRoot .ix-attlist .ix-row-h:hover { background: var(--hm-soft); }
#ixRoot .ix-attlist .ix-t b { font-size: 14px; font-weight: 500; }
#ixRoot .ix-attlist .ix-t small { color: var(--hm-fg2); font-size: 12px; }
#ixRoot .ix-attlist .ix-amt { font-weight: 500; font-variant-numeric: tabular-nums; }
#ixRoot .ix-attlist .ix-row-d { margin: 0 6px 12px 58px; padding: 10px 14px; border: 1px solid var(--hm-line); border-radius: 12px; background: var(--hm-bg); color: var(--hm-fg); font-size: 13px; }
#ixRoot .ix-attlist .ix-row.is-open .ix-row-d { display: block; }
.ix-sevhide { display: none; }
.ix-legend { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; color: var(--hm-fg2); font-size: 12px; }
.ix-legend > span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.ix-line-sw, .ix-band-sw, .ix-dash-sw, .ix-dot-sw { display: inline-block; width: 20px; height: 8px; flex: none; }
.ix-line-sw { height: 2px; background: var(--viz-s1); }
.ix-band-sw { border-radius: 3px; background: color-mix(in srgb, var(--viz-s1) 20%, transparent); }
.ix-dash-sw { height: 0; border-top: 2px dashed var(--hm-bad); }
.ix-dot-sw { width: 9px; height: 9px; border-radius: 50%; background: var(--viz-s1); }
.ix-buckets { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: 12px; }
.ix-bucket { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 12px 14px; border: 1px solid var(--hm-line); border-left: 3px solid var(--kc, var(--viz-s1)); border-radius: 14px; background: var(--hm-bg); }
.ix-bucket .hm-big { font-size: 24px; font-variant-numeric: tabular-nums; }
#ixRoot .ix-chart.ix-cash-chart { height: 270px; }
#ixRoot .ix-chart.ix-runway-chart { height: 250px; }
#ixRoot .ix-note { padding: 10px 16px; border: 1px solid color-mix(in srgb, var(--hm-warn) 35%, var(--hm-line)); border-radius: 14px; background: color-mix(in srgb, var(--hm-warn) 14%, var(--hm-panel)); color: var(--hm-fg); font-size: 13px; }
#ixRoot .ix-assume { display: grid; grid-template-columns: minmax(190px, auto) minmax(0, 1fr); gap: 0 16px; color: var(--hm-fg2); font-size: 13px; }
#ixRoot .ix-assume dt, #ixRoot .ix-assume dd { padding: 8px 0; border-bottom: 1px solid var(--hm-line); }
#ixRoot .ix-assume dt { min-width: 190px; color: var(--hm-ink); font-weight: 500; }
#ixRoot .ix-assume dd { margin: 0; color: var(--hm-fg2); }
#ixRoot .ix-assume dt:last-of-type, #ixRoot .ix-assume dd:last-child { border-bottom: 0; }
#ixRoot .ix-st.moderate, #ixRoot .ix-st.warn { color: var(--hm-warn); }
#ixRoot .ix-st.high { color: var(--hm-bad); }
#ixRoot .ix-st.low { color: var(--hm-ok); }
#ixRoot .ix-share-stack { height: 14px; margin: 0; }
#ixRoot .ix-share-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; }
#ixRoot .ix-share-legend .cr-leg { flex: 1 1 180px; }
#ixRoot .ix-table { color: var(--hm-fg); font-size: 13px; }
#ixRoot .ix-table thead, #ixRoot .ix-table .table-light { background: transparent; }
#ixRoot .ix-table th { color: var(--hm-fg2); font-size: 11px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
#ixRoot .ix-table > :not(caption) > * > * { padding: 10px 12px; border-bottom: 1px solid var(--hm-line); }
#ixRoot .ix-table tbody tr:last-child > * { border-bottom: 0; }
#ixRoot .ix-table td { font-variant-numeric: tabular-nums; }
.ix-custname { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ix-custname > b { font-weight: 500; color: var(--hm-ink); }
.ix-revenue { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; min-width: 90px; }
.ix-revtrack { display: block; width: 100%; height: 4px; }
.ix-revbar { display: block; height: 4px; margin-left: auto; border-radius: 99px; background: var(--viz-s1); }
.ix-empty { flex-direction: column; gap: 8px; padding: 28px 16px; }
.ix-empty .hm-title { text-align: center; }
.ix-empty > span:last-child { color: var(--hm-fg2); font-size: 13px; }
.ix-unavail { color: var(--hm-fg2); font-size: 13px; }
.ix-ftiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 14px; margin: 14px 0; }
.ix-ranges { display: grid; gap: 18px; }
.ix-range-row { display: grid; gap: 8px; min-width: 0; }
.ix-range-head, .ix-range-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.ix-range-head > b { color: var(--hm-ink); font-weight: 500; }
.ix-range-foot { color: var(--hm-fg); font-size: 13px; font-variant-numeric: tabular-nums; }
.ix-range-track { position: relative; height: 12px; border-radius: 99px; background: var(--hm-soft); }
.ix-range-band { position: absolute; top: 0; bottom: 0; border-radius: 99px; background: color-mix(in srgb, var(--viz-s1) 25%, transparent); }
.ix-range-dot { position: absolute; top: 50%; width: 18px; height: 18px; border: 3px solid var(--hm-panel); border-radius: 50%; background: var(--viz-s1); transform: translate(-50%, -50%); }
#ixRoot .ix-form { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
#ixRoot .ix-form > div { flex: 1 1 170px; min-width: 0; }
#ixRoot .ix-form .form-control, #ixRoot .ix-form .form-select { width: 100%; height: 40px; padding: 7px 12px; border: 1px solid var(--hm-line); border-radius: 12px; background-color: var(--hm-bg); color: var(--hm-fg); font-size: 13px; }
#ixRoot .ix-form .form-select { padding-right: 2rem; }
.ix-hint { display: block; margin-top: 5px; color: var(--hm-fg2); font-size: 12px; font-weight: 400; }
#ixRoot .ix-calculate { display: flex; align-items: flex-end; padding-bottom: 20px; }
#ixRoot .ix-calculate .hm-btn { justify-content: center; width: 100%; min-height: 40px; }
#ixScenarioOut.ix-pts { display: block; }
.ix-scen-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: 12px; }
#ixRoot .ix-scen-deltas { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 12px; margin-top: 12px; }
.ix-scen-profit { font-size: 26px; }
.ix-scen-summary .hm-tag { align-self: flex-start; }
#ixRoot .ix-rules .ix-line { gap: 12px; padding: 10px 6px; }
#ixRoot .ix-rules .ix-t b { font-weight: 500; }
.ix-rule-track { display: block; width: 140px; height: 8px; flex: none; overflow: hidden; border-radius: 99px; background: var(--hm-soft); }
.ix-rule-track > i { display: block; height: 100%; border-radius: 99px; background: var(--cr); }
html[data-w760="1"] .ix-rule-track { display: none; }
#ixRoot .ix-rules .ix-amt { min-width: 70px; font-weight: 500; }
[data-card="rules"] details > summary { display: inline-flex; width: auto; list-style: none; }
[data-card="rules"] details > summary::-webkit-details-marker { display: none; }
#ixRoot .ix-row-h:focus-visible, #ixRoot .ix-form .form-control:focus-visible, #ixRoot .ix-form .form-select:focus-visible,
#ixRoot .ix-search .form-control:focus-visible, [data-card="rules"] summary:focus-visible { outline: 2px solid var(--hm-ink); outline-offset: 2px; }

/* Intelligence, after review: the search icon keeps its room; the old navy "list card" rail is not part of the reference cards */
#ixRoot .ix-search .form-control { padding-left: 2.3rem; }
#ixRoot .card.hm-card { border-left: var(--bs-card-border-width) solid var(--bs-card-border-color) !important; }

/* Settings and profile menu, reference layout (UI redesign Step 3) */
.pref-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
html[data-shell-small="1"] .pref-grid, html[data-orientation="phone"] .pref-grid { grid-template-columns: minmax(0, 1fr); }
.pref-card[data-pref-card] { margin: 0; }
.pref-head { display: flex; align-items: center; gap: 12px; min-width: 0; }
.pref-head > div { min-width: 0; }
.pref-head .hm-title { line-height: 1.3; }
.pref-head .hm-sub { margin-top: 2px; }
.pref-icon, .hm-mico { width: 32px; height: 32px; border-radius: 10px; flex: none; display: grid; place-items: center; font-size: 17px; color: var(--hm-accent);
  background: color-mix(in srgb, var(--hm-accent) 12%, var(--hm-panel)); }
.pref-tiles { display: grid; gap: 10px; }
.pref-tiles-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pref-tiles-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pref-tile { position: relative; display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 8px; border: 1.5px solid var(--hm-line); border-radius: 14px;
  background: var(--hm-bg); color: var(--hm-fg); font-size: 13px; cursor: pointer; }
.pref-tile > input { position: absolute; opacity: 0; pointer-events: none; }
.pref-tile:hover { border-color: var(--hm-line2); }
.pref-tile:has(> input:checked) { border-color: var(--hm-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--hm-accent) 18%, transparent); }
.pref-tile:has(> input:focus-visible) { outline: 2px solid var(--hm-ink); outline-offset: 2px; }
.pref-tile-name { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 13px; text-align: center; }
.pref-rows { display: flex; flex-direction: column; }
.pref-row { display: flex; align-items: center; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--hm-line); color: var(--hm-fg); font-size: 13px; }
.pref-row:last-child { border-bottom: 0; }
label.pref-row { cursor: pointer; }
.pref-row-text { flex: 1 1 auto; min-width: 0; }
.pref-row-text b { display: block; color: var(--hm-ink); font-size: 13px; font-weight: 500; }
.pref-row-text small { display: block; margin-top: 2px; color: var(--hm-fg2); font-size: 12px; line-height: 1.4; }
.pref-switch { position: relative; flex: none; appearance: none; -webkit-appearance: none; width: 38px; height: 22px; margin: 0; border: 0; border-radius: 99px;
  background: var(--hm-line2); cursor: pointer; transition: background-color .15s; }
.pref-switch::before { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--tat-white);
  transition: transform .15s; }
html[data-bs-theme="dark"] .pref-switch::before { background: var(--tat-ink); }
.pref-switch:checked { background: var(--hm-accent); }
.pref-switch:checked::before { transform: translateX(16px); }
.pref-switch:focus-visible { outline: 2px solid var(--hm-ink); outline-offset: 2px; }
.pref-card .hm-seg { align-self: flex-start; max-width: 100%; flex-wrap: wrap; }
.pref-facts .pref-row > span:last-child { margin-left: auto; color: var(--hm-fg2); text-align: right; }
.pref-reset-wrap { display: flex; justify-content: flex-end; }
.pref-reset { display: inline-flex; align-items: center; gap: 6px; padding: 7px 16px; border: 0; border-radius: 99px; background: var(--hm-soft); color: var(--hm-fg2);
  font-size: 13px; font-weight: 500; cursor: pointer; }
.pref-reset:hover { background: var(--hm-line); }
.pref-reset:focus-visible, .pref-card .form-select:focus-visible, .pref-card .form-range:focus-visible { outline: 2px solid var(--hm-ink); outline-offset: 2px; }
.pref-field .form-label { color: var(--hm-fg); font-size: 13px; }

.hm-menu.hm-menu-me { width: min(340px, calc(100vw - 24px)); padding: 0; }
.hm-menu-head { display: flex; align-items: center; gap: 14px; padding: 18px 18px 16px; color: white;
  background: radial-gradient(circle at 100% 0, color-mix(in srgb, var(--tat-red) 24%, transparent), transparent 55%),
    linear-gradient(135deg, var(--tat-navy), color-mix(in srgb, var(--tat-navy) 78%, black)); }
.hm-menu-av { position: relative; flex: none; }
.hm-menu-av .avatar { width: 46px; height: 46px; font-size: 16px; font-weight: 600; object-fit: cover; }
.hm-menu-cam { position: absolute; right: -6px; bottom: -6px; display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 2px solid var(--tat-navy);
  border-radius: 50%; background: var(--hm-panel); color: var(--tat-navy); cursor: pointer; }
.hm-menu-cam > i { font-size: 14px; }
.hm-menu-cam:hover { background: color-mix(in srgb, var(--hm-accent) 12%, var(--hm-panel)); }
.hm-menu-cam:focus-visible { outline: 2px solid white; outline-offset: 2px; }
.hm-menu-id { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; min-width: 0; }
.hm-menu-id > b { max-width: 100%; overflow: hidden; color: white; font-size: 16px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.hm-menu-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.hm-menu-role, .hm-menu-dept { display: inline-flex; align-items: center; padding: 2px 9px; border: 1px solid; border-radius: 99px; font-size: 11px; font-weight: 600; line-height: 1.4; white-space: nowrap; }
.hm-menu-role { color: color-mix(in srgb, var(--tat-red) 70%, white);
  border-color: color-mix(in srgb, color-mix(in srgb, var(--tat-red) 70%, white) 60%, transparent); }
.hm-menu-dept { color: color-mix(in srgb, white 70%, transparent); border-color: color-mix(in srgb, white 35%, transparent); }
.hm-menu-mail { max-width: 100%; overflow: hidden; color: color-mix(in srgb, #fff 70%, transparent); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.hm-menu-rows { padding: 8px; }
.hm-menu-me .hm-mlink { gap: 12px; padding: 8px 10px; border-radius: 10px; }
.hm-menu-me .hm-mlink:focus-visible { outline: 2px solid var(--hm-ink); outline-offset: 2px; }
.hm-mtext { display: flex; flex-direction: column; min-width: 0; }
.hm-mtext b { color: var(--hm-ink); font-size: 13px; font-weight: 500; }
.hm-mtext small { display: block; color: var(--hm-fg2); font-size: 12px; }
.hm-mgo { margin-left: auto; color: var(--hm-fgm); font-size: 15px; }
.hm-mlink:hover .hm-mgo, .hm-mlink:focus-visible .hm-mgo { color: var(--hm-ink); }

.hm-menu.notif-menu { width: min(340px, calc(100vw - 24px)); }
.hm-menu-nhead { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--hm-line); }
.hm-menu-nhead > i { flex: none; color: var(--hm-fg2); font-size: 16px; }
.hm-menu-ntitle { color: var(--hm-ink); font-size: 14px; font-weight: 600; }
.hm-npill { padding: 2px 9px; border-radius: 99px; background: color-mix(in srgb, var(--hm-accent) 12%, var(--hm-panel)); color: var(--hm-accent);
  font-size: 11px; font-weight: 600; white-space: nowrap; }
.hm-menu.notif-menu .hm-read-all .btn { padding: 2px 4px; border: 0; background: transparent; box-shadow: none; color: var(--hm-accent); font-size: 12px; font-weight: 500; }
.hm-menu.notif-menu .hm-read-all .btn:hover { background: var(--hm-soft); color: var(--hm-accent); }
.hm-menu.notif-menu .hm-read-all .btn:focus-visible { outline: 2px solid var(--hm-ink); outline-offset: 2px; }
.hm-menu.notif-menu .notif-item { display: grid; grid-template-columns: 32px minmax(0, 1fr); column-gap: 12px; align-items: start; padding: 12px 16px;
  font-size: 13px; line-height: 1.4; white-space: normal; }
.hm-menu.notif-menu .notif-item > i { grid-column: 1; grid-row: 1 / span 2; display: grid; place-items: center; width: 32px; height: 32px; margin: 0 !important;
  border-radius: 10px; background: color-mix(in srgb, var(--hm-accent) 12%, var(--hm-panel)); color: var(--hm-accent) !important; font-size: 16px; }
.hm-menu.notif-menu .notif-item > .small { grid-column: 2; margin: 0 !important; color: var(--hm-fg2) !important; font-size: 12px; }
.hm-menu-foot { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 12px; border-top: 1px solid var(--hm-line); color: var(--hm-fg);
  font-size: 13px; font-weight: 500; text-decoration: none; }
.hm-menu-foot > i { font-size: 14px; }
.hm-menu-foot:hover { background: var(--hm-soft); color: var(--hm-ink); text-decoration: none; }
.hm-menu-foot:focus-visible { outline: 2px solid var(--hm-ink); outline-offset: -2px; }
@media (prefers-reduced-motion: reduce) { .pref-switch, .pref-switch::before { transition: none; } }

/* ---- Sidebar at the reference's size (UI redesign Step 3, owner: "exactly like the reference") ----
   58px rail, 208px open, 37px rows, 28px icon tiles, 14.4px labels, the reference's tint and rounded open edge. The markup and the behaviour
   (hover opens it, sections, groups, the foot) are unchanged; a short window now scrolls the rail instead of cutting it off. ---- */
:root { --side-w: 58px; --side-w-open: 208px; }
.app-side { padding: 13.6px 9px 16px; overflow-y: auto; overflow-x: hidden; scrollbar-width: none; border-right: 0;
  background: radial-gradient(288px 224px at 0 0, rgba(239, 35, 60, .18), transparent 70%), radial-gradient(288px 352px at 100% 100%, rgba(47, 111, 214, .16), transparent 70%), linear-gradient(180deg, #2b2d42, #1f2133);
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, .05); transition: width .18s ease, box-shadow .18s ease, border-radius .18s ease; }
.app-side:hover, .app-side:focus-within { border-radius: 0 24px 24px 0; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .28) transparent;
  box-shadow: 18px 0 48px -12px rgba(0, 0, 0, .55), 2px 0 0 rgba(255, 255, 255, .04); }
html[data-sidebar="open"] .app-side { border-radius: 0 24px 24px 0; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .28) transparent; }
.side-brand { height: 63.1px; padding: 4.8px 0 17px; margin-left: -6px; flex: none; }
.side-brand img { height: 41.3px; width: 41.3px; }
.app-side:hover .side-brand img, .app-side:focus-within .side-brand img, html[data-sidebar="open"] .side-brand img { width: 130.7px; height: 54.5px; margin-top: -6.6px; object-fit: contain; }
.side-nav { gap: 2px; }
.side-link { gap: 7px; height: 37px; padding: 0 6px; border-radius: 9px; font-size: 14.4px; font-weight: 500; line-height: 1; color: #fff; }
.side-link:hover { background: rgba(255, 255, 255, .07); }
.side-link.active, .side-group.active, .side-group.active:hover { background: rgba(255, 255, 255, .10); }
.side-link > i { width: 28px; height: 28px; border-radius: 8.8px; font-size: 19px; margin-left: 0; color: #fff; text-shadow: none;
  background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
.side-link:hover > i { transform: none; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
.side-link.active > i { background: linear-gradient(135deg, #ef233c, #d90429); box-shadow: 0 4px 12px -2px rgba(239, 35, 60, .55); }
.side-link > i.side-caret { width: 26px; height: 26px; font-size: 12px; border-radius: 8px; margin-left: auto; }
.side-sub { margin: 0; padding: 2px 0 6px; gap: 0; }
.side-sub .side-link { height: auto; padding: 6.72px 12px 6.72px 10px; border-radius: 8px; font-size: 14.08px; font-weight: 400; line-height: 1.45; }
.side-sub .side-link:hover { background: rgba(255, 255, 255, .06); }
.side-sep { height: 1px; border-top: 0; background: rgba(255, 255, 255, .10); margin: 8px 6px; flex: none; }
.side-section { height: 27.4px; padding: 12px 12px 0; font-size: 10.88px; font-weight: 500; line-height: 15px; letter-spacing: .1em; flex: none; }
.app-side:not(:hover):not(:focus-within) .side-section { position: relative; height: 13.4px; margin: 4px 0; padding: 0 12px; font-size: 0; border-top: 0; }
.app-side:not(:hover):not(:focus-within) .side-section::before { content: ""; position: absolute; left: 8px; right: 8px; top: 50%; height: 1px; background: rgba(255, 255, 255, .10); }
html[data-sidebar="open"] .app-side:not(:hover):not(:focus-within) .side-section { height: 27.4px; margin: 0; padding: 12px 12px 0; font-size: 10.88px; }
html[data-sidebar="open"] .app-side:not(:hover):not(:focus-within) .side-section::before { display: none; }
/* the reference has no red edge on the open page's row: the icon tile is the marker */
.side-nav > .side-link.active::before { display: none; }

/* Pricing Desk and Control Tower, reference layout (UI redesign Step 3) */
.hm-opstrip { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 14px; margin-bottom: 14px; }
.hm-opcard { display: flex; flex-direction: column; gap: 3px; min-width: 0; padding: 12px 16px; background: var(--hm-panel); border: 1px solid var(--hm-line); border-radius: var(--hm-r); box-shadow: var(--tat-shadow-sm); }
.hm-op-k { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--hm-fg2); }
.hm-op-v { display: flex; align-items: center; gap: 7px; font-size: 16px; font-weight: 500; color: var(--hm-ink); }
.hm-opcard[data-tone="ok"] .hm-op-v { color: var(--hm-ok); }
.hm-opcard[data-tone="warn"] .hm-op-v { color: var(--hm-warn); }
.hm-op-s { font-size: 12px; color: var(--hm-fg2); }
.hm-op-row { display: flex; align-items: center; gap: 8px; min-width: 0; }
.hm-op-bar { flex: 0 0 70px; height: 5px; overflow: hidden; border-radius: 99px; background: var(--hm-soft); }
.hm-op-bar > i { display: block; height: 100%; border-radius: inherit; background: var(--viz-good); }
.hm-op-dot { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--viz-good); }

.hm-grid > * { min-width: 0; }
.hm-grid > [data-live-region] { display: flex; }
.hm-grid > [data-live-region] > .hm-card { width: 100%; }
.hm-h2 { margin: 0; font-size: 20px; font-weight: 600; line-height: 1.25; color: var(--hm-ink); }
.qb-head .hm-seg { flex-wrap: wrap; }
.qb-head .qb-notes { margin-left: auto; }
.qb-head .qb-toggle { margin-left: auto; }
.qb-head .qb-notes + .qb-toggle { margin-left: 0; }
.qb-note, .qb-note-sample, .qb-note-paused { padding: 6px 12px; border: 1px solid color-mix(in srgb, var(--hm-warn) 35%, var(--line)); border-radius: 14px; background: color-mix(in srgb, var(--hm-warn) 14%, var(--hm-panel)); box-shadow: none; color: var(--hm-fg); font-size: 13px; font-weight: 400; }
.qb-foot { margin: 0; color: var(--hm-fg2); font-size: 12px; }
.hm-tile-ring { padding-right: 108px; }
.hm-tile-ring .hm-ring { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); }
.hm-card[data-card] > .qb-fill { flex: 1 1 auto; }
.hm-card[data-card] .qb-reasons, .hm-card[data-card] .viz-list { margin-bottom: 0; }
.hm-card[data-card] .qb-segments { height: 12px; gap: 2px; }
.hm-card[data-card="lanes"] .qb-lane-rank { width: auto; min-width: 24px; height: 22px; padding: 2px 7px; border-radius: 99px; }
.hm-card[data-card="trend"] .hm-head, .hm-card[data-card="revenue"] .hm-head, .hm-card[data-card="lanes"] .hm-head { flex-wrap: wrap; }

.hm-card[data-card] .table > thead th, .hm-card[data-ct-card] .table > thead th { background-image: none; color: var(--hm-fg2); font-size: 12px; letter-spacing: .04em; }
.hm-card[data-card] .table > tbody > tr > *, .hm-card[data-ct-card] .table > tbody > tr > * { border-bottom: 1px solid var(--hm-line); }
.hm-card[data-card] .table > tbody:last-child > tr:last-child > *, .hm-card[data-ct-card] .table > tbody:last-child > tr:last-child > * { border-bottom: 0; }

.ct .ct-dst { padding: 8px 12px; border: 1px solid color-mix(in srgb, var(--hm-warn) 35%, var(--line)); border-radius: 14px; background: color-mix(in srgb, var(--hm-warn) 14%, var(--hm-panel)); box-shadow: none; color: var(--hm-fg); font-size: 13px; }
.ct .hm-card > .hm-head { flex-wrap: wrap; }
.ct .hm-card > .card-body.ct-empty, .ct .hm-card > .ct-empty { padding: 10px 0; }
.ct .hm-card > .ct-note { padding: 0; }
.ct-wgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ct-wcard { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; padding: 12px 14px; border: 1px solid var(--hm-line); border-left: 3px solid var(--kc, var(--hm-muted)); border-radius: 14px; background: var(--hm-bg); }
.ct-wcard > b { color: var(--hm-ink); font-size: 14px; font-weight: 600; }
.ct-wnum { color: var(--hm-ink); font-size: 28px; font-weight: 600; line-height: 1.1; font-variant-numeric: tabular-nums; }
.ct-wnum.ct-wbig { font-size: 24px; }
.ct-day-warn { color: var(--hm-warn); }
.ct-stack { display: flex; gap: 2px; height: 10px; overflow: hidden; border-radius: 99px; background: var(--hm-soft); }
.ct-stack > i { display: block; min-width: 0; height: 100%; }
.ct-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.ct-leg { display: inline-flex; align-items: center; gap: 4px; color: var(--hm-fg2); font-size: 12px; white-space: nowrap; }
.ct-leg > b { color: var(--hm-ink); font-weight: 600; }
.ct-sw { width: 8px; height: 8px; flex: none; border-radius: 50%; }
.ct-filter { width: 190px; max-width: 100%; }
.ct-foot { padding-top: 2px; }
.ct-li { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; min-width: 0; padding: 10px 0; border-bottom: 1px solid var(--hm-line); }
.ct-li:last-child { border-bottom: 0; }
.ct-li-main { flex: 1 1 170px; min-width: 0; overflow-wrap: anywhere; color: var(--hm-ink); }
.ct-li > .hm-sub { flex: 0 1 auto; min-width: 0; }
.ct-li-r, .ct-st { margin-left: auto; }
.ct-li-r { color: var(--hm-fg2); font-size: 12px; white-space: nowrap; }
.ct-st { display: inline-flex; align-items: center; padding: 3px 8px; border-radius: 99px; font-size: 11px; font-weight: 600; white-space: nowrap; }
.ct-st.bad { color: var(--hm-crit); background: color-mix(in srgb, var(--hm-crit) 12%, transparent); }
.ct-st.warn { color: var(--hm-warn); background: color-mix(in srgb, var(--hm-warn) 12%, transparent); }
.ct-seclab { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 4px; }
.ct-load-list + .ct-load-list { margin-top: 10px; }
.ct-db { position: relative; isolation: isolate; overflow: hidden; }
.ct-db::before { content: ""; position: absolute; z-index: -1; left: 4px; top: 6px; bottom: 6px; width: var(--db); max-width: calc(100% - 8px); border-radius: 6px; background: color-mix(in srgb, var(--dbc) 18%, transparent); pointer-events: none; }
.ct-convert-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.ct-convert-controls > select { flex: 2 1 240px; min-width: 0; }
.ct-convert-controls > input { flex: 1 1 140px; min-width: 0; }
.ct-city-form { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 8px; }
.ct-city-form > div { flex: 1 1 120px; min-width: 0; }
.ct-city-form > div:first-child { flex-basis: 190px; }
.ct-city-form > #ctCityError { flex-basis: 100%; }
.ct-city-form > .btn { flex: 0 0 auto; }
.ct-filter:focus-visible, .ct .btn:focus-visible, .qb-toggle:focus-visible { outline: 2px solid var(--hm-ink); outline-offset: 2px; box-shadow: none; }
/* Why we lose sits in the narrow column: the reason takes a line of its own and the figures wrap under it instead of squeezing it to three letters */
.hm-card[data-card="lose"] .qb-reason-head { flex-wrap: wrap; row-gap: 2px; column-gap: .45rem; }
.hm-card[data-card="lose"] .qb-reason-name { flex: 1 1 100%; }
.hm-card[data-card="lose"] .qb-reason-value, .hm-card[data-card="lose"] .qb-reason-pct { min-width: 0; text-align: left; }
/* The four world clocks at 1:1. The deck sits in the 1240px content column, so on every screen wide enough for four across a card is at most ~298px, and the
   weather never fits beside the time (owner, 2026-10-28: "they're clustered" - the weather sat on the PM and the city was cut): it always drops into the card's
   own last line (same icon, temperature and word) and the face is a little smaller; below 1280px the cards are two by two, as they already are on an upright
   screen. The body takes the rest of the first line (basis 0), so it can never fall under the face; the city gives way first. The clocks themselves, their
   colours and their figures are unchanged. */
.clock-face { width: 64px; height: 64px; }
.clock-head { padding-right: 0; }
.clock-card { flex-wrap: wrap; row-gap: .15rem; column-gap: .8rem; padding-left: 1rem; padding-right: .9rem; }
.clock-body { flex: 1 1 0; }
.clock-meta { gap: .3rem; }
.clock-weather { position: static; flex: 0 0 calc(100% - 64px - .8rem); margin-left: calc(64px + .8rem); flex-direction: row; align-items: center; justify-content: flex-start; gap: .4rem; text-align: left; }
.clock-weather-temp { margin-top: 0; }
.clock-weather-icon { font-size: 1.05rem; }
html[data-w1280="1"] .clocks-deck { grid-template-columns: repeat(2, 1fr); }

/* Dashboard loads card, reference layout (UI redesign Step 3) */
.hm-lo-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 14px; align-items: start; }
.hm-lo-grid > * { min-width: 0; }
#hmLoads { gap: 10px; }
.hm-lo-head { flex-wrap: wrap; gap: 12px; }
.hm-lo-titles { margin-right: auto; min-width: 0; }
.hm-lo-scroll { overflow: auto; max-height: 520px; border: 1px solid var(--hm-line); border-radius: 14px; }
.hm-lo-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 12px; font-variant-numeric: tabular-nums; }
.hm-lo-table th { position: sticky; top: 0; z-index: 1; background: var(--hm-panel); text-align: left; font-weight: 500; color: var(--hm-fg2); padding: 8px 9px; border-bottom: 1px solid var(--hm-line); white-space: nowrap; }
.hm-lo-table td { padding: 7px 9px; border-bottom: 1px solid var(--hm-line); white-space: nowrap; }
.hm-lo-table th.num, .hm-lo-table td.num { text-align: right; }
.hm-lo-table tbody tr[data-load-id] { cursor: pointer; }
.hm-lo-table tbody tr:hover { background-color: var(--hm-soft); }
.hm-lo-table tbody tr.is-sel { background-color: color-mix(in srgb, var(--hm-accent) 12%, var(--hm-panel)); }
.hm-lo-table tbody tr.is-sel > td:first-child { box-shadow: inset 3px 0 0 var(--hm-accent); }
.hm-lo-table tbody tr[tabindex]:focus-visible { outline: 2px solid var(--hm-ink); outline-offset: -2px; }
.hm-lo-party { max-width: 150px; overflow: hidden; text-overflow: ellipsis; }
.hm-lo-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; }
.hm-lo-mbar { background-repeat: no-repeat; background-size: 100% 3px; background-position: 0 calc(100% - 3px); }
.hm-lo-mbar[style] { background-image: linear-gradient(90deg, color-mix(in srgb, var(--hm-ok) 65%, transparent) var(--w), transparent var(--w)); }
.hm-lo-mbar.bad { color: var(--hm-bad); }
.hm-lo-mbar.bad[style] { background-image: linear-gradient(90deg, color-mix(in srgb, var(--hm-bad) 65%, transparent) var(--w), transparent var(--w)); }
.hm-lo-none { text-align: center; color: var(--hm-fg2); }
.hm-more { align-self: center; border: 1px solid var(--hm-line); background: var(--hm-bg); color: var(--hm-ink); border-radius: 99px; padding: 6px 18px; font-size: 12px; cursor: pointer; }
.hm-more:hover { border-color: var(--hm-line2); }
.hm-more:focus-visible { outline: 2px solid var(--hm-ink); outline-offset: 2px; }
.hm-more[disabled] { opacity: .45; cursor: default; }
.hm-lo-detail { position: sticky; top: 14px; }
.hm-lo-detail > .hm-head { flex-wrap: wrap; }
.hm-lo-detail-body { max-height: calc(var(--vh-px, 100vh) - 120px); overflow-y: auto; }
/* An open load takes the list card's own height and scrolls inside it (owner, 2026-10-29: "when I open a load there will be a gap below"): size
   containment stops the load's body making the row taller than the list, so nothing is left empty under the list. The empty "Select a load" card
   stays short. Stacked under the list (data-w1100) it is as tall as the load, as before. */
.hm-lo-detail.is-open { position: static; align-self: stretch; contain: size; min-height: 360px; }
.hm-lo-detail.is-open .hm-lo-detail-body { flex: 1 1 0; min-height: 0; max-height: none; }
html[data-w1100="1"] .hm-lo-grid { grid-template-columns: minmax(0, 1fr); }
html[data-w1100="1"] .hm-lo-detail { position: static; }
html[data-w1100="1"] .hm-lo-detail.is-open { align-self: start; contain: none; min-height: 0; }
html[data-w1100="1"] .hm-lo-detail.is-open .hm-lo-detail-body { flex: 0 1 auto; max-height: calc(var(--vh-px, 100vh) - 120px); }

/* ---- Content column like the reference (UI redesign Step 3, owner: "exactly like the reference"): max 1280px with 20px sides (a 1240px
   column), top 20px, bottom 48px, centred. Only the pages the redesign rebuilt carry `hm-col` (Dashboard, Loads, Customers, Carriers,
   Receivables, Payables, Intelligence, Pricing Desk, Control Tower); every other page keeps its own width. ---- */
main.container-fluid.hm-col { max-width: 1280px; margin-left: auto; margin-right: auto; padding: 20px 20px 48px !important; }

/* ---- Wide lists scroll inside their own box (owner, 2026-10-28) ----
   Receivables, Payables, Customers and Carriers used to grow as tall as their rows, so the sideways scrollbar sat under
   the last row, a whole page down. The box is now at most one window tall (the same height the Loads table uses), so
   its scrollbar is in view as soon as the table is, and the head and the pinned first columns stay put on both axes. */
.table-responsive.list-scroll { overflow: auto; max-height: calc(var(--vh-px, 900px) - 44px - 5rem); }
.list-scroll > .table-list > thead > tr > th { position: sticky; top: 0; z-index: var(--z-pinned-cell); background-color: var(--row-bg);
  box-shadow: inset 0 -1px 0 var(--tat-line); }
.list-scroll > .table-list > thead > tr > th.cell-sticky { z-index: var(--z-pinned-head); box-shadow: inset 0 -1px 0 var(--tat-line), 1px 0 0 var(--tat-line-soft); }
/* The dark theme blanks every table cell (a rule far above), which let whatever scrolled underneath show through the pinned columns and the
   sticky head. They say their colour again here, and only where they are pinned. */
html[data-bs-theme="dark"] .table-list td.cell-sticky, html[data-bs-theme="dark"] .table-list th.cell-sticky,
html[data-bs-theme="dark"] .loads-table > thead > tr > th { background-color: var(--row-bg); }
/* The checkbox column is pinned and the load number is pinned right after it (left: 2.25rem), so the checkbox column may not shrink below that:
   squeezed to its content it left a 10px gap, and the columns scrolled underneath showed through it. */
.table-list > thead > tr > .bulk-col.cell-sticky, .table-list > tbody > tr > .bulk-col.cell-sticky { min-width: 2.25rem; }

/* Dashboard bottom block (owner, 2026-10-29, "why is there empty place here, what else you can add"): the month chart fills its card (it
   was a fixed 280px in a card as tall as Top customers); Loads in motion ends with a Today row; Payables aging sits beside Receivables aging;
   "Biggest unpaid balances" takes the two columns left. No width media query: the grid's own flags collapse it. */
.hm-grid > [data-card="gross-by-month"] > .card-body { flex: 1 1 auto; display: flex; flex-direction: column; min-height: 0; }
.hm-grid > [data-card="gross-by-month"] .viz-scroll { flex: 1 1 calc(280px + .25rem); display: flex; flex-direction: column; min-height: calc(280px + .25rem); }
.hm-grid > [data-card="gross-by-month"] .viz-plot { flex: 1 1 0; height: auto; min-height: 280px; }
.hm-grid > [data-card="motion"] > .card-body { display: flex; flex-direction: column; }
.hm-today { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--tat-line-soft); }
.hm-today-h { font-size: 12px; color: var(--hm-fg2); margin-bottom: 8px; }
.hm-today-tiles { display: grid; grid-template-columns: repeat(3, minmax(min-content, 1fr)); gap: 8px; }
.hm-today-tile { padding: 8px; border-radius: 10px; background: var(--hm-soft); }
.hm-today-tile b { display: block; font-size: 20px; line-height: 1.2; color: var(--hm-ink); font-variant-numeric: tabular-nums; }
.hm-today-tile span { font-size: 11.5px; color: var(--hm-fg2); }
.hm-today-tile.bad b { color: var(--hm-bad); }
.hm-ub-rows { display: flex; flex-direction: column; margin-top: 10px; }
.hm-ub-bar { flex: 0 0 34%; height: 8px; border-radius: 99px; background: var(--hm-soft); overflow: hidden; }
.hm-ub-bar > i { display: block; height: 100%; border-radius: 99px; }
.hm-ub-rows .hm-dlrow .vl { min-width: 96px; text-align: right; }
.hm-ub-rows .hm-dlrow .sh { width: 64px; }
html[data-orientation="portrait"] .hm-grid > [data-card="ap-aging"], html[data-w1000="1"] .hm-grid > [data-card="ap-aging"] { grid-column: 1 / -1; }

/* ==== Settings v2 (owner brief, 2026-10-30: "top class TMS with advanced UI", less clutter). Same shell and the same gates as the
   2026-10-18 settings area above; this block only draws it better: a navigation with icons and groups that fold, a page header
   with status, section cards with two-column rows (the name and its help on the left, the control on the right), switches,
   segmented choices, chip lists, a hub for /settings/ and a command palette (Ctrl+K). Tokens only, so both themes follow.
   No width media queries: the shell reads html[data-shell-small="1"] and data-orientation, as the rest of the app does. ==== */
.page-settings { --sx-r: 16px; --sx-gap: 14px; }

/* ---- navigation ---- */
.set-nav { padding: 12px 10px 14px; border-radius: var(--sx-r); background: var(--hm-panel); border-color: var(--hm-line); }
.set-search .form-control { height: 36px; border-radius: 99px; background: var(--hm-bg); border-color: var(--hm-line); font-size: 13px; padding-right: 44px; }
.set-search .form-control::placeholder { color: var(--hm-fg2); }
.set-search kbd, .sx-kbd { position: absolute; right: 9px; top: 50%; transform: translateY(-50%); padding: 1px 6px; border: 1px solid var(--hm-line2); border-radius: 6px;
  background: var(--hm-panel); color: var(--hm-fg2); font: 500 10.5px/1.5 var(--bs-font-sans-serif); pointer-events: none; }
.set-group { margin-top: 4px; }
.set-group-top { display: flex; align-items: center; gap: 8px; padding: 7px 8px 3px; cursor: pointer; border-radius: 8px; user-select: none; }
.set-group-top:hover .set-group-h { color: var(--hm-ink); }
.set-group-ic { width: 20px; height: 20px; flex: none; display: grid; place-items: center; border-radius: 6px; font-size: 12px; color: var(--g, var(--hm-accent));
  background: color-mix(in srgb, var(--g, var(--hm-accent)) 13%, var(--hm-panel)); }
.set-group-top .set-group-h { margin: 0; flex: 1 1 auto; }
.set-group-n { font-size: 10.5px; font-weight: 600; color: var(--hm-fg2); }
.set-group-chev { font-size: 11px; color: var(--hm-fg2); transition: transform .15s; }
.set-group.is-folded .set-group-chev { transform: rotate(-90deg); }
.set-group.is-folded .set-list { display: none; }
.set-nav.is-searching .set-group.is-folded .set-list { display: block; }
.set-list { margin-top: 2px; }
.set-item { display: flex; align-items: center; gap: 9px; padding: 6px 10px 6px 12px; border-left: 0; position: relative; font-size: 13px; }
.set-item-ic { width: 16px; flex: none; text-align: center; font-size: 14px; color: var(--hm-fg2); }
.set-item-name { flex: 1 1 auto; min-width: 0; }
.set-item-hit { flex-basis: 100%; margin: 0 0 0 25px; }
.set-item:has(.set-item-hit:not([hidden])) { flex-wrap: wrap; }
.set-item.is-active { background: color-mix(in srgb, var(--g, var(--hm-accent)) 11%, var(--hm-panel)); color: var(--hm-ink); font-weight: 600; }
.set-item.is-active::before { content: ""; position: absolute; left: 0; top: 7px; bottom: 7px; width: 3px; border-radius: 3px; background: var(--g, var(--hm-accent)); }
.set-item.is-active .set-item-ic { color: var(--g, var(--hm-accent)); }
.set-dot { width: 7px; height: 7px; flex: none; border-radius: 50%; background: var(--hm-warn); box-shadow: 0 0 0 3px color-mix(in srgb, var(--hm-warn) 20%, transparent); }
.set-dot.is-bad { background: var(--hm-bad); box-shadow: 0 0 0 3px color-mix(in srgb, var(--hm-bad) 18%, transparent); }
.set-nav-foot { margin: 12px 4px 0; padding-top: 10px; border-top: 1px solid var(--hm-line); display: flex; flex-direction: column; gap: 2px; }
.set-nav-foot a { display: flex; align-items: center; gap: 9px; padding: 6px 8px; border-radius: 8px; color: var(--hm-fg); font-size: 12.5px; text-decoration: none; }
.set-nav-foot a:hover { background: var(--hm-soft); color: var(--hm-ink); }
.set-nav-foot a.is-active { color: var(--hm-ink); font-weight: 600; }

/* ---- page header ---- */
.sx-hero { display: flex; align-items: center; gap: 16px; padding: 18px 20px; margin-bottom: var(--sx-gap); border: 1px solid var(--hm-line); border-radius: var(--sx-r);
  background: radial-gradient(120% 140% at 0 0, color-mix(in srgb, var(--g, var(--hm-accent)) 11%, transparent), transparent 60%), var(--hm-panel); }
.sx-hero-ic { width: 46px; height: 46px; flex: none; display: grid; place-items: center; border-radius: 14px; font-size: 23px; color: var(--g, var(--hm-accent));
  background: color-mix(in srgb, var(--g, var(--hm-accent)) 14%, var(--hm-panel)); }
.sx-hero-tx { flex: 1 1 auto; min-width: 0; }
.sx-hero-crumb { margin: 0 0 2px; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--hm-fg2); }
.sx-hero-title { margin: 0; font-size: 20px; font-weight: 600; letter-spacing: -.02em; line-height: 1.25; color: var(--hm-ink); }
.sx-hero-sum { margin: 3px 0 0; max-width: 62ch; font-size: 13px; line-height: 1.45; color: var(--hm-fg); }
.sx-hero-meta { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; text-align: right; }
.sx-meta { font-size: 12px; color: var(--hm-fg2); }
.sx-meta b { font-weight: 600; color: var(--hm-fg); }
.sx-chip { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 99px; font-size: 12px; font-weight: 600; white-space: nowrap;
  color: var(--hm-fg); background: var(--hm-soft); }
.sx-chip > i { font-size: 12px; }
.sx-chip-ok { color: var(--hm-ok); background: color-mix(in srgb, var(--hm-ok) 12%, var(--hm-panel)); }
.sx-chip-warn { color: color-mix(in srgb, var(--hm-warn) 80%, var(--hm-ink)); background: color-mix(in srgb, var(--hm-warn) 16%, var(--hm-panel)); }
.sx-chip-bad { color: var(--hm-bad); background: color-mix(in srgb, var(--hm-bad) 11%, var(--hm-panel)); }
.sx-chip-sens { color: var(--hm-fg); background: var(--hm-soft); }

/* ---- "On this page" ---- */
.sx-toc { position: sticky; top: 0; z-index: 3; display: flex; gap: 4px; flex-wrap: wrap; margin: 0 0 var(--sx-gap); padding: 6px; border: 1px solid var(--hm-line); border-radius: 99px;
  background: color-mix(in srgb, var(--hm-panel) 92%, transparent); backdrop-filter: blur(6px); width: fit-content; max-width: 100%; }
.sx-toc a { padding: 4px 12px; border-radius: 99px; font-size: 12px; color: var(--hm-fg); text-decoration: none; white-space: nowrap; }
.sx-toc a:hover { background: var(--hm-soft); color: var(--hm-ink); }
.sx-toc a.is-on { background: var(--hm-ink); color: var(--hm-panel); font-weight: 500; }

/* ---- section cards and rows ---- */
.sx-sec { margin-bottom: var(--sx-gap); border: 1px solid var(--hm-line); border-radius: var(--sx-r); background: var(--hm-panel); scroll-margin-top: 54px; }
.sx-sec-h { display: flex; align-items: center; gap: 12px; padding: 16px 20px 6px; }
.sx-sec-ic { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 9px; font-size: 16px; color: var(--g, var(--hm-accent));
  background: color-mix(in srgb, var(--g, var(--hm-accent)) 12%, var(--hm-panel)); }
.sx-sec-h h3 { margin: 0; font-size: 15px; font-weight: 600; letter-spacing: -.01em; color: var(--hm-ink); }
.sx-sec-h p { margin: 1px 0 0; font-size: 12.5px; color: var(--hm-fg2); }
.sx-sec-aside { margin-left: auto; }
.sx-rows { padding: 2px 20px 8px; }
.sx-row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 8px 28px; align-items: start; padding: 14px 0; border-bottom: 1px solid var(--hm-line); }
.sx-row:last-child { border-bottom: 0; }
.sx-row.is-flash { animation: sx-flash 1.8s ease-out; }
@keyframes sx-flash { 0%, 35% { background: color-mix(in srgb, var(--hm-warn) 20%, transparent); box-shadow: 0 0 0 8px color-mix(in srgb, var(--hm-warn) 20%, transparent); } 100% { background: transparent; box-shadow: none; } }
.sx-row.is-wide { grid-template-columns: minmax(0, 1fr); }
.sx-row.is-switch { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
.sx-label { display: block; margin: 0; font-size: 13.5px; font-weight: 600; color: var(--hm-ink); }
.sx-help { margin: 3px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--hm-fg2); }
.sx-used { display: inline-flex; align-items: center; gap: 5px; margin-top: 6px; font-size: 11.5px; color: var(--hm-fg2); }
.sx-used > i { font-size: 12px; color: var(--hm-ok); }
.sx-used b { font-weight: 600; color: var(--hm-fg); }
.sx-ctl { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.sx-ctl .form-control, .sx-ctl .form-select { max-width: 100%; border-radius: 10px; border-color: var(--hm-line2); background-color: var(--hm-panel); font-size: 13.5px; }
.sx-ctl .form-control:focus, .sx-ctl .form-select:focus { border-color: var(--hm-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--hm-accent) 18%, transparent); }
.sx-ctl textarea.form-control { width: 100%; min-height: 96px; resize: vertical; }
.sx-ctl .sx-text { width: 100%; max-width: 30rem; }
.sx-reset { padding: 0; border: 0; background: none; font-size: 11.5px; color: var(--hm-fg2); cursor: pointer; text-decoration: none; }
.sx-reset:hover { color: var(--hm-accent); }
.sx-reset[hidden] { display: none; }
.sx-err { margin: 0; font-size: 12px; color: var(--hm-bad); }
.sx-ctl.is-invalid .form-control, .sx-ctl.is-invalid .form-select { border-color: var(--hm-bad); }
.sx-note { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 10px; padding: 10px 14px; border-radius: 12px; font-size: 12.5px; line-height: 1.5;
  color: var(--hm-fg); background: color-mix(in srgb, var(--hm-accent) 8%, var(--hm-panel)); }
.sx-note > i { margin-top: 1px; font-size: 15px; color: var(--hm-accent); }
.sx-note.is-warn { background: color-mix(in srgb, var(--hm-warn) 12%, var(--hm-panel)); }
.sx-note.is-warn > i { color: var(--hm-warn); }

/* number with its unit, money with its dollar sign */
.sx-num { display: inline-flex; align-items: stretch; max-width: 100%; }
.sx-num .form-control { width: 9rem; text-align: right; font-variant-numeric: tabular-nums; border-radius: 10px 0 0 10px; }
.sx-num.is-pre .form-control { border-radius: 0 10px 10px 0; text-align: left; }
.sx-unit { display: inline-flex; align-items: center; padding: 0 12px; border: 1px solid var(--hm-line2); border-left: 0; border-radius: 0 10px 10px 0; background: var(--hm-soft);
  font-size: 12.5px; color: var(--hm-fg2); white-space: nowrap; }
.sx-num.is-pre .sx-unit { border: 1px solid var(--hm-line2); border-right: 0; border-radius: 10px 0 0 10px; }

/* a segmented choice that posts a radio (the label holds its hidden radio: a radio placed against the page stretched the page,
   and a click scrolled the page down to it) */
.sx-seg { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; border: 1px solid var(--hm-line); border-radius: 99px; background: var(--hm-bg); }
.sx-seg label { position: relative; margin: 0; cursor: pointer; }
.sx-seg input { position: absolute; opacity: 0; pointer-events: none; }
.sx-seg span { display: inline-flex; align-items: center; gap: 6px; padding: 5px 14px; border-radius: 99px; font-size: 12.5px; color: var(--hm-fg); white-space: nowrap; }
.sx-seg label:hover span { color: var(--hm-ink); }
.sx-seg input:checked + span { background: var(--tat-navy); color: #fff; font-weight: 500; }
html[data-bs-theme="dark"] .sx-seg input:checked + span { background: #e9ecf5; color: #1e2030; }
.sx-seg input:focus-visible + span { outline: 2px solid var(--hm-ink); outline-offset: 2px; }

/* choice cards: a few options that each need a sentence */
.sx-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; width: 100%; }
.sx-card { position: relative; display: flex; flex-direction: column; gap: 3px; margin: 0; padding: 12px 14px; border: 1.5px solid var(--hm-line); border-radius: 14px; background: var(--hm-bg); cursor: pointer; }
.sx-card input { position: absolute; opacity: 0; pointer-events: none; }
.sx-card b { font-size: 13px; font-weight: 600; color: var(--hm-ink); }
.sx-card small { font-size: 12px; line-height: 1.4; color: var(--hm-fg2); }
.sx-card:hover { border-color: var(--hm-line2); }
.sx-card:has(input:checked) { border-color: var(--hm-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--hm-accent) 16%, transparent); background: color-mix(in srgb, var(--hm-accent) 5%, var(--hm-panel)); }
.sx-card:has(input:focus-visible) { outline: 2px solid var(--hm-ink); outline-offset: 2px; }

/* day picker (Mon..Sun) */
.sx-days { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.sx-days label { position: relative; margin: 0; cursor: pointer; }
.sx-days input { position: absolute; opacity: 0; pointer-events: none; }
.sx-days span { display: grid; place-items: center; width: 42px; height: 34px; border: 1px solid var(--hm-line2); border-radius: 10px; font-size: 12.5px; color: var(--hm-fg); background: var(--hm-panel); }
.sx-days input:checked + span { border-color: var(--hm-accent); background: color-mix(in srgb, var(--hm-accent) 13%, var(--hm-panel)); color: var(--hm-ink); font-weight: 600; }
.sx-days input:focus-visible + span { outline: 2px solid var(--hm-ink); outline-offset: 2px; }

/* a list of words: chips you add and remove */
.sx-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; width: 100%; padding: 7px; border: 1px solid var(--hm-line2); border-radius: 12px; background: var(--hm-panel); }
.sx-chips:focus-within { border-color: var(--hm-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--hm-accent) 18%, transparent); }
.sx-tag { display: inline-flex; align-items: center; gap: 4px; height: 28px; padding: 0 4px 0 11px; border-radius: 99px; font-size: 12.5px; color: var(--hm-ink); background: var(--hm-soft); }
.sx-tag button { width: 20px; height: 20px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--hm-fg2); cursor: pointer; font-size: 11px; }
.sx-tag button:hover { background: var(--hm-line); color: var(--hm-ink); }
.sx-chips input[type="text"] { flex: 1 1 8rem; min-width: 6rem; height: 28px; padding: 0 6px; border: 0; background: transparent; font-size: 13px; color: var(--hm-ink); outline: 0; }

/* a small editable table (rows you add and remove) */
.sx-grid { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
.sx-grid th { padding: 6px 8px; text-align: left; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--hm-fg2); border-bottom: 1px solid var(--hm-line); }
.sx-grid td { padding: 6px 6px; vertical-align: middle; border-bottom: 1px solid var(--hm-line); }
.sx-grid tr:last-child td { border-bottom: 0; }
.sx-grid .form-control, .sx-grid .form-select { height: 34px; padding: 0 10px; font-size: 13px; }
.sx-grid .sx-x { width: 30px; height: 30px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 8px; background: none; color: var(--hm-fg2); cursor: pointer; }
.sx-grid .sx-x:hover { background: color-mix(in srgb, var(--hm-bad) 10%, var(--hm-panel)); color: var(--hm-bad); }
.sx-add { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; padding: 6px 14px; border: 1px dashed var(--hm-line2); border-radius: 99px; background: none; font-size: 12.5px; color: var(--hm-fg); cursor: pointer; }
.sx-add:hover { border-color: var(--hm-accent); color: var(--hm-accent); }

/* stat strip at the top of a page */
.sx-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: var(--sx-gap); }
.sx-stat { padding: 12px 16px; border: 1px solid var(--hm-line); border-radius: 14px; background: var(--hm-panel); }
.sx-stat span { display: block; font-size: 11.5px; color: var(--hm-fg2); }
.sx-stat b { display: block; margin-top: 2px; font-size: 20px; font-weight: 500; letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--hm-ink); }
.sx-stat small { display: block; margin-top: 1px; font-size: 11.5px; color: var(--hm-fg2); }

/* ---- the hub at /settings/ ---- */
.sx-hub-search { position: relative; margin-bottom: var(--sx-gap); }
.sx-hub-search > i { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); font-size: 16px; color: var(--hm-fg2); pointer-events: none; }
.sx-hub-search .form-control { height: 52px; padding: 0 70px 0 48px; border-radius: 99px; border-color: var(--hm-line); background: var(--hm-panel); font-size: 15px; }
.sx-hub-search .sx-kbd { right: 18px; }
.sx-hub-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sx-gap); margin-bottom: var(--sx-gap); }
html[data-shell-small="1"] .sx-hub-grid, html[data-orientation="phone"] .sx-hub-grid { grid-template-columns: minmax(0, 1fr); }
.sx-hub-card { padding: 16px 8px 8px; border: 1px solid var(--hm-line); border-radius: var(--sx-r); background: var(--hm-panel); }
.sx-hub-card header { display: flex; align-items: center; gap: 12px; padding: 0 12px 8px; }
.sx-hub-card header h2 { margin: 0; font-size: 15px; font-weight: 600; color: var(--hm-ink); }
.sx-hub-card header p { margin: 1px 0 0; font-size: 12px; color: var(--hm-fg2); }
.sx-hub-list { list-style: none; margin: 0; padding: 0; }
.sx-hub-list a { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 12px; color: var(--hm-fg); text-decoration: none; }
.sx-hub-list a:hover { background: var(--hm-soft); color: var(--hm-ink); }
.sx-hub-ic { width: 28px; height: 28px; flex: none; display: grid; place-items: center; border-radius: 8px; font-size: 15px; color: var(--g, var(--hm-accent)); background: color-mix(in srgb, var(--g, var(--hm-accent)) 11%, var(--hm-panel)); }
.sx-hub-card header .sx-hub-ic { width: 36px; height: 36px; border-radius: 11px; font-size: 18px; background: color-mix(in srgb, var(--g, var(--hm-accent)) 14%, var(--hm-panel)); }
.sx-hub-list .sx-hub-tx { flex: 1 1 auto; min-width: 0; }
.sx-hub-list b { display: block; font-size: 13.5px; font-weight: 500; color: var(--hm-ink); }
.sx-hub-list small { display: block; overflow: hidden; font-size: 12px; color: var(--hm-fg2); text-overflow: ellipsis; white-space: nowrap; }
.sx-hub-list .sx-chip { height: 22px; font-size: 11.5px; }
.sx-attn { margin-bottom: var(--sx-gap); padding: 14px 8px 6px; border: 1px solid color-mix(in srgb, var(--hm-warn) 40%, var(--hm-line)); border-radius: var(--sx-r);
  background: color-mix(in srgb, var(--hm-warn) 6%, var(--hm-panel)); }
.sx-attn h2 { display: flex; align-items: center; gap: 8px; margin: 0 12px 6px; font-size: 14px; font-weight: 600; color: var(--hm-ink); }
.sx-attn h2 > i { color: var(--hm-warn); }
.sx-hub-feed { list-style: none; margin: 0; padding: 4px 16px 10px; }
.sx-hub-feed li { display: flex; gap: 10px; align-items: baseline; padding: 8px 0; border-top: 1px solid var(--hm-line); font-size: 12.5px; color: var(--hm-fg); }
.sx-hub-feed li:first-child { border-top: 0; }
.sx-hub-feed time { margin-left: auto; flex: none; color: var(--hm-fg2); }

/* ---- the command palette ---- */
.sx-pal { position: fixed; inset: 0; z-index: 2000; display: grid; justify-items: center; align-items: start; padding-top: 12vh; background: rgba(15, 16, 23, .45); }
.sx-pal[hidden] { display: none; }
.sx-pal-box { width: min(620px, calc(100vw - 24px)); overflow: hidden; border: 1px solid var(--hm-line); border-radius: 18px; background: var(--hm-panel); box-shadow: 0 24px 60px rgba(15, 16, 23, .35); }
.sx-pal-in { display: flex; align-items: center; gap: 12px; padding: 0 18px; border-bottom: 1px solid var(--hm-line); }
.sx-pal-in > i { font-size: 16px; color: var(--hm-fg2); }
.sx-pal-in input { flex: 1 1 auto; height: 54px; border: 0; background: transparent; font-size: 15px; color: var(--hm-ink); outline: 0; }
.sx-pal-list { list-style: none; margin: 0; padding: 6px; max-height: 52vh; overflow-y: auto; }
.sx-pal-list li > a { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 10px; color: var(--hm-fg); text-decoration: none; }
.sx-pal-list li > a.is-on { background: var(--hm-soft); color: var(--hm-ink); }
.sx-pal-list .sx-hub-ic { width: 26px; height: 26px; flex: none; display: grid; place-items: center; border-radius: 8px; font-size: 14px; color: var(--g, var(--hm-accent)); background: color-mix(in srgb, var(--g, var(--hm-accent)) 11%, var(--hm-panel)); }
.sx-pal-list b { font-size: 13.5px; font-weight: 500; }
.sx-pal-list small { display: block; font-size: 12px; color: var(--hm-fg2); }
.sx-pal-list .sx-pal-grp { margin-left: auto; flex: none; font-size: 11.5px; color: var(--hm-fg2); }
.sx-pal-none { padding: 22px; text-align: center; font-size: 13px; color: var(--hm-fg2); }
.sx-pal-foot { display: flex; gap: 14px; padding: 8px 16px; border-top: 1px solid var(--hm-line); font-size: 11.5px; color: var(--hm-fg2); }

/* a page's save bar and the hero stay on the page; a small shell has no TOC pill row */
html[data-shell-small="1"] .sx-hero { flex-wrap: wrap; }
html[data-shell-small="1"] .sx-hero-meta { align-items: flex-start; text-align: left; }
html[data-shell-small="1"] .sx-row { grid-template-columns: minmax(0, 1fr); }
/* the certificate-holder lines on Insurance, and a small inline form (the audit pack's two dates and a button) */
.sx-holder { padding: 8px 12px; margin-bottom: 8px; border: 1px solid var(--hm-line); border-radius: 8px; background: var(--hm-bg); font-size: 13px; line-height: 1.5; color: var(--hm-fg); }
.sx-inline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.sx-inline .form-control { width: auto; }

/* a plain list of facts inside a row: one line each, the thing in bold and what it means beside it */
.sx-list { display: flex; flex-direction: column; gap: 0; width: 100%; }
.sx-list-row { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-top: 1px solid var(--hm-line); font-size: 13px; }
.sx-list-row:first-child { border-top: 0; }
.sx-list-row b { font-weight: 600; color: var(--hm-fg); }

/* API and webhooks: a key is a card, a scope is a tick, the key itself is shown once in a box that is easy to copy */
.sx-keys { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.sx-key { padding: 12px 14px; border: 1px solid var(--hm-line); border-radius: 10px; background: var(--hm-panel); display: flex; flex-direction: column; gap: 8px; }
.sx-key.is-off { background: var(--hm-bg); }
.sx-key.is-off .sx-key-h b { color: var(--hm-fg2); }
.sx-key-h { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.sx-key-h b { font-size: 14px; font-weight: 600; color: var(--hm-fg); }
.sx-key-h code, .sx-list-row code, .sx-grid code { font-size: 12px; color: var(--hm-fg2); background: none; padding: 0; }
.sx-scopes { display: flex; flex-wrap: wrap; gap: 6px; }
.sx-actions { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px; }
.sx-edit { flex-basis: 100%; }
.sx-edit > summary { display: inline-flex; list-style: none; cursor: pointer; }
.sx-edit > summary::-webkit-details-marker { display: none; }
.sx-edit[open] > summary { margin-bottom: 10px; }
.sx-edit-body, .sx-newkey { display: flex; flex-direction: column; gap: 10px; padding: 12px; border: 1px solid var(--hm-line); border-radius: 8px; background: var(--hm-bg); width: 100%; }
.sx-checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 6px 14px; }
.sx-check { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: var(--hm-fg); cursor: pointer; }
.sx-check input { margin-top: 3px; }
.sx-check small { display: block; font-size: 11px; color: var(--hm-fg2); }
.sx-secret-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 10px; }
.sx-secret { display: block; flex: 1 1 320px; padding: 8px 12px; border: 1px solid var(--hm-line); border-radius: 8px; background: var(--hm-panel); font-size: 13px; color: var(--hm-fg); word-break: break-all; user-select: all; }
.sx-recent { padding: 4px 0 0; }
.sx-recent h4 { margin: 0 0 6px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--hm-fg2); }
.sx-recent ul { margin: 0; padding: 0; list-style: none; font-size: 13px; color: var(--hm-fg2); }
.sx-recent li { padding: 4px 0; border-top: 1px solid var(--hm-line); }
.sx-recent li:first-child { border-top: 0; }
.sx-recent li b { color: var(--hm-fg); font-weight: 600; text-transform: capitalize; }
.sx-edit-body > .btn, .sx-newkey > .btn { align-self: flex-start; }

/* Integrations: one card per outside service. Master data's link cards share the grid and the card. */
.int-h { display: flex; align-items: center; gap: 8px; margin: 6px 0 10px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--hm-fg2); }
.int-count { padding: 1px 8px; border-radius: 99px; background: var(--hm-soft); color: var(--hm-fg); letter-spacing: 0; }
.int-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; margin-bottom: 22px; }
.int-card { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; border: 1px solid var(--hm-line); border-radius: 14px; background: var(--hm-panel); color: inherit; }
.int-card.is-on { border-color: color-mix(in srgb, var(--hm-ok) 45%, var(--hm-line)); }
a.int-card { text-decoration: none; }
a.int-card:hover { border-color: var(--hm-accent); }
.int-head { display: flex; align-items: center; gap: 10px; }
.int-icon { width: 36px; height: 36px; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; background: var(--hm-soft); color: var(--hm-accent); font-size: 17px; }
.int-name { flex: 1 1 auto; font-size: 14px; font-weight: 600; color: var(--hm-fg); }
.int-detail { margin: -4px 0 0 46px; font-size: 12px; color: var(--hm-fg2); }
.int-facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 5px 14px; margin: 0; font-size: 12.5px; line-height: 1.45; }
.int-facts dt { color: var(--hm-fg2); font-weight: 500; }
.int-facts dd { margin: 0; color: var(--hm-fg); overflow-wrap: anywhere; }

/* Access control: the person or role picker, and the matrix inside a section card */
.sx-who { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 20px; margin-bottom: var(--sx-gap); padding: 14px 20px; border: 1px solid var(--hm-line); border-radius: var(--sx-r); background: var(--hm-panel); }
.sx-who label { display: block; margin-bottom: 4px; font-size: 12px; font-weight: 600; color: var(--hm-fg2); }
.sx-who select { min-width: 17rem; max-width: 100%; border-radius: 10px; border-color: var(--hm-line2); font-size: 13.5px; }
.sx-who-note { flex: 1 1 18rem; font-size: 12.5px; line-height: 1.5; color: var(--hm-fg2); }
.sx-who-note strong { color: var(--hm-fg); font-weight: 600; }
.sx-sec .access-table { --bs-table-bg: transparent; margin-bottom: 6px; }
.sx-sec .access-table thead th { padding: 8px 6px; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--hm-fg2); background: none; border-bottom: 1px solid var(--hm-line); }
.sx-sec .access-table thead th.ac-c { letter-spacing: 0; text-transform: none; }
.sx-sec .access-table td { padding-top: 9px; padding-bottom: 9px; border-bottom: 1px solid var(--hm-line); background: none; }
.sx-sec .access-table tr:last-child td { border-bottom: 0; }
.sx-sec .access-table td .small, .sx-sec .access-table td.ac-c .small { color: var(--hm-fg2); }

/* Pages still drawn with the older panel (Terms, Incident categories, Preferences) take the section card's look */
body.page-settings .set-pane .fpanel { border-color: var(--hm-line); background: var(--hm-panel); box-shadow: none; border-radius: var(--sx-r); }
body.page-settings .set-pane .fpanel-head { padding: 16px 20px 6px; border-bottom: 0; }
body.page-settings .set-pane .fpanel-icon { width: 30px; height: 30px; border-radius: 9px; font-size: 16px; }
body.page-settings .set-pane .fpanel-title { font-weight: 600; letter-spacing: -.01em; color: var(--hm-ink); }
body.page-settings .set-pane .fpanel .card-body { padding: 8px 20px 18px; }
body.page-settings .set-pane .fpanel .form-label { font-size: 13px; font-weight: 600; color: var(--hm-fg); }
body.page-settings .set-pane .fpanel .form-control, body.page-settings .set-pane .fpanel .form-select { border-radius: 10px; border-color: var(--hm-line2); font-size: 13.5px; }
/* ==== end Settings v2 ==== */

/* ---- Carrier Prospects (owner, 2026-11-03) ---- */
.cp-page, .cp-form, .cp-detail { display: flex; flex-direction: column; gap: 16px; }
.cp-page .hm-tile .hm-mlab { color: var(--hm-fg); font-size: 11.5px; font-weight: 700; }
.cp-page .hm-tile .hm-big { font-size: 34px; font-weight: 700; }
.cp-page .hm-tile .hm-tile-s { color: var(--hm-fg); font-size: 13px; }
.cp-list { padding: 0; overflow: hidden; }
.cp-filter { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--hm-line); }
.cp-tabs { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; }
.cp-tab { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border: 1px solid transparent; border-radius: 99px; color: var(--hm-fg); font-size: 13px; font-weight: 600; text-decoration: none; }
.cp-tab > span { min-width: 22px; padding: 1px 6px; border-radius: 99px; background: var(--hm-soft); color: var(--hm-ink); font-size: 11px; font-weight: 700; text-align: center; }
.cp-tab:hover { background: var(--hm-soft); color: var(--hm-fg); text-decoration: none; }
.cp-tab.active { border-color: var(--tat-navy); background: var(--tat-navy); color: var(--hm-panel); }
.cp-tab.active > span { background: color-mix(in srgb, var(--hm-panel) 18%, transparent); color: inherit; }
html[data-bs-theme="dark"] .cp-tab.active { border-color: var(--hm-soft); background: var(--hm-soft); color: var(--hm-ink); }
.cp-search { position: relative; width: 270px; max-width: 100%; margin-left: auto; }
.cp-search > .bi { position: absolute; left: 12px; top: 50%; z-index: 1; color: var(--hm-fg2); transform: translateY(-50%); pointer-events: none; }
.cp-search .form-control, html[data-density="compact"] .cp-search .form-control { padding-left: 34px; border-color: var(--hm-line2); border-radius: 99px; background: var(--hm-panel); color: var(--hm-ink); font-size: 13px; font-weight: 500; }
/* Search + filters (owner 2026-11-07: "the UI should be more advanced ... placed the filters where they suit well"): one slim card above the
   figures. Each filter is a chip that opens a pop-up of choices with a count beside every choice; a chosen filter shows its value and a small x.
   The pop-ups live in this card (not in .cp-list, which clips its edges), and the card sits just above the page's other cards, below the sidebar. */
.cp-find { position: relative; z-index: 6; gap: 0; padding: 0; }
.cp-find [hidden] { display: none !important; }
.cp-find-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; padding: 12px 16px; }
.cp-more { padding-top: 10px; border-top: 1px solid var(--hm-line); }
.cp-find .cp-search { flex: 0 1 200px; width: auto; min-width: 170px; margin-left: 0; }
.cp-find .cp-search .form-control, html[data-density="compact"] .cp-find .cp-search .form-control { min-height: 36px; padding-right: 12px; }
.cp-find .cp-search .form-control:not(:placeholder-shown), html[data-density="compact"] .cp-find .cp-search .form-control:not(:placeholder-shown) { padding-right: 32px; }
.cp-find .cp-search .form-control::-webkit-search-cancel-button { appearance: none; }
.cp-sb-x { position: absolute; right: 6px; top: 50%; z-index: 2; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; color: var(--hm-fg2); font-size: 11px; text-decoration: none; transform: translateY(-50%); }
.cp-sb-x:hover { background: var(--hm-soft); color: var(--hm-ink); text-decoration: none; }
.cp-fchip { position: relative; display: inline-flex; }
.cp-fb { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 0 12px; border: 1px solid var(--hm-line2); border-radius: 99px; background: var(--hm-panel); color: var(--hm-ink); font: inherit; font-size: 13px; font-weight: 600; line-height: 1; white-space: nowrap; text-decoration: none; cursor: pointer; }
.cp-fb:hover { border-color: var(--tat-navy); color: var(--hm-ink); text-decoration: none; }
.cp-fb:focus-visible, .cp-pop-q:focus-visible, .cp-opt > a:focus-visible, .cp-x:focus-visible, .cp-sb-x:focus-visible { outline: 2px solid var(--tat-navy); outline-offset: 2px; }
.cp-fb > .bi:first-child { color: var(--hm-fg2); font-size: 14px; }
.cp-fb b { max-width: 150px; padding-left: 8px; overflow: hidden; border-left: 1px solid var(--hm-line2); font-weight: 700; text-overflow: ellipsis; }
.cp-fb small { color: var(--hm-fg2); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.cp-caret { color: var(--hm-fg2); font-size: 10px; transition: transform .15s; }
.cp-fb[aria-expanded="true"] .cp-caret { transform: rotate(180deg); }
.cp-fchip.is-on .cp-fb, .cp-tog.is-on, .cp-more-btn.has-on { border-color: var(--tat-navy); background: color-mix(in srgb, var(--tat-navy) 8%, var(--hm-panel)); }
.cp-fchip.is-on .cp-fb { padding-right: 34px; }
.cp-fchip.is-on .cp-fb > .bi:first-child, .cp-tog.is-on > .bi:first-child { color: var(--tat-navy); }
html[data-bs-theme="dark"] .cp-fchip.is-on .cp-fb, html[data-bs-theme="dark"] .cp-tog.is-on, html[data-bs-theme="dark"] .cp-more-btn.has-on { border-color: var(--hm-fg); background: var(--hm-soft); }
html[data-bs-theme="dark"] .cp-fchip.is-on .cp-fb > .bi:first-child, html[data-bs-theme="dark"] .cp-tog.is-on > .bi:first-child { color: var(--hm-ink); }
.cp-x { position: absolute; right: 5px; top: 50%; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; color: var(--hm-ink); font-size: 10px; text-decoration: none; transform: translateY(-50%); }
.cp-x:hover { background: var(--hm-line2); color: var(--hm-ink); text-decoration: none; }
.cp-pop { position: absolute; top: calc(100% + 6px); left: 0; z-index: 40; display: flex; flex-direction: column; width: 264px; max-height: min(24rem, 60vh); overflow: hidden; border: 1px solid var(--hm-line2); border-radius: 14px; background: var(--hm-panel); box-shadow: 0 14px 34px rgba(15, 23, 42, .18), 0 2px 6px rgba(15, 23, 42, .08); }
.cp-pop.is-right { right: 0; left: auto; }
.cp-pop-q { flex: none; width: 100%; padding: 10px 14px; border: 0; border-bottom: 1px solid var(--hm-line); border-radius: 0; background: transparent; color: var(--hm-ink); font: inherit; font-size: 13px; outline: none; }
.cp-pop-q:focus { box-shadow: inset 0 -2px 0 var(--tat-navy); }
.cp-opts { flex: 1 1 auto; margin: 0; padding: 6px; overflow-y: auto; list-style: none; overscroll-behavior: contain; }
.cp-opt > a { display: flex; align-items: center; gap: 8px; min-height: 36px; padding: 6px 10px; border-radius: 9px; color: var(--hm-ink); font-size: 13px; font-weight: 500; text-decoration: none; }
.cp-opt > a::before { content: ""; flex: none; width: 5px; height: 10px; margin: 0 3px 0 2px; border: solid transparent; border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px, -2px); }
.cp-opt > a:hover, .cp-opt > a:focus-visible { background: var(--hm-soft); color: var(--hm-ink); text-decoration: none; }
.cp-opt > a > span { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cp-opt > a > small { flex: none; min-width: 28px; color: var(--hm-fg2); font-size: 12px; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.cp-opt.is-sel > a { font-weight: 700; }
.cp-opt.is-sel > a::before { border-color: var(--tat-navy); }
html[data-bs-theme="dark"] .cp-opt.is-sel > a::before { border-color: var(--hm-ink); }
.cp-opt.is-zero > a { color: var(--hm-fg2); }
.cp-find-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 14px; padding: 9px 16px; border-top: 1px solid var(--hm-line); color: var(--hm-fg); font-size: 13px; font-weight: 500; }
.cp-find-foot > span { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.cp-find-foot .bi-funnel { color: var(--tat-navy); }
html[data-bs-theme="dark"] .cp-find-foot .bi-funnel { color: var(--hm-ink); }
.cp-find-foot b { color: var(--hm-ink); font-variant-numeric: tabular-nums; }
.cp-fclear { display: inline-flex; align-items: center; gap: 6px; border-radius: 99px; font-size: 13px; font-weight: 700; }
.cp-fclear > .bi { color: var(--tat-red); }
/* The list fits a normal screen without sideways scrolling (owner 2026-11-07: "I have to scroll right to send onboarding link"): tight cell
   padding, headers that may wrap and the Owner / Contacted column stacked (label over name). The Action column is gone (owner, 2026-11-09: the
   row opens the details panel, which has the same Next step button and the Delete button); the table has no pinned column any more. */
.cp-table { color: var(--hm-fg); font-size: 13.5px; line-height: 1.4; }
.cp-table > thead > tr > th { padding: 12px 10px; border-bottom: 2px solid var(--hm-line2); background: var(--hm-panel); color: var(--hm-ink); font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; white-space: normal; vertical-align: bottom; }
.cp-table > tbody > tr > td { padding: 14px 10px; border-bottom: 1px solid var(--hm-line); vertical-align: top; }
.cp-table .hm-sub { color: var(--hm-fg); font-size: 12.5px; font-weight: 500; }
.cp-table th:first-child, .cp-table td:first-child { min-width: 190px; padding-left: 16px; }
.cp-table td:nth-child(3) { min-width: 100px; }
.cp-table td:nth-child(4) { min-width: 150px; }
.cp-table td:nth-child(5) { min-width: 118px; }
.cp-table th:last-child, .cp-table td:last-child { padding-right: 16px; }
.cp-id { display: flex; flex-wrap: wrap; gap: 2px 10px; margin-top: 3px; color: var(--hm-fg); font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.cp-where { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; margin-top: 4px; color: var(--hm-fg); font-size: 12.5px; font-weight: 500; }
.cp-where > .bi { color: var(--hm-fg2); }
.cp-region { margin-left: 3px; padding: 1px 7px; border-radius: 99px; background: var(--hm-soft); color: var(--hm-ink); font-size: 10.5px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; }
.cp-person, .cp-strong { color: var(--hm-ink); font-weight: 600; }
.cp-meta { margin-top: 8px; color: var(--hm-fg); font-size: 12.5px; font-weight: 500; }
.cp-meta > b { color: var(--hm-ink); font-weight: 700; }
.cp-follow { display: flex; align-items: flex-start; gap: 5px; margin-top: 6px; color: var(--hm-fg); font-size: 12.5px; font-weight: 600; }
.cp-follow-late { color: var(--bs-danger, #dc3545); font-weight: 700; }
.cp-table > tbody > tr:last-child > td { border-bottom: 0; }
.cp-company-link { color: var(--hm-ink); font-size: 15.5px; font-weight: 700; letter-spacing: -.01em; text-decoration: none; }
.cp-company-link:hover { color: var(--hm-accent); text-decoration: none; }
.cp-contacts { min-width: 175px; }
.cp-contact + .cp-contact { margin-top: 9px; }
.cp-contact-label { display: block; margin-bottom: 3px; color: var(--hm-fg2); font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.cp-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 4px; }
.cp-chip { display: inline-flex; align-items: center; padding: 3px 9px; border: 1px solid var(--hm-line2); border-radius: 7px; background: var(--hm-soft); color: var(--hm-ink); font-size: 12px; font-weight: 600; white-space: nowrap; }
.cp-lane { border-color: color-mix(in srgb, var(--hm-accent) 35%, var(--hm-line2)); background: color-mix(in srgb, var(--hm-accent) 9%, var(--hm-panel)); color: var(--hm-accent); font-weight: 700; }
.cp-risk { padding: 5px 10px; font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.cp-stage { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 99px; background: var(--hm-soft); color: var(--hm-ink); font-size: 12px; font-weight: 700; white-space: nowrap; }
.cp-stage::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .8; }
.cp-stage-invited, .cp-stage-application { background: color-mix(in srgb, var(--hm-accent) 14%, var(--hm-panel)); color: var(--hm-accent); }
.cp-stage-started { background: color-mix(in srgb, var(--hm-warn) 18%, var(--hm-panel)); color: var(--hm-warn); }
.cp-stage-onboarded { background: color-mix(in srgb, var(--hm-ok) 14%, var(--hm-panel)); color: var(--hm-ok); }
.cp-stage-rejected { background: color-mix(in srgb, var(--hm-bad) 12%, var(--hm-panel)); color: var(--hm-bad); }
.cp-actions { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 6px; }
.cp-actions .cp-primary { gap: 6px; }
.cp-table .cp-primary { padding: 6px 11px; border-color: var(--hm-line2); color: var(--hm-ink); font-size: 12.5px; font-weight: 600; }
/* One click on a row shows the carrier's details in a panel on the right; the panel's Edit button is the second click (owner, 2026-11-07:
   "on one click it shows us the details, on second click we can reach the edit page, less time consuming"). The page behind it is blurred and
   dimmed (owner: "it hovers over the text on the page ... blur the background which seems good"), so the panel never competes with the list
   text; a click on the blur, Esc or the cross closes it, and the arrows at the top of the panel walk to the next carrier. Richer than a plain
   list of facts (owner: "the UI is minimalistic, make it more premium"): initials badge, progress bar, next-step card, four figure tiles,
   cards with icon chips, a timeline. Width is min(), not a media query. */
.cp-table > tbody > tr[data-peek] { cursor: pointer; }
.cp-table > tbody > tr.is-open > td { background-color: color-mix(in srgb, var(--hm-accent) 8%, var(--hm-panel)); }
.cp-peek-shade { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 44; background: rgba(15, 23, 42, .32); -webkit-backdrop-filter: blur(6px) saturate(1.1); backdrop-filter: blur(6px) saturate(1.1); }
.cp-peek-shade[hidden] { display: none; }
html[data-bs-theme="dark"] .cp-peek-shade { background: rgba(0, 0, 0, .55); }
.cp-peek { position: fixed; top: 0; right: 0; bottom: 0; z-index: 45; display: flex; flex-direction: column; width: min(460px, 100vw); overflow: hidden; border-radius: 22px 0 0 22px; background: var(--hm-panel); box-shadow: -28px 0 70px rgba(15, 23, 42, .30), 0 0 0 1px var(--hm-line); }
.cp-peek::before { content: ""; position: absolute; top: 0; right: 0; left: 0; z-index: 2; height: 4px; background: linear-gradient(90deg, var(--tat-red), var(--tat-navy)); }
.cp-peek[hidden] { display: none; }
.cp-peek:focus { outline: none; }
.cp-peek.is-loading .cp-peek-body { opacity: .5; }
@keyframes cp-peek-in { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
@keyframes cp-peek-fade { from { opacity: 0; } to { opacity: 1; } }
.cp-peek-head { display: flex; flex: none; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 26px 20px 14px; background: linear-gradient(180deg, color-mix(in srgb, var(--hm-accent) 8%, var(--hm-panel)), var(--hm-panel)); }
.cp-peek-id { display: flex; align-items: center; gap: 14px; min-width: 0; }
.cp-peek-av { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 54px; height: 54px; border-radius: 17px; font-size: 18px; font-weight: 800; letter-spacing: .02em; box-shadow: inset 0 0 0 1px color-mix(in srgb, currentColor 18%, transparent); }
.cp-peek-av.cp-stage-prospect, .cp-peek-av.cp-stage-closed { background: var(--hm-soft); color: var(--hm-ink); }
.cp-peek-who { min-width: 0; }
.cp-peek-name { margin: 0 0 5px; color: var(--hm-ink); font-size: 20px; font-weight: 800; letter-spacing: -.015em; line-height: 1.2; overflow-wrap: anywhere; }
.cp-peek-sub { display: flex; flex-wrap: wrap; gap: 3px 12px; color: var(--hm-fg); font-size: 12.5px; font-weight: 600; }
.cp-peek-sub .bi { margin-right: 4px; }
.cp-peek-nav { display: flex; flex: none; gap: 6px; }
.cp-peek-btn { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; padding: 0; border: 1px solid var(--hm-line2); border-radius: 50%; background: var(--hm-panel); color: var(--hm-ink); cursor: pointer; transition: background-color .12s, border-color .12s; }
.cp-peek-btn:hover:not(:disabled) { border-color: var(--hm-ink); background: var(--hm-soft); }
.cp-peek-btn:disabled { opacity: .35; cursor: default; }
.cp-peek-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 6px 20px 20px; }
.cp-peek-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 14px; }
.cp-peek-tags .cp-how { margin-top: 0; }
.cp-peek-quick { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.cp-peek-q { display: inline-flex; align-items: center; gap: 7px; padding: 8px 15px; border: 1px solid var(--hm-line2); border-radius: 99px; background: var(--hm-panel); color: var(--hm-ink); font-size: 13px; font-weight: 700; text-decoration: none; transition: background-color .12s, border-color .12s; }
.cp-peek-q:hover { border-color: var(--hm-ink); background: var(--hm-soft); color: var(--hm-ink); text-decoration: none; }
.cp-peek-q .bi { color: var(--hm-accent); }
/* The step tracker (owner, 2026-11-09: "make it the most advanced, eye-catching UI"): a progress ring with the step count, the step the carrier
   stands on and the next one, and a numbered ladder - done steps ticked in green, the current one glowing in the accent colour with a pulse,
   the rest hollow. The line between two steps fills as the carrier moves up. Every colour is a token; the motion lives in one reduced-motion-
   only line above the Control Tower header (and html[data-motion="off"] stops it everywhere). */
.cp-peek-prog { position: relative; margin: 0 0 16px; padding: 16px 16px 14px; border: 1px solid color-mix(in srgb, var(--hm-accent) 20%, var(--hm-line)); border-radius: 18px; background: radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--hm-accent) 11%, var(--hm-panel)) 0%, var(--hm-panel) 62%); box-shadow: 0 10px 26px -18px color-mix(in srgb, var(--hm-accent) 70%, transparent); overflow: hidden; }
.cp-peek-prog-top { display: flex; align-items: center; gap: 15px; }
.cp-peek-ring { display: grid; flex: none; place-items: center; width: 66px; height: 66px; border-radius: 50%; background: conic-gradient(var(--hm-ok) 0, var(--hm-accent) calc(var(--pct, 0) * 1%), color-mix(in srgb, var(--hm-ink) 10%, transparent) calc(var(--pct, 0) * 1%)); box-shadow: 0 8px 20px -10px color-mix(in srgb, var(--hm-accent) 80%, transparent); }
.cp-peek-ring-in { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%; background: var(--hm-panel); color: var(--hm-ink); line-height: 1; }
.cp-peek-ring-in b { font-size: 22px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.cp-peek-ring-in small { margin-top: 2px; color: var(--hm-fg2); font-size: 9.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.cp-peek-ring-in .bi { font-size: 24px; }
.cp-peek-prog-txt { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; }
.cp-peek-kick { display: inline-flex; align-items: center; gap: 8px; color: var(--hm-accent); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.cp-peek-kick em { padding: 2px 8px; border-radius: 99px; background: color-mix(in srgb, var(--hm-accent) 14%, transparent); font-size: 10.5px; font-style: normal; font-variant-numeric: tabular-nums; letter-spacing: .03em; }
.cp-peek-prog-txt > b { color: var(--hm-ink); font-size: 19px; font-weight: 800; letter-spacing: -.015em; line-height: 1.15; }
.cp-peek-nextup { display: inline-flex; align-items: center; gap: 2px; padding: 3px 11px 3px 5px; border-radius: 99px; background: color-mix(in srgb, var(--hm-ink) 6%, transparent); color: var(--hm-fg); font-size: 12px; font-weight: 600; }
.cp-peek-nextup { gap: 6px; padding-left: 9px; }
.cp-peek-nextup .bi { color: var(--hm-accent); font-size: 12px; }
.cp-peek-nextup strong { margin-left: 3px; color: var(--hm-ink); font-weight: 800; }
.cp-peek-nextup.is-ok { background: color-mix(in srgb, var(--hm-ok) 13%, transparent); color: var(--hm-ok); }
.cp-peek-nextup.is-ok .bi { color: var(--hm-ok); }
.cp-peek-nextup.is-bad { background: color-mix(in srgb, var(--hm-bad) 11%, transparent); color: var(--hm-bad); }
.cp-peek-nextup.is-bad .bi { color: var(--hm-bad); }
.cp-peek-steps { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); margin: 20px 0 0; padding: 0; list-style: none; }
.cp-peek-step { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 0; text-align: center; color: var(--hm-fg2); }
.cp-peek-step:not(:first-child)::before, .cp-peek-step:not(:first-child)::after { content: ""; position: absolute; top: 12px; right: 50%; left: -50%; height: 4px; border-radius: 99px; }
.cp-peek-step:not(:first-child)::before { background: color-mix(in srgb, var(--hm-ink) 11%, transparent); }
.cp-peek-step.done:not(:first-child)::after { background: var(--hm-ok); }
.cp-peek-step.now:not(:first-child)::after { background: linear-gradient(90deg, var(--hm-ok), var(--hm-accent)); transform-origin: left center; }
.cp-peek-step.now.bad:not(:first-child)::after { background: linear-gradient(90deg, var(--hm-ok), var(--hm-bad)); }
.cp-peek-dot { position: relative; z-index: 1; display: grid; place-items: center; width: 28px; height: 28px; border: 2px solid color-mix(in srgb, var(--hm-ink) 16%, transparent); border-radius: 50%; background: var(--hm-panel); color: var(--hm-fg2); font-size: 12px; font-weight: 800; font-variant-numeric: tabular-nums; }
.cp-peek-dot .bi { font-size: 14px; }
.cp-peek-step.done { color: var(--hm-ok); }
.cp-peek-step.done .cp-peek-dot { border-color: var(--hm-ok); background: var(--hm-ok); color: var(--hm-panel); }
.cp-peek-step.now { color: var(--hm-ink); }
.cp-peek-step.now .cp-peek-dot { border-color: var(--hm-accent); background: var(--hm-accent); color: var(--hm-panel); box-shadow: 0 0 0 5px color-mix(in srgb, var(--hm-accent) 22%, transparent), 0 8px 16px -6px color-mix(in srgb, var(--hm-accent) 75%, transparent); }
.cp-peek-step.now .cp-peek-dot::after { content: ""; position: absolute; inset: -2px; border: 2px solid var(--hm-accent); border-radius: 50%; opacity: 0; pointer-events: none; }
.cp-peek-step.bad .cp-peek-dot { border-color: var(--hm-bad); background: var(--hm-bad); box-shadow: 0 0 0 5px color-mix(in srgb, var(--hm-bad) 20%, transparent); }
.cp-peek-step.bad .cp-peek-dot::after { border-color: var(--hm-bad); }
.cp-peek-lab { max-width: 100%; color: var(--hm-fg2); font-size: 10.5px; font-weight: 700; line-height: 1.2; overflow-wrap: anywhere; }
.cp-peek-step.done .cp-peek-lab { color: var(--hm-fg); }
.cp-peek-step.now .cp-peek-lab { color: var(--hm-ink); font-weight: 800; }
.cp-peek-prog.is-finished { border-color: color-mix(in srgb, var(--hm-ok) 35%, var(--hm-line)); background: radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--hm-ok) 12%, var(--hm-panel)) 0%, var(--hm-panel) 62%); }
.cp-peek-prog.is-finished .cp-peek-ring { background: var(--hm-ok); }
.cp-peek-prog.is-finished .cp-peek-ring-in .bi, .cp-peek-prog.is-finished .cp-peek-kick { color: var(--hm-ok); }
.cp-peek-prog.is-finished .cp-peek-kick em { background: color-mix(in srgb, var(--hm-ok) 14%, transparent); }
.cp-peek-prog.is-bad { border-color: color-mix(in srgb, var(--hm-bad) 30%, var(--hm-line)); }
.cp-peek-prog.is-bad .cp-peek-ring { background: conic-gradient(var(--hm-bad) calc(var(--pct, 0) * 1%), color-mix(in srgb, var(--hm-ink) 10%, transparent) 0); box-shadow: 0 8px 20px -10px color-mix(in srgb, var(--hm-bad) 80%, transparent); }
.cp-peek-prog.is-bad .cp-peek-ring-in .bi, .cp-peek-prog.is-bad .cp-peek-kick { color: var(--hm-bad); }
.cp-peek-prog.is-bad .cp-peek-kick em { background: color-mix(in srgb, var(--hm-bad) 12%, transparent); }
.cp-peek-prog.is-set-aside { border-color: var(--hm-line); background: var(--hm-soft); box-shadow: none; }
.cp-peek-prog.is-set-aside .cp-peek-ring { background: color-mix(in srgb, var(--hm-ink) 12%, transparent); box-shadow: none; }
.cp-peek-prog.is-set-aside .cp-peek-ring-in .bi, .cp-peek-prog.is-set-aside .cp-peek-kick { color: var(--hm-fg2); }
.cp-peek-prog.is-set-aside .cp-peek-steps { opacity: .5; filter: grayscale(1); }
@keyframes cp-prog-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes cp-prog-pulse { 0% { opacity: .65; transform: scale(1); } 100% { opacity: 0; transform: scale(1.9); } }
@keyframes cp-prog-pop { 0% { transform: scale(.6); } 60% { transform: scale(1.18); } 100% { transform: scale(1); } }
.cp-peek-now { display: flex; flex-direction: column; gap: 11px; margin: 0 0 14px; padding: 15px 16px; border: 1px solid color-mix(in srgb, var(--hm-accent) 22%, var(--hm-line)); border-radius: 16px; background: linear-gradient(180deg, color-mix(in srgb, var(--hm-accent) 7%, var(--hm-panel)), var(--hm-panel)); }
.cp-peek-now-k { display: flex; align-items: center; gap: 8px; color: var(--hm-fg); font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.cp-peek-now-k .bi { color: var(--hm-accent); font-size: 14px; }
/* The FMCSA check card (owner, 2026-11-09): high in the panel, the last answer on top, one big button. Border and icon follow the result. */
.cp-peek-fm { display: flex; flex-direction: column; gap: 11px; margin: 0 0 14px; padding: 15px 16px; border: 1px solid var(--hm-line); border-radius: 16px; background: var(--hm-panel); }
.cp-peek-fm.cp-fm-ok { border-color: color-mix(in srgb, var(--hm-ok) 35%, var(--hm-line)); background: color-mix(in srgb, var(--hm-ok) 5%, var(--hm-panel)); }
.cp-peek-fm.cp-fm-warn { border-color: color-mix(in srgb, var(--hm-warn) 45%, var(--hm-line)); background: color-mix(in srgb, var(--hm-warn) 7%, var(--hm-panel)); }
.cp-peek-fm.cp-fm-bad { border-color: color-mix(in srgb, var(--hm-bad) 40%, var(--hm-line)); background: color-mix(in srgb, var(--hm-bad) 6%, var(--hm-panel)); }
.cp-peek-fm-top { display: flex; align-items: center; gap: 12px; }
.cp-peek-fm-ic { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 12px; background: color-mix(in srgb, var(--hm-ink) 7%, transparent); color: var(--hm-fg); font-size: 21px; }
.cp-fm-ok .cp-peek-fm-ic { background: color-mix(in srgb, var(--hm-ok) 16%, transparent); color: var(--hm-ok); }
.cp-fm-warn .cp-peek-fm-ic { background: color-mix(in srgb, var(--hm-warn) 20%, transparent); color: var(--hm-warn); }
.cp-fm-bad .cp-peek-fm-ic { background: color-mix(in srgb, var(--hm-bad) 15%, transparent); color: var(--hm-bad); }
.cp-peek-fm-txt { display: flex; flex: 1 1 auto; flex-direction: column; gap: 2px; min-width: 0; }
.cp-peek-fm-k { color: var(--hm-ink); font-size: 14px; font-weight: 800; letter-spacing: -.005em; }
.cp-peek-fm-when { color: var(--hm-fg); font-size: 12px; font-weight: 600; }
.cp-peek-fm-flags { display: flex; flex-direction: column; gap: 5px; margin: 0; padding: 0; list-style: none; }
.cp-peek-fm-fine { display: flex; align-items: center; gap: 7px; color: var(--hm-fg); font-size: 12.5px; font-weight: 600; }
.cp-peek-fm-fine .bi { color: var(--hm-ok); font-size: 14px; }
.cp-peek-fm form { margin: 0; }
.cp-peek-fm-btn { width: 100%; justify-content: center; padding: 11px 18px; border-radius: 12px; font-size: 14px; font-weight: 700; }
.cp-peek-fm-btn .bi { font-size: 16px; }
.cp-peek-fm-btn:disabled { opacity: .75; cursor: progress; }
.cp-peek-fm-msg { margin: 0; padding: 8px 11px; border-radius: 10px; font-size: 12.5px; font-weight: 600; }
.cp-peek-fm-msg[hidden] { display: none; }
.cp-peek-fm-msg.is-ok { background: color-mix(in srgb, var(--hm-ok) 13%, transparent); color: var(--hm-ok); }
.cp-peek-fm-msg.is-bad { background: color-mix(in srgb, var(--hm-warn) 18%, transparent); color: var(--hm-ink); }
.cp-peek-now .cp-actions { gap: 8px; }
.cp-peek-now .hm-btn { padding: 9px 17px; font-size: 13.5px; font-weight: 600; }
.cp-peek-now .hm-btn.gry[href] { border: 1px solid var(--hm-line2); background: var(--hm-panel); color: var(--hm-ink); cursor: pointer; text-decoration: none; }
.cp-peek-now .hm-btn.gry[href]:hover { border-color: var(--hm-ink); background: var(--hm-soft); }
.cp-peek-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.cp-peek-tiles > div { display: flex; flex-direction: column; gap: 3px; min-width: 0; padding: 12px 14px; border: 1px solid var(--hm-line); border-radius: 14px; background: var(--hm-panel); }
.cp-peek-tiles span { color: var(--hm-fg); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.cp-peek-tiles span .bi { margin-right: 6px; color: var(--hm-accent); }
.cp-peek-tiles b { color: var(--hm-ink); font-size: 17px; font-weight: 800; letter-spacing: -.01em; overflow-wrap: anywhere; }
.cp-peek-tiles small { color: var(--hm-fg); font-size: 12px; }
.cp-peek-tiles .is-late { border-color: color-mix(in srgb, var(--hm-bad) 40%, var(--hm-line)); background: color-mix(in srgb, var(--hm-bad) 6%, var(--hm-panel)); }
.cp-peek-tiles .is-late b, .cp-peek-tiles .is-late small { color: var(--hm-bad); }
.cp-peek-sec { margin-top: 20px; }
.cp-peek-h { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; color: var(--hm-ink); font-size: 12px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.cp-peek-ic { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: color-mix(in srgb, var(--hm-accent) 11%, var(--hm-panel)); color: var(--hm-accent); font-size: 14px; }
.cp-peek-rows { margin: 0; padding: 0; overflow: hidden; border: 1px solid var(--hm-line); border-radius: 14px; list-style: none; }
.cp-peek-rows > li { display: flex; align-items: baseline; gap: 12px; padding: 10px 14px; }
.cp-peek-rows > li + li { border-top: 1px solid var(--hm-line); }
.cp-peek-rows > li > span { flex: 0 0 104px; color: var(--hm-fg); font-size: 12.5px; font-weight: 600; }
.cp-peek-rows > li > b { min-width: 0; color: var(--hm-ink); font-size: 13.5px; font-weight: 600; overflow-wrap: anywhere; }
.cp-peek-rows em { margin-left: 4px; color: var(--hm-fg); font-size: 12.5px; font-style: normal; font-weight: 500; }
.cp-peek-lnk { color: var(--hm-ink); text-decoration: none; }
.cp-peek-lnk:hover { color: var(--hm-accent); text-decoration: none; }
.cp-peek-note { margin-top: 10px; color: var(--hm-ink); font-size: 13.5px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.cp-peek-callout { margin-top: 0; padding: 12px 14px; border-left: 3px solid var(--hm-accent); border-radius: 4px 12px 12px 4px; background: var(--hm-soft); }
.cp-peek-tl { margin: 0; padding: 0; list-style: none; }
.cp-peek-tl > li { position: relative; display: flex; flex-direction: column; gap: 1px; padding: 0 0 14px 22px; }
.cp-peek-tl > li::before { content: ""; position: absolute; top: 5px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--hm-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--hm-accent) 18%, var(--hm-panel)); }
.cp-peek-tl > li::after { content: ""; position: absolute; top: 18px; bottom: 0; left: 4px; width: 1px; background: var(--hm-line2); }
.cp-peek-tl > li:last-child { padding-bottom: 0; }
.cp-peek-tl > li:last-child::after { display: none; }
.cp-peek-tl b { color: var(--hm-ink); font-size: 13.5px; font-weight: 600; }
.cp-peek-tl span { color: var(--hm-fg); font-size: 12px; }
.cp-peek-foot { display: flex; flex: none; flex-wrap: wrap; gap: 10px; padding: 14px 20px 18px; border-top: 1px solid var(--hm-line); background: color-mix(in srgb, var(--hm-panel) 94%, transparent); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.cp-peek-foot .btn { justify-content: center; padding: 10px 18px; border-radius: 12px; font-weight: 700; }
.cp-peek-edit { flex: 1 1 140px; }
.cp-peek-msg { padding: 28px 20px; color: var(--hm-fg); font-size: 14px; }
.cp-peek-msg .cp-peek-foot { padding: 0; border: 0; margin-top: 14px; background: none; }
.cp-who { display: flex; flex-direction: column; gap: 9px; }
.cp-who > div { display: flex; flex-direction: column; gap: 1px; color: var(--hm-ink); font-size: 13px; line-height: 1.35; }
.cp-who > div > span { flex: none; color: var(--hm-fg2); font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.cp-who > div > em { display: flex; flex-direction: column; min-width: 0; font-style: normal; font-weight: 600; }
.cp-who > div > em > i { color: var(--hm-fg); font-size: 12px; font-style: normal; font-weight: 500; }
.cp-who .cp-who-none { color: var(--hm-fg2); font-weight: 500; }
.cp-who .cp-who-win > em { color: var(--hm-good, var(--hm-ink)); }
.cp-pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--hm-line); color: var(--hm-fg); font-size: 13px; }
.cp-pager .pagination { margin: 0; }
.cp-del { color: var(--hm-fg2); padding: 4px 6px; }
.cp-del:hover, .cp-del:focus-visible { color: var(--bs-danger, #dc3545); }
.cp-choices { display: flex; flex-wrap: wrap; gap: 7px; }
.cp-choice { position: relative; cursor: pointer; }
.cp-choice > input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.cp-choice > span { display: inline-flex; align-items: center; min-height: 36px; padding: 6px 13px; border: 1px solid var(--hm-line2); border-radius: 9px; background: var(--hm-panel); color: var(--hm-ink); font-size: 13px; font-weight: 600; }
.cp-choice > input:checked + span { border-color: var(--tat-navy); background: var(--tat-navy); color: var(--hm-panel); }
.cp-choice > input:focus-visible + span { outline: 2px solid var(--hm-ink); outline-offset: 2px; }
html[data-bs-theme="dark"] .cp-choice > input:checked + span { border-color: var(--hm-soft); background: var(--hm-soft); color: var(--hm-ink); }
.cp-form-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cp-facts { display: grid; grid-template-columns: 190px minmax(0, 1fr); margin: 0; }
.cp-facts > dt, .cp-facts > dd { margin: 0; padding: 10px 0; border-bottom: 1px solid var(--hm-line); font-size: 14px; }
.cp-facts > dt { color: var(--hm-fg); font-weight: 600; }
.cp-facts > dd { color: var(--hm-ink); font-weight: 500; overflow-wrap: anywhere; }
.cp-glance { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.cp-glance > div { display: flex; flex-direction: column; gap: 3px; min-width: 0; padding: 12px 14px; border: 1px solid var(--hm-line); border-left: 3px solid var(--hm-accent); border-radius: 12px; background: var(--hm-panel); }
.cp-glance span { color: var(--hm-fg2); font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.cp-glance b { color: var(--hm-ink); font-size: 16px; font-weight: 700; overflow-wrap: anywhere; }
.cp-form .hm-title, .cp-detail .hm-title { font-size: 16.5px; font-weight: 700; letter-spacing: -.01em; }
.cp-form .form-label { color: var(--hm-ink); font-size: 13px; font-weight: 600; }
.cp-form .form-control, .cp-form .form-select, html[data-density="compact"] .cp-form .form-control, html[data-density="compact"] .cp-form .form-select { min-height: 40px; border-color: var(--hm-line2); color: var(--hm-ink); font-size: 14px; }
.cp-form .hm-sub, .cp-detail .hm-sub { color: var(--hm-fg); font-size: 12.5px; }
.cp-facts > dt:last-of-type, .cp-facts > dd:last-of-type { border-bottom: 0; }
.cp-flags { display: flex; flex-direction: column; gap: 5px; }
.cp-flag { padding: 7px 10px; border-radius: 8px; background: var(--hm-soft); color: var(--hm-fg); font-size: 12px; }
.cp-flag-warn { background: color-mix(in srgb, var(--hm-warn) 14%, var(--hm-panel)); color: var(--hm-fg); }
.cp-flag-bad { background: color-mix(in srgb, var(--hm-bad) 12%, var(--hm-panel)); color: var(--hm-bad); }
.cp-notes { white-space: pre-line; }
/* Record page, Stage / Actions / Activity (owner, 2026-11-06: "super level UI", and Mark contacted should be eye-catching):
   a numbered journey with the day each step was reached, a "where it stands" strip with the next step, two action tiles
   (the green Mark contacted tile turns to "Contacted today" once logged), and an Activity feed with an icon, the person's
   face and the day and time for every step. Same tokens as the rest of the page; the phone layout reads the shell's width
   attributes, never a width media query. */
.cp-journey { --d: 42px; display: flex; align-items: flex-start; margin: 0; padding: 8px 0 4px; list-style: none; }
.cp-jstep { position: relative; display: flex; flex: 1 1 0; flex-direction: column; align-items: center; gap: 6px; min-width: 0; color: var(--hm-fg2); text-align: center; }
.cp-jstep:not(:last-child)::after { content: ""; position: absolute; left: calc(50% + var(--d) / 2 + 6px); top: calc(var(--d) / 2 - 2px); width: calc(100% - var(--d) - 12px); height: 4px; border-radius: 99px; background: var(--hm-line2); }
.cp-jstep.done:not(:last-child)::after { background: var(--hm-ok); }
.cp-jdot { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; width: var(--d); height: var(--d); border: 2px solid var(--hm-line2); border-radius: 50%; background: var(--hm-panel); color: var(--hm-fg2); font-size: 15px; font-weight: 700; }
.cp-jstep.done .cp-jdot { border-color: var(--hm-ok); background: var(--hm-ok); color: #fff; font-size: 20px; }
.cp-jstep.now .cp-jdot { border-color: var(--hm-accent); background: var(--hm-accent); color: #fff; box-shadow: 0 0 0 6px color-mix(in srgb, var(--hm-accent) 20%, transparent); animation: cp-ring 2.2s ease-out 3; }
.cp-jstep > b { color: var(--hm-fg); font-size: 13.5px; font-weight: 600; }
.cp-jstep.done > b { color: var(--hm-ink); }
.cp-jstep.now > b { color: var(--hm-accent); font-weight: 700; }
.cp-jstep > small { min-height: 15px; color: var(--hm-fg); font-size: 12px; font-weight: 500; font-variant-numeric: tabular-nums; }
.cp-end.now .cp-jdot { border-color: var(--hm-bad); background: var(--hm-bad); box-shadow: 0 0 0 6px color-mix(in srgb, var(--hm-bad) 16%, transparent); animation: none; }
.cp-end.now > b { color: var(--hm-bad); }
.cp-next { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; padding: 14px 16px; border: 1px solid color-mix(in srgb, var(--hm-accent) 24%, var(--hm-line)); border-radius: 16px; background: linear-gradient(135deg, color-mix(in srgb, var(--hm-accent) 10%, var(--hm-panel)), var(--hm-panel) 75%); }
.cp-next-txt { display: flex; align-items: center; gap: 12px; min-width: 0; }
.cp-next-ic { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 13px; background: var(--hm-accent); color: #fff; font-size: 20px; }
.cp-next-txt > div { display: flex; flex-direction: column; min-width: 0; line-height: 1.4; }
.cp-next-txt > div > small { color: var(--hm-fg2); font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.cp-next-txt > div > b { color: var(--hm-ink); font-size: 16.5px; font-weight: 700; }
.cp-next-txt > div > span { color: var(--hm-fg); font-size: 13px; font-weight: 500; }
.cp-next .cp-primary { min-height: 44px; padding: 10px 22px; font-size: 14.5px; font-weight: 700; }
.cp-act-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 14px; }
.cp-act { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin: 0; padding: 16px; border: 1px solid var(--hm-line); border-radius: 16px; background: var(--hm-panel); }
.cp-act-ic { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 14px; background: var(--hm-soft); color: var(--hm-ink); font-size: 22px; }
.cp-act-txt { display: flex; flex: 1 1 170px; flex-direction: column; gap: 4px; min-width: 0; }
.cp-act-txt > b { color: var(--hm-ink); font-size: 15.5px; font-weight: 700; }
.cp-act-txt > span { color: var(--hm-fg); font-size: 13px; font-weight: 500; line-height: 1.4; }
.cp-act-txt em { color: var(--hm-ink); font-style: normal; font-weight: 700; }
.cp-act-txt > .cp-act-count { color: var(--hm-ok); font-size: 12px; font-weight: 700; letter-spacing: .02em; }
.cp-next .cp-actions { align-items: center; justify-content: flex-end; }
.cp-act .form-control, html[data-density="compact"] .cp-act .form-control { min-height: 40px; border-color: var(--hm-line2); border-radius: 10px; background: var(--hm-panel); color: var(--hm-ink); font-size: 13.5px; }
.cp-act-contact { border-color: color-mix(in srgb, var(--hm-ok) 38%, var(--hm-line)); background: linear-gradient(135deg, color-mix(in srgb, var(--hm-ok) 12%, var(--hm-panel)), var(--hm-panel) 72%); }
.cp-act-contact .cp-act-ic { background: var(--hm-ok); color: #fff; box-shadow: 0 10px 20px -12px var(--hm-ok); }
.cp-act-contact.is-done .cp-act-ic { animation: cp-pop .55s cubic-bezier(.2, 1.4, .4, 1) 1; }
.cp-cta { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 24px; border: 0; border-radius: 99px; background: linear-gradient(135deg, var(--hm-ok), color-mix(in srgb, var(--hm-ok) 62%, var(--hm-accent))); color: #fff; font-size: 15px; font-weight: 700; letter-spacing: .01em; white-space: nowrap; cursor: pointer; box-shadow: 0 1px 2px rgba(31, 33, 51, .2), 0 12px 24px -12px var(--hm-ok); transition: transform .14s, box-shadow .14s, filter .14s; }
.cp-cta > i { font-size: 17px; }
.cp-cta:hover { transform: translateY(-2px); filter: brightness(1.07); box-shadow: 0 1px 2px rgba(31, 33, 51, .2), 0 16px 28px -12px var(--hm-ok); }
.cp-cta:active { transform: translateY(0) scale(.97); filter: brightness(.95); }
.cp-cta:focus-visible { outline: 2px solid var(--hm-ink); outline-offset: 3px; }
.cp-act-contact:not(.is-done) .cp-cta { animation: cp-glow 2.4s ease-out 3; }
.cp-act-contact.is-done .cp-cta { background: var(--hm-panel); color: var(--hm-ok); box-shadow: inset 0 0 0 2px var(--hm-ok); }
.cp-cta-ghost, .cp-cta-ghost:hover { min-height: 44px; padding: 8px 20px; background: var(--hm-panel); color: var(--hm-ink); font-size: 14px; box-shadow: inset 0 0 0 1.5px var(--hm-line2); filter: none; }
.cp-cta-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--hm-ink); }
.cp-close-row { display: flex; align-items: stretch; flex-wrap: wrap; gap: 10px; }
.cp-close-row .form-control { flex: 1 1 150px; min-width: 0; }
.cp-close-row .cp-cta { flex: none; min-height: 40px; padding: 6px 20px; }
.cp-feed { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.cp-ev { --ev: var(--hm-accent); position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: start; gap: 14px; padding-bottom: 20px; }
.cp-ev:last-child { padding-bottom: 0; }
.cp-ev:not(:last-child)::before { content: ""; position: absolute; left: 19px; top: 44px; bottom: 4px; width: 2px; border-radius: 99px; background: var(--hm-line2); }
.cp-ev-contacted, .cp-ev-onboarded { --ev: var(--hm-ok); }
.cp-ev-created, .cp-ev-imported { --ev: var(--hm-ink); }
.cp-ev-application { --ev: var(--hm-warn); }
.cp-ev-closed { --ev: var(--hm-bad); }
.cp-ev-ic { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: color-mix(in srgb, var(--ev) 14%, var(--hm-panel)); color: var(--ev); font-size: 18px; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--ev) 32%, transparent); }
.cp-ev:first-child .cp-ev-ic { background: var(--ev); color: #fff; box-shadow: 0 8px 18px -10px var(--ev); }
.cp-ev-body { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 12px; min-width: 0; padding-top: 8px; }
.cp-ev-body > b { flex: 1 1 100%; color: var(--hm-ink); font-size: 15px; font-weight: 700; }
.cp-ev-by { display: inline-flex; align-items: center; gap: 7px; color: var(--hm-ink); font-size: 13px; font-weight: 600; }
.cp-av { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; overflow: hidden; background: var(--c, var(--hm-ink)); color: #fff; font-size: 10px; font-weight: 700; }
.cp-av img { width: 100%; height: 100%; object-fit: cover; }
.cp-ev-note { padding: 2px 10px; border-radius: 99px; background: var(--hm-soft); color: var(--hm-fg); font-size: 12px; font-weight: 600; }
.cp-ev-when { display: flex; flex-direction: column; align-items: flex-end; padding-top: 8px; color: var(--hm-fg); font-variant-numeric: tabular-nums; line-height: 1.4; text-align: right; }
.cp-ev-when > b { color: var(--hm-ink); font-size: 13px; font-weight: 700; }
.cp-ev-when > span { font-size: 12px; font-weight: 500; }
.cp-ev-empty { color: var(--hm-fg); font-size: 14px; list-style: none; }
@keyframes cp-ring { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--hm-accent) 45%, transparent); } 100% { box-shadow: 0 0 0 14px color-mix(in srgb, var(--hm-accent) 0%, transparent); } }
@keyframes cp-glow { 0% { box-shadow: 0 1px 2px rgba(31, 33, 51, .2), 0 0 0 0 color-mix(in srgb, var(--hm-ok) 55%, transparent); } 100% { box-shadow: 0 1px 2px rgba(31, 33, 51, .2), 0 0 0 16px color-mix(in srgb, var(--hm-ok) 0%, transparent); } }
@keyframes cp-pop { 0% { transform: scale(.6); } 100% { transform: scale(1); } }
html[data-w620="1"] .cp-facts, html[data-orientation="phone"] .cp-facts { grid-template-columns: minmax(0, 1fr); }
html[data-w620="1"] .cp-facts > dt, html[data-orientation="phone"] .cp-facts > dt { padding-bottom: 0; border-bottom: 0; }
html[data-w620="1"] .cp-journey, html[data-orientation="phone"] .cp-journey { --d: 30px; }
html[data-w620="1"] .cp-jstep > b, html[data-orientation="phone"] .cp-jstep > b { font-size: 10.5px; }
html[data-w620="1"] .cp-jstep > small, html[data-orientation="phone"] .cp-jstep > small { font-size: 9.5px; }
html[data-w620="1"] .cp-act-grid, html[data-orientation="phone"] .cp-act-grid { grid-template-columns: minmax(0, 1fr); }
html[data-w620="1"] .cp-ev, html[data-orientation="phone"] .cp-ev { grid-template-columns: 40px minmax(0, 1fr); }
html[data-w620="1"] .cp-ev-when, html[data-orientation="phone"] .cp-ev-when { grid-column: 2; align-items: flex-start; padding-top: 0; text-align: left; }
/* The tracker's preferred lanes on the add / edit form: From -> To pairs, the last five behind "More lanes". */
.cp-lanes { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.cp-lane-head, .cp-lane-row { display: grid; grid-template-columns: 56px minmax(0, 1fr) 20px minmax(0, 1fr); align-items: center; gap: 8px; }
.cp-lane-head { color: var(--hm-fg2); font-size: 10px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }
.cp-lane-n { color: var(--hm-fg2); font-size: 12px; }
.cp-lane-arrow { color: var(--hm-fg2); text-align: center; }
.cp-lanes .form-select, html[data-density="compact"] .cp-lanes .form-select { border-color: var(--hm-line2); font-size: 13px; }
.cp-more > summary { cursor: pointer; color: var(--hm-accent); font-size: 12px; font-weight: 600; }
.cp-more > .cp-lane-row { margin-top: 8px; }
html[data-w620="1"] .cp-lane-head, html[data-w620="1"] .cp-lane-row, html[data-orientation="phone"] .cp-lane-head, html[data-orientation="phone"] .cp-lane-row { grid-template-columns: 48px minmax(0, 1fr) 16px minmax(0, 1fr); gap: 6px; }
/* Two ways to onboard a carrier (owner, 2026-11-06): our link, or the paperwork asked for by email. The list's "How" tag, the two
   email stages, the Paperwork card on the record page, the ask-for-paperwork preview and the review page. Same tokens as above; the
   phone layout reads the shell's width attributes, never a width media query. */
.cp-stage-requested { background: color-mix(in srgb, var(--hm-warn) 18%, var(--hm-panel)); color: var(--hm-warn); }
.cp-stage-received { background: color-mix(in srgb, var(--hm-accent) 14%, var(--hm-panel)); color: var(--hm-accent); }
.cp-how { display: inline-flex; align-items: center; gap: 5px; margin-top: 6px; padding: 2px 9px; border: 1px solid var(--hm-line2); border-radius: 7px; background: var(--hm-panel); color: var(--hm-fg); font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.cp-how-email { border-color: color-mix(in srgb, var(--hm-warn) 45%, var(--hm-line2)); color: var(--hm-ink); }
.cp-how-link { border-color: color-mix(in srgb, var(--hm-accent) 40%, var(--hm-line2)); color: var(--hm-accent); }
.cp-how-added { color: var(--hm-fg); }
.cp-ev-paperwork_requested { --ev: var(--hm-warn); }
.cp-ev-paperwork_received { --ev: var(--hm-accent); }
.cp-ev-paperwork_removed { --ev: var(--hm-bad); }
.cp-pw { display: flex; flex-direction: column; gap: 16px; }
.cp-pw-test, .cp-pw-warn { display: flex; align-items: flex-start; gap: 12px; padding: 13px 16px; border: 1px solid color-mix(in srgb, var(--hm-accent) 30%, var(--hm-line)); border-radius: 14px; background: color-mix(in srgb, var(--hm-accent) 8%, var(--hm-panel)); color: var(--hm-ink); font-size: 13.5px; line-height: 1.5; }
.cp-pw-test > i, .cp-pw-warn > i { flex: none; font-size: 20px; line-height: 1.3; color: var(--hm-accent); }
.cp-pw-warn { border-color: color-mix(in srgb, var(--hm-warn) 50%, var(--hm-line)); background: color-mix(in srgb, var(--hm-warn) 12%, var(--hm-panel)); }
.cp-pw-warn > i { color: var(--hm-warn); }
.cp-pw-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.cp-pw-form > label, .cp-pw-upload > label { display: flex; flex-direction: column; gap: 5px; margin: 0; color: var(--hm-ink); font-size: 13px; font-weight: 600; }
.cp-pw-form > label > small, .cp-pw-upload > label > small, .cp-pw-coi > small { color: var(--hm-fg2); font-weight: 500; }
.cp-pw-form .form-control, .cp-pw-form .form-select, .cp-pw-upload .form-control, .cp-pw-upload .form-select, .cp-pw-coi .form-control, html[data-density="compact"] .cp-pw-form .form-control, html[data-density="compact"] .cp-pw-form .form-select, html[data-density="compact"] .cp-pw-upload .form-control, html[data-density="compact"] .cp-pw-upload .form-select, html[data-density="compact"] .cp-pw-coi .form-control { min-height: 40px; border-color: var(--hm-line2); color: var(--hm-ink); font-size: 14px; }
.cp-pw-wide { grid-column: 1 / -1; }
.cp-pw-live { display: flex; align-items: flex-start; gap: 12px; padding: 13px 16px; border: 1px solid color-mix(in srgb, var(--hm-ok) 45%, var(--hm-line)); border-radius: 14px; background: color-mix(in srgb, var(--hm-ok) 9%, var(--hm-panel)); color: var(--hm-ink); font-size: 13.5px; line-height: 1.45; }
.cp-pw-live > i { flex: none; font-size: 20px; line-height: 1.3; color: var(--hm-ok); }
.cp-pw-form > label.cp-pw-ccme { position: relative; flex-direction: row; align-items: center; gap: 14px; padding: 13px 16px; border: 1px solid var(--hm-line2); border-radius: 14px; background: var(--hm-panel); cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s; }
.cp-pw-ccme > input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.cp-pw-sw { position: relative; flex: none; width: 44px; height: 26px; border-radius: 99px; background: var(--hm-line2); transition: background .15s; }
.cp-pw-sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform .15s; }
.cp-pw-ccme-t { display: flex; flex: 1 1 auto; flex-direction: column; min-width: 0; line-height: 1.35; }
.cp-pw-ccme-t > b { color: var(--hm-ink); font-size: 14.5px; font-weight: 700; }
.cp-pw-form .cp-pw-ccme-t > small { color: var(--hm-fg); font-size: 12.5px; font-weight: 500; }
.cp-pw-ccme > i { flex: none; font-size: 22px; color: var(--hm-fg2); }
.cp-pw-ccme:hover { border-color: var(--hm-ink); }
.cp-pw-ccme:has(input:checked) { border-color: var(--hm-accent); background: color-mix(in srgb, var(--hm-accent) 8%, var(--hm-panel)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--hm-accent) 16%, transparent); }
.cp-pw-ccme:has(input:checked) .cp-pw-sw { background: var(--hm-accent); }
.cp-pw-ccme:has(input:checked) .cp-pw-sw::after { transform: translateX(18px); }
.cp-pw-ccme:has(input:checked) > i { color: var(--hm-accent); }
.cp-pw-ccme:has(input:focus-visible) { outline: 2px solid var(--hm-accent); outline-offset: 2px; }
.cp-pw-ccme.is-off { opacity: .6; cursor: not-allowed; }
.cp-pw-sum { margin: 0 0 12px; color: var(--hm-ink); font-size: 14px; line-height: 1.5; }
.cp-pw-sum > small { display: block; color: var(--hm-fg); font-size: 12.5px; }
.cp-pw-badcc { display: inline-flex; align-items: center; gap: 6px; margin-left: 8px; color: var(--hm-bad); font-size: 12.5px; font-weight: 600; }
.cp-pw-att { display: inline-flex; align-items: center; gap: 6px; margin: 0 8px 4px 0; padding: 4px 11px; border: 1px solid var(--hm-line2); border-radius: 99px; background: var(--hm-soft); color: var(--hm-ink); font-size: 12.5px; font-weight: 600; text-decoration: none; }
.cp-pw-att > i { color: var(--hm-bad); font-size: 15px; }
.cp-pw-att:hover { border-color: var(--hm-ink); color: var(--hm-ink); text-decoration: none; }
.cp-mailframe-wrap { margin-top: 14px; padding: 14px; border: 1px solid var(--hm-line); border-radius: 14px; background: var(--hm-soft); }
.cp-mailframe { display: block; width: 100%; max-width: 680px; height: 1480px; margin: 0 auto; border: 1px solid var(--hm-line2); border-radius: 10px; background: #fff; }
.cp-pw-text { margin-top: 12px; color: var(--hm-fg); font-size: 13px; }
.cp-pw-text > summary { cursor: pointer; color: var(--hm-accent); font-weight: 600; }
.cp-pw-text > pre { margin: 10px 0 0; padding: 14px; border: 1px solid var(--hm-line); border-radius: 10px; background: var(--hm-soft); color: var(--hm-ink); font-size: 12.5px; white-space: pre-wrap; overflow-wrap: anywhere; }
.cp-pw-acts { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 18px; }
.cp-pw-self { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; max-width: 360px; margin: 0; }
.cp-pw-self > small { color: var(--hm-fg); font-size: 12.5px; line-height: 1.4; }
.cp-pwcard { gap: 14px; }
.cp-pw-asked { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding: 12px 14px; border: 1px solid color-mix(in srgb, var(--hm-warn) 38%, var(--hm-line)); border-radius: 14px; background: linear-gradient(135deg, color-mix(in srgb, var(--hm-warn) 11%, var(--hm-panel)), var(--hm-panel) 75%); }
.cp-pw-asked-ic { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 12px; background: var(--hm-warn); color: #fff; font-size: 17px; }
.cp-pw-asked > div { display: flex; flex: 1 1 200px; flex-direction: column; min-width: 0; line-height: 1.4; }
.cp-pw-asked > div > b { color: var(--hm-ink); font-size: 14.5px; font-weight: 700; }
.cp-pw-asked > div > span { color: var(--hm-fg); font-size: 13px; font-weight: 500; }
.cp-pw-slots { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.cp-pw-slot { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border: 1px solid var(--hm-line); border-radius: 14px; background: var(--hm-panel); }
.cp-pw-slot.is-done { border-color: color-mix(in srgb, var(--hm-ok) 40%, var(--hm-line)); background: color-mix(in srgb, var(--hm-ok) 6%, var(--hm-panel)); }
.cp-pw-slot.is-open { border-color: color-mix(in srgb, var(--hm-warn) 45%, var(--hm-line)); }
.cp-pw-mark { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: var(--hm-soft); color: var(--hm-fg); font-size: 15px; }
.cp-pw-slot.is-done .cp-pw-mark { background: var(--hm-ok); color: #fff; font-size: 17px; }
.cp-pw-slot.is-open .cp-pw-mark { background: color-mix(in srgb, var(--hm-warn) 18%, var(--hm-panel)); color: var(--hm-warn); }
.cp-pw-slotbody { display: flex; flex: 1 1 auto; flex-direction: column; gap: 2px; min-width: 0; }
.cp-pw-slotbody > b { color: var(--hm-ink); font-size: 14.5px; font-weight: 700; }
.cp-pw-slotbody > small { color: var(--hm-fg); font-size: 12px; font-weight: 600; }
.cp-pw-slot.is-done .cp-pw-slotbody > small { color: var(--hm-ok); }
.cp-pw-files { display: flex; flex-direction: column; gap: 6px; margin: 8px 0 0; padding: 0; list-style: none; }
.cp-pw-file { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--hm-line); border-radius: 10px; background: var(--hm-panel); }
.cp-pw-file > i { flex: none; color: var(--hm-fg); font-size: 18px; }
.cp-pw-fn { display: flex; flex: 1 1 auto; flex-direction: column; min-width: 0; line-height: 1.35; }
.cp-pw-fn > a, .cp-pw-fn > b { color: var(--hm-ink); font-size: 13.5px; font-weight: 600; overflow-wrap: anywhere; }
.cp-pw-fn > a:hover { color: var(--hm-accent); }
.cp-pw-fn > small { color: var(--hm-fg); font-size: 12px; font-weight: 500; }
.cp-pw-upload { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; align-items: end; gap: 12px; margin: 0; padding: 14px; border: 1px dashed var(--hm-line2); border-radius: 14px; background: var(--hm-soft); }
.cp-pw-uphead { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 2px; }
.cp-pw-uphead > b { color: var(--hm-ink); font-size: 14.5px; font-weight: 700; }
.cp-pw-uphead > small { color: var(--hm-fg); font-size: 12.5px; }
.cp-pw-approve { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.cp-pw-review { display: flex; flex-direction: column; gap: 8px; margin: 0 0 14px; padding: 0; list-style: none; }
.cp-pw-review > li { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border: 1px solid var(--hm-line); border-radius: 14px; background: var(--hm-panel); }
.cp-pw-review > li.is-missing { border-color: color-mix(in srgb, var(--hm-warn) 45%, var(--hm-line)); }
.cp-pw-review .cp-pw-fn > b { font-size: 14.5px; font-weight: 700; }
.cp-pw-tick { display: inline-flex; flex: none; align-items: center; gap: 8px; margin: 0; color: var(--hm-ink); font-size: 13px; font-weight: 600; cursor: pointer; }
.cp-pw-tick > input { width: 20px; height: 20px; accent-color: var(--hm-ok); }
.cp-pw-coi { display: flex; flex-direction: column; gap: 5px; max-width: 360px; margin: 0 0 14px; color: var(--hm-ink); font-size: 13px; font-weight: 600; }
.cp-pw-blockers { margin: 0; padding-left: 20px; color: var(--hm-bad); font-size: 13.5px; font-weight: 600; line-height: 1.6; }
html[data-w620="1"] .cp-pw-form, html[data-orientation="phone"] .cp-pw-form { grid-template-columns: minmax(0, 1fr); }
html[data-w620="1"] .cp-pw-upload, html[data-orientation="phone"] .cp-pw-upload { grid-template-columns: minmax(0, 1fr); }
html[data-w620="1"] .cp-mailframe-wrap, html[data-orientation="phone"] .cp-mailframe-wrap { padding: 6px; }
html[data-w620="1"] .cp-mailframe, html[data-orientation="phone"] .cp-mailframe { height: 1950px; }
html[data-w620="1"] .cp-pw-review > li, html[data-orientation="phone"] .cp-pw-review > li { flex-wrap: wrap; }
/* Paperwork card redesign + FMCSA card on the record page (owner, 2026-11-09: "update the UI of this page, more advanced, user friendly, eye-catching").
   A progress ring beside the "asked for" line, the checklist as document tiles, a drop-zone upload box, an approve bar that names what is missing. */
.cp-pw-top { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; }
.cp-pw-ring { display: grid; flex: none; place-items: center; width: 92px; height: 92px; border-radius: 50%; background: conic-gradient(var(--hm-warn) 0, var(--hm-accent) calc(var(--pct, 0) * 1%), color-mix(in srgb, var(--hm-ink) 10%, transparent) calc(var(--pct, 0) * 1%)); box-shadow: 0 10px 24px -12px color-mix(in srgb, var(--hm-accent) 80%, transparent); }
.cp-pw-top.is-complete .cp-pw-ring { background: conic-gradient(var(--hm-ok) 0 100%); box-shadow: 0 10px 24px -12px color-mix(in srgb, var(--hm-ok) 80%, transparent); }
.cp-pw-ring-in { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 74px; height: 74px; border-radius: 50%; background: var(--hm-panel); color: var(--hm-ink); line-height: 1; }
.cp-pw-ring-in b { font-size: 26px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.cp-pw-ring-in b span { color: var(--hm-fg2); font-size: 15px; font-weight: 700; }
.cp-pw-ring-in small { margin-top: 3px; color: var(--hm-fg2); font-size: 9.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.cp-pw-top > .cp-pw-asked { flex: 1 1 280px; }
.cp-pw-slots { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); align-items: start; gap: 12px; }
.cp-pw-slot { position: relative; overflow: hidden; padding: 14px 14px 14px 18px; box-shadow: 0 1px 2px rgba(31, 33, 51, .05); }
.cp-pw-slot::before { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 4px; background: var(--hm-line2); }
.cp-pw-slot.is-done::before { background: var(--hm-ok); }
.cp-pw-slot.is-open { border-style: dashed; background: color-mix(in srgb, var(--hm-warn) 5%, var(--hm-panel)); }
.cp-pw-slot.is-open::before { background: var(--hm-warn); }
.cp-pw-mark { width: 34px; height: 34px; }
.cp-pw-add { display: inline-flex; align-items: center; align-self: flex-start; gap: 6px; margin-top: 8px; padding: 6px 12px; border: 1px solid color-mix(in srgb, var(--hm-accent) 40%, var(--hm-line)); border-radius: 99px; background: var(--hm-panel); color: var(--hm-accent); font-size: 12.5px; font-weight: 700; text-decoration: none; }
.cp-pw-add:hover { background: color-mix(in srgb, var(--hm-accent) 10%, var(--hm-panel)); color: var(--hm-accent); text-decoration: none; }
.cp-pw-add .bi { font-size: 14px; }
.cp-pw-upload { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; padding: 18px; border: 2px dashed color-mix(in srgb, var(--hm-accent) 35%, var(--hm-line2)); border-radius: 18px; background: color-mix(in srgb, var(--hm-accent) 4%, var(--hm-soft)); }
.cp-pw-upload.is-flash { border-color: var(--hm-accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--hm-accent) 18%, transparent); }
.cp-pw-uphead { flex-direction: row; align-items: center; gap: 12px; }
.cp-pw-uphead > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cp-pw-upic { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 12px; background: var(--hm-accent); color: #fff; font-size: 19px; }
.cp-pw-upload .form-control::file-selector-button { margin-right: 10px; padding: 5px 12px; border: 0; border-radius: 99px; background: var(--hm-soft); color: var(--hm-ink); font-weight: 700; cursor: pointer; }
.cp-pw-upload > label > span > small { color: var(--hm-fg2); font-weight: 500; }
.cp-pw-picked { display: block; margin-top: 4px; color: var(--hm-ok); font-size: 12px; font-weight: 700; overflow-wrap: anywhere; }
.cp-pw-picked:empty { display: none; }
.cp-pw-upload > .hm-btn { justify-content: center; padding: 11px 22px; font-size: 14px; font-weight: 700; }
.cp-pw-approve { padding: 14px 16px; border: 1px solid var(--hm-line); border-radius: 16px; background: var(--hm-soft); }
.cp-pw-approve.is-ready { border-color: color-mix(in srgb, var(--hm-ok) 40%, var(--hm-line)); background: color-mix(in srgb, var(--hm-ok) 8%, var(--hm-panel)); }
.cp-pw-approve.is-ready .cp-primary { padding: 11px 24px; font-size: 14.5px; font-weight: 700; }
.cp-pw-miss { display: flex; flex-wrap: wrap; gap: 6px; }
.cp-pw-miss > span { padding: 4px 11px; border-radius: 99px; background: color-mix(in srgb, var(--hm-warn) 16%, var(--hm-panel)); color: var(--hm-ink); font-size: 12.5px; font-weight: 700; }
.cp-detail > .cp-peek-fm { margin: 0; }
.cp-detail .cp-peek-fm-top { flex-wrap: wrap; }
.cp-fm-form { margin: 0; }
.cp-fm-form .cp-peek-fm-btn { width: auto; }
/* Record page, the information cards and the Actions card (owner, 2026-11-09: "why this area haven't been updated" and "fix align and upgrade these
   icons"): every card head gets a coloured icon tile (the tone class sets --kc), the cards sit in two columns that fill from the top (CSS columns, so no
   width media query), each fact is a small tile with the label above and the value under it, and the two action tiles are the same height with their
   buttons along the foot. Tokens only; the phone layout falls out of `columns: 420px`. */
.cp-tone-accent { --kc: var(--hm-accent); }
.cp-tone-ok { --kc: var(--hm-ok); }
.cp-tone-warn { --kc: var(--hm-warn); }
.cp-tone-teal { --kc: color-mix(in srgb, var(--hm-accent) 55%, var(--hm-ok)); }
.cp-detail .hm-head .hm-ic { width: 42px; height: 42px; border-radius: 14px; font-size: 21px; color: #fff; background: linear-gradient(145deg, var(--kc, var(--hm-accent)), color-mix(in srgb, var(--kc, var(--hm-accent)) 70%, var(--hm-panel))); box-shadow: 0 10px 18px -12px var(--kc, var(--hm-accent)); }
.cp-cards { columns: 420px 2; column-gap: 16px; }
.cp-cards > .hm-card { break-inside: avoid; margin: 0 0 16px; }
.cp-cards > .hm-card:last-child { margin-bottom: 0; }
.cp-fgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; margin: 0; }
.cp-fact { display: flex; flex-direction: column; gap: 3px; min-width: 0; margin: 0; padding: 10px 12px; border: 1px solid var(--hm-line); border-radius: 12px; background: var(--hm-soft); }
.cp-fact-wide { grid-column: 1 / -1; }
.cp-fact > dt { margin: 0; color: var(--hm-fg2); font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.cp-fact > dd { margin: 0; color: var(--hm-ink); font-size: 14.5px; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
.cp-fact.is-empty > dd { color: var(--hm-fgm); font-weight: 500; }
.cp-fact > dd a { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; color: var(--hm-accent); font-weight: 700; text-decoration: none; }
.cp-fact > dd a:hover { filter: brightness(.88); text-decoration: none; }
.cp-fact > dd a > i { flex: none; font-size: 15px; }
.cp-fact > dd .cp-chips { margin-top: 0; }
.cp-fact > dd .hm-sub { margin-left: 4px; font-weight: 500; }
.cp-act-grid { align-items: stretch; }
.cp-act { flex-direction: column; flex-wrap: nowrap; align-items: stretch; justify-content: space-between; gap: 16px; padding: 18px; }
.cp-act-top { display: flex; align-items: flex-start; gap: 14px; min-width: 0; }
.cp-act-top > .cp-act-txt { flex: 1 1 auto; }
.cp-act-ic { width: 54px; height: 54px; border-radius: 16px; font-size: 25px; }
.cp-act-contact .cp-act-ic { background: linear-gradient(145deg, var(--hm-ok), color-mix(in srgb, var(--hm-ok) 62%, var(--hm-accent))); }
.cp-act-close .cp-act-ic { background: linear-gradient(145deg, var(--hm-warn), color-mix(in srgb, var(--hm-warn) 68%, var(--hm-panel))); color: #fff; box-shadow: 0 10px 20px -12px var(--hm-warn); }
.cp-act > .cp-cta { width: 100%; min-height: 48px; }
.cp-act .cp-close-row { flex-wrap: nowrap; }
.cp-act .cp-close-row .form-control, html[data-density="compact"] .cp-act .cp-close-row .form-control, .cp-act .cp-close-row .cp-cta { min-height: 48px; }
.cp-act .cp-close-row .cp-cta { padding: 8px 22px; }
/* Record page, round 2 (owner, 2026-11-09: "it is still basic, more emphasize, make it more advance"): a hero with the monogram (its ring is the FMCSA colour),
   chips and one-tap Call / Email / Website; the five figures as icon tiles; the Stage tracker right under it, bigger, with gradient dots and "Step N of M";
   a tinted band on every card head; an icon on every fact label; the FMCSA card with a thick colour rail. Tokens only, no width media query. */
.cp-hero { --hk: var(--hm-muted); position: relative; display: flex; flex-direction: column; gap: 18px; padding: 22px; overflow: hidden; border: 1px solid color-mix(in srgb, var(--hk) 30%, var(--hm-line)); border-radius: 24px; background: radial-gradient(90% 170% at 0% 0%, color-mix(in srgb, var(--hm-accent) 17%, var(--hm-panel)), transparent 62%), radial-gradient(70% 150% at 100% 0%, color-mix(in srgb, var(--hk) 14%, var(--hm-panel)), transparent 60%), var(--hm-panel); box-shadow: 0 22px 44px -30px color-mix(in srgb, var(--hm-accent) 75%, transparent); }
.cp-hero-ok { --hk: var(--hm-ok); }
.cp-hero-warn { --hk: var(--hm-warn); }
.cp-hero-bad { --hk: var(--hm-bad); }
.cp-hero-top { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; }
.cp-hero-av { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 78px; height: 78px; border-radius: 26px; background: linear-gradient(145deg, var(--hm-accent), color-mix(in srgb, var(--hm-accent) 55%, var(--hm-ok))); color: #fff; font-size: 29px; font-weight: 800; letter-spacing: .02em; box-shadow: 0 0 0 4px var(--hm-panel), 0 0 0 7px color-mix(in srgb, var(--hk) 75%, transparent), 0 18px 30px -16px var(--hm-accent); }
.cp-hero-id { display: flex; flex: 1 1 280px; flex-direction: column; gap: 6px; min-width: 0; }
.cp-hero-eyebrow { color: var(--hm-fg2); font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.cp-hero-name { margin: 0; color: var(--hm-ink); font-size: 28px; font-weight: 800; letter-spacing: -.025em; line-height: 1.12; overflow-wrap: anywhere; }
.cp-hero-dba { color: var(--hm-fg); font-size: 13.5px; font-weight: 600; }
.cp-hero-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 2px; }
.cp-hero-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border: 1px solid var(--hm-line); border-radius: 99px; background: color-mix(in srgb, var(--hm-panel) 80%, transparent); color: var(--hm-ink); font-size: 12.5px; font-weight: 600; }
.cp-hero-chip .bi { color: var(--hm-accent); font-size: 14px; }
.cp-hero-go { display: flex; flex-wrap: wrap; gap: 10px; }
.cp-hero-btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border-radius: 99px; background: var(--hm-panel); color: var(--hm-ink); font-size: 14px; font-weight: 700; text-decoration: none; box-shadow: inset 0 0 0 1.5px var(--hm-line2), 0 10px 18px -14px var(--hm-ink); transition: transform .14s, box-shadow .14s; }
.cp-hero-btn:hover { transform: translateY(-2px); color: var(--hm-ink); text-decoration: none; box-shadow: inset 0 0 0 1.5px var(--hm-accent), 0 16px 24px -14px var(--hm-accent); }
.cp-hero-btn .bi { color: var(--hm-accent); font-size: 17px; }
.cp-hero .cp-glance { gap: 12px; }
.cp-hero .cp-glance > div { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 11px; align-items: center; padding: 12px 14px; border: 1px solid var(--hm-line); border-radius: 16px; background: color-mix(in srgb, var(--hm-panel) 86%, transparent); }
.cp-hero .cp-glance > div > i { grid-row: 1 / span 2; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 13px; background: color-mix(in srgb, var(--hm-accent) 14%, var(--hm-panel)); color: var(--hm-accent); font-size: 20px; }
.cp-hero .cp-glance b { font-size: 15.5px; }
.cp-detail .hm-card > .hm-head { margin: -18px -18px 4px; padding: 14px 18px; border-bottom: 1px solid color-mix(in srgb, var(--kc, var(--hm-accent)) 20%, var(--hm-line)); border-radius: var(--hm-r) var(--hm-r) 0 0; background: linear-gradient(100deg, color-mix(in srgb, var(--kc, var(--hm-accent)) 15%, var(--hm-panel)), var(--hm-panel) 78%); }
.cp-detail .hm-title { font-size: 17px; }
.cp-fact { transition: border-color .14s, transform .14s; }
.cp-fact:hover { border-color: color-mix(in srgb, var(--kc, var(--hm-accent)) 45%, var(--hm-line)); transform: translateY(-1px); }
.cp-fact > dt { display: flex; align-items: center; gap: 6px; }
.cp-fact > dt > i { flex: none; color: var(--kc, var(--hm-accent)); font-size: 14px; }
.cp-fact > dd { font-size: 15px; }
.cp-detail > .cp-peek-fm { border-left-width: 6px; border-radius: 18px; padding: 16px 18px; }
.cp-detail > .cp-fm-ok { border-left-color: var(--hm-ok); }
.cp-detail > .cp-fm-warn { border-left-color: var(--hm-warn); }
.cp-detail > .cp-fm-bad { border-left-color: var(--hm-bad); }
.cp-detail .cp-peek-fm-ic { width: 50px; height: 50px; border-radius: 16px; font-size: 26px; }
.cp-detail .cp-peek-fm-k { font-size: 16.5px; }
.cp-journey { --d: 56px; padding: 16px 0 6px; }
.cp-jstep:not(:last-child)::after { top: calc(var(--d) / 2 - 3px); height: 6px; }
.cp-jstep.done:not(:last-child)::after { background: linear-gradient(90deg, var(--hm-ok), color-mix(in srgb, var(--hm-ok) 60%, var(--hm-accent))); }
.cp-jdot { font-size: 19px; box-shadow: 0 10px 18px -14px var(--hm-ink); }
.cp-jstep.done .cp-jdot { border-color: transparent; background: linear-gradient(145deg, var(--hm-ok), color-mix(in srgb, var(--hm-ok) 62%, var(--hm-accent))); font-size: 26px; box-shadow: 0 12px 20px -12px var(--hm-ok); }
.cp-jstep.now .cp-jdot { border-color: transparent; background: linear-gradient(145deg, var(--hm-accent), color-mix(in srgb, var(--hm-accent) 60%, var(--hm-ok))); box-shadow: 0 0 0 7px color-mix(in srgb, var(--hm-accent) 20%, transparent), 0 14px 24px -12px var(--hm-accent); }
.cp-jstep > b { font-size: 14.5px; }
.cp-jdot .bi::before { opacity: 0; }
.cp-jdot .bi { font-size: calc(var(--d) * .64); line-height: 1; }
.cp-stagecard .hm-pill { border-color: color-mix(in srgb, var(--kc, var(--hm-accent)) 40%, var(--hm-line)); background: color-mix(in srgb, var(--kc, var(--hm-accent)) 12%, var(--hm-panel)); color: var(--hm-ink); font-weight: 700; }
/* Round 3 (owner, 2026-11-09: "replace that tracker to a well fitting place on the page"): the Stage tracker now lives INSIDE the hero, between the name row and the
   five figures, so the carrier, where it stands and what to do next read as one block. It keeps its own inset panel so the dots run edge to edge in line with
   the "Where it stands" strip under them. */
.cp-hero-track { display: flex; flex-direction: column; gap: 14px; padding: 16px 20px 18px; border: 1px solid color-mix(in srgb, var(--kc, var(--hm-accent)) 26%, var(--hm-line)); border-radius: 20px; background: linear-gradient(180deg, color-mix(in srgb, var(--kc, var(--hm-accent)) 9%, var(--hm-panel)), color-mix(in srgb, var(--hm-panel) 92%, transparent) 70%); }
.cp-hero-tkhead { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.cp-hero-tkhead > h2 { display: inline-flex; align-items: center; gap: 8px; margin: 0; color: var(--hm-fg2); font-size: 11.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.cp-hero-tkhead > h2 .bi { color: var(--kc, var(--hm-accent)); font-size: 18px; }
.cp-hero-tkhead > .hm-sub { margin-left: auto; color: var(--hm-fg2); font-size: 12px; font-weight: 600; }
.cp-hero-track .cp-journey { padding: 6px 0 0; }
.cp-hero-track .cp-next { background: color-mix(in srgb, var(--hm-panel) 88%, transparent); }
/* Ask-for-paperwork page (owner, 2026-11-09: "update the UI of this email page also"): the record page's look. A hero (carrier monogram, chips, Back), a three-step strip
   that jumps to each part, the test / live banner as a coloured band; the form and the email on the left, the Send panel on the right and sticky so the button stays in
   view while the email is read. The two columns become one on a portrait / narrow screen through the shell's width attributes, never a width media query. */
.cp-rq { gap: 18px; }
.cp-rq-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.cp-rq-steps a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--hm-line); border-radius: 16px; background: color-mix(in srgb, var(--hm-panel) 86%, transparent); color: var(--hm-ink); text-decoration: none; transition: transform .14s, border-color .14s, box-shadow .14s; }
.cp-rq-steps a:hover { transform: translateY(-2px); border-color: var(--hm-accent); color: var(--hm-ink); text-decoration: none; box-shadow: 0 14px 22px -16px var(--hm-accent); }
.cp-rq-n { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(145deg, var(--hm-accent), color-mix(in srgb, var(--hm-accent) 58%, var(--hm-ok))); color: #fff; font-size: 16px; font-weight: 800; box-shadow: 0 10px 16px -10px var(--hm-accent); }
.cp-rq-steps b { display: block; color: var(--hm-ink); font-size: 14.5px; font-weight: 700; }
.cp-rq-steps small { display: block; color: var(--hm-fg); font-size: 12px; font-weight: 500; }
.cp-rq-hero .cp-pw-test, .cp-rq-hero .cp-pw-live { align-items: center; padding: 14px 16px; border-left-width: 6px; border-radius: 16px; font-size: 14px; }
.cp-rq-hero .cp-pw-test { border-left-color: var(--hm-accent); }
.cp-rq-hero .cp-pw-live { border-left-color: var(--hm-ok); }
.cp-rq-hero .cp-pw-test > i, .cp-rq-hero .cp-pw-live > i { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 13px; background: var(--hm-accent); color: #fff; font-size: 22px; line-height: 1; }
.cp-rq-hero .cp-pw-live > i { background: var(--hm-ok); }
.cp-rq-hero .cp-pw-test > i::before, .cp-rq-hero .cp-pw-live > i::before { opacity: 0; }
.cp-rq-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; align-items: start; }
.cp-rq-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.cp-rq-side { position: sticky; top: 16px; min-width: 0; }
html[data-orientation="portrait"] .cp-rq-grid, html[data-w1100="1"] .cp-rq-grid, html[data-orientation="phone"] .cp-rq-grid { grid-template-columns: minmax(0, 1fr); }
html[data-orientation="portrait"] .cp-rq-side, html[data-w1100="1"] .cp-rq-side, html[data-orientation="phone"] .cp-rq-side { position: static; }
.cp-rq-lab { display: inline-flex; align-items: center; gap: 7px; }
.cp-rq-lab > i { color: var(--kc, var(--hm-accent)); font-size: 16px; }
.cp-rq .cp-pw-form .form-control, .cp-rq .cp-pw-form .form-select, html[data-density="compact"] .cp-rq .cp-pw-form .form-control, html[data-density="compact"] .cp-rq .cp-pw-form .form-select { min-height: 46px; border-radius: 12px; font-size: 14.5px; }
.cp-rq .cp-pw-form textarea.form-control { min-height: 92px; }
.cp-rq-upd { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border: 1.5px solid color-mix(in srgb, var(--hm-accent) 45%, var(--hm-line)); border-radius: 99px; background: color-mix(in srgb, var(--hm-accent) 9%, var(--hm-panel)); color: var(--hm-accent); font-size: 14px; font-weight: 700; text-decoration: none; transition: transform .14s, box-shadow .14s; }
.cp-rq-upd:hover { transform: translateY(-1px); color: var(--hm-accent); text-decoration: none; box-shadow: 0 12px 20px -14px var(--hm-accent); }
.cp-rq-subject { display: flex; flex-direction: column; gap: 5px; padding: 14px 16px; border: 1px solid color-mix(in srgb, var(--kc, var(--hm-accent)) 30%, var(--hm-line)); border-radius: 16px; background: linear-gradient(135deg, color-mix(in srgb, var(--kc, var(--hm-accent)) 10%, var(--hm-panel)), var(--hm-panel) 80%); }
.cp-rq-subject > b { color: var(--hm-ink); font-size: 17px; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.cp-rq-k, .cp-rq-meta dt { display: flex; align-items: center; gap: 7px; margin: 0; color: var(--hm-fg2); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.cp-rq-k > i, .cp-rq-meta dt > i { color: var(--kc, var(--hm-accent)); font-size: 15px; }
.cp-rq-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 10px; margin: 10px 0 0; }
.cp-rq-meta > div { min-width: 0; padding: 11px 14px; border: 1px solid var(--hm-line); border-radius: 14px; background: var(--hm-panel); }
.cp-rq-meta dd { margin: 4px 0 0; color: var(--hm-ink); font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.cp-rq-meta > .cp-rq-wide { grid-column: 1 / -1; }
.cp-rq-bar { display: flex; align-items: center; gap: 10px; max-width: 680px; margin: 0 auto 10px; color: var(--hm-fg2); font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.cp-rq-dots { display: inline-flex; gap: 5px; }
.cp-rq-dots > span { display: block; width: 9px; height: 9px; border-radius: 50%; background: var(--hm-line2); }
.cp-rq-side .cp-pw-sum { margin: 0 0 14px; padding: 14px 16px; border: 1px solid color-mix(in srgb, var(--hm-ok) 35%, var(--hm-line)); border-radius: 16px; background: linear-gradient(135deg, color-mix(in srgb, var(--hm-ok) 10%, var(--hm-panel)), var(--hm-panel) 80%); font-size: 14.5px; overflow-wrap: anywhere; }
.cp-rq-side .cp-pw-sum > small { margin-top: 6px; }
.cp-rq-side .cp-pw-acts { flex-direction: column; align-items: stretch; gap: 14px; }
.cp-rq-side .cp-pw-acts form { margin: 0; }
.cp-rq-side .cp-pw-acts .hm-btn { width: 100%; justify-content: center; min-height: 48px; font-size: 14.5px; font-weight: 700; }
.cp-rq-side .cp-pw-acts .cp-primary { min-height: 54px; font-size: 15.5px; }
.cp-rq-side .cp-pw-self { max-width: none; padding-top: 14px; border-top: 1px dashed var(--hm-line2); }
/* ---- end Carrier Prospects ---- */

/* ==== Dashboard top row: the two narrow cards fill the row (owner, 2026-11-16, a screenshot of "Receivables & Payables" and "469 loads": "why there is too much space in these boxes here?") ====
   The Margin card beside them is the tallest in the row (it holds the Desk panel: period chips, win-rate ring, two donuts) and the grid stretches every card to its height, so the two
   narrow cards were left with 200+ px of blank. They now use that height: bigger rings spread evenly down the Receivables card; bigger dots, centred between the header and the
   three figures, in the Loads card. Where the row is short (no Desk panel) there is no spare height and nothing changes. */
.hm-rings-card > .hm-row { flex: 1; justify-content: space-evenly; }
.hm-rings-card .hm-gblock svg { width: 150px; height: 150px; }
.hm-dots-body > .hm-ldots { gap: 8px; margin-top: auto; }
.hm-dots-body > .hm-ldots > .hm-ld:not(.ghost) { width: 17px; height: 17px; }
.hm-dots-body > .hm-dleg { margin-bottom: auto; }
.hm-dots-body > .hm-dstats { margin-top: 0; }
/* ==== end Dashboard top row ==== */

/* ==== Our score (credit) ==== */
#credit-ours { min-width: 0; color: var(--hm-fg); }
#credit-ours p, #credit-ours li { overflow-wrap: anywhere; }
#credit-ours .hm-grid, #credit-ours .hm-grid > * { min-width: 0; }
#credit-ours .hm-card { gap: 10px; }
#credit-ours .hm-card > .hm-head { flex-wrap: wrap; gap: 8px; }
#credit-ours .hm-head .hm-title { min-width: 0; overflow-wrap: anywhere; }
#credit-ours > .nav-pills { display: inline-flex; flex-wrap: wrap; gap: 2px; margin: 0 0 12px; padding: 2px; border: 1px solid var(--hm-line); border-radius: 99px; background: var(--hm-bg); }
#credit-ours > .nav-pills .nav-link { display: inline-flex; align-items: center; min-height: 32px; padding: 4px 13px; border-radius: 99px; color: var(--hm-fg2); font-size: 12px; }
#credit-ours > .nav-pills .nav-link.active { background: var(--tat-navy); color: var(--bs-white); }
#credit-ours .nav-pills .nav-link:focus-visible, #credit-ours .os-table a:focus-visible, #credit-ours summary:focus-visible, #credit-ours .os-info:focus-visible { outline: 2px solid var(--hm-ink); outline-offset: 2px; }
#credit-ours .os-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin: 0 0 12px; }
#credit-ours .os-bar .hm-seg { flex: none; max-width: 100%; flex-wrap: wrap; }
#credit-ours .os-bar .hm-seg a, #credit-ours .os-links .hm-lnk { min-height: 32px; }
#credit-ours .os-bar .hm-sub { margin-top: 2px; }
#credit-ours .os-custom { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin: -2px 0 12px; }
#credit-ours .os-custom label { display: inline-flex; align-items: center; gap: 6px; margin: 0; color: var(--hm-fg2); font-size: 12px; }
#credit-ours .os-custom .form-control { width: auto; min-width: 140px; font-variant-numeric: tabular-nums; }
#credit-ours .os-custom .hm-btn { min-height: 32px; }
#credit-ours > .os-note { margin: -2px 0 12px; }
#credit-ours .os-tone-ok { --os-tone: var(--hm-ok); --kc: var(--hm-ok); }
#credit-ours .os-tone-watch, #credit-ours .os-tone-warn { --os-tone: var(--hm-warn); --kc: var(--hm-warn); }
#credit-ours .os-tone-late, #credit-ours .os-tone-bad { --os-tone: var(--hm-bad); --kc: var(--hm-bad); }
#credit-ours .os-tone-severe, #credit-ours .os-tone-crit { --os-tone: var(--hm-crit); --kc: var(--hm-crit); }
#credit-ours .os-tone-new { --os-tone: var(--hm-muted); --kc: var(--hm-muted); }
#credit-ours .os-accent { --kc: var(--hm-accent); }
#credit-ours .os-warn { --kc: var(--hm-warn); }

#credit-ours .os-info { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; flex: none; border-radius: 50%; color: var(--hm-fg2); cursor: help; }
#credit-ours .os-info-pop { position: absolute; z-index: 20; top: calc(100% + 7px); right: 0; display: block; visibility: hidden; width: 320px; max-width: 320px; padding: 11px 13px; border: 1px solid var(--hm-line); border-radius: 12px; background: var(--hm-panel); box-shadow: var(--tat-shadow-pop); color: var(--hm-fg); font-size: 12px; font-weight: 400; line-height: 1.45; opacity: 0; }
#credit-ours .os-info:hover .os-info-pop, #credit-ours .os-info:focus-within .os-info-pop { visibility: visible; opacity: 1; }
#credit-ours .os-info-pop > span { display: block; }
#credit-ours .os-info-pop > span + span { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--hm-line); }
#credit-ours .os-note { display: flex; align-items: flex-start; gap: 7px; margin: 0; padding: 7px 10px; border: 1px solid var(--hm-line); border-radius: 10px; background: var(--hm-bg); color: var(--hm-fg); font-size: 12px; line-height: 1.4; }
#credit-ours .os-note i { flex: none; margin-top: 2px; color: var(--hm-accent); }

#credit-ours .os-hero-body { display: grid; grid-template-columns: 150px minmax(0, 1fr); align-items: center; gap: 16px; flex: 1; }
#credit-ours .os-gauge { position: relative; width: 150px; height: 150px; }
#credit-ours .os-gauge svg { display: block; width: 100%; height: 100%; }
#credit-ours .os-gauge circle { fill: none; stroke-width: 14; }
#credit-ours .os-gauge-track { stroke: var(--hm-soft); }
#credit-ours .os-gauge-arc { stroke: var(--os-tone); stroke-linecap: round; }
#credit-ours .os-gauge-value { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
#credit-ours .os-gauge-value b { color: var(--hm-ink); font-size: 32px; font-weight: 600; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
#credit-ours .os-gauge-value span { margin-top: 4px; color: var(--hm-fg2); font-size: 11px; }
#credit-ours .os-hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; min-width: 0; }
#credit-ours .os-hero-copy p { margin: 0; }
#credit-ours .os-grade-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
#credit-ours .os-grade { min-width: 36px; padding: 2px 9px; color: var(--os-tone); background: color-mix(in srgb, var(--os-tone) 14%, transparent); font-size: 14px; text-align: center; }
#credit-ours .os-grade-label { color: var(--hm-ink); font-size: 17px; font-weight: 600; line-height: 1.2; }
#credit-ours .os-delta { display: inline-flex; align-items: flex-start; gap: 5px; padding: 3px 8px; color: var(--os-tone); white-space: normal; font-size: 11px; line-height: 1.4; }
#credit-ours .os-delta i { flex: none; margin-top: 2px; }

#credit-ours .os-band-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; gap: 10px; flex: 1; }
#credit-ours .os-band-group { display: grid; grid-template-columns: 116px minmax(0, 1fr); align-items: center; gap: 6px; min-width: 0; }
#credit-ours .os-band-donut { width: 116px; height: 116px; }
#credit-ours .os-band-donut svg { width: 116px; height: 116px; }
#credit-ours .os-band-donut circle { fill: none; stroke-width: 18; }
#credit-ours .os-donut-track { stroke: var(--hm-soft); }
#credit-ours .os-donut-seg { stroke: var(--os-tone); }
#credit-ours .os-band-donut .hm-dn-c { padding: 21%; }
#credit-ours .os-band-donut .hm-dn-c span { font-size: 9px; line-height: 1.2; }
#credit-ours .os-band-group .hm-dlist { min-width: 0; width: 100%; }
#credit-ours .os-band { gap: 4px; padding: 4px 2px; font-size: 11px; }
#credit-ours .os-band .hm-sw { width: 7px; height: 7px; margin-right: 2px; background: var(--os-tone); }
#credit-ours .os-band .sh { width: 28px; font-size: 10px; }

#credit-ours .os-tiles { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-bottom: 0; }
#credit-ours .os-tiles .hm-tile { gap: 1px; min-height: 84px; padding: 8px 10px 8px 14px; }
#credit-ours .os-tiles .hm-big { font-size: 21px; }
#credit-ours .os-tiles .hm-sub { overflow: hidden; font-size: 10.5px; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
#credit-ours .os-tiles .hm-mlab { font-size: 10px; }
#credit-ours .os-tiles .hm-ic { width: 22px; height: 22px; font-size: 11px; }

#credit-ours .os-insights { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; list-style: none; }
#credit-ours .os-insight { display: flex; align-items: flex-start; gap: 8px; padding: 8px 10px; border-left: 3px solid var(--os-tone); border-radius: 9px; background: color-mix(in srgb, var(--os-tone) 7%, var(--hm-panel)); color: var(--hm-fg); font-size: 12px; line-height: 1.4; }
#credit-ours .os-insight > i { flex: none; margin-top: 2px; color: var(--os-tone); }
#credit-ours .os-insight[data-tone="over"] { --os-tone: var(--hm-crit); }
#credit-ours .os-insight[data-tone="near"] { --os-tone: var(--hm-warn); }
#credit-ours .os-insight[data-tone="ok"] { --os-tone: var(--hm-ok); }
#credit-ours .os-insight[data-tone="none"] { --os-tone: var(--hm-muted); }
#credit-ours .os-wait-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
#credit-ours .os-wait { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 9px 11px; border: 1px solid var(--hm-line); border-radius: 12px; background: var(--hm-bg); }
#credit-ours .os-wait .hm-big { font-size: 24px; }
#credit-ours .os-recoveries { display: flex; flex-direction: column; }
#credit-ours .os-recovery { display: flex; align-items: flex-start; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--hm-line); font-size: 12px; line-height: 1.4; }
#credit-ours .os-recovery:last-child { border-bottom: 0; }
#credit-ours .os-target-pill { flex: none; padding: 2px 8px; color: var(--hm-accent); }

#credit-ours .hm-scroll { max-width: 100%; overflow: auto; border: 1px solid var(--hm-line); border-radius: 12px; background: var(--hm-panel); }
#credit-ours .os-queue-scroll { max-height: 420px; }
#credit-ours .os-table { width: 100%; min-width: 780px; margin: 0; font-size: 13px; font-variant-numeric: tabular-nums; }
#credit-ours .os-table > thead th { position: sticky; top: 0; z-index: 1; padding: 8px 10px; border-bottom: 1px solid var(--hm-line); background: var(--hm-panel); color: var(--hm-fg2); font-size: 11px; font-weight: 600; white-space: nowrap; }
#credit-ours .os-table > tbody td, #credit-ours .os-table > tbody th { padding: 8px 10px; border-bottom: 1px solid var(--hm-line); vertical-align: middle; }
#credit-ours .os-table > tbody tr:last-child > * { border-bottom: 0; }
#credit-ours .os-table tbody tr[data-band] > td:first-child { box-shadow: inset 3px 0 0 var(--os-tone); }
#credit-ours .os-table tbody tr[data-band]:hover > td { background: var(--hm-soft); }
#credit-ours .os-table a { display: inline-flex; align-items: center; min-height: 24px; color: var(--hm-accent); text-decoration: none; }
#credit-ours .os-age, #credit-ours .os-next, #credit-ours .os-paper { padding: 1px 7px; font-size: 10.5px; }
#credit-ours .os-age { color: var(--os-tone); background: color-mix(in srgb, var(--os-tone) 14%, transparent); font-variant-numeric: tabular-nums; }
#credit-ours .os-next { color: var(--hm-fg); background: var(--hm-soft); font-weight: 500; }
#credit-ours .os-paper { color: var(--hm-warn); background: color-mix(in srgb, var(--hm-warn) 12%, transparent); }
#credit-ours .os-waiting { display: flex; flex-wrap: wrap; gap: 3px; min-width: 110px; }
#credit-ours .os-money { white-space: nowrap; }
#credit-ours .os-payee { max-width: 240px; min-width: 140px; overflow: hidden; color: var(--hm-ink); font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
#credit-ours [data-os="queue"] > .hm-head .hm-pill { padding: 2px 8px; font-size: 11px; }

#credit-ours .os-dat-body { display: grid; grid-template-columns: 260px minmax(0, 1fr); align-items: center; gap: 16px; }
#credit-ours .os-dat-now { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
#credit-ours .os-dat-stat { display: flex; flex-direction: column; gap: 2px; padding: 9px 11px; border: 1px solid var(--hm-line); border-radius: 12px; background: var(--hm-bg); }
#credit-ours .os-dat-stat .hm-big { color: var(--hm-ink); font-size: 24px; font-variant-numeric: tabular-nums; }
#credit-ours .os-dat-stat .hm-sub { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#credit-ours .os-dat-stat-row { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
#credit-ours .os-dat-risk { color: var(--os-tone); }
#credit-ours .os-dat-chart { min-width: 0; margin: 0; }
#credit-ours .os-dat-chart svg { display: block; width: 100%; height: 220px; }
#credit-ours .os-dat-zone-low { --zone: var(--hm-ok); }
#credit-ours .os-dat-zone-medium { --zone: var(--hm-warn); }
#credit-ours .os-dat-zone-high { --zone: var(--hm-bad); }
#credit-ours .os-dat-zone { fill: color-mix(in srgb, var(--zone) 5%, transparent); }
#credit-ours .os-dat-grid { stroke: var(--hm-line); stroke-width: .7; vector-effect: non-scaling-stroke; }
#credit-ours .os-dat-axis { fill: var(--hm-fg2); font-size: 11px; font-variant-numeric: tabular-nums; }
#credit-ours .os-dat-year { fill: var(--hm-ink); font-weight: 600; }
#credit-ours .os-dat-line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
#credit-ours .os-dat-dot { fill: var(--dat-c); stroke: var(--hm-panel); stroke-width: 2; vector-effect: non-scaling-stroke; }
#credit-ours .os-dat-dat_score, #credit-ours .os-dat-our_score { --dat-c: var(--hm-warn); }
#credit-ours .os-dat-dat_dtp, #credit-ours .os-dat-our_dtp { --dat-c: var(--hm-accent); }
#credit-ours .os-dat-line.os-dat-dat_score, #credit-ours .os-dat-line.os-dat-dat_dtp, #credit-ours .os-dat-line.os-dat-our_score, #credit-ours .os-dat-line.os-dat-our_dtp { stroke: var(--dat-c); }
#credit-ours .os-dat-line.os-dat-our_score, #credit-ours .os-dat-line.os-dat-our_dtp { stroke-dasharray: 6 5; opacity: .8; }
#credit-ours .os-dat-dot.os-dat-our_score, #credit-ours .os-dat-dot.os-dat-our_dtp { opacity: .85; }
#credit-ours .os-dat-legend { display: flex; flex-wrap: wrap; gap: 5px 7px; margin-top: 6px; color: var(--hm-fg2); font-size: 10.5px; }
#credit-ours .os-dat-key, #credit-ours .os-dat-zonekey { display: inline-flex; align-items: center; gap: 5px; padding: 2px 7px; border: 1px solid var(--hm-line); border-radius: 99px; background: var(--hm-bg); }
#credit-ours .os-dat-key i { display: inline-block; width: 15px; height: 0; border-top: 2px solid var(--dat-c); }
#credit-ours .os-dat-key.os-dat-our_score i, #credit-ours .os-dat-key.os-dat-our_dtp i { border-top-style: dashed; }
#credit-ours .os-dat-zonekey i { display: inline-block; width: 9px; height: 9px; border: 1px solid var(--zone); border-radius: 3px; background: color-mix(in srgb, var(--zone) 15%, transparent); }
#credit-ours .os-dat-more > summary, #credit-ours .os-dat-form > summary { display: inline-flex; align-items: center; min-height: 30px; color: var(--hm-accent); font-size: 12px; font-weight: 600; cursor: pointer; }
#credit-ours .os-dat-more > .hm-scroll { max-height: 280px; margin-top: 7px; }
#credit-ours .os-dat-table { min-width: 760px; font-size: 12px; }
#credit-ours .os-dat-table > thead th, #credit-ours .os-dat-table > tbody td, #credit-ours .os-dat-table > tbody th { padding: 6px 8px; white-space: nowrap; }
#credit-ours .os-dat-table tbody th { position: sticky; left: 0; background: var(--hm-panel); color: var(--hm-ink); font-weight: 600; }
#credit-ours .os-dat-table tr.os-dat-ours td, #credit-ours .os-dat-table tr.os-dat-ours th { color: var(--hm-fg2); }
#credit-ours .os-dat-form form { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; margin-top: 7px; max-width: 100%; }
#credit-ours .os-dat-form form > p { margin: 0; }
#credit-ours .os-dat-form form > .hm-scroll { align-self: stretch; max-height: 320px; }
#credit-ours .os-dat-inputs { max-width: 520px; font-size: 12px; }
#credit-ours .os-dat-inputs .form-control { min-width: 80px; padding: 3px 7px; font-variant-numeric: tabular-nums; }

#credit-ours .os-month-scroll { max-width: 100%; overflow-x: auto; padding-bottom: 3px; }
#credit-ours .os-month-plot { position: relative; min-width: 520px; padding-right: 54px; }
#credit-ours .os-months { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(12, minmax(32px, 1fr)); gap: 4px; }
#credit-ours .os-month { display: grid; grid-template-rows: 18px 190px 30px; min-width: 0; text-align: center; }
#credit-ours .os-month-score { color: var(--hm-ink); font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; }
#credit-ours .os-month-track { display: flex; align-items: flex-end; justify-content: center; height: 190px; overflow: hidden; border-bottom: 1px solid var(--hm-line); border-radius: 6px 6px 0 0; background: color-mix(in srgb, var(--os-tone) 5%, var(--hm-panel)); }
#credit-ours .os-month-bar { display: block; width: min(100%, 28px); height: calc(var(--p, 0) * 1.9px); min-height: 3px; max-height: 100%; border-radius: 6px 6px 0 0; background: var(--os-tone); }
#credit-ours .os-month-bar.is-empty { height: 100%; min-height: 0; border: 1px dashed var(--hm-line2); border-bottom: 0; background: color-mix(in srgb, var(--hm-muted) 5%, var(--hm-panel)); }
#credit-ours .os-month-label { overflow: hidden; padding-top: 4px; color: var(--hm-fg2); font-size: 11px; line-height: 13px; white-space: nowrap; }
#credit-ours .os-month-label small { display: block; color: var(--hm-ink); font-size: 10px; font-weight: 600; }
#credit-ours .os-target { position: absolute; z-index: 2; right: 54px; bottom: calc(30px + var(--t) * 1.9px); left: 0; border-top: 1px dashed var(--hm-fg2); opacity: .55; pointer-events: none; }
#credit-ours .os-target > span { position: absolute; right: -54px; bottom: -7px; width: 50px; color: var(--hm-fg); font-size: 10px; font-weight: 600; line-height: 1.2; text-align: right; white-space: nowrap; }

#credit-ours .os-payee-groups { display: flex; flex-direction: column; gap: 14px; max-height: 330px; overflow-y: auto; padding-right: 4px; }
#credit-ours .os-payee-group-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 3px; }
#credit-ours .os-payee-group-head h3 { margin: 0; }
#credit-ours .os-payee-group-head .hm-pill { padding: 1px 7px; font-size: 10px; }
#credit-ours .os-payee-row { padding: 8px 0; border-bottom: 1px solid var(--hm-line); }
#credit-ours .os-payee-row:last-child { border-bottom: 0; }
#credit-ours .os-payee-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(60px, 30%) 42px; align-items: center; gap: 9px; }
#credit-ours .os-payee-name { overflow: hidden; color: var(--hm-ink); font-size: 13px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
#credit-ours .os-share-track { display: block; width: 100%; height: 6px; overflow: hidden; border-radius: 99px; background: var(--hm-soft); }
#credit-ours .os-share-bar { display: block; width: calc(var(--p, 0) * 1%); height: 100%; border-radius: inherit; background: var(--hm-accent); }
#credit-ours .os-share { color: var(--hm-ink); font-size: 12px; text-align: right; font-variant-numeric: tabular-nums; }
#credit-ours .os-payee-meta { margin-top: 3px; color: var(--hm-fg2); font-size: 10.5px; line-height: 1.45; font-variant-numeric: tabular-nums; }

#credit-ours .os-how-summary { display: flex; align-items: center; gap: 10px; min-height: 32px; cursor: pointer; }
#credit-ours .os-how p { margin: 0; font-size: 12px; }
#credit-ours .os-how-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 18px; }
#credit-ours .os-how-grid h3 { margin: 0 0 6px; color: var(--hm-fg); font-weight: 600; }
#credit-ours .os-rule-table { width: 100%; margin-bottom: 7px; border-collapse: collapse; font-size: 12px; }
#credit-ours .os-rule-table th, #credit-ours .os-rule-table td { padding: 5px 8px; border-bottom: 1px solid var(--hm-line); text-align: left; }
#credit-ours .os-rule-table th { color: var(--hm-fg2); font-weight: 600; }
#credit-ours .os-grades { display: flex; flex-wrap: wrap; gap: 5px 8px; margin: 9px 0; padding: 0; list-style: none; }
#credit-ours .os-grades li { display: flex; align-items: center; gap: 6px; font-size: 12px; }
#credit-ours .os-links { display: flex; flex-wrap: wrap; gap: 8px; }

html[data-orientation="portrait"] #credit-ours .os-band-groups, html[data-w1100="1"] #credit-ours .os-band-groups { grid-template-columns: minmax(0, 1fr); }
html[data-orientation="portrait"] #credit-ours .os-tiles, html[data-w1000="1"] #credit-ours .os-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
html[data-w620="1"] #credit-ours .os-tiles, html[data-orientation="phone"] #credit-ours .os-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
html[data-w620="1"] #credit-ours .os-hero-body, html[data-orientation="phone"] #credit-ours .os-hero-body, html[data-w620="1"] #credit-ours .os-dat-body, html[data-orientation="phone"] #credit-ours .os-dat-body { grid-template-columns: minmax(0, 1fr); }
html[data-w620="1"] #credit-ours .os-hero-copy, html[data-orientation="phone"] #credit-ours .os-hero-copy { align-items: center; text-align: center; }
html[data-w620="1"] #credit-ours .os-gauge, html[data-orientation="phone"] #credit-ours .os-gauge { justify-self: center; }
html[data-w620="1"] #credit-ours .os-info-pop, html[data-orientation="phone"] #credit-ours .os-info-pop { width: 280px; max-width: 280px; }
/* ==== end Our score (credit) ==== */

/* ==== Customers credit ==== */
#credit-customers, #credit-customer { min-width: 0; color: var(--hm-fg); }
#credit-customers p, #credit-customers li, #credit-customer p, #credit-customer li { overflow-wrap: anywhere; }
#credit-customers .hm-grid, #credit-customers .hm-grid > *, #credit-customer .hm-grid, #credit-customer .hm-grid > * { min-width: 0; }
#credit-customers .hm-card, #credit-customer .hm-card { gap: 10px; }
#credit-customers .hm-card > .hm-head, #credit-customer .hm-card > .hm-head { flex-wrap: wrap; gap: 8px; }
#credit-customers .hm-head .hm-title, #credit-customer .hm-head .hm-title { min-width: 0; overflow-wrap: anywhere; }
#credit-customers > .nav-pills { display: inline-flex; flex-wrap: wrap; gap: 2px; margin: 0 0 12px; padding: 2px; border: 1px solid var(--hm-line); border-radius: 99px; background: var(--hm-bg); }
#credit-customers > .nav-pills .nav-link { display: inline-flex; align-items: center; min-height: 32px; padding: 4px 13px; border-radius: 99px; color: var(--hm-fg2); font-size: 12px; }
#credit-customers > .nav-pills .nav-link.active { background: var(--tat-navy); color: var(--bs-white); }
#credit-customers .cu-tone-ok, #credit-customer .cu-tone-ok { --cu-tone: var(--hm-ok); --kc: var(--hm-ok); }
#credit-customers .cu-tone-near, #credit-customer .cu-tone-near { --cu-tone: var(--hm-warn); --kc: var(--hm-warn); }
#credit-customers .cu-tone-over, #credit-customer .cu-tone-over { --cu-tone: var(--hm-crit); --kc: var(--hm-crit); }
#credit-customers .cu-tone-none, #credit-customer .cu-tone-none { --cu-tone: var(--hm-muted); --kc: var(--hm-muted); }
#credit-customers .cu-tone-bad, #credit-customer .cu-tone-bad { --cu-tone: var(--hm-bad); --kc: var(--hm-bad); }
#credit-customers .cu-tone-accent, #credit-customer .cu-tone-accent { --cu-tone: var(--hm-accent); --kc: var(--hm-accent); }
#credit-customers a:focus-visible, #credit-customers input:focus-visible, #credit-customer a:focus-visible,
#credit-customer input:focus-visible, #credit-customer button:focus-visible { outline: 2px solid var(--hm-ink); outline-offset: 2px; }

#credit-customers .cu-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin: 0 0 12px; }
#credit-customers .cu-overview { width: 100%; }
#credit-customers .cu-overview-grid { display: grid; grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1.5fr)); gap: 16px; width: 100%; }
#credit-customers .cu-overview-body { display: grid; grid-template-columns: 128px minmax(0, 1fr); align-items: center; gap: 14px; flex: 1; }
#credit-customers .cu-gauge, #credit-customer .cu-gauge { position: relative; width: 128px; height: 128px; flex: none; }
#credit-customers .cu-gauge svg, #credit-customer .cu-gauge svg { display: block; width: 100%; height: 100%; }
#credit-customers .cu-gauge circle, #credit-customer .cu-gauge circle { fill: none; stroke-width: 14; }
#credit-customers .cu-gauge-track, #credit-customer .cu-gauge-track { stroke: var(--hm-soft); }
#credit-customers .cu-gauge-arc, #credit-customer .cu-gauge-arc { stroke: var(--cu-tone); stroke-linecap: round; }
#credit-customers .cu-gauge-value, #credit-customer .cu-gauge-value { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
#credit-customers .cu-gauge-value b, #credit-customer .cu-gauge-value b { color: var(--hm-ink); font-size: 28px; font-weight: 600; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
#credit-customers .cu-gauge-value span, #credit-customer .cu-gauge-value span { margin-top: 5px; color: var(--hm-fg2); font-size: 11px; }
#credit-customers .cu-figs { min-width: 0; }
#credit-customers .cu-fig { min-height: 0; padding: 5px 7px; border-bottom: 1px solid var(--hm-line); border-radius: 0; font-size: 12px; }
#credit-customers .cu-fig:last-child { border-bottom: 0; }
#credit-customers .cu-fig-main .nm, #credit-customers .cu-fig-main .vl { color: var(--hm-ink); font-weight: 600; }
#credit-customers [aria-labelledby="cu-standing-title"] { display: grid; grid-template-columns: 128px minmax(0, 1fr); align-items: center; }
#credit-customers [aria-labelledby="cu-standing-title"] > .hm-head, #credit-customers [aria-labelledby="cu-standing-title"] > .cu-notes { grid-column: 1 / -1; }
#credit-customers .cu-standing-donut { width: 128px; height: 128px; }
#credit-customers .cu-standing-donut svg { width: 128px; height: 128px; }
#credit-customers .cu-standing-donut circle { fill: none; stroke-width: 18; }
#credit-customers .cu-donut-track { stroke: var(--hm-soft); }
#credit-customers .cu-donut-seg { stroke: var(--cu-tone); }
#credit-customers .cu-standing-donut + .hm-dlist { min-width: 0; }
#credit-customers .cu-standing { min-height: 0; gap: 5px; padding: 5px 4px; cursor: pointer; font-size: 11px; text-decoration: none; }
#credit-customers .cu-standing:hover { background: var(--hm-soft); color: var(--hm-fg); text-decoration: none; }
#credit-customers .cu-standing .hm-sw { width: 7px; height: 7px; margin-right: 2px; background: var(--cu-tone); }
#credit-customers .cu-standing > .bi { color: var(--cu-tone); }
#credit-customers .cu-standing[aria-current="true"] { background: color-mix(in srgb, var(--cu-tone) 12%, var(--hm-panel)); box-shadow: inset 3px 0 0 var(--cu-tone); }
#credit-customers .cu-notes { display: flex; flex-wrap: wrap; gap: 5px; margin-top: auto; }
#credit-customers .cu-note { display: inline-flex; align-items: flex-start; gap: 5px; max-width: 100%; padding: 2px 7px; color: var(--hm-fg); background: var(--hm-bg); white-space: normal; font-size: 10.5px; line-height: 1.35; }
#credit-customers .cu-note > i { flex: none; margin-top: 2px; }
#credit-customers .cu-note.cu-tone-none { color: var(--cu-tone); }
#credit-customers .cu-bad, #credit-customer .cu-bad { color: var(--hm-bad); }
#credit-customers .cu-grades { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); align-items: center; gap: 7px; flex: 1; }
#credit-customers .cu-grade { display: grid; grid-template-rows: 18px 90px 20px; gap: 3px; min-width: 0; text-align: center; }
#credit-customers .cu-grade > b { color: var(--hm-ink); font-size: 12px; font-variant-numeric: tabular-nums; }
#credit-customers .cu-grade-track { display: flex; align-items: flex-end; justify-content: center; height: 90px; overflow: hidden; border-bottom: 1px solid var(--hm-line); border-radius: 6px 6px 0 0; background: color-mix(in srgb, var(--cu-tone) 5%, var(--hm-panel)); }
#credit-customers .cu-grade-track > span { display: block; width: min(100%, 24px); height: calc(var(--p, 0) * 1%); max-height: 100%; border-radius: 6px 6px 0 0; background: var(--cu-tone); }
#credit-customers .cu-grade-letter { color: var(--cu-tone); font-size: 13px; font-weight: 600; line-height: 20px; }

#credit-customers .cu-filter { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
#credit-customers .cu-pills { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; min-width: 0; }
#credit-customers .cu-pill { min-height: 32px; padding: 3px 10px; font-size: 11.5px; }
#credit-customers .cu-pill > .bi { color: var(--cu-tone, currentColor); }
#credit-customers .cu-pill[aria-current="true"] > .bi { color: currentColor; }
#credit-customers .cu-pill .hm-pill { padding: 1px 6px; color: inherit; font-size: 10px; font-variant-numeric: tabular-nums; }
#credit-customers .cu-pill[aria-current="true"] .hm-pill { background: transparent; border-color: color-mix(in srgb, currentColor 45%, transparent); }
#credit-customers .cu-search { position: relative; width: 260px; max-width: 100%; margin-left: auto; }
#credit-customers .cu-search > i { position: absolute; left: 13px; top: 50%; z-index: 1; color: var(--hm-fg2); transform: translateY(-50%); pointer-events: none; }
#credit-customers .cu-search .form-control { min-height: 34px; padding: 4px 12px 4px 36px; border-color: var(--hm-line2); border-radius: 99px; background: var(--hm-panel); color: var(--hm-fg); font-size: 12px; }

#credit-customers .cu-list, #credit-customer .cu-list { padding: 0; overflow: hidden; }
#credit-customers .cu-list > .hm-head, #credit-customer .cu-list > .hm-head { padding: 14px 14px 0; }
#credit-customers .cu-list > .hm-scroll, #credit-customer .cu-list > .hm-scroll { max-width: calc(100% - 28px); margin: 0 14px 14px; overflow: auto; border: 1px solid var(--hm-line); border-radius: 12px; background: var(--hm-panel); }
#credit-customers .cu-list-scroll { max-height: calc(var(--vh-px, 860px) - 120px); }
#credit-customers .cu-table, #credit-customer .cu-table { width: 100%; min-width: 1080px; margin: 0; font-size: 13px; font-variant-numeric: tabular-nums; }
#credit-customers .cu-table > thead th, #credit-customer .cu-table > thead th { position: sticky; top: 0; z-index: 1; padding: 7px 10px; border-bottom: 1px solid var(--hm-line); background: var(--hm-panel); color: var(--hm-fg2); font-size: 11px; font-weight: 600; text-align: left; white-space: nowrap; }
#credit-customers .cu-table > tbody > tr > td, #credit-customer .cu-table > tbody > tr > td { padding: 6px 10px; border-bottom: 1px solid var(--hm-line); vertical-align: middle; }
#credit-customers .cu-table > tbody > tr:last-child > td, #credit-customer .cu-table > tbody > tr:last-child > td { border-bottom: 0; }
#credit-customers .cu-table > tbody > tr:hover > td, #credit-customer .cu-table > tbody > tr:hover > td { background: var(--hm-soft); }
#credit-customers .cu-table .num, #credit-customer .cu-table .num { text-align: right; white-space: nowrap; }
#credit-customers .cu-table a, #credit-customer .cu-table a { display: inline-flex; align-items: center; min-height: 24px; color: var(--hm-accent); text-decoration: none; }
#credit-customers .cu-party { display: flex; align-items: center; gap: 8px; min-width: 180px; }
#credit-customers .cu-avatar, #credit-customer .cu-avatar { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; flex: none; border: 1px solid color-mix(in srgb, var(--cu-tone) 20%, transparent); border-radius: 9px; background: color-mix(in srgb, var(--cu-tone) 14%, var(--hm-panel)); color: var(--cu-tone); font-size: 11px; font-weight: 600; }
#credit-customers .cu-party-copy, #credit-customer .cu-party-copy { display: flex; flex-direction: column; min-width: 0; }
#credit-customers .cu-party-copy a { max-width: 220px; overflow: hidden; color: var(--hm-ink); font-size: 13px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
#credit-customers .cu-party-copy small, #credit-customer .cu-party-copy small { color: var(--hm-fg2); font-size: 10.5px; line-height: 1.35; overflow-wrap: anywhere; }
#credit-customers .cu-meter { min-width: 185px; }
#credit-customers .cu-meter-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-bottom: 4px; color: var(--hm-fg2); font-size: 11px; }
#credit-customers .cu-meter-top > span:first-child { min-width: 0; overflow-wrap: anywhere; }
#credit-customers .cu-meter-top > b, #credit-customers .cu-meter-top > span:last-child { flex: none; color: var(--cu-tone); white-space: nowrap; }
#credit-customers .cu-meter-top > span:first-child > b { color: var(--hm-ink); }
#credit-customers .cu-track, #credit-customer .cu-track { height: 6px; overflow: hidden; border-radius: 99px; background: var(--hm-soft); }
#credit-customers .cu-track > span, #credit-customer .cu-track > span { display: block; width: calc(var(--p, 0) * 1%); max-width: 100%; height: 100%; border-radius: inherit; background: var(--cu-tone, var(--hm-accent)); }
#credit-customers .cu-track.is-none, #credit-customer .cu-track.is-none { background: color-mix(in srgb, var(--hm-muted) 12%, var(--hm-panel)); }
#credit-customers .cu-money { font-weight: 600; white-space: nowrap; }
#credit-customers .cu-age, #credit-customer .cu-age { display: inline-flex; margin-top: 2px; padding: 1px 6px; color: var(--cu-tone); background: color-mix(in srgb, var(--cu-tone) 14%, transparent); font-size: 10px; font-variant-numeric: tabular-nums; }
#credit-customers .cu-chip, #credit-customer .cu-chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 7px; color: var(--cu-tone); background: color-mix(in srgb, var(--cu-tone) 14%, transparent); font-size: 10.5px; }
#credit-customers .cu-score { display: flex; align-items: center; gap: 6px; min-width: 145px; }
#credit-customers .cu-grade-badge { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; flex: none; border-radius: 50%; background: color-mix(in srgb, var(--cu-tone) 14%, transparent); color: var(--cu-tone); font-size: 13px; font-weight: 600; }
#credit-customers .cu-score-copy { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
#credit-customers .cu-score-copy > b { color: var(--hm-ink); }
#credit-customers .cu-score-copy > small { color: var(--hm-fg2); font-size: 10px; overflow-wrap: anywhere; }
#credit-customers .cu-when { display: flex; flex-direction: column; min-width: 92px; }
#credit-customers .cu-when > b { color: var(--hm-fg); font-size: 11px; font-weight: 500; white-space: nowrap; }
#credit-customers .cu-when > small { color: var(--hm-fg2); font-size: 10px; white-space: nowrap; }

#credit-customer .cu-limit-amount { overflow-wrap: anywhere; font-size: 32px; }
#credit-customer .cu-customer { display: flex; align-items: center; gap: 9px; min-width: 0; }
#credit-customer .cu-customer-name { overflow: hidden; color: var(--hm-ink); font-size: 14px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
#credit-customer .cu-limit-track { background: color-mix(in srgb, var(--cu-tone) 10%, var(--hm-panel)); }
#credit-customer .cu-limit-figs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: auto; }
#credit-customer .cu-fig { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 3px 10px; border-left: 1px solid var(--hm-line); }
#credit-customer .cu-fig:first-child { padding-left: 0; border-left: 0; }
#credit-customer .cu-fig > span { color: var(--hm-fg2); font-size: 11px; }
#credit-customer .cu-fig > b { color: var(--hm-ink); font-size: 16px; font-weight: 600; line-height: 1.2; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
#credit-customer .cu-score-layout { display: flex; flex-direction: column; gap: 8px; flex: 1; }
#credit-customer .cu-score-hero { display: grid; grid-template-columns: 128px minmax(0, 1fr); align-items: center; gap: 14px; min-width: 0; }
#credit-customer .cu-score-gauge .cu-gauge-value b { font-size: 34px; }
#credit-customer .cu-score-summary { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
#credit-customer .cu-score-label { color: var(--hm-ink); font-size: 18px; font-weight: 600; line-height: 1.2; overflow-wrap: anywhere; }
#credit-customer .cu-factors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px 14px; margin-top: auto; }
#credit-customer .cu-factor { min-width: 0; padding: 5px 2px; border-bottom: 1px solid var(--hm-line); }
#credit-customer .cu-factor-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-bottom: 4px; color: var(--hm-fg2); font-size: 11px; }
#credit-customer .cu-factor-top > span { min-width: 0; overflow-wrap: anywhere; }
#credit-customer .cu-factor-top > b { flex: none; color: var(--cu-tone); font-size: 11px; text-align: right; font-variant-numeric: tabular-nums; }
#credit-customer .cu-factor .cu-track { height: 5px; }
#credit-customer .cu-factor:last-child .cu-factor-top { margin-bottom: 0; }
#credit-customer .cu-parts { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 9px; margin-bottom: 0; }
#credit-customer .cu-parts .hm-tile { gap: 1px; min-height: 70px; padding: 7px 9px 7px 12px; }
#credit-customer .cu-parts .hm-ic { width: 20px; height: 20px; font-size: 10px; }
#credit-customer .cu-parts .hm-mlab { font-size: 9.5px; }
#credit-customer .cu-parts .hm-big { font-size: 18px; }
#credit-customer .cu-parts .hm-sub { font-size: 10px; }
#credit-customer .cu-aging-strip { display: flex; height: 8px; overflow: hidden; border-radius: 99px; background: var(--hm-soft); }
#credit-customer .cu-aging-strip > span { flex: var(--p, 0) 1 0; min-width: 0; background: var(--cu-tone); }
#credit-customer .cu-aging { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
#credit-customer .cu-aging-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 3px; min-width: 0; padding: 4px 5px; }
#credit-customer .cu-aging-item .hm-sw { width: 7px; height: 7px; margin-right: 2px; background: var(--cu-tone); }
#credit-customer .cu-aging-item > small { color: var(--hm-fg2); font-size: 10px; overflow-wrap: anywhere; }
#credit-customer .cu-aging-item > b { color: var(--hm-ink); font-size: 11px; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
#credit-customer .cu-side, #credit-customer .cu-history-only { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
#credit-customer .cu-history-only > .hm-card { width: 100%; }
#credit-customer .cu-set { display: flex; flex-direction: column; }
#credit-customer .cu-form-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
#credit-customer .cu-set .form-control, #credit-customer .cu-set .input-group-text { min-height: 34px; padding: 4px 8px; border-color: var(--hm-line2); background: var(--hm-panel); color: var(--hm-fg); font-size: 12px; }
#credit-customer .cu-set .btn { min-height: 32px; }
#credit-customer .cu-history { max-height: 320px; overflow-y: auto; }
#credit-customer .cu-history .hm-tlv-i { align-items: flex-start; padding: 7px 0; }
#credit-customer .cu-history .hm-tlv-d { margin-top: 4px; }
#credit-customer .cu-history-main { min-width: 0; }
#credit-customer .cu-history-what { color: var(--hm-ink); font-size: 12px; font-weight: 600; overflow-wrap: anywhere; }
#credit-customer .cu-history-main > small { color: var(--hm-fg2); font-size: 10px; }
#credit-customer .cu-history-note { margin-top: 3px; color: var(--hm-fg); font-size: 11px; }
#credit-customer .cu-load-table { min-width: 780px; }
#credit-customer .cu-load-scroll { max-height: 420px; }

html[data-orientation="portrait"] #credit-customers .cu-overview-grid, html[data-w1100="1"] #credit-customers .cu-overview-grid { grid-template-columns: minmax(0, 1fr); }
html[data-orientation="portrait"] #credit-customer .cu-parts, html[data-w1100="1"] #credit-customer .cu-parts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
html[data-orientation="portrait"] #credit-customer .cu-aging, html[data-w1100="1"] #credit-customer .cu-aging { grid-template-columns: repeat(3, minmax(0, 1fr)); }
html[data-w620="1"] #credit-customers .cu-overview-body, html[data-orientation="phone"] #credit-customers .cu-overview-body, html[data-w620="1"] #credit-customer .cu-score-hero, html[data-orientation="phone"] #credit-customer .cu-score-hero { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
html[data-w620="1"] #credit-customers [aria-labelledby="cu-standing-title"], html[data-orientation="phone"] #credit-customers [aria-labelledby="cu-standing-title"] { grid-template-columns: minmax(0, 1fr); justify-items: center; }
html[data-w620="1"] #credit-customers .cu-filter, html[data-orientation="phone"] #credit-customers .cu-filter { align-items: stretch; }
html[data-w620="1"] #credit-customers .cu-search, html[data-orientation="phone"] #credit-customers .cu-search { width: 100%; margin-left: 0; }
html[data-w620="1"] #credit-customer .cu-parts, html[data-orientation="phone"] #credit-customer .cu-parts { grid-template-columns: minmax(0, 1fr); }
html[data-w620="1"] #credit-customer .cu-aging, html[data-orientation="phone"] #credit-customer .cu-aging, html[data-w620="1"] #credit-customer .cu-factors, html[data-orientation="phone"] #credit-customer .cu-factors { grid-template-columns: minmax(0, 1fr); }
/* ==== end Customers credit ==== */

