/* ============================================================
   aligned-core.css — DCMS2 "Aligned" component layer (Build 1, v3.84.151)
   Design authority: dcms2_kit/{conventions.css,styles.css} — values
   transplanted onto the APP's existing class names (not the kit's), so no
   view has to be renamed. Loaded right after aligned-tokens.css, i.e. after
   the chrome's inline <style> (wins over it) but before per-view <style>
   (which still wins, until that view's wave).

   Permitted deltas from the kit rules: token substitution + dark twins.
   Cards stay square (radius-0); buttons/inputs/badges/chips = 2px.
   ============================================================ */

/* ---- Inline-SVG icon system (sprite lives in partials/icons.ejs) ---- */
.icon {
  width: 18px; height: 18px; flex: 0 0 auto;
  fill: none; stroke: currentColor; stroke-width: 1.5;
  stroke-linecap: square; stroke-linejoin: miter;
  vertical-align: -0.18em;
}
.icon--sm { width: 16px; height: 16px; }
.icon--lg { width: 20px; height: 20px; }
.icon--xl { width: 24px; height: 24px; }

/* ============================================================
   TYPE — Wave D1 restores the Delmar brand voice: headlines are Noto Sans
   BLACK ITALIC, UPPERCASE, tracking 0.025em (brand book hard rule). Applied at
   the kit's PRODUCT scale — family/style/weight/case/color only; font-SIZE is
   left to each view's own rules so no layout shifts. h1/h2/.pageTitle = display
   headings; h3/.sectionTitle = section eyebrows; h4 = sub-label (not uppercased).
   ============================================================ */
h1, h2, h3, .pageTitle, .page__title, .h-page, .h-sec {
  font-family: var(--font-branded) !important;
  font-style: italic !important;
  font-weight: 900 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.025em !important;
}
h1, .pageTitle, .page__title, .h-page {
  color: var(--c-navy-900) !important;
}
h2, h3, .h-sec { color: var(--c-resolution-blue) !important; }
h4 {
  font-family: var(--font-branded) !important;
  font-style: italic !important;
  font-weight: 900 !important;
  color: var(--c-resolution-blue) !important;
  letter-spacing: 0.015em !important;
}
html[data-theme="dark"] h1, html.rq-dark h1,
html[data-theme="dark"] .pageTitle, html.rq-dark .pageTitle, html[data-theme="dark"] .h-page,
html[data-theme="dark"] h2, html.rq-dark h2,
html[data-theme="dark"] h3, html.rq-dark h3 { color: #DCE6F5 !important; }
.pageSub { font-style: normal; text-transform: none; }
.sectionTitle {
  font-family: var(--font-branded) !important;
  font-style: italic !important;
  font-weight: 900 !important;
  letter-spacing: 0.08em !important;   /* eyebrow micro-label */
  color: var(--app-text-2) !important;
}

/* ---- Numerals in money/quantity columns line up ---- */
.num, .tabular, .money, td.num, .kpiValue, .statValue { font-variant-numeric: tabular-nums; }

/* ---- Focus ---- */
:focus-visible { outline: 2px solid var(--c-resolution-blue); outline-offset: 2px; border-radius: 3px; }
html[data-theme="dark"] :focus-visible, html.rq-dark :focus-visible { outline-color: var(--c-azure-400); }

/* ============================================================
   BUTTONS (conventions.css §BUTTONS, mapped .btn--x → app's .btn.x)
   ============================================================ */
.btn {
  border-radius: 3px !important;
  font-family: var(--font-strong);
  font-weight: 700;
  letter-spacing: 0.005em;
}
.btn.primary, .btn--primary {
  background: var(--c-resolution-blue) !important;
  color: #fff !important;
  border-color: var(--c-resolution-blue) !important;
}
.btn.primary:hover, .btn--primary:hover { background: var(--c-downriver) !important; }
.btn.ghost, .btn--ghost {
  background: var(--app-surface) !important;
  color: var(--c-resolution-blue) !important;
  border-color: var(--c-resolution-blue) !important;
}
.btn.ghost:hover, .btn--ghost:hover { background: var(--c-azure-200) !important; }
/* BOTH SPELLINGS. This rule named only `.btn.ghost` while the hover rule below named `.btn.ghost` AND
   `.btn--ghost` — so a `.btn--ghost` in dark mode kept the light-theme Delmar Blue (#003685) from the rule
   above and rendered blue-on-navy at REST, then corrected itself the moment you hovered. That asymmetry is
   why it survived: the state you check by mousing over is the one state that was right. Measured on the
   customer portal's rates page, 2026-09-01: color rgb(0,54,133) on background rgb(14,45,82). `.btn--ghost`
   is the spelling the portal and the staff app actually use, so this was every ghost button in dark mode. */
html[data-theme="dark"] .btn.ghost, html.rq-dark .btn.ghost,
html[data-theme="dark"] .btn--ghost, html.rq-dark .btn--ghost { color: var(--c-azure-400) !important; border-color: var(--c-azure-400) !important; }
/* Dark hover must NOT drop to the light azure fill (would hide the light text). */
html[data-theme="dark"] .btn.ghost:hover, html.rq-dark .btn.ghost:hover,
html[data-theme="dark"] .btn--ghost:hover, html.rq-dark .btn--ghost:hover { background: var(--app-surface-3) !important; color: var(--c-azure-400) !important; }
.btn.danger, .btn--danger, .btn--accent {
  background: var(--c-valencia) !important;
  color: #fff !important;
  border-color: var(--c-valencia) !important;
}
.btn.danger:hover, .btn--danger:hover, .btn--accent:hover { background: var(--c-well-read) !important; }
.btn.btn-sm, .btn--sm { padding: 6px 12px; font-size: 12px; }
.btn.tiny, .btn--xs { padding: 3px 8px; font-size: 11px; }

/* ---- Inputs / selects: squared, hairline, azure focus ---- */
input, select, textarea, .formInput, .formSelect, .input, .select {
  border-radius: 3px;
}
.formInput:focus, .formSelect:focus, input:focus, select:focus, textarea:focus {
  border-color: var(--c-resolution-blue);
  box-shadow: 0 0 0 3px var(--app-info-bg);
  outline: none;
}

/* ============================================================
   BADGES / TAGS / CHIPS / DOTS — one squared system (conventions squares them)
   ============================================================ */
.badge, .tag {
  border-radius: 3px !important;
  font-family: var(--font-strong);
  font-weight: 700;
  letter-spacing: 0.02em;
}
.badge--info, .tag--info { background: var(--app-info-bg); color: var(--app-info-fg); border: 1px solid transparent; }
.badge--success, .tag--success { background: var(--app-success-bg); color: var(--app-success-fg); border: 1px solid transparent; }
.badge--warning, .tag--warning { background: var(--app-warning-bg); color: var(--app-warning-fg); border: 1px solid transparent; }
.badge--danger, .tag--danger { background: var(--app-danger-bg); color: var(--app-danger-fg); border: 1px solid transparent; }
.badge--neutral, .tag--neutral { background: var(--app-neutral-bg); color: var(--app-neutral-fg); border: 1px solid transparent; }
.chip {
  background: var(--c-azure-200);
  border: 1px solid var(--c-azure-300);
  color: var(--c-resolution-blue);
  border-radius: 3px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
}
html[data-theme="dark"] .chip, html.rq-dark .chip { background: var(--app-surface-2); border-color: var(--app-border); color: var(--c-azure-400); }
/* Status dots stay round (the only surviving pill). */
.dot { width: 8px; height: 8px; border-radius: 999px; display: inline-block; flex: 0 0 auto; }
.dot--ok { background: var(--c-green); }
.dot--warn { background: #C88A00; }
.dot--err { background: var(--c-valencia); }
.dot--info { background: var(--c-resolution-blue); }
.dot--muted { background: var(--app-text-3); }

/* ---- Cards stay square with a whisper edge (conventions .ms-card) ---- */
.card {
  border-radius: var(--radius-xs, 0);
  border: 1px solid var(--app-border);
  box-shadow: 0 1px 3px rgba(14, 45, 82, 0.06);
}
html[data-theme="dark"] .card, html.rq-dark .card { box-shadow: none; }

/* ============================================================
   ALIGNED DATA TABLE — for new screens (Quotes & Offerings). Opt-in via
   .aligned-table so we never disturb the 70 legacy tables before their wave.
   ============================================================ */
.aligned-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
.aligned-table thead th {
  text-align: left;
  font-family: var(--font-strong);
  font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--c-downriver);
  background: var(--c-azure-200);
  padding: 9px 12px;
  border-bottom: 1px solid var(--app-border);
  white-space: nowrap;
}
html[data-theme="dark"] .aligned-table thead th, html.rq-dark .aligned-table thead th { color: var(--c-azure-400); background: var(--app-surface-2); }
.aligned-table thead th a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.aligned-table tbody td { padding: 10px 12px; border-bottom: 1px solid var(--app-divider); }
.aligned-table tbody tr:hover { background: var(--app-row-hover); }
.aligned-table tbody tr:nth-child(even) { background: var(--app-row-stripe); }
.aligned-table tbody tr:nth-child(even):hover { background: var(--app-row-hover); }

/* ============================================================
   FILTER BAR (kit .fb-*, composed from primitives) — Quotes & Offerings, later pipeline/heatmap
   ============================================================ */
.fbBar { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; margin: 0 0 14px; }
.fbField { display: flex; flex-direction: column; gap: 3px; }
.fbField > label { font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--app-text-2); font-family: var(--font-strong); }
/* Segmented control (kit .seg) */
.seg { display: inline-flex; border: 1px solid var(--app-border-2); border-radius: 3px; overflow: hidden; }
.seg > a, .seg > button { padding: 7px 13px; font-size: 12px; font-weight: 700; color: var(--app-text-2); background: var(--app-surface); border: none; border-left: 1px solid var(--app-border); cursor: pointer; text-decoration: none; font-family: var(--font-strong); }
.seg > a:first-child, .seg > button:first-child { border-left: none; }
.seg > a.is-active, .seg > button.is-active { background: var(--c-resolution-blue); color: #fff; }

/* ============================================================
   TOPBAR CONTROLS — icon buttons + theme toggle + avatar
   ============================================================ */
.tbIcon {
  width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--app-border); border-radius: 3px; background: var(--app-surface);
  color: var(--c-downriver); cursor: pointer; position: relative; text-decoration: none;
}
.tbIcon:hover { background: var(--c-azure-200); color: var(--c-resolution-blue); }
html[data-theme="dark"] .tbIcon, html.rq-dark .tbIcon { color: #DCE6F5; background: var(--app-surface-2); border-color: var(--app-border); }
html[data-theme="dark"] .tbIcon:hover, html.rq-dark .tbIcon:hover { background: var(--app-surface-3); }
/* sun/moon swap driven by theme */
.tbIcon .tt-sun { display: none; }
.tbIcon .tt-moon { display: inline; }
html[data-theme="dark"] .tbIcon .tt-sun, html.rq-dark .tbIcon .tt-sun { display: inline; }
html[data-theme="dark"] .tbIcon .tt-moon, html.rq-dark .tbIcon .tt-moon { display: none; }

.tbAvatar {
  width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 3px; background: var(--c-resolution-blue); color: #fff;
  font-family: var(--font-strong); font-weight: 700; font-size: 13px; letter-spacing: 0.02em;
  border: none; cursor: pointer; text-transform: uppercase;
}
html[data-theme="dark"] .tbAvatar, html.rq-dark .tbAvatar { background: rgba(128,154,194,0.22); color: #F2F5F9; box-shadow: inset 0 0 0 1px var(--c-azure-400); }
.tbAvatar:hover { background: var(--c-downriver); }

/* Record-type badge for the Quotes & Offerings list */
.recType { display: inline-block; font-family: var(--font-strong); font-size: 10px; font-weight: 700; letter-spacing: 0.06em; padding: 2px 7px; border-radius: 3px; }
.recType--quote { background: var(--app-info-bg); color: var(--app-info-fg); }
.recType--offering { background: var(--app-neutral-bg); color: var(--app-neutral-fg); }

/* Quiet hairline sidebar divider (replaces the old text section labels) */
.navRule { height: 1px; background: var(--nav-border); margin: 10px 12px; border: 0; }

/* Topbar vertical divider between the icon controls and the theme/avatar cluster */
.tbDiv { width: 1px; height: 22px; background: var(--app-border-2); display: inline-block; margin: 0 4px; }

/* Profile dropdown menu items carry an inline icon */
.profile-menu .profile-links a { display: flex; align-items: center; gap: 10px; }
.profile-menu .profile-links a .icon { color: var(--app-text-2); }
.profile-menu .profile-links a:hover .icon { color: var(--c-resolution-blue); }

/* ── Multi-equipment rate programmes (v3.99.223) ────────────────────────────────────────────────────
   Two small components, both in service of one sentence: a lane offers several sizes, and they belong
   together on screen rather than as repeated lanes. */

/* The lane editor's equipment set. A rate-programme lane may be offered at several sizes, so the control
   is a checkbox set rather than the single <select> that could only ever write one value into a column
   that has been comma-separated since migration 009. */
.eqSet { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; }
.eqSet__opt { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  font-weight: 500; cursor: pointer; }
.eqSet__opt input { margin: 0; }
/* THE SET SAYS WHAT ITS OWN OPTIONS ARE (3.99.480). Inside a form, the page's field rules reached them too: the
   staff shell's `label` (a block of blue capitals) and the lane editor's `.form-row label` / `.form-row input`
   (display:block; width:100%; padding; a rounded border). Each checkbox became a full-width box drawn over its own
   label — "20▢STANDARD", Shawn's screenshot of the mass-quote settings page, 2026-09-25. */
.eqSet .eqSet__opt { display: inline-flex; margin: 0; font-size: 13px; font-weight: 500; letter-spacing: 0;
  text-transform: none; color: inherit; }
.eqSet .eqSet__opt input[type="checkbox"] { width: auto; height: auto; min-height: 0; margin: 0; padding: 0;
  border: 0; border-radius: 0; box-shadow: none; flex: 0 0 auto; }

/* A continuation row: the second and later sizes of one lane. The top border is removed so the sizes read
   as one block under the lane named above them, and the lane cell is dimmed rather than repeated. */
.rTbl tr.lane--cont > td { border-top: 0; padding-top: 0; }
.rTbl tr.lane--cont > td.cellBlock { padding-left: 24px; }

/* ── A CARD PER LANE ─────────────────────────────────────────────────────────────────────────────────
   Shawn, 2026-09-01: "the Rates page is very confusing. I cannot easily see the rates per equipment and
   there is no clear separation between lanes."

   The sizes of a lane used to be rows of the same table as every other lane, separated only by a
   suppressed top border — so with a real book on screen a lane's second size and the next lane's first row
   look the same, and the eye has nothing to group on. A border you remove is a weak separator when
   everything around it is also a row. The lane became a card instead: its own edge, its own heading, and
   the sizes as a small grid inside it. */
/* Shawn, 2026-09-01: "add in even more spacing between different lanes." The border alone separated them;
   the gap is what makes one card read as one lane at a glance rather than as a run of rows. */
.laneCard { border: 1px solid var(--app-border); border-radius: 4px; background: var(--app-surface);
  margin: 28px 0; overflow: hidden; }
.laneCard + .laneCard { margin-top: 32px; }
.laneCard__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  padding: 14px 16px 10px; border-bottom: 1px solid var(--app-border); }
.laneCard__lane { font-family: var(--font-strong); font-weight: 800; font-size: 15px; letter-spacing: 0.01em; }
.laneCard__meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 4px;
  font-size: 12px; color: var(--app-text-3); }
.laneCard > .accBox { margin: 0; padding: 10px 16px 12px; border-top: 1px solid var(--app-border); }

/* The sizes. Equipment LEADS the row, because "the rate per equipment" is the question this page answers
   and it used to be the third column of six. */
.eqTbl { width: 100%; border-collapse: collapse; }
.eqTbl thead th { font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--app-text-3); text-align: left; padding: 8px 16px; }
.eqTbl tbody td { padding: 10px 16px; border-top: 1px solid var(--app-border); vertical-align: top; }
.eqTbl tbody tr:first-child td { border-top: 0; }
.eqTbl__eq { font-weight: 600; }
.eqTbl__act { text-align: right; white-space: nowrap; }
.eqTbl .num { text-align: right; }
.eqTbl tr.hist > td { border-top: 0; padding-top: 0; }

/* The equipment cell on a phone. Left as a default stacked cell it is a flex ROW — label, box name and the
   "one rate covers both" note competing for 375px, which broke the word EQUIPMENT across two lines and
   pushed the note into a ragged column of its own. Same treatment mLead already gets for the money cell:
   the label takes its own line and the value gets the full width beneath it. The label is KEPT (unlike
   cellBlock, which suppresses it) because on a phone the box name IS the thing being labelled. */
@media (max-width: 900px) {
  .stackable tbody td.eqTbl__eq { display: block; text-align: left; padding: 8px 0 2px; flex: 1 1 100%; }
  .stackable tbody td.eqTbl__eq::before { display: block; margin-bottom: 1px; }
  /* The action gets its own line rather than being lifted beside a figure — inside a lane card there are
     several of them, one per size, and each belongs to the row above it. */
  .stackable tbody td.eqTbl__act { display: block; text-align: left; flex: 1 1 100%; padding-top: 6px; }
}

/* ── THE LANE BLOCK ON THE PORTAL DASHBOARD ───────────────────────────────────────────────────────────
   Shawn, 2026-09-02: "we should separate the template lanes. Today they're all bunched together."
   The card was one flat hairline-separated row per (lane × size), so a lane with three sizes read as
   three unrelated lanes with the same name. The lane is stated once now, its costs are indented under
   it, and the SEPARATOR moved to the gap between lanes — which is the boundary that was missing. */
.rateLane { padding: 12px 0 10px; border-bottom: 1px solid var(--app-divider); }
.rateLane:last-child { border-bottom: 0; }
.rateLane__head { margin-bottom: 6px; }
.rateLane__row { display: flex; align-items: center; gap: 12px; padding: 4px 0 4px 12px; }
.rateLane__eq { flex: 0 0 auto; min-width: 128px; font-size: 12px; color: var(--app-text-2); font-weight: 600; }
.rateLane__cost { flex: 1 1 auto; min-width: 0; font-size: 13px; }
.rateLane__act { flex: 0 0 auto; }
@media (max-width: 760px) {
  .rateLane__row { flex-wrap: wrap; gap: 6px; padding-left: 8px; }
  .rateLane__eq { min-width: 0; flex: 1 1 100%; }
}

/* ── BOOK OF BUSINESS INDICATIONS (3.99.509) ─────────────────────────────────────────────────────────────────────────
   What needs attention on an account and what is growing (partials/book_indications.ejs): a sentence per indication with
   its source, or a compact chip in a table row. Staff pages only. High risk is the danger colour, medium the warning
   colour, growth the success colour; low is plain. */
.bk-list{ list-style:none; margin:4px 0 0; padding:0; display:grid; gap:4px; }
/* The sentence keeps a readable width; where the row is too narrow for it, its source and "Acknowledge" wrap under it
   rather than squeezing it to a letter a line (3.99.523, a phone). */
.bk-item{ display:flex; flex-wrap:wrap; gap:2px 8px; align-items:baseline; font-size:13px; line-height:1.35; padding-left:10px; border-left:3px solid var(--line); }
.bk-item[hidden]{ display:none; }   /* the flex above would otherwise outrank the hidden attribute */
.bk-item.bk-risk.bk-high{ border-left-color:var(--app-danger-fg, #b42318); }
.bk-item.bk-risk.bk-medium{ border-left-color:var(--app-warning-fg, #b54708); }
.bk-item.bk-growth{ border-left-color:var(--app-success-fg, #067647); }
.bk-text{ flex:1 1 16em; min-width:0; overflow-wrap:break-word; }
.bk-src{ font-size:10px; color:var(--muted); text-transform:uppercase; letter-spacing:.04em; }
/* What a marker stands on, when tapped or hovered (3.99.525, static/bk_detail.js): a chip, a sentence with detail
   (dotted underline), a highlight's "Details"; one small panel beside it. */
[data-bk-detail]{ cursor:pointer; }
.bk-text[data-bk-detail]{ text-decoration:underline dotted; text-decoration-color:var(--muted); text-underline-offset:3px; }
.bk-chip[data-bk-detail]:focus-visible, .bk-text[data-bk-detail]:focus-visible, .bk-info:focus-visible{ outline:2px solid var(--brand, #003685); outline-offset:2px; }
.bk-info{ flex:0 0 auto; font-size:11px; font-weight:700; color:var(--app-link, var(--primary, #003685)); text-decoration:underline; white-space:nowrap; }
.bk-pop{ position:absolute; z-index:1200; box-sizing:border-box; min-width:200px; padding:10px 12px; border:1px solid var(--line); border-radius:10px;
  background:var(--surface, #fff); color:var(--text, #1f2933); box-shadow:0 8px 28px rgba(2,30,71,.2); font-size:13px; line-height:1.4; }
.bk-pop[hidden]{ display:none; }
.bk-pop-t{ font-weight:700; margin-bottom:6px; }
.bk-pop ul{ margin:0; padding:0 0 0 16px; }
.bk-pop li{ margin:2px 0; }
.bk-pop-s{ margin-top:6px; font-size:10px; color:var(--muted); text-transform:uppercase; letter-spacing:.04em; }
/* On a phone the sentence has the row to itself; its source and "Acknowledge" share the line under it. */
@media (max-width: 560px){ .bk-item > .bk-text, .bk-item > .mb-hl-btn{ flex-basis:100%; } }
.bk-chip{ display:inline-block; margin:1px 4px 1px 0; padding:1px 7px; border-radius:999px; font-size:10px; font-weight:800; border:1px solid var(--line); white-space:nowrap; }
.bk-chip.bk-risk.bk-high{ background:var(--app-danger-bg, #fef3f2); color:var(--app-danger-fg, #b42318); border-color:transparent; }
.bk-chip.bk-risk.bk-medium{ background:var(--app-warning-bg, #fffaeb); color:var(--app-warning-fg, #b54708); border-color:transparent; }
.bk-chip.bk-growth{ background:var(--app-success-bg, #ecfdf3); color:var(--app-success-fg, #067647); border-color:transparent; }
.bk-chip.bk-low{ font-weight:600; }
/* Acknowledge (3.99.515): a quiet text button at the end of a line, and the folded list of what was acknowledged. */
.bk-ack, .bk-unack{ flex:0 0 auto; margin-left:auto; padding:0 2px; border:0; background:none; font:inherit; font-size:11px; font-weight:700;
  color:var(--app-link, var(--primary, #003685)); text-decoration:underline; cursor:pointer; white-space:nowrap; }
.bk-ack:disabled, .bk-unack:disabled{ opacity:.5; cursor:default; }
.mb-acked{ margin-top:12px; }
.mb-acked > summary{ cursor:pointer; font-size:12px; font-weight:700; color:var(--muted); }
.mb-acked[hidden]{ display:none; }

/* Where a screen's data came from (partials/data_sources.ejs, 3.99.612): one quiet line, where the alpha-stage
   disclaimer banner used to be. */
.dataSources{ margin:6px 0 12px; }

/* ── THE ACCOUNT STRIP (3.99.510): the same indications where a quote is being made (partials/account_strip.ejs). A
   service or credit hold sits above them in the warning colour; on the first step of a quote a service hold also holds
   the quoting buttons until "Quote anyway". Staff pages only. */
.as-strip{ border:1px solid var(--line); border-radius:12px; padding:10px 12px; margin-top:10px; background:var(--surface); }
.as-strip[hidden]{ display:none; }
.as-head{ display:flex; gap:8px; align-items:baseline; flex-wrap:wrap; }
.as-meta{ font-weight:600; }
.as-hold{ margin:6px 0; padding:8px 10px; border-radius:8px; background:var(--app-warning-bg, #fffaeb); color:var(--app-warning-fg, #b54708); font-size:13px; display:grid; gap:4px; transition:box-shadow .2s ease; }
.as-hold[hidden]{ display:none; }
.as-hold--nudge{ box-shadow:0 0 0 3px var(--app-warning-fg, #b54708); }
.as-hold-act{ display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
/* DCMS notes (3.99.607): the account's Flag Status and Notes from DCMS, edged in the flag's colour, its line breaks kept. */
.as-notes{ margin:6px 0; padding:8px 10px; border-radius:8px; border-left:4px solid var(--line); background:var(--surface-2, rgba(0,54,133,.03)); font-size:13px; display:grid; gap:6px; }
.as-notes[hidden]{ display:none; }
.as-notes--red{ border-left-color:var(--app-danger-fg, #b42318); }
.as-notes--yellow{ border-left-color:var(--app-warning-fg, #b54708); }
.as-notes--green{ border-left-color:var(--app-success-fg, #067647); }
.as-notes-head{ display:flex; gap:8px; align-items:baseline; flex-wrap:wrap; }
.as-note{ line-height:1.45; }
.as-note-text{ white-space:pre-line; overflow-wrap:anywhere; }
.as-flag{ display:inline-block; padding:1px 8px; border-radius:999px; font-size:11px; font-weight:800; }
.as-flag--red{ background:var(--app-danger-bg, #fef3f2); color:var(--app-danger-fg, #b42318); }
.as-flag--yellow{ background:var(--app-warning-bg, #fffaeb); color:var(--app-warning-fg, #b54708); }
.as-flag--green{ background:var(--app-success-bg, #ecfdf3); color:var(--app-success-fg, #067647); }
.as-flag-meaning{ font-size:12px; color:var(--muted); }
/* CargoWise pricing notes (3.99.976): the org's Pricing/Quoting notes, in the DCMS box's shape, edged in the brand blue; each note
   says what it is scoped to (module, direction, freight, company) as small tags, and a must-read note says so. */
.as-notes--cw{ border-left-color:var(--brand, #003685); }
.as-note + .as-note{ border-top:1px solid var(--line); padding-top:6px; }
.as-note-tags{ display:flex; gap:4px; flex-wrap:wrap; margin-bottom:2px; }
.as-tag{ display:inline-block; padding:0 7px; border-radius:999px; font-size:11px; font-weight:700; background:var(--surface-3, rgba(0,54,133,.08)); color:var(--text, #1f2937); }
.as-tag--must{ background:var(--app-warning-bg, #fffaeb); color:var(--app-warning-fg, #b54708); }
.as-note-by{ font-size:11px; color:var(--muted); margin-top:2px; }
.as-list:empty{ display:none; }
.as-lane{ margin-top:4px; }
.as-src{ margin-top:4px; }
/* A carrier's own spot rate (3.99.643, carrier_spot.js): Shawn asked for it "in Yellow", beside the rate. Staff screens only. */
.rq-spot-warn{ display:flex; gap:6px; align-items:flex-start; margin-top:6px; padding:6px 10px; border-radius:6px; background:#fff3bf; border:1px solid #f2c94c; color:#5c4400; font-size:12px; font-weight:700; line-height:1.35; white-space:normal; }
.rq-spot-warn__icon{ flex:0 0 auto; }
html[data-theme="dark"] .rq-spot-warn, html.rq-dark .rq-spot-warn{ background:#4a3b00; border-color:#b38f00; color:#ffe58a; }
/* A link to hand on (3.99.1238, riq_copy.js): always shown in a selectable field, with a Copy button and what the clipboard did. */
.riq-copy{ margin:0 0 12px; padding:10px 12px; border:1px solid var(--border, #d6dde8); border-left:4px solid #1d4ed8; border-radius:8px; background:var(--card, #fff); }
.riq-copy-head{ display:flex; justify-content:space-between; align-items:baseline; gap:8px; font-weight:800; font-size:13px; }
.riq-copy-row{ display:flex; gap:8px; align-items:center; margin-top:6px; }
.riq-copy-field{ flex:1 1 auto; min-width:0; min-height:36px; padding:6px 10px; font:13px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; border:1px solid var(--border, #c9d2df); border-radius:6px; background:var(--bg, #f8fafc); color:inherit; user-select:all; }
.riq-copy-status{ margin-top:6px; font-size:12px; color:var(--muted, #475569); }
.riq-copy-status[data-copied="1"]{ color:#15803d; font-weight:700; }
.riq-copy-status[data-copied="0"]{ color:#b45309; font-weight:700; }
.riq-copy-note{ margin-top:4px; font-size:12px; color:var(--muted, #475569); }
