/* Orona UK Tools Platform: the pieces that are ours alone, on top of the Orona base
   (static/css/orona-base.css holds every token, the font and the page-wide rules; nothing is
   repeated here). Sign-in split (A17), tree, employee table (F47, F53); the signed-in shell is
   static/css/shell.css (A23). Nothing is loaded from outside this origin (CSP). Rules: docs/11-interface-rules.md. */

/* Sign-in: split screen. Left = white panel with the green logo and the form; right = full-bleed photo. */
.sign-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 100vh; }
.sign-in__panel { display: flex; flex-direction: column; justify-content: center; padding: 48px 64px; }
.sign-in__logo { height: 64px; width: auto; margin: 0 0 40px 0; display: block; align-self: flex-start; }
.sign-in__title { font-size: 28px; line-height: 1.2; margin: 0; }
.sign-in__product { margin: 0 0 8px; font-size: 14px; font-weight: 600; color: var(--orona-navy); } /* reset pages, #27 */
.sign-in__tagline { margin: 8px 0 32px; color: var(--orona-navy); }
.sign-in__photo { position: relative; min-height: 100vh; background: var(--orona-navy); }
.sign-in__photo img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; }
.sign-in__form { max-width: 360px; width: 100%; }
.sign-in__link { display: inline-block; margin-top: 20px; font-size: 14px; }
.sign-in__turnstile { margin-bottom: 16px; } /* SEC1c: the Turnstile widget above the button */
.form-error { color: var(--orona-red); font-weight: 600; }
.form-error .errorlist, .form-error ul { list-style: none; margin: 0; padding: 0; }

/* htmx's request indicator (issue #27): htmx would inject these rules as an inline <style>, which the
   CSP refuses, so templates set includeIndicatorStyles false and the rules live here. */
.htmx-indicator { opacity: 0; }
.htmx-request .htmx-indicator, .htmx-request.htmx-indicator { opacity: 1; transition: opacity 200ms ease-in; }

/* Signed-in pages: the shell (rail, top bar, scope bar, menus, tour) is static/css/shell.css (A23). */
.back { display: inline-block; margin: 0 0 8px; font-size: 14px; }
.switch-state { font-weight: 700; color: var(--orona-navy); }

/* Tree: regions are disclosure widgets (F49: they open and close); each opens on its table. */
.tree__row { border-top: 1px solid var(--orona-rule); }
.tree__row:last-child { border-bottom: 1px solid var(--orona-rule); }
.tree__summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 8px; font-weight: 600; color: var(--orona-navy); cursor: pointer; list-style: none; }
.tree__summary::-webkit-details-marker { display: none; }
.tree__summary::before { content: ""; flex: none; width: 8px; height: 8px; margin-right: 4px; border-right: 2px solid var(--orona-navy); border-bottom: 2px solid var(--orona-navy); transform: rotate(-45deg); transition: transform .2s ease-in-out; }
.tree__region[open] > .tree__summary { background: var(--orona-grey); }
.tree__region[open] > .tree__summary::before { transform: rotate(45deg); }
.tree__name { flex: 1; }
.tree__count { font-weight: 400; color: var(--orona-navy); white-space: nowrap; }
.tree__children { padding: 0 8px 16px; }

/* Employee table (F47, F53): one row per person, a filter under every heading, actions on the right.
   The box scrolls sideways if the window is too narrow; the page never does (Sentinel A21, 3). */
.people__bar { margin: 8px 0 12px; }
.people__hint { margin: 0; font-size: 13px; }
.people-scroll { position: relative; overflow-x: auto; }
.people { table-layout: fixed; min-width: 720px; margin: 0; font-size: 13px; border-collapse: separate; border-spacing: 0; }
.people thead { position: sticky; top: var(--bar-h, 0); z-index: 1; background: #FFFFFF; }
/* Nine columns (Department(s) #160, Tool access #91) keep rows two lines high at 1024 (T40b, F53).
   At the 920 px box each width is what its filter face needs (no clipped dropdown) or, for the
   name, "Person 0024" on one line, with 10 px or more to spare (the Linux runner draws text a
   little wider than a Mac); the address takes what is left and breaks after its @ or before a dot
   (#1038 F-1: the email_breaks filter's <wbr>s), never inside a word part. Cells are padded 3 px a side; the Tool access
   switch carries no Yes/No text (its state and its label are the input's own). */
.people th:nth-child(1), .people td:nth-child(1) { width: 11.3%; overflow-wrap: anywhere; }
.people th:nth-child(2), .people td:nth-child(2) { width: 10%; }
/* Level and Reports to are as wide as "Any level" and "Person 0028 · Level 4" need (Sentinel A21, 6). */
.people th:nth-child(3), .people td:nth-child(3) { width: 10.65%; }
.people th:nth-child(4), .people td:nth-child(4) { width: 18.7%; }
/* A fixed-layout cell cannot grow: an address breaks at its <wbr>s (after the @, before each dot);
   only a part longer than the column still breaks inside, as the last resort (overflow-wrap). */
.people th:nth-child(5), .people td:nth-child(5) { width: 11.8%; overflow-wrap: anywhere; }
.people td:nth-child(5) { word-break: normal; }
.people th:nth-child(6), .people td:nth-child(6) { width: 11.2%; }
/* Department(s) (SE-1, #160): two names break onto a second line rather than widen the table. */
.people th:nth-child(7), .people td:nth-child(7) { width: 11.1%; overflow-wrap: anywhere; }
/* IN-1 (#91): Tool access, as wide as the switch and its Yes (the filter says "Any"). */
.people th:nth-child(8), .people td:nth-child(8) { width: 6.95%; }
.people th:nth-child(9), .people td:nth-child(9) { width: 76px; }
.people > :not(caption) > * > * { padding: 6px 3px; }
.people td { border-bottom: 1px solid var(--orona-rule); }
.people__filter-row td { padding: 6px 3px 8px; background: var(--orona-grey); }
.people__row:hover > td { background: var(--orona-grey); }
.people__row--out td { color: var(--orona-navy); font-style: italic; }  /* F71: navy; the "left" badge says it in words */
.people__number { font-size: 11px; }
.people__also { font-size: 11px; font-weight: 500; white-space: normal; } /* F232: "Also in …" */
/* Designer d-1032f F1: a row badge ("Added", "Left") keeps its word whole in the narrow Name
   column (721-768 px broke it "Adde" / "d"); "Also in …" still wraps. */
.people .slds-badge:not(.people__also) { white-space: nowrap; }
.people__actions { text-align: right; white-space: nowrap; }
/* IN-1 (#91): the Tool access tick; a locked one is greyed with its reason under it (F170). */
.people__access-why { display: block; font-size: 11px; }
.people__access-locked { opacity: .6; }
.people__bin:hover, .people__bin:focus-visible { color: #FFFFFF; background: var(--orona-red); }
.people__row--new > td { background: var(--orona-grey); }
.people__row--new > td:first-child { border-left: 4px solid var(--orona-green); }
.people__row--error > td { padding-top: 0; background: var(--orona-grey); border-left: 4px solid var(--orona-red); }
.people__row--added > td { background: #EAF7EE; }
/* "Save changes?" and "Remove?" (F55, F47): the step sits in the row with a green band (Sentinel A21, 5). */
.people__row--confirm > td { padding: 0; background: var(--orona-grey); border-left: 4px solid var(--orona-green); }
/* NW-1 (F158): the employee table's groups. The head row opens and closes its group
   (static/js/hierarchy.js); a reporting-line row is indented by its depth. */
.people__group > th { padding: 10px 4px 6px; background: #FFFFFF; border-bottom: 2px solid var(--orona-green); }
.people__group-toggle { display: inline-flex; align-items: center; gap: 8px; padding: 2px 0; border: 0; background: none; color: var(--orona-navy); font: inherit; font-weight: 600; text-align: left; cursor: pointer; }
.people__group-toggle::before { content: ""; width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 6px solid currentColor; transition: transform 0.15s; }
.people__group--closed .people__group-toggle::before { transform: rotate(-90deg); }
.people__group-toggle:focus-visible { outline: 2px solid var(--orona-green); outline-offset: 2px; }
/* Issue #160 part C (F158): an office group's own +, beside its name. */
.people__group-add { margin-left: 12px; vertical-align: middle; }
.people tr[hidden] { display: none !important; }
.people__row[data-depth="1"] > td:first-child { padding-left: 20px; }
.people__row[data-depth="2"] > td:first-child { padding-left: 36px; }
.people__row[data-depth="3"] > td:first-child { padding-left: 52px; }
.people__row[data-depth="4"] > td:first-child,
.people__row[data-depth="5"] > td:first-child,
.people__row[data-depth="6"] > td:first-child { padding-left: 68px; }
.people__group-by { width: auto; max-width: 13rem; }
.tree__search { margin: 0 0 16px; }
.tree__search-input { flex: 1 1 16rem; max-width: 28rem; }

/* From 1024 px wide the table fits (T40b), so the box need not scroll and the header can stick to
   the window as the page scrolls; below that the box scrolls sideways instead of the page. */
@media (min-width: 1024px) { .people-scroll { overflow-x: visible; } }
/* 721-1023 px: the scrolling box is the header's sticky container, so `top: var(--bar-h)` pushed
   the header down over the first row (the add row's Save; Designer d-1032 S1). Not sticky here. */
@media (min-width: 721px) and (max-width: 1023.98px) { .people thead { position: static; } }
/* #1038 F-3, 721-1023 px: the table is never narrower than 880 px, the width at which every filter
   ("Any level"), Reports to ("Person 0024 · Level 4"), head and cell is whole (measured: 870 is the
   least; 10 px spare for the Linux runner); the box scrolls sideways as it already did, and the
   Remove column stays at the box's right edge so it is never cut, with a 1 px rule on its left
   that shows the table goes on under it (a border: orona-base.css draws no shadow; Designer
   d-1057c M1). Its own white sits under the
   row and filter colours (lower specificity), so a hovered, new or added row keeps its colour.
   A control reached by Tab is scrolled out from under it by hierarchy.js (focus ring seen). */
@media (min-width: 721px) and (max-width: 1023.98px) {
  .people { min-width: 880px; }
  :where(.people th, .people td):nth-child(9) { position: sticky; right: 0; background: #FFFFFF; border-left: 1px solid var(--orona-rule); }
  /* Above the Tool access switch's see-through input (z-index 1, orona-slds-admin.css) that scrolls
     under it, so a click on a bin always reaches the bin (Sentinel s_1057b: at 800 it hit the switch). */
  .people td:nth-child(9) { z-index: 2; }
  /* A full-width row (the bin's warning, a notice) is as wide as the box's view and stays at its
     left edge, so its sentence and its Yes / Cancel are read without scrolling (Sentinel s-1057). */
  .people-scroll { container-type: inline-size; }
  /* The pinned column is 76-83 px wide: the box's end padding stops the browser counting a control
     under it as in view, so focus scrolls it out (WCAG 2.4.11; Designer d-1057c M2). */
  .people-scroll { scroll-padding-inline-end: 84px; }
  /* The pinned cell is always in view: without this the padding above scrolls the box to its end
     when a Remove button is focused (the person's name then scrolls away). */
  :where(.people th, .people td):nth-child(9), .people td:nth-child(9) * { scroll-margin-inline-end: -84px; }
  .people td[colspan] > * { position: sticky; left: 0; box-sizing: border-box; width: calc(100cqi - 6px); }
  .people .people__row--error > td > * { width: calc(100cqi - 10px); } /* its 4 px border (s-1057 S2) */
}

/* A narrower desktop (1024): the margins give the table its room. */
@media (max-width: 1279px) {
  .tree__children { padding: 0 0 16px; }
}

/* Phone width: stack, photo as a short band on top, form full width. */
@media (max-width: 720px) {
  .sign-in { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
  .sign-in__photo { order: -1; min-height: 120px; height: 120px; }
  .sign-in__panel { padding: 32px 24px; justify-content: flex-start; }
  .sign-in__logo { height: 32px; margin-bottom: 32px; }
  .sign-in__title { font-size: 22px; }
  .sign-in__form { max-width: none; }
  .tree__summary { padding: 12px 4px; }
  .tree__count { font-size: 12px; white-space: normal; text-align: right; }
  /* One card per employee (F53, A11); the filter row stays a stacked form. */
  .people, .people thead, .people tbody, .people tr, .people td { display: block; width: 100% !important; min-width: 0; }
  .people thead { position: static; }
  .people-scroll { overflow: visible; }
  .people thead tr:first-child { display: none; }
  .people__filter-row { padding: 8px; background: var(--orona-grey); }
  .people__filter-row td { padding: 4px 0; background: none; border: 0; }
  .people__filter-row td:empty { display: none; }
  .people__row { padding: 8px; border-bottom: 1px solid var(--orona-rule); }
  .people__row > td { padding: 2px 0; border: 0; }
  .people__row td[data-label]::before { content: attr(data-label) ": "; font-size: 12px; color: var(--orona-navy); }
  .people__actions { text-align: left; }
  /* WCAG 2.5.8 (axe 4.14 target-size; #1114, Sentinel s_uploads_closed_5): the card's email link
     is a 24 px target, not a 16 px line of text close to the card's other controls. */
  .people__row td[data-label="Email"] a { display: inline-block; min-height: 24px; line-height: 24px; }
  .people__bar { flex-direction: column; align-items: flex-start !important; }
  .people__row--new > td:first-child, .people__row--error > td, .people__row--confirm > td { border-left: 0; }
  .people__row--new, .people__row--confirm { border-left: 4px solid var(--orona-green); background: var(--orona-grey); }
  .people__row--new td[data-label]::before { display: block; }
  .people__group > th { display: block; width: 100%; padding: 12px 8px 6px; }
  .people__row[data-depth] > td:first-child { padding-left: 0; }
  .people__row[data-depth="1"], .people__row[data-depth="2"], .people__row[data-depth="3"],
  .people__row[data-depth="4"], .people__row[data-depth="5"], .people__row[data-depth="6"] { border-left: 3px solid var(--orona-rule); }
}

/* CRM slice 1a (docs/14 §4b): facts, inline forms that wrap on a phone, the confirmation step
   (docs/11 "Confirmation row": panel grey, 4 px green band, bold navy title). */
.crm-facts, .crm-counts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px 24px; margin: 0; }
.crm-facts dt, .crm-counts dt { font-size: 13px; color: var(--orona-navy); font-weight: 400; }
.crm-facts dd, .crm-counts dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.crm-counts dd { font-size: 24px; }
.crm-inline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.crm-inline__wide { flex: 1 1 200px; min-width: 0; max-width: 360px; }
.crm-table td { overflow-wrap: anywhere; }
/* Phone (below Bootstrap md, where the rows stack): each building is one block under a navy
   divider and its own fields carry no rule, so the gap between buildings reads at a glance. */
@media (max-width: 767.98px) {
  .crm-table--stack tbody tr { border-top: 2px solid var(--orona-navy); padding: 8px 0; }
  .crm-table--stack tbody td { border-bottom-width: 0; padding: 2px 0; }
}
.crm-results li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 0; border-top: 1px solid var(--orona-rule); }
.crm-timeline li { padding: 6px 0; border-top: 1px solid var(--orona-rule); overflow-wrap: anywhere; }
.crm-picker { display: flex; flex-wrap: wrap; gap: 8px; }
/* C3-3 (F331, SPEC-C3C4 §4.3): a call's outcome shows only while Call is picked in the same form
   (CSS only, no script), and each choice is a 44 px target on a phone (AC7). The record header's
   Next action fact follows the state on a phone (product-design §7: header, then next action). */
.crm-outcome { display: none; }
.crm-contact:has(input[name="kind"][value="call"]:checked) .crm-outcome { display: block; }
@media (max-width: 767.98px) {
  .crm-facts > div { order: 3; }
  .crm-facts > div:has(> [data-field="state"]) { order: 1; }
  .crm-facts > .crm-facts__next { order: 2; }
}
/* C4-2 (SPEC-C3C4 §12.2, G1b 12–16): the record page's "Tender" card; the notice link and "chase
   the tender" are 44 px targets on a phone (AC8). */
.crm-tender__ref { margin: 0 0 12px; font-weight: 600; }
.crm-tender__ref a { font-variant-numeric: tabular-nums; }
.crm-tender__quote { margin: 0 0 12px; padding: 2px 0 2px 12px; border-left: 3px solid var(--orona-navy); }
.crm-tender__companies { margin: 0 0 12px; padding-left: 1.25rem; }
.crm-tender__companies li { padding: 2px 0; overflow-wrap: anywhere; }
.crm-tender__act { font-weight: 600; }
@media (max-width: 767.98px) {
  .crm-tender__ref a, .crm-tender__act { display: inline-flex; align-items: center; min-height: 44px; }
}
/* F113 (P): a new lead's row is soft green, always with the word "New" (colour never alone). */
.crm-new, .crm-table .crm-new > td { background-color: var(--orona-new); }
.crm-confirm { max-width: 640px; padding: 16px; background: var(--orona-grey); border-left: 4px solid var(--orona-green); }
.crm-confirm__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
/* C1-2 (SPEC-C1C2 §3, G1 01–06): the opportunity table's Status filter, result line (pick 2B),
   sortable headers, status shape (pick 4A: word + shape, never colour alone), totals row and
   paging. Below 768 px each row is one card in the order Project, Status, Units, Value, Owner,
   Builder, Postcode, Barbour ref (`order`; the DOM keeps F316 order) and every control in the
   Opportunities card is at least 44 px tall (§1.7). */
.crm-table .crm-new > th { background-color: var(--orona-new); }
.crm-toolbar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 16px; margin: 0 0 12px; padding: 8px 0 0; border-top: 1px solid var(--orona-rule); }
.crm-status-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; }
.crm-status-form label { display: block; font-size: 13px; font-weight: 600; color: var(--orona-navy); margin: 0 0 2px; }
.crm-result { margin: 0 0 8px; font-size: 14px; }
.crm-result strong { font-weight: 700; }
.crm-result__totals { display: block; margin-top: 2px; color: var(--orona-navy); }
.crm-note { font-size: 13px; font-weight: 400; color: var(--orona-navy); }
.crm-opps { font-size: 14px; font-variant-numeric: tabular-nums; }
.crm-opps thead th { white-space: nowrap; color: var(--orona-navy); }
.crm-opps thead th a { color: var(--orona-navy); text-decoration: none; }
.crm-opps thead th a:hover, .crm-opps thead th a:focus-visible { text-decoration: underline; }
.crm-opps tbody th[scope="row"] { font-weight: 600; overflow-wrap: anywhere; }
.crm-opps td, .crm-opps th { vertical-align: top; }
.crm-opps .crm-opps__project { min-width: 12rem; }
.crm-opps .crm-opps__builder { min-width: 10rem; }
.crm-opps .crm-opps__pc { white-space: nowrap; }
.crm-opps .crm-opps__owner { min-width: 7.5rem; overflow-wrap: anywhere; }
.crm-opps .crm-opps__status { min-width: 11rem; }
.crm-status { display: inline-flex; align-items: baseline; gap: 6px; }
.crm-status__shape { flex: none; width: 1em; text-align: center; color: var(--orona-navy); font-size: 14px; }
.crm-status__shape--won { color: var(--orona-green); }
.crm-paging { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 12px 0 0; font-size: 14px; }
.crm-paging a { font-weight: 600; }
@media (max-width: 767.98px) {
  .crm-toolbar { flex-direction: column; align-items: stretch; }
  .crm-status-form { flex-direction: column; align-items: stretch; }
  .crm-opps tbody tr, .crm-opps tfoot tr { padding: 8px 0; }
  .crm-opps tfoot tr { border-top: 2px solid var(--orona-navy); background: var(--orona-grey); padding: 8px; }
  .crm-opps tfoot th, .crm-opps tfoot td { border: 0; padding: 2px 0; }
  .crm-opps .crm-opps__project, .crm-opps .crm-opps__builder, .crm-opps .crm-opps__owner, .crm-opps .crm-opps__status { min-width: 0; }
  .crm-opps .crm-opps__pc { white-space: normal; }
  .crm-o1 { order: 1; } .crm-o2 { order: 2; } .crm-o3 { order: 3; } .crm-o4 { order: 4; }
  .crm-o5 { order: 5; } .crm-o6 { order: 6; } .crm-o7 { order: 7; } .crm-o8 { order: 8; }
  .crm-opps td:empty { display: none !important; }
  .crm-paging a, .crm-filtered-empty a, .crm-links a,
  .crm-opps-card .csv-link .slds-button { display: inline-flex; align-items: center; min-height: 44px; }
}
/* C4-3 (SPEC-C3C4 §13.3, G2 20–26): the record page's "Specification" card. Its form is the
   status-form row above (stacked below 768 px); Change and Cancel are 44 px targets on a phone. */
.crm-spec__now { margin: 0 0 2px; font-weight: 600; overflow-wrap: anywhere; }
.crm-spec__by { display: block; margin: 0 0 8px; }
.crm-spec__hint { margin: 0; }
.crm-spec__form .form-error { margin: 0 0 4px; }
.crm-spec__cancel { align-self: center; font-weight: 600; }
@media (max-width: 767.98px) {
  .crm-spec__change, .crm-spec__cancel { display: inline-flex; align-items: center; min-height: 44px; }
  .crm-spec__cancel { align-self: flex-start; }
}
/* C4-4 (SPEC-C3C4 §14.4, G2 pick 1A): the Parties card's people, inside each party's Company
   cell (a data-csv-skip block). Each person on its own lines; the add/change form is the
   status-form column; on a phone every link and button is a 44 px target and the form fields take
   the full width. S349 N1: on a phone the phone and email links take a line each, so the " · "
   before them is hidden rather than left hanging at the end of the line above. */
.crm-people { margin-top: 2px; }
.crm-people__list { margin: 0 0 4px; }
.crm-person { padding: 2px 0; overflow-wrap: anywhere; }
.crm-person__name { font-weight: 600; }
.crm-person__actions { display: inline-flex; flex-wrap: wrap; gap: 0 12px; margin-left: 8px; }
.crm-person__left { display: inline; }
.crm-person-form { margin: 4px 0 8px; max-width: 520px; }
.crm-person-form__form { display: flex; flex-direction: column; gap: 8px; }
.crm-person-form__form .form-error { margin: 0 0 4px; }
.crm-person-form__actions { display: flex; gap: 16px; align-items: center; }
.crm-person-form__cancel { font-weight: 600; }
/* C3-4 (F346; SPEC-C3C4 §5.3): the log form's "Call {name} on {phone}" opened by a person's
   "Call" link, a 44 px target at every width (it is what the exec taps to dial). */
.crm-call-prefill { margin: 0 0 8px; }
.crm-call-prefill__link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; overflow-wrap: anywhere; }
@media (max-width: 767.98px) {
  .crm-person__details { display: block; }
  .crm-person__sep { display: none; }
  .crm-person__link { display: flex; align-items: center; min-height: 44px; }
  .crm-person__actions { display: flex; margin-left: 0; }
  .crm-person__call, .crm-person__change, .crm-people__add,
  .crm-person-form__cancel { display: inline-flex; align-items: center; min-height: 44px; }
}
/* C4-5 (SPEC-C3C4 §15.3, G2 30, 40): the parties table's Attitude column (a word, never colour
   alone) and its Actions column ("Set attitude", "Remove"); "Set attitude" opens the inline row
   under the party: the 4-tap picker, then Save attitude and Cancel. On a phone every choice and
   action is a 44 px target and nothing scrolls sideways. */
.crm-parties__company { font-weight: 600; overflow-wrap: anywhere; }
.crm-parties__att { white-space: nowrap; }
.crm-parties__acts { white-space: nowrap; }
.crm-parties__remove { display: inline; margin-left: 16px; }
.crm-parties__acts .crm-parties__remove:first-child { margin-left: 0; }
.crm-attitude-form { display: flex; flex-direction: column; gap: 8px; margin: 4px 0 8px; }
.crm-attitude__step { margin: 0; padding: 0; border: 0; min-width: 0; }
.crm-attitude__legend { display: block; float: none; width: auto; margin: 0 0 4px; padding: 0; font-size: 14px; font-weight: 600; color: var(--orona-navy); overflow-wrap: anywhere; }
.crm-attitude .form-error { margin: 0 0 4px; }
.crm-attitude__actions { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; }
.crm-attitude__cancel { font-weight: 600; }
@media (max-width: 767.98px) {
  .crm-parties__att, .crm-parties__acts { white-space: normal; }
  .crm-parties__acts { display: flex !important; flex-wrap: wrap; align-items: center; gap: 0 16px; }
  .crm-parties__remove { margin-left: 0; }
  .crm-parties__set, .crm-attitude__cancel { display: inline-flex; align-items: center; min-height: 44px; }
}
/* C1-1 (F316, pick 3A = F365(3), SPEC-C1C2 §2): the record page's identity strip, six facts in
   one row under a navy rule; a figure from the group system sits on panel grey and says so (F321).
   1024–1279 px: three a row. Phone: a two-column key/value list, one column under 390 px. */
.crm-note--block { display: block; }
.crm-identity { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.5fr) minmax(0, 1.5fr) minmax(0, .8fr) minmax(0, 1.3fr) minmax(0, 1fr);
  margin: 0 0 16px; border-top: 2px solid var(--orona-navy); border-bottom: 1px solid var(--orona-rule); }
.crm-identity > div { min-width: 0; padding: 10px 12px; border-left: 1px solid var(--orona-rule); }
.crm-identity > div:first-child { border-left: 0; padding-left: 0; }
.crm-identity dt { font-size: 13px; font-weight: 400; color: var(--orona-navy); margin: 0 0 2px; }
.crm-identity dd { margin: 0; font-size: 15px; font-weight: 600; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.crm-identity > div.crm-identity__system, .crm-identity > div.crm-identity__editing { background: var(--orona-grey); }
.crm-identity__change { font-size: 14px; font-weight: 600; margin-left: 4px; }
.crm-identity__form { margin-top: 6px; }
.crm-identity__hint { font-size: 13px; font-weight: 400; color: var(--orona-navy); margin: 0 0 6px; }
.crm-identity__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 8px; }
.crm-field-error { display: block; margin: 0 0 4px; color: var(--orona-red); font-size: 14px; font-weight: 600; }
.crm-identity-inline { overflow-wrap: anywhere; }
.crm-identity-inline a { font-weight: 600; }
/* C1-6 (SPEC-C1C2 §6): the short cells beside an inline strip stay on one line from 768 px, so
   the strip wraps instead of squeezing an office or a date mid-word. Never on the strip's cell. */
@media (min-width: 768px) {
  .crm-nowrap { white-space: nowrap; }
}
@media (max-width: 1279.98px) {
  .crm-identity { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .crm-identity > div:nth-child(4) { border-left: 0; padding-left: 0; }
  .crm-identity > div:nth-child(n+4) { border-top: 1px solid var(--orona-rule); }
}
@media (max-width: 767.98px) {
  .crm-identity { grid-template-columns: minmax(0, 1fr); }
  .crm-identity > div, .crm-identity > div:first-child, .crm-identity > div:nth-child(4) {
    display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 8px; padding: 8px 0; border-left: 0; border-top: 1px solid var(--orona-rule); }
  .crm-identity > div:first-child { border-top: 0; }
  .crm-identity > div.crm-identity__system { padding-left: 8px; padding-right: 8px; }
  .crm-identity dt { margin: 0; }
  .crm-identity > div.crm-identity__editing { display: block; padding: 8px; }
  /* §1.7: every control in the header card is at least 44 px tall below 768 px. */
  .crm-identity__change, .crm-identity__actions a { display: inline-flex; align-items: center; min-height: 44px; margin-left: 0; }
}
@media (max-width: 389.98px) {
  .crm-identity > div, .crm-identity > div:first-child, .crm-identity > div:nth-child(4) { grid-template-columns: minmax(0, 1fr); gap: 0; }
}
/* C2-2 (SPEC-C1C2 §9, §1.7; F315, F328): "Assign to" on the record page and in the table's
   inline row. The select never widens the page (S-G1 §7 note 10): a long name is clipped inside
   it. Below 768 px the form stacks, full width, and every control (the row's "Assign" link and
   the confirm page's buttons included) is at least 44 px tall. */
.crm-assign__select { width: auto; max-width: 100%; min-width: 0; }
/* The header card's older selects ("Transfer to" is `w-auto`) share the rule: no long name
   pushes the record page past a phone's width (S-G1 §7 note 10). */
.crm-head select.w-auto { max-width: 100%; }
.crm-row-action { position: relative; font-weight: 600; white-space: nowrap; }  /* holds its hidden name inside the table's scroll box */
.crm-inline-row > td { background: var(--orona-grey); padding: 12px; }
/* 768–1279 px: the Actions column's width comes out of Status and Builder, so the table still
   fits its card at 1024 px without scrolling (doc 11; the long names wrap instead). */
@media (min-width: 768px) and (max-width: 1279.98px) {
  .crm-opps:has(.crm-col-actions) .crm-opps__status { min-width: 8rem; }
  .crm-opps:has(.crm-col-actions) .crm-opps__builder { min-width: 8.5rem; }
}
@media (max-width: 767.98px) {
  .crm-assign { flex-direction: column; align-items: stretch; }
  .crm-assign__select { width: 100%; min-height: 44px; }
  .crm-row-action { display: inline-flex; align-items: center; min-height: 44px; }
  .crm-o9 { order: 9; }
  /* Sentinel S340 S3 (C3-6): the save step's re-contact date and "Who won" select too. */
}
/* C1-7 (SPEC-C1C2 §7, G1 08a–08e): the "Views" menu, a native <details> beside the Status filter.
   Below 768 px it is full width and every control in it is at least 44 px tall (§1.7): the
   summary, each view link, Rename, Delete, the name inputs, Save view, Save name and Cancel. The
   "Delete this view?" buttons are the confirm page's (`.crm-confirm__actions`, above). */
.crm-views { position: relative; }
.crm-views > summary::-webkit-details-marker { display: none; }
.crm-views__panel { position: absolute; z-index: 20; left: 0; top: 100%; width: 440px; max-width: calc(100vw - 32px); padding: 12px 16px 16px;
  background: #FFFFFF; border: 1px solid var(--orona-navy); }
.crm-views__list { list-style: none; margin: 0 0 12px; padding: 0; }
.crm-views__list li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 6px 0; border-bottom: 1px solid var(--orona-rule); }
.crm-views__name { flex: 1 1 200px; min-width: 0; overflow-wrap: anywhere; font-weight: 600; }
.crm-views__acts { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.crm-views__acts form { display: inline; margin: 0; }
.crm-views__save { padding-top: 4px; }
.crm-views__head { font-size: 14px; font-weight: 700; color: var(--orona-navy); margin: 0 0 6px; }
.crm-views__hint { font-size: 13px; color: var(--orona-navy); margin: 0 0 6px; }
.crm-views__rename { flex: 1 1 100%; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; padding: 8px; background: var(--orona-grey); }
.crm-views__rename label { width: 100%; font-size: 13px; font-weight: 600; color: var(--orona-navy); margin: 0; }
.crm-views__rename .crm-field-error { width: 100%; }
.crm-views__empty, .crm-views__limit { margin: 0 0 12px; }
@media (max-width: 767.98px) {
  .crm-views__panel { position: static; width: auto; max-width: none; border-top: 0; }
  .crm-views__name a, .crm-views__acts a, .crm-views__rename a { display: inline-flex; align-items: center; min-height: 44px; }
}
/* S328 (C3-8-a, §1.7): below 768 px the card's W6-2 Radar Type controls ("Change type", the type
   select, "Save type", "Confirm …") are at least 44 px tall too, as on the Radar list. */
@media (max-width: 767.98px) {
  .crm-inbox-card .radar-inbox__type .radar-type__summary { min-height: 44px; }
  .crm-inbox-card .radar-inbox__type .radar-type__summary { display: inline-flex; align-items: center; }
}
/* C3-8 (F341, SPEC-C3C4 §9.4, §9.8; G1b block): the lead inbox card's "Possible same building"
   with "Add to this building", and the record page's "Possible links" inside the Quotes card.
   Long names wrap; below 768 px each item stacks and its buttons are full width, 44 px tall. */
.crm-same { margin: 0; padding: 0; }
.crm-same li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 0; border-top: 1px solid var(--orona-rule); }
.crm-same li:last-child { border-bottom: 1px solid var(--orona-rule); }
.crm-same__form { margin: 0; }
.crm-suggest h4 { font-size: 16px; font-weight: 700; color: var(--orona-navy); }
.crm-suggest__list li > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.crm-suggest__acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.crm-suggest__acts form { margin: 0; }
.crm-suggest__ask { margin: 0; max-width: 26rem; font-size: 14px; color: var(--orona-navy); }
@media (max-width: 767.98px) {
  .crm-same li, .crm-suggest__list li { flex-direction: column; align-items: stretch; }
  .crm-suggest__acts { flex-direction: column; align-items: stretch; }
}
/* C1-3 (SPEC-C1C2 §4, pick 1B = F365(1)): "Opportunities | By person" as the repo's `.rtabs`
   above the Status filter, and the By-person table (G1 07). Below 768 px each person is one card
   in the order Person, Units, Opportunities, Value (`order`), and both tabs are at least 44 px
   tall (§1.7; the Person link is covered by the C1-2 row-header rule). */
.crm-switch { margin: 4px 0 0; }
.crm-people .crm-people__person { min-width: 12rem; }
.crm-after { margin-top: 8px; }
@media (max-width: 767.98px) {
  .crm-switch .rtabs__item { display: inline-flex; align-items: center; min-height: 44px; }
  .crm-people .crm-people__person { min-width: 0; }
}
/* C1-8 (F375): the By-main-contractor table, laid out as By person (G1 07, P) with a Status
   breakdown column. A long contractor name wraps rather than widening the card; below 768 px each
   contractor is one card in the order Name, Units, Opportunities, Value, Status. */
.crm-builders .crm-builders__name { min-width: 12rem; overflow-wrap: anywhere; }
.crm-builders .crm-builders__status { min-width: 10rem; }
.crm-builders__stage { white-space: nowrap; }
@media (max-width: 767.98px) {
  .crm-builders .crm-builders__name, .crm-builders .crm-builders__status { min-width: 0; }
  .crm-builders__stage { white-space: normal; }
}
/* C6-1 (SPEC-C6 §2.2, §2.3, §2.7; F321): the 1-2-1's "Pipeline · from the CRM" card and the team
   table on its "pick an executive" page. Figures tabular; a stage's rows open in the page under
   its count; long names wrap. Below 768 px every control is a 44 px target (§1.5); at a phone's
   width each team card read Executive, Units, Open opportunities (§2.7; Brief 4 retired it). */
.one-pipeline__totals { margin: 0 0 4px; font-size: 14px; font-weight: 600; color: var(--orona-navy); font-variant-numeric: tabular-nums; }
.one-pipeline__more { margin: 0 0 8px; color: var(--orona-navy); }
.one-pipeline { font-variant-numeric: tabular-nums; }
@media (max-width: 767.98px) {
  .one-pipeline__crm { display: inline-flex; align-items: center; min-height: 44px; }
}
/* C6-5 (SPEC-C6 §5.3, §5.6; F353): the 1-2-1's "Why they lose" card. Figures tabular; a reason's
   rows open in the page under its count; a long description or name wraps. Below 768 px each
   count's summary, the "not in the CRM" sentence and the losses link are 44 px targets (§1.5). */
.one-causes { font-variant-numeric: tabular-nums; }
.one-causes__intro { margin: 0 0 8px; color: var(--orona-navy); }
.one-causes tbody th { overflow-wrap: anywhere; }
.one-causes__export-title { margin: 16px 0 8px; font-size: 14px; }
.one-causes__none, .one-causes__once { margin: 8px 0; }
@media (min-width: 721px) { .one-causes td[data-label="Units"] { white-space: nowrap; } }
@media (max-width: 767.98px) {
  .one-causes__crm {
    display: inline-flex; align-items: center; min-height: 44px;
  }
}
/* C6-3 (SPEC-C6 §4.6, §4.9; F347, F371; G2 60–67, pick 2A): the 1-2-1's "Deal review" card. Plain
   Yes/No radios whose label is the target; the hint and "Last: …" lines muted under the strip;
   a 120-character action and long names wrap. Below 768 px (§1.5) every control is 44 px: each
   radio label is 44 × 44, the agree form's fields, the project link, Done, "Agree action" and
   "Save the review" are 44 px tall, the save buttons full width (d63 A1). Only the layout switch
   to cards waits for a phone's width (≤ 720 px). */
.one-review__checks { margin: 0 0 12px; padding-left: 1.5rem; font-size: 14px; }
.one-review__checks li { padding: 1px 0; }
.one-review-grid th[scope="row"] { min-width: 18rem; font-weight: 400; overflow-wrap: anywhere; }
.one-review-grid th[scope="row"] .crm-identity-inline { font-weight: 600; }
.one-review__hint, .one-review__lastline { display: block; margin-top: 2px; font-size: 12px; font-weight: 400; color: var(--orona-navy); }
.one-review__word { font-weight: 600; }
.one-review__date { display: block; font-size: 12px; color: var(--orona-navy); }
.one-review h4 { margin: 20px 0 8px; font-size: 16px; font-weight: 700; color: var(--orona-navy); }
.one-review__note { display: block; font-size: 12px; color: var(--orona-navy); }
.one-actions-table td.one-actions__text, .one-closed-table td { overflow-wrap: anywhere; }
.one-actions-table td.one-actions__text { min-width: 14rem; }
@media (max-width: 767.98px) {
  .one-review .crm-identity-inline > a { padding: calc(22px - 0.55em) 0; } /* f-webkit-060: 44 px in Safari too (orona-slds-charts.css's inline-link rule) */
}
@media (max-width: 720px) {
  .one-review-grid th[scope="row"] { min-width: 0; }
  .one-review-grid td[data-label]::before { display: block; font-weight: 700; font-size: 13px; }
  .one-actions-table td.one-actions__text { min-width: 0; }
}
/* C3-5 (SPEC-C3C4 §6.2, G1b 01–03): "New leads of your team" on the Monday list. The count line
   reads as the card's figure; the Person cell is a row header (`th`), so below 768 px it takes the
   stacked cells' spacing and a long name wraps instead of widening the card. */
.crm-teamnew__count { margin: 0 0 8px; font-weight: 600; }
.crm-teamnew tbody th { font-weight: 600; overflow-wrap: anywhere; }
@media (max-width: 767.98px) {
  .crm-teamnew tbody th { border-bottom-width: 0; padding: 2px 0; }
}
/* C3-1 (SPEC-C3C4 §2, G1 12a): My items' quick filters as a row of links with counts, the
   "Overdue" badge with its own "!" shape (never ▲, which is Won's), "Stale" in muted words, and the
   one line for live quotes with no building. Below 768 px the card reads Project, Next action,
   Status first (`order`), and each quick filter is at least 44 px tall. */
.crm-quick { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.crm-quick__item { display: inline-flex; align-items: center; padding: 6px 12px; border: 1px solid var(--orona-rule); border-radius: 4px; font-size: 14px; font-weight: 600; color: var(--orona-navy); text-decoration: none; }
.crm-quick__item:hover { border-color: var(--orona-navy); text-decoration: none; }
.crm-quick__item[aria-current="true"] { border: 2px solid var(--orona-green); padding: 5px 11px; }
.crm-overdue { font-weight: 600; white-space: nowrap; }
.crm-overdue__shape { margin-right: 4px; font-weight: 700; }
.crm-none__shape { margin-right: 4px; color: var(--orona-navy); }
.crm-opps .crm-col-next { min-width: 11rem; }
.crm-opps thead th.crm-head-wrap { white-space: normal; }
.crm-unlinked { margin-top: 8px; }
/* 768–1279 px: My items has two more columns than All in my view, so its widths give way and the
   badge wraps; the table still fits its card at 1024 px (doc 11). */
@media (min-width: 768px) and (max-width: 1279.98px) {
  .crm-opps:has(.crm-col-next) .crm-opps__project { min-width: 8rem; }
  .crm-opps:has(.crm-col-next) .crm-opps__builder { min-width: 6rem; }
  .crm-opps:has(.crm-col-next) .crm-opps__status { min-width: 6.5rem; }
  .crm-opps:has(.crm-col-next) .crm-col-next { min-width: 7rem; }
  .crm-opps:has(.crm-col-next) .crm-overdue { white-space: normal; }
  /* S332 S3: the totals row's notes and the status words wrap between words, never inside one;
     their columns widen to the longest word and the Project column gives way. */
  .crm-opps:has(.crm-col-next) tfoot .crm-note,
  .crm-opps:has(.crm-col-next) td.crm-opps__status { overflow-wrap: normal; word-break: normal; }
}
.crm-unlinked__list { margin: 4px 0 0; padding-left: 20px; overflow-wrap: anywhere; }
@media (max-width: 767.98px) {
  .crm-quick__item, .crm-unlinked a, .crm-mine-empty a { min-height: 44px; }
  .crm-unlinked a, .crm-mine-empty a { display: inline-flex; align-items: center; }
  .crm-o10 { order: 10; }
  .crm-opps .crm-col-next { min-width: 0; }
}
/* C3-2 (SPEC-C3C4 §3.2, §3.5; CT-14): "Log contact" in the table's inline row. The steps read
   top to bottom, each choice a labelled button (the radio is `.btn-check`); the "Earlier" date
   and the "Or a date" box show only once their radio is picked (`:checked ~`, no script). A
   refused field has a red border beside its words (never colour alone). Below 768 px every
   choice, the Save and Cancel buttons and the row's actions are at least 44 px tall; the row
   stacks and nothing scrolls sideways. */
.crm-row-action + .crm-row-action { margin-left: 16px; }
/* From 768 px the two actions stack and may wrap, so the Actions column stays as narrow as it
   was with "Assign" alone and the table still fits its card at 1024 and 1366 px (doc 11). */
@media (min-width: 768px) {
  .crm-opps td.crm-col-actions, .crm-col-actions .crm-row-action { overflow-wrap: normal; word-break: normal; }
  .crm-col-actions .crm-row-action { display: block; white-space: normal; }
  .crm-col-actions .crm-row-action + .crm-row-action { margin: 4px 0 0; }
  /* S332 S3 from 1280 px too: beside the Actions column, My items' totals notes still wrap
     only between words. */
  .crm-opps:has(.crm-col-next) tfoot .crm-note { overflow-wrap: normal; word-break: normal; }
}
.crm-saved { margin-left: 4px; white-space: nowrap; }
.crm-log { display: flex; flex-direction: column; gap: 12px; max-width: 760px; }
.crm-log__title { margin: 0; font-size: 15px; font-weight: 700; color: var(--orona-navy); overflow-wrap: anywhere; }
.crm-log__step { margin: 0; padding: 0; border: 0; min-width: 0; }
.crm-log__legend { display: block; float: none; width: auto; margin: 0 0 4px; padding: 0; font-size: 14px; font-weight: 600; color: var(--orona-navy); }
.crm-log__hint { margin: 0 0 6px; font-size: 13px; color: var(--orona-navy); }
.crm-log .crm-picker { align-items: center; }
.crm-log__choice { display: inline-flex; align-items: center; min-height: 36px; }
.crm-log__reveal { display: none; flex: 1 0 100%; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 4px; }
.crm-log__earlier:checked ~ .crm-log__reveal { display: flex; }
.crm-log__notes { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px 16px; }
.crm-log__save { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.crm-log__save .crm-log__legend { margin: 0; }
/* C3-2 + C3-3 (F331): the call outcome in the inline row shows only while Call is picked (CSS
   only), under the type radios; each choice is a 44 px target at every width. */
.crm-log:has(input[name="kind"][value="call"]:checked) .crm-outcome { display: block; }
.crm-log .crm-outcome { margin: 8px 0 0 !important; padding: 0; border: 0; min-width: 0; }
.crm-log .crm-outcome legend { float: none; width: auto; margin: 0 0 4px; padding: 0; font-size: 14px; font-weight: 600; color: var(--orona-navy); }
@media (max-width: 767.98px) {
  .crm-row-action + .crm-row-action { margin-left: 12px; }
  .crm-log__choice { min-height: 44px; }
  .crm-log__notes { grid-template-columns: minmax(0, 1fr); }
  .crm-inline-row.crm-log > td { padding: 12px 8px; }
}

/* C6-2 (SPEC-C6 §3.3, §3.7, §1.5; G2 50b–56, pick 3B): "Win rate by main contractor". Win rate is
   the second column at every width, so the phone card reads in DOM order; figures tabular; a long
   contractor or project name wraps; below 768 px every figure link and list action is a 44 px
   target, and at ≤ 720 px the caption spans the card. */
.crm-winrate caption { caption-side: top; padding: 0 0 6px; font-size: 13px; color: var(--orona-navy); }
.crm-winrate th[scope="row"] { min-width: 14rem; }
.crm-winrate td { white-space: nowrap; }
.crm-winrate td a { font-weight: 600; }
.crm-winrate__count { margin: 0 0 8px; font-weight: 600; }
.crm-winrate__help { margin: 12px 0 0; font-size: 13px; color: var(--orona-navy); }
.crm-behind h3 { overflow-wrap: anywhere; }
@media (max-width: 767.98px) {
  .crm-winrate th[scope="row"] { min-width: 0; }
  .crm-winrate td { white-space: normal; }
  .crm-winrate td a, .crm-behind .crm-row-action { display: inline-flex; align-items: center; min-height: 44px; }
  .crm-behind .crm-identity-inline > a { padding: calc(22px - 0.55em) 0; } /* f-webkit-060: 44 px in Safari too (orona-slds-charts.css's inline-link rule) */
}
@media (max-width: 720px) {
  .crm-winrate caption { display: block; width: 100%; }
}
/* ---------- New Installation Sales · Reporting (#72): sections, tiles, funnel, report tables ---------- */
.rtabs { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0 0 12px; }
.rtabs__item { padding: 6px 0; font-size: 14px; font-weight: 600; color: var(--orona-navy); border-bottom: 3px solid transparent; text-decoration: none; }
.rtabs__item:hover { text-decoration: none; border-bottom-color: var(--orona-rule); }
.rtabs__item[aria-current="page"] { border-bottom-color: var(--orona-green); font-weight: 700; }
/* W1-5 (F262): the Help page of a Reporting section — contents, search, the figures table, the
   read-only thresholds — and the filters' "What the filters do" link (C1). */
.help-contents__title { margin: 0 0 8px; font-size: 16px; font-weight: 700; color: var(--orona-navy); }
.help-contents__list { display: flex; flex-wrap: wrap; gap: 4px 24px; margin: 0; padding: 0; list-style: none; }
.help-contents__list a { display: inline-block; padding: 6px 0; font-weight: 600; }
.help-search { max-width: 480px; margin: 0 0 12px; }
.help-search__row { display: flex; gap: 8px; }
.help-result { margin: 0 0 12px; font-weight: 600; color: var(--orona-navy); }
.help-subtitle { margin: 24px 0 8px; font-size: 16px; font-weight: 700; color: var(--orona-navy); }
.help-figures th[scope="row"] { min-width: 160px; color: var(--orona-navy); scroll-margin-top: 80px; }
.help-terms { margin: 0; }
.help-terms dt { margin: 12px 0 2px; font-weight: 700; color: var(--orona-navy); }
.help-terms dt:first-child { margin-top: 0; }
.help-terms dd { margin: 0 0 4px; overflow-wrap: anywhere; }
.scope__help { margin: 0 0 12px; font-size: 14px; }
@media (max-width: 720px) {
  .help-contents__list { flex-direction: column; gap: 0; }
  .help-contents__list a, .scope__help a { display: inline-flex; align-items: center; min-height: 44px; }
  .help-search { max-width: none; }
}
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.kpi { padding: 12px 16px; background: var(--orona-grey); border-top: 3px solid var(--orona-green); min-width: 0; }
.kpi__label { margin: 0 0 4px; font-size: 14px; font-weight: 600; color: var(--orona-navy); }
/* A figure never splits across lines ("£810,000." / "00", s378): a value breaks only at a space,
   and its size follows the tile's width (24 px down to 14 px), so "£12,345,678.00" fits a tile
   two to a row at 390 px. */
.kpis > .kpi { container-type: inline-size; }
.kpi__value { margin: 0; font-size: 24px; font-size: clamp(14px, 11cqi, 24px); font-weight: 700; color: var(--orona-navy); font-variant-numeric: tabular-nums; overflow-wrap: normal; }
.kpi__note { margin: 4px 0 0; font-size: 13px; color: var(--orona-navy); }
.funnel__meter { display: block; width: 100%; height: 12px; border: 0; background: var(--orona-grey); appearance: none; -webkit-appearance: none; }
.funnel__meter::-webkit-progress-bar { background: var(--orona-grey); }
.funnel__meter--won::-webkit-progress-value { background: var(--orona-green); }
.funnel__meter--won::-moz-progress-bar { background: var(--orona-green); }
.funnel__meter--open::-webkit-progress-value { background: var(--orona-navy); }
.funnel__meter--open::-moz-progress-bar { background: var(--orona-navy); }
.funnel__meter--lost::-webkit-progress-value { background: var(--orona-slate); }
.funnel__meter--lost::-moz-progress-bar { background: var(--orona-slate); }
/* #50 (doc 14 C24 d): the target line on a meter, an upright mark standing proud of the bar so it
   shows on the fill and the track alike; the modifier is crm.calc.TARGET_PERCENT (no inline
   style: CSP). */
.target-mark { display: block; position: relative; }
.target-mark::after { content: ""; position: absolute; top: -4px; bottom: -4px; width: 3px; margin-left: -1px; background: var(--orona-body); box-shadow: 0 0 0 1px #fff; }
.target-mark--70::after { left: 70%; }
/* W2-4: the scoreboard's sort: header links (a sort is a URL) and the "Sort by" form. No arrow on
   the sorted header: ▲ / ▼ are status shapes only (pick 4A, F365(4); S320 B1). The direction is
   `aria-sort` on the th and visually hidden words in the link, as the CRM table (#320). */
.score-sort { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
@media (max-width: 1023px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Phone: one card per row, labels before values (A11, docs/11). */
@media (max-width: 720px) {
  .kpis { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .score-sort__go { min-height: 44px; }
  /* W2-4 §7: each card leads with what the spec puts first. */
  .scoreboard tr, .league tr, .one-matrix tr { display: flex; flex-direction: column; }
  /* W4-5 §7: each model's card leads with % of their offers, win rate and gap, then the rest. */
  .one-products tr { display: flex; flex-direction: column; }
  .one-products td { order: 4; }
  .scoreboard td[data-label="Of target"] + td { order: 1; }
  .scoreboard td[data-label="Target"] { order: 3; }
  .scoreboard td[data-label="Of target"] { order: 8; }
  .league td[data-label="Of target"] { order: 4; }
  .league td[data-label="Of target"] + td { order: 5; }
  .league td[data-label="Target"] { order: 7; }
}

/* W2-5: the week-on-week line above the Dashboard tiles and under the 1-2-1 heading: one sentence
   whose counts are drop-downs; it wraps, the badges keep their words whole. */
.wow { line-height: 1.9; overflow-wrap: anywhere; }
/* One-look D10 (Designer d-onelook-p1ac M3, Sentinel s-onelook-p1a S5): each link sits in its "· item" unit (o-nobr) and is a
   44 px target below 1024 px: a flex box on a phone; at 721-1023 px a 44 px ::after hit area (16 + 28), so the sentence keeps
   its line height. The one rule for these links (the "i"'s own Help link is not one of them). */
@media (max-width: 720px) { .wow .o-nobr > a { display: inline-flex; align-items: center; min-height: 44px; } }
@media (min-width: 721px) and (max-width: 1023.98px) { .wow .o-nobr > a { position: relative; } .wow .o-nobr > a::after { content: ""; position: absolute; inset: -14px -4px; } }
/* W1-5b (F262): the "i" after a figure's label, a tile's or a card's heading, or last in a header
   cell. D9: the D2 help's outline "i" (info-circle, stroke 1.5, 16 px, navy; green while open), no
   heavier than the label it explains, in a 24 px target (44 px on a phone). Its definition opens
   below as a panel the width of the tile or card (the nearest positioned box), over what follows,
   so nothing moves. No script, no inline style. */
.kpi, .wow { position: relative; }
.figinfo { display: inline-block; margin-left: 6px; vertical-align: middle; line-height: 1; }
/* A tile's "i" stays on its label's last line ("Not-sold discount ⓘ", never the "i" alone under it
   at 390 px): the label runs inline and its end padding keeps room for the "i" beside its last word
   (a word that can't fit the padding wraps with it); the "i" moves back into that room. */
.kpi__label:has(+ .figinfo) { display: inline; padding-right: 30px; }
.kpi__label + .figinfo { margin-left: -24px; }
.figinfo__i { position: relative; list-style: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; }
.figinfo__i::-webkit-details-marker { display: none; }
.figinfo__mark { display: inline-flex; align-items: center; justify-content: center; color: var(--orona-navy); }
.figinfo__mark .icon { width: 16px; height: 16px; }
.figinfo__i:focus-visible { outline: 2px solid var(--orona-navy); outline-offset: 2px; }
.figinfo[open] .figinfo__mark { color: var(--orona-green); }
.figinfo__panel { position: absolute; left: 0; right: 0; z-index: 5; margin-top: 6px; padding: 12px 16px; background: #FFFFFF; border: 1px solid var(--orona-rule); border-top: 3px solid var(--orona-navy); text-align: left; font-size: 13px; font-weight: 400; font-style: normal; line-height: 1.5; color: var(--orona-body); white-space: normal; text-transform: none; letter-spacing: normal; }
/* A closed panel takes no room; the summary holds its hidden words, so in a scrolled table neither
   widens the page. */
.figinfo:not([open]) > .figinfo__panel { display: none; }
.figinfo__panel p { margin: 0 0 6px; }
.figinfo__panel p:last-child { margin-bottom: 0; }
.figinfo__title { font-weight: 700; color: var(--orona-navy); }
.figinfo__basis { color: var(--orona-navy); }
.figinfo__basis a { text-decoration: underline; }
@media print { .figinfo { display: none; } } /* paper has nothing to open */
@media (max-width: 720px) {
  .figinfo__i { width: 44px; height: 44px; }
  .figinfo { margin-left: 0; }
  /* The 44 px target overflows a 24 px line slot, so a wrapped label keeps its line spacing. */
  .kpi__label:has(+ .figinfo) { padding-right: 44px; }
  .kpi__label + .figinfo { margin: -10px 0 -10px -44px; }
  .kpi__label + .figinfo + * { margin-top: 14px; }
}
/* One-look D4 group 1 (C4 4: 44 x 44 below 1024; Designer d-onelook-p2c F1) r3 (Lobster's ruling, 14 Nov): from 721 to
   1023 the "i" keeps its 24 x 24 box on its heading's line (a 44 px box rode 8-10 px above the words, grew every card head
   16 px and pushed "Download CSV" under a long heading) and a finger hits 44 x 44 round it: its ::after (10 px a side). */
@media (min-width: 721px) and (max-width: 1023.98px) {
  .figinfo__i::after { content: ""; position: absolute; inset: -10px; }
}

/* W6-5 (plan row 94): the "Dates and values" tiles sit two to a row on a phone (the third alone). */
@media (max-width: 720px) {
  .shifts > .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* #203 (D7): the shared "Download CSV" link of a table, at the right above it; a 44 px target at
   phone width (docs/11). */
.csv-link { display: flex; justify-content: flex-end; margin-bottom: .5rem; }
/* POLISH1 (D26(b)): the link itself is the design system's neutral button (slds-button_neutral,
   orona-slds.css), the one look of every "Download CSV"; E33b's navy outline copy of Tabler's
   button went. A 44 px target at phone width. */
/* one-look D3 item 3 (Designer d-onelook-p9c M6, PROVEN-FIXES M2): 44 px below 1024, not only on a phone (it was 133 x 32 at 721 / 768 / 1023) */
@media (max-width: 1023.98px) { .slds-scope .csv-link .slds-button { min-height: 44px; } }

/* W2-6: Settings › Targets, the yearly set-up page. A row's form sits in its Change cell: units
   and £ side by side per type, each with its visible label ("A units"); each input also carries an
   aria-label naming its row. */
@media (max-width: 720px) {
  .targets tfoot, .targets tfoot tr { display: block; width: 100%; }
  .targets tfoot th, .targets tfoot td { display: block; width: 100%; padding: 2px 0; border: 0; text-align: left !important; }
  .targets tfoot td[data-label]::before { content: attr(data-label) ": "; font-size: 12px; color: var(--orona-navy); }
}

/* W6-1: Settings › Radar matching, beside Settings › Targets. The add and "Try a name" forms sit
   in a row from tablet width and stack on a phone (label, hint, field, button); the word table is
   one card per word (.rtable); "Remove", "Keep" and the form buttons are 44 px targets there. */
.radar-form__row, .radar-form__fields { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; }
.radar-form__fields > div { flex: 1 1 14rem; max-width: 24rem; }
.radar-confirm__actions { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 720px) {
  .radar-form__row, .radar-form__fields { flex-direction: column; align-items: stretch; }
  .radar-form__fields > div { max-width: none; flex: none; }
}

/* W6-2: NIS › Reporting › Radar, beside Settings › Radar matching. Five tiles (two to a row on a
   phone, coverage last); the chips and the pager are the client page's (W3-2); the filters fold
   behind one "Filter" summary and stack on a phone. On a phone each project is one card led by its
   title, then Why, Builder in our book?, Lead, Start, Type, Builder, Postcode (spec §7), and every
   button and link in the list is a 44 px target. Long titles and names wrap in their cell. */
.radar-kpis { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.radar-filter { margin: 0 0 8px; }
.radar-filter__summary { display: inline-flex; align-items: center; min-height: 32px; font-weight: 600; color: var(--orona-navy); cursor: pointer; }
.radar-filter__form { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; margin-top: 8px; }
.radar-filter__form > div { flex: 1 1 10rem; max-width: 16rem; }
.radar-filter__form > .radar-filter__buttons { display: flex; flex-wrap: wrap; gap: 8px; max-width: none; flex: 0 0 auto; }
.radar-count, .radar-showing { margin-bottom: 4px; }
.radar-rows th[scope="row"], .radar-rows__builder, .radar-rows__why, .radar-rows__book { overflow-wrap: anywhere; }
.radar-rows__id { display: block; font-size: 12px; font-weight: 400; color: var(--orona-navy); }
.radar-rows__start, .radar-rows__postcode { white-space: nowrap; }
.radar-rows tr:target, .radar-rows tr:focus { outline: 2px solid var(--orona-green); outline-offset: -2px; }
.radar-call, .radar-type__confirm { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.radar-type__hint { display: block; font-size: 12px; }
.radar-type__summary { cursor: pointer; color: var(--orona-navy); font-size: 12px; }
.radar-type__form { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; margin-top: 4px; }
.radar-inbox__type .radar-type__hint { display: inline; }
@media (max-width: 1023px) { .radar-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) {
  .radar-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .radar-kpis > .kpi[data-tile="coverage"] { grid-column: 1 / -1; }
  .radar-filter__summary { min-height: 44px; }
  .radar-filter__form { flex-direction: column; align-items: stretch; }
  .radar-filter__form > div { max-width: none; flex: none; }
  .radar-rows td { order: 8; }
  .radar-rows td.radar-rows__why { order: 1; }
  .radar-rows td.radar-rows__book { order: 2; }
  .radar-rows td.radar-rows__lead { order: 3; }
  .radar-rows td.radar-rows__start { order: 4; }
  .radar-rows td.radar-rows__type { order: 5; }
  .radar-rows td.radar-rows__builder { order: 6; }
  .radar-rows td.radar-rows__postcode { order: 7; }
  #radar-list .radar-type__summary { min-height: 44px; }
  #radar-list .radar-rows a, #radar-list .radar-empty a, #radar-list .radar-type__summary { display: inline-flex; align-items: center; }
  #radar-list .radar-rows a, #radar-list .radar-empty a { min-height: 44px; }
}

/* W2-3: the monthly won chart, drawn by the server (calc_present.month_chart): bars A green, H/U
   slate stacked above; line 1 navy, line 2 grey; the plan amber dashed (series order, orona-brand).
   The geometry is in the SVG's attributes; only colours, strokes and the dash are here (CSP). */
.month-chart { display: block; width: 100%; height: auto; max-height: 320px; margin-bottom: 8px; }
.month-chart__base { stroke: var(--orona-rule); stroke-width: 1; vector-effect: non-scaling-stroke; }
.month-chart__bar--a { fill: var(--orona-green); }
.month-chart__bar--hu { fill: var(--orona-slate); }
.month-chart a:focus-visible rect { stroke: var(--orona-navy); stroke-width: 2; vector-effect: non-scaling-stroke; }
.month-chart__line { fill: none; stroke-width: 2; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.month-chart__line--1 { stroke: var(--orona-navy); }
.month-chart__line--2 { stroke: #767D75; }
.month-chart__plan { stroke: var(--orona-amber); stroke-width: 2; stroke-dasharray: 6 4; vector-effect: non-scaling-stroke; }
.month-chart__month { fill: var(--orona-navy); font-size: 10px; }
.month-chart__legend { display: flex; flex-wrap: wrap; gap: 4px 16px; padding: 0; margin: 0 0 8px; list-style: none; font-size: 14px; color: var(--orona-navy); }
.month-chart__key { display: inline-block; width: 14px; height: 10px; margin-right: 6px; vertical-align: middle; }
.month-chart__key--a { background: var(--orona-green); }
.month-chart__key--hu { background: var(--orona-slate); }
.month-chart__key--line1 { height: 0; border-top: 2px solid var(--orona-navy); }
.month-chart__key--line2 { height: 0; border-top: 2px solid #767D75; }
.month-chart__key--plan { height: 0; border-top: 2px dashed var(--orona-amber); }

/* W3-1: the client page. "Find a client" and its suggestions, 44 px targets on a phone. */
.client-search__result { font-size: 14px; }
.client-suggest__list { list-style: none; margin: 4px 0 0; padding: 0; }
.client-suggest__link { display: block; padding: 4px 0; overflow-wrap: anywhere; }
.client-suggest__note { margin: 4px 0 0; font-size: 13px; color: var(--orona-navy); }
@media (max-width: 720px) {
  .client-search__button { min-height: 44px; width: 100%; }
  .client-suggest__link { display: flex; align-items: center; min-height: 44px; }
}

/* W3-2: the client page's "Quote history" and "Lost and not sold". The chips (Show) and the
   versions switch are links, the one in force navy (aria-current); Quot. and version sit small and
   navy (F71) under the project; long names wrap in their cell. On a phone each row is a card in the
   spec's priority (§7) and every chip, pager and project link is a 44 px target (docs/11). */
.client-chips__bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; margin-bottom: 8px; }
.client-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.client-chips__link, .client-pager__link { display: inline-flex; align-items: center; padding: 2px 10px; border: 1px solid var(--orona-rule); border-radius: 4px; color: var(--orona-navy); text-decoration: none; }
.client-chips__link[aria-current="true"] { background: var(--orona-navy); border-color: var(--orona-navy); color: #FFFFFF; font-weight: 600; }
.client-history th[scope="row"] { overflow-wrap: anywhere; }
.client-history td:is([data-label="Selling £"], [data-label="Quote date"], [data-label="Discount"]) { white-space: nowrap; }
.client-pager { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 8px; }
@media (max-width: 720px) {
  .client-chips__link, .client-pager__link, .client-history th[scope="row"] a { min-height: 44px; }
  .client-history th[scope="row"] a { display: inline-flex; align-items: center; }
}
/* W3-3: the client page's bar per discount band (calc_present.band_bar); not sold is navy, never red (Q5) */
.band-bar { display: block; width: 100%; min-width: 6rem; height: 12px; }
.band-bar__won { fill: var(--orona-green); }
.band-bar__live { fill: var(--orona-slate); }
.band-bar__not-sold { fill: var(--orona-navy); }
/* W3-5: the district meters (and the radar's coverage) in the brand green. design/command-
   centre/v2 split the two cards (clients on the centre, districts on More figures), so their
   side-by-side grid is gone. */
.cc-share::-webkit-progress-value { background: var(--orona-green); }
.cc-share::-moz-progress-bar { background: var(--orona-green); }
/* W6-3: the command centre's "Market radar" card (UK-wide, W6-2's board); on a phone each figure
   is a card, its label then its number, and every link a 44 px target. */
@media (max-width: 720px) {
  .cc-radar__open { display: inline-flex; align-items: center; min-height: 44px; }
}
/* W3-4: "Where to open" on the client page: the answer first, then the facts it rests on. */
.client-open__lead { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 0 0 16px; }
.client-open__figure { font-size: 24px; font-weight: 700; color: var(--orona-navy); font-variant-numeric: tabular-nums; }
.client-open__why { flex-basis: 100%; font-size: 14px; color: var(--orona-navy); }
.client-open__facts dd { font-variant-numeric: tabular-nums; }
@media (max-width: 720px) {
  .client-open__facts { grid-template-columns: 1fr; }
}
/* W4-1: the per-year table's trend sparklines, drawn by calc_present.year_trend, colours by class. */
.year-trend { display: inline-block; width: 60px; height: 16px; overflow: visible; }
.year-trend__line { fill: none; stroke: var(--orona-navy); stroke-width: 1.5; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.year-table__trend th { font-weight: 400; color: var(--orona-navy); }
@media (max-width: 720px) {
  /* §7: the 1-2-1 zoom's six tiles, two to a row. Designer review 20 Oct (Q1): 12 px padding and
     a 13 px label, so the figure (about 16.8 px at 390) reads as the headline, label:figure 1:1.3. */
  .one-kpis > .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .one-kpis > .kpis > .kpi { padding: 12px; }
  .one-kpis > .kpis .kpi__label { font-size: 13px; }
}
/* Designer review 20 Oct (Q3.1): from 1024 px the 1-2-1's six tiles sit 3 + 3, not 4 + 2. */
@media (min-width: 1024px) { .one-kpis > .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* W5-1: the exec report. The team row is the reporting line's average, in navy (F71), with no list;
   the no-team sentence under it; long project and client names wrap inside their cells. */
.report-team th, .report-team td { color: var(--orona-navy); }
.report-team-note { font-size: 13px; color: var(--orona-navy); margin: 8px 0 0; }
.report-year caption, .report-forecast-rows caption { caption-side: top; font-size: 13px; color: var(--orona-navy); }
.report-forecast-rows td { overflow-wrap: anywhere; }
.report-outside { font-size: 13px; margin: 8px 0; }
.report-foot { margin-top: 16px; }
@media (max-width: 720px) {
  /* §7: each forecast quote is one card led by its project, then month, £, units, client, Quot. */
  .report-forecast-rows .report-forecast-rows__project { order: 1; }
  .report-forecast-rows .report-forecast-rows__month { order: 2; }
  .report-forecast-rows .report-forecast-rows__value { order: 3; }
  .report-forecast-rows .report-forecast-rows__units { order: 4; }
  .report-forecast-rows .report-forecast-rows__client { order: 5; }
  .report-forecast-rows .report-forecast-rows__quot { order: 6; }
}
/* W5-3 §5 (My report): the one pattern's sentence, and its "How this is chosen" list (screen only). */
.report-pattern { font-size: 16px; color: var(--orona-navy); margin: 0 0 8px; }
.report-why > summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; }
.report-why__rules { margin: 0; padding-left: 20px; }

/* W5-2: the exec report's §4 "Needs your action". Long projects and clients wrap in their cells;
   on a phone each quote is a card led by its project, in the spec's order (§7), and the act link
   is a 44 px target (docs/11). */
.report-action__title { font-size: 15px; margin: 16px 0 4px; }
.report-action__block:first-child .report-action__title { margin-top: 0; }
.report-action__lead { margin: 0 0 8px; }
.report-action__do, .report-action__more { margin: 8px 0 0; }
.report-action .report-action__project, .report-action .report-action__client { overflow-wrap: anywhere; }
.report-action td:is(.report-action__value, .report-action__month, .report-action__quot, .report-action__quoted) { white-space: nowrap; }
@media (max-width: 720px) {
  .report-action__link { display: inline-flex; align-items: center; min-height: 44px; }
  .report-action .report-action__project { order: 1; }
  .report-action .report-action__month, .report-action .report-action__idle, .report-action .report-action__quoted { order: 2; }
  .report-action .report-action__value { order: 3; }
  .report-action .report-action__last { order: 4; }
  .report-action .report-action__stage { order: 5; }
  .report-action .report-action__units { order: 6; }
  .report-action .report-action__client { order: 7; }
  .report-action .report-action__quot { order: 8; }
  .report-action .report-action__act { order: 9; }
  .report-action .report-action__act::before { content: none; }
}

/* W5-3 §5 (My report): the one pattern's sentence, and its "How this is chosen" list (screen only). */
.report-pattern { font-size: 16px; color: var(--orona-navy); margin: 0 0 8px; }
.report-why > summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; }
.report-why__rules { margin: 0; padding-left: 20px; }

/* W6-4 §7: "Who beats us" at a phone's width, one card per competitor led by its name, then Lost £,
   Losses, Avg discount and Biggest loss; the total is the last card. */
.who-beats-us th[scope="row"] { overflow-wrap: anywhere; }
@media (max-width: 720px) {
  .who-beats-us td[data-label="Lost £"] { order: 1; }
  .who-beats-us td[data-label="Losses"] { order: 2; }
  .who-beats-us td[data-label="Avg discount"] { order: 3; }
  .who-beats-us td[data-label="Biggest loss"] { order: 4; }
}

/* W4-2 FC-2: the 1-2-1's forecast rows; long names wrap; "Show all" is a 44 px target; at a phone's
   width each quote is one card led by its project, then month, £, next action, last call, units,
   client and Quot. (§7). The team's cells are plain navy text. */
.forecast-rows caption { caption-side: top; font-size: 13px; color: var(--orona-navy); }
.forecast-rows th[scope="row"], .forecast-rows__client { overflow-wrap: anywhere; }
.forecast-rows :is(.forecast-rows__month, .forecast-rows__value, .forecast-rows__quot) { white-space: nowrap; }
.forecast-more { margin-top: 8px; }
.forecast-more > summary { display: flex; align-items: center; min-height: 44px; cursor: pointer; color: var(--orona-navy); font-weight: 600; }
.due__team { color: var(--orona-navy); }
@media (max-width: 720px) {
  .forecast-rows .forecast-rows__project { order: 1; }
  .forecast-rows .forecast-rows__month { order: 2; }
  .forecast-rows .forecast-rows__value { order: 3; }
  .forecast-rows .forecast-rows__next { order: 4; }
  .forecast-rows .forecast-rows__last { order: 5; }
  .forecast-rows .forecast-rows__units { order: 6; }
  .forecast-rows .forecast-rows__client { order: 7; }
  .forecast-rows .forecast-rows__quot { order: 8; }
}

/* C5-1 (SPEC-C5 §8; G3 mocks 40–45): the CRM email cards on /outbox/ and the preview page. A
   rule's state is a word plus a shape, never colour alone; the R4 warning is a bordered box with
   ▲ and words (S-G3 designer S1), not a badge. Radius 0, no shadow, no inline style. */
.outbox-state { margin: 0 0 6px; font-weight: 600; color: var(--orona-body); }
.outbox-state--on { color: var(--orona-navy); }
.outbox-warning { display: flex; gap: 8px; margin: 8px 0 6px; padding: 8px 12px; color: var(--orona-body);
  background: #FFFFFF; border: 1px solid var(--orona-body); border-left: 6px solid var(--orona-amber); }
.outbox-warning__shape { flex: none; font-weight: 700; }
.outbox-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 12px; }
.outbox-actions form { margin: 0; }
.outbox-crm-rule .crm-confirm { margin-top: 12px; }
.outbox-preview { margin: 0; padding: 12px; font-size: 14px; line-height: 1.5; white-space: pre-wrap;
  overflow-wrap: anywhere; background: var(--orona-grey); border-left: 4px solid var(--orona-navy);
  color: var(--orona-body); }
.outbox-crm-rule { overflow-wrap: anywhere; }

/* D8: the 1-2-1's headline figures heading, and the "This month" card's jump target (its heading's partial is shared). */
.one-section__title { font-size: 16px; font-weight: 600; color: var(--orona-navy); margin: 0 0 4px; }
.one-jump-target:focus { outline: none; }
.one-jump-target:focus-visible .o-card { outline: 2px solid var(--orona-navy); outline-offset: 2px; } /* E32a: This month is an o-card in its own .slds-scope */
