/* ------------------------------------------------------------------
   evoHouse.css - the house components of the modernized look
   (docs-dev/styling.inc; house plan section 7.2, ruled 07-10-2026).

   Every component another page could use lives here under a generic
   evo- class name, loaded globally from index.php straight after
   style.css. Pages hold markup only: no <style> copy and no
   page-prefixed copy (rq-, or-, tk-...) of a house component, so a
   change to the house design is one edit here, not an audit of every
   page. Truly page-specific rules go in assets/css/modules/<page>.css.
   ------------------------------------------------------------------ */
/* View chips (docs-dev/styling.inc 1.4f): a one-line strip of filter buttons with
   counts - the register's status buckets, a workspace's saved views. Exactly one
   is .active (filled primary); clicking it again clears back to all. The count
   sits in a pill; .is-warning / .is-danger tint that pill so a bucket that is a
   problem reads as one without a tile row. .is-empty fades a bucket with nothing
   in it. Adopted by reqreg and opportunityWorkspace (chips, saved views, phone stage strip). */
.evo-vchips { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; }
/* Register views (ticket 1413, library/RegisterViews.php + evoRegister.js): a "My views"
   chip-style menu and a labelled Pin button beside the view chips. The chip shows the
   matching view's name (and goes active); Pin reads "Pinned" while the list shows the
   view it opens on. */
.evo-rv .evo-rv-toggle .material-symbols-rounded { font-size: 18px; color: inherit; }
.evo-rv .evo-rv-toggle .evo-rv-caret { font-size: 16px; margin-left: -.2rem; }
.evo-rv .evo-rv-toggle.is-match { border-color: var(--main-highlight-color); color: var(--main-highlight-color); font-weight: 600; }
.evo-rv .evo-rv-label { max-width: 14rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.evo-rv .evo-rv-pin { display: inline-flex; align-items: center; gap: .25rem; border-radius: 999px; padding: .15rem .6rem .15rem .45rem;
	border: 1px dashed var(--evo-faint); color: var(--evo-ink-2); background: transparent; font-size: .8125rem; line-height: 1.4; }
.evo-rv .evo-rv-pin .material-symbols-rounded { font-size: 16px; color: inherit; transform: rotate(45deg); transition: transform .15s; }
.evo-rv .evo-rv-pin:hover, .evo-rv .evo-rv-pin:focus-visible { border-color: var(--main-highlight-color); color: var(--main-highlight-color); }
.evo-rv .evo-rv-pin.is-on { border-style: solid; border-color: var(--main-highlight-color); color: var(--main-highlight-color); font-weight: 600; }
.evo-rv .evo-rv-pin.is-on .material-symbols-rounded { transform: none; }
.evo-rv-menu { width: 21rem; max-width: calc(100vw - 2rem); font-size: .875rem; }
.evo-rv-head { display: flex; justify-content: space-between; align-items: baseline; padding: .6rem .85rem .35rem;
	font-size: .75rem; letter-spacing: .04em; text-transform: uppercase; color: var(--evo-muted); }
.evo-rv-empty { padding: .25rem .85rem .6rem; color: var(--evo-muted); }
.evo-rv-list { padding: 0 .35rem .35rem; }
.evo-rv-item { display: flex; align-items: center; gap: .1rem; border-radius: .375rem; }
.evo-rv-item:hover, .evo-rv-item.is-current { background: rgba(0, 0, 0, .045); }
.evo-rv-item.is-current .evo-rv-name { font-weight: 600; }
.evo-rv-apply { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: .4rem; border: 0; background: none;
	padding: .35rem .5rem; text-align: left; color: inherit; }
.evo-rv-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.evo-rv-tag { flex: none; font-size: .6875rem; padding: 0 .4rem; border-radius: 999px; background: var(--main-highlight-color); color: #fff; }
.evo-rv-act { flex: none; border: 0; background: none; padding: .2rem .3rem; border-radius: .25rem; color: var(--evo-muted); line-height: 1; }
.evo-rv-act .material-symbols-rounded { font-size: 17px; color: inherit; }
.evo-rv-act .material-symbols-rounded.nofill { font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24 !important; }
.evo-rv-act:hover, .evo-rv-act:focus-visible { color: var(--main-highlight-color); background: rgba(0, 0, 0, .06); }
.evo-rv-act.is-on { color: var(--main-highlight-color); }
.evo-rv-act.is-confirm { color: #fff; background: #dc3545; font-size: .75rem; padding: .2rem .45rem; }
.evo-rv-rename { flex: 1 1 auto; margin: .15rem .25rem; }
.evo-rv-update { display: flex; align-items: center; gap: .4rem; width: 100%; border: 0; border-top: 1px solid var(--evo-line-soft); background: none;
	padding: .5rem .85rem; text-align: left; color: var(--main-highlight-color); }
.evo-rv-update .material-symbols-rounded { font-size: 17px; color: inherit; }
.evo-rv-update:hover { background: rgba(0, 0, 0, .045); }
.evo-rv-save { border-top: 1px solid var(--evo-line-soft); padding: .6rem .85rem .7rem; }
.evo-rv-save-label { display: block; font-size: .75rem; color: var(--evo-muted); margin-bottom: .3rem; }
.evo-rv-msg { padding: 0 .85rem .6rem; }
.evo-rv-full { font-size: .75rem; color: #856404; margin-top: .35rem; }
/* Date range (library/DateRange.php + evoRegister.js): a select-style button naming the
   range, a menu of presets beside a Custom pair. Stacks on a phone. */
.evo-dr .evo-dr-btn { min-width: 11rem; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.evo-dr-menu { min-width: 0; font-size: .875rem; }
.evo-dr-menu.show { display: flex; }
.evo-dr-presets { display: flex; flex-direction: column; padding: .35rem; min-width: 12rem; border-right: 1px solid var(--evo-line-soft); max-height: 27rem; overflow-y: auto; }
.evo-dr-opt { border: 0; background: none; text-align: left; padding: .3rem .6rem; border-radius: .3rem; color: inherit; white-space: nowrap; }
.evo-dr-opt:hover, .evo-dr-opt:focus-visible { background: rgba(0, 0, 0, .05); }
.evo-dr-opt.is-on { background: var(--main-highlight-color); color: #fff; }
.evo-dr-custom { padding: .6rem .8rem; width: 12.5rem; }
.evo-dr-custom-head { font-size: .75rem; letter-spacing: .04em; text-transform: uppercase; color: var(--evo-muted); margin-bottom: .35rem; }
.evo-dr-l { display: block; font-size: .75rem; color: var(--evo-muted); margin: .25rem 0 .1rem; }
.evo-dr-hint { font-size: .75rem; color: var(--evo-muted); margin: .35rem 0 .5rem; }
@media (max-width: 575.98px) {
	.evo-dr-menu.show { flex-direction: column; }
	.evo-dr-presets { border-right: 0; border-bottom: 1px solid var(--evo-line-soft); max-height: 14rem; }
	.evo-dr-custom { width: auto; }
}
.evo-vchip {
	display: inline-flex;
	align-items: center;
	gap: .4rem;
	border: 1px solid var(--evo-mist);
	background: #fff;
	color: var(--evo-ink);
	border-radius: 1rem;
	padding: .22rem .35rem .22rem .85rem;
	font-size: .95rem;
	line-height: 1.4;
	white-space: nowrap;
	cursor: pointer;
}
.evo-vchip:hover { background: var(--evo-steel); }
.evo-vchip:focus-visible { outline: 2px solid var(--bs-primary); outline-offset: 1px; }
.evo-vchip.active { background: var(--bs-primary); border-color: var(--bs-primary); color: #fff; }
.evo-vchip-n {
	display: inline-block;
	min-width: 1.6em;
	padding: 0 .45rem;
	border-radius: 1rem;
	background: var(--evo-line-soft);
	color: var(--evo-ink-2);
	font-weight: 600;
	font-size: .875rem;
	text-align: center;
	font-variant-numeric: tabular-nums;
}
.evo-vchip.is-warning .evo-vchip-n { background: #fff3cd; color: #664d03; }
.evo-vchip.is-danger .evo-vchip-n { background: #f8d7da; color: #842029; }
.evo-vchip.active .evo-vchip-n { background: rgba(255,255,255,.25); color: #fff; }
.evo-vchip-sub { opacity: .75; padding-right: .3rem; }
.evo-vchip-sub:empty { display: none; }
.evo-vchip-sub.is-optional { font-style: italic; } /* quotedit Sections chips: an Optional Extra section (still in Total ex GST) */
.evo-vchip.is-empty { opacity: .6; }
.evo-vchip.is-empty .evo-vchip-n { background: var(--evo-line-soft); color: var(--evo-ink-2); }
/* Toggle-chip group (candidate 14-10-2026, jobregister "Focus"): on/off chips that are
   a different kind of control from view chips - any mix may be on, and they narrow
   whichever view is picked. On jobregister the group sits first in the Advanced panel
   (01-11-2026; the chip row can't hold it at 1536). Boxed and labelled so they read as one set,
   and "on" is a tinted chip with a tick, never the view chip's solid fill.
     <div class="evo-vchips-group" role="group" aria-label="...">
       <span class="evo-vchips-label">Focus</span>
       <button type="button" class="evo-vchip [active]" aria-pressed="...">Label <span class="evo-vchip-n">3</span></button>
     </div> */
.evo-vchips-group {
	display: flex; flex-wrap: wrap; align-items: center; gap: .45rem;
	padding: .2rem .3rem .2rem .7rem;
	border: 1px dashed var(--evo-faint); border-radius: 1.3rem; background: var(--evo-wash);
}
.evo-vchips-label { font-size: .75rem; letter-spacing: .04em; text-transform: uppercase; color: var(--evo-muted); }
.evo-vchips-group .evo-vchip.active { background: var(--evo-navy-tint); border-color: var(--bs-primary); color: var(--evo-navy); }
.evo-vchips-group .evo-vchip.active::before { content: "\2713"; font-weight: 700; margin-right: -.15rem; }
.evo-vchips-group .evo-vchip.active .evo-vchip-n { background: var(--bs-primary); color: #fff; }

/* Brand mark: a party's logo, or its initials on its brand colour when it has none.
   First users: carriers (register, dispatch Freight & Tracking card, Shipping hub);
   generic so suppliers or plugins can reuse it. PHP Carriers::badge() and JS
   evoBrandBadge() (global.js) print the same markup.
   <span class="evo-brand"><img class="evo-brand-logo" ...> Name</span>
   <span class="evo-brand"><span class="evo-brand-mono" style="background:#d40511;color:#fff">AP</span> Name</span>
   Size: default 20px for register rows, add .evo-brand-md (32px) for a record card. */
.evo-brand {
	display: inline-flex;
	align-items: center;
	gap: .45rem;
	min-width: 0;
	vertical-align: middle;
}
.evo-brand-logo {
	display: inline-block;
	height: 20px;
	width: auto;
	max-width: 96px;
	object-fit: contain;
	object-position: left center;
	flex: 0 0 auto;
	vertical-align: middle;
}
.evo-brand-mono {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	height: 20px;
	min-width: 20px;
	padding: 0 .3rem;
	border-radius: .3rem;
	background: var(--evo-muted);
	color: #fff;
	font-size: .7rem;
	font-weight: 700;
	line-height: 1;
	letter-spacing: .02em;
	vertical-align: middle;
	user-select: none;
}
.evo-brand-logo.evo-brand-md { height: 32px; max-width: 160px; }
.evo-brand-mono.evo-brand-md { height: 32px; min-width: 32px; padding: 0 .45rem; font-size: .85rem; border-radius: .4rem; }
/* View-chip extras: .is-plain evens the padding on a chip with no count pill
   (a workspace's "All open" or a saved view); .evo-vchip-x is the delete
   cross on a chip the user owns (a saved view). The click handler checks
   data-delete on the cross before treating the click as a filter. */
.evo-vchip.is-plain { padding-right: .85rem; }
.evo-vchip-x { font-size: 1.077rem; opacity: .7; margin-left: -.15rem; margin-right: .1rem; }
.evo-vchip-x:hover { opacity: 1; }
/* A chip that carries its own link and menu (14-11-2026, quotedit's Sections row): the name
   is an <a> that filters, .evo-vchip-menu is the small edit icon beside it, a long name is cut
   with an ellipsis (full name in title). .evo-vchip-add is the dashed "Add" chip at the end. */
.evo-vchip a { color: inherit; text-decoration: none; }
.evo-vchip > a:first-child { max-width: 16rem; overflow: hidden; text-overflow: ellipsis; }
.evo-vchip-menu { display: inline-flex; align-items: center; opacity: .6; margin: 0 -.35rem 0 -.15rem; }
/* color: inherit, so the icon follows the chip's text: white on the active (navy) chip, where a
   fixed icon colour vanished (quotedit Sections, Shane 16-11-2026). */
.evo-vchip .evo-vchip-menu .material-symbols-rounded { font-size: 1.1rem; color: inherit; }
.evo-vchip.active .evo-vchip-menu { opacity: .85; }
.evo-vchip-menu:hover { opacity: 1; }
.evo-vchip.evo-vchip-add { border-style: dashed; color: var(--evo-muted); background: transparent; }
.evo-vchip.evo-vchip-add:hover { color: var(--evo-ink); background: #fff; }

/* Filter tile (docs-dev/styling.inc 1.4b): a stat card that IS a filter, on
   workspaces and dashboards only (registers use view chips). Goes on the 1.4a
   accent card with a data-* filter value and a title=. The active state is the
   outline ring (.kpi-active), so the accent left edge keeps its meaning. A
   read-only stat card in the same row just leaves the class off. */
.evo-ftile { cursor: pointer; }
.evo-ftile:hover { box-shadow: 0 .5rem 1rem rgba(0,0,0,.15) !important; }
.evo-ftile.kpi-active { outline: 2px solid var(--bs-primary); outline-offset: 1px; }
.evo-ftile .h4 { white-space: nowrap; }

/* Due badge: a next step or task with its due state. Grey when it is due later,
   .is-today amber, .is-over red. Truncates to its cell; put the full wording and
   date in title=. */
.evo-due { display: inline-block; border-radius: .25rem; padding: 0 .3rem; background: var(--evo-steel); white-space: nowrap;
	max-width: 100%; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; }
.evo-due.is-today { background: #fff3cd; color: #664d03; }
.evo-due.is-over { background: #f8d7da; color: #842029; }
/* .is-none: nothing is scheduled and something should be ("No next step") */
.evo-due.is-none { background: transparent; color: #842029; font-style: italic; padding: 0; }

/* Segment dot: a customer segment as its colour dot plus its name. Set the colour
   on the <i> inline from the segment's own colour; grey when it has none. */
.evo-seg { display: inline-flex; align-items: center; gap: .2rem; font-size: .72rem; color: var(--evo-ink-2); white-space: nowrap; margin-right: .4rem; }
.evo-seg i { width: .55rem; height: .55rem; border-radius: 50%; display: inline-block; background: var(--evo-muted); }

/* Group band (docs-dev/styling.inc 5.6): the header row over a group of lines.
   <tr class="evo-gband"><td colspan="N">Name <span class="evo-gband-sum">3 lines
   &middot; $1,200</span></td></tr>. The name is the small uppercase muted
   mini-label; the summary after it reads in normal case. */
tr.evo-gband > td {
	background: var(--evo-steel);
	border-bottom: 1px solid var(--evo-line);
	padding-top: .3rem;
	padding-bottom: .3rem;
	vertical-align: middle;
	font-size: .875em;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .03em;
	color: var(--evo-muted);
}
.evo-gband-sum { font-weight: 400; text-transform: none; letter-spacing: 0; margin-left: .5rem; }
/* Structured group band (5.6, 02-11-2026, reqedit): a band whose cell lays itself
   out - a fold toggle (.evo-fold-btn), the uppercase mini-label (.evo-gband-lbl),
   links to the source records, a muted count, a right-hand value. Marked by the
   mini-label: the simple variant's td-wide uppercase/bold steps back and each part
   styles itself. Fold state is the fold family's: is-collapsed on the band row
   (rotates the .evo-fold-btn icon), evo-folded on the lines under it, and each
   grouped line is tr.evo-fold-child (first-cell inset above). */
tr.evo-gband:has(.evo-gband-lbl) > td { font-size: inherit; font-weight: 400; text-transform: none; letter-spacing: normal; color: inherit; }
.evo-gband-lbl { font-size: .72rem; text-transform: uppercase; letter-spacing: .03em; color: var(--evo-muted); font-weight: 700; white-space: nowrap; }
.evo-gband-desc { color: var(--evo-ink-2); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 34rem; }

/* Sortable header: <th class="evo-sort" data-sort="key">Label</th>. The page JS
   appends <i class="material-symbols-rounded evo-sort-ico">unfold_more</i>
   (arrow_upward / arrow_downward on the sorted column) and sets aria-sort
   ="ascending" | "descending" on the sorted column only. The label never wraps
   (styling 3). */
th.evo-sort { cursor: pointer; white-space: nowrap; user-select: none; }
/* color: inherit - the global icon grey vanishes on a thead-dark header (branchreg) */
th.evo-sort .evo-sort-ico { font-size: 1.231rem; vertical-align: -3px; opacity: .45; color: inherit; }
th.evo-sort[aria-sort] .evo-sort-ico { opacity: 1; }
th.evo-sort:focus-visible { outline: 2px solid #fff; outline-offset: -3px; }

/* Small register (docs-dev/styling.inc 3.1a, ruled 01-11-2026): the in-page filter in
   evoRegister.js hides a row with this class, never the hidden attribute, so a row another
   script hid stays as it left it. The chips sit on the one-line strip after Search. */
tr.evo-small-out { display: none !important; }
.evo-strip .evo-vchips { margin: 0; }
/* Tree rows (accountreg): a parent shown only because a sub-account matched */
tr.evo-small-context > td { color: var(--evo-muted); }
tr.evo-small-context > td a { color: inherit; }

/* Register column roles (docs-dev/styling.inc 3, ruled 08-10-2026). A table becomes
   .evo-fit when its header row carries a role (assets/js/evoTableFit.js adds the
   class). Every column is one line at its content width (width:1% shrinks it to
   that); th.evo-col-text columns share what is left by their data-weight and cut
   to one line with an ellipsis. th.evo-col-wrap record cells may go to two lines
   when the table would otherwise overflow. The per-column rules are generated by the
   script, because CSS cannot style a <td> from its <th>'s class. Rows with a
   colspan (group bands, loading and empty messages) are left alone. */
table.evo-fit { width: 100%; }
table.evo-fit > * > tr > :not([colspan]) { white-space: nowrap; width: 1%; }
/* Numbers (docs-dev/styling.inc 1.7): tabular digits so a money or quantity column
   lines up. Cell: class="text-end text-nowrap num". Alignment stays with text-end, so
   the older .num cells that never set it are unaffected beyond the digit widths. */
.num { font-variant-numeric: tabular-nums; }

/* Sticky action bar (docs-dev/styling.inc 5.2): the bar that holds a page's
   actions, or the bulk actions for ticked rows, pinned to the bottom of the
   window while the list scrolls. Markup: d-flex flex-wrap align-items-center
   gap-2 border rounded bg-white px-3 py-2. A bulk bar starts hidden and the JS
   shows it with display:flex when something is ticked (1.10b). */
.evo-actionbar { position: sticky; bottom: 8px; z-index: 5; box-shadow: 0 -2px 12px rgba(0,0,0,.15); }
/* A bar shown on some tabs only (purchaseadd: Lines and Printed notes): [hidden] beats Bootstrap's d-flex !important. */
.evo-actionbar[hidden] { display: none !important; }

/* Full-screen modal on phones: no class here. Use Bootstrap's own
   modal-fullscreen-md-down on the .modal-dialog. */

/* Kanban board (docs-dev/styling.inc 7.4, ruled 08-10-2026): a column per stage,
   cards dragged between columns, Won/Lost drop zones while dragging. Workspaces
   only (page type Workspaces / Boards). Markup:
   <div class="evo-board-wrap">                        .is-dragging while a card moves
     <div class="evo-board-strip evo-vchips"></div>     phone: a chip per column
     <div class="evo-board">
       <div class="evo-board-col">
         <div class="evo-board-head"><span class="evo-board-name">Stage</span> count
           <div class="evo-board-sums">$ . weighted $ . %</div>
           <div class="evo-board-share"><span style="width:N%"></span></div></div>
         <div class="evo-board-cards"> a.evo-kcard ... </div>
       </div>
     </div>
     <div class="evo-board-drop"><div class="evo-board-dropzone is-success">Won
       <div class="evo-board-cards"></div></div> ... </div>
   </div>
   Set --evo-board-max on .evo-board-wrap when the page header is taller or
   shorter than the workspace's. */
.evo-board { display: flex; gap: .75rem; overflow-x: auto; padding-bottom: .5rem; align-items: flex-start; }
.evo-board-col { flex: 0 0 280px; background: var(--evo-steel); border: 1px solid #dde1e6; border-radius: .5rem; display: flex; flex-direction: column;
	max-height: var(--evo-board-max, calc(100vh - 260px)); }
.evo-board-head { padding: .5rem .6rem .4rem; border-bottom: 1px solid var(--evo-line); }
.evo-board-name { font-weight: 600; text-transform: uppercase; font-size: .8rem; }
.evo-board-sums { font-size: .8rem; color: var(--evo-muted); }
/* the column's share of the board's value */
.evo-board-share { height: 4px; background: var(--evo-line); border-radius: 2px; margin-top: .3rem; }
.evo-board-share > span { display: block; height: 4px; border-radius: 2px; background: var(--bs-primary); }
.evo-board-cards { padding: .5rem; overflow-y: auto; min-height: 60px; flex: 1 1 auto; }
.evo-board-more { width: 100%; }
/* jQuery UI sortable placeholder: placeholder: 'evo-board-placeholder' */
.evo-board-placeholder { border: 2px dashed var(--evo-faint); border-radius: .4rem; height: 70px; margin-bottom: .5rem; }
/* Drop zones: hidden until a drag starts; .is-over while a card hovers one */
.evo-board-drop { display: none; position: fixed; left: 50%; bottom: 1rem; transform: translateX(-50%); z-index: 1050; gap: 1rem; }
.evo-board-wrap.is-dragging .evo-board-drop { display: flex; }
.evo-board-dropzone { width: 220px; height: 70px; border: 2px dashed; border-radius: .5rem; display: flex; align-items: center;
	justify-content: center; font-weight: 600; background: rgba(255,255,255,.95); box-shadow: 0 .5rem 1rem rgba(0,0,0,.15); position: relative; }
/* The sortable target: an invisible layer over the whole zone. display:none gave
   jQuery UI nothing to drop onto, so Won / Lost and Close / Void never took a
   card (found 26-10-2026). */
.evo-board-dropzone .evo-board-cards { position: absolute; inset: 0; overflow: hidden; opacity: 0; }
.evo-board-dropzone.is-success { border-color: var(--bs-success); color: var(--bs-success); }
.evo-board-dropzone.is-secondary { border-color: var(--bs-secondary); color: var(--bs-secondary); }
.evo-board-dropzone.is-over { background: var(--evo-line-soft); }
.evo-board-strip { display: none; }

/* Kanban card: the whole card is a link to the record. Owner initials and the
   actions menu sit top right; .is-rotting (too long in its stage, 1.8) is the
   red left edge plus a red age bar. Rows: title, customer (-sub), tags, value
   and close date, next step (.evo-due). */
.evo-kcard { display: block; background: #fff; border: 1px solid var(--evo-line); border-left: 3px solid transparent; border-radius: .4rem;
	padding: .45rem .55rem .35rem; margin-bottom: .5rem; color: inherit; text-decoration: none; position: relative; cursor: grab; }
.evo-kcard:hover { box-shadow: 0 .25rem .5rem rgba(0,0,0,.12); color: inherit; }
.evo-kcard.is-rotting { border-left-color: var(--bs-danger); }
.evo-kcard-title { font-weight: 600; font-size: .9rem; padding-right: 3.2rem; line-height: 1.25; }
.evo-kcard-sub { font-size: .8rem; color: var(--evo-muted); }
.evo-kcard-row { display: flex; align-items: center; gap: .4rem; font-size: .8rem; margin-top: .2rem; flex-wrap: wrap; }
.evo-kcard-who { position: absolute; top: .4rem; right: 1.8rem; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: var(--evo-navy-tint);
	color: var(--evo-navy); font-size: .65rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.evo-kcard-menu { position: absolute; top: .3rem; right: .2rem; border: 0; background: transparent; padding: 0 .1rem; color: var(--evo-muted); line-height: 1; }
/* days in stage against the stage's limit */
.evo-kcard-age { height: 3px; background: var(--evo-line-soft); border-radius: 2px; margin-top: .35rem; }
.evo-kcard-age > span { display: block; height: 3px; border-radius: 2px; background: var(--evo-faint); }
.evo-kcard.is-rotting .evo-kcard-age > span { background: var(--bs-danger); }

/* Phone: one column per screen with snap, a chip strip to jump between columns,
   tap opens the card (no drag, no drop zones, no age bar) */
@media (max-width: 767.98px) {
	.evo-board { scroll-snap-type: x mandatory; gap: .5rem; }
	.evo-board-col { flex: 0 0 calc(100% - 24px); scroll-snap-align: start; max-height: none; } /* % of the board, not the viewport: the side nav is still showing */
	.evo-board-strip { display: flex; flex-wrap: nowrap; gap: .4rem; overflow-x: auto; margin-bottom: .5rem; }
	.evo-board-drop { display: none !important; }
	.evo-kcard { cursor: pointer; }
	.evo-kcard-age { display: none; }
}

/* Label links and selectFilter icons (docs-dev/styling.inc 1.9a, ruled 11-10-2026).
   A link at the right of a field label goes to the record the field points at
   (Project -> the project, Address -> the map). A span with the class is a
   status that has no link ("Not located").
   <div class="d-flex align-items-center"><label class="form-label ...">Project</label>
     <a href="..." class="evo-label-link ms-auto">Go to project <i class="material-symbols-rounded">arrow_forward</i></a></div> */
.evo-label-link { font-size: .75rem; margin-bottom: .1rem; white-space: nowrap; }
span.evo-label-link { cursor: default; }
.evo-label-link .material-symbols-rounded { font-size: .95rem; vertical-align: -3px; }
/* A read-only way to reach someone: icon, value, then label links (Call / Email / Map, Copy).
   <div class="evo-reach d-flex align-items-center gap-2 small"><i class="material-symbols-rounded">call</i>
     <span>0400 000 000</span><a class="evo-label-link ms-auto" href="tel:...">Call ...</a></div> */
.evo-reach > .material-symbols-rounded { font-size: 1.05rem; color: var(--evo-muted); }
/* A selectFilter always keeps its search icon; in a small group, size it to the inputs. */
.input-group-sm > .input-group-text:has(> .material-symbols-rounded) { padding-block: 0; }
.input-group-sm > .input-group-text > .material-symbols-rounded { font-size: 1.05rem; }

/* Record page: header band, key figures, panels and the working grid
   (docs-dev/styling.inc 5.2a, 5.5, 6.3; consolidation inventory B). The band is
   shared by dispatchedit, reqedit, ticketedit and opportunityRecord (11-10-2026):
   change it here, never in a page.

   Band: the record's name, state and context, with its actions on the right.
   <div class="evo-band mb-2 mt-1"><div class="d-flex flex-wrap align-items-start gap-2">
     <i class="material-symbols-rounded evo-band-icon" aria-hidden="true">local_shipping</i>   (printed by evoBandIcon('dispatch'))
     <div class="evo-band-main">
       <div class="d-flex align-items-center flex-wrap gap-2"><h1 class="evo-band-name">Name</h1> pill flags</div>
       <div class="evo-band-sub mt-1">Record 12 &middot; project link &middot; customer</div>
     </div>
     <div class="evo-band-actions d-flex flex-wrap gap-1"> buttons, More dropdown </div>
   </div></div> */
/* clear: the page header's .pagebutton groups float right and, on a phone, hang over the band's top. */
.evo-band { background: #fff; border: 1px solid var(--evo-line); border-radius: .5rem; padding: .75rem 1rem; clear: both; }
/* A basis, not just grow: without it the actions squeeze the name to nothing on a phone; with it they wrap below. */
.evo-band-main { flex: 1 1 16rem; min-width: 0; }
/* The record's object icon, large, left of the name (styling.inc 1.6e / 6.3, 31-10-2026).
   evoBandIcon() prints it from the 1.6e table; a page never picks its own glyph. A tile tinted from the
   theme's icon accent (--main-accent-color, themes/<env>/theme.css; a flat grey reads as a missing avatar,
   and the dark --main-highlight-color tints to grey), outline glyph in the accent. The fixed box leaves room
   for an account logo <img> later, with the glyph as fallback. */
.evo-band-icon { flex: 0 0 auto; width: 3.6rem; height: 3.6rem; margin-right: .4rem; border-radius: .75rem; display: inline-flex; align-items: center; justify-content: center; font-size: 2.35rem; color: var(--main-accent-color, #0f766e); background: var(--evo-steel); background: color-mix(in srgb, var(--main-accent-color, #0f766e) 12%, #fff); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--main-accent-color, #0f766e) 22%, #fff); }
/* Off record (Disabled, Deleted, Cancelled, Void, Suspended: Status::off()): grey, the void pill's greys. */
.evo-band-icon.is-off { color: var(--evo-muted); background: var(--evo-steel); box-shadow: inset 0 0 0 1px var(--evo-mist); }
@media (max-width: 767.98px) { .evo-band-icon { width: 2.75rem; height: 2.75rem; margin-right: .2rem; border-radius: .6rem; font-size: 1.75rem; } }
.evo-band-name { font-size: 1.35rem; font-weight: 600; line-height: 1.25; margin: 0; overflow-wrap: anywhere; }
.evo-band-name.is-untitled { color: var(--evo-muted); font-weight: 500; }
/* A band title that can run long (an item description, up to 1,000 characters): two lines, then
   clipped; the full text is in the record's form. Added 03-11-2026 (invedit + its sibling routes). */
.evo-band-name.is-long { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.evo-band-sub { color: var(--evo-muted); font-size: .9rem; }
.evo-band-sub a { color: inherit; }
.evo-band-actions .btn { white-space: nowrap; }
/* Timesheet timer in the band (jobedit #jobTimerSlot). timesheetTimerApplet.js writes bare md-36 icons
   with an inline scale(1.1) and margin-right:-10px on every heartbeat, which jammed the icon into the
   bell button beside it. Here they take the look of the btn-sm outline buttons around them (theme.css
   .btn-outline-secondary tokens); the state colours (text-success / -warning / -danger) stay. 16-11-2026. */
#jobTimerSlot { gap: .25rem; }
#jobTimerSlot > .material-symbols-rounded {
	font-size: 1.2rem !important; transform: none !important; margin: 0 !important;
	display: inline-flex; align-items: center; justify-content: center; width: 31px; height: 26px;
	border: 1px solid var(--evo-mist); border-radius: var(--bs-border-radius-sm, .25rem);
	color: var(--evo-slate); cursor: pointer; line-height: 1;
}
#jobTimerSlot > .material-symbols-rounded:hover { background: var(--evo-steel); border-color: var(--evo-slate); }
.evo-band-actions .material-symbols-rounded, .evo-band-actions .dropdown-item .material-symbols-rounded,
.evo-actionbar .btn .material-symbols-rounded { font-size: 1.2rem; vertical-align: -4px; }
/* A flag that opens something (the signature behind "Signed") */
.evo-band a.evo-band-flag { text-decoration: none; }
/* Printed notes button (styling.inc 6.4a, ruled 31-10-2026 for Entry forms and working grids): the notes icon
   in .evo-band-main opens the Printed notes tab (or a modal on a page without tabs). .evo-notes-dot marks a
   record that has printed notes, on the button and on the tab.
   <button type="button" class="evo-band-notes has-notes" data-open-tab="printed" title="..." aria-label="...">
     <i class="material-symbols-rounded" aria-hidden="true">notes</i><span class="evo-notes-dot"></span></button> */
.evo-band-notes { position: relative; border: 0; background: none; padding: 0 .2rem; line-height: 1; color: var(--evo-muted); border-radius: .35rem; }
.evo-band-notes .material-symbols-rounded { font-size: 1.4rem; vertical-align: middle; }
.evo-band-notes:hover, .evo-band-notes:focus-visible { color: var(--main-highlight-color, var(--bs-primary)); outline: none; box-shadow: 0 0 0 2px color-mix(in srgb, var(--main-highlight-color, var(--evo-navy)) 25%, transparent); }
.evo-band-notes.has-notes { color: var(--main-accent-color, #0f766e); }
.evo-notes-dot { display: inline-block; width: .45rem; height: .45rem; border-radius: 50%; background: var(--main-accent-color, #0f766e); vertical-align: middle; margin-left: .25rem; }
.evo-band-notes .evo-notes-dot { position: absolute; top: -.1rem; right: -.05rem; margin: 0; }
@media (max-width: 767.98px) { .evo-band-name { font-size: 1.15rem; } }

/* Click-to-edit (styling.inc 6.4): a value that turns into an input when clicked and saves
   on Enter / leaving the box (evoInlineEdit() in global.js). Never on a locked record.
   <h1 class="evo-band-name evo-editable" role="button" tabindex="0" title="Click to rename">Name</h1>
   The dashed underline is the cue; in a title it is text-decoration so it follows a wrapped line. */
.evo-editable { cursor: pointer; border-bottom: 1px dashed var(--evo-faint); }
.evo-editable:hover { border-bottom-color: var(--evo-ink-2); }
.evo-band-name.evo-editable { border-bottom: 0; text-decoration: underline dashed var(--evo-faint) 1px; text-underline-offset: .3em; }
.evo-band-name.evo-editable:hover { text-decoration-color: var(--evo-ink-2); }
.evo-inline-input { width: 100%; }
.evo-band .evo-inline-input { font-size: 1.15rem; font-weight: 600; padding: .1rem .5rem; width: auto; flex: 1 1 18rem; max-width: 36rem; }

/* Steps (candidate, 12-10-2026, first used on dispatchedit's Freight tab; not yet a
   styling.inc rule): a tab whose job is a sequence. Every step stays open; the head
   says whether it is done. data-state: done (green tick), todo, warn (amber), na
   (optional / does not apply). .is-current marks the first todo / warn step.
   <div class="evo-step" data-state="todo"><div class="evo-step-head">
     <span class="evo-step-num">1</span><span class="evo-step-title">How it goes</span>
     <span class="evo-step-status">Choose how it goes</span></div>
   <div class="evo-step-body">...</div></div> */
.evo-step { border: 1px solid var(--evo-line); border-radius: .5rem; background: #fff; margin-bottom: .6rem; }
.evo-step.is-current { border-color: var(--main-highlight-color, var(--bs-primary)); }
.evo-step-head { display: flex; align-items: center; gap: .6rem; padding: .5rem .75rem; border-bottom: 1px solid var(--evo-steel); flex-wrap: wrap; }
.evo-step-num { flex: 0 0 auto; width: 1.7rem; height: 1.7rem; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: .85rem; font-weight: 600; border: 1.5px solid var(--evo-faint); color: var(--evo-muted); background: #fff; }
.evo-step.is-current .evo-step-num { border-color: var(--main-highlight-color, var(--bs-primary)); color: var(--main-highlight-color, var(--bs-primary)); }
.evo-step[data-state="done"] .evo-step-num { border-color: #198754; background: #198754; color: #fff; }
.evo-step[data-state="warn"] .evo-step-num { border-color: #ffc107; background: #ffc107; color: var(--evo-ink); }
.evo-step-num .material-symbols-rounded { font-size: 1.15rem; color: inherit; font-variation-settings: "FILL" 1, "wght" 700, "GRAD" 0, "opsz" 20; }
.evo-step-title { font-weight: 600; }
.evo-step-status { margin-left: auto; font-size: .85rem; color: var(--evo-muted); text-align: right; min-width: 0; overflow-wrap: anywhere; }
.evo-step[data-state="done"] .evo-step-status { color: #146c43; }
.evo-step[data-state="warn"] .evo-step-status { color: #997404; font-weight: 600; }
.evo-step-body { padding: .6rem .75rem .5rem; }
@media (max-width: 575.98px) { .evo-step-status { margin-left: 2.3rem; flex-basis: 100%; text-align: left; } }

/* Stage tracker (styling.inc 6.5, ruled 13-10-2026): chevrons, one per step, rendered by
   Status::track() and kept live by evoTrackSet() (global.js). data-state: done (green tint),
   todo (white), warn (amber), danger (red), skip (faded: does not apply). .is-current is
   filled. A step with a .evo-track-go button is clickable. .evo-track-sm = compact, no notes.
   Todo is white with a hairline drop-shadow round every chevron (clip-path cuts off a border),
   so it reads on the canvas and on a white card alike (styling.inc 1.3a, 27-10-2026).
   <ol class="evo-track" aria-label="Progress"><li class="evo-track-step is-current" data-state="todo">
     <span class="evo-track-label">Details</span><span class="evo-track-note">Add activity</span></li></ol> */
.evo-track { display: flex; gap: 2px; list-style: none; padding: 0; margin: 0;
	filter: drop-shadow(0 0 .5px rgba(16, 24, 40, .45)) drop-shadow(0 1px 1px rgba(16, 24, 40, .08)); }
.evo-track-step { flex: 1 1 0; min-width: 0; background: #fff; color: var(--evo-ink-2); font-size: .8rem; line-height: 1.25;
	padding: .35rem .9rem .32rem 1.15rem;
	clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 0 100%, 10px 50%); }
.evo-track-step:first-child { padding-left: .7rem; clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 0 100%); }
.evo-track-label { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.evo-track-note { display: block; font-size: .72rem; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.evo-track-step[data-state="done"] { background: #d1e7dd; color: #0a3622; }
.evo-track-step[data-state="warn"] { background: #fff3cd; color: #664d03; }
.evo-track-step[data-state="danger"] { background: #f8d7da; color: #842029; }
.evo-track-step[data-state="skip"] { background: var(--evo-wash); color: var(--evo-faint); }
.evo-track-step.is-current { background: var(--main-highlight-color, var(--bs-primary)); color: #fff; }
.evo-track-step.is-current[data-state="warn"] { background: #ffc107; color: var(--evo-ink); }
.evo-track-step.is-current[data-state="danger"] { background: var(--bs-danger); color: #fff; }
.evo-track-go { display: block; width: 100%; padding: 0; margin: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.evo-track-go:focus-visible { outline: 2px solid currentColor; outline-offset: -2px; }
.evo-track-step:has(.evo-track-go):hover { filter: brightness(.95); }
.evo-track-sm .evo-track-step { font-size: .7rem; padding: .2rem .55rem .2rem .85rem; }
.evo-track-sm .evo-track-step:first-child { padding-left: .5rem; }
.evo-track-sm .evo-track-label { font-weight: 500; }
.evo-track-sm .evo-track-step.is-current .evo-track-label { font-weight: 700; }
@media (max-width: 575.98px) {
	.evo-track:not(.evo-track-sm) { flex-wrap: wrap; row-gap: 2px; }
	.evo-track:not(.evo-track-sm) .evo-track-step { flex: 1 1 calc(33.333% - 2px); }
}

/* Activity timeline (styling.inc 6.6, ruled 13-10-2026): a rail with one tinted icon circle
   per entry, newest first. Rendered by Timeline::render() (library/Timeline.php) or, for
   loaded/paged lists, evoTimelineItem() (global.js) - same markup, same field names.
   data-kind picks the icon and tint (Timeline::KINDS). .is-current rings the circle (the
   span that is still running). Body text keeps its line breaks; .is-html bodies are
   logNoteHtml() output. .is-clamped cuts a long body with a "Show all" (.evo-tl-more).
   Filter chips are .evo-vchips; "Show older" paging is the page's own endpoint.
   .evo-timeline-sm = side-panel size.
   <ol class="evo-timeline" aria-label="History"><li class="evo-tl-item" data-kind="note">
     <span class="evo-tl-ico" aria-hidden="true"><i class="material-symbols-rounded">sticky_note_2</i></span>
     <div class="evo-tl-main"><div class="evo-tl-head"><span class="evo-tl-title">Note</span>
       <span class="evo-tl-meta">25 Oct 14:02 · Shane</span></div><div class="evo-tl-body">...</div></div></li></ol> */
.evo-timeline { list-style: none; margin: 0; padding: 0; }
.evo-tl-item { position: relative; display: flex; gap: .65rem; padding: .45rem 0; }
.evo-tl-item[hidden] { display: none; }
.evo-tl-item::before { content: ''; position: absolute; left: calc(.962rem - 1px); top: 0; bottom: 0; width: 2px; background: var(--evo-line-soft); }
.evo-tl-item:first-child::before { top: 1.4rem; }
.evo-tl-item:last-child::before { bottom: auto; height: 1.4rem; }
.evo-tl-item:only-child::before { display: none; }
.evo-tl-ico { position: relative; z-index: 1; flex: 0 0 1.923rem; width: 1.923rem; height: 1.923rem; border-radius: 50%;
	display: flex; align-items: center; justify-content: center; background: var(--evo-line-soft); color: var(--evo-ink-2); box-shadow: 0 0 0 3px #fff; }
.evo-tl-ico .material-symbols-rounded { font-size: 1.308rem; }
.evo-tl-item[data-kind="note"] .evo-tl-ico { background: #fff3cd; color: #664d03; }
.evo-tl-item[data-kind="task"] .evo-tl-ico { background: var(--evo-navy-tint); color: var(--evo-navy); }
/* Calls and meetings take My calendar's kind colours (--evo-cal-*, below), 20-11-2026: green there means Done,
   so a call is no longer green here. Tasks stay navy: yellow is a Note on this list. */
.evo-tl-item[data-kind="call"] .evo-tl-ico { background: var(--evo-cal-call); color: var(--evo-cal-call-ink); }
.evo-tl-item[data-kind="meeting"] .evo-tl-ico { background: var(--evo-cal-meeting); color: var(--evo-cal-meeting-ink); }
.evo-tl-item[data-kind="quote"] .evo-tl-ico { background: #e2d9f3; color: #432874; }
.evo-tl-item[data-kind="file"] .evo-tl-ico, .evo-tl-item[data-kind="email"] .evo-tl-ico { background: #cff4fc; color: #055160; }
.evo-tl-item[data-kind="start"] .evo-tl-ico { background: #d1e7dd; color: #0a3622; }
/* step = a workflow move on the record (issued, rectified, not accepted...), 26-10-2026. */
.evo-tl-item[data-kind="step"] .evo-tl-ico { background: #ffe5d0; color: #984c0c; }
.evo-tl-item.is-current .evo-tl-ico { background: var(--evo-navy-tint); color: var(--evo-navy); box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--main-highlight-color, var(--bs-primary)); }
.evo-tl-main { flex: 1 1 auto; min-width: 0; }
.evo-tl-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .5rem; padding-top: .3rem; }
.evo-tl-title { font-weight: 600; font-size: .88rem; overflow-wrap: anywhere; }
.evo-tl-item[data-kind="change"] .evo-tl-title { font-weight: 400; color: var(--evo-ink-2); }
.evo-tl-meta { margin-left: auto; font-size: .75rem; color: var(--evo-muted); white-space: nowrap; }
.evo-tl-act { flex: 0 0 auto; align-self: center; padding: 0; border: 0; background: none; color: var(--evo-muted); line-height: 1; }
.evo-tl-act .material-symbols-rounded { font-size: 1.385rem; }
.evo-tl-act:hover { color: var(--evo-ink); }
.evo-tl-body { font-size: .85rem; white-space: pre-line; overflow-wrap: anywhere; margin-top: .1rem; }
.evo-tl-body.is-html { white-space: normal; }
.evo-tl-body img { max-width: 100%; }
.evo-tl-body.is-clamped { max-height: 7.5em; overflow: hidden; }
.evo-tl-more { display: inline-block; padding: 0; border: 0; background: none; font-size: .8rem; color: var(--bs-link-color, var(--bs-primary)); text-decoration: underline; }
.evo-tl-thumb { display: block; max-width: 160px; max-height: 110px; margin-top: .3rem; border: 1px solid var(--evo-line); border-radius: .3rem; }
.evo-tl-older { margin-top: .5rem; }
.evo-timeline-sm .evo-tl-item { gap: .5rem; padding: .3rem 0; }
.evo-timeline-sm .evo-tl-item::before { left: calc(.692rem - 1px); }
.evo-timeline-sm .evo-tl-item:first-child::before { top: 1rem; }
.evo-timeline-sm .evo-tl-item:last-child::before { height: 1rem; }
.evo-timeline-sm .evo-tl-ico { flex-basis: 1.385rem; width: 1.385rem; height: 1.385rem; box-shadow: 0 0 0 2px #fff; }
.evo-timeline-sm .evo-tl-ico .material-symbols-rounded { font-size: .923rem; }
.evo-timeline-sm .evo-tl-item.is-current .evo-tl-ico { box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--main-highlight-color, var(--bs-primary)); }
.evo-timeline-sm .evo-tl-head { padding-top: 0; }
.evo-timeline-sm .evo-tl-title { font-size: .85rem; }
/* Meta on its own line: it moves after the action, which keeps the title line (right). */
.evo-timeline-sm .evo-tl-meta { margin-left: 0; flex-basis: 100%; white-space: normal; order: 1; }
.evo-timeline-sm .evo-tl-act { margin-left: auto; }
@media (max-width: 575.98px) {
	.evo-tl-meta { margin-left: 0; flex-basis: 100%; white-space: normal; order: 1; }
	.evo-tl-act { margin-left: auto; }
}

/* Record activity (styling.inc "Record activity", 26-10-2026): a record's Activity tab is
   the Tasks strip (RecordTasks::render(): open To-do and Call tasks, soonest first, with
   Add task / Log call), then Add note, then the chips and the timeline
   (RecordTimeline::chips() + Timeline::render()). Row titles open their modal through
   [data-open-task] / [data-open-call] (global.js). */
.evo-rtasks-head { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .5rem; padding: .45rem .75rem .25rem; }
.evo-rtasks-head > h6, h6.evo-rtl-head { font-size: .75rem; text-transform: uppercase; color: var(--evo-muted); letter-spacing: .03em; margin: 0;
	display: flex; align-items: center; gap: .4rem; }
.evo-rtasks-head > h6 .material-symbols-rounded { font-size: 1.1rem; }
.evo-rtasks-btns { display: flex; flex-wrap: wrap; gap: .4rem; margin-left: auto; }
.evo-rtasks-list { list-style: none; margin: 0; padding: 0; }
.evo-rtasks-row { display: flex; flex-wrap: wrap; align-items: center; gap: .1rem .5rem; padding: .3rem 0; border-top: 1px solid var(--evo-steel); }
.evo-rtasks-row:first-child { border-top: 0; }
.evo-rtasks-ico { font-size: 1.15rem; color: var(--evo-navy); }
.evo-rtasks-row[data-kind="call"] .evo-rtasks-ico { color: var(--evo-cal-call-ink); }
.evo-rtasks-row[data-kind="meeting"] .evo-rtasks-ico { color: var(--evo-cal-meeting-ink); }
.evo-rtasks-title { min-width: 0; overflow-wrap: anywhere; }
.evo-rtasks-meta { margin-left: auto; font-size: .78rem; color: var(--evo-muted); white-space: nowrap; }
.evo-rtl-chips { margin: .25rem 0 .6rem; }
@media (max-width: 575.98px) {
	.evo-rtasks-meta { margin-left: 1.65rem; flex-basis: 100%; }
}
/* Record notes (RecordNotes.php): the Notes tab (.evo-rnotes-add quick add, .evo-rnotes-tools
   search + chips, then .evo-rnotes.is-rail rows with Edit / Pin / Remove as .evo-tl-act), the Details panel
   (.evo-rnotes-panel: the latest three, bodies cut at three lines) and the pinned
   strip under the band (.evo-rnotes-pins). A pinned note wears the note yellow. */
.evo-rnotes-compose { display: flex; flex-direction: column; gap: .4rem; }
.evo-rnotes-compose-foot { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.evo-rnotes-compose-foot .form-select { width: auto; }
.evo-rnotes { list-style: none; margin: 0; padding: 0; background: #fff; border: 1px solid var(--evo-line); border-radius: .5rem; }
.evo-rnote { padding: .5rem .75rem; border-top: 1px solid var(--evo-steel); }
.evo-rnote:first-child { border-top: 0; border-radius: .5rem .5rem 0 0; }
.evo-rnote.is-pinned { background: #fffbeb; }
.evo-rnote-head { display: flex; flex-wrap: wrap; align-items: center; gap: .1rem .5rem; }
.evo-rnote-pin { font-size: 1.1rem; color: #997404; }
.evo-rnote-cat { font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; color: var(--evo-ink-2); }
.evo-rnote-meta { font-size: .78rem; color: var(--evo-muted); }
.evo-rnote-acts { display: flex; gap: .35rem; margin: 0 0 0 auto; }
.evo-rnote-acts .evo-tl-act .material-symbols-rounded { font-size: 1.2rem; }
.evo-rnote-acts .evo-tl-act.is-on { color: #997404; }
.evo-rnote-body { white-space: pre-line; overflow-wrap: anywhere; margin-top: .15rem; }
.evo-rnote:target { box-shadow: inset 3px 0 0 var(--evo-navy); }
/* Notes tab rail (16-11-2026): .evo-rnotes.is-rail, one card per note beside a note dot (the pin when
   pinned) on a line, like the Activity timeline, so notes read as separate. The line runs from a dot
   down to the next shown note; the last shown note has none (search and chips hide rows). */
.evo-rnotes.is-rail { background: none; border: 0; border-radius: 0; }
.evo-rnotes, .evo-rnotes-tools, .evo-rnotes-none { text-align: left; } /* the legacy shell centers (jobedit) */
.evo-rnotes.is-rail > .evo-rnote { position: relative; display: flex; gap: .65rem; padding: 0 0 .6rem; border-top: 0; border-radius: 0; background: none; }
.evo-rnotes.is-rail > .evo-rnote[hidden] { display: none; }
.evo-rnotes.is-rail > .evo-rnote::before { content: ''; position: absolute; left: calc(.962rem - 1px); top: 1.923rem; bottom: 0; width: 2px; background: var(--evo-line); }
.evo-rnotes.is-rail > .evo-rnote:not(:has(~ .evo-rnote:not([hidden])))::before { display: none; }
.evo-rnote-dot { position: relative; z-index: 1; flex: 0 0 1.923rem; width: 1.923rem; height: 1.923rem; margin-top: .3rem; border-radius: 50%;
	display: flex; align-items: center; justify-content: center; background: #fff3cd; color: #664d03; box-shadow: 0 0 0 3px var(--bs-body-bg, #fff); }
.evo-rnote-dot .material-symbols-rounded { font-size: 1.15rem; color: inherit; }
.evo-rnote.is-pinned .evo-rnote-dot { background: #ffe69c; color: #664d03; }
.evo-rnote-main { flex: 1 1 auto; min-width: 0; background: #fff; border: 1px solid var(--evo-line); border-radius: .5rem; padding: .45rem .75rem .55rem; }
.evo-rnote.is-pinned .evo-rnote-main { background: #fffbeb; border-color: #ffe69c; }
.evo-rnotes.is-rail .evo-rnote-pin { display: none; } /* the dot shows the pin */
.evo-rnotes.is-rail > .evo-rnote:target { box-shadow: none; }
.evo-rnotes.is-rail > .evo-rnote:target .evo-rnote-main { box-shadow: inset 3px 0 0 var(--evo-navy); }
.evo-rnotes-tools { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-bottom: .6rem; }
.evo-rnotes-count { margin-left: auto; font-size: .8rem; color: var(--evo-muted); white-space: nowrap; }
.evo-rnotes-count:empty { display: none; }
.evo-rnotes-none { padding: .25rem 0 .5rem; }
.evo-rnotes.is-compact { border: 0; border-radius: 0; margin-bottom: .35rem; }
.evo-rnotes.is-compact .evo-rnote { padding: .35rem 0; }
.evo-rnotes.is-compact .evo-rnote.is-pinned { background: none; }
.evo-rnotes.is-compact .evo-rnote-body { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.evo-rnotes-panel > h6 .evo-rnotes-panel-add { margin-left: auto; text-transform: none; letter-spacing: 0; font-size: .8rem; display: inline-flex; align-items: center; gap: .2rem; }
.evo-rnotes-pins { display: flex; flex-direction: column; gap: .25rem; }
.evo-rnotes-pin { display: flex; align-items: center; gap: .4rem; padding: .35rem .75rem; background: #fff3cd; border: 1px solid #ffe69c; border-radius: .5rem; font-size: .88rem; min-width: 0; }
.evo-rnotes-pin > .material-symbols-rounded { font-size: 1.1rem; color: #997404; flex: 0 0 auto; }
.evo-rnotes-pin-text { flex: 1 1 auto; min-width: 0; color: var(--evo-ink); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.evo-rnotes-pin-text:hover { text-decoration: underline; }
.evo-rnotes-pin-meta { flex: 0 0 auto; font-size: .78rem; color: #664d03; white-space: nowrap; }
/* Web addresses in a note open in a new tab (RecordNotes::linkify, 25-11-2026). On the pinned strip the
   text then holds the links, so the date · who is the link to the note. */
.evo-rnote-link { text-decoration: underline; text-underline-offset: 2px; }
span.evo-rnotes-pin-text:hover { text-decoration: none; }
a.evo-rnotes-pin-meta { text-decoration: none; }
a.evo-rnotes-pin-meta:hover { text-decoration: underline; }
@media (max-width: 575.98px) {
	.evo-rnotes-pin { flex-wrap: wrap; }
	.evo-rnotes-pin-text { white-space: normal; }
	.evo-rnotes-pin-meta { flex-basis: 100%; margin-left: 1.5rem; }
}

/* Key figures (1.4c): a row of read-only tiles under the band.
   <div class="row g-2 mb-2"><div class="col-6 col-md-4 col-xl-2"><div class="evo-fig">
     <div class="evo-fig-lbl">Lines</div><div class="evo-fig-val">12</div><div class="evo-fig-note">3 short</div>
   </div></div></div>
   Only an exception tile gets border-warning / border-danger. .is-link (with
   role="button" tabindex="0" and a title=) is a tile that opens a tab. */
.evo-fig { background: #fff; border: 1px solid var(--evo-line); border-radius: .5rem; padding: .5rem .75rem; height: 100%; text-align: left; }
.evo-fig.border-warning { border-color: var(--bs-warning) !important; }
.evo-fig.border-danger { border-color: var(--bs-danger) !important; }
.evo-fig-lbl { font-size: .72rem; text-transform: uppercase; color: var(--evo-muted); }
/* Optional house icon leading the label (jobedit jump strip, 05-11-2026). */
.evo-fig-lbl .evo-fig-icon { font-size: .95rem; vertical-align: -.22em; margin-right: .2rem; }
.evo-fig-val { font-size: 1.15rem; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; }
.evo-fig-note { font-size: .78rem; color: var(--evo-muted); }
.evo-fig.is-link { cursor: pointer; }
.evo-fig.is-link:hover, .evo-fig.is-link:focus-visible { border-color: var(--main-highlight-color, var(--bs-primary)); outline: none; }
/* A tile for a feature the company's plan does not include (02-11-2026, Full CRM off): muted,
   dashed, a lock for the value and the plan in the note. An <a class="evo-fig is-locked is-link">
   for the people who can upgrade, a plain div for everyone else. */
.evo-fig.is-locked { background: var(--evo-wash); border-style: dashed; color: inherit; text-decoration: none; display: block; }
.evo-fig.is-locked .evo-fig-val { color: var(--evo-faint); }
.evo-fig.is-locked .evo-fig-val .material-symbols-rounded { font-size: 1.15rem; vertical-align: -.15em; }
@media (max-width: 575.98px) { .evo-fig-val { font-size: .95rem; } .evo-fig { padding: .4rem .55rem; } }
/* Two-line tiles (styling.inc 1.4c, ruled 31-10-2026 for Entry forms and working grids): the label, then the
   value with its note beside it, so the strip costs two lines of height, not three. Put the class on the row:
   <div class="row g-2 mb-2 evo-figs-2line">. A long note is cut with an ellipsis; its full text goes in title=. */
.evo-figs-2line .evo-fig { display: flex; flex-wrap: wrap; align-items: baseline; align-content: flex-start; column-gap: .4rem; padding-top: .35rem; padding-bottom: .35rem; }
.evo-figs-2line .evo-fig-lbl { flex: 0 0 100%; }
.evo-figs-2line .evo-fig-val { flex: 0 1 auto; font-size: 1.05rem; line-height: 1.3; }
.evo-figs-2line .evo-fig > .evo-fig-note { flex: 1 1 0; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Panel: one concern of the record (Details, Notes...). The h6 is optional.
   <div class="evo-panel"><h6><i class="material-symbols-rounded">tune</i> Details</h6><div class="evo-panel-body">...</div></div>
   Field labels inside: form-label text-muted text-uppercase small mb-1. */
/* text-align: the legacy page shell centers everything (#main_content_div); house
   surfaces read left regardless of where they are printed (05-11-2026). */
.evo-panel { background: #fff; border: 1px solid var(--evo-line); border-radius: .5rem; margin-bottom: .75rem; text-align: left; }
.evo-panel > h6 { font-size: .75rem; text-transform: uppercase; color: var(--evo-muted); letter-spacing: .03em; margin: 0; padding: .55rem .75rem .35rem;
	display: flex; align-items: center; gap: .4rem; }
.evo-panel > h6 .material-symbols-rounded { font-size: 1.1rem; }
.evo-panel-body { padding: .6rem .75rem .7rem; font-size: .88rem; }
.evo-panel > h6 + .evo-panel-body { padding-top: .25rem; }

/* Read-only rows in a panel (promoted from opportunityRecord's .or-kv, 28-10-2026; label column
   30-10-2026, styling.inc 6.10). The label is smaller and muted so the value leads. In a card
   26rem or wider the labels form a fixed column and each value sits left-aligned beside its
   label; in a narrower card (a side panel) the label is on the left and the value on the right.
   <div class="evo-kv"><span>Owner</span><span>Kirsty Smith</span></div>
   .is-stack puts a long value (an address, a description) under its label in a narrow card. */
.evo-kv { display: flex; justify-content: space-between; align-items: baseline; gap: .75rem; padding: .2rem 0; }
.evo-kv > span:first-child { color: var(--evo-muted); font-size: .78rem; flex: 0 0 auto; }
.evo-kv > span:last-child { color: var(--evo-ink); text-align: right; min-width: 0; overflow-wrap: anywhere; }
.evo-kv.is-stack { display: block; }
.evo-kv.is-stack > span { display: block; text-align: left; }
.evo-kv.is-stack > span:last-child { white-space: pre-line; }
.evo-kv + .evo-kv { border-top: 1px solid var(--evo-steel); }
/* Totals in a kv panel (14-11-2026, quotedit's Totals card): .is-total is a closing total
   (bold), .is-sep starts a second group (Inclusions / Options) under a heavier rule. */
.evo-kv.is-total > span { font-weight: 600; color: var(--evo-ink); font-size: inherit; }
.evo-kv.is-sep { border-top: 1px solid var(--evo-line); margin-top: .35rem; padding-top: .4rem; }
/* Saved rich text shown read-only (14-11-2026, quotedit's Printed notes tab): a sandboxed
   iframe so the HTML's own styles can't leak into the page; JS sizes it to its content. */
.evo-notes-frame { display: block; width: 100%; border: 0; min-height: 2.5rem; background: #fff; }
/* Object icon before a label (02-11-2026, styling.inc 1.6e): evoKvIcon('project') in PHP. Only facts whose
   value is a mapped object get one; the other labels in that card step in by the icon's width so the
   label text stays in one column. */
.evo-kv > span:first-child .evo-kv-icon { font-size: 1.05rem; line-height: 1; width: 1.05rem; margin-right: .35rem; vertical-align: -.25rem; color: var(--evo-subtle); }
:has(> .evo-kv > span:first-child > .evo-kv-icon) > .evo-kv > span:first-child:not(:has(> .evo-kv-icon)) { padding-left: 1.4rem; }
.evo-panel :has(> .evo-kv) { container-type: inline-size; }
@container (min-width: 26rem) {
	.evo-kv, .evo-kv.is-stack { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); column-gap: 1rem; }
	.evo-kv > span:first-child { overflow-wrap: anywhere; }
	.evo-kv > span:last-child, .evo-kv.is-stack > span:last-child { text-align: left; }
}
/* Money / quantity rows (22-11-2026, quotedit's Totals card; styling.inc 6.10): .is-num right-aligns the
   value with tabular digits so the decimal points line up. In a wide card the values sit in a fixed
   column beside the labels (not pushed to the card's far edge); in a narrow card they're on the right. */
.evo-kv.is-num > span:last-child { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
@container (min-width: 26rem) {
	.evo-kv.is-num { grid-template-columns: 9.5rem 9rem; justify-content: start; }
}
/* .evo-totals: a totals card under a line grid (quotedit), as on an invoice. The card is compact and sits
   at the right, under the grid's money columns; being under 26rem, its rows keep the label on the left and
   the figure on the right, close together (ruled 22-11-2026). Full width on a phone. */
.evo-panel.evo-totals { max-width: 24rem; margin-left: auto; }
/* Under quotedit's line grid (22-11-2026): line tools, the Quote inclusions + Optional extras cards
   (.evo-qfoot-secs) and the Totals card. Phone: tools, Totals, then the cards stacked. Tablet: the two
   cards side by side under Totals. Wide: tools across the top, then the cards and Totals top-aligned;
   1700px+: all on one row. */
.evo-qfoot { display: grid; gap: 1rem; align-items: start; grid-template-columns: minmax(0, 1fr);
	grid-template-areas: "tools" "totals" "secs"; }
.evo-qfoot-tools { grid-area: tools; }
.evo-qfoot-totals { grid-area: totals; }
/* margin-right: the grid wrapper's 25px (quotedit.inc), so the cards end under the table's edge */
.evo-qfoot-secs { grid-area: secs; display: flex; flex-direction: column; gap: 1rem; margin-right: 25px; }
@media (min-width: 768px) {
	.evo-qfoot-secs { flex-direction: row; align-items: flex-start; }
	.evo-qfoot-secs > .evo-qsecs { flex: 1 1 0; min-width: 0; }
}
@media (min-width: 1200px) {
	.evo-qfoot { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "tools tools" "secs totals"; }
	.evo-qfoot-secs { justify-content: flex-end; margin-right: 0; }
	.evo-qfoot-secs > .evo-qsecs { flex: 0 1 22rem; }
	.evo-qfoot-totals > .evo-totals { width: 24rem; }
}
/* Room for all of it on one row: tools at the left, then the cards and Totals, all top-aligned */
@media (min-width: 1700px) {
	.evo-qfoot { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "tools secs totals"; }
}
/* A section list in a card: one button row per section (name, flag, ex GST), scrolling past ~5 rows
   so the card stays about as tall as Totals; the card's total sits under it. */
.evo-qsec-list { list-style: none; margin: 0; padding: 0; max-height: 10.5rem; overflow-y: auto; }
.evo-qsec-row { display: flex; align-items: baseline; gap: .5rem; width: 100%; padding: .3rem .25rem; border: 0;
	border-top: 1px solid var(--evo-steel); background: none; text-align: left; font-size: .85rem; color: var(--evo-ink); }
.evo-qsec-list > li:first-child > .evo-qsec-row { border-top: 0; }
.evo-qsec-row:hover { background: var(--evo-wash); }
.evo-qsec-row:focus-visible { outline: 2px solid var(--main-highlight-color, var(--bs-primary)); outline-offset: -2px; }
.evo-qsec-row.is-active { font-weight: 600; background: var(--evo-wash); }
.evo-qsec-name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.evo-qsec-val { flex: 0 0 auto; white-space: nowrap; font-variant-numeric: tabular-nums; }
.evo-qsec-empty { font-size: .82rem; color: var(--evo-muted); padding: .3rem .25rem; }
/* .evo-kv.evo-qsec-foot outranks the wide-card grid, so the total stays at the right under the row figures */
.evo-kv.evo-qsec-foot { display: flex; justify-content: space-between; border-top: 1px solid var(--evo-line); margin-top: .25rem; padding-top: .4rem; padding-right: .25rem; }
/* an empty value: an "Add mobile" link that opens the card at that field */
.evo-kv a.evo-card-add, a.evo-card-add { color: var(--evo-muted); font-size: .82rem; }
.evo-kv a.evo-card-add:hover, a.evo-card-add:hover { color: var(--main-highlight-color, var(--bs-primary)); }

/* Edit-in-place card (styling.inc 6.3, 28-10-2026; evoCardEdit() in global.js). The view is
   .evo-kv rows; Edit in the h6 swaps in the card's own form, Save / Cancel in its foot.
   One card is open at a time. A locked record renders no Edit link and no form. */
.evo-panel > h6 .evo-card-edit { margin-left: auto; background: none; border: 0; padding: 0; text-transform: none; letter-spacing: 0;
	font-size: .8rem; color: var(--bs-link-color, var(--evo-navy)); }
.evo-panel > h6 .evo-card-edit:hover { text-decoration: underline; }
/* A link at the right of a panel heading (Manage contracts, View all): sentence case, like Edit. */
.evo-panel > h6 .evo-panel-link { margin-left: auto; text-transform: none; letter-spacing: 0; font-size: .8rem; font-weight: 400; }
.evo-panel > h6 .evo-card-edit:focus-visible { outline: 2px solid var(--main-highlight-color, var(--bs-primary)); outline-offset: 2px; border-radius: .2rem; }
.evo-panel.is-editing { border-color: var(--main-highlight-color, var(--bs-primary)); box-shadow: 0 0 0 .15rem rgba(19,41,75, .08); }
.evo-panel.is-editing > h6 .evo-card-edit { visibility: hidden; }
.evo-card-form .form-label { margin-bottom: .15rem; }
.evo-card-foot { display: flex; justify-content: flex-end; align-items: center; gap: .5rem; margin-top: .6rem; padding-top: .5rem; border-top: 1px solid var(--evo-steel); }
.evo-card-foot .evo-card-hint { margin-right: auto; color: var(--evo-muted); font-size: .78rem; }

/* Map tab: a Google map beside a side panel of .evo-panel cards. The canvas holds an
   .evo-map-msg until the map loads (and instead of it when Google refuses).
   <div class="evo-map" id="xMapCanvas"><div class="evo-map-msg">Loading the map...</div></div>
   Layer colours live here, on .evo-map-dot; the page JS reads them for its markers so
   the legend and the pins can't drift apart. */
.evo-map { height: 520px; border: 1px solid var(--evo-line); border-radius: .5rem; background: var(--evo-wash); overflow: hidden; }
.evo-map-msg { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem;
	padding: 1rem; text-align: center; color: var(--evo-muted); font-size: .875rem; }
.evo-map-dot { display: inline-block; width: .7rem; height: .7rem; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .25); vertical-align: -1px; background: var(--evo-muted); }
.evo-map-dot.is-branch { background: #dc3545; }
.evo-map-dot.is-project { background: #0d6efd; }
.evo-map-dot.is-opp { background: #fd7e14; }
.evo-map-dot.is-lead { background: #6f42c1; }
.evo-map-dot.is-defect { background: #20c997; }
@media (max-width: 991.98px) { .evo-map { height: 360px; } }
/* Pins coloured by status (1.13 tones, solid so they read on a map) and by tenant-set
   colours (activity types): a data colour goes on the dot as --dot, and the page JS reads
   the dot's computed colour, so legend and pin still can't drift (03-11-2026, mymap). */
.evo-map-dot.tone-draft { background: var(--evo-muted); }
.evo-map-dot.tone-open { background: #0d6efd; }
.evo-map-dot.tone-wait { background: #e0a800; }
.evo-map-dot.tone-done { background: #198754; }
.evo-map-dot.tone-void { background: var(--evo-faint); }
.evo-map-dot.is-data { background: var(--dot, var(--evo-muted)); }

/* Map page (candidate, 03-11-2026, mymap): header, filter strip, then a side panel
   (legend, results, not shown) beside a map that fills the rest of the screen.
   <div class="evo-mappage"><div class="evo-register"> strip </div>
     <div class="evo-mappage-body"><aside class="evo-panel evo-mappage-side">...</aside>
     <div class="evo-map" id="mapCanvas">...</div></div></div> */
.evo-mappage-body { display: flex; gap: .75rem; margin-top: .75rem; height: calc(100vh - 13.5rem); min-height: 420px; }
.evo-mappage-body .evo-map { flex: 1 1 auto; height: 100%; background: #fff; }
.evo-mappage-side { flex: 0 0 22rem; display: flex; flex-direction: column; min-height: 0; margin: 0; }
.evo-mappage-side .evo-map-list { flex: 1 1 auto; min-height: 0; overflow-y: auto; }
.evo-map-legend { display: flex; flex-direction: column; gap: .1rem; margin-bottom: .5rem; }
.evo-map-legend button { display: flex; align-items: center; gap: .5rem; width: 100%; padding: .2rem .35rem; border: 0; border-radius: .25rem;
	background: none; font-size: .875rem; text-align: left; color: inherit; }
.evo-map-legend button:hover { background: var(--evo-steel); }
.evo-map-legend button[aria-pressed="false"] { color: var(--evo-faint); }
.evo-map-legend button[aria-pressed="false"] .evo-map-dot { opacity: .3; }
.evo-map-legend .num { margin-left: auto; color: var(--evo-muted); }
.evo-map-list { border-top: 1px solid var(--evo-steel); }
.evo-map-row { padding: .45rem .35rem; border-bottom: 1px solid var(--evo-steel); font-size: .875rem; cursor: pointer; }
.evo-map-row:hover, .evo-map-row.is-on { background: var(--evo-steel); }
.evo-map-row-title { display: flex; align-items: center; gap: .4rem; font-weight: 600; }
.evo-map-row-sub { color: var(--evo-muted); font-size: .8rem; }
.evo-map-none { font-size: .8rem; color: var(--evo-muted); border-top: 1px solid var(--evo-steel); padding-top: .4rem; }
.evo-map-none ul { max-height: 9rem; overflow-y: auto; padding-left: 1rem; margin: .25rem 0 0; }
.evo-map-pop { font-size: .875rem; max-width: 18rem; }
.evo-map-pop-title { font-weight: 600; }
.evo-map-pop-links { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .4rem; }
@media (max-width: 991.98px) { .evo-mappage-body { flex-direction: column; height: auto; } .evo-mappage-side { flex-basis: auto; max-height: 40vh; } .evo-mappage-body .evo-map { height: 360px; } }

/* Map tab side panel: the two ends of the drive, then the trip, then the directions
   (promoted from opportunityRecord's page styles, 29-10-2026).
   <div class="evo-map-end"><i>warehouse</i><div><span class="evo-map-lbl">From</span>Branch</div></div>
   <div class="evo-map-trip"><div><span class="evo-map-lbl">Drive</span><span class="evo-map-val">42 min</span></div></div>
   <details><summary>Turn-by-turn directions</summary><div class="evo-map-steps"></div></details> */
.evo-map-end { display: flex; gap: .5rem; align-items: flex-start; padding: .4rem 0; font-size: .875rem; }
.evo-map-end .material-symbols-rounded { font-size: 1.538rem; color: var(--evo-muted); }
.evo-map-lbl { display: block; font-size: .72rem; text-transform: uppercase; color: var(--evo-muted); }
.evo-map-trip { display: flex; gap: 1.5rem; padding: .5rem 0; border-top: 1px solid var(--evo-steel); border-bottom: 1px solid var(--evo-steel); margin: .25rem 0 .5rem; }
.evo-map-val { font-size: 1.2rem; font-weight: 600; }
.evo-map-steps { max-height: 360px; overflow-y: auto; font-size: .8rem; }
.evo-map-steps table { width: 100%; }

/* Detail / Edit page parts promoted from opportunityRecord's page styles (29-10-2026,
   audits/OPPORTUNITYRECORD_MODERNIZATION_PLAN_2026-10-29.md). Same look as before. */

/* A tab pane's heading line: what the list below is, plus its actions. */
.evo-panehead { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; color: var(--evo-muted); font-size: .85rem; margin-bottom: .5rem; }
.evo-panehead .material-symbols-rounded { font-size: 1.385rem; vertical-align: -4px; }

/* People in a panel: one row each (name, role, then .evo-person-acts links: Call, Email,
   Edit...). .is-inactive greys a person who has left. */
.evo-person { padding: .35rem 0; border-top: 1px solid var(--evo-steel); }
.evo-person:first-child { border-top: 0; }
.evo-person a { text-decoration: none; }
.evo-person .material-symbols-rounded { font-size: 1.231rem; vertical-align: -3px; }
.evo-person.is-inactive { opacity: .55; }
.evo-person-acts { display: flex; flex-wrap: wrap; gap: .1rem .7rem; margin-top: .1rem; }
.evo-person-acts .btn-link { font-size: .78rem; padding: 0; text-decoration: none; }

/* Long free text in a panel, line breaks kept, cut at about seven lines; a "More" link adds .is-open. */
.evo-pre-clamp { white-space: pre-line; overflow-wrap: anywhere; max-height: 10.5em; overflow: hidden; }
.evo-pre-clamp.is-open { max-height: none; }

/* An information note inside a panel (why an action isn't offered, what to do first). */
.evo-callout { display: flex; gap: .4rem; align-items: flex-start; padding: .45rem .6rem; border-radius: .375rem;
	background: var(--bs-info-bg-subtle, #cff4fc); color: var(--bs-info-text-emphasis, #055160); font-size: .82rem; }
.evo-callout .material-symbols-rounded { font-size: 1.15rem; line-height: 1.2; }
/* A blocking note: the action can't be done (stop credit, over limit). Never yellow (1.10a). */
.evo-callout.evo-callout-danger { background: #f8d7da; color: #842029; }
/* A list or box JS fills in: says data-empty while it holds nothing (no whitespace inside). */
.evo-list-empty:empty::before { content: attr(data-empty); color: var(--evo-muted); font-size: .85rem; }

/* Focus panel: the record's next steps (.evo-nextrow: tick, title, .evo-due, Move), the
   stage's guidance (.evo-guide) and what the next stage asks for (.evo-checklist). */
.evo-panel.evo-focus { border-left: 4px solid var(--main-highlight-color, var(--bs-primary)); }
.evo-nextrow { display: flex; align-items: center; gap: .5rem; padding: .35rem 0; border-top: 1px solid var(--evo-steel); }
.evo-nextrow:first-child { border-top: 0; }
.evo-nextrow .evo-due { font-size: .78rem; }
/* white with an edge, not a grey fill: it sits in a white panel (styling.inc 1.3a) */
.evo-guide { border: 1px solid var(--evo-line-soft); border-radius: .4rem; padding: .4rem .6rem; font-size: .83rem; white-space: pre-line; }
.evo-checklist { padding-left: 0; }
.evo-checklist li { list-style: none; }
.evo-checklist li:before { content: "\2610"; margin-right: .35rem; color: var(--evo-muted); }

/* Quotes panel: a family per original quote (.is-head row, then its revisions indented).
   .is-out greys a family that doesn't count; .evo-qcounted marks the revision that does. */
.evo-qfamily { border-top: 1px solid var(--evo-steel); padding: .4rem 0; }
.evo-qfamily:first-child { border-top: 0; }
.evo-qfamily.is-out .evo-qrow { opacity: .55; }
.evo-qrow { display: flex; align-items: center; gap: .4rem; padding: .1rem 0 .1rem 1.6rem; font-size: .85rem; }
.evo-qrow.is-head { padding-left: 0; }
.evo-qrow .btn-sm { font-size: .75rem; padding: 0 .3rem; }
.evo-qtotal { margin-left: auto; white-space: nowrap; font-variant-numeric: tabular-nums; }
.evo-qcounted { font-size: .7rem; color: var(--bs-success); font-weight: 600; }
/* Make project: the quote ticks line up under the callout's text */
.evo-mkproj .form-check { padding-left: 1.6rem; }
.evo-mkproj .form-check .form-check-input { margin-left: -1.6rem; }

/* A plain list in a tab pane (time entries...): when, who, what, hours, tag.
   .is-click rows open something; .is-total is the closing total row. */
.evo-rlist { list-style: none; margin: 0; padding: 0; }
.evo-rlist > li { display: flex; gap: .75rem; align-items: baseline; padding: .5rem .25rem; border-top: 1px solid var(--evo-steel); font-size: .875rem; }
.evo-rlist > li:first-child { border-top: 0; }
.evo-rlist-when { flex: 0 0 7.5rem; color: var(--evo-muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.evo-rlist-who { flex: 0 0 9rem; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.evo-rlist-what { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.evo-rlist-hrs { flex: 0 0 auto; font-variant-numeric: tabular-nums; white-space: nowrap; }
.evo-rlist-tag { font-size: .7rem; color: var(--evo-muted); border: 1px solid var(--evo-line); border-radius: 1rem; padding: 0 .4rem; margin-left: .35rem; white-space: nowrap; }
.evo-rlist > li.is-click { cursor: pointer; }
.evo-rlist > li.is-click:hover { background: var(--evo-wash); }
.evo-rlist > li.is-total { border-top: 1px solid var(--evo-line); font-weight: 600; }
@media (max-width: 767.98px) {
	.evo-rlist > li { flex-wrap: wrap; gap: .1rem .6rem; }
	.evo-rlist-when, .evo-rlist-who { flex: 0 0 auto; }
	.evo-rlist-what { flex: 1 1 100%; order: 5; }
}

/* Phone action bar: the band's actions as a bar fixed at the foot of a phone screen.
   Hidden on desktop; on a phone it replaces the band's action buttons.
   <div class="evo-phonebar"><button class="btn btn-light"><i>edit_note</i>Note</button>...</div> */
.evo-phonebar { display: none; }
@media (max-width: 767.98px) {
	.evo-phonebar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 1030; background: #fff; border-top: 1px solid var(--evo-line);
		padding: .4rem .5rem; gap: .4rem; justify-content: space-around; }
	.evo-phonebar .btn { flex: 1 1 0; font-size: .75rem; padding: .25rem 0; line-height: 1.1; }
	.evo-phonebar .material-symbols-rounded { display: block; font-size: 1.692rem; }
	.page_content:has(.evo-phonebar) { padding-bottom: 4.5rem; }
	.page_content:has(.evo-phonebar) .evo-band-actions { display: none !important; }
}

/* Working grid (5.2a): the lines table in its own scroll box sized to the window,
   so the heading row and the total row stay in view. Not .table-responsive: sticky
   cells would stick to a box that never scrolls vertically. Set --evo-grid-max on
   the wrap when the page above the grid is taller or shorter.
   <div class="evo-gridwrap"><table class="table table-sm table-hover mb-0 evo-grid">
   thead / tbody / tfoot (the total)</table></div> */
.evo-gridwrap { max-height: var(--evo-grid-max, max(320px, calc(100vh - 290px))); overflow: auto; border: 1px solid var(--evo-line); border-radius: .375rem; }
table.evo-grid { font-size: .92rem; }
table.evo-grid th { white-space: nowrap; font-size: .76rem; text-transform: uppercase; color: var(--evo-muted); font-weight: 600; background: var(--evo-wash); vertical-align: middle; }
table.evo-grid thead th { position: sticky; top: 0; z-index: 3; box-shadow: inset 0 -1px 0 var(--evo-line); border-bottom: 0; }
/* sortable.js floats a 20px arrow box after every header; in a narrow column that does not sort (a tick-all box)
   it wraps and doubles the header height (15-11-2026, Timesheet approvals; reqedit's tick column too). */
table[data-sortable] th[data-sortable="false"]::after { display: none; }
/* Server-sorted register headers without registrysortcol.inc (th[data-sort-field], the page reads the sort
   back: sessions, the project Timesheets tab). The glyph rules lived only in registrysortcol.inc's own
   <style>, so these headers got sortable.js's bare floated placeholder, which wrapped narrow columns onto
   two lines (16-11-2026). Same look as registrysortcol (styling.inc 3.1 zone 2): a faint unfold_more on a
   sortable header, a solid arrow on the sorted one. */
.evo-register table[data-sortable] th[data-sort-field] { white-space: nowrap; }
.evo-register table[data-sortable] th[data-sort-field]::after {
	content: "unfold_more"; font-family: 'Material Symbols Rounded'; font-weight: normal; font-style: normal;
	font-size: 16px; line-height: 1; letter-spacing: normal; text-transform: none; font-feature-settings: 'liga';
	float: none; display: inline; visibility: visible; height: auto; width: auto; border: none;
	margin: 0 0 0 4px; opacity: .55; vertical-align: text-bottom;
}
.evo-register table[data-sortable] th[data-sort-field][data-sorted="true"]::after { content: "arrow_downward"; opacity: 1; }
.evo-register table[data-sortable] th[data-sort-field][data-sorted="true"][data-sorted-direction="ascending"]::after { content: "arrow_upward"; }
table.evo-grid tfoot td { position: sticky; bottom: 0; z-index: 3; background: #fff; box-shadow: inset 0 1px 0 var(--evo-line); font-weight: 600; border-bottom: 0; }
table.evo-grid td { vertical-align: top; }
/* Sticky total row only (02-11-2026, Job Costing tab): for a plain .table in a max-height
   scroll box (.table-responsive with a max-height) that keeps its own look, so the <tfoot>
   total stays in view while the lines scroll. The whole tfoot sticks, so a multi-row footer
   (timesheets) moves as one. Background at zero specificity (:where) so a page tfoot or
   row colour still wins; bootstrap 5.2 cells are transparent.
   <table class="table table-hover evo-sticky-foot"> thead / tbody / tfoot </table> */
table.evo-sticky-foot > tfoot { position: sticky; bottom: 0; z-index: 3; box-shadow: 0 -1px 0 var(--evo-line); }
:where(table.evo-sticky-foot) > tfoot { background-color: #fff; }
/* A grid whose entry row opens a picker (31-10-2026, purchaseadd): the item list drops out of
   the entry row, so the wrap grows with its lines instead of scrolling and clipping it. */
.evo-gridwrap.is-open { max-height: none; overflow: visible; }
/* A grid in a panel or card (30-10-2026): fixed layout, so a .text-truncate cell cuts off at
   its column instead of widening the table past the page. Give the narrow columns a width. */
table.evo-grid-fixed { table-layout: fixed; }
/* Records list (6.11, 30-10-2026): RecordList::render() + evoRecordList.js, on the account
   and contact pages. A kind icon in the first cell; rows open through global.js tr[data-href]. */
.evo-reclist-search { width: 18rem; max-width: 100%; }
.evo-reclist .evo-reclist-icon, .evo-ledger .evo-reclist-icon { font-size: 1.3rem; line-height: 1; vertical-align: -.25em; color: var(--evo-muted); }
.evo-reclist.is-loading .evo-reclist-body { opacity: .55; transition: opacity .15s; }
/* Account ledger (30-10-2026): AccountLedger::render() + clientedit.js, the account page's
   Transactions. Same toolbar and grid as the Records list, one side (AR / AP) at a time.
   A row not in the balance (a draft, a payment on a draft) is muted. */
.evo-ledger.is-loading .evo-ledger-body { opacity: .55; transition: opacity .15s; }
.evo-ledger tr.evo-ledger-out td { color: var(--evo-muted); }
/* Tree rows in a grid (30-10-2026, clientedit Discounts): the name cell indents by depth and a
   child carries a muted branch mark. Every level stays a real row (parents hold their own data).
   <td class="evo-tree-cell" style="--evo-depth:1"><i class="material-symbols-rounded evo-tree-mark"
   aria-hidden="true">subdirectory_arrow_right</i>Name</td> */
table.evo-grid td.evo-tree-cell,
.evo-register td.evo-tree-cell { padding-left: calc(.25rem + var(--evo-depth, 0) * 1.25rem); }
.evo-tree-mark.material-symbols-rounded { font-size: 1rem; vertical-align: -3px; color: var(--evo-faint); margin-right: .2rem; }
/* Folding rows in a grid (30-10-2026, clientedit Purchasing): a parent row (a PO) with its
   child rows (its lines) under it. The parent's first cell holds
   <button type="button" class="evo-fold-btn" aria-expanded="false"><i class="material-symbols-rounded">expand_more</i></button>;
   the page JS toggles .is-collapsed on the parent and .evo-folded on its children. Keep any
   filter on its own class (d-none), so unfolding never shows a filtered-out row. */
table.evo-grid tr.evo-fold-parent > td { background: var(--evo-wash); }
table.evo-grid tr.evo-fold-child > td:first-child { box-shadow: inset 3px 0 0 var(--evo-navy-tint-2); padding-left: .75rem; }
table.evo-grid tr.evo-folded { display: none; }
.evo-fold-btn { border: 0; background: transparent; padding: 0; line-height: 1; color: var(--evo-ink-2); }
.evo-fold-btn .material-symbols-rounded { font-size: 1.25rem; vertical-align: -5px; transition: transform .15s; }
tr.is-collapsed .evo-fold-btn .material-symbols-rounded { transform: rotate(-90deg); }
@media (prefers-reduced-motion: reduce) { .evo-fold-btn .material-symbols-rounded { transition: none; } }
/* 5.5 long text: two lines and a pencil; the textarea stays in the row (hidden)
   so the x[] arrays stay aligned, and the pencil swaps it in. */
.evo-clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.evo-pencil { font-size: 1rem; color: var(--evo-muted); cursor: pointer; }
.evo-pencil:hover { color: var(--bs-primary); }
.evo-pencil.is-set { color: var(--bs-primary); }
/* 5.5 line description (27-10-2026): the icons sit at the top right of the cell, on the
   code's line when the code shares the cell, so swapping text for textarea never moves them.
   The text opens the textarea too (.is-editable); on a read-only line it expands instead.
   <div class="evo-ldesc-row"><div>CODE / or the text + textarea</div>
     <span class="evo-ldesc-tools"><i class="material-symbols-rounded evo-pencil evo-ldesc-pencil">edit</i></span></div>
   <div class="evo-clamp evo-ldesc is-editable">Text</div><textarea class="evo-ldesc-edit d-none"></textarea> */
.evo-ldesc-row { display: flex; align-items: flex-start; gap: .25rem; }
.evo-ldesc-row > :first-child { flex: 1 1 auto; min-width: 0; }
.evo-ldesc-tools { flex: 0 0 auto; display: inline-flex; align-items: center; gap: .15rem; padding-top: .1rem; }
/* Line breaks typed into a description render as breaks (02-11-2026); the 2-line
   clamp still applies, with the full text in title= and in the edit box. */
.evo-ldesc { cursor: pointer; white-space: pre-line; }
.evo-ldesc-edit { overflow-y: hidden; }
/* A description that can't be edited on this line because the record behind it locks it
   (quotedit: inventory.lockItem, 16-11-2026): a muted lock where the pencil would be, and an
   arrow cursor on the text, so a click that doesn't open a box doesn't read as broken. */
.evo-ldesc-lock { font-size: 1rem; color: var(--evo-muted); cursor: help; }
.evo-ldesc.is-locked { cursor: default; }
/* The add row's warnings (quotedit, 16-11-2026): sits at the right end of the selected-item bar
   over the grid, icon + "N warnings" (or "Item details" when there are none), and opens the
   item details drawer. It used to be a bare icon under the Add line pill, which it wrapped. */
.evo-itemalerts { display: inline-flex; align-items: center; gap: .3rem; }
.evo-itemalerts .material-symbols-rounded { font-size: 1.15rem; color: var(--evo-muted); }
.evo-itemalerts.is-warn .material-symbols-rounded { color: #b58105; }
.evo-itemalerts.is-danger .material-symbols-rounded { color: var(--bs-danger, #dc3545); }
.evo-ldesc.is-editable:hover { text-decoration: underline dashed var(--evo-muted) 1px; text-underline-offset: .2em; }
/* while the textarea is open the text stays in the layout at zero height, so an auto-width
   table keeps its column widths and nothing on the row shifts */
.evo-ldesc.d-none { display: block !important; height: 0; overflow: hidden; visibility: hidden; }
/* A line that goes on save (5.7): struck through, controls left readable */
tr.evo-struck > td { text-decoration: line-through; color: var(--evo-faint); }
tr.evo-struck > td input, tr.evo-struck > td .statusPill, tr.evo-struck > td .flag { text-decoration: none; }
/* 5.5a Kit lines (15-11-2026, quotedit + purchaseadd): a kit's child lines are SHOWN as
   belonging to the parent, and the description text is never changed to do it (an indent
   in the text was saved, then printed on customer documents). evoKitCues() in global.js
   sets the classes from parentid: tr.evo-kit-child (an elbow connector in the description
   cell, joined to the next child's), td.evo-kit-desc (that cell), and a "Kit · N" chip on
   the parent's description row. */
tr.evo-kit-child > td.evo-kit-desc { position: relative; padding-left: 1.75rem; }
tr.evo-kit-child > td.evo-kit-desc::before { content: ''; position: absolute; left: .6rem; top: 0; height: 1.15rem; width: .7rem; border-left: 2px solid color-mix(in srgb, var(--evo-muted) 65%, #fff); border-bottom: 2px solid color-mix(in srgb, var(--evo-muted) 65%, #fff); border-bottom-left-radius: .4rem; pointer-events: none; }
tr.evo-kit-child:has(+ tr.evo-kit-child) > td.evo-kit-desc::after { content: ''; position: absolute; left: .6rem; top: 0; bottom: 0; border-left: 2px solid color-mix(in srgb, var(--evo-muted) 65%, #fff); pointer-events: none; }
.evo-kit-chip { display: inline-flex; align-items: center; margin-left: .35rem; font-size: .72rem; font-weight: 600; line-height: 1.45; color: var(--evo-muted); background: var(--evo-wash, #F8F9FB); border: 1px solid var(--evo-line, #D5DCE6); border-radius: 50rem; padding: 0 .45rem; white-space: nowrap; vertical-align: middle; cursor: default; }
/* 5.11 Add-line button (ruled 02-11-2026, exemplar invoiceadd): the one look for
   "add a line to this working grid", at the end of every entry form's add row.
   A green pill, so it reads apart from the grey toolbar buttons - see this pill,
   this grid takes new lines. Use with btn btn-sm for focus/disabled behaviour.
   The colour is one theme token, --evo-add-color (themes/<env>/theme.css); the
   tint, edge and row wash all derive from it, so a theme re-colours the whole
   pattern site-wide by changing that one line. Keep it >= 4.5:1 on white. */
.evo-addline { display: inline-flex; align-items: center; gap: .25rem; white-space: nowrap; font-weight: 600; color: var(--evo-add-color, #146c43); background: color-mix(in srgb, var(--evo-add-color, #146c43) 18%, #fff); border: 1px solid color-mix(in srgb, var(--evo-add-color, #146c43) 35%, #fff); border-radius: 50rem; padding: .2rem .7rem .2rem .5rem; }
.evo-addline .material-symbols-rounded { font-size: 1.25rem; }
.evo-addline:hover, .evo-addline:focus-visible { color: #fff; background: var(--evo-add-color, #146c43); border-color: var(--evo-add-color, #146c43); }
/* The add row itself (5.11): the same family as the pill, washed right back,
   so the entry row reads apart from the saved lines under it. A legacy grid not on
   .evo-grid yet adds .evo-addrow to its tr.formrow (quotedit, 16-11-2026). */
table.evo-grid tr.formrow > td, tr.formrow.evo-addrow > td { background-color: color-mix(in srgb, var(--evo-add-color, #146c43) 6%, #fff); border-bottom: 2px solid color-mix(in srgb, var(--evo-add-color, #146c43) 35%, #fff); }
/* An entry STRIP (5.11): some pages keep their add controls in a card above the
   grid instead of a tr.formrow, so a picker dropdown is not trapped in the
   .evo-gridwrap scroller (creditnoteadd). The strip takes the same wash. It
   replaces "border rounded bg-white" on the strip div (Bootstrap's .border
   colour is !important, so the class carries its own border). */
.evo-addstrip { background-color: color-mix(in srgb, var(--evo-add-color, #146c43) 6%, #fff); border: 1px solid color-mix(in srgb, var(--evo-add-color, #146c43) 35%, #fff); border-radius: .375rem; }

/* History in a tab pane: history.inc prints its own legacy heading and pins a
   min-height; the tab already names it and a short history should not leave a gap.
   <div class="evo-hist"> loadLogHistory(null, "min(60vh, 32rem)") </div> */
.evo-hist .jumbotron > .display-6, .evo-hist .jumbotron > hr { display: none; }
.evo-hist .jumbotron { padding: 0; margin: 0; background: transparent; }
.evo-hist #historyDiv { margin-top: 0 !important; }
.evo-hist .table-responsive { min-height: 0 !important; }

/* House dialogs (16-11-2026): doAlertModal / doConfirm are Bootstrap modals that open over any
   page modal (1055) and over the loading overlay (#overlay, 9999), so the dialog and the backdrop
   Bootstrap makes for it (global.js evoDialogShow) sit above both, through Bootstrap's own vars. */
.modal.evo-dialog { --bs-modal-zindex: 10060; }
.modal-backdrop.evo-dialog-backdrop { --bs-backdrop-zindex: 10055; }
/* an alert raised while a question is open sits over (and dims) the question */
.modal.evo-dialog-alert { --bs-modal-zindex: 10080; }
.modal-backdrop.evo-dialog-alert-backdrop { --bs-backdrop-zindex: 10075; }

/* Forms in modals, additions (docs-dev/styling.inc 7.3, ruled 13-10-2026). The
   .evo-mform / .evo-msec family itself lives in style.css.
   Step number: a create form filled top to bottom (later sections depend on earlier
   ones) numbers its section headings in place of the icon. Grouped edit forms keep icons.
     <h6><span class="evo-msec-num">1</span>Customer</h6>
     <p class="evo-msec-hint is-num">…</p>     hint indented under the heading text
   Sub-panel: a grey inset inside a card for a block the JS reveals after a pick
   (New customer account, Site address, New contact, Pipeline). Its heading is
   optional, small and bold.
     <div class="evo-msub" style="display:none"><div class="evo-msub-h">New contact</div> fields </div> */
.evo-msec-num {
	display: inline-flex; align-items: center; justify-content: center; flex: none;
	width: 1.35rem; height: 1.35rem; border-radius: 50%;
	background: var(--main-highlight-color, var(--bs-primary)); color: #fff; font-size: .72rem; letter-spacing: 0;
}
.evo-msec-hint.is-num { padding-left: 2.7rem; }
.evo-msub { background: var(--evo-wash); border: 1px solid var(--evo-line-soft); border-radius: .4rem; padding: .6rem .75rem .2rem; margin: .25rem 0 .6rem; }
.evo-msub-h { font-size: .82rem; font-weight: 600; color: var(--evo-ink-2); margin-bottom: .4rem; }
/* Footer buttons sit right whether or not there is a note (the note's margin-right:auto
   still pushes it left). Cancel sits before the primary, default size (Q1, 13-10-2026). */
.evo-mform-foot { justify-content: flex-end; }
/* Sticky offset follows whichever box scrolls. style.css's bottom:-1rem suits a scrolling
   .modal-body (scrollable or fullscreen dialog: the foot covers the body's bottom padding).
   In a plain dialog the whole .modal scrolls, and -1rem left the foot half off screen
   (#addOpModal, a newModal largeModal), so it sits flush at 0 there. */
.modal .evo-mform-foot { bottom: 0; }
/* the default modal (.modal-md-fluid, global.js) scrolls its body too (13-10-2026: a 13px strip
   of content showed under the foot in #jobAddressModal), and so does extraLargeModal
   (.modal-xl-fluid, 21-10-2026: #returnGoodsModal) */
.modal-dialog-scrollable .evo-mform-foot, .modal-fullscreen .evo-mform-foot,
.modal-md-fluid .evo-mform-foot, .modal-xl-fluid .evo-mform-foot { bottom: -1rem; }
@media (max-width: 575.98px) { .modal-fullscreen-sm-down .evo-mform-foot { bottom: -1rem; } }
@media (max-width: 767.98px) { .modal-fullscreen-md-down .evo-mform-foot { bottom: -1rem; } }
@media (max-width: 991.98px) { .modal-fullscreen-lg-down .evo-mform-foot { bottom: -1rem; } }
@media (max-width: 1199.98px) { .modal-fullscreen-xl-down .evo-mform-foot { bottom: -1rem; } }
@media (max-width: 1399.98px) { .modal-fullscreen-xxl-down .evo-mform-foot { bottom: -1rem; } }
/* Colour picker (assets/jscripts/colorpicker, evol-colorpicker): it sizes its wrapper from the
   input's width when it starts, which is 0 inside a hidden modal, so the swatch dropped under the
   input. One rule for every page that loads it (01-11-2026, 31-10 sweep ruling 9: the same block
   was copied into departments, customerSegments, staffedit, useredit and activity_types). A page
   CSS file can still widen it (customerSegmentEdit.css: 100%). */
.evo-cp-wrap { width: 150.9px !important; display: flex; justify-content: flex-start; align-items: center; gap: 3px; }
/* Action list (styling.inc 7.3, 15-11-2026, first use quotedit Quick supply): a modal whose job is to
   pick one of a few big actions. Each is a full-width button: icon, a title and a one-line hint.
   <div class="evo-actlist"><button class="evo-actlist-item"><i class="material-symbols-rounded">…</i>
     <span><b>Title</b><small>What it does</small></span></button>…</div> */
.evo-actlist { display: grid; gap: .5rem; }
.evo-actlist-item { display: flex; align-items: center; gap: .85rem; width: 100%; text-align: left;
	padding: .75rem 1rem; background: #fff; border: 1px solid var(--evo-line); border-radius: .5rem; color: var(--evo-ink); }
.evo-actlist-item:hover:not(:disabled), .evo-actlist-item:focus-visible { border-color: var(--bs-primary); background: var(--evo-wash); }
.evo-actlist-item:disabled { opacity: .55; cursor: not-allowed; }
.evo-actlist-item > .material-symbols-rounded { font-size: 1.6rem; color: var(--bs-primary); }
.evo-actlist-item b { display: block; font-weight: 600; }
.evo-actlist-item small { display: block; color: var(--evo-muted); }
/* A two-way choice at the top of a form (Close: Won / Lost): btn-check radios, equal widths */
.evo-choice { display: flex; gap: .5rem; }
.evo-choice > .btn { flex: 1 1 0; }
/* Full-page create form (styling.inc 7.3.3 amendment, 13-10-2026; first page: jobadd).
   The modal form on a page of its own: numbered cards in one column, capped at a
   readable width, and the foot pinned to the bottom of the window like .evo-actionbar
   rather than to a modal body (no negative margins, its own border and shadow).
     <div class="evo-mform evo-page-form"><form …> cards … <div class="evo-mform-foot">…</div></form></div> */
.evo-page-form { max-width: 60rem; }
.evo-page-form .evo-mform-foot .btn { white-space: nowrap; }
.evo-page-form .evo-mform-foot {
	bottom: 8px; margin: 0; background: #fff;
	border: 1px solid var(--evo-line); border-radius: .5rem; box-shadow: 0 -2px 12px rgba(0,0,0,.15);
}
/* Summary panel (styling.inc #pageform1310 amendment, 13-10-2026). The form and a summary
   beside it, centred together. The summary holds one row per card (number, name, what was
   entered, "Required" when it is missing, warning flags), any totals, then Cancel and the
   primary (form="…" so it posts the form). From 1200px wide the summary shows and stays in
   view, and the pinned foot is hidden; narrower, it is hidden and the form is centred with
   its foot as before.
     <div class="evo-page-split">
       <div class="evo-mform evo-page-form"><form id="form">… foot</form></div>
       <aside class="evo-page-aside"><div class="evo-sum">
         <div class="evo-sum-h">Summary</div>
         <a class="evo-sum-row" href="#card"><span class="evo-msec-num">1</span>
           <span class="evo-sum-body"><span class="evo-sum-k">Customer</span>
             <span class="evo-sum-v">…</span><span class="evo-sum-sub">…</span></span></a>
         <div class="evo-sum-total"><span>Total</span><span>…</span></div>
         <div class="evo-sum-foot"><span class="evo-mform-note">…</span>
           <div class="evo-sum-btns">Cancel, primary</div></div>
       </div></aside>
     </div>
   .evo-sum-v.is-missing = a required value not given yet; .is-empty = optional, not given. */
.evo-page-split { display: flex; gap: 1.25rem; align-items: flex-start; justify-content: center; }
.evo-page-split > .evo-page-form { flex: 1 1 auto; min-width: 0; }
.evo-page-aside { display: none; }
@media (min-width: 1200px) {
	.evo-page-aside {
		display: block; flex: 0 0 22rem; min-width: 0;
		position: sticky; top: 1rem; max-height: calc(100vh - 2rem); overflow-y: auto;
	}
	.evo-page-split .evo-page-form .evo-mform-foot { display: none; }
}
.evo-sum { background: #fff; border: 1px solid var(--evo-line); border-radius: .5rem; box-shadow: 0 2px 10px rgba(0,0,0,.06); }
.evo-sum-h { padding: .6rem 1rem; font-weight: 600; border-bottom: 1px solid var(--evo-line-soft); }
.evo-sum-row { display: flex; align-items: flex-start; gap: .65rem; padding: .55rem 1rem;
	color: inherit; text-decoration: none; border-bottom: 1px solid var(--evo-steel); }
.evo-sum-row:hover, .evo-sum-row:focus-visible { background: var(--evo-wash); color: inherit; }
.evo-sum-row > .evo-msec-num { margin-top: .1rem; }
.evo-sum-body { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; gap: .05rem; }
.evo-sum-k { font-size: .75rem; font-weight: 600; color: var(--evo-muted); }
.evo-sum-v { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.evo-sum-v.is-missing { color: #dc3545; font-weight: 400; }
.evo-sum-v.is-empty { color: var(--evo-muted); font-weight: 400; }
.evo-sum-sub { font-size: .82rem; color: var(--evo-muted); overflow-wrap: anywhere; }
.evo-sum-sub:empty { display: none; }
.evo-sum-sub .flag { margin: .15rem .25rem 0 0; }
.evo-sum-line { display: flex; justify-content: space-between; gap: .5rem; font-size: .85rem; }
.evo-sum-line > :last-child, .evo-sum-total > :last-child { font-variant-numeric: tabular-nums; white-space: nowrap; }
.evo-sum-total { display: flex; justify-content: space-between; gap: .5rem; padding: .6rem 1rem;
	font-weight: 700; background: var(--evo-wash); border-bottom: 1px solid var(--evo-line-soft); }
.evo-sum-foot { padding: .75rem 1rem; }
.evo-sum-btns { display: flex; gap: .5rem; margin-top: .5rem; }
.evo-sum-btns > .btn { flex: 1 1 0; white-space: nowrap; }
/* Predefined tasks foot in form mode (tasktemplateslist.inc, in #taskTemplatesListModal).
   Moved from the include's own <style> block 13-10-2026. */
.ttl-foot { position: sticky; bottom: -1rem; z-index: 5; display: flex; align-items: center; gap: .9rem;
	background: #fff; border-top: 1px solid var(--evo-line); margin: .75rem -1rem -1rem; padding: .65rem 1rem; }
.ttl-foot .btn { width: auto; }

/* Country pick list under a text input (opportunityadd, siteadd, siteedit, clientadd).
   Moved here from page <style> blocks 13-10-2026; those blocks also set a page-wide
   input[type="text"] { width:100%; padding:8px } that is deliberately NOT carried over.
     <div class="autocomplete-container"><input class="form-control countryInput">
       <div class="autocomplete-list"></div></div>     items: div.autocomplete-item */
.autocomplete-container { position: relative; width: 100%; }
.autocomplete-list {
	position: absolute; top: 100%; left: 0; right: 0; z-index: 10000;
	max-height: 200px; overflow-y: auto; background: #fff;
}
.autocomplete-list:not(:empty) { border: 1px solid var(--evo-line); border-radius: .375rem; box-shadow: 0 .25rem .75rem rgba(0,0,0,.08); }
.autocomplete-item { padding: 8px; cursor: pointer; }
.autocomplete-item:hover { background-color: #f0f0f0; }

/* Address label: one clickable row standing in for an address and the fields behind it
   (first: Delivery Address on the project General tab, jobeditgen.inc, which opens
   #jobAddressModal). Icon, one or two lines that ellipsis, a source badge with an Unsaved
   chip stacked under it while the change waits for the page's Save, and an edit icon.
     <button type="button" class="evo-addr-label [is-empty] [is-unsaved]">
       <i class="material-symbols-rounded evo-addr-label-icon">location_on</i>
       <span class="evo-addr-label-lines"><span class="evo-addr-label-l1"></span><span class="evo-addr-label-l2"></span></span>
       <span class="evo-addr-label-tags"><span class="evo-addr-label-badge is-site|is-own|is-oneoff">Site</span>
         <span class="evo-addr-label-unsaved">Unsaved</span></span>
       <i class="material-symbols-rounded evo-addr-label-edit">edit</i></button> */
.evo-addr-label {
	display: flex; align-items: center; gap: .6rem; width: 100%; min-height: calc(1.5em + .75rem + 2px);
	padding: .4rem .65rem; text-align: left; color: var(--evo-ink); background: #fff;
	border: 1px solid var(--evo-line); border-radius: .375rem; cursor: pointer;
	transition: border-color .15s, box-shadow .15s;
}
.evo-addr-label:hover { border-color: var(--bs-primary); }
.evo-addr-label:focus-visible { outline: 0; border-color: var(--bs-primary); box-shadow: 0 0 0 .2rem rgba(var(--bs-primary-rgb), .2); }
.evo-addr-label-icon { flex: 0 0 auto; font-size: 1.35rem; color: var(--bs-primary); }
.evo-addr-label-lines { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.evo-addr-label-l1, .evo-addr-label-l2 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.evo-addr-label-l2 { font-size: .85em; color: var(--evo-muted); }
.evo-addr-label-l2:empty { display: none; }
.evo-addr-label.is-empty .evo-addr-label-l1 { color: var(--evo-muted); font-style: italic; }
.evo-addr-label.is-empty .evo-addr-label-icon { color: var(--evo-faint); }
.evo-addr-label-tags { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; gap: .15rem; }
.evo-addr-label-badge, .evo-addr-label-unsaved {
	padding: .1rem .45rem; line-height: 1.3; border-radius: 1rem; font-size: .72rem; font-weight: 600; white-space: nowrap;
}
.evo-addr-label-badge { background: var(--evo-line-soft); color: var(--evo-ink-2); }
.evo-addr-label-badge.is-site { background: var(--evo-navy-tint); color: var(--evo-navy); }
.evo-addr-label-badge.is-oneoff { background: #fff3cd; color: #855d00; }
.evo-addr-label-unsaved { display: none; background: #fde2e1; color: #b02a37; }
.evo-addr-label.is-unsaved .evo-addr-label-unsaved { display: inline-block; }
.evo-addr-label-edit { flex: 0 0 auto; font-size: 1.1rem; color: var(--evo-faint); }
.evo-addr-label:hover .evo-addr-label-edit { color: var(--bs-primary); }
/* Read-only use of the label (a div, no edit icon): no hover, no pointer. */
.evo-addr-label.is-static { cursor: default; }
.evo-addr-label.is-static:hover { border-color: var(--evo-line); }
/* Task target label (tasktarget.inc, 20-11-2026): the label, an open-in-new link beside
   it, and the Link to fields it opens inline underneath. */
.evo-tt-row { display: flex; align-items: center; gap: .25rem; }
.evo-tt-row .evo-addr-label { flex: 1 1 auto; min-width: 0; }
.evo-tt-open { flex: 0 0 auto; padding: .25rem .4rem; }
.evo-tt-open .material-symbols-rounded { font-size: 1.25rem; }
.evo-tt-edit { position: relative; margin-top: .5rem; padding: .65rem .75rem .4rem; border: 1px solid var(--evo-line); border-radius: .375rem; background: var(--evo-line-soft); }
.evo-tt-edit .form-group { margin-bottom: .4rem; }
.evo-tt-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .35rem; }
.evo-tt-foot { display: flex; gap: .25rem; }
/* A read-only address block with its line breaks kept (the modal's site card) */
.evo-addr-text { white-space: pre-line; }
/* Read-only text shown back in a form or modal (styling.inc 7.3.4): what was entered
   earlier, line breaks kept, scrolls past ~8 lines. First use: a defect's required
   rectification and "What was done" in its move modals and Rectification panel. */
.evo-readout { white-space: pre-line; overflow-wrap: anywhere; max-height: 12rem; overflow: auto;
	background: var(--bs-tertiary-bg, var(--evo-wash)); border: 1px solid var(--bs-border-color, var(--evo-line));
	border-radius: var(--bs-border-radius, .375rem); padding: .4rem .6rem; font-size: .875rem; }

/* Pickers in modal forms (13-10-2026, Shane). A selectFilter list inside a §7.3
   modal form (.evo-mform) opens IN THE FLOW at its default 300px instead of
   floating: the modal grows to fit it (up to the window) and the body scrolls,
   so a long list can always be browsed. evoModal.js scrolls it into view.
   Raised above the sticky .evo-mform-foot (z-index 5). */
.evo-mform div.filtered_list > select.filtered_list {
	position: relative;
	top: 0;
	float: none;
	margin-top: 4px;
	border-radius: .4rem;
	box-shadow: 0 4px 12px rgba(0, 0, 0, .12);
}

/* Row states on a working grid (docs-dev/styling.inc 1.8 / 5.7): a light tint and
   a 4px left edge on the first cell. evo-row-flag = the system flagged the row
   (amber); evo-row-done = the user entered or saved something (green, and it wins
   when both apply). The edge is an inset shadow so the columns do not shift.
   <tr class="evo-row-flag"> / <tr class="evo-row-flag evo-row-done"> (invminmax) */
table > tbody > tr.evo-row-flag > td { background: rgba(255,193,7,.12); }
table > tbody > tr.evo-row-flag > td:first-child { box-shadow: inset 4px 0 0 #ffc107; }
table > tbody > tr.evo-row-done > td { background: rgba(25,135,84,.08); }
table > tbody > tr.evo-row-done > td:first-child { box-shadow: inset 4px 0 0 #198754; }

/* Web addresses linked in ticket chat and descriptions (ticketMessageHtml() in
   functions.php, 15-10-2026). A long address breaks anywhere rather than
   stretching the bubble or the page. */
a.evo-msg-link { overflow-wrap: anywhere; word-break: break-word; }

/* Page presence (EvoSession::presenceBadges, library/session.php): named badges of the
   other staff who have the same record open, kept current by evoPresence in global.js.
   Sits in the page header. A coloured dot per person (.evo-presence-c0..5, from their
   user id) so the same person reads the same on every screen; .is-idle = their tab is
   in the background, so they are there but probably not looking.
     <span class="evo-presence" id="evoPresence"><span class="evo-presence-badge evo-presence-c2">Mark</span></span> */
.evo-presence { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .3rem; margin-right: .5rem; vertical-align: middle; }
.evo-presence[hidden] { display: none; }
.evo-presence::before { content: "visibility"; font-family: "Material Symbols Rounded"; font-size: 1.15rem; line-height: 1; color: var(--evo-muted); }
.evo-presence-badge {
	display: inline-flex;
	align-items: center;
	gap: .3rem;
	border: 1px solid var(--evo-mist);
	background: #fff;
	color: var(--evo-ink);
	border-radius: 1rem;
	padding: .05rem .6rem .05rem .45rem;
	font-size: .85rem;
	line-height: 1.4;
	white-space: nowrap;
	cursor: default;
}
.evo-presence-badge::before { content: ""; width: .55rem; height: .55rem; border-radius: 50%; background: currentColor; }
.evo-presence-c0::before { background: #0d6efd; }
.evo-presence-c1::before { background: #198754; }
.evo-presence-c2::before { background: #d63384; }
.evo-presence-c3::before { background: #fd7e14; }
.evo-presence-c4::before { background: #6f42c1; }
.evo-presence-c5::before { background: #20c997; }
.evo-presence-badge.is-idle { opacity: .55; border-style: dashed; }

/* XERO PILL - the one record action that opens a record's Xero integration
   panel (credit notes first). Xero's own blue so it reads as "Xero" at a glance;
   pill-shaped and sized to sit in a row of btn-sm band actions. */
.btn.evo-xero-pill,
.btn.evo-xero-pill:hover,
.btn.evo-xero-pill:focus,
.btn.evo-xero-pill:active {
	background: #13B5EA;
	color: #fff;
	font-weight: 600;
	border: 0;
	border-radius: 20px;
	padding: .25rem 1.1rem;
}
.btn.evo-xero-pill:hover { background: #0f9fcf; }

/* ==================================================================
   PAGE HEADER AND CANVAS (docs-dev/styling.inc 1.2 / 1.2a, ruled 27-10-2026;
   plan audits/HOUSE_HEADER_CANVAS_GLOBAL_PLAN_2026-10-27.md)

   Every page's .pageheader runs full width, from the menu to the window
   edge, and sits over a tinted canvas that the house cards lift off. Each
   page .inc still prints its own header: the bar is pulled out of
   index.php's gutters with negative margins and padded back in by the same
   amount, so its contents line up with the content below.

   Two layers:
   - The skin (below) restyles every legacy header with no markup change:
     flex for floats, a 45px bar, a sentence-case title, a frosted circle on
     the back link and on every toolbar icon. Toolbars keep working as they are.
   - .evo-head is the header evoPageHeader() (functions.php) prints on a
     modernized page: back pill, eyebrow over the record name, presence,
     and help (Docs, then the Video button index.php appends).
   The style.css rules (.pageheader, .pagetitle, .pagebutton) stay. These win
   because evoHouse loads after style.css, and they still style a header in a
   modal or a dashboard tile, which does not bleed.
   ================================================================== */
:root {
	--evo-gutter-l: 25px;     /* .page_content padding-left (index.php) */
	--evo-gutter-r: 9.75px;   /* the column's right gutter at the 13px root */
	--evo-page-pad: 9.75px;   /* the content's own inset, so the bar's contents line up with the cards */
	--evo-canvas: color-mix(in srgb, var(--main-highlight-color) 5%, #f3f5f8);
	--evo-card-border: var(--evo-line-soft);
	--evo-card-shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 1px 3px rgba(16, 24, 40, .07);
	--evo-head-shadow: 0 2px 4px rgba(16, 24, 40, .12);
	--evo-head-ctl-border: rgba(255, 255, 255, .3);
	--evo-head-ctl-bg: rgba(255, 255, 255, .14);
	/* Filter strip (styling.inc 3.1 #evostrip): change the look here, never on a page */
	--evo-strip-bg: var(--evo-wash);
	--evo-strip-border: var(--evo-line);
	--evo-strip-label: var(--evo-muted);
	--evo-strip-radius: .375rem;
}

/* Canvas: .page_content is the whole area right of the menu, gutter included.
   It is only as tall as the page, so fill to the bottom of the window. A page
   never paints its own page-level background; a legacy container that needs
   white gets bg-white. */
.page_content { background: var(--evo-canvas); min-height: calc(100vh - 60px); }
/* The house cards lift off the canvas. .evo-tabs/.evo-tabpane are defined in
   evoTabs.css, which loads after this file, hence .page_content in front. */
.evo-band, .evo-fig, .evo-panel,
.page_content .evo-tabs, .page_content .evo-tabpane:not(.evo-tabpane--bare) {
	border-color: var(--evo-card-border);
	box-shadow: var(--evo-card-shadow);
}
.evo-actionbar { border-color: var(--evo-card-border) !important; }
.evo-fig.is-link:hover { box-shadow: 0 2px 6px rgba(16, 24, 40, .1); }

/* Full bleed: only the page's own header, never one in a modal, card, popup or
   dashboard tile. Scoped to .page_content, not #main_content_div: dispatchedit
   and mfshoporderdetail close that div before their header. width beats w-100
   and inline width:100% (invedithist, staffquallist). The pipeline sub-rail
   (style.css) bleeds with its header so the pair stays one block. */
.page_content .pageheader:not(:is(.modal, .card, .popupDiv, .dashboardItemLarge) .pageheader),
.page_content .pageheader + .evo-subrail {
	width: auto !important;
	margin-left: calc(-1 * var(--evo-gutter-l));
	margin-right: calc(-1 * var(--evo-gutter-r));
	border-radius: 0;
}
.page_content .pageheader:not(:is(.modal, .card, .popupDiv, .dashboardItemLarge) .pageheader) {
	padding: 0 calc(var(--evo-gutter-r) + var(--evo-page-pad)) 0 calc(var(--evo-gutter-l) + var(--evo-page-pad));
}
.page_content .pageheader + .evo-subrail { box-shadow: var(--evo-head-shadow); }

/* Footer gap: style.css's 40px bottom margin sat outside the canvas as a white strip */
.page_content { margin-bottom: 0; padding-bottom: 20px; }

/* Legacy sheet (plan 3.2, ruled 27-10-2026): a page with no house surfaces
   keeps its content on one white sheet over the canvas, so its tables, white
   blocks and pale alerts read as they did on white. Modernized pages, with
   cards on the canvas, are untouched.
   The sheet is a background image on .page_content, not a box: wrapping or
   positioning the column would trap modals under their backdrop, and
   printdiv.php and a few pages close the column early anyway. It starts
   12px below the header (45px), or below the header + sub-rail (73px).
   The SVG rect is inset 4px so its shadow is not clipped. */
.page_content:not(:has(.evo-band, .evo-tabs, .evo-head, .evo-panel, .evo-board, .evo-dash, .evo-register)) {
	--evo-sheet-top: 57px;
	--evo-sheet-l: calc(var(--evo-gutter-l) - var(--evo-gutter-r));
	--evo-sheet-r: 16px;
	--evo-sheet-b: 20px;
	padding-bottom: calc(var(--evo-sheet-b) + 20px);
	background: var(--evo-canvas) no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='s'%3E%3CfeDropShadow dx='0' dy='1' stdDeviation='1.5' flood-color='%23101828' flood-opacity='.09'/%3E%3C/filter%3E%3Crect x='4.5' y='4.5' rx='10' style='width:calc(100%25 - 9px);height:calc(100%25 - 9px)' fill='%23fff' stroke='%23e3e7ec' filter='url(%23s)'/%3E%3C/svg%3E");
	background-position: calc(var(--evo-sheet-l) - 4px) calc(var(--evo-sheet-top) - 4px);
	background-size: calc(100% - var(--evo-sheet-l) - var(--evo-sheet-r) + 8px) calc(100% - var(--evo-sheet-top) - var(--evo-sheet-b) + 8px);
}
.page_content:not(:has(.evo-band, .evo-tabs, .evo-head, .evo-panel, .evo-board, .evo-dash, .evo-register)):has(.pageheader + .evo-subrail) { --evo-sheet-top: 85px; }
/* Photo pages (login, login2 company select, register, validate,
   companycreate) set a background photo on #main_site_container by script,
   and neither the canvas nor the sheet goes over it. */
#main_site_container[style*="background-image: url"] > .page_content { background: none; }
#main_site_container[style*="background-image: url"] #main_content_div { margin-right: 0; }

/* Footer (styling.inc 1.3b): one quiet line on the canvas, right of the menu.
   It sits in the outer .container-fluid after #main_site_container, so it undoes
   the container's padding and starts at the menu's edge (60px, 250px pinned);
   the text lines up with the cards. Stacks centred on a phone, clears the phone
   action bar, and never prints. */
.evo-foot {
	display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .2rem 1.5rem;
	margin: 0 calc(var(--bs-gutter-x, 1.5rem) * -.5) 0 calc(var(--bs-gutter-x, 1.5rem) * -.5 + 60px);
	padding: .6rem calc(var(--evo-gutter-r) + var(--evo-page-pad)) .7rem calc(var(--evo-gutter-l) + var(--evo-page-pad) - 4px);
	background: var(--evo-canvas); border-top: 1px solid var(--evo-card-border);
	color: var(--evo-strip-label); font-size: .85rem; line-height: 1.4; text-align: left;
	/* The menu column is min-height 100vh below a 58px header, so on a short page it
	   hangs ~30px past the footer and the body's white showed under it. Paint the
	   canvas down over that gap (shadows, so the page does not get taller; two
	   copies 1.5rem apart, each less than the footer's height, leave no seam). */
	box-shadow: 0 1.5rem 0 var(--evo-canvas), 0 3rem 0 var(--evo-canvas);
}
#main_site_container.menu-pinned ~ .evo-foot { margin-left: calc(var(--bs-gutter-x, 1.5rem) * -.5 + 250px); }
@media (max-width: 767.98px) {
	.evo-foot { flex-direction: column; align-items: center; text-align: center; padding-left: 1rem; padding-right: 1rem; }
	.evo-foot-sep { display: none; }
	.evo-foot-addr { display: block; }
	body:has(.evo-phonebar) .evo-foot { padding-bottom: 4.5rem; }
}
@media print { .evo-foot { display: none !important; } }
/* min-width 0: as a flex .col the column would rather overflow the row than
   give up the sheet margin when its content is wide (chainlinkWizard, mfactivity) */
.page_content:not(:has(.evo-band, .evo-tabs, .evo-head, .evo-panel, .evo-board, .evo-dash, .evo-register)) #main_content_div { margin-right: var(--evo-sheet-r); min-width: 0; }
/* the first content clears the sheet's top edge; the header still bleeds past the sheet's right gap */
.page_content:not(:has(.evo-band, .evo-tabs, .evo-head, .evo-panel, .evo-board, .evo-dash, .evo-register)) .pageheader:not(:is(.modal, .card, .popupDiv, .dashboardItemLarge) .pageheader):not(:has(+ .evo-subrail)),
.page_content:not(:has(.evo-band, .evo-tabs, .evo-head, .evo-panel, .evo-board, .evo-dash, .evo-register)) .pageheader + .evo-subrail { margin-bottom: 22px !important; }
/* only a header inside the column, which carries the sheet margin; one outside
   it (mfshoporderdetail's form) keeps the plain bleed */
.page_content:not(:has(.evo-band, .evo-tabs, .evo-head, .evo-panel, .evo-board, .evo-dash, .evo-register)) #main_content_div .pageheader:not(:is(.modal, .card, .popupDiv, .dashboardItemLarge) .pageheader),
.page_content:not(:has(.evo-band, .evo-tabs, .evo-head, .evo-panel, .evo-board, .evo-dash, .evo-register)) #main_content_div .pageheader + .evo-subrail {
	margin-right: calc(-1 * (var(--evo-gutter-r) + var(--evo-sheet-r)));
}

/* Register surface (styling.inc 3.0, ruled 31-10-2026): .evo-register is a
   register's working area, one white card holding the tip, filter strip,
   chips/pager line, table and bulk bar. The header and sub-rail stay outside
   it and bleed. It is in the marker list above, so a register is never on
   the legacy sheet, with or without evoPageHeader(). It hugs its content.
   A plain block: no z-index, transform, isolation or overflow, or the modals
   inside it sit under their backdrop. */
.evo-register {
	margin: 12px 0;
	padding: 12px 14px;
	border: 1px solid var(--evo-card-border);
	border-radius: 10px;
	background: #fff;
	box-shadow: var(--evo-card-shadow);
	text-align: left;
}
/* Single scroll: evoRegister.js sets --evo-reg-h to the window height left
   under the viewport's top, so the pager stays on screen. A max-height, so a
   short list still hugs its rows. style.css's 72vh is the no-script fallback;
   its 450px min-height would push the pager below the fold at 1280x580. */
.evo-register .table-viewport {
	max-height: var(--evo-reg-h, 72vh) !important;
	min-height: 0;
}
/* The viewport's own border is the table's bottom edge: Bootstrap's 1rem table margin
   left a strip under the last row, and that row's line drew a second rule above the
   border (Shane, 01-11-2026: "the stray line under register tables"). */
.evo-register .table-viewport > .table { margin-bottom: 0; }
.evo-register .table-viewport > .table > tbody:last-child > tr:last-child > * { border-bottom-width: 0; }
/* A header label starts where its column's data starts. The dark-header theme rule
   (style.css .table .thead-dark th) pads the left 10px against table-sm's .25rem in
   the cells, which set every label 7px right of its data and cost 7px of minimum
   width per label-sized column (13 columns overflowed invoicereg at 1280). */
.evo-register .table-sm > .thead-dark th { padding-left: .25rem; }
/* Filter strip (styling.inc 3.1 #evostrip, ruled 31-10-2026): the light box that holds a
   register's filters, its Advanced panel, and the 5.1 toolbar strip. One class, so a palette
   or spacing change is made here (the --evo-strip-* tokens in :root) and never on a page.
   It replaces "border rounded bg-light px-3 py-2 mb-2 d-flex flex-wrap align-items-center
   gap-3" and keeps that look exactly. A field is .evo-strip-field (label + control), its
   mini-label .evo-strip-label (was "text-muted text-uppercase small mb-0 text-nowrap"). */
.evo-strip {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1rem;
	margin-bottom: .5rem;
	padding: .5rem 1rem;
	border: 1px solid var(--evo-strip-border);
	border-radius: var(--evo-strip-radius);
	background: var(--evo-strip-bg);
}
.evo-strip-field { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; max-width: 100%; }
.evo-strip-label {
	margin: 0;
	color: var(--evo-strip-label);
	font-size: .875em;
	text-transform: uppercase;
	white-space: nowrap;
}
.evo-strip-sep { color: var(--evo-strip-label); font-size: .875em; } /* "to" between two dates */
/* Attribute search (invspecsearchsection.inc, inventory + shop floor orders): the round
   remove cross before each attribute added to the search. Moved from the include's <style>. */
.invSpecSelRem {
	cursor: pointer;
	border: 1px solid var(--evo-strip-border);
	border-radius: 50%;
	height: 20px;
	width: 20px;
	display: inline-block;
	margin-right: 5px;
	margin-bottom: 2px;
	font-size: 15px;
	vertical-align: top;
	padding: 1px;
}
/* The "/" key at the right of a register's Search while it is empty and not in use: "/" puts the cursor
   there (styling.inc 3.0, ruled 01-11-2026; evoRegister.js adds the classes and places the key). */
.evo-slash-field { position: relative; }
.evo-slash-input.form-control { padding-right: 2rem; }
.evo-slash-hint {
	position: absolute;
	display: none;
	transform: translate(calc(-100% - .5rem), -50%);
	padding: 0 .375rem;
	font: 500 .75rem/1.4 var(--bs-font-monospace);
	color: var(--evo-strip-label);
	background: transparent;
	border: 1px solid var(--bs-border-color);
	border-radius: .25rem;
	box-shadow: none;
	cursor: text;
}
.evo-slash-input:placeholder-shown:not(:focus) + .evo-slash-hint { display: block; }
/* Advanced count (evoRegister.js): how many filters behind Advanced are not
   at their clean state, so a filter in force is never out of sight. */
.evo-adv-n {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	border-radius: 9px;
	background: var(--main-highlight-color);
	color: #fff;
	font-size: 11px;
	font-weight: 600;
	line-height: 1;
}
.evo-adv-n:empty { display: none; }

/* Left menu scrolls on its own (styling.inc 3.0, ruled 31-10-2026). It used to
   set the document height (948px on a full menu), so every page scrolled. Now
   it is one window tall and sticks. At the top of the page its foot is under
   the window's edge by the top bar's height (#header, 58px); the padding lets
   the last item scroll into view there, and the matching negative margin
   keeps the menu from stretching the flex row a window tall (the page would
   then scroll by the top bar's height plus the footer). z-index: sticky makes a stacking
   context, so the container carries the 1025 #navdiv had (style.css), keeping
   the hover-expanded menu over sticky table headers. The menu holds no modals.
   The wheel over it: menuScrollGuard() in global.js. Phones keep the old menu. */
@media (min-width: 576px) {
	#menu_container {
		position: sticky;
		top: 0;
		align-self: flex-start;
		height: 100vh;
		margin-bottom: -58px !important;	/* the element carries Bootstrap's .m-0 (!important) */
		z-index: 1025;
	}
	#menu_container > #navdiv {
		height: 100%;
		min-height: 0;
		padding-bottom: 58px;
		overflow-x: hidden;
		overflow-y: auto;
		scrollbar-width: none;
	}
	#menu_container > #navdiv.menu_container_full { scrollbar-width: thin; }
}

/* The bar: flex, so the title shrinks (then ellipsis) and the toolbar groups
   follow in source order on the right. Height stays style.css's 45px. */
.pageheader {
	display: flex;
	align-items: center;
	gap: .45rem;
	padding: 0 .75rem;
	text-align: left;
	box-shadow: var(--evo-head-shadow);
	/* a faint sheen from the left, so the bar reads as a surface, not a stripe */
	background-image: linear-gradient(100deg, rgba(255, 255, 255, .09) 0%, rgba(255, 255, 255, 0) 45%);
}
.pageheader:has(+ .evo-subrail) { box-shadow: none; }
.pageheader:has(+ .evo-subrail.evo-rail-off) { box-shadow: var(--evo-head-shadow); border-radius: 0; }
.pageheader > * { flex: 0 0 auto; }
/* the first-child test would miss a header that opens with a hidden input (settings) */
.pageheader > :is(.pagetitle, a:has(> .pagetitle)) { flex: 0 1 auto; min-width: 0; margin-right: auto; }
.pageheader .pagetitle {
	float: none;
	min-width: 0;
	max-width: none;
	margin: 0;
	padding: 0;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
	font-size: 17px;
	font-weight: 500;
	letter-spacing: .01em;
	text-transform: none;
	text-shadow: none;
}

/* Back, legacy: the whole title is the link, so the circle is drawn before it */
.pageheader > a:has(> .pagetitle) { display: inline-flex; align-items: center; gap: .7rem; color: #fff; text-decoration: none; }
.pageheader > a:has(> .pagetitle)::before {
	content: "arrow_back";
	flex: 0 0 32px;
	width: 32px;
	height: 32px;
	box-sizing: border-box;
	border: 1px solid var(--evo-head-ctl-border);
	border-radius: 50%;
	background: var(--evo-head-ctl-bg);
	color: #fff;
	font-family: "Material Symbols Rounded";
	font-size: 18px;
	line-height: 30px;
	text-align: center;
}
.pageheader > a:has(> .pagetitle):hover::before { background: #fff; color: var(--main-highlight-color); }
/* Back, modernized by hand: an arrow link first inside the title, then the text.
   The <i> is coloured here, not via the <a>: style.css's "a, i" rule colours it black. */
.pageheader .pagetitle > a:first-child:has(> i):not(.evo-head-back) {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	margin: 0 .7rem 0 0;
	box-sizing: border-box;
	border: 1px solid var(--evo-head-ctl-border);
	border-radius: 50%;
	background: var(--evo-head-ctl-bg);
	vertical-align: middle;
	text-decoration: none;
}
.pageheader .pagetitle > a:first-child:not(.evo-head-back) > i { margin: 0; font-size: 18px; line-height: 1; color: #fff; text-shadow: none; }
.pageheader .pagetitle > a:first-child:has(> i):not(.evo-head-back):hover { background: #fff; border-color: #fff; }
.pageheader .pagetitle > a:first-child:has(> i):not(.evo-head-back):hover > i { color: var(--main-highlight-color); }

/* Toolbar: the inline float:right on page divs needs !important to undo */
.pageheader > div[style*="float"], .pageheader .pagebutton { float: none !important; }
.pageheader > div[style*="float"] { display: inline-flex; align-items: center; gap: .35rem; }
.pageheader .pagebutton {
	display: inline-flex;
	align-items: center;
	gap: .35rem;
	height: auto;
	margin: 0;
	padding: 0;
	background: transparent;
	font-size: 12px;
	line-height: 1;
	text-transform: none;
	white-space: nowrap;
}
/* a group whose every child is hidden inline (jobregister's route toggle) takes no room */
.pageheader .pagebutton:not(:has(> :not([style*="display:none"]):not([style*="display: none"]))) { display: none; }
/* Every icon button is a frosted circle: a link, a link in a span, or a bare
   clickable <i> (the CSV export, the timer applet). 19px icon + .5rem each side
   = 32px; a text button ("Add New Qualification") grows into a pill instead. */
.pageheader .pagebutton > a, .pageheader .pagebutton span > a, .pageheader .pagebutton > i {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .3rem;
	box-sizing: border-box;
	min-width: 32px;
	height: 32px;
	padding: 0 .5rem;
	border: 1px solid var(--evo-head-ctl-border);
	border-radius: 16px;
	background: var(--evo-head-ctl-bg);
	color: #fff;
	font-size: inherit;
	text-decoration: none;
}
.pageheader .pagebutton i { margin: 0; font-size: 19px; line-height: 1; color: #fff; text-shadow: none; }
.pageheader .pagebutton > i { cursor: pointer; }
.pageheader .pagebutton > a:hover, .pageheader .pagebutton > i:hover { background: #fff; }
/* the label on a labelled pill ("+ New invoice") turns with its icon, or it is white on white */
.pageheader .pagebutton > a:hover { color: var(--main-highlight-color); }
.pageheader .pagebutton > a:hover i, .pageheader .pagebutton > i:hover { color: var(--main-highlight-color); }
/* Create actions (styling.inc 1.2 #headnew, ruled 31-10-2026): "+ New invoice" is a labelled
   pill (evoPageHeader 'new'), always first in the actions, before the unlabelled tool icons
   and the help circles, so it sits in the same place on every register, calendar and
   workspace. order keeps it there on a hand-written header too. */
.pageheader:has(> .evo-head-new) > :is(.pagetitle, a:has(> .pagetitle), .evo-head-back) { order: -3; }
.pageheader:has(> .evo-head-new) > .evo-presence { order: -2; }
.pageheader > .evo-head-new { order: -1; }
.pageheader .evo-head-new > a { padding: 0 .75rem 0 .55rem; font-weight: 500; }
.pageheader .evo-head-new > a > i { font-size: 18px; }
.pageheader .evo-head-new + .evo-head-new { margin-left: .1rem; }
.pageheader select {
	height: 28px;
	padding: 0 .4rem;
	border: 1px solid rgba(255, 255, 255, .35);
	border-radius: 6px;
	background-color: rgba(255, 255, 255, .95);
	font-size: 12.5px;
}

/* .evo-head: evoPageHeader()'s header.
     [ (<-) Defects ]  DEFECTS          [presence] [actions]  [docs] [video]
                       Defect 43
   Back is a frosted circle that opens into a pill naming where it goes; the
   title is an eyebrow (the register) over the record name. All inside the 45px bar. */
.pageheader.evo-head > .pagetitle { display: flex; align-items: center; gap: .7rem; overflow: visible; }
.pageheader.evo-head .evo-head-back {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	height: 32px;
	min-width: 32px;
	margin: 0;
	padding: 0 6px;
	border: 1px solid var(--evo-head-ctl-border);
	border-radius: 999px;
	background: var(--evo-head-ctl-bg);
	color: #fff;
	text-decoration: none;
	transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.pageheader.evo-head .evo-head-back > i { margin: 0; color: inherit; font-size: 18px; line-height: 1; transition: transform .15s ease; }
.pageheader.evo-head .evo-head-back-label {
	max-width: 0;
	overflow: hidden;
	opacity: 0;
	white-space: nowrap;
	font-size: 13px;
	font-weight: 500;
	transition: max-width .2s ease, opacity .15s ease, margin .2s ease;
}
.pageheader.evo-head .evo-head-back:hover,
.pageheader.evo-head .evo-head-back:focus-visible { background: #fff; border-color: #fff; color: var(--main-highlight-color); }
.pageheader.evo-head .evo-head-back:hover > i,
.pageheader.evo-head .evo-head-back:focus-visible > i { transform: translateX(-2px); }
.pageheader.evo-head .evo-head-back:hover > .evo-head-back-label,
.pageheader.evo-head .evo-head-back:focus-visible > .evo-head-back-label { max-width: 8rem; opacity: 1; margin: 0 .3rem 0 .15rem; }
.pageheader.evo-head .evo-head-back:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.pageheader.evo-head .evo-head-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
.pageheader.evo-head .evo-head-eyebrow {
	color: rgba(255, 255, 255, .68);
	font-size: 10.5px;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
}
.pageheader.evo-head .evo-head-name {
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
	color: #fff;
	font-size: 17px;
	font-weight: 500;
	letter-spacing: .01em;
}
/* Help: Docs (pageDocsButton(), an a.pagebutton) then the Video button index.php
   appends (a div.pagebutton whose <i> holds the click), as matching circles */
.pageheader.evo-head .evo-head-help { display: flex; align-items: center; gap: .45rem; }
.pageheader.evo-head .evo-head-help > .pagebutton {
	justify-content: center;
	flex: 0 0 auto;
	width: 32px;
	height: 32px;
	border: 1px solid var(--evo-head-ctl-border);
	border-radius: 50%;
	background: var(--evo-head-ctl-bg);
	text-decoration: none;
	cursor: pointer;
	transition: background-color .15s ease, border-color .15s ease;
}
.pageheader.evo-head .evo-head-help > .pagebutton > i {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	min-width: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: none;
	transition: color .15s ease;
}
.pageheader.evo-head .evo-head-help > .pagebutton:hover,
.pageheader.evo-head .evo-head-help > .pagebutton:focus-within { background: #fff; border-color: #fff; }
.pageheader.evo-head .evo-head-help > .pagebutton:hover > i,
.pageheader.evo-head .evo-head-help > .pagebutton:focus-within > i { color: var(--main-highlight-color); }
.pageheader.evo-head .evo-head-help > .pagebutton:focus-visible,
.pageheader.evo-head .evo-head-help > .pagebutton > i:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* Phone (best effort, styling.inc 1.1a): a long toolbar wraps to a second row
   rather than pushing the page sideways; the eyebrow and back label drop out. */
@media (max-width: 575.98px) {
	.pageheader { flex-wrap: wrap; height: auto; min-height: 45px; row-gap: .35rem; padding-top: 6px !important; padding-bottom: 6px !important; }
	.pageheader > :is(.pagetitle, a:has(> .pagetitle)) { flex-basis: 100%; margin-right: 0; }
	.pageheader > :not(.pagetitle):not(a:has(> .pagetitle)) { flex-wrap: wrap; }
	.pageheader.evo-head { flex-wrap: nowrap; }
	.pageheader.evo-head > .pagetitle { flex-basis: auto; margin-right: auto; }
	.pageheader.evo-head .evo-head-eyebrow,
	.pageheader.evo-head .evo-head-back-label { display: none; }
}
@media (prefers-reduced-motion: reduce) {
	.pageheader.evo-head *,
	.pageheader.evo-head .pagebutton { transition: none; }
	.pageheader.evo-head .evo-head-back:hover > i,
	.pageheader.evo-head .evo-head-back:focus-visible > i { transform: none; }
}

/* ############################################################
   Add activity with the planner (app/templates/activity/add-modal.inc,
   assets/js/activityPlanner.js; styling.inc §7.3, 31-10-2026)

   The shared New activity modal: the §7.3 form on the left, and on the right
   what else is planned. A strip of days (load against a typical day, then
   deliveries / pickups / site counts), then the picked day: flags, an hour bar
   and its activities. Load levels: free, light, usual, busy, heavy.
     <div class="evo-mform evo-aplan"><form>
       <div class="evo-aplan-grid"><div class="evo-aplan-form">cards</div>
         <aside class="evo-aplan-side"><section class="evo-msec evo-aplan-board">…</section></aside></div>
       <div class="evo-mform-foot">…</div></form></div>
   ############################################################ */
@media (min-width: 1200px) {
	.modal-dialog.modal-xl-fluid:has(.evo-aplan) { width: min(1320px, 94vw); max-width: min(1320px, 94vw); min-width: 0; }
}
.evo-aplan { --aplan-free: var(--evo-faint); --aplan-light: #20c997; --aplan-usual: #0d6efd; --aplan-busy: #fd7e14; --aplan-heavy: #dc3545; }
.evo-aplan-grid { display: grid; grid-template-columns: minmax(330px, 400px) minmax(0, 1fr); gap: .75rem; align-items: start; }
@media (max-width: 991.98px) { .evo-aplan-grid { grid-template-columns: minmax(0, 1fr); } }
.evo-aplan-for { display: flex; align-items: center; gap: .35rem; font-size: .85rem; color: var(--evo-ink-2); margin: 0 0 .6rem; }
.evo-aplan-for .material-symbols-rounded { font-size: 1.05rem; color: var(--evo-muted); }

/* Type chips (radio buttons): a colour dot from activity_types.color */
.evo-aplan-types { display: flex; flex-wrap: wrap; gap: .35rem; border-radius: .5rem; }
.evo-aplan-types.is-invalid { outline: 2px solid var(--bs-danger); outline-offset: 3px; }
.evo-aplan-type { display: inline-flex; align-items: center; gap: .35rem; border: 1px solid var(--evo-mist); background: #fff; color: var(--evo-ink); border-radius: 50rem; padding: .2rem .7rem; font-size: .85rem; }
.evo-aplan-type:hover { background: var(--evo-steel); border-color: var(--evo-faint); }
.evo-aplan-type .material-symbols-rounded { font-size: 1rem; margin-left: -.2rem; }
.btn-check:checked + .evo-aplan-type { background: var(--evo-navy-tint); border-color: var(--bs-primary); color: var(--evo-navy); }
.btn-check:focus-visible + .evo-aplan-type { outline: 2px solid var(--bs-primary); outline-offset: 1px; }
.evo-aplan-dot { display: inline-block; width: .6rem; height: .6rem; border-radius: 50%; background: var(--evo-faint); flex: none; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.evo-aplan-span { min-height: 1.2rem; }

/* The board: heading with the window's range and arrows; branch and key */
.evo-aplan-board > h6 { flex-wrap: wrap; }
.evo-aplan-nav { margin-left: auto; display: inline-flex; align-items: center; gap: .35rem; text-transform: none; letter-spacing: 0; font-size: .85rem; color: var(--evo-ink); font-weight: 600; }
.evo-aplan-nav .btn { padding: 0 .15rem; line-height: 1; }
.evo-aplan-nav .btn .material-symbols-rounded { font-size: 1.25rem; color: inherit; }
.evo-aplan-range { min-width: 9.5rem; text-align: center; }
.evo-aplan-scope { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin-bottom: .55rem; }
.evo-aplan-scope .form-select { width: auto; max-width: 14rem; }
.evo-aplan-key { display: inline-flex; flex-wrap: wrap; gap: .85rem; font-size: .78rem; color: var(--evo-muted); margin-left: auto; }
.evo-aplan-key > span { display: inline-flex; align-items: center; gap: .2rem; }
.evo-aplan-key .material-symbols-rounded { font-size: 1rem; }

/* The strip: one button per day */
.evo-aplan-strip { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .35rem; transition: opacity .15s; }
.evo-aplan-strip.is-loading { opacity: .45; pointer-events: none; }
.evo-aplan-dayc {
	--lv: var(--aplan-free);
	display: flex; flex-direction: column; align-items: center; gap: .1rem;
	padding: .4rem .25rem .35rem; min-width: 0;
	background: #fff; border: 1px solid var(--evo-line); border-top: 3px solid var(--lv); border-radius: .45rem;
	color: var(--evo-ink); font-size: .78rem; line-height: 1.2; cursor: pointer;
	transition: background-color .12s, box-shadow .12s;
}
.evo-aplan-dayc:hover { background: var(--evo-wash); box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.evo-aplan-dayc:focus-visible { outline: 2px solid var(--bs-primary); outline-offset: 1px; }
.evo-aplan-dayc.lv-light { --lv: var(--aplan-light); }
.evo-aplan-dayc.lv-usual { --lv: var(--aplan-usual); }
.evo-aplan-dayc.lv-busy { --lv: var(--aplan-busy); }
.evo-aplan-dayc.lv-heavy { --lv: var(--aplan-heavy); }
.evo-aplan-dayc.is-off { background: repeating-linear-gradient(135deg, #fff 0 6px, #f3f4f6 6px 12px); }
.evo-aplan-dayc.is-past { opacity: .6; }
.evo-aplan-dayc.is-span { background: var(--evo-navy-tint); border-color: var(--evo-navy-tint-2); border-top-color: var(--lv); }
.evo-aplan-dayc.is-picked { background: var(--evo-navy-tint); border-color: var(--bs-primary); border-top-color: var(--lv); box-shadow: 0 0 0 1px var(--bs-primary); opacity: 1; }
.evo-aplan-dow { font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--evo-muted); }
.evo-aplan-dayc.is-today .evo-aplan-dow { color: var(--bs-primary); font-weight: 700; }
.evo-aplan-dnum { font-weight: 600; white-space: nowrap; }
.evo-aplan-n { font-size: 1.35rem; font-weight: 700; line-height: 1.15; margin-top: .1rem; }
.evo-aplan-meter { display: block; width: 80%; height: .3rem; background: var(--evo-line-soft); border-radius: 1rem; overflow: hidden; }
.evo-aplan-meter > span { display: block; height: 100%; background: var(--lv); border-radius: inherit; }
.evo-aplan-lv { font-size: .7rem; color: var(--evo-muted); min-height: .85rem; }
.evo-aplan-dayc.lv-busy .evo-aplan-lv { color: #a8510a; font-weight: 600; }
.evo-aplan-dayc.lv-heavy .evo-aplan-lv { color: #b02a37; font-weight: 600; }
.evo-aplan-mix { display: flex; flex-wrap: wrap; justify-content: center; gap: .1rem .35rem; margin-top: .15rem; font-size: .72rem; color: var(--evo-ink-2); }
.evo-aplan-mix > span { display: inline-flex; align-items: center; gap: .05rem; }
.evo-aplan-mix > span.is-zero { opacity: .35; }
.evo-aplan-mix .material-symbols-rounded { font-size: .9rem; }
.evo-aplan-typical { margin: .45rem 0 .75rem; }

/* The picked day */
.evo-aplan-day { border-top: 1px solid var(--evo-line-soft); padding-top: .7rem; }
.evo-aplan-prompt { display: flex; gap: .7rem; align-items: center; color: var(--evo-muted); font-size: .85rem; padding: .9rem; border: 1px dashed var(--evo-mist); border-radius: .5rem; }
.evo-aplan-prompt .material-symbols-rounded { font-size: 1.8rem; color: var(--evo-faint); }
.evo-aplan-prompt strong { color: var(--evo-ink); }
.evo-aplan-dayh { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .5rem; font-size: .95rem; }
.evo-aplan-badge { display: inline-block; padding: .15rem .6rem; border-radius: 50rem; font-size: .75rem; font-weight: 600; background: var(--evo-line-soft); color: var(--evo-ink-2); }
.evo-aplan-badge.lv-light { background: #d2f4ea; color: #0f5132; }
.evo-aplan-badge.lv-usual { background: #e7f1ff; color: #084298; }
.evo-aplan-badge.lv-busy { background: #ffe5d0; color: #8a4108; }
.evo-aplan-badge.lv-heavy { background: #f8d7da; color: #842029; }
.evo-aplan-flags { list-style: none; margin: 0 0 .5rem; padding: 0; display: flex; flex-direction: column; gap: .3rem; }
.evo-aplan-flags > li { display: flex; align-items: flex-start; gap: .45rem; padding: .35rem .6rem; border-radius: .4rem; font-size: .85rem; background: var(--evo-wash); color: #343a40; }
.evo-aplan-flags .material-symbols-rounded { font-size: 1.1rem; flex: none; margin-top: .05rem; }
.evo-aplan-flags > li.is-ok { background: #e8f5ee; color: #0f5132; }
.evo-aplan-flags > li.is-info { background: #e7f1ff; color: #084298; }
.evo-aplan-flags > li.is-warn { background: #fff6e0; color: #664d03; }
.evo-aplan-flags > li.is-bad { background: #fbe4e6; color: #842029; }
.evo-aplan-alt { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; margin: 0 0 .6rem; font-size: .85rem; color: var(--evo-ink-2); }
.evo-aplan-alt .btn { padding: .1rem .55rem; font-size: .8rem; }

/* Hour bar, 5am to 9pm in half hours: shade = how many run then; the proposed slot outlined */
.evo-aplan-hours { margin: .2rem 0 .85rem; }
.evo-aplan-hbar { display: flex; height: .9rem; border-radius: .3rem; overflow: hidden; background: var(--evo-steel); }
.evo-aplan-hbar > span { flex: 1 1 0; border-right: 1px solid rgba(255,255,255,.7); background: var(--evo-steel); }
.evo-aplan-hbar > span.is-off { background: repeating-linear-gradient(135deg, var(--evo-wash) 0 3px, #eceef1 3px 6px); }
.evo-aplan-hbar > span.h1 { background: #cfe2ff; }
.evo-aplan-hbar > span.h2 { background: #9ec5fe; }
.evo-aplan-hbar > span.h3 { background: #6ea8fe; }
.evo-aplan-hbar > span.h4 { background: #3d8bfd; }
.evo-aplan-hbar > span.is-mine { box-shadow: inset 0 3px 0 var(--evo-ink), inset 0 -3px 0 var(--evo-ink); }
/* Edit mode: where the activity was before it is moved (dashed under the bar). */
.evo-aplan-hbar > span.is-was { background-image: repeating-linear-gradient(90deg, var(--evo-muted) 0 3px, transparent 3px 6px); background-size: 100% 3px; background-repeat: no-repeat; background-position: bottom; }
.evo-aplan-hbar > span.is-was.is-mine { background-image: none; }
.evo-aplan-hlbl { position: relative; height: 1rem; font-size: .7rem; color: var(--evo-muted); }
.evo-aplan-hlbl > span { position: absolute; top: .1rem; transform: translateX(-50%); white-space: nowrap; }
.evo-aplan-chips { margin-bottom: .45rem; }

/* The day's activities: each opens on the calendar in a new tab */
.evo-aplan-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--evo-line-soft); border-radius: .45rem; max-height: 22rem; overflow-y: auto; }
.evo-aplan-list > li + li { border-top: 1px solid var(--evo-line-soft); }
.evo-aplan-list a { display: grid; grid-template-columns: 6.2rem minmax(0, 1fr) auto; gap: .6rem; align-items: start; padding: .45rem .6rem; color: inherit; text-decoration: none; border-left: 3px solid transparent; }
.evo-aplan-list a:hover { background: var(--evo-wash); }
.evo-aplan-list a:focus-visible { outline: 2px solid var(--bs-primary); outline-offset: -2px; }
.evo-aplan-list > li.is-overlap a { background: #fffaeb; }
.evo-aplan-list > li.is-same a { border-left-color: #0dcaf0; }
.evo-aplan-list > li.is-clash a { border-left-color: var(--bs-danger); }
.evo-aplan-when { font-size: .8rem; color: var(--evo-ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; padding-top: .1rem; }
.evo-aplan-what { display: flex; flex-direction: column; min-width: 0; }
.evo-aplan-t { display: inline-flex; align-items: center; gap: .35rem; font-size: .72rem; text-transform: uppercase; letter-spacing: .03em; color: var(--evo-muted); }
.evo-aplan-title { font-size: .88rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.evo-aplan-who { font-size: .8rem; color: var(--evo-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.evo-aplan-tags { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: .25rem; max-width: 11rem; }
.evo-aplan-tags .badge { font-weight: 500; }
.evo-aplan-tags .dot { display: inline-block; width: .55rem; height: .55rem; border-radius: 50%; }
.evo-aplan .evo-empty { padding: 1.2rem; text-align: center; font-size: .85rem; border: 1px dashed var(--evo-mist); border-radius: .5rem; }
@media (prefers-reduced-motion: reduce) { .evo-aplan-strip, .evo-aplan-dayc { transition: none; } }

/* ############################################################
   ACTIVITY SUMMARY (31-10-2026): library/ActivitySummary.php. The calendar's drawer
   (#actDrawer, activities.inc) today, and the Edit activity window's tabs next.
   Facts use the ruled .evo-kv reading layout at every width: label in a fixed column,
   value left-aligned beside it, never pushed to the right edge.
   ############################################################ */
.popupDiv.evo-actdrawer { border-left: 1px solid var(--evo-line); box-shadow: -.5rem 0 1.5rem rgba(0,0,0,.08); max-width: 100vw; overflow-y: auto; }
.evo-actsum { text-align: left; padding-right: .75rem; }
.evo-actsum-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: .75rem; align-items: start; margin-bottom: .6rem; }
.evo-actsum-eyebrow { grid-column: 1 / -1; display: flex; align-items: center; flex-wrap: wrap; gap: .4rem; font-size: .75rem; text-transform: uppercase; letter-spacing: .03em; color: var(--evo-muted); }
.evo-actsum-title { margin: .15rem 0 0; font-size: 1.15rem; font-weight: 600; overflow-wrap: anywhere; }
.evo-actsum-btns { display: flex; gap: .35rem; align-items: center; }
.evo-actsum-btns .btn { display: inline-flex; align-items: center; gap: .3rem; }
.evo-actsum-btns .material-symbols-rounded { font-size: 1.1rem; }
.evo-actsum-facts { background: #fff; border: 1px solid var(--evo-line); border-radius: .5rem; padding: .35rem .9rem; margin-bottom: .75rem; }
.evo-actsum-facts .evo-kv { display: grid; grid-template-columns: 9rem minmax(0, 1fr); column-gap: 1rem; }
.evo-actsum-facts .evo-kv > span:last-child { text-align: left; }
.evo-actsum-desc { margin: 0; padding: .45rem 0 .3rem; border-top: 1px solid var(--evo-steel); }
.evo-actsum .evo-msec > h6 .evo-actsum-more { margin-left: auto; text-transform: none; letter-spacing: 0; font-size: .8rem; font-weight: 400; }
.evo-actsum .evo-msec > h6 .btn.evo-actsum-more { display: inline-flex; align-items: center; gap: .25rem; }
.evo-actsum-list { list-style: none; margin: 0; padding: 0; }
.evo-actsum-list > li { padding: .3rem 0; }
.evo-actsum-list > li + li { border-top: 1px solid var(--evo-steel); }
.evo-actsum-table { font-size: .85rem; }
.evo-actsum-table th { font-weight: 600; color: var(--evo-ink-2); font-size: .78rem; }
@media (max-width: 575.98px) { .evo-actsum-facts .evo-kv { grid-template-columns: 7rem minmax(0, 1fr); } }
.popupDiv.evo-actdrawer:focus { outline: none; }
/* Edit activity window tabs (add-modal.inc #aaTabs): each pane is a summary section on the
   modal's canvas. Call-ups edit in place: quantity box, Remove toggle, a removed line struck out. */
.evo-actsum--pane { padding-right: 0; }
.evo-aa-tabset > .evo-tabs[hidden] { display: none; }
#aaDeleted { margin-bottom: .6rem; }
.evo-aa-callups input[name^="callup_qty"] { width: 6.5rem; margin-left: auto; }
.evo-aa-callups input.is-changed { border-color: var(--evo-navy); background: var(--evo-navy-tint); }
.evo-aa-callups .evo-aa-cudel { display: inline-flex; align-items: center; padding: .1rem .3rem; }
.evo-aa-callups .evo-aa-cudel .material-symbols-rounded { font-size: 1.05rem; }
.evo-aa-callups tr.is-removed > td:not(:last-child) { text-decoration: line-through; color: var(--evo-faint); }
/* Drawer body (ruled 31-10-2026): a house drawer (.popupDiv holding white cards, as
   .evo-actdrawer does) gets the modal's grey body (style.css .modal-body:has(> .evo-mform)),
   so its sections lift off it. Legacy .popupDiv (plain text on white) is unchanged. */
.popupDiv.evo-actdrawer { background: #f5f6f8; }
/* Item drawer subtitle under the heading (jobedit #itemEdit; quotedit #quoteLineDrawer, 15-11-2026).
   jobedit.css still carries the same rule from before it was shared. */
.evo-itemdrawer-desc { grid-column: 1 / -1; font-size: .82rem; color: #6c757d; margin-top: .15rem; }
/* Pick drawer (candidate, 16-11-2026; first use quotedit's kit items drawer #kitform, kits.inc):
   a house drawer whose body is a §7.2 pick + edit table (table.evo-mtable.evo-mtable-pick
   .evo-mtable-edit.evo-kitpick-table) in one card, and a foot that stays at the bottom
   (count and value of what's ticked, then the buttons). Rows nest by data-level: the row
   carries style="--lvl:N" and the code cell steps in, with the 5.5a kit elbow on nested rows.
   Ticked rows take the §1.8 picked state; unticked rows stay readable (they are the
   options), only their Total is faint. */
/* padding-top clears the 73px site header (#header, z 100); .popupDiv's 65px leaves house drawer heads under it. */
.popupDiv.evo-kitpick { padding-top: 85px; padding-right: 1rem; }
.popupDiv.evo-kitpick.popupDivLarge { display: flex; flex-direction: column; }
.popupDiv.evo-kitpick.popupDivLarge > * { flex: none; }
.evo-kitpick .evo-mtable-wrap { max-height: max(16rem, calc(100vh - 21rem)); }
.evo-kitpick-table { table-layout: fixed; }
.evo-kitpick-c-check { width: 2.5rem; }
.evo-kitpick-c-code { width: 9rem; }
.evo-kitpick-c-qty { width: 5.5rem; }
.evo-kitpick-c-price, .evo-kitpick-c-total { width: 6.75rem; }
.evo-kitpick-table td.evo-kitpick-code { position: relative; overflow-wrap: anywhere; padding-left: calc(.4rem + var(--lvl, 0) * 1.1rem); }
.evo-kitpick-table tr.evo-kitpick-sub > td.evo-kitpick-code::before { content: ''; position: absolute; left: calc(var(--lvl, 1) * 1.1rem - .55rem); top: 0; height: 1.2rem; width: .5rem; border-left: 2px solid color-mix(in srgb, var(--evo-muted) 65%, #fff); border-bottom: 2px solid color-mix(in srgb, var(--evo-muted) 65%, #fff); border-bottom-left-radius: .4rem; pointer-events: none; }
.evo-kitpick-table tr.evo-gband > td { padding-left: calc(.6rem + var(--lvl, 0) * 1.1rem); }
.evo-kitpick-table tr.evo-gband .flag { margin-left: .5rem; }
.evo-kitpick-table textarea[name="kitDesc"] { resize: vertical; min-height: 2.4rem; }
.evo-kitpick-table td.evo-kitpick-total { padding-right: .6rem; }
.evo-kitpick-table > tbody > tr:not(.is-picked) > td.evo-kitpick-total { color: var(--evo-faint); }
.evo-kitpick .evo-mform-foot { margin: auto -1rem -30px -20px; bottom: 0; padding: .65rem 1rem .65rem 20px; }

/* ############################################################
   CALENDAR (week): Calendars & Schedules, candidate (styling.inc, 31-10-2026).
   First page: activities.inc (assets/js/modules/activities.js).
   - .evo-cal-bar: the calendar toolbar under the header, inside the top card
     (.evo-register): week nav on the left, the week, then the view switch and tools.
   - .evo-cal-week: the days as white columns on the canvas, --evo-cal-days across.
     Each .evo-cal-day has a head (day, date, count chip, load chip, +) and its cards.
     Today carries an accent top edge and a "Today" tag; the picked day an accent outline.
   - .evo-cal-card: an entry. Its head is the source type's colour (set inline,
     contrast computed); flags (.evo-cal-flags) each carry a title.
   - .evo-cal-legend: the key, in two labelled groups: Types (chips in the card
     heading colours) and On the cards (dots and flag icons), side by side on
     one line; a group drops to its own line only when the width runs out.
   - .evo-cal-hidden: a note above the week when activities fall on a day the
     days setting (activityCalendarDays) hides, linking to the List.
   Drag (.is-dragging / .is-drop) lights the column a card would move to. Days stretch to
   the row's height and their heads stick to the top of the window while the week scrolls.
   ############################################################ */
.evo-cal-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin-bottom: .6rem; }
.evo-cal-nav { display: flex; align-items: center; gap: .35rem; }
.evo-cal-nav .btn, .evo-cal-tools .btn { display: inline-flex; align-items: center; gap: .3rem; }
.evo-cal-nav .btn .material-symbols-rounded, .evo-cal-tools .btn .material-symbols-rounded { font-size: 18px; }
.evo-cal-nav .btn-icon { padding-left: .35rem; padding-right: .35rem; }
.evo-cal-nav input[type="date"] { width: auto; }
.evo-cal-range { font-size: 1.05rem; font-weight: 600; white-space: nowrap; }
.evo-cal-tools { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; margin-left: auto; }
/* Legend: two labelled groups on one line. Types = chips in the card heading's colours;
   the flag key ("On the cards") stays plain after its own label, so the two never run
   together. The second group wraps to its own line only when the width runs out. */
.evo-cal-legend { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 2rem; margin-top: .6rem; padding-top: .6rem; border-top: 1px solid var(--evo-line-soft); font-size: .8rem; color: var(--evo-ink-2); }
.evo-cal-legend-group { display: flex; align-items: center; gap: .6rem; min-width: 0; }
.evo-cal-legend-label { flex: none; font-size: .7rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--evo-muted); }
.evo-cal-legend .regLegend { margin: 0; color: var(--evo-ink-2); }
.evo-cal-types { gap: .3rem .3rem; }
.evo-cal-legend .evo-cal-type { padding: .1rem .5rem; border-radius: 4px; border: 1px solid rgba(0,0,0,.12); font-weight: 600; line-height: 1.4; }
.evo-cal-legend .material-symbols-rounded { font-size: 16px; }
@media (max-width: 767.98px) {
	.evo-cal-legend-group { flex-direction: column; align-items: flex-start; gap: .25rem; }
}
/* Hidden-day notice (gap G7): activities on a day the calendar's days setting hides
   (Saturday / Sunday), so they are not lost. White with an edge on the canvas (1.3a). */
.evo-cal-hidden { display: flex; align-items: flex-start; gap: .5rem; margin: 0 0 8px; padding: .45rem .75rem; background: #fff; border: 1px solid var(--evo-line); border-left: 3px solid #ffc107; border-radius: .5rem; font-size: .85rem; color: var(--evo-ink-2); }
.evo-cal-hidden .material-symbols-rounded { font-size: 1.2rem; color: #997404; }

/* Every day runs the full height of the week's row (stretch, not start): a short day next to
   a long one is still under the pointer lower down, so a card can be dropped on it anywhere,
   and its head can stick. The head (.evo-cal-head) sticks to the top of the window while its
   day scrolls, so the date and the drop target stay on screen at the foot of a long day. */
.evo-cal-week { display: grid; grid-template-columns: repeat(var(--evo-cal-days, 6), minmax(0, 1fr)); gap: 8px; margin: 0 0 12px; align-items: stretch; }
.evo-cal-day {
	min-width: 0;
	background: #fff;
	border: 1px solid var(--evo-card-border);
	border-top: 3px solid var(--evo-card-border);
	border-radius: 8px;
	box-shadow: var(--evo-card-shadow);
	text-align: left;
	container: evo-cal-day / inline-size;
}
.evo-cal-day.is-today { border-top-color: var(--main-highlight-color); }
.evo-cal-day.is-picked { outline: 2px solid var(--main-highlight-color); outline-offset: 1px; }
.evo-cal-head { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .4rem; padding: .45rem .55rem; border-bottom: 1px solid var(--evo-steel); position: sticky; top: 0; z-index: 2; background: #fff; border-radius: 5px 5px 0 0; }
.evo-cal-date { display: flex; flex-direction: column; min-width: 0; margin-right: auto; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; color: inherit; }
.evo-cal-date:focus-visible { outline: 2px solid var(--main-highlight-color); outline-offset: 2px; border-radius: 4px; }
.evo-cal-dow { font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--evo-muted); line-height: 1.2; }
.evo-cal-dom { font-size: 1rem; font-weight: 600; line-height: 1.25; }
.evo-cal-today { display: inline-block; margin-left: .3rem; padding: 0 .35rem; border-radius: 50rem; font-size: .68rem; font-weight: 600; letter-spacing: 0; text-transform: none; vertical-align: 1px; background: var(--main-highlight-color); color: #fff; }
.evo-cal-count { display: inline-flex; align-items: center; justify-content: center; min-width: 1.5rem; padding: .1rem .45rem; border-radius: 50rem; font-size: .75rem; font-weight: 600; background: var(--evo-steel); color: var(--evo-ink-2); }
.evo-cal-head .evo-aplan-badge { font-size: .7rem; padding: .1rem .5rem; }
.evo-cal-head .evo-aplan-badge:empty { display: none; }
.evo-cal-add { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; padding: 0; border-radius: 50%; }
.evo-cal-add .material-symbols-rounded { font-size: 18px; }
/* A narrow column (seven days on a 1280 screen): the date on its own line, the count, load
   tag and + on the next, the same in every column rather than wrapping where a date is long. */
@container evo-cal-day (max-width: 185px) {
	.evo-cal-date { flex-basis: 100%; margin-right: 0; }
	.evo-cal-add { margin-left: auto; }
}
.evo-cal-body { padding: .45rem; min-height: 4rem; }
.evo-cal-body > .evo-cal-none { margin: .5rem 0; font-size: .8rem; color: var(--evo-faint); text-align: center; }

.evo-cal-card { border: 1px solid var(--evo-card-border) !important; border-radius: 6px; box-shadow: var(--evo-card-shadow); overflow: hidden; cursor: pointer; font-size: .82rem; }
.evo-cal-card:hover { box-shadow: 0 2px 6px rgba(16, 24, 40, .14); }
.evo-cal-card:focus-visible { outline: 2px solid var(--main-highlight-color); outline-offset: 1px; }
.evo-cal-card > .card-header { display: flex; align-items: center; gap: .35rem; padding: .3rem .5rem; border: 0; font-size: .85rem; font-weight: 600; }
.evo-cal-card .evo-cal-title { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.evo-cal-card .evo-cal-time { flex: none; font-weight: 400; }
.evo-cal-card .evo-cal-done { font-size: 16px; }
.evo-cal-card > .card-body { padding: .4rem .5rem; }
.evo-cal-card .evo-cal-line { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Account line: the name takes the ellipsis, the job/PO/Opp code never shrinks (#1641). */
.evo-cal-card .evo-cal-acctline { display: flex; gap: .25rem; }
.evo-cal-card .evo-cal-acct { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.evo-cal-card .evo-cal-ref { flex: none; }
.evo-cal-card .evo-cal-muted { color: var(--evo-muted); }
.evo-cal-foot { display: flex; align-items: center; gap: .3rem; margin-top: .25rem; }
.evo-cal-flags { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: .25rem; margin-left: auto; }
.evo-cal-flags .material-symbols-rounded { font-size: 17px; color: var(--evo-ink-2); }
.evo-cal-flags .dot { height: 11px; width: 11px; }
.evo-cal-staff { display: inline-flex; align-items: center; gap: .1rem; font-size: .75rem; font-weight: 600; color: var(--evo-ink-2); }
/* The project being looked at (?focus=, or the card opened) */
.evo-cal-card .card-body.border-2 { border-color: var(--main-highlight-color) !important; background: color-mix(in srgb, var(--main-highlight-color) 6%, #fff); }

.evo-cal-card.is-dragging { opacity: .45; }
.evo-cal-day.is-drop { outline: 2px dashed var(--main-highlight-color); outline-offset: 1px; background: color-mix(in srgb, var(--main-highlight-color) 4%, #fff); }

/* Week grid (styling.inc 7.6b candidate, 15-11-2026, timesheetHistory): people down the
   side, the seven days of a week across, a figure per cell, totals on the right and
   underneath. Under the 7.6 top card, inside .evo-gridwrap.evo-wgrid-wrap.
   <table class="table evo-grid evo-wgrid" data-sortable>
     thead: th.evo-wgrid-person, th.evo-wgrid-day (.is-today) > .evo-wgrid-dow + date,
            th.evo-wgrid-sum (Hours, Billable), th.evo-wgrid-appr
     tbody: tr.evo-gband (structured, 5.6) then tr.evo-fold-child rows:
            td.evo-wgrid-person > .evo-wgrid-who (badge + .evo-wgrid-name + .evo-wgrid-none)
            td.evo-wgrid-cell (.is-today .has-time .is-long) > button.evo-wgrid-hrs (opens the
              day; optional .evo-wgrid-dot = waiting on something) | button.evo-wgrid-add (+,
              shows on row hover / focus)
     tfoot: tr.evo-wgrid-total
   The person column sticks on the left when the grid scrolls sideways. White cells, no fills. */
.evo-wgrid-wrap { --evo-grid-max: max(360px, calc(100vh - 330px)); background: #fff; }
table.evo-wgrid { margin-bottom: 0; min-width: 860px; }
table.evo-wgrid th.evo-wgrid-day, table.evo-wgrid th.evo-wgrid-sum, table.evo-wgrid th.evo-wgrid-appr { text-align: right; }
table.evo-wgrid th.evo-wgrid-day { width: 6.5rem; min-width: 5.75rem; white-space: nowrap; line-height: 1.15; }
/* color inherits: the header is thead-dark (as Approvals) */
table.evo-wgrid .evo-wgrid-dow { display: block; font-weight: 700; color: inherit; }
table.evo-wgrid td { vertical-align: middle; }
table.evo-wgrid td.evo-wgrid-cell, table.evo-wgrid td.evo-wgrid-sum, table.evo-wgrid td.evo-wgrid-appr,
table.evo-wgrid tr.evo-gband td.th-sub, table.evo-wgrid tr.evo-gband td.th-sub-h, table.evo-wgrid tr.evo-gband td.th-sub-b, table.evo-wgrid tr.evo-gband td.th-sub-a,
table.evo-wgrid tfoot td { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
/* Today's column: a thin edge each side, never a fill */
table.evo-wgrid td.is-today, table.evo-wgrid th.is-today { box-shadow: inset 1px 0 0 color-mix(in srgb, var(--main-highlight-color) 35%, transparent), inset -1px 0 0 color-mix(in srgb, var(--main-highlight-color) 35%, transparent); }
table.evo-wgrid thead th.is-today { box-shadow: inset 1px 0 0 color-mix(in srgb, var(--main-highlight-color) 35%, transparent), inset -1px 0 0 color-mix(in srgb, var(--main-highlight-color) 35%, transparent), inset 0 -2px 0 var(--main-highlight-color); }
/* Day columns: a hairline down the left of each day, and of Hours, so the days still read as
   columns on an empty week (Shane 15-11-2026). Drawn as a 1px background, not a border: under
   border-collapse a border stays put while the sticky header and total row move, and box-shadow
   is already today's edge. Every day cell in every row (header, band, person, total) carries
   data-day or .evo-wgrid-day; "+ td/th" reaches the Hours cell after the last day. */
table.evo-wgrid th.evo-wgrid-day, table.evo-wgrid th.evo-wgrid-day + th,
table.evo-wgrid td[data-day], table.evo-wgrid td[data-day] + td {
	background-image: linear-gradient(var(--evo-line), var(--evo-line)); background-size: 1px 100%; background-repeat: no-repeat; background-position: left top;
}
table.evo-wgrid thead.thead-dark th.evo-wgrid-day, table.evo-wgrid thead.thead-dark th.evo-wgrid-day + th { background-image: linear-gradient(rgba(255,255,255,.22), rgba(255,255,255,.22)); }
/* Person column sticks left */
table.evo-wgrid .evo-wgrid-person { position: sticky; left: 0; z-index: 2; background: #fff; min-width: 13rem; box-shadow: inset -1px 0 0 var(--evo-line-soft); }
table.evo-wgrid thead th.evo-wgrid-person { z-index: 4; background: inherit; }
table.evo-wgrid thead.thead-dark th.evo-wgrid-person { background-color: var(--main-highlight-color-opaque); }
table.evo-wgrid tfoot td:first-child { left: 0; z-index: 4; }
.evo-wgrid-who { display: flex; align-items: center; gap: .4rem; min-width: 0; }
.evo-wgrid-name { font-weight: 600; color: var(--evo-ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.evo-wgrid-none { display: none; font-size: .72rem; color: var(--evo-muted); white-space: nowrap; }
table.evo-wgrid tr.is-notime .evo-wgrid-none { display: inline; }
table.evo-wgrid tr.is-notime .evo-wgrid-name { color: var(--evo-muted); font-weight: 400; }
/* A day's hours: reads as a link, is a button */
.evo-wgrid-hrs { border: 0; background: none; padding: 0 .1rem; color: var(--main-highlight-color); font: inherit; font-variant-numeric: tabular-nums; cursor: pointer; display: inline-flex; align-items: center; gap: .3rem; border-radius: 3px; }
.evo-wgrid-hrs:hover { text-decoration: underline; }
.evo-wgrid-hrs:focus-visible, .evo-wgrid-add:focus-visible { outline: 2px solid var(--main-highlight-color); outline-offset: 1px; }
.evo-wgrid-cell .evo-flag, .evo-wgrid-cell .badge { margin-left: .25rem; }
.evo-wgrid-dot { display: inline-block; width: .5rem; height: .5rem; border-radius: 50%; background: var(--bs-warning, #f0ad4e); flex: none; }
/* An empty day's +: quiet until the row is hovered or it has focus */
.evo-wgrid-add { border: 0; background: none; padding: 0; line-height: 1; color: var(--evo-faint, var(--evo-muted)); cursor: pointer; opacity: 0; border-radius: 3px; }
.evo-wgrid-add .material-symbols-rounded { font-size: 18px; vertical-align: middle; color: inherit; }
table.evo-wgrid tbody tr:hover .evo-wgrid-add, .evo-wgrid-add:focus-visible { opacity: .55; }
table.evo-wgrid tbody td.evo-wgrid-cell:hover .evo-wgrid-add { opacity: 1; color: var(--main-highlight-color); }
@media (hover: none) { .evo-wgrid-add { opacity: .45; } }
/* Band subtotals and the totals row */
table.evo-wgrid tr.evo-gband td.th-sub, table.evo-wgrid tr.evo-gband td.th-sub-h, table.evo-wgrid tr.evo-gband td.th-sub-b, table.evo-wgrid tr.evo-gband td.th-sub-a { color: var(--evo-muted); font-size: .8rem; }
table.evo-wgrid tr.evo-gband > td:first-child { position: sticky; left: 0; z-index: 2; background: var(--evo-steel); }
table.evo-wgrid tfoot tr.evo-wgrid-total td { font-weight: 700; color: var(--evo-ink-2); border-top: 2px solid var(--evo-line); }

/* Week grid with cards (styling.inc 7.6b amendment, 22-11-2026, assignment_schedule): when the
   user reads what is booked rather than an amount, a cell holds 7.6 cards (.evo-cal-card) in a
   stack, the band subtotal is the day's booked hours, and a booking that runs over several days
   is one card per day: .is-cont-l (carries on from the day before) / .is-cont-r (carries on into
   the next) square that side off and run it to the cell edge, so the run reads as one bar.
     td.evo-wgrid-cell.has-cards > .evo-wgrid-stack > .evo-cal-card … then button.evo-wgrid-add
   .evo-cal-card.is-asset: an asset picked up by the person (steel head, no type colour).
   A clash (two bookings overlapping in time) puts .evo-wgrid-dot in each card's head.
   table.evo-wgrid.evo-wgrid-cards: every day column the same width, so a day with cards doesn't
   widen and a run of days lines up (the table scrolls in its wrap below 960px). */
table.evo-wgrid.evo-wgrid-cards { table-layout: fixed; min-width: 960px; }
table.evo-wgrid.evo-wgrid-cards th.evo-wgrid-person { width: 14rem; }
table.evo-wgrid.evo-wgrid-cards th.evo-wgrid-sum { width: 4.5rem; }
table.evo-wgrid.evo-wgrid-cards .evo-wgrid-name { overflow: hidden; text-overflow: ellipsis; }
table.evo-wgrid td.evo-wgrid-cell.has-cards { vertical-align: top; text-align: left; white-space: normal; }
.evo-wgrid-stack { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.evo-wgrid-cell .evo-cal-card { font-size: .78rem; text-align: left; }
.evo-wgrid-cell .evo-cal-card > .card-header { padding: .2rem .4rem; font-size: .78rem; gap: .25rem; }
.evo-wgrid-cell .evo-cal-card > .card-body { padding: .2rem .4rem; }
.evo-wgrid-cell .evo-cal-card .evo-wgrid-dot { margin-right: .1rem; }
.evo-cal-card.is-cont-l { border-top-left-radius: 0; border-bottom-left-radius: 0; margin-left: -.3rem; border-left-style: dashed !important; }
.evo-cal-card.is-cont-r { border-top-right-radius: 0; border-bottom-right-radius: 0; margin-right: -.3rem; border-right-style: dashed !important; }
.evo-cal-card.is-asset > .card-header { background: var(--evo-steel); color: var(--evo-ink-2); font-weight: 500; }
.evo-wgrid-cell.has-cards .evo-wgrid-add { display: block; margin: 1px 0 -2px auto; }
table.evo-wgrid tr.is-free .evo-wgrid-name { color: var(--evo-ink-2); }

/* Day pills (7.3, the Schedule's assignment window): one per day of the week under an activity,
   to book the person on that day. .is-on = booked (times show), .is-off = booked now, unbooked
   on save, .is-outside = not in the activity's dates (disabled), .is-picked = the day the window
   was opened from. .evo-wday-other = other people booked that day.
     tr.evo-wdays-row > td > .evo-wdays (--evo-wdays: days shown) > .evo-wday > fieldset >
       button.evo-wday-day[aria-pressed] + .evo-wday-times (2 x select.form-select-sm) + .evo-wday-other */
.evo-mtable > tbody > tr.evo-wdays-row > td { padding-top: 0; background: #fff; cursor: default; }
.evo-wdays { display: grid; grid-template-columns: repeat(var(--evo-wdays, 7), minmax(0, 1fr)); gap: .4rem; }
.evo-wday { min-width: 0; border: 1px solid var(--evo-line); border-radius: .45rem; background: #fff; padding: .25rem .3rem .3rem; }
.evo-wday > fieldset { display: flex; flex-direction: column; gap: .2rem; min-width: 0; margin: 0; padding: 0; border: 0; }
.evo-wday-day { display: flex; align-items: center; gap: .25rem; width: 100%; padding: .1rem .2rem; border: 0; border-radius: .3rem; background: none; font-size: .8rem; font-weight: 600; color: var(--evo-ink-2); text-align: left; cursor: pointer; white-space: nowrap; }
.evo-wday-day .material-symbols-rounded { font-size: 17px; color: var(--evo-muted); }
.evo-wday-day:hover { background: var(--evo-steel); }
.evo-wday-day:focus-visible { outline: 2px solid var(--main-highlight-color); outline-offset: 1px; }
.evo-wday-times { display: flex; flex-direction: column; gap: .2rem; }
.evo-wday-times .form-select { font-size: .78rem; padding-top: .1rem; padding-bottom: .1rem; padding-left: .35rem; padding-right: 1.4rem; background-position: right .3rem center; }
.evo-wday:not(.is-on) .evo-wday-times { display: none; }
.evo-wday-other { font-size: .72rem; color: var(--evo-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.evo-wday.is-on { border-color: #a3cfbb; background: #f1f8f4; }
.evo-wday.is-on .evo-wday-day .material-symbols-rounded { color: #0f5132; }
.evo-wday.is-off { border-color: #f1aeb5; background: #fdf3f4; }
.evo-wday.is-off .evo-wday-day { text-decoration: line-through; }
.evo-wday.is-outside { border-style: dashed; background: transparent; opacity: .55; }
.evo-wday.is-outside .evo-wday-day { cursor: default; }
.evo-wday.is-outside .evo-wday-day:hover { background: none; }
.evo-wday.is-picked { outline: 2px solid var(--main-highlight-color); outline-offset: 1px; }
@media (max-width: 767.98px) { .evo-wdays { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* .evo-mform-fill (7.3): a modal form whose list takes the height left in the window instead of
   the 28rem cap, so the list scrolls and the strip and footer stay put (the Schedule's Assign
   window). The body turns into a flex column and the list shrinks to fit; bottom padding leaves
   room after the last row. Without :has() the whole body scrolls under the sticky footer. */
.modal-body:has(> .evo-mform-fill) { display: flex; flex-direction: column; }
.evo-mform-fill { display: flex; flex-direction: column; min-height: 0; }
.evo-mform-fill > * { flex: none; }
.evo-mform-fill > .evo-mtable-wrap { flex: 0 1 auto; min-height: 12rem; max-height: none; padding-bottom: .75rem; }

@media (max-width: 991.98px) { .evo-cal-week { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 575.98px) {
	.evo-cal-week { grid-template-columns: minmax(0, 1fr); }
	.evo-cal-tools { margin-left: 0; }
}

/* CALENDAR (month): Calendars & Schedules, candidate (styling.inc 7.6 amendment, 18-11-2026,
   whsFormSubmission). The week's day columns in rows of weeks: Monday to Sunday (or Monday to
   Friday on a 5-day company), from the Monday on or before the 1st to the Sunday on or after
   the last day. Markup: .evo-cal-week.evo-cal-month > section.evo-cal-day(.is-today)(.is-out).
   A day's date is a button that opens its week. Heads do not stick (many short rows), an
   empty day is short, days outside the month are muted (white, dashed edge: 1.3a). List view: the top card (.evo-cal-top.evo-cal-list,
   a 3.1a small register) holds the period as one table under its strip; .evo-cal-swatch is the form/type colour before a name. */
.evo-cal-month { align-items: start; }
.evo-cal-month .evo-cal-day { align-self: stretch; }
.evo-cal-month .evo-cal-head { position: static; padding: .35rem .5rem; }
.evo-cal-month .evo-cal-body { min-height: 3rem; padding: .35rem; }
.evo-cal-month .evo-cal-card { font-size: .78rem; }
.evo-cal-month .evo-cal-card > .card-body { padding: .3rem .45rem; }
.evo-cal-day.is-out { box-shadow: none; border-style: dashed; border-top-width: 1px; }
.evo-cal-day.is-out .evo-cal-body { opacity: .7; }
.evo-cal-day.is-out .evo-cal-dom, .evo-cal-day.is-out .evo-cal-dow { color: var(--evo-faint, var(--evo-muted)); }
div.evo-cal-date { cursor: default; }
.evo-cal-list tbody tr[data-whs-sub] { cursor: pointer; }
.evo-cal-list tbody tr[data-whs-sub]:focus-visible { outline: 2px solid var(--main-highlight-color); outline-offset: -2px; }
.evo-cal-swatch { display: inline-block; width: .7rem; height: .7rem; margin-right: .4rem; border-radius: 3px; vertical-align: -1px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }

/* CALENDAR (my calendar): 7.6 / 7.6c second adopter, 18-11-2026 (mycalendar,
   audits/MYCALENDAR_MODERNIZATION_PLAN_2026-11-18.md). Additions only; nothing above changes.
   - Kind colours: a fixed key, not user-picked, so the ink is set here with the fill
     (.evo-cal-k-<kind> on a card head, a legend chip or a List swatch). The state classes
     win over the kind: cancelled > done > overdue > given to others (one class per head).
   - Legend Types chips that are toggles: button.evo-cal-type[aria-pressed]; off = faded, struck.
   - Month "+N more": cards past the person's cap carry .is-extra and hide until the day is
     .is-expanded by its .evo-cal-more button.
   - Details off: .evo-cal-week.is-compact (and the List) drops the card bodies.
   - .evo-cal-tick: the round "mark done" button in an open task's head.
   - .evo-cal-note: what a drag just did, with Undo; white with an edge on the canvas (1.3a). */
:root {
	--evo-cal-task: #ffe08a; --evo-cal-task-ink: #3d3000;
	--evo-cal-call: #b0e0e6; --evo-cal-call-ink: #0b3b40;
	--evo-cal-meeting: #ffddcc; --evo-cal-meeting-ink: #5a2a10;
	--evo-cal-reminder: #664b6b; --evo-cal-reminder-ink: #fff;
	--evo-cal-overdue: #c62828; --evo-cal-overdue-ink: #fff;
	--evo-cal-given: #2f5d9e; --evo-cal-given-ink: #fff;
	--evo-cal-done: #d1e7dd; --evo-cal-done-ink: #0f5132;
}
.evo-cal-k-task { background-color: var(--evo-cal-task) !important; color: var(--evo-cal-task-ink) !important; }
.evo-cal-k-call { background-color: var(--evo-cal-call) !important; color: var(--evo-cal-call-ink) !important; }
.evo-cal-k-meeting { background-color: var(--evo-cal-meeting) !important; color: var(--evo-cal-meeting-ink) !important; }
.evo-cal-k-reminder { background-color: var(--evo-cal-reminder) !important; color: var(--evo-cal-reminder-ink) !important; }
.evo-cal-k-overdue { background-color: var(--evo-cal-overdue) !important; color: var(--evo-cal-overdue-ink) !important; }
.evo-cal-k-given { background-color: var(--evo-cal-given) !important; color: var(--evo-cal-given-ink) !important; }
.evo-cal-k-done { background-color: var(--evo-cal-done) !important; color: var(--evo-cal-done-ink) !important; }
.evo-cal-k-cancelled { background-color: var(--evo-steel) !important; color: var(--evo-muted) !important; }
.evo-cal-card > .card-header .material-symbols-rounded { flex: none; font-size: 16px; color: inherit; }
.evo-cal-card.is-cancelled .evo-cal-title { text-decoration: line-through; }
.evo-cal-card.is-done > .card-body, .evo-cal-card.is-cancelled > .card-body { opacity: .75; }
.evo-cal-card[draggable="true"] { cursor: grab; }
.evo-cal-tick { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; padding: 0; border: 1px solid currentColor; border-radius: 50%; background: rgba(255, 255, 255, .55); color: inherit; opacity: .7; cursor: pointer; }
.evo-cal-tick .material-symbols-rounded { font-size: 14px !important; }
.evo-cal-tick:hover, .evo-cal-tick:focus-visible { opacity: 1; background: #fff; color: #0f5132; }
.evo-cal-tick:focus-visible { outline: 2px solid var(--main-highlight-color); outline-offset: 1px; }
/* Done flag (23-11-2026): a solid green disc with a white tick, so a finished item stands out
   on its pale green head (the open task's .evo-cal-tick is the outlined version of the same mark). */
.evo-cal-card > .card-header [data-flag="done"], .evo-cal-legend [data-flag="done"] { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%; background: #198754; color: #fff !important; font-size: 14px !important; font-variation-settings: 'wght' 700; box-shadow: 0 0 0 2px #fff, 0 1px 3px rgba(15, 81, 50, .45); }
.evo-cal-legend [data-flag="done"] { margin-right: .3rem; vertical-align: -3px; }
.evo-cal-legend button.evo-cal-type { cursor: pointer; font-size: inherit; }
.evo-cal-legend button.evo-cal-type:focus-visible { outline: 2px solid var(--main-highlight-color); outline-offset: 1px; }
.evo-cal-legend button.evo-cal-type[aria-pressed="false"] { opacity: .45; text-decoration: line-through; }
.evo-cal-legend .evo-cal-people { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .6rem; margin: 0; padding: 0; list-style: none; }
.evo-cal-legend .evo-cal-people > li { display: inline-flex; align-items: center; gap: .25rem; }
/* A staff badge set to white (or near it) vanished on the white card; a hairline keeps every colour visible. */
.evo-cal-people .abbrev_name, .evo-cal-staff .abbrev_name { box-shadow: 0 0 0 1px var(--evo-line); }
.evo-cal-card.is-extra { display: none; }
.evo-cal-day.is-expanded .evo-cal-card.is-extra { display: block; }
.evo-cal-more { display: block; width: 100%; padding: .1rem .3rem; border: 0; border-radius: 4px; background: none; font-size: .78rem; font-weight: 600; color: var(--main-highlight-color); text-align: left; cursor: pointer; }
.evo-cal-more:hover { background: var(--evo-steel); }
.evo-cal-more:focus-visible { outline: 2px solid var(--main-highlight-color); outline-offset: 1px; }
.evo-cal-week.is-compact .evo-cal-card > .card-body { display: none; }
.evo-cal-note { display: flex; align-items: center; gap: .5rem; margin: 0 0 8px; padding: .35rem .75rem; background: #fff; border: 1px solid var(--evo-line); border-left: 3px solid var(--main-highlight-color); border-radius: .5rem; font-size: .85rem; color: var(--evo-ink-2); }
.evo-cal-note[hidden] { display: none; }
.evo-cal-note.is-error { border-left-color: #dc3545; }
.evo-cal-note > .material-symbols-rounded { font-size: 1.2rem; }
.evo-cal-list tbody tr[data-cal-item] { cursor: pointer; }
.evo-cal-list tbody tr[data-cal-item]:focus-visible { outline: 2px solid var(--main-highlight-color); outline-offset: -2px; }

/* ==========================================================================
   Splash / sign-in (candidate, 02-11-2026: login + login2, styling.inc §9)
   The photo pages: sign in, password recovery, company select. The photo is
   set on #main_site_container by evoSplash.init() (assets/js/evoSplash.js),
   which also adds body.evo-splash-page and sets --evo-splash-top to the
   header's height. Everything that sits on the photo is frosted glass, so
   any of the backgrounds in assets/images/backgrounds reads the same.
   ========================================================================== */
:root {
	--evo-splash-top: 58px;
	--evo-splash-glass: rgba(255, 255, 255, .78);
	--evo-splash-glass-edge: rgba(255, 255, 255, .55);
	--evo-splash-shadow: 0 18px 50px rgba(16, 24, 40, .22), 0 2px 6px rgba(16, 24, 40, .08);
	--evo-splash-ink: #1f2933;
	--evo-splash-muted: #5b6672;
}
/* The app's header tools need a session; on the splash they do nothing */
body.evo-splash-page .site-header-nav { visibility: hidden; }
body.evo-splash-page #main_site_container { background-position: center; background-attachment: fixed; }

.evo-splash-glass {
	background: var(--evo-splash-glass);
	-webkit-backdrop-filter: blur(18px) saturate(140%);
	        backdrop-filter: blur(18px) saturate(140%);
	border: 1px solid var(--evo-splash-glass-edge);
	box-shadow: var(--evo-splash-shadow);
	color: var(--evo-splash-ink);
}

/* Clock: big, light, top right, readable on any photo */
.evo-splash-clock { text-align: right; color: #fff; text-shadow: 0 2px 18px rgba(0, 0, 0, .45), 0 1px 2px rgba(0, 0, 0, .35); padding: 1.25rem 1.75rem 0 0; user-select: none; }
.evo-splash-time { font-size: clamp(3.4rem, 6.5vw, 6.2rem); font-weight: 200; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.evo-splash-ampm { font-size: .3em; font-weight: 500; letter-spacing: .06em; margin-left: .35em; vertical-align: .9em; }
.evo-splash-date { font-size: 1.35rem; font-weight: 400; margin-top: .35rem; opacity: .95; }
.evo-splash-clock.is-compact { padding-top: .85rem; }
.evo-splash-clock.is-compact .evo-splash-time { font-size: clamp(2.6rem, 4.5vw, 4rem); }
.evo-splash-clock.is-compact .evo-splash-date { font-size: 1.1rem; }

/* Stage 1: the left glass panel, full height under the header */
.evo-splash-panel {
	position: fixed; z-index: 30; top: var(--evo-splash-top); left: 0; bottom: 0;
	width: clamp(380px, 31vw, 470px);
	display: flex; flex-direction: column;
	padding: 2.25rem 2.75rem 1.5rem;
	overflow-y: auto; text-align: left;
	border-width: 0 1px 0 0; border-radius: 0;
}
.evo-splash-panel-body { margin: auto 0; padding: 1rem 0; }
.evo-splash-eyebrow { font-size: .95rem; font-weight: 600; color: var(--evo-splash-muted); margin-bottom: .2rem; }
.evo-splash-title { font-size: 2rem; font-weight: 600; letter-spacing: -.01em; margin: 0 0 .35rem; color: var(--evo-splash-ink); }
.evo-splash-lede { color: var(--evo-splash-muted); margin-bottom: 1.6rem; }
.evo-splash-panel .form-label { font-weight: 600; margin-bottom: .3rem; color: var(--evo-splash-ink); }
.evo-splash-field { margin-bottom: 1.05rem; }
.evo-splash-field .input-group-text { background: #fff; color: var(--evo-muted); border-right: 0; }
.evo-splash-field .input-group-text .material-symbols-rounded { font-size: 20px; }
.evo-splash-field .input-group > .form-control { border-left: 0; padding-left: .25rem; }
.evo-splash-field .input-group > .form-control:focus { box-shadow: none; }
.evo-splash-field .input-group:focus-within { border-radius: .5rem; box-shadow: 0 0 0 .2rem rgba(19,41,75, .2); }
.evo-splash-field .input-group:focus-within > * { border-color: #86b7fe; }
.evo-splash-reveal { background: #fff; border-color: var(--evo-mist); border-left: 0; color: var(--evo-muted); padding: 0 .8rem; display: inline-flex; align-items: center; }
.evo-splash-reveal:hover, .evo-splash-reveal:focus-visible { color: var(--evo-splash-ink); background: #fff; }
.evo-splash-reveal .material-symbols-rounded { font-size: 20px; }
.evo-splash-caps { display: flex; align-items: center; gap: .3rem; margin-top: .4rem; font-size: .85rem; font-weight: 600; color: #8a5a00; }
.evo-splash-caps .material-symbols-rounded { font-size: 17px; }
.evo-splash-caps[hidden] { display: none; }
.evo-splash-submit { width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: .45rem; padding-top: .7rem; padding-bottom: .7rem; font-weight: 600; margin-top: .4rem; }
.evo-splash-submit .material-symbols-rounded { font-size: 20px; transition: transform .15s ease; }
.evo-splash-submit:hover .material-symbols-rounded { transform: translateX(3px); }
.evo-splash-submit.is-busy { pointer-events: none; opacity: .85; }
.evo-splash-submit .spinner-border { width: 1.05rem; height: 1.05rem; border-width: .15em; }
.evo-splash-links { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1.15rem; }
.evo-splash-links a, .evo-splash-foot a { color: var(--evo-splash-ink); font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: .3rem; }
.evo-splash-links a:hover, .evo-splash-foot a:hover { text-decoration: underline; }
.evo-splash-links .material-symbols-rounded { font-size: 18px; }
.evo-splash-error { display: flex; gap: .55rem; align-items: flex-start; padding: .7rem .85rem; margin-bottom: 1.2rem; border-radius: .5rem; background: #fdecee; border: 1px solid #f5c2c7; color: #842029; font-weight: 500; }
.evo-splash-error .material-symbols-rounded { font-size: 20px; flex: none; }
.evo-splash-note-box { padding: .75rem .9rem; margin-bottom: 1.2rem; border-radius: .5rem; background: rgba(255, 255, 255, .7); border: 1px solid var(--evo-line); color: var(--evo-splash-muted); font-size: .9rem; }
.evo-splash-foot { margin-top: auto; padding-top: 1rem; border-top: 1px solid rgba(0, 0, 0, .07); font-size: .85rem; color: var(--evo-splash-muted); display: flex; justify-content: space-between; gap: .5rem; flex-wrap: wrap; }
.evo-splash-foot .material-symbols-rounded { font-size: 16px; }
/* The clock sits right of the panel on stage 1 */
.evo-splash-panel ~ .evo-splash-clock { margin-left: clamp(380px, 31vw, 470px); }

/* Stage 2: the company select card */
.evo-splash-stage { max-width: 1240px; margin: 0 auto; padding: 0 1rem 1.5rem; text-align: left; }
.evo-splash-card {
	border-radius: 18px; margin-top: 1rem; padding: 0;
	display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	height: clamp(430px, calc(100vh - var(--evo-splash-top) - 170px), 820px);
	overflow: hidden;
}
.evo-splash-col { display: flex; flex-direction: column; min-height: 0; padding: 1.6rem 1.75rem 1.25rem; }
.evo-splash-col + .evo-splash-col { border-left: 1px solid rgba(0, 0, 0, .07); background: rgba(255, 255, 255, .38); }
.evo-splash-colhead { display: flex; align-items: flex-start; gap: .75rem; margin-bottom: .9rem; }
.evo-splash-colhead > :first-child { flex: 1 1 auto; min-width: 0; }
.evo-splash-colhead h1, .evo-splash-colhead h2 { margin: 0; font-weight: 600; letter-spacing: -.01em; color: var(--evo-splash-ink); }
.evo-splash-colhead h1 { font-size: 1.75rem; }
.evo-splash-colhead h2 { font-size: 1.35rem; display: flex; align-items: center; gap: .45rem; }
.evo-splash-colhead h2 .material-symbols-rounded { font-size: 24px; color: var(--evo-splash-muted); }
.evo-splash-sub { color: var(--evo-splash-muted); margin-top: .2rem; }
.evo-splash-who { font-size: .85rem; color: var(--evo-splash-muted); margin-top: .35rem; }
.evo-splash-who a { color: var(--evo-splash-ink); font-weight: 600; }
.evo-splash-search { margin-bottom: .75rem; }
.evo-splash-search .input-group-text { background: #fff; }
.evo-splash-search .input-group-text .material-symbols-rounded { font-size: 19px; color: var(--evo-muted); }

/* Scroll areas fade out at the bottom until scrolled to the end */
.evo-splash-scroll {
	flex: 1 1 auto; min-height: 0; overflow-y: auto; margin: 0 -.5rem; padding: 0 .5rem .5rem;
	-webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 60px), transparent 100%);
	        mask-image: linear-gradient(to bottom, #000 calc(100% - 60px), transparent 100%);
	scrollbar-width: thin; scrollbar-color: rgba(0, 0, 0, .2) transparent;
}
.evo-splash-scroll.at-bottom { -webkit-mask-image: none; mask-image: none; }

.evo-splash-colist { display: flex; flex-direction: column; gap: .45rem; }
.evo-splash-co {
	display: flex; align-items: center; gap: .85rem; width: 100%; text-align: left;
	padding: .65rem .8rem; border-radius: .75rem;
	background: rgba(255, 255, 255, .82); border: 1px solid rgba(0, 0, 0, .07); color: var(--evo-splash-ink);
	transition: background .12s ease, box-shadow .12s ease, transform .12s ease, border-color .12s ease;
}
.evo-splash-co:hover, .evo-splash-co:focus-visible {
	background: #fff; border-color: rgba(19,41,75, .45);
	box-shadow: 0 4px 14px rgba(16, 24, 40, .12); transform: translateY(-1px); outline: none;
}
.evo-splash-co:focus-visible { box-shadow: 0 0 0 .2rem rgba(19,41,75, .25), 0 4px 14px rgba(16, 24, 40, .12); }
.evo-splash-co.is-busy { pointer-events: none; }
.evo-splash-mono {
	flex: none; width: 2.6rem; height: 2.6rem; border-radius: .65rem;
	display: inline-flex; align-items: center; justify-content: center;
	font-weight: 700; font-size: 1rem; letter-spacing: .02em; color: #fff;
	background: hsl(var(--evo-mono-h, 210), 42%, 40%);
	box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .12);
}
.evo-splash-co-main { flex: 1 1 auto; min-width: 0; }
.evo-splash-co-name { display: block; font-size: 1.12rem; font-weight: 600; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.evo-splash-co-meta { display: flex; align-items: center; flex-wrap: wrap; gap: .25rem; font-size: .82rem; color: var(--evo-splash-muted); margin-top: .1rem; min-height: 1.1rem; }
.evo-splash-co-meta .flag { margin-left: 0; }
.evo-splash-co-code { font-family: var(--bs-font-monospace); font-size: .8rem; letter-spacing: .03em; }
.evo-splash-co-go { flex: none; color: var(--evo-faint); transition: color .12s ease, transform .12s ease; }
.evo-splash-co:hover .evo-splash-co-go, .evo-splash-co:focus-visible .evo-splash-co-go { color: var(--evo-navy); transform: translateX(3px); }
.evo-splash-co .spinner-border { width: 1.2rem; height: 1.2rem; border-width: .15em; color: var(--evo-navy); }
.evo-splash-empty { padding: 1.25rem .5rem; text-align: center; color: var(--evo-splash-muted); }
.evo-splash-empty[hidden] { display: none; }

/* What's new feed */
.evo-splash-newcount { white-space: nowrap; }
.evo-splash-feed { display: flex; flex-direction: column; }
.evo-splash-note { border-bottom: 1px solid rgba(0, 0, 0, .07); }
.evo-splash-note:last-child { border-bottom: 0; }
.evo-splash-note-head {
	display: flex; align-items: baseline; gap: .75rem; width: 100%; text-align: left;
	background: none; border: 0; padding: .7rem .25rem; color: var(--evo-splash-ink); border-radius: .4rem;
}
.evo-splash-note-head:hover { background: rgba(255, 255, 255, .55); }
.evo-splash-note-head:focus-visible { outline: 2px solid rgba(19,41,75, .5); outline-offset: -2px; }
.evo-splash-note-date { flex: none; width: 3.9rem; font-size: .8rem; font-weight: 600; color: var(--evo-splash-muted); font-variant-numeric: tabular-nums; }
.evo-splash-note-title { flex: 1 1 auto; min-width: 0; font-weight: 600; line-height: 1.35; }
.evo-splash-note-title .flag { vertical-align: 1px; }
.evo-splash-note-chev { flex: none; align-self: center; color: #868e96; transition: transform .15s ease; }
.evo-splash-note-head[aria-expanded="true"] .evo-splash-note-chev { transform: rotate(180deg); }
.evo-splash-note-body { padding: 0 .25rem .9rem 4.9rem; color: #343a40; line-height: 1.5; overflow-wrap: anywhere; }
.evo-splash-note-body[hidden] { display: none; }
.evo-splash-note-body img { max-width: 100%; height: auto; border-radius: .4rem; border: 1px solid var(--evo-line); margin: .35rem 0; }
.evo-splash-note-body p:last-child, .evo-splash-note-body ul:last-child { margin-bottom: 0; }
.evo-splash-note-doc { margin-top: .6rem; }

/* Coming soon: one card, prev / next */
.evo-splash-soon { flex: none; display: flex; align-items: center; gap: .6rem; margin-top: .85rem; padding: .6rem .7rem; border-radius: .75rem; background: #fff; border: 1px solid rgba(0, 0, 0, .08); box-shadow: 0 2px 8px rgba(16, 24, 40, .08); }
.evo-splash-soon-icon { flex: none; font-size: 30px; color: var(--main-highlight-color); }
.evo-splash-soon-body { flex: 1 1 auto; min-width: 0; }
.evo-splash-soon-type { font-size: .78rem; font-weight: 600; color: var(--evo-splash-muted); }
.evo-splash-soon-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.evo-splash-soon-count { flex: none; font-size: .8rem; color: var(--evo-splash-muted); font-variant-numeric: tabular-nums; }
.evo-splash-soon .btn { padding: .15rem .3rem; line-height: 1; }

/* Stage-2 "create a company" block for support (login2) */
.evo-splash-page .btn-sm .material-symbols-rounded { font-size: 18px; }
.evo-splash-create { margin-top: .75rem; padding-top: .75rem; border-top: 1px solid rgba(0, 0, 0, .07); }

@media (max-width: 991.98px) {
	.evo-splash-card { grid-template-columns: minmax(0, 1fr); height: auto; }
	.evo-splash-card .evo-splash-scroll { max-height: 55vh; }
	.evo-splash-col + .evo-splash-col { border-left: 0; border-top: 1px solid rgba(0, 0, 0, .07); }
}
@media (max-width: 767.98px) {
	.evo-splash-panel { position: static; width: auto; min-height: calc(100vh - var(--evo-splash-top)); border-width: 0; padding: 1.5rem 1.25rem; }
	.evo-splash-panel ~ .evo-splash-clock { display: none; }
	.evo-splash-clock { padding-right: .5rem; }
	.evo-splash-note-body { padding-left: .25rem; }
	.evo-splash-links { flex-direction: column; gap: .6rem; }
	body.evo-splash-page .site-header-nav { display: none; }	/* hidden tools would still take a second header row */
	.evo-splash-stage { padding: 0 .5rem 1rem; }
	.evo-splash-col { padding: 1.1rem 1rem 1rem; }
	.evo-splash-colhead { flex-wrap: wrap; }
	.evo-splash-colhead h1 { font-size: 1.5rem; }
}
@media (prefers-reduced-motion: reduce) {
	.evo-splash-co, .evo-splash-co-go, .evo-splash-submit .material-symbols-rounded, .evo-splash-note-chev { transition: none; }
}

/* Plan lock chip (02-11-2026): marks a feature as part of a plan the company is not on, where the
   control would be (Full CRM off on the contact page). Never a button; the why goes in a title=.
   <span class="evo-plan-lock"><i class="material-symbols-rounded" aria-hidden="true">lock</i> Included in Full CRM</span> */
.evo-plan-lock { display: inline-flex; align-items: center; gap: .2rem; padding: .05rem .45rem; border: 1px dashed var(--evo-mist); border-radius: 1rem;
	font-size: .72rem; font-weight: 400; color: var(--evo-muted); text-transform: none; letter-spacing: normal; white-space: nowrap; cursor: help; }
.evo-plan-lock .material-symbols-rounded, .evo-panel > h6 .evo-plan-lock .material-symbols-rounded { font-size: .9rem; }

/* PLANNED ACTIVITIES (list + Gantt), 02-11-2026: the shared tab, app/templates/activity/planned-activities.inc
   + assets/js/plannedActivities.js. Toolbar: List | Gantt, then the List filter or the Gantt's fortnight
   nav, then Calendar + Add activity on the right. The Gantt is 14 day columns from Monday this week; a
   bar spans grid columns --evo-gantt-from / --evo-gantt-to in its activity type's colour (--evo-gantt-bar). */
.evo-pacts { --evo-gantt-label: 15rem; --evo-gantt-col: 3.4rem; }
.evo-pacts [hidden] { display: none !important; }	/* Bootstrap d-* would beat [hidden] */
.evo-pacts-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-bottom: .6rem; }
.evo-pacts-btn { display: inline-flex; align-items: center; gap: .3rem; }
.evo-pacts-btn .material-symbols-rounded { font-size: 1.385rem; line-height: 1; }
.evo-pacts-nav { display: inline-flex; align-items: center; gap: .35rem; }
.evo-pacts-range { margin-left: .35rem; font-weight: 600; white-space: nowrap; }
.evo-pacts-end { display: inline-flex; gap: .35rem; margin-left: auto; }
.evo-pacts-n { margin-left: .15rem; padding: 0 .4rem; border-radius: 1rem; background: rgba(0, 0, 0, .07); font-size: .8em; font-weight: 600; }
.btn-check:checked + .evo-pacts-btn .evo-pacts-n { background: rgba(255, 255, 255, .25); }
.evo-pacts-swatch { display: inline-block; width: .7rem; height: .7rem; margin-right: .4rem; border-radius: 2px; vertical-align: -.05rem;
	background: var(--evo-pacts-type, var(--evo-faint)); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
.evo-pacts-table td { vertical-align: middle; }
.evo-pacts .evo-empty { padding: 1.25rem 1rem; border: 1px dashed var(--evo-card-border, var(--evo-line-soft)); border-radius: .375rem; text-align: center; }

.evo-gantt-wrap { max-height: calc(100vh - 300px); min-height: 12rem; overflow: auto; border: 1px solid var(--evo-card-border, var(--evo-line-soft)); border-radius: .375rem; background: #fff; }
.evo-gantt { min-width: calc(var(--evo-gantt-label) + 14 * var(--evo-gantt-col)); }
.evo-gantt-head, .evo-gantt-row { display: grid; grid-template-columns: var(--evo-gantt-label) minmax(0, 1fr); }
.evo-gantt-head { grid-template-columns: var(--evo-gantt-label) repeat(14, minmax(0, 1fr)); position: sticky; top: 0; z-index: 3;
	background: var(--evo-wash); border-bottom: 1px solid var(--evo-line); font-size: .85rem; }
.evo-gantt-corner { position: sticky; left: 0; z-index: 1; padding: .4rem .6rem; background: var(--evo-wash); border-right: 1px solid var(--evo-line); font-weight: 600; color: var(--evo-ink-2); }
.evo-gantt-day { padding: .4rem .2rem; text-align: center; white-space: nowrap; border-left: 1px solid #edf0f3; color: #343a40; }
.evo-gantt-day.is-weekend { background: #eef1f4; color: var(--evo-muted); }
.evo-gantt-day.is-today { box-shadow: inset 0 -3px 0 var(--main-highlight-color, var(--evo-navy)); font-weight: 700; }
.evo-gantt-wd { color: var(--evo-muted); font-weight: 400; }
.evo-gantt-mon { font-weight: 600; color: var(--evo-ink-2); }
.evo-gantt-body { position: relative; }
.evo-gantt-row { border-bottom: 1px solid var(--evo-steel); }
.evo-gantt-row:hover { background: var(--evo-wash); }
.evo-gantt-label { position: sticky; left: 0; z-index: 2; display: flex; flex-direction: column; justify-content: center; min-width: 0;
	padding: .3rem .6rem; background: #fff; border-right: 1px solid var(--evo-line); cursor: pointer; }
.evo-gantt-row:hover .evo-gantt-label { background: var(--evo-wash); }
.evo-gantt-label:focus-visible { outline: 2px solid var(--main-highlight-color, var(--evo-navy)); outline-offset: -2px; }
.evo-gantt-title, .evo-gantt-sub { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.evo-gantt-title { font-weight: 600; }
.evo-gantt-sub { color: var(--evo-muted); }
/* Each track is its own 14-column grid; Sat + Sun are columns 6-7 and 13-14 (the window starts on a Monday). */
.evo-gantt-track { display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); align-items: center; padding: .3rem 0; min-height: 2.6rem;
	background:
		linear-gradient(90deg, transparent 35.714%, rgba(108, 117, 125, .07) 35.714%, rgba(108, 117, 125, .07) 50%, transparent 50%,
			transparent 85.714%, rgba(108, 117, 125, .07) 85.714%),
		repeating-linear-gradient(90deg, #edf0f3 0 1px, transparent 1px calc(100% / 14)); }
.evo-gantt-bar { grid-column: var(--evo-gantt-from) / var(--evo-gantt-to); grid-row: 1; display: flex; align-items: center; gap: .25rem; min-width: 0;
	margin: 0 3px; padding: .2rem .45rem; border: 0; border-radius: .3rem; text-align: left; font-size: .85rem; line-height: 1.3;
	background: var(--evo-gantt-bar, #6c8ebf); color: var(--evo-gantt-ink, #fff); box-shadow: 0 1px 2px rgba(16, 24, 40, .15); cursor: pointer; }
.evo-gantt-bar:hover { filter: brightness(.94); }
.evo-gantt-bar:focus-visible { outline: 2px solid var(--evo-ink); outline-offset: 1px; }
.evo-gantt-bar.is-past { opacity: .5; }
.evo-gantt-bar.is-now { box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--evo-gantt-bar, #6c8ebf); }
.evo-gantt-bar.is-cut-start { margin-left: 0; border-top-left-radius: 0; border-bottom-left-radius: 0; }
.evo-gantt-bar.is-cut-end { margin-right: 0; border-top-right-radius: 0; border-bottom-right-radius: 0; }
/* Pencilled (an opportunity's activity with no project yet, 02-11-2026): a pale fill with a dashed outline in
   the type colour on the Gantt, a hatched band under the calendar card head, a dashed edge in the planner;
   .evo-pencil-chip names it. */
.evo-gantt-bar.is-pencilled { background: color-mix(in srgb, var(--evo-gantt-bar, #6c8ebf) 18%, #fff); color: var(--evo-ink);
	border: 1.5px dashed var(--evo-gantt-bar, #6c8ebf); box-shadow: none; }
.evo-pencil-chip { display: inline-block; padding: 0 .4rem; border: 1px dashed var(--evo-subtle); border-radius: 999px; color: #4b5059;
	background: #fff; font-size: .72rem; font-weight: 600; line-height: 1.35; white-space: nowrap; vertical-align: .05rem; }
.evo-cal-card.is-pencilled { border: 1.5px dashed var(--evo-subtle) !important; box-shadow: none; background: #fbfbfc; }
/* The head stays the solid type colour with its computed text colour (as readable as a confirmed card);
   a hatched band in the type colour under it marks it pencilled (stripes behind the text were unreadable). */
.evo-cal-card.is-pencilled > .card-header { border-bottom: 6px solid transparent;
	border-image: repeating-linear-gradient(135deg, var(--evo-cal-c, var(--evo-subtle)) 0 5px, #fff 5px 10px) 6; }
.evo-aplan-list li.is-pencilled > a { border-left: 3px dashed var(--evo-subtle); }
.evo-aplan-pencil { display: block; font-size: .68rem; color: #4b5059; line-height: 1.1; }
.evo-gantt-text { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.evo-gantt-cut { flex: none; opacity: .8; }
.evo-gantt-flag { flex: none; font-size: 1rem; color: #fff; background: #dc3545; border-radius: 50%; padding: 1px; }
/* Today: a line down the middle of today's column. */
.evo-gantt-now { position: absolute; top: 0; bottom: 0; z-index: 1; width: 2px; pointer-events: none; background: var(--main-highlight-color, var(--evo-navy)); opacity: .55;
	left: calc(var(--evo-gantt-label) + (100% - var(--evo-gantt-label)) * (var(--evo-gantt-at) + .5) / 14); }
.evo-gantt-empty { padding: 2rem 1rem; text-align: center; color: var(--evo-muted); }
.evo-gantt-note { margin-top: .4rem; min-height: 1.2em; }

/* ==========================================================================
   DASHBOARD WIDGETS + CUES (03-11-2026, candidate styling.inc §2.1). First user: the home dashboard
   (dashboardHome.inc, assets/js/modules/dashboard.js). Any dashboard or launcher may use them.
   .evo-widget  a bounded card: head (icon, title, controls) / sum (headline figure, note, bucket chips)
                / body (top rows or a chart, fixed height, never scrolls) / foot (View all, Open).
                .tone-danger|warning|info puts a 3px accent on the top edge: the worst state inside.
   .evo-cue     a "needs attention" button: the count and what it counts, accent on the left edge.
   Tones follow §1.4a: danger red, warning amber, info blue; text stays in text colours.
   ========================================================================== */
.evo-widget, .evo-cue { --evo-tone: transparent; }
.evo-widget.tone-danger, .evo-cue.tone-danger, .dh-row.tone-danger { --evo-tone: #d63c3c; }
.evo-widget.tone-warning, .evo-cue.tone-warning, .dh-row.tone-warning { --evo-tone: #e09b00; }
.evo-widget.tone-info, .evo-cue.tone-info, .dh-row.tone-info { --evo-tone: #2a78d6; }

.evo-widget { position: relative; display: flex; flex-direction: column; min-width: 0; background: #fff;
	border: 1px solid var(--evo-card-border, var(--evo-line-soft)); border-radius: 12px; box-shadow: var(--evo-card-shadow); overflow: hidden; }
.evo-widget::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--evo-tone); }
.evo-widget-head { display: flex; align-items: center; gap: .5rem; flex: none; padding: .55rem .6rem .35rem .75rem; min-height: 42px; }
.evo-widget-title { flex: 1 1 auto; min-width: 0; margin: 0; font-size: .95rem; font-weight: 600; color: var(--evo-ink); letter-spacing: 0;
	text-transform: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.evo-widget-sum { flex: none; padding: 0 .75rem .45rem; }
.evo-widget-body { flex: 1 1 auto; min-height: 0; overflow: hidden; padding: 0 .35rem; }
.evo-widget-foot { flex: none; display: flex; align-items: center; gap: .5rem; min-height: 34px; padding: 0 .75rem; border-top: 1px solid var(--evo-steel); }
.evo-widget-foot:empty { display: none; }

.evo-cue { display: inline-flex; align-items: baseline; gap: .4rem; padding: .3rem .7rem .3rem .6rem; background: #fff; color: var(--evo-ink);
	border: 1px solid var(--evo-card-border, var(--evo-line-soft)); border-left: 4px solid var(--evo-tone); border-radius: 8px;
	box-shadow: var(--evo-card-shadow); font-size: .85rem; line-height: 1.25; white-space: nowrap; cursor: pointer; }
.evo-cue:hover { box-shadow: 0 .25rem .75rem rgba(16, 24, 40, .12); }
.evo-cue:focus-visible { outline: 2px solid var(--bs-primary); outline-offset: 1px; }
.evo-cue-n { font-weight: 700; font-size: 1rem; font-variant-numeric: tabular-nums; }
.evo-cue-l { color: #4b5059; }

/* ==========================================================================
   DERIVED STAGE TRACK (styling.inc §6.5a, ruled 05-11-2026; jobedit the exemplar).
   The §6.5 chevron geometry (.evo-track) with MULTI-ACTIVE segments: .is-on marks every
   active segment (several at once, no aria-current and no data-auto), data-state="done"
   keeps the §6.5 green tint, pending stays white. .evo-stage-flag is the amber attention
   glyph a recurring event pins on a segment whatever its state (Flag for invoice; work
   pending with no planned activities; PO received but not billed). Rendered by
   Status::stageTrack(); segments derived server-side by job::stageStates().
   ========================================================================== */
.evo-stagetrack .evo-track-step.is-on { background: var(--main-highlight-color, var(--bs-primary)); color: #fff; }
.evo-stagetrack .evo-track-step.is-on .evo-track-note { opacity: .95; }
.evo-stage-flag { font-size: .95rem; line-height: 1; vertical-align: -2px; margin-left: .25rem; color: #e09b00;
	font-variation-settings: "FILL" 1, "wght" 600, "GRAD" 0, "opsz" 20; }
.evo-track-step.is-on .evo-stage-flag { color: #ffd34d; }

/* ==========================================================================
   HELP VIDEOS MODAL (#videoHelpModal in index.php, assets/js/evoHelpVideo.js).
   styling.inc §7.8 CANDIDATE (10-11-2026): a "theatre" modal. The stage (16:9,
   sized to the height budget so the list never falls below the fold), what is
   playing, Chapters / Transcript, and a 340px rail of videos. .evo-help-docked
   is Follow along: the dialog shrinks to a draggable corner player with the
   backdrop and focus trap lifted, so the page underneath stays usable.
   Violet --evo-help-accent marks help content apart from data. Light only
   (the app has no dark mode).
   ========================================================================== */
.evo-help { --evo-help-accent: #7c3aed; --evo-help-accent-soft: rgba(124, 58, 237, .08); --evo-help-progress: #f0a030;
	--evo-help-ink: #1f2937; --evo-help-muted: #6b7280; --evo-help-line: var(--evo-line-soft); }
.evo-help .modal-dialog { width: min(1280px, calc(100vw - 32px)); max-width: none; margin: 16px auto; }
.evo-help .modal-content { position: relative; border: 0; border-radius: 14px; overflow: hidden; box-shadow: 0 24px 60px rgba(15, 23, 42, .35); }

.evo-help-head { display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 18px; background: #fff; border-bottom: 1px solid var(--evo-help-line); }
.evo-help-ic { flex: none; width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center;
	background: rgba(124, 58, 237, .12); color: var(--evo-help-accent); }
.evo-help-ic i { font-size: 21px; }
.evo-help-titles { min-width: 0; }
.evo-help-title { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.15; color: var(--evo-help-ink); letter-spacing: 0; text-transform: none; }
.evo-help-subtitle { font-size: 12px; color: var(--evo-help-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.evo-help-search { position: relative; margin: 0 0 0 auto; width: min(300px, 34vw); }
.evo-help-search input { height: 34px; padding: 0 30px 0 32px; border-radius: 999px; font-size: 13px; }
.evo-help-search input::-webkit-search-cancel-button { display: none; }
.evo-help-search > i { position: absolute; left: 9px; top: 7px; font-size: 19px; color: var(--evo-faint); pointer-events: none; }
.evo-help-search kbd { position: absolute; right: 9px; top: 8px; padding: 0 5px; font-size: 10px; line-height: 16px;
	background: var(--evo-steel); color: var(--evo-help-muted); border: 1px solid #dde1e6; border-radius: 4px; box-shadow: none; pointer-events: none; }
.evo-help-search input:focus ~ kbd, .evo-help-search input:not(:placeholder-shown) ~ kbd { display: none; }
.evo-help-x { flex: none; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--evo-help-muted);
	display: grid; place-items: center; }
.evo-help-x:hover { background: var(--evo-steel); color: var(--evo-help-ink); }
.evo-help-x:focus-visible { outline: 2px solid var(--evo-help-accent); outline-offset: 1px; }

.evo-help-body { display: grid; grid-template-columns: minmax(0, 1fr) 340px; height: min(700px, calc(100vh - 88px)); background: #f3f5f8; }
.evo-help-main { min-height: 0; overflow: auto; padding: 16px 16px 18px; }

/* The stage keeps 16:9 and gives up width before the window's height runs out. */
.evo-help-stage { position: relative; width: 100%; max-width: max(360px, calc((100vh - 220px) * 16 / 9)); margin: 0 auto; aspect-ratio: 16 / 9;
	border-radius: 12px; overflow: hidden; background: #0b1220; box-shadow: 0 6px 20px rgba(15, 23, 42, .18); }
.evo-help-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; display: block; }
.evo-help-poster { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: #0b1220; cursor: pointer; display: block; }
.evo-help-poster img { width: 100%; height: 100%; object-fit: cover; opacity: .92; transition: opacity .15s; }
.evo-help-poster:hover img { opacity: 1; }
.evo-help-poster.is-blank { background: linear-gradient(135deg, #312e81, #7c3aed); }
.evo-help-poster-name { position: absolute; left: 24px; right: 24px; top: 22px; color: #fff; font-size: 20px; font-weight: 600; text-align: left; }
.evo-help-bigplay { position: absolute; left: 50%; top: 50%; width: 78px; height: 78px; margin: -39px 0 0 -39px; border-radius: 50%;
	background: rgba(255, 255, 255, .95); display: grid; place-items: center; box-shadow: 0 8px 30px rgba(0, 0, 0, .35); transition: transform .15s; }
.evo-help-bigplay i { font-size: 46px; color: var(--evo-help-accent); margin-left: 4px; font-variation-settings: "FILL" 1; }
.evo-help-poster:hover .evo-help-bigplay, .evo-help-poster:focus-visible .evo-help-bigplay { transform: scale(1.06); }
.evo-help-poster:focus-visible { outline: 3px solid #c4b5fd; outline-offset: -3px; }
.evo-help-chip { position: absolute; left: 14px; bottom: 14px; padding: 3px 10px; border-radius: 999px; background: rgba(15, 23, 42, .78);
	color: #fff; font-size: 12px; font-weight: 600; }
.evo-help-stage-empty { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 6px; color: #cbd5e1; font-size: 13px; }
.evo-help-stage-empty i { font-size: 40px; color: #94a3b8; }

.evo-help-next { position: absolute; right: 14px; bottom: 56px; width: 260px; padding: 12px 14px; border-radius: 10px;
	background: rgba(15, 23, 42, .9); color: #fff; box-shadow: 0 8px 24px rgba(0, 0, 0, .35); z-index: 2; }
.evo-help-next-eyebrow { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #c4b5fd; }
.evo-help-next-name { margin: 2px 0 4px; font-size: 14px; font-weight: 600; line-height: 1.25; }
.evo-help-next-count { font-size: 12px; color: #cbd5e1; margin-bottom: 8px; }
.evo-help-next-acts { display: flex; gap: 6px; }
.evo-help-next-acts .btn i { font-size: 17px; vertical-align: -4px; margin-right: 2px; }

.evo-help-now { display: flex; align-items: flex-start; gap: 12px; margin: 12px 2px 10px; }
.evo-help-nowtext { min-width: 0; flex: 1 1 auto; }
.evo-help-name { margin: 0 0 4px; font-size: 17px; font-weight: 600; line-height: 1.25; color: var(--evo-ink); letter-spacing: 0; text-transform: none; }
.evo-help-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; font-size: 12px; color: var(--evo-help-muted); }
.evo-help-meta span { display: inline-flex; align-items: center; gap: 3px; }
.evo-help-meta i { font-size: 15px; }
.evo-help-meta .is-watched { color: #198754; font-weight: 600; }
.evo-help-desc { margin: 6px 0 0; font-size: 13px; color: var(--evo-ink-2); max-width: 72ch; }
.evo-help-acts { flex: none; display: flex; gap: 6px; }
.evo-help-acts .btn { white-space: nowrap; background: #fff; }
.evo-help-acts .btn:hover { background: var(--evo-steel); color: var(--evo-help-ink); }
.evo-help-acts .btn i { font-size: 17px; vertical-align: -4px; margin-right: 3px; }

.evo-help-card { background: #fff; border: 1px solid var(--evo-help-line); border-radius: 10px; }
.evo-help-tabs { display: flex; gap: 18px; padding: 0 14px; border-bottom: 1px solid var(--evo-steel); }
.evo-help-tabs button { padding: 9px 0; border: 0; background: none; font-size: 13px; color: var(--evo-help-muted); }
.evo-help-tabs button:hover { color: var(--evo-help-ink); }
.evo-help-tabs button[aria-selected="true"] { color: var(--evo-ink); font-weight: 600; box-shadow: inset 0 -2px var(--evo-help-accent); }
.evo-help-tabs button:focus-visible { outline: 2px solid var(--evo-help-accent); outline-offset: -2px; }
.evo-help-n { margin-left: 5px; padding: 0 6px; border-radius: 999px; background: var(--evo-steel); font-size: 11px; font-weight: 500; color: var(--evo-help-muted); }
.evo-help-n:empty { display: none; }
.evo-help-chapters { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 6px; padding: 10px 12px 12px; }
.evo-help-ch, .evo-help-cue { display: flex; align-items: flex-start; gap: 8px; width: 100%; padding: 6px 9px; border: 1px solid transparent; border-radius: 8px;
	background: none; font-size: 12.5px; line-height: 1.35; color: var(--evo-ink-2); text-align: left; }
.evo-help-ch:hover, .evo-help-cue:hover { background: var(--evo-wash); border-color: var(--evo-steel); }
.evo-help-ch:focus-visible, .evo-help-cue:focus-visible { outline: 2px solid var(--evo-help-accent); outline-offset: -1px; }
.evo-help-ch.is-past { color: var(--evo-help-muted); }
.evo-help-ch.is-now, .evo-help-cue.is-now { background: var(--evo-help-accent-soft); border-color: rgba(124, 58, 237, .25); color: var(--evo-ink); }
.evo-help-ts { flex: none; min-width: 34px; font-variant-numeric: tabular-nums; font-weight: 600; color: var(--evo-help-accent); }
.evo-help-trfilter { position: relative; padding: 10px 12px 4px; }
.evo-help-trfilter i { position: absolute; left: 20px; top: 15px; font-size: 17px; color: var(--evo-faint); pointer-events: none; }
.evo-help-trfilter input { padding-left: 30px; max-width: 320px; }
.evo-help-transcript { max-height: 220px; overflow: auto; padding: 4px 12px 12px; }
.evo-help-muted { padding: 10px 2px; font-size: 12.5px; color: var(--evo-help-muted); }

.evo-help-rail { min-height: 0; display: flex; flex-direction: column; background: #fff; border-left: 1px solid var(--evo-help-line); }
.evo-help-list { flex: 1 1 auto; min-height: 0; overflow: auto; padding: 12px 10px 6px; }
.evo-help-grp { display: flex; align-items: center; gap: 6px; margin: 4px 6px 8px; font-size: 11px; font-weight: 600; letter-spacing: .06em;
	text-transform: uppercase; color: var(--evo-help-muted); }
.evo-help-grp i { font-size: 16px; }
.evo-help-item + .evo-help-grp { margin-top: 14px; }
.evo-help-grp-n { margin-left: auto; font-weight: 500; letter-spacing: 0; }
.evo-help-item { display: flex; gap: 10px; width: 100%; margin-bottom: 4px; padding: 6px; border: 0; border-radius: 9px; background: none; text-align: left; }
.evo-help-item:hover { background: #f6f7f9; }
.evo-help-item:focus-visible { outline: 2px solid var(--evo-help-accent); outline-offset: -2px; }
.evo-help-item.is-playing { background: var(--evo-help-accent-soft); box-shadow: inset 3px 0 var(--evo-help-accent); }
.evo-help-thumb { position: relative; flex: 0 0 116px; height: 65px; border-radius: 7px; overflow: hidden; background: #1f2937; }
.evo-help-thumb img { width: 100%; height: 100%; object-fit: cover; }
.evo-help-thumb.is-blank { display: grid; place-items: center; background: linear-gradient(135deg, #312e81, #7c3aed); color: rgba(255, 255, 255, .85); }
.evo-help-thumb.is-blank > i { font-size: 26px; }
.evo-help-dur { position: absolute; right: 4px; bottom: 6px; padding: 0 4px; border-radius: 4px; background: rgba(0, 0, 0, .78); color: #fff;
	font-size: 10.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.evo-help-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, .35); }
.evo-help-bar b { display: block; height: 100%; background: var(--evo-help-progress); }
.evo-help-item.is-watched .evo-help-bar b { background: #198754; }
.evo-help-eq { position: absolute; inset: 0; display: none; place-items: center; background: rgba(124, 58, 237, .55); color: #fff; }
.evo-help-eq i { font-size: 26px; }
.evo-help-item.is-playing .evo-help-eq { display: grid; }
.evo-help-it { min-width: 0; flex: 1 1 auto; font-size: 12.5px; }
.evo-help-nm { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-weight: 600; line-height: 1.25; color: var(--evo-help-ink); }
.evo-help-sub { display: block; margin-top: 3px; font-size: 11.5px; color: var(--evo-help-muted); }
.evo-help-wtick { display: inline-flex; align-items: center; gap: 2px; color: #198754; }
.evo-help-wtick i { font-size: 14px; }
.evo-help-item.is-skeleton { pointer-events: none; }
.evo-help-item.is-skeleton .evo-help-thumb, .evo-help-item.is-skeleton .evo-help-it { background: linear-gradient(90deg, var(--evo-steel) 25%, #f6f7f9 50%, var(--evo-steel) 75%);
	background-size: 200% 100%; animation: evoHelpShimmer 1.2s linear infinite; }
.evo-help-item.is-skeleton .evo-help-it { height: 14px; margin-top: 6px; border-radius: 4px; }
@keyframes evoHelpShimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.evo-help-railnote { display: grid; justify-items: center; gap: 8px; padding: 22px 14px; font-size: 12.5px; text-align: center; color: var(--evo-ink-2); }
.evo-help-railnote > i { font-size: 28px; color: var(--evo-faint); }
.evo-help-railnote.is-quiet { display: flex; justify-items: start; align-items: flex-start; gap: 6px; padding: 4px 6px 10px; text-align: left; color: var(--evo-help-muted); }
.evo-help-railnote.is-quiet > i { font-size: 17px; }
.evo-help-railfoot { flex: none; padding: 10px 14px 12px; border-top: 1px solid var(--evo-steel); font-size: 12px; }
.evo-help-prog { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; color: var(--evo-ink-2); }
.evo-help-prog:empty { display: none; }
.evo-help-progbar { flex: 1 1 auto; height: 6px; border-radius: 3px; background: var(--evo-steel); overflow: hidden; }
.evo-help-progbar b { display: block; height: 100%; border-radius: 3px; background: #198754; }
.evo-help-railfoot a { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; text-decoration: none; }
.evo-help-railfoot a i { font-size: 17px; }
.evo-help-railfoot a:hover { text-decoration: underline; }

/* Follow along: the modal element shrinks to the floating player (left / top
   and the dialog width are set by evoHelpVideo.js and kept in localStorage). */
.evo-help-dockbar, .evo-help-resize { display: none; }
.evo-help.evo-help-docked { right: auto; bottom: auto; width: auto; height: auto; overflow: visible; }
.evo-help.evo-help-docked .modal-dialog { margin: 0; transform: none; }
.evo-help.evo-help-docked .modal-content { border-radius: 12px; box-shadow: 0 14px 40px rgba(15, 23, 42, .4); }
.evo-help.evo-help-docked .evo-help-head, .evo-help.evo-help-docked .evo-help-now, .evo-help.evo-help-docked .evo-help-card,
.evo-help.evo-help-docked .evo-help-rail { display: none; }
.evo-help.evo-help-docked .evo-help-body { display: block; height: auto; background: #0b1220; }
.evo-help.evo-help-docked .evo-help-main { padding: 0; overflow: visible; }
.evo-help.evo-help-docked .evo-help-stage { max-width: none; border-radius: 0; box-shadow: none; }
.evo-help.evo-help-docked .evo-help-next { right: 8px; bottom: 44px; width: 220px; padding: 10px 12px; }
.evo-help.evo-help-docked .evo-help-dockbar { display: flex; align-items: center; gap: 4px; height: 36px; padding: 0 4px 0 6px;
	background: #fff; border-bottom: 1px solid var(--evo-help-line); cursor: move; user-select: none; touch-action: none; }
.evo-help-dockbar > i { font-size: 18px; color: var(--evo-faint); }
.evo-help-dockname { flex: 1 1 auto; min-width: 0; font-size: 12.5px; font-weight: 600; color: var(--evo-help-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.evo-help-dockbar .evo-help-x { width: 28px; height: 28px; }
.evo-help-dockbar .evo-help-x i { font-size: 18px; }
.evo-help.evo-help-docked .evo-help-resize { display: block; position: absolute; right: 0; top: 36px; bottom: 0; width: 8px; cursor: ew-resize; touch-action: none; z-index: 3; }
.evo-help.is-dragging, .evo-help.is-dragging * { user-select: none; }
.evo-help.is-dragging .evo-help-frame { pointer-events: none; }
.modal-backdrop.evo-help-bd-off { display: none; }
/* Narrow screens: the rail stacks under the stage and the whole body scrolls (desktop-first; not a target size). */
@media (max-width: 899.98px) {
	.evo-help:not(.evo-help-docked) .evo-help-body { display: block; height: auto; max-height: calc(100vh - 88px); overflow: auto; }
	.evo-help:not(.evo-help-docked) .evo-help-main { overflow: visible; }
	.evo-help:not(.evo-help-docked) .evo-help-rail { border-left: 0; border-top: 1px solid var(--evo-help-line); }
	.evo-help .evo-help-search { width: auto; flex: 1 1 auto; min-width: 0; }
}

/* ==========================================================================
   WHAT'S NEW TOUR (#evoWhatsNew, built by assets/js/evoWhatsNew.js; slides in
   library/WhatsNew.php). A release slideshow offered once on Home after
   sign-in, replayable from the account menu. Help family (styling.inc §7.8):
   the violet accent marks it as help, the blue stays the action colour.
   Top: icon tile, "What's new · n of m", progress dots, close. Body: the words
   on the left, the picture on the right. Foot: quiet link left, buttons right.
   Fits 1536x730 and 1280x580 without scrolling; stacks under 768px.
   ========================================================================== */
.evo-wn { --evo-wn-accent: #7c3aed; --evo-wn-ink: #1f2937; --evo-wn-muted: #6b7280; --evo-wn-line: var(--evo-line-soft); }
.evo-wn .modal-dialog { width: min(1000px, calc(100vw - 32px)); max-width: none; margin: 16px auto; }
.evo-wn .modal-content { border: 0; border-radius: 14px; overflow: hidden; box-shadow: 0 24px 60px rgba(15, 23, 42, .35); text-align: left; }

.evo-wn-top { display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 18px; border-bottom: 1px solid var(--evo-wn-line); background: #fff; }
.evo-wn-ic { flex: none; width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: rgba(124, 58, 237, .12); color: var(--evo-wn-accent); }
.evo-wn-ic i { font-size: 21px; }
.evo-wn-eyebrow { display: flex; align-items: baseline; gap: 8px; font-size: 15px; font-weight: 600; color: var(--evo-wn-ink); white-space: nowrap; }
.evo-wn-step { font-size: 13px; font-weight: 500; color: var(--evo-wn-muted); font-variant-numeric: tabular-nums; }
.evo-wn-dots { display: flex; align-items: center; gap: 2px; margin-left: auto; flex-wrap: wrap; justify-content: flex-end; }
.evo-wn-dot { width: 20px; height: 24px; padding: 0; border: 0; background: transparent; display: grid; place-items: center; cursor: pointer; }
.evo-wn-dot::before { content: ""; width: 8px; height: 8px; border-radius: 999px; background: #d4d9e0; transition: width .15s ease, background .15s ease; }
.evo-wn-dot.is-seen::before { background: #c4b5fd; }
.evo-wn-dot.is-on::before { width: 18px; background: var(--evo-wn-accent); }
.evo-wn-dot:hover:not(:disabled)::before { background: #a78bfa; }
.evo-wn-dot:disabled { cursor: default; }
.evo-wn-dot:focus-visible { outline: 2px solid var(--evo-wn-accent); outline-offset: -2px; border-radius: 6px; }
.evo-wn-x { flex: none; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--evo-wn-muted); display: grid; place-items: center; }
.evo-wn-x:hover { background: var(--evo-steel); color: var(--evo-wn-ink); }
.evo-wn-x:focus-visible { outline: 2px solid var(--evo-wn-accent); outline-offset: 1px; }

.evo-wn-body { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); height: clamp(300px, calc(100vh - 170px), 470px); background: #fff; }
.evo-wn-text { min-height: 0; overflow-y: auto; padding: 26px 28px 20px; display: flex; flex-direction: column; }
.evo-wn-title { margin: 0 0 14px; font-size: 24px; font-weight: 600; line-height: 1.2; letter-spacing: -.01em; color: var(--evo-wn-ink); text-transform: none; }
.evo-wn-lines { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.evo-wn-lines li { position: relative; padding-left: 18px; font-size: 15px; line-height: 1.45; color: var(--evo-ink-2); }
.evo-wn-lines li::before { content: ""; position: absolute; left: 2px; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--evo-wn-accent); }
.evo-wn-extra:empty { display: none; }
.evo-wn-extra { margin-top: 18px; }
.evo-wn-covers-label { font-size: 12px; font-weight: 600; color: var(--evo-wn-muted); margin-bottom: 6px; }
.evo-wn-covers { display: flex; flex-wrap: wrap; gap: 6px; }
.evo-wn-cover { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px 3px 7px; border-radius: 999px; background: #f5f3ff; color: #4c1d95; font-size: 12.5px; font-weight: 500; }
.evo-wn-cover i { font-size: 16px; color: var(--evo-wn-accent); }
.evo-wn-links:empty { display: none; }
.evo-wn-links { margin-top: auto; padding-top: 18px; display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; }
.evo-wn-links .btn, .evo-wn-foot .btn { display: inline-flex; align-items: center; gap: 6px; }
.evo-wn-links .btn i, .evo-wn-foot .btn i { font-size: 18px; }
.evo-wn-doclink { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; color: var(--evo-wn-accent); text-decoration: none; }
.evo-wn-doclink:hover { text-decoration: underline; color: #6d28d9; }
.evo-wn-doclink i { font-size: 18px; }

/* The picture keeps its shape and fits the panel; a slide without one gets a big icon. */
.evo-wn-media { min-height: 0; padding: 18px; background: #f3f5f8; border-left: 1px solid var(--evo-wn-line); display: flex; align-items: center; justify-content: center; }
.evo-wn-shot { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; min-height: 0; }
.evo-wn-shot img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 10px; background: #fff; border: 1px solid #dfe3e8; box-shadow: 0 8px 24px rgba(15, 23, 42, .12); }
.evo-wn-shot:focus-visible { outline: 3px solid #c4b5fd; outline-offset: 2px; border-radius: 10px; }
.evo-wn-art { display: grid; justify-items: center; gap: 14px; }
.evo-wn-art > i { width: 150px; height: 150px; border-radius: 36px; display: grid; place-items: center; font-size: 84px; color: #fff;
	background: linear-gradient(135deg, #6d28d9, #a78bfa); box-shadow: 0 16px 40px rgba(124, 58, 237, .3); }
.evo-wn-art-note { padding: 3px 12px; border-radius: 999px; background: #fff; border: 1px solid #e4dcfb; color: #4c1d95; font-size: 13px; font-weight: 600; }

.evo-wn-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; border-top: 1px solid var(--evo-wn-line); background: #fff; }
.evo-wn-foot-left, .evo-wn-foot-right { display: flex; align-items: center; gap: 8px; }
.evo-wn-quiet { padding-left: 0; padding-right: 0; color: var(--evo-wn-muted); text-decoration: none; }
.evo-wn-quiet:hover, .evo-wn-quiet:focus-visible { color: var(--evo-wn-ink); text-decoration: underline; }

/* Getting started: the series slide lists its videos in the media panel (evoWhatsNew.js seriesList) */
.evo-wn-series { width: 100%; max-width: 460px; align-self: center; }
.evo-wn-series-head { font-size: 12px; font-weight: 600; color: var(--evo-wn-muted); margin: 0 0 8px 2px; }
.evo-wn-series-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.evo-wn-series-row { width: 100%; display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid #dfe3e8; border-radius: 10px; background: #fff; color: var(--evo-wn-ink); text-align: left; font-size: 14px; cursor: pointer; }
.evo-wn-series-row:hover { border-color: #c4b5fd; background: #faf8ff; }
.evo-wn-series-row:focus-visible { outline: 2px solid var(--evo-wn-accent); outline-offset: 1px; }
.evo-wn-series-mark { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #f5f3ff; color: #4c1d95; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.evo-wn-series-row.is-watched .evo-wn-series-mark { background: var(--evo-wn-accent); color: #fff; }
.evo-wn-series-mark i { font-size: 18px; }
.evo-wn-series-name { flex: 1 1 auto; min-width: 0; font-weight: 500; }
.evo-wn-series-time { flex: none; color: var(--evo-wn-muted); font-size: 13px; font-variant-numeric: tabular-nums; }

@media (max-width: 767.98px) {
	.evo-wn-body { display: flex; flex-direction: column-reverse; height: auto; max-height: calc(100vh - 150px); overflow-y: auto; }
	.evo-wn-text { overflow: visible; padding: 18px; }
	.evo-wn-media { border-left: 0; border-bottom: 1px solid var(--evo-wn-line); height: 200px; flex: none; padding: 12px; }
	.evo-wn-art > i { width: 96px; height: 96px; border-radius: 24px; font-size: 56px; }
	.evo-wn-dots { display: none; }
	.evo-wn-foot { flex-wrap: wrap; }
	.evo-wn-foot-right { margin-left: auto; flex-wrap: wrap; justify-content: flex-end; }
	.evo-wn-foot .btn { white-space: nowrap; }
	/* Watch the video takes its own full-width row on top; the body gives up that row's height */
	.evo-wn-watch { order: -1; flex-basis: 100%; justify-content: center; }
	.evo-wn.evo-wn-has-watch .evo-wn-body { max-height: calc(100vh - 250px); }
	.evo-wn.evo-wn-has-series .evo-wn-media { height: auto; }
}

/* ==========================================================================
   TOP BAR (#header, index.php; brand theme 14-11-2026). A quiet white bar so the
   navy page header below carries the colour. 58px tall: --evo-sheet-top and
   --evo-splash-top above rely on it. Left: the logo (evoLogo() in functions.php),
   its shield centred over the 60px menu rail so the rail reads as one column.
   The logo lockup itself is brand, so it lives in themes/evolution/theme.css.
   Right: company chip, search, then round icon tools in slate (navy on hover),
   with badges as small counters. Colours fall back to the brand hexes when the
   brand theme isn't loaded (invimportpricing.php loads it; anything else may not).
   ========================================================================== */
#header {
	min-height: 58px;
	align-items: center;
	background: #fff;
	border-bottom: 1px solid var(--evo-line, #D5DCE6);
	box-shadow: 0 1px 2px rgba(19, 41, 75, .06);
}
#header > .site-header-nav {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 2px;
	min-height: 57px;
	padding: 0 12px 0 8px;
}
/* Company chip: which company you're in, and the way to change it. Steel fill, so it reads as
   context beside the white search field, not as a second input. */
.evo-company-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 36px;
	max-width: 280px;
	margin-right: 4px;
	padding: 0 10px 0 10px;
	border: 1px solid var(--evo-line, #D5DCE6);
	border-radius: 18px;
	background: var(--evo-steel, #F3F5F8);
	color: var(--evo-navy, #13294B);
	font-size: .875rem;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
	transition: border-color .15s, background-color .15s;
}
.evo-company-chip:hover, .evo-company-chip:focus-visible {
	border-color: var(--evo-slate, #4A5A72);
	background: #fff;
	color: var(--evo-navy, #13294B);
	text-decoration: none;
	outline: none;
}
.evo-company-chip:focus-visible { box-shadow: var(--evo-focus-ring, 0 0 0 .25rem rgba(19, 41, 75, .22)); }
.evo-company-chip .material-symbols-rounded { font-size: 19px; color: var(--evo-slate, #4A5A72); }
.evo-company-chip .evo-company-swap { font-size: 18px; opacity: .7; }
.evo-company-chip:hover .evo-company-swap { opacity: 1; color: var(--evo-navy, #13294B); }
.evo-company-chip .evo-company-name { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.evo-company-chip img { height: 24px; max-width: 140px; object-fit: contain; }

/* Search sits in the brand line colour, not the old grey-green */
#header .gs-trigger { border-color: var(--evo-line, #D5DCE6); margin: 0 4px; }
#header .gs-trigger .material-symbols-rounded { color: var(--evo-slate, #4A5A72); }
#header .gs-trigger:hover, #header .gs-trigger:focus-visible { border-color: var(--evo-slate, #4A5A72); box-shadow: 0 0 0 3px rgba(19, 41, 75, .08); }

.evo-hdr-sep { width: 1px; height: 24px; margin: 0 6px; background: var(--evo-line, #D5DCE6); flex: none; }

.evo-hdr-tool {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	color: var(--evo-slate, #4A5A72);
	text-decoration: none;
	cursor: pointer;
	transition: background-color .15s, color .15s;
}
.evo-hdr-tool .material-symbols-rounded { font-size: 22px; color: inherit; vertical-align: middle; }
.evo-hdr-tool:hover, .evo-hdr-tool:focus-visible, #accountMenu .evo-hdr-tool[aria-expanded="true"] {
	background: var(--evo-steel, #F3F5F8);
	color: var(--evo-navy, #13294B);
	outline: none;
}
.evo-hdr-tool:focus-visible { box-shadow: var(--evo-focus-ring, 0 0 0 .25rem rgba(19, 41, 75, .22)); }
.evo-hdr-tool img { width: 26px; height: 26px; object-fit: cover; }
#accountMenu { display: inline-flex; }

/* Counters on a tool (plugin updates, unread notifications). Red is a status colour, not brand. */
.evo-hdr-badge {
	position: absolute;
	top: 3px;
	right: 1px;
	min-width: 17px;
	height: 17px;
	padding: 0 4px;
	border: 2px solid #fff;
	border-radius: 9px;
	background: #dc3545;
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	line-height: 13px;
	text-align: center;
	pointer-events: none;
}
.evo-hdr-badge:empty { display: none; }

/* The timesheet timer dot (timesheetTimerApplet.js) drops in after the company chip */
#header > .site-header-nav > .timesheetTimerIcon { flex: none; margin: 0 6px; }

@media (max-width: 991.98px) {
	.evo-company-chip { max-width: 200px; }
}
/* Phones: logo on the first row, tools on a second row (as before), the chip shrinks first */
@media (max-width: 767.98px) {
	#header > .site-header-nav { flex: 0 0 100%; min-height: 48px; padding: 0 8px 6px; justify-content: space-between; gap: 0; }
	.evo-company-chip { flex: 0 1 auto; min-width: 36px; max-width: 150px; padding: 0 8px; }
	.evo-company-chip .evo-company-swap, .evo-hdr-sep { display: none; }
	.evo-hdr-tool, #header .gs-trigger { width: 34px; height: 34px; }
	#header .gs-trigger { margin: 0 2px; }
}

/* Menu rail edge, re-drawn with the top bar: style.css cast a grey shadow UP (3px -4px #666)
   that smudged the bar's bottom edge under the logo. Now a line-coloured right edge with a
   soft shadow to the right only, which still lifts the hover-expanded menu off the page. */
.menu_container {
	border-right: 1px solid var(--evo-line, #D5DCE6);
	box-shadow: 2px 0 6px rgba(19, 41, 75, .08);
}
.menu_container_full { box-shadow: 6px 0 18px rgba(19, 41, 75, .16); }

/* ==================================================================
   SIDE MENU (app/templates/menu.php), brand pass 14-11-2026.
   White rail, the same chrome as the top bar, so the two read as one
   L-shaped frame around the steel page canvas.
   - Idle sections: slate icon + label. Hover: steel fill, navy.
   - Open section: steel fill (was a grey #e9ecef bar), navy label.
   - The section that holds the current page carries a 3px SAFETY-ORANGE
     marker on its left edge. It shows on the collapsed 60px rail too, so
     you can tell where you are without opening the menu. It is the same
     "you are here" orange as the pipeline sub-rail's current step.
   - The current page inside the open list: navy on a navy tint.
   Hooks: .menu-active-link is set by global.js (menu highlight, ~1214);
   nothing here needs markup changes.
   ================================================================== */
.menu-main .accordion-item { border-color: var(--evo-line-soft, #E3E8EF); }
.menu-main .accordion-button {
	color: var(--evo-slate, #4A5A72);
	font-weight: 500;
	letter-spacing: .05em;
	transition: background-color .12s ease, color .12s ease;
}
.menu-main .accordion-button a { color: inherit; text-decoration: none; }
.menu-main > .accordion-item > .accordion-header > .accordion-button > .material-symbols-rounded:not(.menu-pin-toggle),
.menu-main > .accordion-item > .accordion-header > .accordion-button > a > .material-symbols-rounded {
	color: var(--evo-slate, #4A5A72);
	transition: color .12s ease;
}
.menu-main .accordion-button:hover { background-color: var(--evo-steel, #F3F5F8); color: var(--evo-navy, #13294B); }
.menu-main > .accordion-item > .accordion-header > .accordion-button:hover > .material-symbols-rounded:not(.menu-pin-toggle),
.menu-main > .accordion-item > .accordion-header > .accordion-button:hover > a > .material-symbols-rounded { color: var(--evo-navy, #13294B); }

.menu-main .accordion-button:not(.collapsed) {
	background-color: var(--evo-steel, #F3F5F8);
	color: var(--evo-navy, #13294B);
	font-weight: 700;
}
.menu-main > .accordion-item > .accordion-header > .accordion-button:not(.collapsed) > .material-symbols-rounded:not(.menu-pin-toggle) { color: var(--evo-navy, #13294B); }
.menu-main .accordion-button:focus-visible { box-shadow: inset 0 0 0 2px var(--evo-focus-border, #5B7099); }

/* You are here: the section holding the current page. */
.menu-main > .accordion-item:has(.menu-active-link) > .accordion-header > .accordion-button,
.menu-main > .accordion-item.is-current > .accordion-header > .accordion-button {
	box-shadow: inset 3px 0 0 var(--evo-orange, #C4531F);
	color: var(--evo-navy, #13294B);
}
.menu-main > .accordion-item:has(.menu-active-link) > .accordion-header > .accordion-button > .material-symbols-rounded:not(.menu-pin-toggle),
.menu-main > .accordion-item.is-current > .accordion-header > .accordion-button .material-symbols-rounded:not(.menu-pin-toggle) { color: var(--evo-navy, #13294B); }

.menu-main > .accordion-item.is-current > .accordion-header > .accordion-button a { color: var(--evo-navy, #13294B); font-weight: 700; }

/* Page links in an open section. */
/* Indented to the section label's left edge (icon column 66px), so the list hangs under its
   heading. !important beats the template's Bootstrap .ps-4 utility. */
.menu-main .accordion-body .list-group-item.main_menu {
	padding: 0 0 0 66px !important;
	background: transparent;
}
.menu-main .main_menu > a {
	display: block;
	padding: .45rem .75rem .45rem 0;
	color: var(--evo-ink-2, #34435A);
	font-size: .85rem; font-weight: 500; letter-spacing: .03em;
}
.menu-main .accordion-body { padding: .25rem 0 .5rem !important; }
.menu-main .list-group-item.main_menu:hover { background-color: var(--evo-steel, #F3F5F8); }
.menu-main .list-group-item.main_menu:hover > a { color: var(--evo-navy, #13294B); }
.menu-main .list-group-item.main_menu:has(> a.menu-active-link) { background-color: var(--evo-navy-tint, #E6EBF3); }
.main_menu > a.menu-active-link { color: var(--evo-navy, #13294B) !important; font-weight: 700; }

/* =====================================================================================
   ICON FILL (option C, Shane 14-11-2026): icons are outline at rest (style.css default);
   the open / current / selected / pinned item fills. Add new "active" states here, not per page.
   ===================================================================================== */
.menu-main > .accordion-item:has(.menu-active-link) > .accordion-header > .accordion-button .material-symbols-rounded,
.menu-main > .accordion-item.is-current > .accordion-header > .accordion-button .material-symbols-rounded:not(.menu-pin-toggle),
.menu-pin-toggle.menu-pinned-active,
.evo-tab[aria-selected="true"] .material-symbols-rounded,
.nav-link.active > .material-symbols-rounded,
.evochip-toggle-chip.active .evochip-toggle-icon .material-symbols-rounded,
.evochip-label-icon .material-symbols-rounded,
.evochip-summary-label .material-symbols-rounded,
.material-symbols-rounded.evochip-comingsoon-icon,
.segPin--on .material-symbols-rounded {
	font-variation-settings: 'FILL' 1, 'wght' 300, 'GRAD' 0, 'opsz' 24;
}

/* ==========================================================================
   .evo-picklist: a scrolling list-group of search results or choices inside a
   modal form (BOM editor item search, import search, route-creator processes).
   Add .is-floating to drop it under its input (the parent needs position-relative).
   ========================================================================== */
.evo-picklist { max-height: 18rem; overflow: auto; }
.evo-picklist.is-floating { position: absolute; left: 0; right: 0; z-index: 6; box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .12); }
.evo-picklist .list-group-item { font-size: .875rem; }
.evo-stepedit .list-group-item { background: #fff; }
.evo-stepedit .ui-sortable-helper { box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .15); }

/* --------------------------------------------------------------------------
   Step rows (styling.inc §9 candidate "Step editor", mfrouteedit 17-11-2026). An ordered
   list of steps; depth (a route's shop floor sequence) indents the row and shows as its
   Step number, so two processes on one step read as side by side.
   <ul class="list-group evo-stepedit">
     <li class="list-group-item evo-step" style="--evo-depth:1">
       <i class="material-symbols-rounded evo-step-drag" aria-hidden="true">drag_indicator</i>
       <span class="evo-step-n" title="Step 2">2</span>
       <span class="evo-step-name">name, then flags</span>
       <button type="button" class="btn btn-sm btn-outline-secondary evo-step-unit">Unit</button>  (optional)
       <span class="evo-step-acts"> icon-only btn-link buttons (title + aria-label), .is-danger on remove </span>
     </li>
   </ul>
   Sortable placeholder: placeholder: 'evo-step-ph'. Empty list: li.evo-step-empty.
   Pick list rows that can be dragged into it: .evo-picklist .evo-pick-src.
   -------------------------------------------------------------------------- */
.evo-stepedit .evo-step { display: flex; align-items: center; gap: .5rem; padding: .3rem .5rem .3rem calc(.5rem + var(--evo-depth, 0) * 1.75rem); }
.evo-step-drag.material-symbols-rounded { font-size: 1.25rem; color: var(--evo-faint, #97A3B4); cursor: grab; flex: none; }
.evo-step-n { flex: none; min-width: 1.6rem; height: 1.6rem; padding: 0 .35rem; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center;
	font-size: .8rem; font-weight: 600; font-variant-numeric: tabular-nums; background: var(--evo-navy-tint, #E6EBF3); color: var(--evo-navy, #13294B); }
.evo-step-name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.evo-step-name .flag { margin-left: .35rem; }
.evo-step-unit.btn { flex: none; padding: 0 .45rem; }
.evo-step-acts { flex: none; display: inline-flex; align-items: center; gap: .1rem; }
.evo-step-acts .btn { padding: 0 .1rem; line-height: 1; border: 0; color: var(--evo-muted, #5D6A7E); }
.evo-step-acts .btn:hover:not(:disabled), .evo-step-acts .btn:focus-visible { color: var(--evo-navy, #13294B); }
.evo-step-acts .btn.is-danger:hover:not(:disabled) { color: var(--bs-danger, #dc3545); }
.evo-step-acts .btn:disabled { opacity: .3; }
.evo-step-acts .material-symbols-rounded { font-size: 1.25rem; }
.evo-stepedit .evo-step-ph { height: 2.45rem; border: 2px dashed var(--evo-faint, #97A3B4); border-radius: .375rem; background: transparent; list-style: none; }
.evo-stepedit .evo-step-empty { padding: 1rem; text-align: center; color: var(--evo-muted, #5D6A7E); border-style: dashed; }
.evo-picklist .evo-pick-src { cursor: grab; }
.evo-picklist .evo-pick-src .material-symbols-rounded { font-size: 1.25rem; color: var(--evo-muted, #5D6A7E); }

/* ==========================================================================
   .evo-row-target: the grid row a pending action is aimed at (BOM editor: the row
   whose item is being replaced). Navy tint with an orange left edge; clear it when
   the action finishes or is cancelled.
   ========================================================================== */
tr.evo-row-target > td { background-color: var(--evo-navy-tint, #E6EBF3) !important; box-shadow: none !important; }
tr.evo-row-target > td:first-child { box-shadow: inset 3px 0 0 var(--evo-orange, #C4531F) !important; }

/* Number inputs in an editable modal table hug the right of their cell, under the right-aligned
   header (.evo-mtable .num). A fixed-width input is a block, so text-align alone leaves it at the left
   (BOM editor process grid, 15-11-2026). */
.evo-mtable-edit td.num > .form-control,
.evo-mtable-edit td.num > .form-select { margin-left: auto; }

/* ===== Grouped child list (.evo-glist; styling.inc 6.2 related lists, candidate 15-11-2026) =====
   A list of documents with each document's lines under it, inside a tab pane (already the white
   sheet, so no card). First users: jobedit Picking + Dispatch tabs. Built from house parts:
   table.evo-grid in .evo-gridwrap, one tbody.evo-glist-group per document whose first row is a
   structured group band (5.6: tr.evo-gband + .evo-gband-lbl / .evo-gband-desc + .evo-fold-btn),
   lines tr.evo-fold-child, folding by the fold family (is-collapsed / evo-folded). JS:
   evoGroupList in assets/js/evoRegister.js (search, status chips, fold, Expand all). */
.evo-glist { margin: 0; text-align: left; }
.evo-glist > .evo-strip { margin-bottom: .6rem; }
.evo-glist-table { margin-bottom: 0; }
.evo-glist-table > tbody + tbody { border-top: 0; }
/* The band's cell lays its facts out in a row. */
tr.evo-glist-head { cursor: pointer; }
.evo-glist-hrow { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .9rem; min-width: 0; }
.evo-glist-hmain { display: inline-flex; align-items: center; gap: .45rem; white-space: nowrap; }
.evo-glist-hmain > a { font-weight: 600; }
.evo-glist-fact { color: var(--evo-ink-2); white-space: nowrap; }
.evo-glist-fact .evo-gband-lbl { margin-right: .3rem; }
.evo-glist-hend { margin-left: auto; display: inline-flex; align-items: center; gap: .5rem; }
.evo-glist-ico { font-size: 1.15rem; vertical-align: -3px; }
/* Progress: "3 of 8 lines picked" with a thin bar. */
.evo-glist-prog { display: inline-flex; align-items: center; gap: .45rem; white-space: nowrap; color: var(--evo-ink-2); }
.evo-glist-bar { display: inline-block; width: 64px; height: 6px; border-radius: 3px; background: var(--evo-line-soft); overflow: hidden; }
.evo-glist-bar > span { display: block; height: 100%; background: var(--bs-success); }
.evo-glist-line[data-href] { cursor: pointer; }
.evo-glist-binbtn { padding: 0 .2rem; line-height: 1; border: 0; color: var(--evo-muted); margin-right: .35rem; vertical-align: top; }
.evo-glist-binbtn[aria-expanded="true"] { color: var(--evo-navy); }
.evo-glist-detail > td { padding: .25rem .5rem .6rem 1.5rem; }
.evo-glist-detail table { max-width: 32rem; margin-bottom: 0; }
/* Filtering (kept apart from the fold classes, 5.6). */
.evo-glist .evo-glist-table .evo-glist-group > tr.evo-glist-out.evo-glist-out,
.evo-glist .evo-glist-table > tbody.evo-glist-group.evo-glist-out { display: none; }
/* Group switch off (data-evo-glist-grouped unticked): the documents wait, emptied, while their lines sit in one list. */
.evo-glist .evo-glist-table > tbody.evo-glist-parked { display: none; }
/* Sub-line: indented under the line before it (Production: an external process under its shop order). */
.evo-glist-subline > td:first-child { padding-left: 1.6rem; }
.evo-glist-subline > td { color: var(--evo-ink-2); font-size: .95em; }
/* Older lines (Servicing: done activities past the last few) wait behind a "+ n earlier" line. */
.evo-glist-group:not(.is-more) > tr.evo-glist-later { display: none; }
.evo-glist.is-searching .evo-glist-group > tr.evo-glist-later { display: table-row; }
.evo-glist.is-searching .evo-glist-group > tr.evo-glist-morerow { display: none; }
/* A second section in the same pane (Dispatch tab: Returned goods). */
.evo-glist-sub { margin: 1.1rem 0 .4rem; font-size: .95rem; font-weight: 600; color: var(--evo-ink-2); display: flex; align-items: center; gap: .4rem; }
.evo-glist-subico { color: var(--evo-subtle); font-size: 1.15rem; }

/* ===== View switch (styling.inc 6.2 "Views inside a tab", ruled 16-11-2026) =====
   Bootstrap btn-group btn-group-sm of btn-check radios with btn-outline-primary labels: the chosen
   view fills navy. Icon + label (+ an optional count). JS: evoViewSwitch in evoRegister.js. */
.evo-viewswitch .btn { display: inline-flex; align-items: center; gap: .3rem; white-space: nowrap; }
.evo-viewswitch-ico { font-size: 1.15rem; color: inherit; } /* style.css paints every icon the body text colour; follow the button (white when chosen) */
.evo-viewswitch-n { font-size: .75rem; font-weight: 600; line-height: 1; padding: .15rem .4rem; border-radius: 999px; background: var(--evo-navy-tint); color: var(--evo-navy); }
.btn-check:checked + .btn .evo-viewswitch-n { background: rgba(255, 255, 255, .25); color: #fff; }
.evo-viewbar { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin-bottom: .6rem; }

/* ===== Searchable select (styling.inc 1.9b, 18-11-2026) =====
   <select data-evo-searchable>: evoSearchable in global.js swaps in the 1.9a search input group and a
   Bootstrap dropdown-menu listbox; the select stays as the posted field (visually hidden). */
.evo-ss { min-width: 0; }
.evo-ss .input-group-text .material-symbols-rounded { font-size: 18px; } /* 24px made the group 4px taller than the strip's other controls (1.9a: shrink the icon, never drop it) */
.evo-strip-field > .evo-ss { width: 15rem; max-width: 100%; } /* an input-group is width:100%, which drops it under its strip label; inline width on the select wins */
.evo-ss-menu { max-height: min(22rem, 55vh); overflow-y: auto; max-width: min(32rem, 92vw); padding: .25rem 0; }
.evo-ss-menu .dropdown-item,
.evo-ss-menu .dropdown-item-text { padding-left: calc(.9rem + var(--evo-ss-depth, 0) * 1rem); padding-right: .9rem; white-space: normal; line-height: 1.3; padding-top: .3rem; padding-bottom: .3rem; }
.evo-ss-menu .evo-ss-cur { font-weight: 600; }
.evo-ss-menu .evo-ss-ctx { color: var(--evo-subtle, #8a94a6); font-size: .9em; } /* a match's parent, shown for context, not pickable */

/* ---------------------------------------------------------------------------
   AI notes preview (modaltemplates/quoteainotes.php .ai-preview)
   The draft comes back as bare HTML with every attribute stripped
   (claudeQuoteNotes::sanitizeHtml), so its tables had no spacing and the
   columns ran together ("QtyFinish"). Give them the house table rhythm.
   Headings keep their weight with slightly tighter spacing (24-11-2026).
   --------------------------------------------------------------------------- */
.ai-preview table { border-collapse: collapse; margin: .25rem 0 .75rem; }
.ai-preview th,
.ai-preview td { padding: .3rem .9rem .3rem 0; border-bottom: 1px solid #e3e7ee; vertical-align: top; text-align: left; }
.ai-preview th { font-weight: 600; border-bottom-color: #c9d2de; }
.ai-preview tr:last-child td { border-bottom: 0; }
.ai-preview h3 { font-size: 1.35rem; font-weight: 600; margin: .25rem 0 .6rem; }
.ai-preview h4 { font-size: 1rem; font-weight: 600; margin: .85rem 0 .35rem; }
