/* =========================================================================
   stpTheme.css — "Sticky Tickets" design system, base layer
   -------------------------------------------------------------------------
   Design project : claude.ai/design/p/62aba985-0e8a-4605-bfa0-7a0564090c2d
   Canonical artboards:
     Ticket Table.dc.html  2a desktop / 3a mobile / 4a filters modal
     Enforcement.dc.html   2a mobile  / 2b desktop
     Sidebar.dc.html       1a / 1b / 1c
     Login.dc.html         1a / 1b
   -------------------------------------------------------------------------
   Shared by CG and MC — both link the same stack via Main::stpThemeStack()
   (CG from Main::headBase(), MC from MC_headBase() in
   content/classes/MC/MC.php). Never edit content/css/stpMain.css,
   stpMainTap.css or stpMainMobile.css: they are shared legacy files and the
   stack still loads all three verbatim. Values are RE-DECLARED here instead,
   and win on equal specificity + later source order.
   -------------------------------------------------------------------------
   LOAD ORDER (Main::stpThemeStack(), CG and MC alike):
     stpMain.css -> stpTheme.css -> stpMainTap.css -> stpMainMobile.css
       -> stpThemeTap.css -> stpThemeMobile.css
   The base theme must beat stpMain.css but must NOT beat the legacy
   responsive files (media queries add zero specificity), so the two new
   media-query layers load last and win below their breakpoints.
   -------------------------------------------------------------------------
   SECTION SKELETON — FIXED, IN CASCADE ORDER. Cascade order inside this
   file is semantically load-bearing (cards vs. table chrome vs. rail).
   Each phase appends ONLY inside its own marker. Do not reorder sections.
     §1 tokens  §2 controls  §4 tables  §5 rail+header  §6 page headers
     §8 login   §9 tickets   §10 enforcement  §11 vehicle detail  §12 reports  §print
   ========================================================================= */


/* =========================================================================
   §1 tokens
   ========================================================================= */

:root {
	/* ---- type ------------------------------------------------------------
	   NON-GOAL (plan 1.11): the framework's Google Fonts <link>
	   (ryca-solutions-framework/classes/Page.php:48-56, Open Sans + Roboto)
	   is NOT removed, so anything the type reset below misses falls back to
	   Open Sans silently rather than visibly failing. Phase 12 greps
	   computed font-family for Open Sans / Roboto / Spline Sans.          */
	--stpFont: -apple-system, system-ui, 'Segoe UI', Helvetica, Arial, sans-serif;
	--stpMono: ui-monospace, Menlo, Monaco, Consolas, monospace;

	/* ---- surface + chrome ---- */
	--stpSurface: #fff;                  /* cards, tables, inputs, popups, head bar */
	--stpCanvas: #f6f6f4;                /* NEW: warm-neutral content canvas (body + .main.filled column) */
	--stpHairlineColor: rgba(17, 17, 17, .08);
	--stpHairline: 1px solid rgba(17, 17, 17, .08);
	--stpRadius: 14px;
	--stpShadow: 0 1px 2px rgba(16, 16, 16, .04), 0 1px 3px rgba(16, 16, 16, .04);
	--stpShadowModal: 0 24px 70px rgba(0, 0, 0, .20);
	--stpRowDividerColor: rgba(17, 17, 17, .06);
	--stpRowDivider: 1px solid rgba(17, 17, 17, .06);
	--stpPill: 999px;

	/* neutral control border (consumed by Phase 2 as `1px solid var(--stpBorder)`) */
	--stpBorder: rgba(0, 0, 0, .14);

	/* ---- ink + text ---- */
	--stpInk: #1a1a1a;
	--stpInkHover: #333;
	--stpBody: #333;
	--stpBodyAlt: #55554f;
	--stpMuted: #70706a;                 /* muted text: 5.0:1 on white, 4.6:1 on canvas */
	--stpSecondary: #66665f;             /* secondary text: 5.8:1 on white, 5.4:1 on canvas */

	/* ---- accent: exactly ONE red exists in CG ----
	   Never a button fill — carets, toggle knob, swipe hint only.        */
	--stpAccent: #c8102e;
	--stpAccentHi: #d5283f;
	--stpAccentDeep: #a60d26;
	--stpAccentBg: #fbe9ec;

	/* ---- status families (design pill palette) ---- */
	--stpGood: #1a9d54;
	--stpGoodInk: #0f7b3d;
	--stpGoodBg: #e7f5ec;
	--stpInfoBg: #e8f0fb;

	/* ---- hover ---- */
	--stpHover: #efefeb;                 /* was #f5f5f4: deeper so hover fills and the seg-switch track still read on the canvas */
	--stpRowHover: #f7f7f6;
	--stpZebra: #f7f7f6;

	/* ---- table ----
	   Sticky-offset baseline consumed by Phase 4 task 4.8
	   (.formRow.subHead sits below .horizontalScrollable.hsHeader).      */
	--stpTableHeadHeight: 42px;   /* mirrors §4 (single source: the §4 :root block re-declares it) */

	/* ---- rail + header bar: TARGETS ONLY. DO NOT FLIP HERE. ------------
	   Phase 5 performs the flip in the same commit that removes the top
	   bar. Flipping now renders an empty 236px dark rail PLUS a 236px
	   content indent on every CG page while the top bar is still present,
	   because the framework always renders the .navLeft element
	   (Page.php:284) and main.css:764/768 size .main off --navLeftWidth
	   unconditionally.                                                   */
	--stpRailOpen: 236px;
	--stpRailClosed: 72px;
	--stpHeadBar: 46px;
	--stpRailBg: #1a1a1a;
	--stpRailIdle: rgba(255, 255, 255, .62);
	--stpRailActiveBg: rgba(255, 255, 255, .10);
	--stpHeadBarHairline: rgba(17, 17, 17, .07);


	/* =====================================================================
	   Re-declaration of content/css/stpMain.css:1-16 (HARD RULE 1).
	   stpMain.css stays byte-identical; CG and MC (both via
	   Main::stpThemeStack()) get the design values from here.
	   Nothing there is moved or deleted.
	   ===================================================================== */
	--bg: var(--stpCanvas, #f6f6f4);     /* stpMain.css:2  #ffffff  -> canvas (body paints this; pre-auth pages share it, §8.x) */
	--bgDev: #fff;                       /* stpMain.css:3  #ffffff  -> unchanged */
	--red: var(--stpAccent);             /* stpMain.css:4  #DC2626  -> one red   */
	--sectionbg: #fff;                   /* stpMain.css:5  #ffffff  -> surface   */
	--bgAccent: var(--stpHover);         /* stpMain.css:6  #d9d9d9  -> neutral surface.
	                                        Consumed by stpMain.css:71 (.selectNotice)
	                                        and :80 (.payNow), both rendered by
	                                        internal/scanTicket.php. Retarget, never
	                                        delete (plan 12.2).                  */
	--ticketWidth: 104mm;                /* stpMain.css:8  unchanged — print geometry */

	/* ---- PHASE 5 TOKEN FLIP (plan 5.1, constraint P1-D1) ----------------
	   Landed in the SAME commit that removes the top menu (Main.php
	   headBarObjects()) and rebases the hardcoded 50px offsets in §5.
	   Do not re-point these anywhere else: main.css:764/768 size .main off
	   --navLeftWidth unconditionally and Page.php:284 always renders the
	   .navLeft element, so a flip without §5 is an empty dark rail plus a
	   236px content indent on every CG page.
	   NOTE: stpMainTap.css:3 (<=1200px) and stpMainMobile.css:3 (<=640px)
	   still re-declare --headBarHeight to 60px / 50px. Every §5 rule reads
	   var(--headBarHeight), so it follows those bands automatically; Phase 11
	   owns any retune there.                                              */
	--headBarHeight: var(--stpHeadBar, 46px);                     /* was stpMain.css:11 95px  */
	--defaultNavLeftWidthClosed: var(--stpRailClosed, 72px);      /* 4.4 / HARD RULE 1: stpMain.css:13 stays 0px; CG + MC override */
	--navLeftWidth: var(--stpRailOpen, 236px);                    /* 4.4 / HARD RULE 1: stpMain.css:14 stays 0px; CG + MC override */
	--ultraLight: #f7f7f6;               /* stpMain.css:15 #eeeeee -> row hover */


	/* =====================================================================
	   Framework semantic token overrides (ryca-solutions-framework/css/main.css:2-73).
	   Framework files are never edited (HARD RULE 2) — re-pointed here.
	   ===================================================================== */

	/* ink family — every "brand blue" collapses onto the design's ink */
	--yellow: var(--stpInk);             /* main.css:39 #255697 */
	--primary: var(--stpInk);            /* main.css:18 #255697 */
	--blue: var(--stpInk);               /* main.css:19 #255697 */
	--blueHi: var(--stpInk);             /* main.css:17 #123679 */
	--dark: var(--stpInk);               /* main.css:28 #273B61 */
	--midTone: var(--stpInk);            /* main.css:29 #4A70BA */
	--progressBlue: var(--stpInk, #1a1a1a); /* main.css:64 #4c8bff; i.blue main.css:1447 */

	/* red family — single accent, plus tints for row/menu backgrounds */
	--msgred: var(--stpAccent);          /* main.css:52 #CD3E3E */
	--msgredhi: var(--stpAccentHi);      /* main.css:53 #E57272 */
	--msgreddeep: var(--stpAccentDeep);  /* main.css:54 #BE4747 */
	--badRed: var(--stpAccent);          /* main.css:62 #d07575 */
	--badRedForm: var(--stpAccentBg);    /* main.css:63 #ffb3b3 — .formRow.red background (main.css:1805/1808) */

	/* neutrals */
	--defaultTextColor: var(--stpBody);  /* main.css:11 #333 */
	--darkGray: var(--stpMuted);         /* main.css:33 #999999 */
	--lightGray: var(--stpHover);        /* main.css:31 #eeeeee */
	--formBtnHover: var(--stpHover);     /* main.css:32 #eeeeee */
	--accent: var(--stpHover);           /* main.css:21 #9fc0e3 — .secondaryBtn / menu hover bg (main.css:267/311) */
	--light: var(--stpInfoBg);           /* main.css:30 #DDE7FF — .formRow.blue background (main.css:1819) */
	--disabled: var(--stpHover);         /* main.css:23 #eee */
	--disabledText: var(--stpMuted);     /* main.css:24 #6a6a6a */
	--tan: var(--stpMuted);              /* main.css:40 #bca36a */

	/* green family — design pill greens */
	--green: var(--stpGood);             /* main.css:35 #A5D6A7 — .circle.green (main.css:3760) */
	--lightGreen: var(--stpGoodBg);      /* main.css:15 #beebc0 — .formRow.green background (main.css:1833) */
	--goodGreen: var(--stpGood);         /* main.css:61 #3ebf46 */

	/* surfaces + dividers */
	--collapsableOuterBGColor-active: var(--stpSurface);  /* main.css:72 #ffffff */
	--formRow-border-width: 1px;                          /* main.css:70 — divider COLOUR is Phase 4's */
}

/* ---- Kit bridge (Phase 15.1b) ---------------------------------------------
   The RSF UiV1 kit (main.css 4726-5970) reads --ffo* tokens whose fallbacks are
   a dark palette (--rmc-*). Re-pointed here onto the light CG palette so kit
   components (ffo-card, ffo-btn, ffo-tbl-kit, ffo-fchip, ffo-id, ffo-md, ffo-av,
   tone pills) render light. Palette: paid #0f7b3d/#e7f5ec/#1a9d54 · unpaid
   #9a5a00/#fdf1dd/#e08600 · appeal #1a5fb4/#e8f0fb/#2f7de1 · denied
   #c8102e/#fbe9ec/#d5283f · neutral #6b6b6b/#efefee/#9a9a9a.
   NEVER declared here: --ffoTone/--ffoToneSoft/--ffoToneLine (the .ffo-tone-*
   classes set them per element, main.css:4905-4912) and the sizing tokens
   --ffoDetailMax, --ffoMdPvMax, --ffoMeterCapW.
   INTENTIONALLY UNMAPPED (neutral fallbacks, or unused by CG; 24.1 to check):
   --ffoBtnBlue/BlueHover/BlueInk, --ffoBtnOrange/OrangeHover/OrangeInk,
   --ffoBtnGoldHover/GoldInk (non-quiet btnStyle colours, unused by this plan);
   --ffoMeterTrack/Ok/Warn/Danger/Cap, --ffoSeg* (SegLine, SegOnBg, SegOnFg),
   --ffoTsSub, --ffoZero (neutral currentColor/grey fallbacks).
   ---------------------------------------------------------------------------- */
:root {
	/* text + lines + card */
	--ffoText: var(--stpInk, #1a1a1a);
	--ffoText2: var(--stpBody, #333);
	--ffoMuted: var(--stpSecondary, #6f6f6f);
	--ffoFaint: var(--stpMuted, #9a9a9a);
	--ffoLine: var(--stpHairlineColor, rgba(17, 17, 17, .10));
	--ffoRowLine: var(--stpRowDividerColor, rgba(17, 17, 17, .06));
	--ffoCardBg: var(--stpSurface, #fff);
	--ffoPanel: var(--stpSurface, #fff);
	--ffoWell: var(--stpSurface, #fff);
	--ffoMono: var(--stpMono, ui-monospace, monospace);
	--ffoBtnHoverLine: var(--stpInk, #1a1a1a);
	--ffoBtnDangerHover: var(--stpAccentDeep, #a60d26);

	/* tone triples: fg / soft / line */
	--ffoToneOk: var(--stpGoodInk, #0f7b3d);
	--ffoToneOkSoft: var(--stpGoodBg, #e7f5ec);
	--ffoToneOkLine: var(--stpGood, #1a9d54);
	--ffoToneInfo: #1a5fb4;
	--ffoToneInfoSoft: var(--stpInfoBg, #e8f0fb);
	--ffoToneInfoLine: #2f7de1;
	--ffoToneWarn: #9a5a00;
	--ffoToneWarnSoft: #fdf1dd;
	--ffoToneWarnLine: #e08600;
	--ffoToneDanger: var(--stpAccent, #c8102e);
	--ffoToneDangerSoft: var(--stpAccentBg, #fbe9ec);
	--ffoToneDangerLine: var(--stpAccentHi, #d5283f);
	--ffoToneNeutral: #6b6b6b;
	--ffoToneNeutralSoft: #efefee;
	--ffoToneNeutralLine: #9a9a9a;

	/* gold family becomes ink (kit focus rings main.css:5778-5779, selected chips, pick outlines) */
	--ffoToneGold: var(--stpInk, #1a1a1a);
	--ffoToneGoldSoft: var(--stpHover, #f5f5f4);
	--ffoToneGoldLine: var(--stpBorder, rgba(0, 0, 0, .14));
	--ffoGold: var(--stpInk, #1a1a1a);
	--ffoGoldSoft: var(--stpHover, #f5f5f4);
	--ffoGoldLine: var(--stpBorder, rgba(0, 0, 0, .14));
	/* .ffo-btn-gold (main.css:5795) fills with --ffoToneGold (ink above) but its label defaults to --rmc-bg #1a1a1a:
	   ink on ink. Surface label + ink hover, like every other STP primary button. */
	--ffoBtnGoldInk: var(--stpSurface, #fff);
	--ffoBtnGoldHover: var(--stpInkHover, #333);

	/* leo + violet tone classes (.ffo-tone-leo / .ffo-tone-violet): ink / neutral so no blue or purple ships */
	--ffoToneLeo: var(--stpInk, #1a1a1a);
	--ffoToneLeoSoft: var(--stpHover, #f5f5f4);
	--ffoToneLeoLine: var(--stpBorder, rgba(0, 0, 0, .14));
	--ffoToneViolet: #6b6b6b;
	--ffoToneVioletSoft: #efefee;
	--ffoToneVioletLine: #9a9a9a;

	/* kit table (.ffo-tbl-kit, row toggles, pick outline) */
	--ffoTblBg: var(--stpSurface, #fff);
	--ffoTblPanel: var(--stpHover, #f5f5f4);
	--ffoTblInputBg: var(--stpSurface, #fff);
	--ffoTblLine: var(--stpHairlineColor, rgba(17, 17, 17, .10));
	--ffoTblRowLine: var(--stpRowDividerColor, rgba(17, 17, 17, .06));
	--ffoTblHeadText: var(--stpInk, #1a1a1a);
	--ffoTblText: var(--stpInk, #1a1a1a);
	--ffoTblText2: var(--stpBody, #333);
	--ffoTblMuted: var(--stpSecondary, #6f6f6f);
	--ffoTblFaint: var(--stpMuted, #9a9a9a);
	--ffoTblZebra: var(--stpZebra, #f7f7f6);
	--ffoTblHover: var(--stpRowHover, #f7f7f6);
	--ffoTblSel: var(--stpHover, #f5f5f4);
	--ffoTblPick: var(--stpInk, #1a1a1a);
	--ffoTblWarn: #fdf1dd;
	--ffoTblBad: var(--stpAccentBg, #fbe9ec);

	/* filter chips + id chip */
	--ffoChipFg: var(--stpSecondary, #6f6f6f);
	--ffoChipLine: var(--stpBorder, rgba(0, 0, 0, .14));
	--ffoChipHover: var(--stpInk, #1a1a1a);
	--ffoIdFg: var(--stpBody, #333);
	--ffoIdLine: var(--stpBorder, rgba(0, 0, 0, .14));
	--ffoIdCopy: var(--stpMuted, #9a9a9a);
	--ffoIdCopyHover: var(--stpInk, #1a1a1a);

	/* markdown editor / preview (.ffo-md-*, .rsf-md) */
	--ffoMdText: var(--stpInk, #1a1a1a);
	--ffoMdText2: var(--stpBody, #333);
	--ffoMdMuted: var(--stpSecondary, #6f6f6f);
	--ffoMdFaint: var(--stpMuted, #9a9a9a);
	--ffoMdLine: var(--stpHairlineColor, rgba(17, 17, 17, .10));
	--ffoMdRowLine: var(--stpRowDividerColor, rgba(17, 17, 17, .06));
	--ffoMdCard: var(--stpSurface, #fff);
	--ffoMdPanel: var(--stpHover, #f5f5f4);
	--ffoMdWell: var(--stpHover, #f5f5f4);
	--ffoMdEdBg: var(--stpSurface, #fff);
	--ffoMdFocus: var(--stpInk, #1a1a1a);
	--ffoMdCaret: var(--stpInk, #1a1a1a);
	--ffoMdCode: var(--stpAccentDeep, #a60d26);
	--ffoMdLink: var(--stpInk, #1a1a1a);

	/* avatars (.ffo-av*): the gold / a3 / a5 fills carry #111 text (main.css:5262-5271), so they stay light greys; a2 / a4 carry #fff text, so they stay mid-dark greys */
	--ffoAvGold: #cfcfcd;
	--ffoAvA2: #6b6b6b;
	--ffoAvA3: #e0e0de;
	--ffoAvA4: #444;
	--ffoAvA5: #bdbdbb;
	--ffoAvMore: var(--stpHover, #f5f5f4);
	--ffoAvRing: var(--stpSurface, #fff);
}

.main{padding-top: 0px;}


/* -------------------------------------------------------------------------
   §1b base type — matching-or-higher specificity (bare selectors lose)
   VERIFY BY COMPUTED STYLE IN PLAYWRIGHT, not by reading CSS.
   ------------------------------------------------------------------------- */

/* beats main.css:78 `body, textarea, input, select` — which also targets form
   controls, so overriding only `body` would leave every control on Open Sans. */
body,
textarea,
input,
select,
button,
.btn {
	font-family: var(--stpFont, -apple-system, system-ui, 'Segoe UI', Helvetica, Arial, sans-serif);
}

/* beats main.css:1340-1341 (0,2,2) — a `* ` selector at 0,2,1 would lose */
section.block.short .kpiBoxV2 h1,
section.block.short .kpiBoxV2 h4 {
	font-family: var(--stpFont, -apple-system, system-ui, 'Segoe UI', Helvetica, Arial, sans-serif);
}

/* beats stpMain.css:166-167 (0,2,2), which still declares Spline Sans */
section.block.short .kpiBox h1,
section.block.short .kpiBox h4 {
	font-family: var(--stpFont, -apple-system, system-ui, 'Segoe UI', Helvetica, Arial, sans-serif);
}

/* beats stpMain.css:31-35 (0,3,2) — a bare h1 loses.
   Size / weight / case belong to Phase 6 (§6). */
.main.filled section.pageHeaderV2 h1,
.main.filled section.pageHeader h1 {
	font-family: var(--stpFont, -apple-system, system-ui, 'Segoe UI', Helvetica, Arial, sans-serif);
}

/* date / number / plate cells — glyph metrics only, no box change, so the
   in-cell chrome exclusions of Phase 2 task 2.2 are unaffected. */
.formRow > div,
.formRow > div input,
.formRow > div select,
.formRow > div .datePicker,
section.block.short .kpiBox span,
section.block.short .kpiBoxV2 span {
	font-variant-numeric: tabular-nums;
}


/* =========================================================================
   §2 controls
   ========================================================================= */

/* -------------------------------------------------------------------------
   2.1 buttons — .formBtn base + variant remap
   -------------------------------------------------------------------------
   Base beats main.css:224-236 at equal specificity (0,1,0) + later source
   order. box-sizing/min-width are load-bearing: the framework ships
   content-box + min-width:65px, and Phase 6's 38x38 icon buttons cannot
   exist until both are neutralised here.
   ------------------------------------------------------------------------- */

.formBtn {
	box-sizing: border-box;
	min-width: 0;
	padding: 8px 15px;
	border-radius: var(--stpPill, 999px);
	border: 1px solid var(--stpBorder, rgba(0, 0, 0, .14));
	background-color: var(--stpSurface, #fff);
	color: var(--stpInk, #1a1a1a);
	font-size: 12.5px;
	font-weight: 600;
	line-height: 1.4;
	margin: 3px;
	white-space: nowrap;
	transition: background-color .14s ease, border-color .14s ease, color .14s ease;
}

/* (0,2,0) — matches main.css:237 */
.formBtn:hover {
	background-color: var(--stpHover, #f5f5f4);
	cursor: pointer;
}

/* ink fill — main.css:262 .primary / main.css:250 .green */
.formBtn.primary,
.formBtn.green {
	background-color: var(--stpInk, #1a1a1a);
	border-color: var(--stpInk, #1a1a1a);
	color: var(--stpSurface, #fff);
}

.formBtn.primary:hover,
.formBtn.green:hover {
	background-color: var(--stpInkHover, #333);
	border-color: var(--stpInkHover, #333);
	color: var(--stpSurface, #fff);
}

/* neutral — main.css:244 .gray / :247 .lightGray / :257 .orange / :267 .secondaryBtn.
   EVERY hover variant is re-declared: main.css:245/248/270 all flip to a blue or
   darker grey fill and keep winning otherwise. */
.formBtn.gray,
.formBtn.lightGray,
.formBtn.orange,
.formBtn.secondaryBtn {
	background-color: var(--stpSurface, #fff);
	border: 1px solid var(--stpBorder, rgba(0, 0, 0, .14));
	color: var(--stpInk, #1a1a1a);
}

.formBtn.gray:hover,
.formBtn.lightGray:hover,
.formBtn.orange:hover,
.formBtn.secondaryBtn:hover {
	background-color: var(--stpHover, #f5f5f4);
	border-color: var(--stpBorder, rgba(0, 0, 0, .14));
	color: var(--stpInk, #1a1a1a);
}

/* .red is TEXT-ONLY accent — never a red fill (plan D4). main.css:253-254. */
.formBtn.red {
	background-color: var(--stpSurface, #fff);
	border: 1px solid var(--stpBorder, rgba(0, 0, 0, .14));
	color: var(--stpAccent, #c8102e);
}

.formBtn.red:hover {
	background-color: var(--stpHover, #f5f5f4);
	border-color: var(--stpBorder, rgba(0, 0, 0, .14));
	color: var(--stpAccentDeep, #a60d26);
}

/* .large: main.css:266 (font-size) + stpMain.css:161 (radius 15px / padding) */
.formBtn.large {
	border-radius: var(--stpPill, 999px);
	padding: 12px 22px;
	font-size: 14px;
}

/* stpMain.css:216-217 ship .gray.large / .red.large at (0,3,0) with a hard
   #c90101 fill and a 2px #333 border — both beat every rule above. */
.formBtn.gray.large,
.formBtn.red.large {
	border: 1px solid var(--stpBorder, rgba(0, 0, 0, .14));
	border-radius: var(--stpPill, 999px);
	background-color: var(--stpSurface, #fff);
	font-weight: 600;
	font-size: 14px;
}

.formBtn.gray.large {
	color: var(--stpInk, #1a1a1a);
}

.formBtn.red.large {
	color: var(--stpAccent, #c8102e);
}

/* split buttons — main.css:277 is `border: none !important`, so this is one of
   the four sanctioned !important cases. MUST stay above the .splitBtnToggle
   rule below: both are !important at (0,2,0), so source order decides the
   left seam. */
.splitBtnWrapper .formBtn {
	border: 1px solid var(--stpBorder, rgba(0, 0, 0, .14)) !important;
	margin: 0;
}

/* main.css:278-279 — 3px square radii replaced by pill halves */
.formBtn.splitBtnPrimary {
	border-radius: var(--stpPill, 999px) 0 0 var(--stpPill, 999px);
}

.formBtn.splitBtnToggle {
	border-radius: 0 var(--stpPill, 999px) var(--stpPill, 999px) 0;
	padding: 8px 12px;
	min-width: 0;
	border-left: 1px solid var(--stpBorder, rgba(0, 0, 0, .14)) !important;
}


/* -------------------------------------------------------------------------
   2.2 inputs — FORM MODE ONLY
   -------------------------------------------------------------------------
   Selector list mirrors main.css:1512-1524 exactly (0,5,2 / 0,4,1 / 0,3,1) so
   it also beats stpMain.css:187-200's border-width re-declaration on later
   source order. `.stdInput` is deliberately dropped from the mirror: it is an
   unscoped (0,1,0) hook with no guarantee it is not used inside a table cell.

   HARD EXCLUSION — `.formRow > div > input/select/textarea` are NOT touched.
   main.css:1736-1743 makes in-cell controls borderless on purpose and
   main.css:1747 sets `.formRow > div{overflow:hidden}`, so a 999px border with
   11/16px padding would inflate every row and clip the pill. In-cell chrome is
   Phase 4's.
   ------------------------------------------------------------------------- */

section.block.long .longBlock.formInput input[type='text'],
section.block.long .longBlock.formInput input[type='number'],
section.block.long .longBlock.formInput input[type='password'],
section.block.long .longBlock.formInput input[type='date'],
section.block.long .longBlock.formInput input[type='time'],
section.block.long .longBlock.formInput input[type='datetime-local'],
section.block.long .longBlock.formInput input[type='email'],
section.block.long .longBlock.formInput input[type='tel'],
section.block.long .longBlock.formInput input[type='url'],
section.block.long .longBlock.formInput input[type='search'],
section.block.long .longBlock.formInput textarea,
.formRow .popUpBox textarea,
.formRow .popUpBox input:not(.excludeFormPopRow),
.formRow .popUpBox select,
section.block.long .longBlock.formInput select {
	border: 1px solid var(--stpBorder, rgba(0, 0, 0, .14));
	border-radius: var(--stpPill, 999px);
	padding: 11px 16px;
	font-size: 14px;
	margin: 6px 0 0;
	background-color: var(--stpSurface, #fff);
	color: var(--stpInk, #1a1a1a);
	outline: none;
}

/* focus — no outline, border darkens only.
   RUNTIME-CONFIRMED SPECIFICITY FIX: main.css:1612-1620 declares the focus
   border as #0D80A0 (a fourth brand colour) with PER-TYPE selectors at
   (0,6,2). A `... .formInput input:focus` rule is only (0,5,2) and LOSES — on
   /login the autofocused email field rendered a teal pill until this list was
   expanded type-by-type. --stpBorderFocus is intentionally undefined today;
   the fallback carries the value so Phase 1/12 can promote it to a token
   without touching this rule. */
section.block.long .longBlock.formInput input[type='text']:focus,
section.block.long .longBlock.formInput input[type='number']:focus,
section.block.long .longBlock.formInput input[type='password']:focus,
section.block.long .longBlock.formInput input[type='date']:focus,
section.block.long .longBlock.formInput input[type='time']:focus,
section.block.long .longBlock.formInput input[type='datetime-local']:focus,
section.block.long .longBlock.formInput input[type='email']:focus,
section.block.long .longBlock.formInput input[type='tel']:focus,
section.block.long .longBlock.formInput input[type='url']:focus,
section.block.long .longBlock.formInput input[type='search']:focus,
section.block.long .longBlock.formInput textarea:focus,
section.block.long .longBlock.formInput select:focus,
.formRow .popUpBox textarea:focus,
.formRow .popUpBox input:not(.excludeFormPopRow):focus,
.formRow .popUpBox select:focus {
	border-color: var(--stpBorderFocus, rgba(0, 0, 0, .34));
	outline: none;
}

/* form-mode submit/button inputs — main.css:1622-1624 gives these a 5px radius
   and `border: none` at (0,5,2), so the .formBtn base above cannot reach them
   even when the class is present. */
section.block.long .longBlock.formInput input[type='button'],
section.block.long .longBlock.formInput input[type='submit'] {
	border-radius: var(--stpPill, 999px);
	border: 1px solid var(--stpBorder, rgba(0, 0, 0, .14));
	background-color: var(--stpSurface, #fff);
	color: var(--stpInk, #1a1a1a);
	padding: 11px 16px;
	font-size: 14px;
	font-weight: 600;
	margin: 10px 0 0;
}

section.block.long .longBlock.formInput input[type='button'].primary,
section.block.long .longBlock.formInput input[type='submit'].primary {
	background-color: var(--stpInk, #1a1a1a);
	border-color: var(--stpInk, #1a1a1a);
	color: var(--stpSurface, #fff);
}

section.block.long .longBlock.formInput input[type='button']:hover,
section.block.long .longBlock.formInput input[type='submit']:hover {
	background-color: var(--stpHover, #f5f5f4);
	cursor: pointer;
}

section.block.long .longBlock.formInput input[type='button'].primary:hover,
section.block.long .longBlock.formInput input[type='submit'].primary:hover {
	background-color: var(--stpInkHover, #333);
	color: var(--stpSurface, #fff);
}

section.block.long .longBlock.formInput input::placeholder,
section.block.long .longBlock.formInput textarea::placeholder,
.formRow .popUpBox input::placeholder,
.formRow .popUpBox textarea::placeholder {
	color: var(--stpMuted, #9a9a9a);
}

/* select — main.css:1526-1533 is ONE rule: it owns min-height, the
   appearance:none caret svg, padding-right:1.75em and background-position.
   Mirror the selector pair so the pill padding leaves room for the caret.
   The caret svg itself is left alone: a data-URI cannot carry a var(), and
   hard-coding a hex there would breach HARD RULE 6. */
section.block.long .longBlock.formInput select,
.formRow .popUpBox select {
	padding: 10px 34px 10px 16px;
	min-height: 40px;
	line-height: 1.3;
	background-position: right 14px center;
}

/* textarea keeps the 14px card radius — main.css:1540-1542 (border-width:2px) */
section.block.long .longBlock.formInput textarea,
.formRow .popUpBox textarea {
	border-radius: var(--stpRadius, 14px);
	border-width: 1px;
	height: 100px;
}

/* read-only keeps the grey + italic treatment, now on the pill border.
   Beats main.css:1535-1537 (0,5,2) and stpMain.css:201-204 (0,6,2).

   RUNTIME-CONFIRMED BUG FIX: the types are enumerated rather than using a bare
   `input:read-only`, because per spec `:read-only` ALSO matches inherently
   non-editable inputs — button, submit, checkbox, radio, file. A generic
   `... .formInput input:read-only` rule painted every form-mode button grey
   with italic text. (main.css:1535 has the same latent bug and still tints
   those #eee; the input[type='button'] / [type='submit'] rule above wins over
   it on equal specificity + later source order.) */
section.block.long .longBlock.formInput input[type='text']:read-only,
section.block.long .longBlock.formInput input[type='number']:read-only,
section.block.long .longBlock.formInput input[type='password']:read-only,
section.block.long .longBlock.formInput input[type='date']:read-only,
section.block.long .longBlock.formInput input[type='time']:read-only,
section.block.long .longBlock.formInput input[type='datetime-local']:read-only,
section.block.long .longBlock.formInput input[type='email']:read-only,
section.block.long .longBlock.formInput input[type='tel']:read-only,
section.block.long .longBlock.formInput input[type='search']:read-only,
section.block.long .longBlock.formInput input[type='url']:read-only,
section.block.long .longBlock.formInput textarea:read-only {
	background-color: var(--stpHover, #f5f5f4);
	font-style: italic;
	color: var(--stpSecondary, #6f6f6f);
}

/* dateSelect renders a readonly text input (FormV2 .datePicker) that opens a
   picker: it is editable, so it keeps the normal white pill, not the grey
   read-only look. A genuinely disabled one stays grey (:disabled excluded). */
section.block.long .longBlock.formInput input.datePicker[type='text']:read-only:not(:disabled) {
	background-color: var(--stpSurface, #fff);
	font-style: normal;
	color: var(--stpInk, #1a1a1a);
	cursor: pointer;
}

/* stpMain.css:206-208 */
section.block.long .longBlock.formInput input[type='text']:read-only:focus,
section.block.long .longBlock.formInput textarea:read-only:focus {
	border-color: var(--stpBorder, rgba(0, 0, 0, .14));
}


/* -------------------------------------------------------------------------
   2.3 search field + results dropdown
   -------------------------------------------------------------------------
   `.searchInputWrapper` is NEVER targeted bare: the class doubles as a marker
   on non-field <i> elements (FormV2.php:476 filter trigger, FormV2.php:511
   help trigger, FormRowHelp.php:177 row help), which would otherwise collect a
   999px border and 11/16px padding. Guarded twice here: the `div` type
   qualifier excludes the <i> markers, and the form-mode prefix keeps in-cell
   wrappers (main.css:1766) out of scope — those are Phase 4's.
   Beats main.css:3809-3814 (0,6,2) with (0,6,3).
   ------------------------------------------------------------------------- */

section.block.long .longBlock.formInput div.searchInputWrapper.searchDependantV2 {
	border: 1px solid var(--stpBorder, rgba(0, 0, 0, .14));
	border-radius: var(--stpPill, 999px);
	background-color: var(--stpSurface, #fff);
	padding: 10px 16px;
	margin-top: 6px;
	gap: 8px;
	box-sizing: border-box;
}

section.block.long .longBlock.formInput div.searchInputWrapper.searchDependantV2 i {
	font-size: 14.5px;
	color: var(--stpMuted, #9a9a9a);
	padding: 0;
	margin-top: 0;
}

section.block.long .longBlock.formInput div.searchInputWrapper.searchDependantV2 input::placeholder {
	color: var(--stpMuted, #9a9a9a);
}

/* results dropdown — card treatment.
   PRESERVES the anchor-positioning contract at main.css:3825-3841: no
   position, no inset, no width and no overflow is declared here, so
   anchor-name / position-anchor / position-try-fallbacks are untouched.
   Corner clipping is done with per-row radii instead of overflow:hidden for
   the same reason. `div.searchResult` (0,1,2) beats main.css:1473 (0,1,0);
   `.formRow div.actionFunctionResult` mirrors its own (0,2,1). */
div.searchResult,
.formRow div.actionFunctionResult {
	background-color: var(--stpSurface, #fff);
	border: var(--stpHairline, 1px solid rgba(17, 17, 17, .10));
	border-radius: var(--stpRadius, 14px);
	box-shadow: var(--stpShadowMenu, 0 12px 32px rgba(0, 0, 0, .14));
	font-size: 14px;
}

/* beats the nested `& > div` (0,1,1) inside main.css:1473 */
div.searchResult > div,
.formRow div.actionFunctionResult > div {
	background-color: var(--stpSurface, #fff);
	border-bottom: var(--stpRowDivider, 1px solid rgba(17, 17, 17, .06));
	padding: 9px 14px;
}

div.searchResult > div:first-child,
.formRow div.actionFunctionResult > div:first-child {
	border-radius: var(--stpRadius, 14px) var(--stpRadius, 14px) 0 0;
}

div.searchResult > div:last-child,
.formRow div.actionFunctionResult > div:last-child {
	border-bottom: 0;
	border-radius: 0 0 var(--stpRadius, 14px) var(--stpRadius, 14px);
}

/* beats the nested `div:hover:not(.noLink)` (0,3,1) with (0,3,2) */
div.searchResult > div:hover:not(.noLink),
.formRow div.actionFunctionResult > div:hover:not(.noLink) {
	background-color: var(--stpRowHover, #f7f7f6);
}


/* -------------------------------------------------------------------------
   2.4 multiSelect checkbox rows — REDUCED, CSS-ONLY (recorded deviation)
   -------------------------------------------------------------------------
   Formatter.php:500 and :528 emit a raw
   `<input type='checkbox' style='width: 20px; height: 20px'>` with NO
   .cbcon/.checkmark companion markup, and an inline style beats any
   stylesheet. Editing that shared output is forbidden (HARD RULE 2), so there
   is NO rounded ink-fill box here — accent-color is the whole treatment.
   width/height !important is one of the four sanctioned cases.
   Mirrors main.css:1507 (0,3,2) at equal specificity + later source order.
   ------------------------------------------------------------------------- */

.formRow .searchResult > div.multiSelect {
	grid-template-columns: 17px 1fr;
	grid-gap: 0 10px;
	padding: 8px 14px;
}

.formRow .searchResult > div.multiSelect:hover {
	background-color: var(--stpRowHover, #f7f7f6);
}

.formRow .searchResult > div.multiSelect input[type='checkbox'] {
	width: 17px !important;
	height: 17px !important;
	accent-color: var(--stpInk, #1a1a1a);
	margin: 0;
	cursor: pointer;
}


/* -------------------------------------------------------------------------
   2.5 field labels
   -------------------------------------------------------------------------
   A bare `.subject label` (0,1,1) LOSES to main.css:1645 (0,4,2). The
   :not(.cbcon):not(.toggle-switch-wrapper) guards mirror the framework's own
   pattern at main.css:1644 — .cbcon and .toggle-switch-wrapper are themselves
   <label> elements and must not inherit the label box model.
   ------------------------------------------------------------------------- */

section.block.long .longBlock.formInput .subject label:not(.cbcon):not(.toggle-switch-wrapper) {
	font-size: 12px;
	font-weight: 500;
	color: var(--stpMuted, #9a9a9a);
	text-transform: none;
	font-style: normal;
	letter-spacing: 0;
	margin-bottom: 8px;
}

.formFieldLabel > label {
	margin: 0 0 8px;
	min-width: 0;
	font-size: 12px;
	font-weight: 500;
	color: var(--stpMuted, #9a9a9a);
	text-transform: none;
	font-style: normal;
	letter-spacing: 0;
}

/* main.css:1646 — #b83037 is a second red; collapse onto the one accent */
section.block.long .longBlock.formInput .subject label span.formRequired {
	color: var(--stpAccent, #c8102e);
	font-size: 0.85em;
}


/* -------------------------------------------------------------------------
   2.6 cards
   -------------------------------------------------------------------------
   There is no bare `.sectionBox{}` rule to override — the real ones are
   main.css:800 `.main .sectionBox` (0,2,0), main.css:997
   `.main .sectionBox.formContainerV1` (0,3,0) and main.css:841
   `.main .sectionBox.collapsableOuter` (0,3,0). The :not() chain lifts this to
   (0,13,0) so it beats all three, and simultaneously spares the variants that
   are group wrappers or deliberately chrome-free — notably
   `.ffoFileCellHost.sectionBox` (main.css:4286) which zeroes
   border/background/shadow at equal specificity.
   PHASE 6 ADDITION (sanctioned by constraint P2-D3): `:not(.stpToolbar)` — the
   §6 count/search/actions strip is a chrome-free wrapper that sits directly on
   top of the table card, so a 14px card border there renders a card-in-a-card.
   TabV1 groups are also chrome-free (`:not(.tab-container)`): elementTabV1Group
   wraps in sectionBox, and a card around the tab bar reads as a folder-in-a-card.
   ------------------------------------------------------------------------- */

.main .sectionBox:not(.kpiBlockV3):not(.kpiBlockV3Lrg):not(.kpiBlockV3-5w):not(.kpiBlockV3-6w):not(.kpiV3WrapVertical):not(.kpiV3WrapVerticalNoWrap):not(.ffoFileCellHost):not(.collapsableV2):not(.collapsableV2Parent):not(.collapsableV2ParentGrid):not(.kpiV3):not(.stpToolbar):not(.tab-container) {
	background-color: var(--stpSurface, #fff);
	border: 1px solid var(--stpHairlineColor, rgba(17, 17, 17, .10));
	border-radius: var(--stpRadius, 14px);
	box-shadow: var(--stpShadow, 0 1px 2px rgba(0, 0, 0, .05));
}

/* Tables already paint their own card on .hsHeader + .lazyLoadTarget.
   A wrapping .sectionBox was a second outline (Ticket Management, Vehicles).
   Same :not() chain as the card rule, plus :has(), so this wins on count.
   Collapsible cards (.collapsableOuter) and opted-in .stpTableCard hosts are exempt:
   their tables are not horizontalScrollable, so nothing else paints the card (Access Levels). */
.main .sectionBox:not(.kpiBlockV3):not(.kpiBlockV3Lrg):not(.kpiBlockV3-5w):not(.kpiBlockV3-6w):not(.kpiV3WrapVertical):not(.kpiV3WrapVerticalNoWrap):not(.ffoFileCellHost):not(.collapsableV2):not(.collapsableV2Parent):not(.collapsableV2ParentGrid):not(.kpiV3):not(.stpToolbar):not(.collapsableOuter):not(.stpTableCard):has(.horizontalScrollable),
.main .sectionBox:not(.kpiBlockV3):not(.kpiBlockV3Lrg):not(.kpiBlockV3-5w):not(.kpiBlockV3-6w):not(.kpiV3WrapVertical):not(.kpiV3WrapVerticalNoWrap):not(.ffoFileCellHost):not(.collapsableV2):not(.collapsableV2Parent):not(.collapsableV2ParentGrid):not(.kpiV3):not(.stpToolbar):not(.collapsableOuter):not(.stpTableCard):has(.formRow.head) {
	background-color: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
}

/* Settings-row forms (FormProperties->settingsRows()) draw each section as its own kit card (.ffo-set-form > .ffo-card),
   and wrapInFormTags('sectionBox') painted a second card around them (MC client detail Modules & features: the module
   package and Features forms). The wrapper sheds its frame and padding. Same chain as the card rule plus :has() (0,16,0),
   so it beats the card rule (0,15,0); the form.sectionBox rule further down no longer does. */
.main .sectionBox:not(.kpiBlockV3):not(.kpiBlockV3Lrg):not(.kpiBlockV3-5w):not(.kpiBlockV3-6w):not(.kpiV3WrapVertical):not(.kpiV3WrapVerticalNoWrap):not(.ffoFileCellHost):not(.collapsableV2):not(.collapsableV2Parent):not(.collapsableV2ParentGrid):not(.kpiV3):not(.stpToolbar):not(.tab-container):has(.ffo-set-form) {
	background-color: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	padding: 0;
}

/* Filter wrappers were a second card above the table (Letters, Vehicles).
   Filters sit on the canvas, never in a card. The id beats the card rule's
   (0,15,0) :not() chain, which the form.sectionBox rule below no longer does.
   The second selector catches a card nested in the wrapper: letterNotice is
   div#filterOptions.sectionBox > form#filterLetters.sectionBox. */
.main :is(#filterOptions, #filterEmailNotices, #filterWhitelistReport, #filterPastDueTickets).sectionBox,
.main :is(#filterOptions, #filterEmailNotices, #filterWhitelistReport, #filterPastDueTickets).sectionBox .sectionBox {
	background-color: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
}

/* Filter / page forms were a third rounded box above the table. Fields keep
   their pill chrome; the wrapper does not. form.sectionBox + the same :not()
   chain is (0,14,1) and beats the card rule (0,14,0). */
.main form.sectionBox:not(.kpiBlockV3):not(.kpiBlockV3Lrg):not(.kpiBlockV3-5w):not(.kpiBlockV3-6w):not(.kpiV3WrapVertical):not(.kpiV3WrapVerticalNoWrap):not(.ffoFileCellHost):not(.collapsableV2):not(.collapsableV2Parent):not(.collapsableV2ParentGrid):not(.kpiV3):not(.stpToolbar) {
	background-color: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
}

/* Opt-in: a .sectionBox that keeps its layout (width, float, centring) but drops
   the card — search bars and hosts whose content already draws its own card
   (Help Center search/videos, Support Topics search, the support chat column).
   The card rule's chain + .stpNoCard wins on count. */
.main .sectionBox.stpNoCard:not(.kpiBlockV3):not(.kpiBlockV3Lrg):not(.kpiBlockV3-5w):not(.kpiBlockV3-6w):not(.kpiV3WrapVertical):not(.kpiV3WrapVerticalNoWrap):not(.ffoFileCellHost):not(.collapsableV2):not(.collapsableV2Parent):not(.collapsableV2ParentGrid):not(.kpiV3):not(.stpToolbar):not(.tab-container) {
	background-color: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
}

/* Collapsible cards (elementCollapsableV2Group, e.g. the Access Levels permission modules) keep the card above.
   stpMain.css `.main .sectionBox.noAdditionalSpace{padding:10px 0}` (MC-shared, not edited) beat main.css's
   `.collapsableV2{padding-top:0;padding-bottom:0}` on source order, so a closed card kept 20px of empty body.
   (0,4,0) / (0,5,0) beat both. */
.main .sectionBox.collapsableOuter:not(.vertical) {
	padding: 12px 16px;
}

.main .sectionBox.collapsableOuter .sectionBox.collapsableV2.noAdditionalSpace {
	padding-top: 0;
	padding-bottom: 0;
}

.main .sectionBox.collapsableOuter .sectionBox.collapsableV2.noAdditionalSpace.active {
	padding-top: 10px;
}

/* Opt-in: a .sectionBox around a plain (non-horizontalScrollable) FormV2 table keeps the card and lets the rows run
   edge to edge, so the gap between painted cells shows card, not canvas (Access Levels level list). */
.main .sectionBox.stpTableCard {
	padding: 0;
	overflow: hidden;
	align-self: flex-start;    /* the page row is a stretching flex row; the card hugs its rows */
}

/* Support Topics search: the form-mode `half` cell (50%) leaves the input at ~46%
   once the clear icon takes its share; 60% keeps it over half, still centred. */
.main #supportTopicSearch section.block.search {
	width: 60%;
}

/* Flat filter header. Filters sit on the canvas, not in a card (user decision).
   Beats main.css:806 `.main .sectionBox h2` (0,2,1) and main.css `.main .sectionBox`
   padding (0,2,0) via the filter-form id (1,x,x). Scoped by id so settings
   forms that also open with an h2 (paymentFeeStructure, areasDetail,
   userProfileSettings) keep their heading. */
.main :is(#filterOptions, #filterEmailNotices, #filterWhitelistReport, #filterPastDueTickets).sectionBox:has(> h2:first-child) {
	padding: 0 0 4px;
}

.main :is(#filterOptions, #filterEmailNotices, #filterWhitelistReport, #filterPastDueTickets).sectionBox > h2:first-child {
	font-size: 13px;
	font-weight: 600;
	text-align: left;
	color: var(--stpSecondary, #6b6b6b);
	margin: 0 0 6px;
}

/* KPI chip — main.css:3528 (0,2,0).
   RUNTIME-CONFIRMED SPECIFICITY FIX: kpiV3 renders as a <section>, and
   main.css `.main.filled section{padding: 0 10px}` is (0,2,1) — it beat a bare
   `.sectionBox.kpiV3` (0,2,0) and the vertical padding stayed 0. The
   element-qualified second selector is what actually lands. */
.sectionBox.kpiV3,
.main.filled section.sectionBox.kpiV3 {
	background-color: var(--stpSurface, #fff);
	border: 1px solid var(--stpHairlineColor, rgba(17, 17, 17, .10));
	border-radius: var(--stpRadius, 14px);
	box-shadow: var(--stpShadow, 0 1px 2px rgba(0, 0, 0, .05));
	padding: 10px 12px;
}

/* re-assert main.css:947's intent above the rule directly above: KPIs sitting
   inside a collapsable header stay chrome-free, otherwise they read as
   cards-inside-a-card. `padding: 0 10px` reproduces today's effective value
   (main.css:946 is commented out, so `.main.filled section` governs there). */
.collapsableHeader .sectionBox.kpiV3,
.main.filled .collapsableHeader section.sectionBox.kpiV3 {
	background-color: transparent;
	border: 0;
	box-shadow: none;
	padding: 0 10px;
}

.sectionBox.kpiV3 > div.textWrap .subtext {
	color: var(--stpMuted, #9a9a9a);
}

/* KPI card — stpMain.css:164 (0,3,2) is the ACTUAL home of the
   `3px 3px 10px 0 #ddd` shadow and the #ccc border, not framework
   main.css:1297. Geometry (width / margin) is deliberately left alone: the
   `:nth-child(4n)` companion at stpMain.css:165 depends on it. */
section.block.short > div.kpiBox {
	background-color: var(--stpSurface, #fff);
	border: 1px solid var(--stpHairlineColor, rgba(17, 17, 17, .10));
	border-radius: var(--stpRadius, 14px);
	box-shadow: var(--stpShadow, 0 1px 2px rgba(0, 0, 0, .05));
}

section.block.short .kpiBox h1 {
	color: var(--stpInk, #1a1a1a);
}

section.block.short .kpiBox h4 {
	color: var(--stpMuted, #9a9a9a);
}

/* 4.4 CG leak — stpMain.css:166-167 (0,2,2) still declares Spline Sans.
   Equal spec + later source order. Color is already retargeted above. */
section.block.short .kpiBox h1,
section.block.short .kpiBox h4 {
	font-family: var(--stpFont, -apple-system, system-ui, 'Segoe UI', Helvetica, Arial, sans-serif);
}

/* Leftover PageKPI kpiBoxV2 tiles (main.css:1333 #ccc + drop shadow). */
section.block.short > div.kpiBoxV2 {
	border: 1px solid var(--stpHairlineColor, rgba(17, 17, 17, .10));
	border-radius: var(--stpRadius, 14px);
	box-shadow: none;
	background-color: var(--stpSurface, #fff);
}

section.block.short .kpiBoxV2 .kpi.blue {
	color: var(--stpInk, #1a1a1a);
}

section.block.short .kpiBoxV2 .kpi.green {
	color: var(--stpGood, #1a9d54);
}

section.block.short .kpiBoxV2 .kpi.red {
	color: var(--stpAccent, #c8102e);
}

/* -------------------------------------------------------------------------
   2.6b  PageKPIV2 type('strip') — CG light restyle
   -------------------------------------------------------------------------
   Framework main.css:3544 is a dark bar. Equal (0,1,0) + later source order
   wins. Cells come from PageKPIV2::wrapStrip() / type('strip').
   ------------------------------------------------------------------------- */

.kpiStrip {
	overflow: hidden;
	margin: 0 0 16px;
	width: 100%;
	box-sizing: border-box;
	border: 1px solid var(--stpHairlineColor, rgba(17, 17, 17, .10));
	border-radius: var(--stpRadius, 14px);
	background: var(--stpSurface, #fff);
	box-shadow: none;
}

.kpiStripRow {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	justify-content: stretch;
	align-items: stretch;
	gap: 0;
	width: 100%;
	box-sizing: border-box;
}

.kpiStrip-cols2 .kpiStripRow {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.kpiStrip-cols3 .kpiStripRow {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.kpiStripCell {
	min-width: 0;
	padding: 16px 20px;
	background: transparent;
	border-right: 0;
	box-shadow: 1px 0 0 0 var(--stpHairlineColor, rgba(17, 17, 17, .10)),
		0 1px 0 0 var(--stpHairlineColor, rgba(17, 17, 17, .10));
}

.kpiStripValue {
	font-family: var(--stpFont, -apple-system, system-ui, 'Segoe UI', Helvetica, Arial, sans-serif);
	font-size: 28px;
	font-weight: 700;
	letter-spacing: -.02em;
	font-variant-numeric: tabular-nums;
	line-height: 1.15;
	color: var(--stpInk, #1a1a1a);
	white-space: nowrap;
}

.kpiStripValue.blue,
.kpiStripValue.gray,
.kpiStripValue.purple {
	color: var(--stpInk, #1a1a1a);
}

.kpiStripValue.green {
	color: var(--stpGood, #1a9d54);
}

.kpiStripValue.red {
	color: var(--stpAccent, #c8102e);
}

.kpiStripValue.orange,
.kpiStripValue.yellow {
	color: var(--stpEnfLow, #d98200);
}

.kpiStripLabel {
	font-size: 12px;
	font-weight: 500;
	color: var(--stpMuted, #9a9a9a);
	margin-top: 4px;
	white-space: normal;
}

.kpiStripSub {
	font-size: 11px;
	font-weight: 400;
	color: var(--stpMuted, #9a9a9a);
	opacity: 1;
	margin-top: 2px;
	line-height: 1.3;
}

.kpiStripCell.alert {
	background: var(--stpAccentBg, #fbe9ec);
}


/* -------------------------------------------------------------------------
   2.7 modals
   -------------------------------------------------------------------------
   POSITIONING IS PHASE 5'S (task 5.9): no margin-left / left / width / top is
   declared here. main.css:473-552 and :732-741 own those and keep them.
   `.popUpBox.commentThreadPopUp` (main.css:501, border:none;background:none)
   is at (0,2,0) and still wins — intentional.
   ------------------------------------------------------------------------- */

.popUpBox {
	background-color: var(--stpSurface, #fff);
	border: 1px solid var(--stpHairlineColor, rgba(17, 17, 17, .10));
	border-radius: var(--stpRadius, 14px);
	box-shadow: var(--stpShadowModal, 0 24px 70px rgba(0, 0, 0, .20));
	color: var(--stpInk, #1a1a1a);
}

/* header row + bottom hairline — main.css:555 `.popUpBox > h1` (0,1,1) */
.popUpBox > h1 {
	font-size: 15px;
	font-weight: 700;
	color: var(--stpInk, #1a1a1a);
	border-bottom: var(--stpHairline, 1px solid rgba(17, 17, 17, .10));
	padding: 0 0 14px;
	margin: 0 0 18px;
}

/* main.css:521 (0,3,0) */
.popUpBox .head:not(.formRow) {
	font-size: 15px;
	font-weight: 700;
	color: var(--stpInk, #1a1a1a);
}

/* main.css:524 — italic + var(--blue) subtitle becomes muted sentence text */
.popUpBox .head.sub {
	font-size: 12px;
	font-style: normal;
	font-weight: 500;
	color: var(--stpMuted, #9a9a9a);
}

/* modal actions live in the header cluster (buildPopUpWrapper's `headBtn`
   renders into `.popUpBox .headBtns` inside `> h1`) — main.css:531.
   Clear/Apply pick up their neutral/primary treatment from 2.1 automatically. */
.popUpBox .headBtns {
	justify-content: flex-end;
	gap: 8px;
}

/* main.css:532-545 — the close affordance is currently a pink/red glyph */
.popUpBoxCloseBtn {
	font-size: 22px;
	height: 22px;
	line-height: 22px;
	color: var(--stpMuted, #9a9a9a);
}

.popUpBoxCloseBtn:hover {
	color: var(--stpInk, #1a1a1a);
	cursor: pointer;
}

.popUpBoxCloseBtn:active {
	color: var(--stpSecondary, #6f6f6f);
}

/* generic close glyph (main.css:594-606 paints it red #A9383B on hover):
   colour only, size untouched. Same specificity as main.css, later source. */
.closeBtn {
	color: var(--stpMuted, #9a9a9a);
}

.closeBtn:hover {
	color: var(--stpInk, #1a1a1a);
}

.closeBtn:active {
	color: var(--stpSecondary, #6f6f6f);
}


/* -------------------------------------------------------------------------
   2.8 status pills
   -------------------------------------------------------------------------
   CRITICAL — main.css:1204 and main.css:1217 both declare `color:#fff`, which
   on a near-white pill renders invisible text application-wide. The
   `!important` on colour here is one of the four sanctioned cases.

   BACKGROUND IS NOT SET beyond a single neutral default: the pill background
   comes from PHP via the tag's `color` key and is emitted INLINE by
   FormV2.php:1269 (select variant :1250), so an inline value always wins. The
   `--pc` custom property carries that same colour, which is what feeds the dot.
   Exception: the enforcement chip background comes from `--pcBg` via
   `#enforcementSessionsForm .stpEnfChips .ffo-tag-pill` (§10.4); Phase 16.7
   dropped the inline background there.

   `.apTagDim` (main.css:1237-1262, all !important at (0,2,0)) is OUT OF SCOPE
   for CG and keeps winning untouched.
   ------------------------------------------------------------------------- */

.ffo-tag-pill {
	padding: 3px 9px 3px 7px;
	border-radius: var(--stpPill, 999px);
	font-size: 11px;
	font-weight: 600;
	line-height: 16px;
	gap: 5px;
	border: 0;
	color: var(--stpInk, #1a1a1a) !important;
	background-color: var(--stpHover, #f5f5f4);
}

.ffo-tag-pill::before {
	content: '';
	flex: none;
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background-color: var(--pcDot, var(--pc, var(--stpMuted,#9a9a9a)));
}

/* main.css:1210 — keep the large variant a real step up */
.ffo-tag-pill-lg {
	font-size: 12px;
	padding: 4px 11px 4px 9px;
}

/* main.css:1217 — the editable select variant of the same pill */
.ffo-tag-pills select.ffo-tag-select {
	border-radius: var(--stpPill, 999px);
	font-size: 11px;
	font-weight: 600;
	line-height: 16px;
	padding: 3px 9px;
	color: var(--stpInk, #1a1a1a) !important;
}

/* STP's own badges (stpMain.css:242-270) land on the same pill so nothing
   looks orphaned mid-migration. The status colour moves to the dot. */
.badge {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 3px 9px 3px 7px;
	border-radius: var(--stpPill, 999px);
	border: 1px solid var(--stpBorder, rgba(0, 0, 0, .14));
	background-color: var(--stpSurface, #fff);
	color: var(--stpInk, #1a1a1a);
	font-size: 11px;
	font-weight: 600;
	line-height: 16px;
	text-transform: none;
	letter-spacing: 0;
}

.badge.orange,
.badge.red,
.badge.green,
.badge.white {
	background-color: var(--stpSurface, #fff);
	border: 1px solid var(--stpBorder, rgba(0, 0, 0, .14));
	color: var(--stpInk, #1a1a1a);
}

.badge::before {
	content: '';
	flex: none;
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background-color: var(--stpMuted, #9a9a9a);
}

.badge.red::before {
	background-color: var(--stpAccent, #c8102e);
}

.badge.green::before {
	background-color: var(--stpGood, #1a9d54);
}

.badge.orange::before {
	background-color: var(--stpWarn, #b8791f);
}


/* -------------------------------------------------------------------------
   2.9 toggle switch + checkbox
   -------------------------------------------------------------------------
   CORRECT DOM: `.toggle-switch-slider` is the TRACK (main.css:3332); the KNOB
   is `.toggle-switch-slider::before` (main.css:3338) and the checked transform
   lives on `.toggle-switch-wrapper input:checked + .toggle-switch-slider::before`
   (main.css:3360).
   VERIFIED: neither `--bg-color-alt` nor `--primary-color` is defined anywhere
   in the framework or in Phase 1's token block, so the framework's #ccc / #0d6efd
   fallbacks are what render today — both are re-pointed below rather than
   loosely defined as tokens.
   Geometry: track 42x23, knob 17x17 inset 3px, so 3 + 17 + 19 + 3 = 42.
   SIDE LABELS ARE PHASE 3'S (the toggleSwitch sideLabels option) —
   `.toggle-switch-label.off/.on` does not exist in the DOM yet, so nothing is
   styled for it here.
   ------------------------------------------------------------------------- */

.toggle-switch-wrapper {
	width: 42px;
	height: 23px;
}

/* TRACK — stays white in both states; position alone signals state */
.toggle-switch-slider {
	background: var(--stpSurface, #fff);
	border: 1px solid var(--stpBorder, rgba(0, 0, 0, .14));
	border-radius: var(--stpPill, 999px);
	box-sizing: border-box;
	transition: border-color .16s ease;
}

/* main.css:3356 — the checked track flips to var(--primary-color,#0d6efd) */
.toggle-switch-wrapper input:checked + .toggle-switch-slider {
	background: var(--stpSurface, #fff);
	border-color: var(--stpBorder, rgba(0, 0, 0, .14));
}

/* KNOB — the single accent, per plan D4 (never a fill on a button) */
.toggle-switch-slider::before {
	top: 3px;
	left: 3px;
	width: 17px;
	height: 17px;
	background: var(--stpAccent, #c8102e);
	border-radius: 50%;
	box-shadow: none;
	transition: transform .16s ease;
}

/* main.css:3360 */
.toggle-switch-wrapper input:checked + .toggle-switch-slider::before {
	transform: translateX(19px);
}

/* checkbox — all four selectors retuned from a 25px grey square to a 17px box.
   main.css:3289 .cbcon / :3292 .checkmark / :3301 checked / :3310 tick.
   padding-left stays 25px on purpose: 17px box + 8px gutter. */
.cbcon {
	min-height: 17px;
	min-width: 17px;
	padding-left: 25px;
	font-size: 22px;
	padding-bottom: 0;
	margin-bottom: 8px;
}

.checkmark {
	top: 0;
	left: 0;
	width: 17px;
	height: 17px;
	border-radius: 5px;
	background-color: var(--stpSurface, #fff);
	border: 1px solid var(--stpBorder, rgba(0, 0, 0, .14));
	box-sizing: border-box;
}

/* main.css:3295 (0,4,1) */
.cbcon:hover input:not(:disabled) ~ .checkmark {
	background-color: var(--stpHover, #f5f5f4);
	border-color: var(--stpBorderFocus, rgba(0, 0, 0, .34));
}

/* main.css:3300-3302 — #2196F3 becomes the ink fill */
.cbcon input:checked ~ .checkmark {
	background-color: var(--stpInk, #1a1a1a);
	border-color: var(--stpInk, #1a1a1a);
}

/* main.css:3310 — tick rescaled from the 25px box (left:9px/top:5px/5x10) */
.cbcon .checkmark:after {
	left: 5px;
	top: 2px;
	width: 4px;
	height: 8px;
	border: solid var(--stpSurface, #fff);
	border-width: 0 2px 2px 0;
}


/* -------------------------------------------------------------------------
   2.10 standard TabV1 (elementTabV1Group default mode)
   -------------------------------------------------------------------------
   utilities.css ships grey folder tabs (background #f1f1f1, 4px radius,
   1px #ccc). STP restyles the DEFAULT Tab mode to a hairline underline
   strip. Buttons keep intrinsic width + nowrap + overflow-x scroll on
   `.tab-buttons-scroll` (framework default) — they do NOT flex-grow to
   fill the row. Switch / Headless / CheckSelect / ChatV1 are excluded.
   ------------------------------------------------------------------------- */

.main .tab-container:not(.tab-container-switch):not(.tab-container-headless):not(.tab-container-checkselect) .tab-buttons {
	border-bottom: 1px solid var(--stpHairlineColor, rgba(17, 17, 17, .10));
	flex-wrap: nowrap;
}

.main .tab-container:not(.tab-container-switch):not(.tab-container-headless):not(.tab-container-checkselect) .tab-buttons-scroll {
	flex-wrap: nowrap;
	overflow-x: auto;
	scrollbar-width: thin;
}

.main .tab-container:not(.tab-container-switch):not(.tab-container-headless):not(.tab-container-checkselect) .tab-buttons-scroll::-webkit-scrollbar-track {
	background: transparent;
}

.main .tab-container:not(.tab-container-switch):not(.tab-container-headless):not(.tab-container-checkselect) .tab-buttons-scroll::-webkit-scrollbar-thumb {
	background: var(--stpScrollThumb, #d4d4d2);
}

.main .tab-container:not(.tab-container-switch):not(.tab-container-headless):not(.tab-container-checkselect) .tab-button {
	flex: 0 0 auto;
	padding: 8px 14px;
	background: transparent;
	border: 0;
	border-bottom: 2px solid transparent;
	border-radius: 0;
	margin-right: 0;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
	color: var(--stpMuted, #9a9a9a);
	white-space: nowrap;
}

.main .tab-container:not(.tab-container-switch):not(.tab-container-headless):not(.tab-container-checkselect) .tab-button.active {
	background: transparent;
	color: var(--stpInk, #1a1a1a);
	font-weight: 800;
	border-bottom: 2px solid var(--stpInk, #1a1a1a);
}

.main .tab-container:not(.tab-container-switch):not(.tab-container-headless):not(.tab-container-checkselect) .tab-button:hover {
	background: transparent;
	color: var(--stpInk, #1a1a1a);
}

/* nested sub-tabs (elementTabV1Group nested => true): utilities.css:139-142 ships dark-only tokens
   (#f0f0f0 text, white-alpha rule, gold underline). Point them at STP tokens, which flip in dark. */
.main .tab-container.tab-container-nested {
	--tabNestedText: var(--stpInk, #1a1a1a);
	--tabNestedMuted: var(--stpMuted, #70706a);
	--tabNestedAccent: var(--stpInk, #1a1a1a);
	--tabNestedBorder: var(--stpHairlineColor, rgba(17, 17, 17, .08));
}

.main .tab-container:not(.tab-container-switch):not(.tab-container-headless):not(.tab-container-checkselect) .tab-content {
	padding: 16px 0 8px;
	background: transparent;
}

/* -------------------------------------------------------------------------
   2.9 shared components (Phase 15.2) — markup comes from Main helpers
   (renderStpBanner, renderStpPill, clientLogoTile, renderCostRows 'kit')
   and from the CardV1 / UiV1 kit.
   ------------------------------------------------------------------------- */

/* (a) banner — mockup .mk-banner. Tone sets colour + background only. */
.stpBanner {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	padding: 12px 14px;
	border-radius: 12px;
	border: 0;
	font-size: 13px;
	line-height: 1.45;
	text-align: left;
}

.stpBanner b {
	font-weight: 700;
}

.stpBanner.is-info {
	color: #1a5fb4;
	background-color: var(--stpInfoBg, #e8f0fb);
}

.stpBanner.is-warn {
	color: #9a5a00;
	background-color: #fdf1dd;
}

.stpBanner.is-ok {
	color: var(--stpGoodInk, #0f7b3d);
	background-color: var(--stpGoodBg, #e7f5ec);
}

.stpBanner.is-danger {
	color: var(--stpAccentDeep, #a60d26);
	background-color: var(--stpAccentBg, #fbe9ec);
}

.stpBanner.is-neutral {
	color: #6b6b6b;
	background-color: #efefee;
}

/* (b) status pill — (0,3,1) beats main.css:4621 (0,2,1) */
span.ffo-select-pill.ffo-select-pill-static.stpPill {
	height: 24px;
	padding: 0 10px 0 8px;
	gap: 6px;
	font-size: 12px;
	font-weight: 600;
	max-width: none;
}

/* (c) client logo tile — img when it loads, ink initials when absent/errored
   (S3Content onerror swaps the <a>, so the :has() test follows the DOM). */
.stpLogoTile {
	display: inline-flex;
	align-items: center;
}

.stpLogoTile .stpLogoInitials {
	display: none;
}

.stpLogoTile:not(:has(img.contentImage)) .stpLogoInitials {
	display: inline-grid;
	place-items: center;
	width: 26px;
	height: 26px;
	border-radius: 7px;
	background-color: var(--stpInk, #1a1a1a);
	color: var(--stpSurface, #fff);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .02em;
	line-height: 1;
}

.stpLogoTile.is-lg:not(:has(img.contentImage)) .stpLogoInitials {
	width: 40px;
	height: 40px;
	border-radius: 10px;
	font-size: 14px;
}

.stpLogoTile .contentFileMsg,
.stpLogoTile .imageNotFound {
	display: none;
}

/* (d) cost rows — renderCostRows(..., 'kit') */
.stpCostRows .stpCostRow {
	display: flex;
	justify-content: space-between;
	padding: 4px 0;
	font-size: 13.5px;
	color: var(--stpBodyAlt, #555);
	font-variant-numeric: tabular-nums;
}

.stpCostRow.is-total {
	margin-top: 8px;
	padding-top: 12px;
	border-top: var(--stpHairline, 1px solid rgba(17, 17, 17, .10));
	font-size: 16px;
	font-weight: 750;
	color: var(--stpInk, #1a1a1a);
}

/* (e) kit card + kit headings. (0,2,0) beats main.css .ffo-card (0,1,0),
   stpMain.css:24 `h3{font-style:italic}` and main.css:159-160 h1/h2 Roboto. */
.main .ffo-card {
	border-radius: var(--stpRadius, 14px);
	box-shadow: var(--stpShadow, 0 1px 2px rgba(0, 0, 0, .05));
}

.main .ffo-card-t,
.main .ffo-h {
	font-family: var(--stpFont, -apple-system, system-ui, 'Segoe UI', Helvetica, Arial, sans-serif);
	font-style: normal;
}

.main .ffo-card-t {
	font-size: 14px;
	font-weight: 700;
}


/* =========================================================================
   §4 tables
   ========================================================================= */

/* -------------------------------------------------------------------------
   4.0 SCOPE RULE — read before editing anything below
   -------------------------------------------------------------------------
   FormV2.php:86 emits `<div class='formRow ...'>` for BOTH table mode and
   form mode with no distinguishing class, so `.formRow` and `.formRow > div`
   are SHARED. Every body/cell rule in §4 is therefore scoped under
   `.horizontalScrollable .formRow` — every RSF table is required to call
   ->horizontalScrollable(), so that prefix is a reliable "this is a table"
   discriminator. Bare `.formRow` (form mode) belongs to §2.
   Only `.formRow.head` rules are unscoped: form mode has no head row.

   Body rules additionally carry `:not(.head):not(.subHead)` because the head
   row LIVES INSIDE `.horizontalScrollable.hsHeader` (FormV2.php:328) and
   would otherwise be caught by the body selectors at equal-or-higher
   specificity.

   §4-LOCAL TOKENS: Phase 4 may not edit the §1 block (append-only inside
   markers), so table-only values are declared here as vars with hex
   fallbacks (HARD RULE 6 — no bare literals). Phase 12 may promote any of
   them into §1 verbatim and nothing below needs to change.
   ------------------------------------------------------------------------- */

:root {
	--stpTableHeadBorder: rgba(0, 0, 0, .09);   /* 4.1 header underline */
	--stpTableRadius: 18px;                     /* 4.6 outer table radius */
	--stpCaretIdle: #c8c8c8;                    /* 4.4 sort caret, idle */
	--stpPlateInk: #444;                        /* 4.5 plate cells */
	--stpEmptyBody: #8a8a8a;                    /* 4.9 empty-state sub copy */
	--stpFadeWidth: 30px;                       /* 4.7 right-edge fade */
	--stpScrollThumb: #d4d4d2;                  /* 4.7 scrollbar thumb */

	/* SINGLE SOURCE for the head height (§1 mirrors it at the same value).
	   Runtime 24.3 measured 50px with 13px padding: the tallest thing in a
	   head cell is the 22px .formV2MenuHelp sort pill (main.css:1700), not the
	   12px label (13+22+13 = 48 + hairline + hsHeader top border). The cell is
	   now 9px padding + min-height 40px (border-box), so the row is 41px with
	   or without the pill and .horizontalScrollable.hsHeader adds its 1px top
	   border => 42px sticky box. Consumers:
	   .formRow.subHead top (4.8), stpThemeMobile.css 11.5, stpThemeTap.css. */
	--stpTableHeadHeight: 42px;
}


/* -------------------------------------------------------------------------
   4.1 header row — AT CELL LEVEL
   -------------------------------------------------------------------------
   main.css:1725 `.formRow.head div{font-size:16px}` is (0,2,1): a rule
   written as `.formRow.head{font-size:12px}` (0,2,0) is parsed but VISUALLY
   IGNORED. The size therefore has to be set on the cell selector at equal
   specificity + later source order. Row-level rule below displaces
   main.css:1716 (colour var(--yellow), font-weight:bold, border-top).
   ------------------------------------------------------------------------- */

/* (0,2,0) — matches main.css:1716 */
.formRow.head {
	background-color: var(--stpSurface, #fff);
	color: var(--stpMuted, #9a9a9a);
	font-weight: 500;
	border-top-width: 0;
	border-bottom: 1px solid var(--stpTableHeadBorder, rgba(0, 0, 0, .09));
	border-left-width: 0;
	border-right-width: 0;
	border-style: solid;
	border-color: var(--stpTableHeadBorder, rgba(0, 0, 0, .09));
}

/* (0,2,1) — matches main.css:1725 exactly; later source order wins */
.formRow.head div {
	font-size: 12px;
	font-weight: 500;
	letter-spacing: .01em;
	text-transform: none;      /* sentence case — never uppercased */
	color: var(--stpMuted, #9a9a9a);
	justify-content: flex-start;
}

/* RUNTIME-MEASURED: main.css also ships
   `.horizontalScrollable .formRow > div.headerFilterFlexBox{justify-content:space-between}`
   at (0,3,1), which beats the (0,2,1) rule above and pushed the sort caret to
   the far right of the cell. Mirrored at equal specificity + later source order. */
.horizontalScrollable .formRow.head > div {
	justify-content: flex-start;
}

/* mid columns 9px 12px; the two edge columns get the 16px gutter.
   (0,3,0) beats main.css:1747's padding:5px (0,2,0); the :first-child /
   :last-of-type pair is (0,4,0) and beats main.css:1759's left border rule. */
.formRow.head > div {
	padding: 9px 12px;
	min-height: 40px;          /* 9 + 22px sort pill + 9; see the :root note above */
	border-width: 0;           /* no vertical grid lines in the header */
}

.formRow.head > div:first-child,
.formRow.head > div:last-of-type {
	padding: 9px 16px;
}


/* -------------------------------------------------------------------------
   4.2 body rows
   -------------------------------------------------------------------------
   `.horizontalScrollable .formRow:not(.head):not(.subHead) > div` is (0,4,0)
   and beats main.css:1747 (0,2,0, font-size 16px + padding 5px) and
   main.css:1759 (0,3,0, first-child left border).
   ------------------------------------------------------------------------- */

.horizontalScrollable .formRow {
	margin: 0;                 /* main.css:1713 ships `margin: 0 5px` */
}

.horizontalScrollable .formRow:not(.head) {
	border-bottom: 1px solid var(--stpRowDividerColor, rgba(17, 17, 17, .06));
	transition: background-color .12s ease;
}

.horizontalScrollable .formRow:not(.head):not(.subHead) > div {
	font-size: 13.5px;
	color: var(--stpBody, #333);
	padding: 13px 16px;
	/* P1-D7: FormV2 emits no per-type numeric cell class, so lining figures
	   are applied cell-wide. font-variant-numeric changes glyph metrics only
	   — no box property — so §2's hard exclusion of in-cell chrome holds. */
	font-variant-numeric: tabular-nums;
	transition: background-color .12s ease;
}

/* row hover — (0,8,0), so it also beats the flattened zebra rule below.
   Status rows (red/yellow/green/blue) keep their own fill. */
.horizontalScrollable .formRow:not(.head):not(.subHead):not(.red):not(.yellow):not(.green):not(.blue):hover > div {
	background-color: var(--stpRowHover, #f7f7f6);
}

/* Alternating rows — altColorTextOnly paints .ultraLight on odd body
   rows. Framework main.css:1872-1876 uses var(--ultraLight) at (0,8,1)
   on the `> div` variants (each :not() holds TWO classes). This chain
   matches that count (0,10,1) so the stripe lands inside the §4.6 card
   instead of the old spreadsheet fill. Hover (0,8,0) still wins on
   pointer. Status rows stay excluded. */
.horizontalScrollable .formRow.altColorTextOnly.ultraLight:not(.formRow.red):not(.formRow.yellow):not(.formRow.green):not(.formRow.blue),
.horizontalScrollable .formRow.altColorTextOnly.ultraLight:not(.formRow.red):not(.formRow.yellow):not(.formRow.green):not(.formRow.blue) > div,
.horizontalScrollable .formRow.altColorTextOnly.ultraLight:not(.formRow.red):not(.formRow.yellow):not(.formRow.green):not(.formRow.blue) > div select,
.horizontalScrollable .formRow.altColorTextOnly.ultraLight:not(.formRow.red):not(.formRow.yellow):not(.formRow.green):not(.formRow.blue) > div input:not(.excludeFormPopRow) {
	background-color: var(--stpZebra, #f7f7f6);
	color: var(--stpBody, #333);
}


/* in-cell inputs and checkboxes (table mode): one look on every row.
   :where() keeps specificity at zero so status rows (yellow, green, accent) and
   the zebra rule above still win their own background. No field border in table
   cells (user call 2026-11-15): the row itself is the field. */
:where(.formRow > div) input:where([type='text'], [type='number'], [type='email'], [type='tel'], [type='url'], [type='search'], [type='password']) {
	background-color: transparent;
}

.formRow > div input[type='checkbox'] {
	accent-color: var(--stpInk, #1a1a1a);
	cursor: pointer;
}

/* -------------------------------------------------------------------------
   4.2b in-cell selects
   -------------------------------------------------------------------------
   Phase 2 HARD EXCLUSION left table <select>s on main.css:1742 (font-size
   16px, width 100%, native appearance). Restoring altColor() made those
   selects editable again, so the native widget stretched the cell and sat
   the caret on the far right. Match §4.2 cell type (13.5px) and shrink to
   the value so the caret sits next to the text, same left edge as
   neighbouring labels.
   (0,4,2) beats main.css:1742 (0,1,1). background-* is set longhand so the
   zebra rule above (0,10,1) still paints the stripe through the control.
   ------------------------------------------------------------------------- */

.horizontalScrollable .formRow:not(.head):not(.subHead) > div select {
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	display: inline-block;
	width: auto;
	max-width: 100%;
	min-width: 0;
	min-height: 0;
	height: auto;
	margin: 0;
	padding: 0 16px 0 0;
	border: 0;
	border-radius: 0;
	font-family: inherit;
	font-size: 13.5px;
	font-weight: 400;
	line-height: 18px;
	color: inherit;
	text-align: left;
	text-align-last: left;
	cursor: pointer;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='7' viewBox='0 0 12 8'%3E%3Cpath fill='%236f6f6f' d='M1.4 1.2L6 5.8l4.6-4.6L12 2.6 6 8.6 0 2.6z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 0 center;
	background-size: 9px 6px;
}

.horizontalScrollable .formRow:not(.head):not(.subHead) > div select:focus {
	outline: none;
}


/* -------------------------------------------------------------------------
   4.3 EXPLICIT grid resets
   -------------------------------------------------------------------------
   main.css:1747 gives EVERY cell `border-width: 0 1px 0 0` and main.css:1759
   adds a left border to the first cell — that is the old spreadsheet grid.
   Both are zeroed here; only two hairlines are re-added afterwards, and the
   re-add rules are placed AFTER the reset so equal-specificity cases win on
   source order.
   ------------------------------------------------------------------------- */

.horizontalScrollable .formRow:not(.head):not(.subHead) > div,
.horizontalScrollable .formRow:not(.head):not(.subHead) > div:first-child,
.horizontalScrollable .formRow > input[type="hidden"]:first-child + div {
	border-width: 0;
}

/* KEEP: pinned-action left hairline (main.css:1935).
   RUNTIME-MEASURED: the reset above is (0,4,1) — each :not() adds a class —
   so a plain `.horizontalScrollable .formRow > div.stickyAction` (0,3,1)
   LOSES to it and the pinned column came out borderless. `:not(.subHead)`
   lifts these to (0,4,1): they tie the reset and win on source order, and
   still out-specify the (0,3,1) header reset so the head keeps the hairline
   too. Do not simplify these selectors back. */
.horizontalScrollable .formRow:not(.subHead) > div.stickyAction,
.horizontalScrollable .formRow:not(.subHead) > div.stickyActionNonFixed {
	border-width: 0 0 0 1px;
	border-style: solid;
	border-color: var(--stpHairlineColor, rgba(17, 17, 17, .10));
}

/* KEEP: frozen-column right hairline — the visual seam of the columns pinned
   by ->horizontalScrollable($fixedColumns, ...).
   RUNTIME-MEASURED: the frozen column is ALSO the row's :first-child, so the
   reset's `> div:first-child` branch is (0,5,1) and beat a (0,4,1) restore.
   The body selector therefore carries both :not()s to reach (0,5,1) and win
   on source order, and the head gets its own (0,4,1) selector so the seam
   runs unbroken from the header down. Do not merge these two selectors. */
.horizontalScrollable .formRow:not(.head):not(.subHead) > div.sticky,
.horizontalScrollable .formRow.head > div.sticky {
	border-width: 0 1px 0 0;
	border-style: solid;
	border-color: var(--stpHairlineColor, rgba(17, 17, 17, .10));
}


/* -------------------------------------------------------------------------
   4.4 sort carets
   -------------------------------------------------------------------------
   Target is main.css:1152-1153 (`i.sortControl` / `.activeSort`), NOT the
   emitter at FormV2.php:522-552. Nothing here touches pointer-events or
   display, so the whole header cell stays clickable.

   SIZE: FormV2.php:545 emits `style='font-size: 1em;'` INLINE on the <i>, and
   inline always beats a stylesheet rule; !important is not available (HARD
   RULE 3 reserves it for four listed cases). The glyph is drawn by the
   Font Awesome ::before, which carries no inline style — so the 9px is set
   there. The declaration on the element itself is deliberately omitted
   rather than written-and-ignored.
   ------------------------------------------------------------------------- */

/* (0,1,1) — matches main.css:1152 */
i.sortControl {
	color: var(--stpCaretIdle, #c8c8c8);
	line-height: 1;
}

i.sortControl::before {
	font-size: 9px;            /* see note above: set on the pseudo, not the <i> */
}

/* (0,2,1) — matches main.css:1153 (`color: initial`) */
i.sortControl.activeSort {
	color: var(--stpInk, #1a1a1a);
}

/* active sort column: the header label turns ink too (beats `.formRow.head div`, (0,2,1)) */
.formRow.head > div:has(i.sortControl.activeSort) {
	color: var(--stpInk, #1a1a1a);
}

/* `i.fa-caret-left.blue` / `i.fa-caret-right.blue` (FormV2.php:444-445) are
   the horizontal-scroll stepper arrows in the action header, an unrelated
   control. Their colour now comes from `--progressBlue` (re-pointed to ink in
   §1), so no rule here restyles them. Centre the stepper in the pinned
   action cell: §4.1's `justify-content:flex-start` parked it on the left. */
.horizontalScrollable .formRow.head > div.stickyAction,
.horizontalScrollable .formRow.head > div.stickyActionNonFixed {
	justify-content: center;
	text-align: center;
}

.formRow > div.headerFilterFlexBox {
	gap: 5px;
}


/* -------------------------------------------------------------------------
   4.5 mono / numeric cells
   -------------------------------------------------------------------------
   Ticket codes are emitted as `.formLink` inside the cell. The utility
   classes are consumed additively through FormFormatObject::cellClass()
   (FormFormatObject.php:1035) — no framework edit, no new markup.
   ------------------------------------------------------------------------- */

/* (0,3,0) — ticket codes: mono, ink, never red, never underlined */
.horizontalScrollable .formRow .formLink {
	font-family: var(--stpMono, ui-monospace, Menlo, Monaco, Consolas, monospace);
	font-size: 13px;
	font-weight: 700;
	color: var(--stpInk, #1a1a1a);
	text-decoration: none;
}

.horizontalScrollable .formRow .formLink:hover {
	color: var(--stpInkHover, #333);
	text-decoration: none;
}

/* (0,4,0) — beats 4.2's cell font-size. cellClass('stpPlate' | 'stpDate') */
.horizontalScrollable .formRow > div.stpPlate {
	font-family: var(--stpMono, ui-monospace, Menlo, Monaco, Consolas, monospace);
	font-size: 13px;
	color: var(--stpPlateInk, #444);
}

.horizontalScrollable .formRow > div.stpDate {
	font-size: 13px;
	color: var(--stpBodyAlt, #555);
	font-variant-numeric: tabular-nums;
}

/* -------------------------------------------------------------------------
   4.6 TWO scroll wrappers, one card
   -------------------------------------------------------------------------
   FormV2 emits SIBLING scrollers, not one: `.horizontalScrollable.hsHeader`
   (FormV2.php:328) and `.horizontalScrollable.lazyLoadTarget`
   (FormV2.php:620). A blanket radius + 1px border on `.horizontalScrollable`
   would draw a rounded, double-bordered seam through the middle of the
   table, so the card is split across the two: header owns the top corners
   and drops its bottom edge, body owns the bottom corners and drops its top
   edge, and the seam is the head row's own 4.1 underline.
   ------------------------------------------------------------------------- */

.horizontalScrollable.hsHeader {
	border: 1px solid var(--stpHairlineColor, rgba(17, 17, 17, .10));
	border-bottom: 0;
	border-radius: var(--stpTableRadius, 18px) var(--stpTableRadius, 18px) 0 0;
	background-color: var(--stpSurface, #fff);
}

.horizontalScrollable.lazyLoadTarget {
	border: 1px solid var(--stpHairlineColor, rgba(17, 17, 17, .10));
	border-top: 0;
	border-radius: 0 0 var(--stpTableRadius, 18px) var(--stpTableRadius, 18px);
	background-color: var(--stpSurface, #fff);
}

/* last row must not paint over the bottom radius */
.horizontalScrollable.lazyLoadTarget .formRow:last-child {
	border-bottom-width: 0;
}

/* a flush kit card (CardV1->flush()) is the table's only frame: the 4.6 header/body
   card and the 4.9 empty-state frames (V1 four-corner card, V2 bottom cap) come off
   inside it (0,3,0)-(0,4,0) beats (0,1,0)-(0,2,0). */
.ffo-card.is-flush .horizontalScrollable.hsHeader,
.ffo-card.is-flush .horizontalScrollable.lazyLoadTarget,
.ffo-card.is-flush .emptyTableText,
.ffo-card.is-flush .emptyTableTextV2 {
	margin: 0;
	border: 0;
	border-radius: 0;
	box-shadow: none;
}


/* -------------------------------------------------------------------------
   4.7 right-edge fade — BACKGROUND, not ::after
   -------------------------------------------------------------------------
   `.horizontalScrollable` IS the scroll container (main.css:1916
   overflow-x:auto) and there is no stable non-scrolling wrapper class around
   it, so an absolutely-positioned ::after would resolve against the padding
   box and SCROLL AWAY with the rows. A local-attachment background layer
   stays pinned to the content's right end instead, and self-hides once the
   user reaches that end. RIGHT EDGE ONLY — no left fade (design rule).
   Suppressed when a column is pinned right, because the pinned action cell
   already terminates the row.
   NOTE: `background-attachment: local, scroll` is the plan's literal value;
   with a single layer CSS ignores the surplus keyword, so this resolves to
   `local`.
   ------------------------------------------------------------------------- */

.horizontalScrollable:not(:has(.stickyAction)) {
	background-image: linear-gradient(270deg, var(--stpSurface, #fff), transparent);
	background-attachment: local, scroll;
	background-position: right;
	background-size: var(--stpFadeWidth, 30px) 100%;
	background-repeat: no-repeat;
}

/* main.css:1916 ships padding-bottom:4px so a classic scrollbar can sit
   under the last row. That reserved a white gutter INSIDE the §4.6 card
   (violations table, Ticket Management). Zero it so the last row meets
   the radius. Equal (0,1,0) — this file loads after main.css. */
.horizontalScrollable {
	padding-bottom: 0;
	scrollbar-width: none;
}

/* Defining ANY ::-webkit-scrollbar pseudo turns macOS overlay scrollbars
   into a classic bar that takes layout space inside the card. Keep
   overflow-x:auto (trackpad / shift-wheel / touch still scroll); the
   right-edge fade and tablet "Swipe table →" hint remain the affordance. */
.horizontalScrollable::-webkit-scrollbar,
.horizontalScrollable::-webkit-scrollbar:horizontal {
	height: 0;
	width: 0;
	display: none;
}


/* -------------------------------------------------------------------------
   4.8 sticky offsets
   -------------------------------------------------------------------------
   main.css:1921 hardcodes `top: 50px` on the sticky header while
   main.css:1718 offsets `.formRow.subHead` by var(--headBarHeight) — the two
   disagree and double-stack. Both are re-pointed to the same origin here.
   `position` is deliberately NOT re-declared, so the framework escape
   hatches keep working: `.hsHeaderNoSticky` (main.css:1920, 0,3,0) and
   `.hsHeaderTop0` (main.css:1924, 0,3,0) both still outrank these (0,2,0)
   rules. Phase 11 repeats the pair inside the tab/mobile media blocks, where
   --headBarHeight resolves to 60px from stpMainTap.css:3.
   ------------------------------------------------------------------------- */

/* (0,2,0) — matches main.css:1921 */
.horizontalScrollable.hsHeader {
	top: var(--headBarHeight);
	z-index: 3;
}

/* (0,2,0) — matches main.css:1718. z-index stays BELOW hsHeader's 3. */
.formRow.subHead {
	top: calc(var(--headBarHeight) + var(--stpTableHeadHeight, 44px));
	z-index: 2;
	background-color: var(--stpSurface, #fff);
}


/* -------------------------------------------------------------------------
   4.9 empty states — BOTH variants
   -------------------------------------------------------------------------
   Two different elements exist and most CG tables still use the V1 one:
     .emptyTableText   FormV2.php:79-80  — early return, replaces the WHOLE
                       table (no header at all). Styled at main.css:1546.
     .emptyTableTextV2 FormV2.php:703-706 — injected under the header IN
                       PLACE OF the body scroller, so it must carry the
                       card's bottom corners itself (4.6).
   Styling only V2 would leave every ->emptyTableText() table on the old
   italic grey line, so both share one block.

   NOT DONE, deliberately:
     * no spinner — lazyLoadFullPageHorizontalScrollable()
       (js/Formatter.js:1512-1540) appends rows and renders no loading
       element; there is no .loader/.spinner markup or CSS in the framework,
       so a spinner is new JavaScript (HARD RULE 4).
     * no "Clear filters" button — FormV2.php:600-601 renders a single div
       containing one gl() string, with no button and no filter-reset
       control. That action belongs to Phase 9's FilterFormV3 reset.
   ------------------------------------------------------------------------- */

.emptyTableText,
.emptyTableTextV2 {
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	margin: 0;
	padding: 44px 16px 48px;
	background-color: var(--stpSurface, #fff);
	color: var(--stpInk, #1a1a1a);
	font-size: 15px;
	font-weight: 700;
	font-style: normal;         /* both framework rules ship italic */
	text-align: center;
}

/* 52px hairline ring holding a Font Awesome glyph (mockup .mk-empty .ic).
   Default glyph = inbox (\f01c). A later phase swaps it by putting a marker
   span inside the gl() string: .stpEmptyNoData (ticket), .stpEmptyFiltered
   (magnifier), or .stpEmptyIcon (own icon markup: the ring glyph is hidden). */
.emptyTableText::before,
.emptyTableTextV2::before {
	content: '\f01c';
	font-family: 'Font Awesome 6 Pro';
	font-weight: 300;
	font-size: 20px;
	font-style: normal;
	line-height: 1;
	display: grid;
	place-items: center;
	box-sizing: border-box;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	border: 1px solid var(--stpHairlineColor, rgba(17, 17, 17, .10));
	color: var(--stpBodyAlt, #555);
	background-color: var(--stpSurface, #fff);
}

.emptyTableTextV2:has(.stpEmptyNoData)::before {
	content: '\f145';
}

.emptyTableTextV2:has(.stpEmptyFiltered)::before {
	content: '\f002';
}

.emptyTableText:has(.stpEmptyIcon)::before,
.emptyTableTextV2:has(.stpEmptyIcon)::before {
	display: none;
}

/* optional action row (a link or button pair) under the sub-line */
.emptyTableTextV2 .stpEmptyAction {
	display: inline-flex;
	gap: 8px;
	margin-top: 6px;
	font-weight: 600;
}

/* Optional sub-line. gl() output is emitted unescaped, so a later phase can
   pass `Headline<span class='stpEmptySub'>secondary copy</span>` and get the
   design's two-tier empty state with no framework change. */
.emptyTableText .stpEmptySub,
.emptyTableTextV2 .stpEmptySub {
	display: block;
	font-size: 13.5px;
	font-weight: 400;
	color: var(--stpEmptyBody, #8a8a8a);
}

/* V1 replaces the whole table => it is the card, all four corners.
   (0,1,0) matches main.css:1546. */
.emptyTableText {
	border: 1px solid var(--stpHairlineColor, rgba(17, 17, 17, .10));
	border-radius: var(--stpTableRadius, 18px);
}

/* V2 sits under the sticky header and closes the card. main.css:1548 ships
   `border-width: 0 1px 1px 1px` — kept, only recoloured, so the top edge
   stays open and the head row's 4.1 underline is the seam.
   (0,1,0) / (0,2,0) match main.css:1548 and :1570. */
.emptyTableTextV2 {
	border-width: 0 1px 1px 1px;
	border-style: solid;
	border-color: var(--stpHairlineColor, rgba(17, 17, 17, .10));
	border-radius: 0 0 var(--stpTableRadius, 18px) var(--stpTableRadius, 18px);
}

.horizontalScrollable.hsHeader + .emptyTableTextV2 {
	width: 100%;
	margin: 0;
	border-radius: 0 0 var(--stpTableRadius, 18px) var(--stpTableRadius, 18px);
}

/* Non-scroll tables keep the framework's 5px inset (main.css:1565). */
.formRow.head + .emptyTableTextV2 {
	border-radius: 0 0 var(--stpTableRadius, 18px) var(--stpTableRadius, 18px);
}


/* -------------------------------------------------------------------------
   4.10 NOTE FOR PHASES 9 / 10
   -------------------------------------------------------------------------
   Tables that still call ->emptyTableText() take FormV2.php:73's early
   return and render NO header, so the empty card cannot join the header's
   bottom edge. Phases 9 and 10 should switch their tables to
   ->emptyTableTextV2() (FormProperties::emptyTableTextV2) so the header
   stays and 4.6 + 4.9 produce one continuous card.
   ------------------------------------------------------------------------- */


/* =========================================================================
   §5 rail+header
   -------------------------------------------------------------------------
   Owns the token flip declared in §1 (--headBarHeight / --navLeftWidth /
   --defaultNavLeftWidthClosed) together with the removal of the top menu in
   Main::headBarObjects(). Everything below is an ADDITIVE OVERRIDE:
   content/css/stpMain.css and ryca-solutions-framework/css/main.css are never
   edited (hard rules 1 + 2), so each rule matches or exceeds the specificity
   of the declaration it beats and wins on later source order.

   Specificity notes are inline. Framework/legacy references:
     main.css:766-767   .main margin-top/height  hardcoded 50px
     main.css:1991-2008 .navLeft margin-top/height hardcoded 50px
     main.css:2011-2032 rail button + child chrome (var(--yellow) fill)
     main.css:2034-2041 .navTooltip flyout (card, NOT a pill — see 5.11)
     main.css:2070-2127 .headerBar
     main.css:1983-1989 .loading  /  main.css:2134  #rmsg.toast
     main.css:481-486   .popUpBox (the LATER `margin` shorthand wins, see 5.9)
     stpMain.css:17     .popUpBox{margin-top:120px}
     stpMain.css:218    .loading full-width reset
     stpMain.css:230    #footerBaseFinal barber-pole stripe
   ========================================================================= */


/* -------------------------------------------------------------------------
   5.3  REBASE THE HARDCODED 50px OFFSETS
   main.css:766-767 and main.css:1991-2001 hardcode 50px and never read
   --headBarHeight, so a 46px bar leaves a 4px gap on every page.
   DEVIATION (recorded): the plan's `.main{height:calc(100vh - var(--headBarHeight))}`
   is NOT applied. stpMain.css:28 deliberately neutralises the framework's
   `.main{height:calc(100vh - 50px)}` with `height:initial`; re-introducing a
   viewport-locked height would clip every long page. The 4px gap came from
   margin-top alone, so only margin-top is rebased and `height:initial` is
   re-declared here so the intent is visible in one place.
   ------------------------------------------------------------------------- */

/* (0,1,0) — equals main.css:766 and stpMain.css:28, later file wins */
.main {
	margin-top: var(--headBarHeight, 46px);
	height: initial;
}

/* (0,1,0) — equals main.css:1991; percentage resolves against the viewport
   because .navLeft is position:fixed */
.navLeft {
	margin-top: var(--headBarHeight, 46px);
	height: calc(100% - var(--headBarHeight, 46px));
}

/* main.css:798 `.main.heightFit > div, .main.heightFit > form` is (0,2,1) each
   and hardcoded `calc(100vh - 90px - 40px)` against the old 95px bar. */
.main.heightFit > div,
.main.heightFit > form {
	height: calc(100vh - var(--headBarHeight, 46px) - 44px);
}

/* main.css:884 / :891 read --navLeftWidth (the OPEN width) so a collapsed rail
   left 164px of dead space at a real 236px rail. --navLeftCurrentWidth is
   remapped by main.css:787 `body:has(.navLeft:not(.active))`. (0,4,0) each. */
.main .sectionBox.collapsableOuter.vertical.full {
	--collapsableVerticalWidth: calc(100vw - var(--navLeftCurrentWidth, 236px) - 300px);
}

.main .sectionBox.collapsableOuter.vertical.verticalFullPage {
	--collapsableVerticalWidth: calc(45vw - var(--navLeftCurrentWidth, 236px));
}


/* -------------------------------------------------------------------------
   5.2  HEADER BAR — the artboards' 46px context bar
   The top menu is gone (Main::headBarObjects no longer calls
   getMenuOptions(menuType:'top')). The dead top-menu rules at stpMain.css:45-50,
   stpMain.css:231, stpMainTap.css:6-10 and stpMainMobile.css:14-16 are LEFT IN
   PLACE on purpose — all four are MC-shared (hard rule 1).
   ------------------------------------------------------------------------- */

/* (0,1,0) — equals main.css:2070 and stpMain.css:44 */
.headerBar {
	height: var(--headBarHeight, 46px);
	display: flex;
	align-items: center;
	padding: 0 14px;
	overflow: visible;
	background-color: var(--stpSurface, #fff);
	border-bottom: 1px solid var(--stpHeadBarHairline, rgba(17, 17, 17, .07));
	box-shadow: none;
}

/* (0,2,0) — equals main.css:2080 and stpMain.css:45 */
.headerBar .btn {
	height: auto;
	min-width: 0;
	padding: 0;
	line-height: 1;
	font-size: 13px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	white-space: nowrap;
}

/* (0,3,0) — beats main.css:2105 `.headerBar .btn.sml{min-width:50px}` */
.headerBar .btn.sml {
	min-width: 0;
}

/* (0,3,1) — beats main.css:2097 `.headerBar .btn img{padding:20px 10px}`.
   The image's own max-height is inline (Main::headBarObjects) because an
   inline declaration cannot be beaten from a stylesheet without !important. */
.headerBar .btn.clientImg img {
	max-width: 150px;
	padding: 0;
	object-fit: contain;
}

/* 1px x 16px hairline divider between logo and client name */
.headerBar .btn.sml.headBarDivider {
	width: 1px;
	min-width: 1px;
	height: 16px;
	margin: 0 12px;
	background-color: var(--stpBorder, rgba(0, 0, 0, .14));
}

/* (0,3,0) — beats `.headerBar .btn{font-size:1.2em}`. flex:0 1 auto + min-width:0
   so a long tenant name clips instead of pushing the clock and the icon buttons
   off the right edge (every other bar item is flex:0 0 auto). */
.headerBar .btn.headBarClient {
	font-weight: 600;
	font-size: 13px;
	color: var(--stpBodyAlt, #555);
	flex: 0 1 auto;
	min-width: 0;
	overflow: hidden;
}

/* `margin-left:auto` is the spacer — it pushes the clock and the two icon
   buttons after it to the right edge. No JS clock exists (hard rule 4): the
   string is rendered server side and re-rendered on every navigation. */
.headerBar .btn.headBarClock {
	margin-left: auto;
	font-size: 13px;
	color: var(--stpMuted, #9a9a9a);
	font-variant-numeric: tabular-nums;
}

.headerBar .btn.icon {
	width: 32px;
	min-width: 32px;
	height: 32px;
	margin-left: 4px;
	border-radius: 8px;
	color: var(--stpBodyAlt, #555);
}

/* (0,3,1) — equals main.css:2101 `.headerBar .btn.icon i{font-size:1.2em}` */
.headerBar .btn.icon i {
	font-size: 14px;
}

/* (0,3,0) — equals main.css:2109 `.headerBar .btn:not(.noHover):hover` */
.headerBar .btn.icon:not(.noHover):hover {
	background-color: var(--stpHover, #f5f5f4);
	color: var(--stpInk, #1a1a1a);
}

/* ---- 5.2b native <button> reset (Phase 15.5) -----------------------------
   Main::headBarObjects() emits <button class="btn ..."> (14.3). Strips native
   chrome at (0,2,1). No `font` shorthand: `.headerBar .btn` (0,2,0) owns
   font-size/line-height. `.navCollapseTab` (0,4,0) and `.btn.icon` (0,3,0)
   still win wherever they set a background or colour.
   14.3 read-only grep (headerBar > div / headerBar div / div.btn): no rule
   targets the converted buttons by element type; the only div.btn hits are
   `.card .row ... div.btn` (main.css:2987-2994, not in the header) and the
   `.headerBar div.searchResult...` menus (main.css:4002-4404, not rendered
   here). No extra CG override was needed. */
.headerBar button.btn {
	appearance: none;
	-webkit-appearance: none;
	border: 0;
	background-color: transparent;
	font-family: inherit;
	color: inherit;
	cursor: pointer;
	margin: 0;
}

/* client logo tile button: centre the tile; without a logo image the
   initials tile replaces it, so drop the divider and use a 14px gap
   (mockup gap 14px; .headerBar has no gap and .btn has padding:0). */
.headerBar .btn.clientImg {
	display: inline-flex;
	align-items: center;
}

.headerBar .btn.clientImg:not(:has(img.contentImage)) + .headBarDivider {
	display: none;
}

.headerBar .btn.clientImg:not(:has(img.contentImage)) {
	margin-right: 14px;
}

/* keyboard focus: ink ring on the light bar, white ring on the dark rail */
.headerBar .btn:focus-visible {
	outline: 2px solid var(--stpInk, #1a1a1a);
	outline-offset: 2px;
}

.navLeft a:focus-visible {
	outline: 2px solid var(--stpSurface, #fff);
	outline-offset: 2px;
}


/* -------------------------------------------------------------------------
   5.5  COLLAPSE TAB — position:FIXED
   Emitted from headBarObjects(), not getNavLeftHeader(): the rail is
   overflow-y:auto / overflow-x:hidden (main.css:1993-1994) so an absolutely
   positioned tab inside #navLeft would be clipped AND would scroll with the
   menu. No ancestor of .navLeft or .headerBar creates a containing block, so
   position:fixed escapes both. .headerBar is z-index:11 (main.css:2070) and
   .navLeft is z-index:10, so the tab paints above the rail.
   The chevron flip is driven from STATE SELECTORS, so
   ryca-solutions-framework/js/main.js:880-899 needs no change.
   ------------------------------------------------------------------------- */

/* (0,4,0) — beats main.css:2092 `.headerBar .btn:first-child{padding:...16px}`
   (0,2,1) and main.css:2105 `.headerBar .btn.sml` (0,3,0) */
.headerBar .btn.sml.navCollapseTab {
	position: fixed;
	left: calc(var(--navLeftWidth, 236px) - 14px);
	top: 32px;
	width: 28px;
	min-width: 28px;
	height: 28px;
	padding: 0;
	margin: 0;
	border-radius: 9px;
	background-color: var(--stpRailBg, #1a1a1a);
	border: 1px solid rgba(255, 255, 255, .18);
	color: #fff;
	cursor: pointer;
	z-index: 12;
	transition: left .18s ease, background-color .18s ease;
}

/* (0,5,0) */
body:has(.navLeft:not(.active)) .headerBar .btn.sml.navCollapseTab {
	left: calc(var(--defaultNavLeftWidthClosed, 72px) - 14px);
}

/* (0,4,1) — beats main.css:2100 `.headerBar .btn i{font-size:0}` (0,2,1) */
.headerBar .btn.sml.navCollapseTab i {
	font-size: 12px;
	color: #fff;
	transition: transform .18s ease;
}

/* chevron flip straight off the rail's own state class */
body:has(.navLeft:not(.active)) .headerBar .btn.sml.navCollapseTab i {
	transform: rotate(180deg);
}

.headerBar .btn.sml.navCollapseTab:not(.noHover):hover {
	background-color: var(--stpInkHover, #333);
	color: #fff;
}


/* -------------------------------------------------------------------------
   5.6 + 5.8  RAIL SHELL AND TOP-LEVEL ROWS
   main.css:1991-2008 makes .navLeft display:inline-block, so the user block
   emitted by getNavLeftFooter() would sit directly under the last menu item.
   flex/column + margin-top:auto pins it to the bottom.
   .footerText (main.css:789-791) has NO renderer anywhere in this project
   (grepped across content/ and ryca-solutions-framework/), so the display
   change cannot regress it; it stays absolutely positioned if ever emitted.
   ------------------------------------------------------------------------- */

/* (0,1,0) — equals main.css:1991, later file wins. Merged with the 5.3 rebase
   above intentionally kept separate for readability; both apply. */
.navLeft {
	display: flex;
	flex-direction: column;
	background-color: var(--stpRailBg, #1a1a1a);
	padding: 0 0 10px;
	transition: width .18s ease;
}

/* flex-shrink:0 keeps the rows and the collapsible child lists from being
   squashed when the rail overflows; flex-basis:auto keeps `height` (and so the
   .childBtn height transition) authoritative. */
.navLeft > .btn,
.navLeft > .childBtn,
.navLeft > #navLeftSpacer {
	flex: 0 0 auto;
}

/* (0,2,0) — equals main.css:2012 */
.navLeft > .btn {
	position: relative;
	display: flex;
	align-items: center;
	gap: 0;
	height: auto;
	line-height: 1.2;
	padding: 0;
	margin: 1px 0;
	font-size: 13.5px;
	font-weight: 500;
	color: var(--stpRailIdle, rgba(255, 255, 255, .62));
	cursor: pointer;
}

/* (0,3,0) — beats main.css:2016 `.navLeft .btn .primary{flex:1 0 70%}` */
.navLeft .btn .primary {
	display: flex;
	align-items: center;
	gap: 12px;
	flex: 1 1 auto;
	min-width: 0;
	/* the padding lives on the click target (PTB/framework pattern: .btn has
	   none), so the whole row height + width up to the caret navigates */
	align-self: stretch;
	box-sizing: border-box;
	padding: 10px 0 10px 22px;
	color: inherit;
	background-color: transparent;
}

/* (0,3,1) — beats main.css:2021 `.navLeft .btn i{width:20px;margin:0 15px}` */
.navLeft .btn .primary i {
	width: 19px;
	min-width: 19px;
	font-size: 19px;
	line-height: 1;
	margin: 0;
	text-align: center;
	color: inherit;
}

/* main.css:2017-2018 paints var(--yellow) across the whole .primary at (0,4,0).
   Neutralise the fill there and move the surface onto the row, so the 3px red
   left bar below can sit against the rail edge. (0,4,0) each, later wins. */
.navLeft .btn .primary:hover,
.navLeft .btn .primary.active {
	background-color: transparent;
	color: #fff;
	cursor: pointer;
}

.navLeft .btn .primary.active {
	font-weight: 700;
}

/* (0,3,0) */
.navLeft > .btn:hover {
	background-color: rgba(255, 255, 255, .06);
	color: #fff;
}

/* (0,3,0) */
.navLeft > .btn.active {
	background-color: var(--stpRailActiveBg, rgba(255, 255, 255, .10));
	color: #fff;
}

/* the accent bar. Never a fill — see constraint P1-D4. */
.navLeft > .btn.active::before {
	content: '';
	position: absolute;
	left: 0;
	top: 6px;
	bottom: 6px;
	width: 3px;
	border-radius: 0 3px 3px 0;
	background-color: var(--stpAccent, #c8102e);
}

/* (0,3,0) / (0,3,1) — the expand caret */
.navLeft .btn .expand {
	color: var(--stpRailIdle, rgba(255, 255, 255, .62));
	border-radius: 6px;
	/* full-height toggle target; the 12px left pad is the old .btn gap and the
	   22px right pad the old .btn padding, so the caret does not move */
	display: flex;
	align-items: center;
	align-self: stretch;
	flex: 0 0 auto;
	padding: 0 22px 0 12px;
}

.navLeft .btn .expand:hover {
	background-color: rgba(255, 255, 255, .06);
	color: #fff;
	cursor: pointer;
}

.navLeft .btn .expand i {
	margin: 0;
	font-size: 13px;
	color: inherit;
}

.navLeft::-webkit-scrollbar-thumb {
	background-color: rgba(255, 255, 255, .18);
}


/* -------------------------------------------------------------------------
   5.11  COLLAPSED RAIL (72px)
   The label is a bare text node inside .primary (Page.php:425), so there is no
   element to hide — font-size:0 on .primary with the icon size restored is the
   only CSS-only route.
   ------------------------------------------------------------------------- */

/* (0,3,0) */
.navLeft:not(.active) > .btn {
	justify-content: center;
	padding: 0;
}

/* (0,4,0) */
.navLeft:not(.active) .btn .primary {
	font-size: 0;
	gap: 0;
	flex: 1 1 auto;
	padding: 11px 0;
	justify-content: center;
}

/* (0,4,1) */
.navLeft:not(.active) .btn .primary i {
	font-size: 19px;
	margin: 0;
}

/* (0,4,0) — the caret has no meaning at 72px */
.navLeft:not(.active) .btn .expand {
	display: none;
}


/* -------------------------------------------------------------------------
   5.11  FLYOUT — .navTooltip IS A CARD, NOT A PILL
   Page.php:405-425 emits .navTooltipHeader PLUS a .navTooltipChildren list, and
   Settings carries 13 children (Main::defineModBox), so pill padding/radius and
   a 700 weight on the CONTAINER would squash those lists. The container is a
   dark card; the pill typography applies to .navTooltipHeader only.
   The flyout's `left` is set INLINE by Page.php's script (box.style.left =
   rect.right), which no stylesheet can beat without !important (reserved), so
   the 8px overlap onto the rail is produced with a negative margin instead.
   ------------------------------------------------------------------------- */

/* (0,1,0) — equals main.css:2034 */
.navTooltip {
	margin-left: -8px;
	background-color: var(--stpRailBg, #1a1a1a);
	border-radius: 11px;
	box-shadow: 0 6px 20px rgba(0, 0, 0, .28);
	min-width: 176px;
	max-height: calc(100vh - 120px);
	overflow-y: auto;
	padding: 4px 0;
}

/* (0,2,0) — equals main.css:2036 */
.navTooltip .navTooltipHeader {
	padding: 9px 15px;
	font-size: 13px;
	font-weight: 700;
	color: #fff;
	border-bottom: 1px solid rgba(255, 255, 255, .14);
}

/* (0,2,1) — equals main.css:2037 */
.navTooltip .navTooltipHeader:hover {
	background-color: rgba(255, 255, 255, .06);
	color: #fff;
}

/* (0,2,0) — equals main.css:2038; stays a padded link list */
.navTooltip .navTooltipChildren {
	padding: 5px 0 2px;
}

/* (0,2,0) — equals main.css:2039 */
.navTooltip .navTooltipChild {
	padding: 7px 15px;
	font-size: 13px;
	font-weight: 500;
	color: var(--stpRailIdle, rgba(255, 255, 255, .62));
}

/* (0,2,1) — equals main.css:2040 */
.navTooltip .navTooltipChild:hover {
	background-color: rgba(255, 255, 255, .06);
	color: #fff;
}

/* (0,2,1) — equals main.css:2041 */
.navTooltip .navTooltipChild i {
	width: 16px;
	font-size: 13px;
	margin-right: 10px;
	text-align: center;
	color: inherit;
}


/* -------------------------------------------------------------------------
   5.12  SUB-NAV .childBtn
   main.css:2026-2032. The height transition is KEPT untouched so
   toggleExpandMenu() still animates; only colour/typography/indent change.
   Verified against every multi-child module in Main::defineModBox():
   Vehicles (2), Inventory (2), Fulfillment (3), Help Center (2), Settings (13).
   ------------------------------------------------------------------------- */

/* (0,3,0) — equals main.css:2028 */
.navLeft .childBtn .btn {
	position: relative;
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	height: auto;
	line-height: 1.2;
	padding: 8px 22px 8px 30px;
	font-size: 13px;
	font-weight: 500;
	color: var(--stpRailIdle, rgba(255, 255, 255, .62));
	box-sizing: border-box;
}

/* (0,3,1) — beats main.css:2021 `.navLeft .btn i` */
.navLeft .childBtn .btn i {
	width: 16px;
	min-width: 16px;
	font-size: 13px;
	margin: 0;
	text-align: center;
	color: inherit;
}

/* (0,4,0) each — equals main.css:2030 / :2031, which paint var(--yellow) */
.navLeft .childBtn .btn:hover {
	background-color: rgba(255, 255, 255, .06);
	color: #fff;
	cursor: pointer;
}

.navLeft .childBtn .btn.active {
	background-color: var(--stpRailActiveBg, rgba(255, 255, 255, .10));
	color: #fff;
	font-weight: 600;
}

.navLeft .childBtn .btn.active::before {
	content: '';
	position: absolute;
	left: 0;
	top: 4px;
	bottom: 4px;
	width: 3px;
	border-radius: 0 3px 3px 0;
	background-color: var(--stpAccent, #c8102e);
}


/* -------------------------------------------------------------------------
   5.7  HEADER USER AVATAR  (Main::headBarObjects profile button). The rail user
   block is gone; the profile button shows the user's initials in a circle and
   carries name + role in its tooltip. Tokens only, so dark theme follows.
   ------------------------------------------------------------------------- */

.headerBar .btn.icon.headBarUser {
	border-radius: 50%;
}

.headerBar .btn.icon.headBarUser .headBarAvatar {
	width: 30px;
	height: 30px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: var(--stpHover, #f5f5f4);
	border: 1px solid var(--stpBorder, rgba(0, 0, 0, .14));
	color: var(--stpInk, #1a1a1a);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .3px;
	box-sizing: border-box;
}

.headerBar .btn.icon.headBarUser:hover .headBarAvatar {
	border-color: var(--stpInk, #1a1a1a);
}


/* -------------------------------------------------------------------------
   5.9  MODAL OFFSETS — PTB's ptbMain.css:222-230 IS REJECTED HERE
   Porting it would rewrite left/width for every non-small .popUpBox and change
   modal WIDTH across all of CG. Only the margin pair (plus the vertical offset
   that stpMain.css:17 owns) is re-declared here; width, max-width, padding,
   left and top are untouched, so no modal changes SIZE.

   main.css:481's `calc((100% - var(--popupBoxW) + var(--navLeftWidth))/2)` is
   correct centring for an OPEN rail and wrong only when COLLAPSED, so each rule
   below keeps the framework's own arithmetic and swaps ONLY the rail term for
   --navLeftCurrentWidth, which main.css:787 remaps via
   `body:has(.navLeft:not(.active))`. main.css:744 shows .mediumV2 is already
   rail-aware the same way, and it is deliberately NOT touched.

   RUNTIME FINDING (matched-rule dump, which is how plan 4.2's D2 says to verify
   — eyeballing selectors is not enough): the base rule is NOT what most modals
   resolve to. Every size variant re-declares margin-left at (0,2,0)/(0,4,0) and
   hardcodes the OLD 50px closed rail or ignores the rail entirely, so fixing
   only the base rule left a `.small` modal — the framework's own sessionBox
   shape (Page.php:194) — 93px left of the content-band centre. The variants are
   therefore rebased too.

   VERTICAL: main.css:477 sets `top: 0`, so margin-top IS the vertical offset for
   every non-V2 modal. stpMain.css:17's 120px was 95px header + 25px; it is
   superseded FROM HERE (never edited) and re-derived from --headBarHeight.
   ------------------------------------------------------------------------- */

/* (0,1,0) — equals main.css:476-482 and stpMain.css:17, later file wins */
.popUpBox {
	margin-top: calc(var(--headBarHeight, 46px) + 25px);
	margin-left: calc((100% - var(--popupBoxW) + var(--navLeftCurrentWidth, 236px)) / 2);
	margin-right: calc((100% - var(--popupBoxW)) / 2);
	transition: margin-left .18s ease;
}

/* (0,2,0) — equals main.css:502 `.popUpBox.small`, which used a literal 50px */
.popUpBox.small {
	margin-left: calc((100% - 500px + var(--navLeftCurrentWidth, 236px)) / 2);
	margin-right: calc((100% - 500px) / 2);
}

/* (0,2,0) — equals main.css:507 `.popUpBox.smallR`, same literal 50px */
.popUpBox.smallR {
	margin-left: calc((100% - 30vw + var(--navLeftCurrentWidth, 236px)) / 2);
	margin-right: calc((100% - 30vw) / 2);
}

/* (0,4,0) — equals main.css:732; the framework's `margin: 0 calc(...)` shorthand
   there is rail-unaware. Its own `top:100px` keeps the vertical offset, so the
   shorthand's margin-top:0 is left in place. */
.popUpBox.smallV2:not(.locationOptions):not(.small) {
	margin-left: calc(50% + var(--navLeftCurrentWidth, 236px) / 2 - clamp(250px, 100%, 500px) / 2);
	margin-right: calc(50% - clamp(250px, 100%, 500px) / 2);
}

/* NOT REBASED, ON PURPOSE: `.popUpBox.large` (main.css:515) pairs
   `margin-left:80px` with `max-width: calc(100vw - 110px)`. Moving its
   margin-left to the rail edge without also shrinking that max-width would push
   the box off the right edge by (rail - 80px), and changing modal WIDTH is
   exactly what 5.9 forbids. Grepped: no CG page uses the `large` class, so it is
   reported rather than half-fixed — a proper fix needs the width term too. */

/* -------------------------------------------------------------------------
   5.10  LOADING OVERLAY, TOAST, FOOTER STRIPE
   Page.php:186 already emits `.loading.expand` and main.js:toggleMenuLeft()
   already toggles it — stpMain.css:218 was flattening .loading to full width
   with margin-left:0, which is what hid the offset.
   ------------------------------------------------------------------------- */

/* (0,1,0) — equals stpMain.css:218; the collapsed geometry is the base.
   main.css:1984 `.loading.fullScreen` stays at (0,2,0) and still wins. */
.loading {
	width: calc(100% - var(--defaultNavLeftWidthClosed, 72px));
	height: calc(100vh - var(--headBarHeight, 46px));
	margin-top: var(--headBarHeight, 46px);
	margin-left: var(--defaultNavLeftWidthClosed, 72px);
	transition: width .18s ease, margin-left .18s ease;
}

/* (0,2,0) — PTB parity (ptbMain.css:217) */
.loading.expand {
	width: calc(100% - var(--navLeftWidth, 236px));
	margin-left: var(--navLeftWidth, 236px);
}

/* (1,1,0) — position comes from main.css:2189 (bottom-left, 16px off the rail:
   left: calc(var(--navLeftCurrentWidth) + 16px), width max-content). This file
   used to re-centre it from the framework's old 600px centred toast; only the
   left transition stays, so the toast follows the rail opening/closing. */
#rmsg.toast {
	transition: bottom 1s, left .18s ease;
}

/* 5.10b hidden-state hardening (Phase 15.6). The bottom/left durations match
   the rule above and main.css:2199 so the slide still plays; visibility flips
   after the slide-out finishes (1s delay) and immediately on show. The
   "empty green toast on load" is a full-page-screenshot artifact of the
   parked shell, not a server emitter. */
#rmsg.toast:not(.active) {
	visibility: hidden;
	transition: bottom 1s, left .18s ease, visibility 0s linear 1s;
}

#rmsg.toast.active {
	visibility: visible;
	transition: bottom 1s, left .18s ease, visibility 0s linear 0s;
}

/* (2,3,0) — beats main.css:2203-2204 `.active{bottom:16px}`: an active toast
   with no message never shows */
#rmsg.toast.active:has(#msgTarget:empty) {
	bottom: -200px;
	visibility: hidden;
}

/* (0,2,0) — beats main.css:2097 `.navRight`: a closed drawer leaves no sliver
   (its 1px border + 20px padding survive width:0 at box-sizing border-box) */
.navRight:not(.active) {
	padding-left: 0;
	padding-right: 0;
	border-left-width: 0;
	visibility: hidden;
}

/* (1,0,0) — equals stpMain.css:230. KEPT: the barber-pole stripe is client
   branding emitted from Main.php:358 and MC.php:273 and deliberately
   suppressed at mod/fulfillment/newTicketBatch.php and
   mc/fulfillment/newTicketBatch.php. Only the geometry is rebased so it starts
   at the rail edge instead of crossing the dark rail. */
#footerBaseFinal {
	left: var(--navLeftCurrentWidth, 236px);
	width: calc(100% - var(--navLeftCurrentWidth, 236px));
	height: 14px;
	transition: left .18s ease, width .18s ease;
}

/* -------------------------------------------------------------------------
   5.x content canvas (theme-colours round)
   -------------------------------------------------------------------------
   The framework paints the signed-in content column white:
   main.css:798 `.main.filled > div, .main.filled > form` (0,2,1). Re-pointed
   to the canvas token so white cards (§2.6) read as raised surfaces. Equal
   specificity and later source order beat main.css:798.
   `section` is white by default (stpMain.css:40 `section{var(--sectionbg)}`).
   Sections that are not cards are made transparent so field groups and page
   headers do not become white boxes on the canvas. Inside a white card,
   transparent shows the card, so nothing changes there. Cards (.sectionBox)
   keep their §2.6 surface. Login / eula / reset share the canvas (§8.x).
   ------------------------------------------------------------------------- */
.main.filled > div,
.main.filled > form {
	background-color: var(--stpCanvas, #f6f6f4);
}

.main section:not(.sectionBox) {
	background-color: transparent;
}


/* =========================================================================
   §6 page headers
   -------------------------------------------------------------------------
   TWO STRUCTURES EXIST and they are styled separately:

     (a) section.pageHeaderV2 — emitted by the framework PageHeader class
         (ryca-solutions-framework/classes/Tools/PageHeader.php:242/254).
         PLAN CORRECTION (rev 3): the plan states "ZERO use the framework
         PageHeader class". That is WRONG — 15 CG pages use it today
         (mod/settings/enforcementEndpoint.php:58, systemDatabaseConfig.php:26,
         mod/helpcenter/index.php:76 + 3 more helpcenter, mod/billing/index.php:37,
         invoices.php:43, invoiceDetails.php:112, mod/reports/index.php:261,
         reportAppeals.php:148, trends.php:138, vehicles.php:91, pastDue.php:51,
         letterVolume.php:93). The pageHeaderV2 selectors below therefore style
         real pages, not dead CSS.

     (b) section.pageHeader — hand-built in 44 files under mod/. 26 of those
         put the PageHeadControls output INSIDE a second <h1>, so title
         typography MUST be guarded with `:not(:has(.linkObjects))` or every
         header button renders at 26px/800.

   WHAT IS BEING BEATEN (count the classes — P4-D2):
     stpMain.css:29    .main.filled section.pageHeaderV2{justify-content:center}      (0,3,1)
     stpMain.css:30    ... .headerActions{align-items:center}                         (0,4,1)
     stpMain.css:31    ... .hx{flex-direction:column;align-items:center}              (0,4,1)
     stpMain.css:31-35 ... h1 / section.pageHeader h1  — font-style NORMAL,
                       font-weight 600, 30px/36px, text-transform UPPERCASE,
                       Spline Sans, #555                                              (0,3,2)
                       (NOT italic — the italic rule is h3 at stpMain.css:24)
     main.css:1110     .main.filled section.pageHeader{padding:40px 10px 20px}        (0,3,1)
     main.css:1103     .main.filled section.pageHeader h1{font-size:2em;padding:5px}  (0,3,2)
     main.css:1104     ... section.pageHeader h1 i{font-size:.8em;padding:5px}        (0,3,3)
     main.css:1113     .main.filled section.pageHeaderV2{padding:40px 10px 20px}      (0,3,1)
     main.css:1145     .main.filled section.pageHeaderV2 h1{font-size:2em}            (0,3,2)
     main.css:1127     ... .headerBtns .formBtn{gap:10px;padding:10px 12px}           (0,5,1)
     main.css:1130     ... .headerBtns .formBtn i{font-size:1.1em}                    (0,5,2)
     main.css:1134     .linkObjects{display:inline-flex;gap:5px}                      (0,1,0)

   HARD RULE 1 respected: content/css/stpMain.css is not edited and nothing in
   it is deleted — every value above is re-declared here at matching-or-higher
   specificity and wins on later source order.
   ========================================================================= */

/* §6-LOCAL TOKENS (same pattern as §4, constraint P4-D4 — §1 is append-locked
   for this phase). The header hairline is DELIBERATELY lighter than
   --stpHairlineColor (.10): the design uses rgba(17,17,17,.08) here so the
   header edge reads softer than a card edge. Phase 12 may promote these into
   §1 verbatim and nothing below needs editing. */
:root {
	--stpHeaderHairlineColor: rgba(17, 17, 17, .08);
	--stpHeaderHairline: 1px solid rgba(17, 17, 17, .08);
	--stpHeaderPadY: 18px;
	--stpHeaderPadX: 28px;
	--stpHeaderIconBox: 38px;
	--stpHeaderIconRadius: 11px;
}


/* -------------------------------------------------------------------------
   6.1a  FRAMEWORK HEADER (pageHeaderV2) — full treatment
   ------------------------------------------------------------------------- */

/* (0,4,2) beats stpMain.css:31-35 and main.css:1145, both (0,3,2).
   text-transform is load-bearing: stpMain.css ships UPPERCASE. */
.main.filled section.pageHeaderV2 .hx h1 {
	font-weight: 800;
	font-size: 26px;
	line-height: 1.1;
	letter-spacing: -.01em;
	text-transform: none;
	color: var(--stpInk, #1a1a1a);
}

/* 6.2 RESET 1 — vs stpMain.css:29 (0,3,1) at equal specificity + later file.
   6.2 RESET 3 — padding, vs main.css:1113's 40px 10px 20px.
   Bottom hairline replaces the header/body gap the old 40px top pad implied. */
.main.filled section.pageHeaderV2 {
	justify-content: flex-start;
	padding: var(--stpHeaderPadY, 18px) var(--stpHeaderPadX, 28px);
	column-gap: 20px;
}

/* 6.2 RESET 5 — vs stpMain.css:30 (0,4,1), which centres the title block.
   `flex: 1 1 auto` is what actually pushes .headerBtns to the right edge now
   that the section is justify-content:flex-start rather than space-between. */
.main.filled section.pageHeaderV2 .headerActions {
	align-items: flex-start;
	justify-content: center;
	flex: 1 1 auto;
	min-width: 0;
}

/* 6.2 RESET 2 — vs stpMain.css:31 (0,4,1): title + subtitle sit on one row
   again, left-aligned. */
.main.filled section.pageHeaderV2 .hx {
	flex-direction: row;
	align-items: baseline;
	justify-content: flex-start;
}


/* -------------------------------------------------------------------------
   6.1b  LEGACY HEADER (hand-built section.pageHeader) — BOUNDED COMPAT LAYER
   -------------------------------------------------------------------------
   ONLY left-align + padding + bottom hairline. Title typography is guarded.

   PHASE 7 / TASK 7.6 — WHY THIS BLOCK IS *NOT* RETIRED.
   7.6 says to retire this once every file is migrated, and to KEEP it and log
   the holdouts if any could not be. All 46 in-scope files under mod/ ARE
   migrated (zero `<section class="pageHeader">` remains under mod/), so
   section.pageHeaderV2 now owns 100% of in-app header styling. But retiring
   the block would regress TWO CG pages that the plan puts out of scope and
   that still render a hand-built header inside a `.main.filled` ancestor —
   i.e. they genuinely match these selectors, verified per file:

       index.php:68-70                  .main.filled          + section.pageHeader
       eula.php:17-19                   .main.login.filled    + section.pageHeader
       (struck, Phase 23: internal/invalidScan.php, internal/disputeTicket.php and
        internal/scanTicket.php no longer render section.pageHeader; they use
        .stpPubCol / the public notice helpers. internal/searchTicket.php also
        uses .stpPubCol, see the non-consumer list below.)

   index.php is the post-login seat-selection landing page — a live, primary
   CG surface.

   NON-consumers, checked and excluded (their header is NOT under .main.filled,
   so these selectors never matched them and never will):
       login.php:52-54        .main.full  (the MC branch now uses the same
                              .main.full card, :108-117 — see §8)
       resetcon.php:30        .main.full  (the MC branch now uses the same card)
       client.php:45          .main.full
       reset.php:37, :84      .main.full / .main.full.vCenter
       internal/searchTicket.php  .main.scan.filled + .stpPubCol (no section.pageHeader since 21.7)
   MC now links this file too: MC_headBase() (content/classes/MC/MC.php)
   emits the same stack via Main::stpThemeStack(). Plan mc-ui-parity moved
   the reachable mc/* headers to PageHeader (section.pageHeaderV2). The only
   hand-built section.pageHeader left under mc/ is on gated pages that back
   out before rendering (mc/fulfillment/* while mcFulfillmentEnabled() is
   false, mc/settings/userGroups.php); if they are re-enabled unmigrated they
   WILL match this block.

   CONSEQUENCE FOR LATER PHASES: this is now a BOUNDED compat layer for exactly
   those two pages, not a bridge for the mod/ population. Do not treat it as
   dead code (P6-D1 already forbids that for the V2 arm) and do not widen it.
   It becomes retirable only when those two pages are migrated to PageHeader
   or explicitly restyled; that is not Phase 7 work, since 7.1's scope
   correction lists them as out of scope.
   ------------------------------------------------------------------------- */

/* (0,3,1) — equals main.css:1110, later file wins. flex-direction:column and
   overflow:visible are intentionally NOT re-declared, so the framework values
   survive for the stacked (subtitle-bearing) headers. */
.main.filled section.pageHeader {
	align-content: flex-start;
	align-items: flex-start;
	text-align: left;
	padding: var(--stpHeaderPadY, 18px) var(--stpHeaderPadX, 28px);
	border-bottom: var(--stpHeaderHairline, 1px solid rgba(17, 17, 17, .08));
}

/* Row layout, GUARDED. (0,4,4) beats main.css:1110 (0,3,1).
   Surveyed all 44 legacy headers: the guarded-out set is exactly the six that
   carry a subtitle/filler (mod/settings/areasDetail.php, mod/inventory/receiveOrder.php,
   mod/fulfillment/shipping.php, mod/vehicles/vehicleDetail.php,
   mod/enforcement/issueTicket.php, mod/enforcement/issueChildTicket.php) — those
   keep the framework's column stack. Everything else is title-<h1> plus an
   optional controls-<h1>, which is exactly what a space-between row wants.
   Any phase adding a new subtitle element type to a legacy header must add it
   to this :not() chain or that header flattens into a row. */
.main.filled section.pageHeader:not(:has(h2)):not(:has(h3)):not(:has(h4)):not(:has(.headerFiller)) {
	flex-direction: row;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	column-gap: 15px;
}

/* GUARDED TITLE TYPOGRAPHY. (0,4,1) beats stpMain.css:31-35 and main.css:1103,
   both (0,3,2), on class count. The `:not(:has(.linkObjects))` is NOT
   decoration: 26 of the 44 legacy headers render PageHeadControls inside a
   second <h1> (PageHeadControls.php:212 emits div.linkObjects.tooltipWrap), and
   an unguarded rule paints those buttons 26px/800. */
.main.filled section.pageHeader > h1:not(:has(.linkObjects)) {
	font-weight: 800;
	font-size: 26px;
	line-height: 1.1;
	letter-spacing: -.01em;
	text-transform: none;
	color: var(--stpInk, #1a1a1a);
	text-align: left;
}

/* The CONTROLS <h1> is a button bar, not a heading. The explicit font-size is
   load-bearing: stpMain.css:31-35 still puts 30px on this element and every
   unsized descendant (.labelText, <i>) would inherit it. (0,4,1). */
.main.filled section.pageHeader > h1:has(.linkObjects) {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	flex-wrap: wrap;
	gap: 8px;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: normal;
	text-transform: none;
	color: var(--stpInk, #1a1a1a);
	padding: 0;
}


/* -------------------------------------------------------------------------
   6.3  PageHeadControls BUTTON MODE
   -------------------------------------------------------------------------
   PageHeadControls.php:221-231 wraps `div.formBtn.{width}.{class}` in
   `div.linkObjects.tooltipWrap`, so the pill itself is Phase 2's §2.1
   `.formBtn` base (box-sizing:border-box + min-width:0 there are what let
   these sit at header scale at all). Only the header-local geometry and the
   inherited type are corrected here.
   ------------------------------------------------------------------------- */

/* the wrapper must not add its own 5px gap / inline-flex baseline */
.main.filled section.pageHeader .linkObjects.tooltipWrap,
.main.filled section.pageHeaderV2 .headerBtns .linkObjects.tooltipWrap {
	align-items: center;
	gap: 0;
}

/* (0,5,1) equals main.css:1127; (0,4,2)/(0,5,1) for the legacy arm.
   The pill's own padding comes from §2.1 (8px 15px) — only gap is header-local. */
.main.filled section.pageHeader > h1 .linkObjects .formBtn,
.main.filled section.pageHeaderV2 .headerBtns .formBtn {
	gap: 7px;
	padding: 8px 15px;
	margin: 0;
}

.main.filled section.pageHeader > h1 .linkObjects .formBtn .labelText,
.main.filled section.pageHeaderV2 .headerBtns .formBtn .labelText {
	font-weight: 600;
	font-size: 12.5px;
	line-height: 1.4;
	letter-spacing: normal;
	text-transform: none;
	white-space: nowrap;
}

/* leading icon. (0,6,3)/(0,5,2) — beats main.css:1104 (0,3,3) and
   main.css:1130 (0,5,2, equal + later file). */
.main.filled section.pageHeader > h1 .linkObjects .formBtn i,
.main.filled section.pageHeaderV2 .headerBtns .formBtn i {
	font-size: 12px;
	line-height: 1;
	margin: 0;
	padding: 0;
	color: inherit;
}


/* -------------------------------------------------------------------------
   6.4  PageHeadControls ICON-ONLY MODE — 38x38 neutral box
   -------------------------------------------------------------------------
   CORRECT STRUCTURE (PageHeadControls.php:212 / :232): non-button mode nests
   TWO .linkObjects —

       div.linkObjects.tooltipWrap            <- outer, carries the onclick
         span.linkObjects[.tooltipTarget]     <- inner, THIS is the box
           i.link.fa-*
           span.labelText                     <- ALWAYS emitted, usually EMPTY

   The empty .labelText still consumes the 5px gap from main.css:1134, which is
   why the box looked off-centre; `.labelText:empty{display:none}` is the fix.
   ------------------------------------------------------------------------- */

/* (0,6,2) legacy / (0,7,1) V2 — both far above main.css:1134 (0,1,0) and
   main.css:1120-1125 (0,5,1). */
.main.filled section.pageHeader > h1 .linkObjects.tooltipWrap > .linkObjects,
.main.filled section.pageHeaderV2 .headerBtns .linkObjects.tooltipWrap > .linkObjects {
	box-sizing: border-box;
	width: var(--stpHeaderIconBox, 38px);
	height: var(--stpHeaderIconBox, 38px);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0;
	padding: 0;
	border: 1px solid var(--stpBorder, rgba(0, 0, 0, .14));
	border-radius: var(--stpHeaderIconRadius, 11px);
	background-color: var(--stpSurface, #fff);
	color: var(--stpInk, #1a1a1a);
	transition: background-color .14s ease, border-color .14s ease;
}

.main.filled section.pageHeader > h1 .linkObjects.tooltipWrap > .linkObjects:hover,
.main.filled section.pageHeaderV2 .headerBtns .linkObjects.tooltipWrap > .linkObjects:hover {
	background-color: var(--stpHover, #f5f5f4);
	border-color: var(--stpBorder, rgba(0, 0, 0, .14));
}

/* (0,6,3)/(0,7,2) — beats main.css:1104 `... section.pageHeader h1 i` (0,3,3),
   which would otherwise render this at .8em of the 30px heading. */
.main.filled section.pageHeader > h1 .linkObjects.tooltipWrap > .linkObjects i,
.main.filled section.pageHeaderV2 .headerBtns .linkObjects.tooltipWrap > .linkObjects i {
	font-size: 14px;
	line-height: 1;
	margin: 0;
	padding: 0;
	color: inherit;
}

/* The empty span PageHeadControls always emits. Global on purpose: an empty
   label has no reason to reserve a gap anywhere (the only other consumer is
   main.css:3987 `.table-header-actions .labelText`, white-space only). */
.labelText:empty {
	display: none;
}


/* -------------------------------------------------------------------------
   6.5  pageHeaderV2 .links — the nav-link slot (back / comments)
   -------------------------------------------------------------------------
   PHASE 7 MADE THIS SLOT BUSY. 21 of the 46 migrated mod/ headers route their
   back control through PageHeader::addLinkBack() / addLinkBackJS(), which
   render into `div.links` (PageHeader.php:238/260) — NOT into `.headerBtns`.
   §6.3/§6.4 only ever styled `.headerBtns`, so without this block the back
   control keeps main.css:1120-1126's 2px/4px inline-flex + #eee hover pill and
   inherits body type, reading visibly lighter than every other control in the
   same header. 12 pre-existing PageHeader pages already used this slot, so
   this block regularises 33 CG pages, not just the migrated ones.

   STRUCTURE (PageHeadControls.php:212/232 — non-button mode, TWO .linkObjects):
       div.linkObjects.tooltipWrap        <- outer, carries the onclick
         span.linkObjects[.tooltipTarget] <- inner, THIS is the pill
           i.link.fa-chevron-left
           span.labelText  ("Back")

   main.css:1120 `.main.filled section.pageHeaderV2 .links .linkObjects` is
   (0,5,1) and matches BOTH nodes, so the outer reset needs >= that and the
   inner pill needs the `> .linkObjects` child step to out-specify it.

   DELIBERATELY NOT TOUCHED: main.css:1111 keeps `.headerActions` as a COLUMN,
   so `.links` sits BELOW the title rather than beside it. That is the layout
   the 12 pre-existing PageHeader pages already render and Phase 6 verified at
   runtime; re-declaring flex-direction here would silently restyle all of
   them. Per P6-D4 the `flex: 1 1 auto` on .headerActions also stays.
   ------------------------------------------------------------------------- */

/* (0,6,1) — the outer wrapper contributes no padding or gap of its own,
   matching the .headerBtns wrapper reset in §6.3. */
.main.filled section.pageHeaderV2 .links .linkObjects.tooltipWrap {
	align-items: center;
	gap: 0;
	padding: 0;
}

/* (0,6,1) beats main.css:1120 (0,5,1) on class count. Asymmetric left padding
   optically centres the leading chevron against the label. */
.main.filled section.pageHeaderV2 .links .linkObjects.tooltipWrap > .linkObjects {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 12px 7px 9px;
	border-radius: var(--stpHeaderIconRadius, 11px);
	font-weight: 600;
	font-size: 12.5px;
	line-height: 1.4;
	letter-spacing: normal;
	text-transform: none;
	color: var(--stpSecondary, #6f6f6f);
	transition: background-color .14s ease, color .14s ease;
}

/* (0,7,1) beats main.css:1124 (0,5,1) — replaces the #eee / 12px-radius pill. */
.main.filled section.pageHeaderV2 .links .linkObjects.tooltipWrap > .linkObjects:hover {
	background-color: var(--stpHover, #f5f5f4);
	color: var(--stpInk, #1a1a1a);
	border-radius: var(--stpHeaderIconRadius, 11px);
}

/* (0,7,2) — the chevron reads as a caret, not a heading glyph. Beats
   main.css:1146 `... pageHeaderV2 h1 i` only by not being in an h1 at all;
   the real competitor here is main.css:1134's .linkObjects gap, reset above. */
.main.filled section.pageHeaderV2 .links .linkObjects.tooltipWrap > .linkObjects i {
	font-size: 11px;
	line-height: 1;
	margin: 0;
	padding: 0;
	color: inherit;
}


/* -------------------------------------------------------------------------
   6.6  .stpToolbar — count + search + actions strip
   -------------------------------------------------------------------------
   COMPOSED FROM FRAMEWORK ELEMENTS. There is NO existing DOM node holding
   count + search + buttons: FormV2 emits no record count and no table-level
   search control, and .sectionBox (main.css:800) is only padding +
   inline-block. The consuming page must BUILD the node with FilterFormV3:

       (new FilterFormV3($main))
           ->wrapInFormTags('form', 'sectionBox w100 stpToolbar')  // :384
           ->search([...])                                          // :109
           ->addButton('filters', 'Filters', '...')                 // :300
           ->addButton('download', 'Download', '...')
           ->addFormElement($k, ffoType::html)                      // count span
           ->render();

   PHASE 9 OWNS that composition AND the count VALUE — Phase 6 only ships the
   CSS, because Phase 6 is fenced out of mod/tickets/index.php:27 and :131-141.
   The count markup Phase 9 must emit into the ffoType::html element is:
       <span class="stpToolbarCount"><strong>1,248</strong> tickets</span>

   NOTE for Phase 9: `.stpToolbar` is added to §2.6's card :not() chain so this
   strip renders as a flat hairline row instead of a card-inside-a-card
   (sanctioned by constraint P2-D3).
   ------------------------------------------------------------------------- */

/* (0,3,0) beats main.css:800 `.main .sectionBox` (0,2,0). Radius/shadow/border
   are zeroed here rather than relying on the :not() exclusion alone, so the
   rule is correct even if the chain is ever re-ordered. */
.main .sectionBox.stpToolbar {
	padding: 14px 18px;
	border: 0;
	border-bottom: var(--stpHeaderHairline, 1px solid rgba(17, 17, 17, .08));
	border-radius: 0;
	box-shadow: none;
	/* transparent: the strip sits on the warm canvas, not on a white box above the table card.
	   Search inputs and pill buttons keep their own white fill. */
	background-color: transparent;
	box-sizing: border-box;
	font-size: 13px;
}

/* (0,3,0) beats main.css:1713 `.formRow` (0,1,0) — inside the toolbar the
   row is a layout strip, not a bordered form row. */
.main .sectionBox.stpToolbar .formRow {
	margin: 0;
	border-bottom: 0;
	align-items: center;
	flex-wrap: wrap;
	row-gap: 8px;
}

.stpToolbar .stpToolbarCount {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 13px;
	font-weight: 400;
	line-height: 1.4;
	color: var(--stpSecondary, #6f6f6f);
	white-space: nowrap;
}

.stpToolbar .stpToolbarCount strong,
.stpToolbar .stpToolbarCount b {
	font-weight: 700;
	color: var(--stpInk, #1a1a1a);
	font-variant-numeric: tabular-nums;
}


/* -------------------------------------------------------------------------
   6.7  OFFSET SWEEP — audit result, deliberately almost no CSS
   -------------------------------------------------------------------------
   (a) --headBarHeight is PHASE 5's (see §1 and constraint P1-D1). Phase 6 does
       NOT set it, and every rule above is header-height-agnostic.

   (b) `.popUpBox{margin-top}` — the one real 95px-derived offset (stpMain.css:17
       shipped 120px = 95px header + 25px). ALREADY DONE by Phase 5: §5 declares
       `.popUpBox{margin-top: calc(var(--headBarHeight,46px) + 25px)}` (see the
       rule above the `.popUpBox.small` block). NOT duplicated here — a second
       declaration at equal specificity would only make the winner ambiguous.

   (c) VERIFY-ONLY items, both already header-keyed and self-correcting:
         main.css:1718  .formRow.subHead  -> reads var(--headBarHeight); Phase 4
                        re-declares its offset as
                        calc(var(--headBarHeight) + var(--stpTableHeadHeight,44px))
                        in §4 (see 4.8). Untouched here.
         stpMain.css:218 / main.css:1983  .loading -> rebased by Phase 5 in §5 to
                        height:calc(100vh - var(--headBarHeight))
                        + margin-top:var(--headBarHeight). Untouched here.

   DELETED FROM REV 2 as mischaracterised (recorded so nobody "restores" them):
     - the favourites bar (main.css:4206) is position:fixed bottom:0 and was
       never header-keyed;
     - `.headerBar:has(~ .popUpBox.active)` (main.css:776) is padding-right
       scrollbar compensation, not a vertical offset.
   ------------------------------------------------------------------------- */

/* 4.4 CG leak — stpMain.css:32-34 (0,3,2). Spline Sans is never loaded;
   remaining visible leak is text-transform:uppercase + color:#555.
   Equal spec + later source order beats both. Higher-spec §6 title rules
   (.hx h1 / guarded legacy h1) still win for size/weight. font-style:normal
   matches the leak (the italic rule is h3 at stpMain.css:24). */
.main.filled section.pageHeaderV2 h1,
.main.filled section.pageHeader h1 {
	font-family: var(--stpFont, -apple-system, system-ui, 'Segoe UI', Helvetica, Arial, sans-serif);
	font-style: normal;
	text-transform: none;
	color: var(--stpInk, #1a1a1a);
}

/* 6.8  HEADER SPLIT MENU (Phase 18.4). Deliberately NOT scoped to a page wrapper:
   the menu is re-parented to <body> when it opens. (0,3,0) for the red option. */
.splitBtnMenu {
	border-radius: 12px;
	border: var(--stpHairline, 1px solid rgba(17, 17, 17, .10));
	box-shadow: var(--stpShadowModal, 0 12px 32px rgba(0, 0, 0, .14));
	background-color: var(--stpSurface, #fff);
}

.splitBtnMenu .menuOption {
	font-size: 13px;
	padding: 10px 14px;
}

.splitBtnMenu .menuOption.red {
	color: var(--stpAccent, #c8102e);
}

.splitBtnMenu .menuOption.red:hover {
	background-color: var(--stpAccentBg, #fbe9ec);
}


/* 6.R Reports: "Report by" segmented switch + sub-report link cards (Phase 20.10).
   Each link renders div.linkObjects.tooltipWrap > span.linkObjects. Scoped under
   .main.filled section.pageHeaderV2.stpReportsHead to beat main.css:1127 (0,5,1). */
.stpSegSwitch {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 3px;
	border-radius: var(--stpPill, 999px);
	background-color: var(--stpHover, #f5f5f4);
}

.main.filled section.pageHeaderV2.stpReportsHead .headerBtns .stpSegSwitch > .linkObjects.tooltipWrap {
	display: inline-flex;
	margin: 0;
	padding: 0;
}

.stpSegSwitch .stpSegBtn {
	background-color: transparent;
	border: 0;
	box-shadow: none;
	font-size: 12.5px;
	font-weight: 600;
	color: var(--stpBodyAlt, #555);
}

.stpSegSwitch .stpSegBtn.is-on {
	background-color: var(--stpSurface, #fff);
	color: var(--stpInk, #1a1a1a);
	box-shadow: 0 1px 2px rgba(17, 17, 17, .12);
}

.stpSegLabel {
	padding: 0 8px 0 10px;
	font-size: 12px;
	font-weight: 600;
	color: var(--stpSecondary, #6f6f6f);
}

.main.filled section.pageHeaderV2.stpReportsHead .links {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 12px;
}

.main.filled section.pageHeaderV2.stpReportsHead .links .linkObjects.tooltipWrap {
	display: block;
	padding: 0;
}

.main.filled section.pageHeaderV2.stpReportsHead .links .linkObjects.tooltipWrap > .linkObjects {
	display: flex;
	gap: 10px;
	align-items: center;
	min-height: 60px;
	padding: 12px 14px;
	border: var(--stpHairline, 1px solid rgba(17, 17, 17, .10));
	border-radius: var(--stpRadius, 14px);
}

.main.filled section.pageHeaderV2.stpReportsHead .links .linkObjects.tooltipWrap > .linkObjects i {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 32px;
	width: 32px;
	height: 32px;
	border-radius: 8px;
	background-color: var(--stpHover, #f5f5f4);
	color: var(--stpInk, #1a1a1a);
}

.main.filled section.pageHeaderV2.stpReportsHead .links .linkObjects .labelText small {
	display: block;
	font-size: 12px;
	font-weight: 400;
	color: var(--stpSecondary, #6f6f6f);
}

.main .sectionBox.stpRepMore {
	display: none;
}

/* Seat home (index.php CG branch). Disabled cells carry .cellGray, and
   main.css:1821-1825 paints .formRow:not(.altColorTextOnly) > div.cellGray
   (and its select/input) italic. Seat status, related mod group and current
   user are all disabled, so they render italic. Upright here, page-scoped;
   the grey disabled colour is kept. (0,4,1) / (0,4,2) beat main.css (0,3,1)
   / (0,3,2). */
.main .stpSeatsHome .formRow > div.cellGray,
.main .stpSeatsHome .formRow > div.cellGray select,
.main .stpSeatsHome .formRow > div.cellGray input {
	font-style: normal;
}


/* =========================================================================
   §8 login
   ========================================================================= */

/* -------------------------------------------------------------------------
   8.1 SCOPING — READ BEFORE ADDING A RULE HERE
   -------------------------------------------------------------------------
   login.php wraps the CG card in `div.main.full` + `form#loginForm.loginBox.stpLoginCard`.

   `stpLoginCard` is a NEW class added by this phase precisely because the two
   obvious hooks are both shared:
     - `.main.login` (stpMain.css:98-104) is resetcon.php's wrapper, NOT login.php's
       (login.php has always used `.main.full`);
     - bare `.main .loginBox` (stpMain.css:213 AND main.css:2466, both (0,2,0)) is
       shared by reset.php, resetcon.php, client.php and internal/searchTicket.php.
   Neither is touched. EVERY rule below carries `.stpLoginCard`, so nothing here can
   reach those four pages.

   WHY THE `#loginForm` ID PREFIX: §2.6's card rule is
   `.main .sectionBox:not()x12` = (0,13,0). The login card's own header is a
   `section.sectionBox`, so a class-only override such as
   `.main .loginBox.stpLoginCard section.sectionBox` (0,4,1) LOSES the cascade and the
   header renders as a card inside a card. §2 is append-locked for this phase (the
   P2-D3 route of extending its :not() chain is not available), so specificity is
   bought with the id login.php already emits: `#loginForm.stpLoginCard ...` is
   (1,2,x) and beats every framework/§2 chain outright. Keep both parts — the class
   is the scope, the id is the weight.
   reset.php / resetcon.php (#resetForm) and client.php (#clientForm) wear the
   same card: every selector is `:is(#loginForm, #resetForm, #clientForm)`, and
   :is() keeps the id weight.
   ------------------------------------------------------------------------- */

/* §8 tokens — declared here (not in §1, which is append-locked for this phase);
   Phase 12 may promote them verbatim and nothing below needs editing. */
:root {
	--stpLoginCardWidth: 396px;
	--stpLoginLogoWidth: 186px;
	--stpLoginPadX: 34px;
}

/* -------------------------------------------------------------------------
   8.6 the card
   -------------------------------------------------------------------------
   Overrides BOTH shared `.main .loginBox` rules: stpMain.css:213 (width 420px,
   height 600px, `#666666 solid 1px`, padding 0 30px, display:inline-flex) and
   main.css:2466 (width 420px, min-height 600px). height/min-height must BOTH be
   released or the 600px box stays. `font-size` replaces the inline
   `style="font-size:16px"` stripped from login.php's .main wrapper — §1's
   `body{font-size:0}` is load-bearing (P1-D8), so the card has to re-establish a
   text size for everything it contains.
   ------------------------------------------------------------------------- */
.main :is(#loginForm, #resetForm, #clientForm).loginBox.stpLoginCard {
	display: block;
	width: var(--stpLoginCardWidth, 396px);
	max-width: calc(100% - 32px);
	height: auto;
	min-height: 0;
	margin: 7vh auto 0;
	padding: var(--stpLoginPadX, 34px) var(--stpLoginPadX, 34px) 28px;
	box-sizing: border-box;
	background-color: var(--stpSurface, #fff);
	border: 1px solid var(--stpHairlineColor, rgba(17, 17, 17, .10));
	border-radius: var(--stpRadius, 14px);
	box-shadow: var(--stpShadow, 0 1px 2px rgba(0, 0, 0, .05));
	text-align: left;
	font-family: var(--stpFont, system-ui, sans-serif);
	font-size: 14px;
	line-height: 1.45;
	color: var(--stpInk, #1a1a1a);
}

/* header — chrome-free (see 8.1 on why the id is required), centred logo block */
:is(#loginForm, #resetForm, #clientForm).stpLoginCard section.sectionBox.pageHeader {
	display: block;
	width: 100%;
	margin: 0 0 22px;
	padding: 0;
	background-color: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	text-align: center;
}

/* LOGO — plan task 8.5 DEVIATION: the design's black wordmark does not exist in the
   repo (only content/img/stp-logo.png and content/img/bo/stp-logo.png), so the
   existing logo is reused at the design's 186px width. The inline
   `height:60px;margin-top:20px` was STRIPPED from the <img> in login.php — an inline
   height cannot be beaten from a stylesheet without !important, which is reserved. */
:is(#loginForm, #resetForm, #clientForm).stpLoginCard .stpLoginLogo {
	display: block;
	margin: 0 auto;
	font-size: 0;
}

:is(#loginForm, #resetForm, #clientForm).stpLoginCard .stpLoginLogo img {
	display: block;
	width: var(--stpLoginLogoWidth, 186px);
	max-width: 100%;
	height: auto;
	margin: 0 auto;
}

:is(#loginForm, #resetForm, #clientForm).stpLoginCard section.sectionBox.pageHeader h3 {
	margin: 14px 0 0;
	padding: 0;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.4;
	color: var(--stpMuted, #9a9a9a);
	text-align: center;
}

/* fields inherit §2.2's pill; only the row rhythm is set here */
:is(#loginForm, #resetForm, #clientForm).stpLoginCard section.block.long {
	width: 100%;
	margin: 0 0 12px;
	padding: 0;
}

/* main.css ships `.longBlock.formInput` at calc(100% - 20px) with a 10px vertical
   margin — RUNTIME-MEASURED: fields came out 306px inside a 326px section, i.e. 20px
   narrower than the Login pill. width/margin are what align the two. */
:is(#loginForm, #resetForm, #clientForm).stpLoginCard section.block.long .longBlock.formInput {
	width: 100%;
	height: auto;
	margin: 0;
	padding: 0;
}

:is(#loginForm, #resetForm, #clientForm).stpLoginCard section.block.long .longBlock.formInput input[type='text'],
:is(#loginForm, #resetForm, #clientForm).stpLoginCard section.block.long .longBlock.formInput input[type='password'] {
	width: 100%;
	box-sizing: border-box;
}

/* LABEL ABOVE THE FIELD — login card only. FormV2 emits the field label AFTER the
   control (FormV2.php's $labelBottom) and main.css:1636 lays `.subject` out as a
   plain column, so labels render UNDER the pill. `column-reverse` flips only this
   card; the app-wide convention is untouched. `:not(.directionRow)` is LOAD-BEARING:
   main.css:1639 `.subject.directionRow{flex-direction:row}` is (0,5,1) and this rule
   would otherwise tie it on class count and beat it on source order, stacking the
   toggle vertically. */
:is(#loginForm, #resetForm, #clientForm).stpLoginCard section.block.long .longBlock.formInput .subject:not(.directionRow) {
	flex-direction: column-reverse;
}

:is(#loginForm, #resetForm, #clientForm).stpLoginCard section.block.long .longBlock.formInput .subject:not(.directionRow) .formFieldLabel {
	margin: 0 0 6px;
}

:is(#loginForm, #resetForm, #clientForm).stpLoginCard section.block.long .longBlock.formInput .subject:not(.directionRow) .formFieldLabel > label {
	font-size: 12.5px;
	font-weight: 600;
	color: var(--stpBodyAlt, #555);
}

:is(#loginForm, #resetForm, #clientForm).stpLoginCard section.block.long .longBlock.formInput .subject:not(.directionRow) input {
	margin: 0;
}

/* -------------------------------------------------------------------------
   8.2 the Password/PIN toggle row
   -------------------------------------------------------------------------
   Markup is Phase 3's opt-in sideLabels output:
     <span class="toggle-switch-label off">Password</span>
     <label class="toggle-switch-wrapper">…</label>
     <span class="toggle-switch-label on">PIN</span>
   Per P3-D7 ONLY `.toggle-switch-label.off/.on` are styled — the wrapper and slider
   geometry stay §2.9's. The row itself keeps the framework's `.subject.directionRow`
   flex-direction (main.css:1639); only wrapping + label order are adjusted so the
   question ("How would you like to login?") sits above the switch instead of beside it.
   ------------------------------------------------------------------------- */
:is(#loginForm, #resetForm, #clientForm).stpLoginCard section.block.long .longBlock.formInput .subject.directionRow {
	flex-wrap: wrap;
	justify-content: center;
	column-gap: 10px;
	row-gap: 8px;
}

:is(#loginForm, #resetForm, #clientForm).stpLoginCard section.block.long .longBlock.formInput .subject.directionRow .formFieldLabel {
	order: -1;
	flex: 0 0 100%;
	margin: 0;
	text-align: center;
}

:is(#loginForm, #resetForm, #clientForm).stpLoginCard section.block.long .longBlock.formInput .subject.directionRow .formFieldLabel > label {
	font-size: 12.5px;
	font-weight: 600;
	color: var(--stpBodyAlt, #555);
}

:is(#loginForm, #resetForm, #clientForm).stpLoginCard .toggle-switch-label {
	font-size: 13px;
	font-weight: 500;
	line-height: 1;
	color: var(--stpMuted, #9a9a9a);
	white-space: nowrap;
	user-select: none;
}

/* the side matching the switch position reads as the selected mode. :has() is
   progressive: without it BOTH labels simply stay muted — no layout change. */
:is(#loginForm, #resetForm, #clientForm).stpLoginCard .toggle-switch-label.off:has(~ .toggle-switch-wrapper input:not(:checked)),
:is(#loginForm, #resetForm, #clientForm).stpLoginCard .toggle-switch-wrapper:has(input:checked) ~ .toggle-switch-label.on {
	color: var(--stpInk, #1a1a1a);
	font-weight: 600;
}

/* -------------------------------------------------------------------------
   8.6 buttons
   -------------------------------------------------------------------------
   Form-mode buttons are emitted BARE by FormV2.php:2969 (`ffoType::button` with no
   btnFull skips the section/.formInput wrapper entirely), so §2's
   `section.block.long .longBlock.formInput input[type='button']` rules never apply
   here — these are `.formBtn.inRow.{class}` inputs and main.css:270 `.formBtn.inRow`
   is what zeroes their margins.
   ------------------------------------------------------------------------- */
:is(#loginForm, #resetForm, #clientForm).stpLoginCard .formBtn.green {
	display: block;
	width: 100%;
	box-sizing: border-box;
	margin: 6px 0 0;
	padding: 13px 20px;
	border: 1px solid var(--stpInk, #1a1a1a);
	border-radius: var(--stpPill, 999px);
	background-color: var(--stpInk, #1a1a1a);
	color: var(--stpSurface, #fff);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	white-space: nowrap;
}

:is(#loginForm, #resetForm, #clientForm).stpLoginCard .formBtn.green:hover {
	background-color: var(--stpInkHover, #333);
	border-color: var(--stpInkHover, #333);
	color: var(--stpSurface, #fff);
	cursor: pointer;
}

/* the reset control ("Reset Password" / "Forgot PIN") reads as a quiet link.
   `:not(.androidSettings)` spares the Android Settings button, which shares the
   secondaryBtn class and must keep looking like a button. */
:is(#loginForm, #resetForm, #clientForm).stpLoginCard .formBtn.secondaryBtn:not(.androidSettings) {
	display: block;
	width: 100%;
	box-sizing: border-box;
	margin: 12px 0 0;
	padding: 4px 0;
	border: 0;
	background-color: transparent;
	color: var(--stpBodyAlt, #555);
	font-size: 13px;
	font-weight: 500;
	text-align: center;
}

:is(#loginForm, #resetForm, #clientForm).stpLoginCard .formBtn.secondaryBtn:not(.androidSettings):hover {
	background-color: transparent;
	color: var(--stpInk, #1a1a1a);
	text-decoration: underline;
	cursor: pointer;
}

/* RUNTIME BUG CAUGHT BY PLAYWRIGHT: an unconditional `display:block` here beat
   main.css:3786 `.androidSettings{display:none}` (0,1,0) and the Settings button
   appeared on desktop. main.css:3787 reveals it only once the UA check in
   Session::getLoginForm()'s injected script adds `.active`, so this rule is gated on
   `.active` and NEVER declares display outside it. */
:is(#loginForm, #resetForm, #clientForm).stpLoginCard .formBtn.secondaryBtn.androidSettings.active {
	display: block;
	width: 100%;
	box-sizing: border-box;
	margin: 10px 0 0;
	padding: 11px 16px;
}

/* -------------------------------------------------------------------------
   8.5 footer divider + "Not signed up? Create an Account"
   -------------------------------------------------------------------------
   The line is a framework element, not raw HTML: an `extraLinks` entry
   (Session.php's hoisted loop) rendered as `ffoType::textLink`, i.e.
   section.block.long.center > .longBlock.formInput > .subject > div.formLink.underline.
   `:has()` targets that one section so the divider cannot land on a field row.
   DEVIATION: the design's two-tone footer (muted prefix + 600 link) renders as ONE
   weight — extraLinks emits a single text node and splitting it would need either raw
   HTML in the page or a framework change, both out of scope for this phase.
   ------------------------------------------------------------------------- */
:is(#loginForm, #resetForm, #clientForm).stpLoginCard section.block.long:has(.formLink.underline) {
	margin: 20px 0 0;
	padding: 18px 0 0;
	border-top: var(--stpHeaderHairline, 1px solid rgba(17, 17, 17, .08));
}

:is(#loginForm, #resetForm, #clientForm).stpLoginCard .formLink.underline {
	display: block;
	width: 100%;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
	color: var(--stpInk, #1a1a1a);
	text-align: center;
	text-decoration: none;
	cursor: pointer;
}

:is(#loginForm, #resetForm, #clientForm).stpLoginCard .formLink.underline:hover {
	color: var(--stpInkHover, #333);
	text-decoration: underline;
}

/* -------------------------------------------------------------------------
   8.7 #rmsg on the login page
   -------------------------------------------------------------------------
   CORRECTION to rev 2: stpMain.css:254-258 is `.badge.orange/.red`, NOT a login
   toast. The rules that actually reach this element are stpMain.css:223-225
   (`#rmsg`, `#rmsg::after`, `#rmsg.active` — GLOBAL to every page) plus
   main.css:2145 and main.css:2470 (`#rmsg.login`). Base `#rmsg` is deliberately
   LEFT ALONE so every non-login page keeps its toast; `#rmsg.login` at (1,1,0)
   beats stpMain's `#rmsg` (1,0,0) and, being later in source order, beats
   main.css's own `#rmsg.login` too. stpMainTap.css / stpMainMobile.css declare no
   #rmsg rule (grepped), so nothing loaded after this reclaims it.
   Padding lives on `.active` ONLY: dispMsg() (js/main.js:406) always adds `active`
   and handleMsgTimeout() removes it after 5s, so the empty placeholder collapses to
   zero height instead of reserving a 20px gap under the button.
   ------------------------------------------------------------------------- */
:is(#loginForm, #resetForm, #clientForm).stpLoginCard #rmsg.login {
	position: static;
	top: auto;
	bottom: auto;
	left: auto;
	right: auto;
	display: block;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	margin: 0;
	padding: 0;
	border-radius: 10px;
	box-shadow: none;
	font-size: 13px;
	line-height: 1.45;
	text-align: center;
}

:is(#loginForm, #resetForm, #clientForm).stpLoginCard #rmsg.login.active {
	margin: 14px 0 0;
	padding: 10px 14px;
}

:is(#loginForm, #resetForm, #clientForm).stpLoginCard #rmsg.login::after {
	display: none;
	border: none;
}



/* -------------------------------------------------------------------------
   8.P PUBLIC NOTICE (Phase 21) - shared by disputeTicket, searchTicket,
   invalidScan and the payer page. Specificity notes: .main.scan.filled >
   .stpPubCol (0,4,0) beats main.css:798 .main.filled > div (0,2,1);
   .main.scan beats stpMain.css:96 by later order. .loginBox is untouched.
   ------------------------------------------------------------------------- */
:root {
	--stpBorderFocus: rgba(0, 0, 0, .34);
}

.main.scan {
	margin-top: 0;
	height: auto;
	width: 100%;
}

.main.scan.filled > .stpPubCol {
	display: flex;
	flex-direction: column;
	gap: 16px;
	max-width: 552px;
	margin: 0 auto;
	padding: 24px 16px 0;
	background: transparent;
	text-align: left;
}

.main.scan.filled > .stpPubCol > .sectionBox.w40,
.main.scan.filled > .stpPubCol > .sectionBox.w60 {
	width: 100%;
	margin-left: 0;
	margin-right: 0;
}

.stpPubHead {
	display: flex;
	align-items: center;
	gap: 12px;
	padding-bottom: 14px;
	border-bottom: var(--stpHairline, 1px solid rgba(17, 17, 17, .10));
	font-family: var(--stpFont, -apple-system, system-ui, 'Segoe UI', Helvetica, Arial, sans-serif);
}

.stpPubOp b {
	display: block;
	font-size: 15px;
	font-weight: 700;
	color: var(--stpInk, #1a1a1a);
}

.stpPubOp span {
	font-size: 12.5px;
	color: var(--stpSecondary, #6f6f6f);
}


.stpPubHead .stpPubMark,
.stpPubFoot .stpPubMark {
	margin-left: auto;
}

/* stp-logo.png sits on an opaque white box; multiply drops it into the canvas */
.stpPubMark img {
	display: block;
	height: 28px;
	width: auto;
	mix-blend-mode: multiply;
}

.stpPubMark .stpPubMarkDark {
	display: none;
}

.stpPubFoot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 16px;
	padding: 8px 0 24px;
	font-size: 12.5px;
	color: var(--stpSecondary, #6f6f6f);
}

.stpPubFoot a {
	min-height: 40px;
	display: inline-flex;
	align-items: center;
	color: var(--stpSecondary, #6f6f6f);
}

#searchNotice.stpPubSearch {
	background: #fff;
	border: var(--stpHairline, 1px solid rgba(17, 17, 17, .10));
	border-radius: 14px;
	padding: 20px;
	box-sizing: border-box;
	text-align: left;
}

#searchNotice.stpPubSearch h1 {
	font-family: var(--stpFont, -apple-system, system-ui, 'Segoe UI', Helvetica, Arial, sans-serif);
	font-size: 20px;
	font-weight: 750;
	font-style: normal;
	text-transform: none;
	color: var(--stpInk, #1a1a1a);
	margin: 0 0 6px;
	text-align: left;
}

#searchNotice.stpPubSearch > p {
	font-size: 13.5px;
	color: var(--stpSecondary, #6f6f6f);
	margin: 0 0 14px;
}

#searchNotice.stpPubSearch > p.stpPubHelp {
	font-size: 12.5px;
	margin: 14px 0 0;
}

#searchNotice.stpPubSearch input[name='ticketCode'] {
	font-family: var(--stpMono, ui-monospace, monospace);
	text-transform: uppercase;
}

/* ---- 8.P payer page (Phase 22): summary card, photos, notice rows, pay card ---- */
.stpPubCol .ffo-card {
	border-radius: var(--stpRadius, 14px);
}

.stpPubAmt {
	margin: 2px 0;
	font-size: 36px;
	font-weight: 750;
	font-style: normal;
	line-height: 1.1;
	font-variant-numeric: tabular-nums;
	color: var(--stpInk, #1a1a1a);
}

.stpMono {
	font-family: var(--stpMono, ui-monospace, monospace);
}

.stpPubSub {
	display: block;
	font-size: 12.5px;
	color: var(--stpSecondary, #6f6f6f);
}

/* Vehicle / Location / Issued list: more air between rows and off the banner
   above / photos below. (0,2,0) beats main.css .ffo-kv (0,1,0). */
.stpPubCol .ffo-kv {
	gap: 10px 16px;
	margin: 16px 0;
}

.stpPubPhotos {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 8px;
	counter-reset: ph;
}

.stpPubPhotos > a {
	display: block;
	position: relative;
	min-width: 0;
	counter-increment: ph;
}

.stpPubPhotos > a::after {
	content: counter(ph);
	position: absolute;
	left: 8px;
	bottom: 6px;
	font: 600 11px var(--stpFont, system-ui);
	color: rgba(255, 255, 255, .9);
}

.stpPubPhotos img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: 10px;
}

.stpPubPhotos > .contentFileMsg {
	display: grid;
	place-items: center;
	aspect-ratio: 4 / 3;
	border-radius: 10px;
	border: var(--stpHairline, 1px solid rgba(17, 17, 17, .10));
	font-size: 12px;
	color: var(--stpSecondary, #6f6f6f);
}

.stpPubPhotos > .contentFileMsg em {
	font-style: normal;
}

/* notice rows */
.stpPubNotice {
	display: flex;
	border-bottom: var(--stpRowDivider, 1px solid rgba(17, 17, 17, .06));
}

.stpPubNoticeHit {
	display: flex;
	align-items: center;
	gap: 12px;
	flex: 1;
	min-height: 64px;
	padding: 12px 18px;
	box-sizing: border-box;
	color: inherit;
}

a.stpPubNoticeHit:hover {
	background-color: var(--stpRowHover, #f7f7f6);
}

.stpPubCb {
	display: grid;
	place-items: center;
	flex: none;
	width: 22px;
	height: 22px;
	border-radius: 7px;
	border: 1px solid var(--stpBorder, rgba(0, 0, 0, .14));
	font-size: 14px;
	line-height: 1;
}

.stpPubNoticeHit[aria-checked='true'] .stpPubCb,
.stpPubNotice.is-current .stpPubCb {
	background-color: var(--stpInk, #1a1a1a);
	color: var(--stpSurface, #fff);
}

.stpPubNoticeHit[aria-checked='true'] .stpPubCb::after,
.stpPubNotice.is-current .stpPubCb::after {
	content: '\2713';
}

.stpPubNotice.is-current .stpPubCb {
	background-color: var(--stpMuted, #9a9a9a);
}

.stpPubNoticeMain {
	flex: 1;
	min-width: 0;
}

.stpPubNoticeMain small {
	display: block;
	font-size: 12.5px;
	color: var(--stpSecondary, #6f6f6f);
}

.stpPubNoticeAmt {
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

.stpPubTag {
	display: inline-block;
	margin-left: 6px;
	padding: 2px 8px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 600;
	color: var(--stpSecondary, #6f6f6f);
	background-color: var(--stpRowHover, #f7f7f6);
}

.stpPubNotice.is-off .stpPubNoticeMain b,
.stpPubNotice.is-off .stpPubNoticeAmt {
	color: var(--stpMuted, #9a9a9a);
}

.stpPubNoticeView {
	display: flex;
	align-items: center;
	min-height: 40px;
	padding: 0 18px 0 0;
	font-size: 12.5px;
	text-decoration: underline;
}

.stpPubCol a.formBtn,
.stpPubNoticeHit,
.stpPubNoticeHit:hover {
	text-decoration: none;
}

/* pay card */
#payment-form.stpPubCard {
	display: block;
	background-color: var(--stpSurface, #fff);
	border: var(--stpHairline, 1px solid rgba(17, 17, 17, .10));
	border-radius: var(--stpRadius, 14px);
	padding: 20px;
	box-sizing: border-box;
	text-align: left;
}

#payment-form.stpPubPay label {
	display: block;
	margin: 12px 0 6px;
	font-size: 12.5px;
	font-weight: 600;
	color: var(--stpSecondary, #6f6f6f);
}

#payment-form.stpPubPay input.stpPubInput {
	width: 100%;
	box-sizing: border-box;
	margin-bottom: 16px;
	padding: 12px;
	font-size: 16px;
	border: 1px solid var(--stpBorder, rgba(0, 0, 0, .14));
	border-radius: 10px;
	background-color: var(--stpSurface, #fff);
}

#payment-form.stpPubPay input.stpPubInput:focus {
	border-color: var(--stpBorderFocus, rgba(0, 0, 0, .34));
	outline: none;
	box-shadow: none;
}

#payment-form .formBtn.fullWidth {
	min-height: 48px;
	margin: 16px 0 0;
}

#payment-form a.formBtn.fullWidth {
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
}

.stpPubNote {
	display: flex;
	justify-content: center;
	gap: 6px;
	font-size: 12px;
	color: var(--stpSecondary, #6f6f6f);
	margin: 12px 0 0;
}

#payment-form .stpPubNote:empty {
	display: none;
}

.stpPubOr {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 20px 0 4px;
	font-size: 12px;
	text-align: center;
	color: var(--stpSecondary, #6f6f6f);
}

.stpPubOr::before,
.stpPubOr::after {
	content: '';
	flex: 1;
	border-top: var(--stpHairline, 1px solid rgba(17, 17, 17, .10));
}

.stpPubMail {
	font-size: 13.5px;
}

.stpPubMail .ffo-card-b > * {
	margin: 0 0 8px;
}

.stpPubPayBar {
	display: none;
}

.stpPubPayBar span {
	font-size: 11.5px;
	color: var(--stpSecondary, #6f6f6f);
}

.stpPubPayBar b {
	display: block;
	font-size: 20px;
	color: var(--stpInk, #1a1a1a);
}

/* runtime fix 24.7-h2: main.css:5705 .ffo-card-f is display:flex, so the kit
   cost rows shrank to their content ("Total due$250.00", ~140px hairline).
   (0,3,0) > .ffo-card-f (0,1,0); the wrapper takes the full footer row. */
.stpPubCol .ffo-card-f > .stpCostRows {
	flex: 1 1 100%;
	min-width: 0;
}

/* runtime fix 24.7-srv: pay card shown when Stripe is unavailable
   (CardV1 .stpPubPayOff). The dispute link keeps the #payment-form look;
   (0,3,1) > main.css:273 .formBtn.fullWidth (0,2,0). */
.stpPubPayOff a.formBtn.fullWidth {
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	min-height: 48px;
	margin: 16px 0 0;
	text-decoration: none;
}

/* -------------------------------------------------------------------------
   8.x pre-auth pages share the CANVAS (theme-colours round 2)
   -------------------------------------------------------------------------
   Reversed from round 1 (which re-whited them): the pre-auth pages now sit on
   the same light-grey canvas as the console, so the white login card reads as
   a raised surface. Scope is `body:has(.main.full)` (login.php, resetcon.php,
   reset.php, client.php) and `.main.login` (eula.php). Neither class is used
   by a signed-in console page.
   `.main.login section|form|div` repeats stpMain.css:102-104 (0,2,1) with
   the canvas token; cards (.sectionBox / .loginBox) and the text inputs that
   stpMain.css:100-101 also paints with --bg are put back on the surface.
   ------------------------------------------------------------------------- */
body:has(.main.full),
body:has(.main.login) {
	background-color: var(--stpCanvas, #f6f6f4);
}

.main.login,
.main.login section,
.main.login form,
.main.login div {
	background-color: var(--stpCanvas, #f6f6f4);
}

.main.login .sectionBox,
.main.login .loginBox,
.main.login form input[type='text'],
.main.login form input[type='password'] {
	background-color: var(--stpSurface, #fff);
}


/* =========================================================================
   §9 tickets
   ========================================================================= */

/* -------------------------------------------------------------------------
   9.A  FILTER MODAL (artboard 4a)
   -------------------------------------------------------------------------
   The panel is now `buildPopUpWrapper('ticketFilterModal', ..., ['classes' =>
   'mediumV2 stpFilterModal'])`. `.mediumV2` is ALREADY rail-aware via
   `left: var(--navLeftCurrentWidth)` (main.css:741-744) and constraint P5-D2
   forbids touching it, so only the width and the internals are set here.
   The width rule is `(0,2,0)` + later source order against main.css:741's
   `.popUpBox.mediumV2` `(0,2,0)`, which is what carries its own width.
   Per constraint P6-D8 no `.popUpBox{margin-top}` is declared here — the
   vertical offset stays §5's single rule.
   ------------------------------------------------------------------------- */

/* SPECIFICITY (verified with a matched-rule dump per constraint P4-D2, NOT by
   eyeballing): main.css:741's real selector is
   `.popUpBox.mediumV2:not(.locationOptions):not(.small)` — the two :not()s hold
   a class each, so it is (0,4,0) and it carries BOTH `width: auto` and
   `max-width: 1000px`. A plain `.popUpBox.stpFilterModal` (0,2,0) LOST and the
   modal rendered 1000px wide. The chain below is (0,5,0). Per P5-D2 the
   rail-aware `left: var(--navLeftCurrentWidth)` / `right: 0` / `margin: 0 auto`
   of that rule are deliberately NOT touched — they centre the box in the
   content band once the width is fixed. */
.popUpBox.mediumV2.stpFilterModal:not(.locationOptions):not(.small) {
	width: 560px;
	max-width: 560px;
	text-align: left;
	box-sizing: border-box;
}

/* the form inside the modal is a `sectionBox`, and §2.6 already excludes
   nothing here — zero the card treatment so it reads as modal body, not a card
   inside the modal. (0,3,0) beats main.css:800 `.main .sectionBox` (0,2,0), and
   the modal is outside `.main` anyway (it is emitted into the footer). */
.popUpBox.stpFilterModal .sectionBox.stpTicketFilter {
	width: 100%;
	margin: 0;
	padding: 4px 0 0;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	background: transparent;
	box-sizing: border-box;
	text-align: left;
}

/* rows stack as filter GROUPS, not as bordered form rows */
.popUpBox.stpFilterModal .sectionBox.stpTicketFilter .formRow {
	margin: 0;
	border-bottom: 0;
	align-items: flex-end;
	flex-wrap: wrap;
	row-gap: 14px;
}

/* the Time Issued / Time Paid switch owns its own full-width band. Per P3-D7
   and P8-D10 only `.toggle-switch-label.off/.on` are styled — the wrapper and
   the slider geometry stay §2.9's. */
.popUpBox.stpFilterModal .stpFilterToggleRow {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	padding: 0 0 4px;
	box-sizing: border-box;
}

.popUpBox.stpFilterModal .stpFilterToggleRow .toggle-switch-label {
	font-size: 12.5px;
	font-weight: 600;
	color: var(--stpSecondary, #6f6f6f);
	white-space: nowrap;
}

/* quick-range pills read as chips, never as primary buttons. `.formBtn` is
   (0,1,0) in main.css, so the class pair below wins on count AND source order.
   `.stpQuickRange` is emitted by mod/tickets/index.php via
   FormFormatObject::class('secondaryBtn narrow stpQuickRange'). */
.popUpBox.stpFilterModal .formBtn.stpQuickRange {
	padding: 6px 12px;
	border-radius: 999px;
	border: var(--stpHairline, 1px solid rgba(17, 17, 17, .10));
	background-color: var(--stpSurface, #fff);
	color: var(--stpSecondary, #6f6f6f);
	font-size: 12px;
	font-weight: 600;
	box-shadow: none;
}

.popUpBox.stpFilterModal .formBtn.stpQuickRange:hover {
	color: var(--stpInk, #1a1a1a);
	border-color: var(--stpHairlineColor, rgba(17, 17, 17, .10));
	background-color: var(--stpSurfaceAlt, #f7f7f6);
}

/* the picked range stays highlighted, inverted (ink fill, surface text) so it
   reads in both themes — stpThemeDark.css swaps --stpInk/--stpSurface.
   `.stpQuickActive` is toggled by the pill's onclick and set server-side for
   the saved preset (mod/tickets/index.php). (0,4,0) beats :hover (0,3,1). */
.popUpBox.stpFilterModal .formBtn.stpQuickRange.stpQuickActive,
.popUpBox.stpFilterModal .formBtn.stpQuickRange.stpQuickActive:hover {
	background-color: var(--stpInk, #1a1a1a);
	border-color: var(--stpInk, #1a1a1a);
	color: var(--stpSurface, #fff);
}

/* the modal's own header hairline (buildPopUpWrapper's `.header-wrapper > h2`
   + `.headBtns`, Formatter.php:792-796 — the framework has NO footer element,
   see constraint P2-D7, so Clear / Apply are ordinary form buttons). */
.popUpBox.stpFilterModal .header-wrapper {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 0 0 12px;
	margin: 0 0 6px;
	border-bottom: var(--stpHeaderHairline, 1px solid rgba(17, 17, 17, .08));
	text-align: left;
}

.popUpBox.stpFilterModal .header-wrapper h2 {
	margin: 0;
	font-size: 17px;
	font-weight: 800;
	color: var(--stpInk, #1a1a1a);
}


/* -------------------------------------------------------------------------
   9.B  STATUS CHIP GROUP inside the modal
   -------------------------------------------------------------------------
   The chip pills themselves (fill / dot / check glyph / unselected outline)
   are the framework's appended `.ffo-chip-group` block and are driven by the
   inline `--pcFg/--pcBg/--pcDot` custom properties resolved SERVER-SIDE from
   Tickets::getTicketStatusPillColors(). Only the group's box is theme work.
   FORM mode may wrap (constraint P3-D3 only bars wrapping in a TABLE).
   ------------------------------------------------------------------------- */

.popUpBox.stpFilterModal .ffo-chip-group {
	padding: 2px 0 0;
	row-gap: 7px;
}

/* THE CHIP CELL MUST BE ALLOWED TO GROW. Runtime-measured (matched-rule dump,
   constraint P4-D2): form mode puts each element in
   `section.block.long.narrow > div` which main.css pins to
   `min-height:60px; height:60px` at (0,4,1), and `section` itself is
   `overflow:hidden` — so a 3-line chip group had its FIRST ROW clipped out of
   the box entirely. Both are relaxed ONLY for the cell that actually holds a
   chip group, so every other filter cell keeps the framework's 60px rhythm.
   (0,6,1) + :has() beats the framework rule on count and source order. */
.popUpBox.stpFilterModal section.block.long.narrow > div.formInput:has(.ffo-chip-group) {
	min-height: 0;
	height: auto;
}

.popUpBox.stpFilterModal section.block:has(.ffo-chip-group) {
	overflow: visible;
}

/* MULTI-SELECT LISTS must stay on screen. `.searchResult` is a top-layer
   popover anchored to the field's bottom (main.css:3974) whose only fallback
   flips horizontally, so the last field's list (Issued By, stacked last on
   mobile) ran off the bottom of the viewport. Cap the height and fall back to
   opening ABOVE the field. Do NOT use the `flip-block` keyword here: Chrome
   resolves the flipped `calc(anchor(bottom) + 1px)` to the viewport top, so
   the list rendered at top:0 and looked like it never opened. The explicit
   @position-try below anchors correctly (verified headless). (0,4,0) beats
   main.css's `.searchResult[popover]` (0,2,0). */
@position-try --stpSearchAbove {
	position-anchor: --searchBarTextField;
	top: auto;
	bottom: calc(anchor(top) + 1px);
}

.popUpBox.stpFilterModal .searchResult[popover] {
	max-height: min(300px, 45vh);
	position-try-fallbacks: --stpSearchAbove, --searchBarTextField;
}


/* -------------------------------------------------------------------------
   9.C  TABLE — status pill sizing inside a cell
   -------------------------------------------------------------------------
   §4 owns every other ticket-table surface: 4.5 already renders the Code cell
   as bold UNCOLOURED mono via `.horizontalScrollable .formRow .formLink`
   (task 9.3 — it is NOT a red link), and 4.3 owns the pinned first column that
   `horizontalScrollable(1, 200, false)` now switches on (task 9.1).
   The pill is a read-only `span.ffo-select-pill.ffo-select-pill-static`; the
   framework rule is `(0,2,1)` so the chain below wins on count and order.
   No box property is added to the CELL itself (constraint P1-D7 / §2's hard
   exclusion of in-cell chrome) — only to the pill span inside it.
   ------------------------------------------------------------------------- */

.horizontalScrollable .formRow:not(.head):not(.subHead) > div span.ffo-select-pill.ffo-select-pill-static {
	font-size: 11.5px;
	font-weight: 700;
	line-height: 16px;
	letter-spacing: .01em;
}

/* Phase 17.6: status pill retune (size/weight only; background and colour untouched) */
.horizontalScrollable .formRow:not(.head):not(.subHead) > div span.ffo-select-pill.ffo-select-pill-static {
	font-size: 12px;
	font-weight: 600;
	height: 24px;
	padding: 0 10px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}


/* -------------------------------------------------------------------------
   9.D  TICKET DETAIL (ticketLifeCycle)
   -------------------------------------------------------------------------
   Annotated pass on #lifeCycleWrapper:
     * stepper — replaced by the 9.E .stpSteps card (Phase 18)
     * Vehicle / Violation / comments / appeal wrappers — chrome-free
     * History / Appeal / Void — elementTabV1Group; strip stays un-carded
       but the tab row is restyled off framework gray (#f1f1f1 / #ccc)
     * violations table — already FormV2 horizontalScrollable, so §4.6
       paints the table card; the wrapping sectionBox must not
     * empty payment — PHP renders an h2, no emptyTableText card

   SPECIFICITY: `#lifeCycleWrapper .sectionBox` is (1,1,0) and beats
   §2.6's `.main .sectionBox:not()x12` (0,13,0). Framework stepper
   rules at main.css:3484-3495 are (0,3,0)–(0,6,1); every override
   below carries the ID so it wins without !important.
   ------------------------------------------------------------------------- */

/* strip the card from every lifecycle sectionBox. Tables with
   horizontalScrollable keep their own §4.6 chrome. */
#lifeCycleWrapper .sectionBox {
	background-color: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
}

/* `.sectionBox.out` is display:flex (stpMain.css:184). After the inner
   wrapper was removed, that row-flexed heading + total + table. */
#lifeCycleWrapper .sectionBox.out {
	flex-direction: column;
}

#lifeCycleWrapper hr {
	width: 100%;
	margin: 28px 0;
	height: 1px;
	border: 0;
	background-image: none;
	background-color: var(--stpHairlineColor, rgba(17, 17, 17, .10));
}

#lifeCycleWrapper .sectionBox h1 {
	font-size: 18px;
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: -.01em;
	color: var(--stpInk, #1a1a1a);
	margin: 0 0 12px;
}

#lifeCycleWrapper .sectionBox h2 {
	font-size: 13.5px;
	font-weight: 400;
	line-height: 1.45;
	color: var(--stpBodyAlt, #555);
	margin: 0 0 8px;
}

#lifeCycleWrapper .imageScroll .imgContainer img.border {
	border: 1px solid var(--stpHairlineColor, rgba(17, 17, 17, .10));
	border-radius: var(--stpRadius, 14px);
}


/* The old progressBox stepper rules were removed in Phase 18.5; the stepper is now
   .stpSteps / .stpStep (see 9.E). */

/* ---- Details / History / Appeal tabs ---------------------------------
   `.tab-container` is a sectionBox, so the chrome-strip above already
   kills the card. Override utilities.css folder tabs (gray fill, 4px
   radius, #ccc border) with a hairline underline strip. Specificity
   (1,1,0) / (1,2,0) beats `.tab-button` (0,1,0) and `.tab-button.active`
   (0,2,0) without !important.
   stpMain.css `.tab-pane > div{display:flex}` is (0,2,0) and turns the
   details wrapper into a nowrap row; History's table wrappers too.
   Re-assert 100% pane width here and keep the 50/50 details split. */
#lifeCycleWrapper .lifeCycleTabs,
#lifeCycleWrapper .tab-container {
	display: block;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	box-sizing: border-box;
	background-color: transparent;
	border: 0;
	box-shadow: none;
	overflow-x: hidden;
}

#lifeCycleWrapper .tab-content,
#lifeCycleWrapper .tab-pane.active {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	padding: 16px 0 8px;
	background: transparent;
	min-width: 0;
}

#lifeCycleWrapper .tab-pane > div {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	min-width: 0;
}

#lifeCycleWrapper .tab-pane > .horizontalScrollable {
	display: block;
}

#lifeCycleWrapper .lifeCycleDetails {
	display: flex;
	flex-wrap: wrap;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	box-sizing: border-box;
}

#lifeCycleWrapper .lifeCycleDetails > .sectionBox {
	box-sizing: border-box;
}



/* -------------------------------------------------------------------------
   9.F  TICKET LIST TOOLBAR (Phase 17.6)
   -------------------------------------------------------------------------
   FormV2 form mode emits no .formRow: the form's children are bare
   section.block elements and button inputs, so the form is the flex container
   (same pattern as §10.12 .stpEnfToolbar).
   ------------------------------------------------------------------------- */
.main .sectionBox.stpToolbar.stpTicketToolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	column-gap: 12px;
	row-gap: 8px;
	width: 100%;
	padding: 12px 14px;
}

.main .sectionBox.stpToolbar.stpTicketToolbar > section.block {
	width: auto;
	height: auto;
	flex: 0 0 auto;
	margin: 0;
}

.main .sectionBox.stpToolbar.stpTicketToolbar > section.block .longBlock {
	height: auto;
}

/* 24.3-a/b/w: the framework .longBlock box. main.css:1274 `section.block > div`
   (10px padding, border-box), :1300 `section.block.long > div` width
   calc(100% - 20px) and :1396 `section.block.long.narrow > div` (min-height
   60px, margin 10px 0) put the count 10px past the 14px card inset and clip
   it ('18 ticke') inside the shrink-to-fit section, and make every block
   80px tall. (0,6,1) beats all three (best is (0,3,2)). */
.main .sectionBox.stpToolbar.stpTicketToolbar > section.block > .longBlock {
	width: 100%;
	min-height: 0;
	margin: 0;
	padding: 0;
}

/* mainMobile.css:223 `section.block.long .longBlock .subject{padding:0 5px}`
   (0,3,2); (0,7,1) keeps the count on the inset at every width. */
.main .sectionBox.stpToolbar.stpTicketToolbar > section.block > .longBlock > .subject {
	padding: 0;
}

.main .sectionBox.stpToolbar.stpTicketToolbar > section.block.search {
	flex: 1 1 280px;
}

.main .sectionBox.stpToolbar.stpTicketToolbar > input#filters {
	margin-left: auto;
}

.main .sectionBox.stpToolbar.stpTicketToolbar > section.block.lineBreak {
	flex-basis: 100%;
	width: 100%;
	height: 0;
	min-height: 0;
	padding: 0;
	overflow: hidden;
}

/* no hairline under the ticket toolbar: §6.6 .stpToolbar border-bottom (0,3,0)
   sits on top of the table card (box-in-box). (0,4,0) beats §6.6; the 12px
   padding keeps the gap to the card. */
.main .sectionBox.stpToolbar.stpTicketToolbar {
	border-bottom: 0;
}

.stpTicketToolbar .stpChips {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.stpTicketToolbar .stpChipsLabel {
	font-size: 12px;
	font-weight: 600;
	color: var(--stpSecondary, #6f6f6f);
}

.stpTicketToolbar .stpFilterChip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 30px;
	padding: 0 12px;
	border: 1px solid var(--stpBorder, rgba(0, 0, 0, .14));
	border-radius: var(--stpPill, 999px);
	font-size: 12.5px;
	font-weight: 600;
}

.stpTicketToolbar .stpFilterChip b {
	color: var(--stpInk, #1a1a1a);
}

.main .stpTicketToolbar input.formBtn.stpLinkBtn {
	background: transparent;
	border: 0;
	box-shadow: none;
	text-decoration: underline;
	font-size: 12.5px;
	font-weight: 600;
	color: var(--stpInk, #1a1a1a);
}

.stpTicketToolbar section.search .kpiBox .action i.fa-xmark {
	color: var(--stpMuted, #9a9a9a);
}


/* -------------------------------------------------------------------------
   9.E  TICKET DETAIL (Phase 18: header, stepper, gallery, split layout, cards)
   -------------------------------------------------------------------------
   Everything is scoped to #lifeCycleWrapper (or the .stpTicketHead header
   class) except the section-local tokens. The split menu lives in 6.8.
   ------------------------------------------------------------------------- */
:root {
	--stpTdGalleryBg: #17181a;
	--stpTdNavBtnBg: rgba(255, 255, 255, .92);
	/* gallery overlays sit on the always-dark gallery, so these stay fixed in dark mode
	   (--stpInk / --stpSurface flip there and went light-on-white / dark-on-black) */
	--stpTdNavBtnInk: #1a1a1a;
	--stpTdOverlayInk: #fff;
	--stpStepTodo: #e6e6e4;
}

/* header: title row (code + pill), meta line under it. (1,2,1) beats §6.2 */
#lifeCycleWrapper section.pageHeaderV2 .hx {
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
}

/* (0,5,2) beats stpTheme.css §6 4.4 and stpMain.css:31-34 (both (0,3,2)) */
.main.filled section.pageHeaderV2.stpTicketHead .hx h1 {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	font-family: var(--stpMono, ui-monospace, monospace);
}

/* the pill is rendered inside the h1 (titleSuffix): keep it sans */
.main.filled section.pageHeaderV2.stpTicketHead .hx h1 .stpPill {
	font-family: var(--stpFont, -apple-system, system-ui, 'Segoe UI', Helvetica, Arial, sans-serif);
}

.main.filled section.pageHeaderV2.stpTicketHead .hx h2 {
	font-size: 13px;
	color: var(--stpSecondary, #6f6f6f);
}

.main.filled section.pageHeaderV2.stpTicketHead .stpPlate {
	font-family: var(--stpMono, ui-monospace, monospace);
	font-weight: 600;
	color: var(--stpInk, #1a1a1a);
}

.main.filled section.pageHeaderV2.stpTicketHead .stpPlate small {
	margin-left: 4px;
	font-size: 11px;
	color: var(--stpSecondary, #6f6f6f);
}

/* stepper */
.stpSteps {
	display: flex;
	gap: 4px;
	margin: 0;
	padding: 14px 14px 12px;
	list-style: none;
}

.stpStep {
	flex: 1 1 0;
	min-width: 0;
}

.stpStep > button,
.stpStep.todo {
	display: flex;
	flex-direction: column;
	gap: 3px;
	width: 100%;
	box-sizing: border-box;
	padding: 10px 6px 6px;
	border: 0;
	border-radius: 10px;
	background-color: transparent;
	text-align: left;
	font: inherit;
	color: var(--stpInk, #1a1a1a);
}

.stpStep > button {
	cursor: pointer;
}

.stpStep > button:hover {
	background-color: var(--stpHover, #f3f3f2);
}

.stpStep > button:focus-visible {
	outline: 2px solid var(--stpInk, #1a1a1a);
	outline-offset: 2px;
}

.stpStep i {
	display: block;
	height: 4px;
	margin-bottom: 8px;
	border-radius: 4px;
	background-color: var(--stpInk, #1a1a1a);
}

.stpStep b {
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: 12.5px;
	font-weight: 650;
}

.stpStep span {
	font-size: 12px;
	color: var(--stpSecondary, #6f6f6f);
}

.stpStep.cur.isBad i {
	background-color: var(--stpAccent, #c8102e);
}

.stpStep.todo i {
	background-color: var(--stpStepTodo, #e6e6e4);
}

.stpStep.todo b {
	color: var(--stpMuted, #9a9a9a);
}

/* the check after a completed step name: CSS only */
.stpStep.done b::after {
	content: '\f00c';
	font-family: 'Font Awesome 6 Pro';
	font-weight: 900;
	font-size: 10px;
	margin-left: 4px;
}

.stpStep.cur b {
	font-weight: 700;
	color: var(--stpInk, #1a1a1a);
}

.stpStep.todo b {
	font-weight: 600;
}

.stpStepSummary {
	display: none;
}

/* MC My order (mc/fulfillment/order): rolls + log (about 80%) beside a sticky print rail (about 20%, 220px floor).
   A full-width item of the inline-flex .main.filled > div; one column with the rail first at 1100px and below. */
.main.filled .stpFfWork {
	display: grid;
	flex: 0 0 100%;
	grid-template-columns: minmax(0, 1fr) minmax(220px, 20%);
	gap: 14px;
	align-items: start;
	width: 100%;
	box-sizing: border-box;
	margin-top: 14px;
}

.main.filled .stpFfWork > .stpFfRail {
	position: sticky;
	top: calc(var(--headBarHeight, 46px) + 12px);
	min-width: 0;
}

/* rail buttons run the full rail width */
.stpFfRail .ffo-btn-wrap,
.stpFfRail .ffo-btn {
	display: flex;
	width: 100%;
}

@media (max-width: 1100px) {
	.main.filled .stpFfWork {
		grid-template-columns: minmax(0, 1fr);
	}

	.main.filled .stpFfWork > .stpFfRail {
		position: static;
		order: -1;
	}
}

/* gallery: (1,2,x) scoped rules beat stpMain.css:56-62 */
#lifeCycleWrapper .imageScroll {
	position: relative;
	display: block;
	overflow: hidden;
	margin-bottom: 14px;
	border-radius: var(--stpRadius, 14px);
	background-color: var(--stpTdGalleryBg, #17181a);
}

#lifeCycleWrapper .imageScroll .imgContainer {
	width: 100%;
	padding: 0;
}

#lifeCycleWrapper .imageScroll .imgContainer img,
#lifeCycleWrapper .imageScroll .imgContainer img.border {
	width: 100%;
	height: 350px;
	aspect-ratio: auto;
	object-fit: cover;
	border: 0;
	border-radius: 0;
}

#lifeCycleWrapper .imageScroll .navBtn {
	position: absolute;
	top: 50%;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	padding: 0;
	margin-top: -18px;
	border: 0;
	border-radius: 50%;
	background-color: var(--stpTdNavBtnBg, rgba(255, 255, 255, .92));
	box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
	color: var(--stpTdNavBtnInk, #1a1a1a);
	cursor: pointer;
}

#lifeCycleWrapper .imageScroll #imgBack {
	left: 8px;
}

#lifeCycleWrapper .imageScroll #imgForward {
	right: 8px;
}

#lifeCycleWrapper .imageScroll .navBtn:focus-visible {
	outline: 2px solid var(--stpTdOverlayInk, #fff);
	outline-offset: 2px;
}

/* (1,2,1) beats stpMain.css:57 (.imageScroll .navBtn i {padding:20px}) */
#lifeCycleWrapper .imageScroll .navBtn i {
	padding: 0;
}

#lifeCycleWrapper .imageScroll .stpImgCount,
#lifeCycleWrapper .imageScroll .stpImgStamp {
	position: absolute;
	padding: 2px 8px;
	border-radius: var(--stpPill, 999px);
	background-color: rgba(0, 0, 0, .55);
	color: var(--stpTdOverlayInk, #fff);
	font-family: var(--stpMono, ui-monospace, monospace);
	font-size: 11px;
}

#lifeCycleWrapper .imageScroll .stpImgCount {
	top: 8px;
	right: 8px;
}

#lifeCycleWrapper .imageScroll .stpImgStamp {
	bottom: 8px;
	left: 8px;
}

/* gallery photos open the photo preview modal (ticketLifeCycle.php $openPreview) */
#lifeCycleWrapper .imageScroll .imgContainer img {
	cursor: zoom-in;
}

/* photo preview modal: the WHOLE photo, letterboxed (contain), never cropped.
   .mediumV2 (main.css:745) already caps the box at 1000px wide / 100vh - 120px tall;
   the 240px here leaves room for its header + padding. */
.popUpBox.stpImgPreviewModal img {
	display: block;
	width: 100%;
	height: calc(100vh - 240px);
	object-fit: contain;
	object-position: center center;
	border-radius: var(--stpRadius, 14px);
	background-color: var(--stpTdGalleryBg, #17181a);
}

/* split layout: tabs left, aside right. (1,1,0) flex item widths inside the centred inline-flex .main > div */
#lifeCycleWrapper .stpStepsCard,
#lifeCycleWrapper .stpTdSplit {
	flex: 0 0 100%;
	width: 100%;
	box-sizing: border-box;
}

#lifeCycleWrapper .stpTdSplit {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 312px;
	gap: 16px;
	align-items: start;
	margin-top: 16px;
}

#lifeCycleWrapper .stpTdAside {
	min-width: 0;
}

#lifeCycleWrapper .stpTdSplit.isInactive {
	display: none;
}

/* Comments card: the card is flush (no title of its own), so the Switch tab row is its header.
   Title + count sit left, the compact Internal / External pills follow on the same line.
   Padding and rule match .ffo-card-h; the container padding (mobile .tab-container 10px 16px) is reset. */
#lifeCycleWrapper .stpTdComments .tab-container {
	padding: 0;
}

#lifeCycleWrapper .stpTdComments .tab-buttons.stpTdCommentsHead {
	gap: 8px 10px;
	padding: 12px 14px;
	border-bottom: 1px solid var(--ffoRowLine, rgba(17, 17, 17, .06));
}

#lifeCycleWrapper .stpTdComments .tab-header-leading {
	flex: 0 1 auto;
}

#lifeCycleWrapper .stpTdComments .tab-container-switch-sm .tab-button {
	padding: 2px 10px;
	line-height: 16px;
}

#lifeCycleWrapper .stpTdComments .tab-content {
	padding: 12px 14px 14px;
}

/* strip the §4.6 frame inside cards (the card is the frame) */
#lifeCycleWrapper .ffo-card .horizontalScrollable.hsHeader,
#lifeCycleWrapper .ffo-card .horizontalScrollable.lazyLoadTarget {
	border: 0;
	border-radius: 0;
}

#lifeCycleWrapper .ffo-card .ffo-tbl-foot {
	justify-content: flex-end;
	padding: 10px 14px;
	margin: 0;
	border-top: var(--stpHairline, 1px solid rgba(17, 17, 17, .10));
	font-weight: 700;
	color: var(--stpInk, #1a1a1a);
}

/* main.css:5215 sizes the inner span */
#lifeCycleWrapper .ffo-card .ffo-tbl-foot-s {
	font-size: 13.5px;
}

/* balance + appeal copy */
.stpTdDue {
	margin: 0 0 12px;
	font-size: 32px;
	font-weight: 750;
	font-variant-numeric: tabular-nums;
	color: var(--stpInk, #1a1a1a);
}

.stpTdDueL {
	margin: 0 0 2px;
	font-size: 12px;
	color: var(--stpSecondary, #6f6f6f);
}

.stpTdReason {
	margin: 10px 0 12px;
	padding: 12px 14px;
	border: var(--stpHairline, 1px solid rgba(17, 17, 17, .10));
	border-radius: 10px;
	background-color: var(--stpZebra, #f7f7f6);
	font-size: 13.5px;
	line-height: 1.5;
}

.stpTdSmall {
	margin: 0 0 8px;
	font-size: 12.5px;
	color: var(--stpSecondary, #6f6f6f);
}

.stpTdSmall b {
	color: var(--stpInk, #1a1a1a);
}

.stpTicketCode {
	font-family: var(--stpMono, ui-monospace, monospace);
	font-size: 12px;
	font-weight: 600;
}

/* dispute chat copy button (ChatV1.php:1937-1950): chatBox.css only styles it under .commentThread (1,4,0) */
#lifeCycleWrapper .chatBox:not(.commentThread) .subTitleRow .chatCopyBtn {
	appearance: none;
	-webkit-appearance: none;
	border: 0;
	background: transparent;
	padding: 6px;
	color: inherit;
	opacity: .6;
	cursor: pointer;
}

#lifeCycleWrapper .chatBox:not(.commentThread) .subTitleRow .chatCopyBtn:hover {
	opacity: 1;
}

#lifeCycleWrapper .chatBox:not(.commentThread) .subTitleRow .chatCopyBtn:focus-visible {
	opacity: 1;
	outline: 2px solid var(--stpInk, #1a1a1a);
	outline-offset: 2px;
}

@media print {
	#lifeCycleWrapper .chatCopyBtn {
		display: none;
	}
}

/* ---- Notice Dispute Message History (ChatV1 .chatBox, Messages tab) -------------
   Every colour is an STP token, so stpThemeDark.css flips this block with no
   theme branch. Overridden on PROPERTIES, not chatBox variables: a variable set
   here would still lose to the dark :root[data-stp-dark] .chatBox remap (0,2,0),
   and the framework's teal variables must stay for commentThread chats.
   Prefix #lifeCycleWrapper .chatBox:not(.commentThread) is (1,2,0) and beats
   chatBox.css:9-13 (.chatBox header/body rules, 0,1,x) and chatBox.css
   `.chatBox .messageBody > div > div` (0,2,2) on the bubble.
   Print is untouched: printPopUpNewWindow copies the messageBody innerHTML into an
   unstyled window (Formatter.js:1767), so nothing here reaches the printout.   */
#lifeCycleWrapper .chatBox:not(.commentThread) {
	height: auto;                        /* chatBox.css:9 calc(100vh - 150px) left a void under one message */
	min-height: 0;
	border: var(--stpHairline);
	border-radius: var(--stpRadius);
	background: var(--stpSurface);
	box-shadow: var(--stpShadow);
}

#lifeCycleWrapper .chatBox:not(.commentThread) .header {
	height: auto;                        /* chatBox.css:11 fixed 60px */
	min-height: 52px;
	padding: 12px 12px 12px 16px;
	box-sizing: border-box;
	background: var(--stpSurface);       /* chatBox.css:11 #f9fbff */
	border-bottom: var(--stpHairline);
}

#lifeCycleWrapper .chatBox:not(.commentThread) .header .title {
	padding: 0;                          /* chatBox.css:14 10px */
	font-size: 16px;                     /* chatBox.css:14 1.2rem */
	font-weight: 600;
	line-height: 1.3;
	color: var(--stpInk);
}

#lifeCycleWrapper .chatBox:not(.commentThread) .header .icons {
	padding: 0;                          /* chatBox.css:16 10px */
	gap: 6px;                            /* chatBox.css:16 24px */
	font-size: 16px;
}

#lifeCycleWrapper .chatBox:not(.commentThread) .header .icons > i.link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	box-sizing: border-box;
	border-radius: 8px;
	color: var(--stpSecondary);
	transition: background-color .15s ease, color .15s ease;
}

#lifeCycleWrapper .chatBox:not(.commentThread) .header .icons > i.link:hover {
	background: var(--stpHover);
	color: var(--stpInk);
}

#lifeCycleWrapper .chatBox:not(.commentThread) .messageTags:empty {
	display: none;                       /* chatBox.css:23 padding-bottom 5px band with no tags */
}

/* body: fits the content, scrolls past a sensible max; column-reverse keeps the newest message at the bottom */
#lifeCycleWrapper .chatBox:not(.commentThread) .messageBody {
	flex: 0 1 auto;                      /* chatBox.css:26 flex:1 + height from the chatBox calc */
	min-height: 0;
	max-height: clamp(240px, calc(100vh - 300px), 520px);
	overflow-y: auto;                    /* chatBox.css:26 overflow-y: scroll (empty gutter on short threads) */
	box-sizing: border-box;
	padding: 6px 14px;
	background: var(--stpCanvas);        /* chatBox.css:26 #e6f4f6 */
}

#lifeCycleWrapper .chatBox:not(.commentThread) .messageBody > div:not(.printSpacer):not(.leo-thinking) {
	width: 100%;                         /* chatBox.css:27 fit-content + min-width 400px + 20px padding */
	min-width: 0;
	padding: 8px 0;
	box-sizing: border-box;
	background: transparent;
	font-size: 14px;
}

/* bubble: white card + hairline for the motorist (in, left); tinted info fill for staff/System (out, right) */
#lifeCycleWrapper .chatBox:not(.commentThread) .messageBody > div:not(.printSpacer) > div {
	display: block;
	width: fit-content;
	max-width: 78%;
	box-sizing: border-box;
	padding: 10px 14px 12px;
	border: var(--stpHairline);
	border-radius: var(--stpRadius);     /* chatBox.css:33 10px */
	box-shadow: var(--stpShadow);
	background: var(--stpSurface);
	color: var(--stpInk);                /* chatBox.css:33 #ffffff (unreadable on light) */
}

#lifeCycleWrapper .chatBox:not(.commentThread) .messageBody > div.inMsg > div {
	margin-right: auto;
	background: var(--stpSurface);       /* chatBox.css:34 #a9b5b4 */
}

#lifeCycleWrapper .chatBox:not(.commentThread) .messageBody > div.outMsg > div {
	margin-left: auto;
	background: var(--stpInfoBg);        /* chatBox.css:35 #79c7c5 */
	border-color: transparent;
}

#lifeCycleWrapper .chatBox:not(.commentThread) .messageBody .subTitleRow {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 4px;
}

#lifeCycleWrapper .chatBox:not(.commentThread) .messageBody .subTitle.dual {
	flex: 1 1 auto;
	min-width: 0;
	gap: 8px;
	font-size: 12px;                     /* chatBox.css:37 .8rem, #444 */
	line-height: 1.4;
	color: var(--stpMuted);
	justify-content: flex-start;         /* chatBox.css:40 flex-end for inMsg */
	white-space: nowrap;
}

#lifeCycleWrapper .chatBox:not(.commentThread) .messageBody .subTitle.dual > div {
	padding: 0;                          /* chatBox.css:39 0 5px */
}

#lifeCycleWrapper .chatBox:not(.commentThread) .messageBody .subTitle.dual > div:first-child {
	color: var(--stpSecondary);
	font-weight: 600;
}

#lifeCycleWrapper .chatBox:not(.commentThread) .messageBody .msg {
	font-size: 14px;
	line-height: 1.5;
	color: var(--stpInk);
	overflow-wrap: anywhere;
}

#lifeCycleWrapper .chatBox:not(.commentThread) .messageBody .msg p {
	margin: 0 0 .5em;
}

#lifeCycleWrapper .chatBox:not(.commentThread) .messageBody .msg p:last-child {
	margin-bottom: 0;
}

/* links: ink + hairline underline, never the UA blue */
#lifeCycleWrapper .chatBox:not(.commentThread) .messageBody .msg a {
	color: var(--stpInk);
	text-decoration: underline;
	text-decoration-color: var(--stpMuted);
	text-decoration-thickness: 1px;
	text-underline-offset: 2px;
	overflow-wrap: anywhere;
}

#lifeCycleWrapper .chatBox:not(.commentThread) .messageBody .msg a:hover {
	text-decoration-color: var(--stpInk);
}

#lifeCycleWrapper .chatBox:not(.commentThread) .messageBody .msg a:focus-visible {
	outline: 2px solid var(--stpInk);
	outline-offset: 2px;
	border-radius: 2px;
}

/* footer: the framework tab bar draws a 1px divider (.tab-buttons border-bottom) with no tabs in it; drop it and the tab padding */
#lifeCycleWrapper .chatBox:not(.commentThread) .footer {
	gap: 0;
	padding: 12px 16px 14px;
	box-sizing: border-box;
	background: var(--stpSurface);       /* chatBox.css:45 */
}

#lifeCycleWrapper .chatBox:not(.commentThread) .footer .tab-buttons {
	border-bottom: 0;
}

#lifeCycleWrapper .chatBox:not(.commentThread) .footer .tab-container,
#lifeCycleWrapper .chatBox:not(.commentThread) .footer .tab-content,
#lifeCycleWrapper .chatBox:not(.commentThread) .footer .tab-pane {
	padding: 0;                          /* framework tab padding 10px / 16px 0 8px */
}

/* stpMain.css:276 (MC-shared) keeps a 90px column for the old outside Send button; Send now sits inside the card */
#lifeCycleWrapper .chatBox:not(.commentThread) .footer .tab-pane.active {
	grid-template-columns: minmax(0, 1fr);
}

#lifeCycleWrapper .chatBox:not(.commentThread) .chatComposerCard {
	gap: 6px;
	padding: 10px 12px 8px;
	background: var(--stpSurface);       /* utilities.css:675 #f5f6f8 */
	border: 1px solid var(--stpBorder);
	border-radius: var(--stpRadius);     /* utilities.css:681 16px */
	box-shadow: none;
}

#lifeCycleWrapper .chatBox:not(.commentThread) .chatComposerCard:focus-within {
	border-color: var(--stpInk);
}

#lifeCycleWrapper .chatBox:not(.commentThread) .chatComposerTextarea {
	font-size: 14px;
	line-height: 1.5;
	color: var(--stpInk);
}

#lifeCycleWrapper .chatBox:not(.commentThread) .chatComposerTextarea::placeholder {
	color: var(--stpMuted);
}

/* send: utilities.css:873 forces its own fill with !important; ink pill matches the theme primary (formBtn.primary, stpTheme.css:391). Click handler untouched. */
#lifeCycleWrapper .chatBox:not(.commentThread) .chatComposerSendBtn.formBtn {
	background: var(--stpInk) !important;
	color: var(--stpSurface) !important;
	border-radius: var(--stpPill);
	font-size: 13px;
	font-weight: 600;
	padding: 6px 14px;
	box-shadow: none;
}

#lifeCycleWrapper .chatBox:not(.commentThread) .chatComposerSendBtn.formBtn:hover {
	background: var(--stpInkHover) !important;
}

#lifeCycleWrapper .chatBox:not(.commentThread) .chatComposerSendBtn.formBtn :is(.labelText, i) {
	color: inherit;
}

/* Vehicle & location card Plate row (mockup ticket-detail .mk-plate): mono ink
   link, state as a small sans label. (1,2,1) beats main.css .ffo-kv dd (0,1,1)
   and the UA link colour/underline; no framework rule targets a in .ffo-kv. */
#lifeCycleWrapper .ffo-kv a.stpTdPlate {
	font-family: var(--stpMono, ui-monospace, monospace);
	font-size: 15px;
	font-weight: 700;
	font-style: normal;
	letter-spacing: .04em;
	color: var(--stpInk, #1a1a1a);
	text-decoration: none;
}

#lifeCycleWrapper .ffo-kv a.stpTdPlate:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

#lifeCycleWrapper .ffo-kv a.stpTdPlate:focus-visible {
	outline: 2px solid var(--stpInk, #1a1a1a);
	outline-offset: 2px;
}

/* Activity card: plain white list rows. altColorTextOnly() stays on the table
   because it is what puts FormV2 in text mode (and prints the ['value','sub']
   sub line); its zebra (.ultraLight) and cellGray fills are cleared here.
   (1,3,1) beats the (0,12,0) zebra chain and the (0,8,0) row hover. */
#lifeCycleWrapper .stpTdActivity .formRow:not(.head),
#lifeCycleWrapper .stpTdActivity .formRow:not(.head) > div {
	background-color: transparent;
}

#lifeCycleWrapper .ffo-kv a.stpTdPlate small {
	margin-left: 6px;
	font-family: var(--stpFont, -apple-system, system-ui, 'Segoe UI', Helvetica, Arial, sans-serif);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0;
	color: var(--stpSecondary, #6f6f6f);
}

/* Vehicle & location card as a full-width fact strip (labels above values).
   Scoped via .stpTdVehicle, selector (1,2,0) beats main.css .ffo-kv (0,1,0)
   grid-template-columns and gap without !important. Phone reset lives in
   stpThemeMobile.css inside the 640px media block. */
#lifeCycleWrapper .stpTdVehicle .ffo-kv {
	grid-template-columns: none;
	grid-template-rows: auto auto;
	grid-auto-flow: column;
	grid-auto-columns: minmax(0, 1fr);
	gap: 4px 24px;
	margin-top: 16px;
}

#lifeCycleWrapper .stpTdVehicle .ffo-kv dt {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--stpMuted, #70706a);
}

#lifeCycleWrapper .stpTdVehicle .ffo-kv dd {
	font-size: 14px;
	color: var(--stpInk, #1a1a1a);
}


/* =========================================================================
   §10 enforcement
   -------------------------------------------------------------------------
   Artboard 1a/1b — Active Sessions. The card grid is gone: the page now
   renders ONE FormV2 table (Enforcement::getActiveSessionForm()), so almost
   everything below is table work and lands inside §4's cell chain.

   READ THIS BEFORE EDITING:
   • Constraint P4-D1 — the head row LIVES INSIDE `.horizontalScrollable`
     (FormV2.php:328), so the `:not(.head):not(.subHead)` pair on every cell
     rule is LOAD-BEARING, not decoration.
   • Constraint P4-D9 — `stpPlateCell` reaches the DOM only because
     getActiveSessionForm() passes it through FormFormatObject::cellClass();
     nothing here applies automatically.
   • Task 10.4's COLOUR CONVENTION — the enforcement chip background comes
     from `--pcBg` via `#enforcementSessionsForm .stpEnfChips .ffo-tag-pill`
     (Phase 16.7 dropped the inline background). CSS owns background / radius /
     weight / padding / letter-spacing and (per §2.8's sanctioned !important)
     the text colour. The light tint hexes live in
     Enforcement::buildEnforcementStatusTags().
   • Constraint P2-D11 — a data: URI cannot carry a var(), so the pin and
     chevron glyphs are MASKS whose colour comes from `background-color:
     var(...)`. Never inline a brand hex inside an SVG here.
   ========================================================================= */

:root {
	/* §10's own tokens. Phase 12 may promote these into §1 verbatim and
	   nothing in §10 needs editing (same arrangement as §4's P4-D4 block).
	   Do NOT move this block above §1 — it relies on later source order. */
	--stpEnfLow: #d98200;             /* 10.5 low-time value       */
	--stpEnfLowUnit: #9a5a00;         /* 10.5 low-time unit line   */
	--stpEnfIssueSize: 40px;          /* 10.7 the '+' button box   */
	--stpEnfIssueRadius: 50%;         /* 2.4 full circle (was 12px) */
	--stpEnfSettingsW: 236px;         /* 10.8 settings modal width */
	--stpEnfEmptyBody: #8a8a8a;       /* 10.3 empty-state body copy */
	--stpEnfTapBox: 44px;             /* 2a mobile tap box */
	/* --stpEnfRepeat / --stpEnfGrace deleted in Phase 4.2: unused after
	   Phase 1.5 removed .stpChip*::before workarounds. --stpEnfLow stays. */
}


/* -------------------------------------------------------------------------
   10.1  LOCATION CONTEXT LINE (task 10.11)
   -------------------------------------------------------------------------
   The same `areaid` framework select and updateEnforcementArea action; the
   select now carries label('Location') (visually hidden, 10.12) and
   defaultText('Choose a location'). Only the chrome is theme work — pin icon
   + 700/14px name + chevron.

   SPECIFICITY: `#enforcementAreaForm` is a `.sectionBox`, and §2.6's card
   chain is (0,13,0) — no class selector could beat it. The ID makes these
   rules (1,x,y), which outranks any number of classes, and is also what
   keeps the reset off every OTHER sectionBox on the page.
   ------------------------------------------------------------------------- */

#enforcementAreaForm.sectionBox,
#searchBar.sectionBox {
	background-color: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
}

/* the old inline `margin-top: -40px` hack on #searchBar is GONE from the page
   (constraint P7-D5 left it for this phase) — the gap is owned here. */
#enforcementAreaForm.sectionBox {
	width: 100%;
	max-width: 720px;
	margin: 2px auto 0;
	padding: 0 10px;
	box-sizing: border-box;
}

#searchBar.sectionBox {
	width: 100%;
	max-width: 720px;
	margin: 0 auto 14px;
	padding: 0;
	box-sizing: border-box;
}

/* the row + cell the framework wraps the select in */
#enforcementAreaForm section.block {
	width: 100%;
	margin: 0;
	padding: 0;
}

#enforcementAreaForm .longBlock.formInput {
	width: 100%;
	margin: 0;
	min-height: 0;
	height: auto;
	border: 0;
	background-color: transparent;
}

/* the tappable line itself: [pin] Location name [chevron] */
/* RUNTIME-VERIFIED (matched-rule dump, per constraint P4-D2): main.css:1636
   `section.block.long .longBlock.formInput .subject` is (0,4,1) and sets
   `flex-direction: column`. The ID here outranks it, but flex-direction has to
   be RE-DECLARED — omitting it left the pin above the name above the chevron. */
#enforcementAreaForm .subject {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	min-height: 0;
	height: auto;
	box-sizing: border-box;
	/* the padding lives on the select (below) so the whole box is its hit area;
	   --stpLocPadY/X are shared with the select and the absolute icons */
	--stpLocPadY: 12px;
	--stpLocPadX: 16px;
	position: relative;
	padding: 0;
	border: 1px solid var(--stpBorder, rgba(0, 0, 0, .14));
	border-radius: var(--stpHeaderIconRadius, 11px);
	background-color: var(--stpSurface, #fff);
	cursor: pointer;
}

#enforcementAreaForm .subject:focus-within {
	border-color: var(--stpInk, #1a1a1a);
}

#enforcementAreaForm .subject::before,
#enforcementAreaForm .subject::after {
	content: '';
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	pointer-events: none;
	display: block;
	background-repeat: no-repeat;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-position: center;
	mask-position: center;
	-webkit-mask-size: contain;
	mask-size: contain;
}

/* pin — Material "place" at 24x24. Colour comes from background-color so
   HARD RULE 6 holds (no hex may live inside the data: URI). */
#enforcementAreaForm .subject::before {
	left: var(--stpLocPadX);
	width: 15px;
	height: 15px;
	background-color: var(--stpAccent, #c8102e);
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5.25 7 13 7 13s7-7.75 7-13a7 7 0 0 0-7-7zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5.25 7 13 7 13s7-7.75 7-13a7 7 0 0 0-7-7zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E");
}

/* chevron — replaces the native select arrow that `appearance:none` removes.
   Parked on the trailing edge; pointer-events:none lets a click on it reach
   the select underneath. */
#enforcementAreaForm .subject::after {
	right: var(--stpLocPadX);
	width: 11px;
	height: 11px;
	background-color: var(--stpSecondary, #6f6f6f);
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 15.6 4.4 8l1.7-1.7L12 12.2l5.9-5.9L19.6 8z'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 15.6 4.4 8l1.7-1.7L12 12.2l5.9-5.9L19.6 8z'/%3E%3C/svg%3E");
}

/* the native select is unstyled and fills the bordered .subject, so a click
   anywhere in the box (pin and chevron included) opens it. Side padding clears
   the icons: pad + 15px pin + 8px gap / 8px gap + 11px chevron + pad.
   main.css:1741 sets `.formRow select{width:100%; font-size:16px}` at (0,1,1)
   and §2 gives form inputs a pill at (0,5,2) — the ID here beats both. */
#enforcementAreaForm .subject select {
	-webkit-appearance: none;
	appearance: none;
	flex: 1 1 auto;
	align-self: stretch;
	width: 100%;
	max-width: 100%;
	min-height: 0;
	height: auto;
	padding: var(--stpLocPadY) calc(var(--stpLocPadX) + 19px) var(--stpLocPadY) calc(var(--stpLocPadX) + 23px);
	border: 0;
	border-radius: 0;
	background-color: transparent;
	background-image: none;
	box-shadow: none;
	margin: 0;
	font-family: var(--stpFont, -apple-system, system-ui, 'Segoe UI', Helvetica, Arial, sans-serif);
	font-size: 14px;
	font-weight: 700;
	line-height: 18px;
	color: var(--stpInk, #1a1a1a);
	text-align: left;
	text-align-last: left;
	cursor: pointer;
}

#enforcementAreaForm .subject select:focus {
	border: 0;
	box-shadow: none;
	outline: none;
}


/* -------------------------------------------------------------------------
   10.2  SEARCH STRIP + FILTER-ACTIVE DOT (task 10.10)
   -------------------------------------------------------------------------
   The Filters trigger is a third `.textControlIcons` slot on the existing
   textControl action bar — the same framework slot the clear / plus icons
   already use, so no new markup pattern is introduced. The red dot is a
   pseudo-element on the SPAN: ffoType::button renders an `<input>`
   (FormV2.php:2289) and an input can carry no ::after, which is exactly why
   the trigger is not a button here.
   ------------------------------------------------------------------------- */

/* RUNTIME-VERIFIED: stpMain.css:210
   `section.block.long.xLargeCenter .longBlock.formInput .kpiBox` is (0,5,0) and
   forces `flex-direction: column-reverse` plus a 43px bottom margin — with the
   old two icons that stacked them, and a third made the strip 127px tall. The
   file is MC-shared so it cannot be edited (HARD RULE 1); the ID below outranks
   it and re-points the axis for THIS strip only. */
#searchBar .longBlock.formInput .kpiBox {
	flex-direction: row;
	align-items: center;
	justify-content: center;
	gap: 16px;
	margin: 0 0 0 12px;
}

/* main.css:1378 `section.block.long .longBlock .subject i` (0,3,1) pads every
   icon 15px down for the label-under layout; inside a row that just pushes the
   glyphs off-centre. (1,3,1) here. */
#searchBar .longBlock.formInput .kpiBox .textControlIcons i {
	display: inline-block;
	padding: 0;
}

/* clear-search is a real <button> (Phase 16.5). (1,2,0) */
#searchBar .kpiBox .stpEnfClearBtn {
	display: inline-grid;
	place-items: center;
	width: 30px;
	height: 30px;
	padding: 0;
	margin: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--stpMuted, #9a9a9a);
	cursor: pointer;
	font-size: 14px;
}

#searchBar .kpiBox .stpEnfClearBtn:hover {
	background-color: var(--stpHover, #f5f5f4);
	color: var(--stpInk, #1a1a1a);
}

#searchBar .kpiBox .stpEnfClearBtn:focus-visible {
	outline: 2px solid var(--stpInk, #1a1a1a);
	outline-offset: 2px;
}

/* (1,3,1) beats main.css `.link` / `.textControlIcons i` colour */
#searchBar .kpiBox .stpEnfClearBtn i.fa-xmark {
	color: inherit;
}

.stpEnfFilterTrigger {
	position: relative;
}

.stpEnfFilterTrigger.stpFilterOn::after {
	content: '';
	position: absolute;
	top: -2px;
	right: -3px;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background-color: var(--stpAccent, #c8102e);
	box-shadow: 0 0 0 2px var(--stpSurface, #fff);
}


/* -------------------------------------------------------------------------
   10.3  EMPTY STATE (task 10.11, artboard 1a)
   -------------------------------------------------------------------------
   Replaces the bare `<h2>Please select an area.</h2>`. This is a `.sectionBox`
   on purpose so §2.6's card treatment applies (it is NOT a group wrapper, so
   constraint P2-D3 does not put it in the :not() chain). `.main .sectionBox`
   is (0,2,0), so the chain below is (0,3,0) for the box and (0,3,1) for its
   children. Every text rule declares an explicit font-size: constraint P1-D8
   keeps `body{font-size:0}` load-bearing.
   ------------------------------------------------------------------------- */

/* `align-self: flex-start` IS LOAD-BEARING. RUNTIME-MEASURED: `.main.filled >
   div` is an `inline-flex` ROW that wraps, and the page's trailing
   `.stpEnfSpacer` (min-height: 75vh) shares a flex line with this card — with the
   default `align-items: stretch` that blew the empty card up to 669px tall.
   The same guard is on the table wrapper in 10.4. */
.main .sectionBox.stpEnfEmpty {
	display: flex;
	flex-direction: column;
	align-items: center;
	align-self: flex-start;
	justify-content: center;
	gap: 10px;
	width: 100%;
	min-height: 260px;
	margin: 6px 0 0;
	padding: 46px 24px 50px;
	box-sizing: border-box;
	text-align: center;
}

.main .sectionBox.stpEnfEmpty .stpEnfEmptyIcon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border: var(--stpHairline, 1px solid rgba(17, 17, 17, .10));
	border-radius: 50%;
	font-size: 19px;
	color: var(--stpSecondary, #6f6f6f);
}

.main .sectionBox.stpEnfEmpty h2 {
	margin: 4px 0 0;
	font-size: 16px;
	font-weight: 700;
	line-height: 22px;
	color: var(--stpInk, #1a1a1a);
}

.main .sectionBox.stpEnfEmpty p {
	max-width: 320px;
	margin: 0;
	font-size: 13.5px;
	font-weight: 400;
	line-height: 19px;
	color: var(--stpEnfEmptyBody, #8a8a8a);
}


/* trailing page spacer (was an inline min-height: 75vh style) */
.main .stpEnfSpacer {
	min-height: 75vh;
}


/* -------------------------------------------------------------------------
   10.4  LIST WRAPPER — hand-coded flex rows (not FormV2)
   ------------------------------------------------------------------------- */

#enforcementSessionsForm.stpEnfTableWrap {
	width: 100%;
	margin: 0 auto;
	box-sizing: border-box;
	align-self: flex-start;
}

#enforcementSessionsForm .stpEnfList {
	background-color: var(--stpSurface, #fff);
	border: 1px solid var(--stpHairlineColor, rgba(17, 17, 17, .10));
	border-radius: var(--stpRadius, 14px);
	box-shadow: var(--stpShadow, 0 1px 2px rgba(0, 0, 0, .05));
	overflow: hidden;
	text-align: left;
}

#enforcementSessionsForm .stpEnfListEmpty {
	padding: 44px 16px 48px;
	text-align: center;
	font-size: 15px;
	font-weight: 700;
	color: var(--stpInk, #1a1a1a);
}

#enforcementSessionsForm .stpEnfListHead {
	display: grid;
	grid-template-columns: minmax(160px, 1fr) minmax(200px, 1.2fr) minmax(140px, auto);
	align-items: center;
	border-bottom: 1px solid rgba(0, 0, 0, .09);
	font-size: 12px;
	font-weight: 500;
	line-height: 1;
	color: var(--stpMuted, #9a9a9a);
	padding: 14px 18px;
	gap: 12px;
}

#enforcementSessionsForm .stpEnfHeadMob {
	display: none;
}

#enforcementSessionsForm .stpEnfListHead span:last-child {
	text-align: right;
}

#enforcementSessionsForm .stpEnfRow {
	display: grid;
	grid-template-columns: minmax(160px, 1fr) minmax(200px, 1.2fr) minmax(140px, auto);
	align-items: center;
	width: 100%;
	box-sizing: border-box;
	margin: 0;
	padding: 0 18px;
	border-bottom: 1px solid var(--stpRowDividerColor, rgba(17, 17, 17, .06));
	background: var(--stpSurface, #fff);
	box-shadow: none;
}

#enforcementSessionsForm .stpEnfRow:last-child {
	border-bottom: 0;
}

/* Active Sessions on 1500+ plate lots: rows off screen are not laid out or
   painted (big win on Android). `auto 64px` holds a row's last rendered
   height, so the scrollbar does not jump. Browsers without support ignore it. */
#enforcementSessionsForm .stpEnfRow {
	content-visibility: auto;
	contain-intrinsic-size: auto 64px;
}

#enforcementSessionsForm .stpEnfPlateBlock {
	display: contents;
}

#enforcementSessionsForm .stpPlateCell {
	font-family: var(--stpMono, ui-monospace, Menlo, Monaco, Consolas, monospace);
	font-size: 24px;
	font-weight: 700;
	letter-spacing: .01em;
	color: var(--stpInk, #1a1a1a);
	padding: 14px 0;
}

#enforcementSessionsForm .stpEnfChips {
	display: flex;
	flex-wrap: wrap;
	gap: 5px 6px;
	padding: 14px 0;
	min-width: 0;
}

#enforcementSessionsForm .stpEnfChips .ffo-tag-pill {
	padding: 3px 9px 3px 7px;
	border-radius: var(--stpPill, 999px);
	font-size: 11px;
	font-weight: 700;
	line-height: 15px;
	white-space: nowrap;
	color: var(--pcFg, var(--stpInk, #1a1a1a));
	background-color: var(--pcBg, var(--stpHover, #f5f5f4));
}

#enforcementSessionsForm .stpEnfChipShort {
	display: none;
}

#enforcementSessionsForm .stpEnfTimeBlock {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 10px;
	padding: 14px 0;
}

#enforcementSessionsForm .stpRemain {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	justify-content: center;
	gap: 1px;
	text-align: right;
}

#enforcementSessionsForm .stpRemainVal {
	font-size: 19px;
	font-weight: 700;
	line-height: 22px;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

#enforcementSessionsForm .stpRemainUnit {
	font-size: 11px;
	font-weight: 500;
	line-height: 14px;
	letter-spacing: .01em;
	white-space: nowrap;
}

#enforcementSessionsForm .stpEnfRow.stpRemainExpired .stpRemainVal,
#enforcementSessionsForm .stpEnfRow.stpRemainExpired .stpRemainUnit {
	color: var(--stpAccent, #c8102e);
}

#enforcementSessionsForm .stpEnfRow.stpRemainLow .stpRemainVal {
	color: var(--stpEnfLow, #d98200);
}

#enforcementSessionsForm .stpEnfRow.stpRemainLow .stpRemainUnit {
	color: var(--stpEnfLowUnit, #9a5a00);
}

#enforcementSessionsForm .stpEnfRow.stpRemainNormal .stpRemainVal {
	color: var(--stpInk, #1a1a1a);
}

#enforcementSessionsForm .stpEnfRow.stpRemainNormal .stpRemainUnit {
	color: var(--stpMuted, #9a9a9a);
}

#enforcementSessionsForm .stpEnfRow.stpRemainNone .stpRemainVal,
#enforcementSessionsForm .stpEnfRow.stpRemainWhitelist .stpRemainVal {
	font-size: 15px;
	color: var(--stpMuted, #9a9a9a);
}

#enforcementSessionsForm .stpEnfRow.stpRemainNone .stpRemainUnit,
#enforcementSessionsForm .stpEnfRow.stpRemainWhitelist .stpRemainUnit {
	color: var(--stpMuted, #9a9a9a);
}

#enforcementSessionsForm .stpEnfRow button.stpIssueBtn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: var(--stpEnfIssueSize, 36px);
	height: var(--stpEnfIssueSize, 36px);
	padding: 0;
	border: 0;
	cursor: pointer;
	margin: 0;
	border-radius: var(--stpEnfIssueRadius, 50%);
	background-color: var(--stpInk, #1a1a1a);
	color: var(--stpSurface, #fff);
	font-size: 13px;
	line-height: 1;
	box-sizing: border-box;
	flex: none;
}

#enforcementSessionsForm .stpEnfRow button.stpIssueBtn:hover {
	background-color: var(--stpInkHover, #333);
	opacity: 1;
}

#enforcementSessionsForm .stpEnfRow button.stpIssueBtn:focus-visible {
	outline: 2px solid var(--stpInk, #1a1a1a);
	outline-offset: 2px;
}

#enforcementSessionsForm .stpEnfRow button.stpIssueBtn i {
	color: inherit;
	font-size: 15px;
}

/* plate-search match strength — same thresholds as the old card-grid
   #PLATE-accuracy-border (green >80, yellow >65, orange >45, else red).
   Inset so the row width does not jump when a search starts. */
#enforcementSessionsForm .stpEnfRow.border-green {
	box-shadow: inset 6px 0 0 var(--stpGood, #1a9d54);
}

#enforcementSessionsForm .stpEnfRow.border-yellow {
	box-shadow: inset 6px 0 0 #e5cf72;
}

#enforcementSessionsForm .stpEnfRow.border-orange {
	box-shadow: inset 6px 0 0 var(--stpEnfLow, #d98200);
}

#enforcementSessionsForm .stpEnfRow.border-red {
	box-shadow: inset 6px 0 0 var(--stpAccent, #c8102e);
}


/* -------------------------------------------------------------------------
   10.9  SETTINGS MODAL (task 10.8)
   -------------------------------------------------------------------------
   236px + `smallV2`. SPECIFICITY: main.css:732's real selector is
   `.popUpBox.smallV2:not(.locationOptions):not(.small)` — (0,4,0) — and it
   carries BOTH `width: clamp(250px, 100%, 500px)` AND a margin computed from
   that same clamp. Setting width alone would leave the box mis-centred, so
   both are re-declared together at (0,5,0).
   RAIL-AWARENESS (constraint P5-D2): `.smallV2` centres on the VIEWPORT, so a
   new size variant must rebase its margin onto --navLeftCurrentWidth or it
   sits left of the content band. Half the rail is added back here.
   Per constraint P6-D8 NO `.popUpBox{margin-top}` is declared — the vertical
   offset stays §5's single rule.
   ------------------------------------------------------------------------- */

.popUpBox.smallV2.stpEnfSettingsModal:not(.locationOptions):not(.small) {
	width: var(--stpEnfSettingsW, 236px);
	margin: 0 calc(50% - var(--stpEnfSettingsW, 236px) / 2 + var(--navLeftCurrentWidth, 0px) / 2);
	padding: 18px;
	text-align: left;
	box-sizing: border-box;
}

/* the form inside the modal is a `.sectionBox`; zero the card so it reads as
   modal body. (0,3,0) beats main.css:800 `.main .sectionBox` (0,2,0) — and the
   modal is emitted into the footer, outside `.main`, anyway. */
.popUpBox.stpEnfSettingsModal .sectionBox.stpEnfSettings {
	width: 100%;
	margin: 0;
	padding: 4px 0 0;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	background: transparent;
	box-sizing: border-box;
	text-align: left;
}

.popUpBox.stpEnfSettingsModal .sectionBox.stpEnfSettings .formRow {
	margin: 0;
	border-bottom: 0;
	flex-wrap: wrap;
	row-gap: 4px;
}

.popUpBox.stpEnfSettingsModal .sectionBox.stpEnfSettings section.block {
	width: 100%;
	margin: 0;
	padding: 0;
	overflow: visible;
}

.popUpBox.stpEnfSettingsModal .sectionBox.stpEnfSettings .longBlock.formInput {
	width: 100%;
	margin: 0;
	min-height: 46px;
	height: auto;
	border: 0;
	border-bottom: var(--stpRowDivider, 1px solid rgba(17, 17, 17, .06));
	background-color: transparent;
	box-sizing: border-box;
}

/* label LEFT, switch RIGHT — FormV2 emits the switch BEFORE its label, so
   row-reverse is what puts them in reading order.
   SPECIFICITY, RUNTIME-MEASURED (constraint P4-D2 — a first pass at (0,5,2)
   LOST and the switch stayed on the left): main.css:1639's real selector is
   `section.block.long .longBlock.formInput .subject.directionRow`, which holds
   SIX classes — (0,6,1). The chain below is (0,8,2).
   Per constraints P3-D7 / P8-D10 the toggle WRAPPER and SLIDER geometry are
   NOT touched, which is why main.css:1642's 12px margin-right survives as a
   small right inset rather than being zeroed here. */
.popUpBox.stpEnfSettingsModal section.block.long .longBlock.formInput .subject.directionRow {
	flex-direction: row-reverse;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
	width: 100%;
}

/* main.css:2395 styles `.subject.directionRow .formFieldLabel` at (0,7,1); the
   chain below is (0,9,2). The label must be allowed to take the row's
   remaining width or "Keep Screen Awake" wraps to two lines at 236px. */
.popUpBox.stpEnfSettingsModal section.block.long .longBlock.formInput .subject.directionRow .formFieldLabel {
	flex: 1 1 auto;
	min-width: 0;
	margin: 0;
	text-align: left;
	font-size: 12.5px;
	font-weight: 600;
	line-height: 17px;
	color: var(--stpInk, #1a1a1a);
}

/* the text lives in an INNER `<label>` that carries its own 16px (runtime-
   measured: the span resolved to 12.5px while the label stayed 16px and
   "Keep Screen Awake" still wrapped). (0,10,3). */
.popUpBox.stpEnfSettingsModal section.block.long .longBlock.formInput .subject.directionRow .formFieldLabel > label {
	display: block;
	font-size: 12.5px;
	font-weight: 600;
	line-height: 17px;
	color: var(--stpInk, #1a1a1a);
}

/* Refresh Page reads as a full-width neutral row action */
.popUpBox.stpEnfSettingsModal .formBtn {
	width: 100%;
	margin: 12px 0 0;
	box-sizing: border-box;
}


/* -------------------------------------------------------------------------
   10.10  FILTERS MODAL (task 10.10)
   -------------------------------------------------------------------------
   The modal REUSES §9.A / §9.B wholesale by keeping the `stpFilterModal`
   hook: the 560px width, the header hairline, the chip-group cell un-clipping
   and the quick-range pill treatment are all already written against that
   class and are element-agnostic. Only the two selectors §9.A tied to the
   TICKET form's own class (`.sectionBox.stpTicketFilter`) need an enforcement
   twin — renaming the ticket hook instead would violate constraint P6-D5.
   ------------------------------------------------------------------------- */

.popUpBox.stpFilterModal .sectionBox.stpEnfFilter {
	width: 100%;
	margin: 0;
	padding: 4px 0 0;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	background: transparent;
	box-sizing: border-box;
	text-align: left;
}

.popUpBox.stpFilterModal .sectionBox.stpEnfFilter .formRow {
	margin: 0;
	border-bottom: 0;
	align-items: flex-end;
	flex-wrap: wrap;
	row-gap: 14px;
}

/* GROUP LABEL ABOVE ITS CHIPS. FormV2 emits `{element}{labelBottom}` inside a
   `.subject` that main.css:1636 lays out as a plain COLUMN, so the group label
   renders UNDER the chips. `column-reverse` flips only these two cells — the
   same technique §8 uses at :2805 — and the rule is scoped to `.stpEnfFilter`
   so §9's ticket modal renders EXACTLY as Phase 9 verified it (constraint
   P6-D5 also forbids renaming that hook to share this rule).
   main.css:1636 is (0,4,1); this is (0,6,2) + :has(). */
.popUpBox.stpFilterModal .sectionBox.stpEnfFilter section.block .longBlock.formInput .subject:has(.ffo-chip-group) {
	flex-direction: column-reverse;
	align-items: flex-start;
	gap: 7px;
}

.popUpBox.stpFilterModal .sectionBox.stpEnfFilter section.block .longBlock.formInput .subject:has(.ffo-chip-group) .formFieldLabel {
	margin: 0;
	font-size: 12.5px;
	font-weight: 600;
	line-height: 16px;
	color: var(--stpSecondary, #6f6f6f);
}


/* -------------------------------------------------------------------------
   10.12  PAGE CHROME — toolbar + header CTAs (follow-ups Phase 3)
   -------------------------------------------------------------------------
   The two existing forms stay as <form id="enforcementAreaForm"> /
   <form id="searchBar">. The wrap is a DIV (.stpEnfToolbar), never a form
   (nested forms would break startIssueTicket and updateEnforcementArea).
   Tickets `.stpToolbar .formRow` does not apply — two sibling forms, no
   shared formRow — so this strip is the flex container.

   Higher spec than 10.1–10.2: those ID rules still set width:100% /
   max-width:720px. The chains below unset that so the strip is one row.
   Labeled Filters is PageHeadControls div.formBtn.stpEnfFilterTrigger
   (can host .stpFilterOn::after). Search ids are unchanged.
   ------------------------------------------------------------------------- */

/* date subtitle under the title (artboard 2b). (0,5,1) beats §6.2 .hx (0,4,1). */
.main.filled section.pageHeaderV2.stpEnfHeader .hx {
	flex-direction: column;
	align-items: flex-start;
	gap: 4px;
}

.main.filled section.pageHeaderV2.stpEnfHeader .hx h2 {
	margin: 0;
	padding: 0;
	font-size: 13px;
	font-weight: 400;
	line-height: 1.3;
	color: var(--stpSecondary, #6f6f6f);
	text-transform: none;
	white-space: nowrap;
}

/* (0,4,0) beats main.css:800 `.main .sectionBox` display:inline-block (0,2,0)
   and equals §6.6's .stpToolbar padding chain so width/flex land together. */
.main .sectionBox.stpToolbar.stpEnfToolbar {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: center;
	column-gap: 12px;
	row-gap: 8px;
	width: 100%;
}

/* (1,4,1) beats #enforcementAreaForm.sectionBox / #searchBar.sectionBox (1,1,0) */
.main .sectionBox.stpToolbar.stpEnfToolbar #enforcementAreaForm.sectionBox {
	display: block;
	width: auto;
	max-width: none;
	margin: 0;
	padding: 0;
	flex: 0 1 auto;
	min-width: 0;
}

.main .sectionBox.stpToolbar.stpEnfToolbar #searchBar.sectionBox {
	display: block;
	width: auto;
	max-width: none;
	margin: 0;
	padding: 0;
	flex: 1 1 240px;
	min-width: 0;
}

.stpEnfToolbar #enforcementAreaForm .formRow,
.stpEnfToolbar #searchBar .formRow {
	margin: 0;
	border-bottom: 0;
	align-items: center;
	width: 100%;
}

.stpEnfToolbar #enforcementAreaForm section.block,
.stpEnfToolbar #searchBar section.block {
	width: 100%;
	margin: 0;
	padding: 0;
}

/* location reads left in the strip (10.1 centres the standalone line).
   Compact padding keeps the 38px gear; issue-ticket uses the 12/16 from 10.1. */
.stpEnfToolbar #enforcementAreaForm .subject {
	justify-content: flex-start;
	--stpLocPadY: 8px;
	--stpLocPadX: 12px;
	min-height: var(--stpHeaderIconBox, 38px);
	border-radius: var(--stpPill, 999px);
}

.stpEnfToolbar #enforcementAreaForm .subject select {
	text-align: left;
	text-align-last: left;
}

/* the select carries label('Location'); the visible copy is the selected
   option / defaultText, so the label is clipped (copy of the search label below) */
.stpEnfToolbar #enforcementAreaForm .formFieldLabel {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* ink pin in the toolbar only; issueTicket.php keeps its red pin (1,2,1) */
.stpEnfToolbar #enforcementAreaForm .subject::before {
	background-color: var(--stpInk, #1a1a1a);
}

.stpEnfToolbar #searchBar .longBlock.formInput {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 8px;
	width: 100%;
	margin: 0;
	min-height: 0;
	height: auto;
	border: 0;
	background-color: transparent;
}

/* (1,4,0) beats #searchBar .longBlock.formInput .kpiBox (1,3,0) */
.stpEnfToolbar #searchBar .longBlock.formInput .kpiBox {
	flex-direction: row;
	align-items: center;
	justify-content: flex-end;
	gap: 8px;
	margin: 0;
}

.stpEnfToolbar #searchBar .subject {
	flex: 1 1 auto;
	min-width: 0;
	width: auto;
	height: auto;
	padding: 0;
}

.stpEnfToolbar #searchBar .longBlock.formInput input[type='text'] {
	margin: 0;
}

/* visible copy is the placeholder; the FormV2 label stays in the DOM */
.stpEnfToolbar #searchBar .formFieldLabel {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.stpEnfToolbar #stpEnfToolbarIssue {
	flex: 0 0 auto;
}

.stpEnfToolbar .formBtn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	padding: 8px 15px;
	margin: 0;
}

.stpEnfToolbar .stpToolbarCount {
	flex: 0 0 auto;
	margin: 0;
}

/* desktop: Camera / Issue Ticket-in-CTAs / Settings-in-strip / toolbar Filters are mobile-only */
.stpEnfToolbar .stpEnfMobileCtas,
.stpEnfToolbar #stpEnfToolbarSettings,
.stpEnfToolbar #stpEnfFilterBtn {
	display: none;
}

/* no hairline under the toolbar: §6.6 .stpToolbar draws border-bottom (0,3,0),
   and the sessions card below already has its own border (box-in-box line).
   (0,4,0) beats §6.6; the 14px padding keeps the gap to the card. */
.main .sectionBox.stpToolbar.stpEnfToolbar {
	border-bottom: 0;
}


/* -------------------------------------------------------------------------
   10.13  ISSUE TICKET FORM — neutralize xLargeCenter 38px type
   -------------------------------------------------------------------------
   stpMain.css:108 (MC-shared, never edited) sets
     section.block.long.xLargeCenter .longBlock.formInput input[type='text']
     {font-size:38px; line-height:45px; text-align:center}
   at (0,5,2). Issue Ticket / Amend Ticket still pass rowClasses xLargeCenter
   (field-ops tap targets) so plate, state, make/model, color and ticket-id
   render 69px pills next to the 42px area box. Re-declare from the form ID
   (1,5,2) so fulfillment's xLargeCenter pages are untouched.
   ------------------------------------------------------------------------- */

#issueTicketForm section.block.long.xLargeCenter .longBlock.formInput input[type='text'],
#issueTicketForm section.block.long.xLargeCenter .longBlock.formInput input[type='number'],
#issueTicketForm section.block.long.xLargeCenter .longBlock.formInput select,
#issueTicketForm section.block.long.xLargeCenter .longBlock.formInput textarea {
	font-size: 16px;
	line-height: 1.3;
	padding: 12px 16px;
	text-align: center;
}

#issueTicketForm section.block.long.xLargeCenter .longBlock.formInput .searchInputWrapper input[type='text'] {
	text-align: left;
}

#issueTicketForm section.block.long.xLargeCenter .longBlock.formInput .subject {
	margin-bottom: 10px;
}

#issueTicketForm section.block.long.xLargeCenter .longBlock.formInput .subject label {
	font-size: 13px;
}

#enforcementAreaForm section.block.long.xLargeCenter .longBlock.formInput .subject {
	margin-bottom: 8px;
}

/* align the standalone area box with the 15px field inset on this page */
.main.filled:has(#issueTicketForm) #enforcementAreaForm.sectionBox {
	padding: 0 15px;
	max-width: none;
}

/* camera grid: §2.6 paints a card on the inner .sectionBox (the form itself
   is exempt). Drop that outline so the icons sit on the page. */
#issueTicketFormImages.sectionBox {
	background-color: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	padding: 0;
}

#issueTicketFormImages .formBtn {
	border: 0;
}

/* default `section.block > div` is min-height:120px and `long.narrow > div`
   is height:60px — one violation + two colSpacers reserved ~240px of empty
   page. Hug content; empty spacer cells keep width (so comments wrap to the
   next desktop row) but no height. */
#issueTicketForm section.block > div,
#issueTicketFormImages section.block > div,
#issueTicketForm section.block.long.narrow > div,
#issueTicketFormImages section.block.long.narrow > div {
	min-height: 0;
	height: auto;
}

#issueTicketForm section.third:not(:has(input)):not(:has(.cbcon)),
#issueTicketForm section.third:not(:has(input)):not(:has(.cbcon)) > div {
	height: 0;
	min-height: 0;
	margin: 0;
	padding: 0;
	overflow: hidden;
	font-size: 0;
	line-height: 0;
}

#issueTicketForm section.third .subject {
	margin-bottom: 4px;
}

/* -------------------------------------------------------------------------
   10.14  ISSUE TICKET — no card around the form (box-in-box)
   -------------------------------------------------------------------------
   The page form (issueTicket.php, `form#issueTicketForm.stpIssueTicketForm`)
   is a `.sectionBox`, so §2.6's card chain paints a rounded border around the
   field groups, camera grid, violations, comments and Ticket ID. Each field
   keeps its own pill chrome (§2 / §10.13); only the wrapper goes.
   The page class keeps this off issueChildTicket.php, which shares the
   #issueTicketForm id. (1,2,0) beats every class chain in §2.6 (max (0,14,1)).
   ------------------------------------------------------------------------- */

.main #issueTicketForm.stpIssueTicketForm {
	background-color: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
}

/* the area select shares the form's left/right edge. The field pills sit
   10px in from the form edge, so the area box drops from 15px to 10px.
   Desktop only: Tap/Mobile keep the 15px that already lines up there. */
@media (min-width: 1001px) {
	.main.filled:has(#issueTicketForm.stpIssueTicketForm) #enforcementAreaForm.sectionBox {
		padding: 0 10px;
	}
}

/* "Please select a valid area to continue." is a plain muted line, no box.
   (1,1,1) beats the page h1 rules. */
#issueTicketForm.stpIssueTicketForm > h1 {
	margin: 24px 0 0;
	padding: 0;
	border: 0;
	background: transparent;
	box-shadow: none;
	font-size: 15px;
	font-weight: 400;
	line-height: 1.4;
	text-align: center;
	color: var(--stpSecondary, #66665f);
}



/* vehicle detail Tickets tab: stpMain.css `.tab-pane > div{display:flex}` (MC-shared,
   so not edited there) turned the table body into one flex ROW, laying every
   ticket side by side in a 1464px strip. The body is a block of rows again.
   Same rule turned the Letter requests / Whitelist tab cards into a flex row,
   so .ffo-card-b shrank to its content instead of filling the card.
   (0,3,0) beats stpMain.css `.tab-pane > div` (0,1,1). */
.stpVehicleDetail .tab-pane > .horizontalScrollable.lazyLoadTarget,
.stpVehicleDetail .tab-pane > .ffo-card {
	display: block;
}

/* Same flex-row bug for lazy tab tables, not only vehicle detail: a lazy pane's scroll header and table body
   are direct .tab-pane children, so body rows sat side by side and the header row shrank out of line with its
   columns (Disputes queue tabs, Responder settings Replies, MC client detail Activity). Scoped to those tab groups
   (data-tab-group from elementTabV1Group) so other pages' panes keep their layout. (0,3,0) beats `.tab-pane > div` (0,1,1). */
[data-tab-group='disputes'] .tab-pane > .horizontalScrollable,
[data-tab-group='disputeSettings'] .tab-pane > .horizontalScrollable,
[data-tab-group='mcClientDetail'] .tab-pane > .horizontalScrollable {
	display: block;
}

/* Same flex-row bug for a lazy pane that answers with one CardV1 (MC client detail Users, Orders & stock): the card is
   a direct .tab-pane child, so it became a row (title left, table shrunk to its content). A tab card is a block again.
   The Activity pane answers with a bare FormV2 table (.horizontalScrollable), covered by the rule above.
   (0,2,0) beats stpMain.css `.tab-pane > div` (0,1,1). */
.tab-pane > .ffo-card {
	display: block;
}

/* AI Credits tab (MC client detail, CG Usage & Credits Plan tab): the framework wraps the cards in a bare
   <div class="w100"> (AiUsageClientAdmin::renderAiClientPlanAdmin), and the same stpMain.css flex row above
   shrinks it to its content, so labels wrap word by word. A bare w100 child fills the pane. Scoped to the tab groups
   it was written for (data-tab-group from elementTabV1Group); aiUsageTabs is the CG Usage & Credits page. */
[data-tab-group='disputes'] .tab-pane > div > div.w100:not(.sectionBox),
[data-tab-group='disputeSettings'] .tab-pane > div > div.w100:not(.sectionBox),
[data-tab-group='mcClientDetail'] .tab-pane > div > div.w100:not(.sectionBox),
[data-tab-group='aiUsageTabs'] .tab-pane > div > div.w100:not(.sectionBox) {
	flex: 1 1 100%;
	min-width: 0;
}

/* MC New client wizard: the stepper card and the pane cards share one column. .main.filled > div is a wrapping inline-flex row,
   so the wrapper takes a full flex line capped at 1100px; stpMain.css `.tab-pane > div{display:flex}` is a block again
   so the pane cards stack. (1,2,0) beats it. */
#mcNewClientWrap {
	flex: 1 1 100%;
	width: 100%;
	max-width: 1100px;
	min-width: 0;
	box-sizing: border-box;
}

#mcNewClientWrap .stpStepsCard {
	margin-bottom: 16px;
}

#mcNewClientWrap .tab-pane > div:not(.ffo-stack) {
	display: block;
}

/* headless tab chrome: no white .tab-content panel or inset, so the pane cards line up with the stepper card */
#mcNewClientWrap .tab-container-headless {
	padding: 0;
}

#mcNewClientWrap .tab-container-headless > .tab-content {
	background: transparent;
	padding-top: 0;
}

/* a LayoutV1::row in a CardV1 footer fills the footer so its spacer pushes the right-hand buttons right
   (the footer is a flex box and the row otherwise shrinks to its content) */
.ffo-card-f > .ffo-row {
	flex: 1 1 auto;
}


/* -------------------------------------------------------------------------
   10.15  PLATE LOOKUP — boot banner, vehicle card, open tickets
   -------------------------------------------------------------------------
   Mockup: .plans/mockups/redesign/enforcement-plate-history.html (A-D).
   Class contract (the lookup renderer and the page emit exactly these):
     div#plateLookupPanel.w100.stpEnfLookup   panel slot; hidden while empty
       .stpEnfBootBanner   > i (icon) + span (text; <b> reads red) + button
       .stpEnfLookupCard   > .stpEnfLookupChip + .stpEnfLookupMeta (<b>, <span>)
                           + .stpEnfLookupStats (> div holding <b> + <span>;
                             .is-alert on a stat paints it red)
                           + .stpEnfLookupActions (buttons, one row, right)
       .stpEnfLookupTable  > h3 title + FormV2 table + ->tableFooter() line
       .stpEnfLookupEmpty  > <b> title + <p> body + optional button
   Plate tags inside the panel are span.stpPlate. Tokens only (dark flips
   through stpThemeDark.css tokens plus the data-stp-dark rules at the end);
   every accent is an even 1px border. Text rules set their own font-size.
   ------------------------------------------------------------------------- */

/* panel: a full-width column under the sessions list. align-self is the
   10.3 guard (.stpEnfSpacer shares the inline-flex line of .main > div). */
.main .stpEnfLookup {
	display: flex;
	flex-direction: column;
	gap: 14px;
	flex: 1 1 100%;
	align-self: flex-start;
	width: 100%;
	min-width: 0;
	margin: 14px 0 0;
	box-sizing: border-box;
	/* the .main wrapper centres its text; the panel reads left */
	text-align: left;
}

.main .stpEnfLookup:empty {
	display: none;
}

/* live "keep typing" hint under the toolbar (shown while the plate query is under 3 chars) */
.main .stpEnfSearchHint {
	margin: 6px 0 0 4px;
	font-size: 12.5px;
	color: var(--stpSecondary, #6f6f6f);
	text-align: left;
}

.main .stpEnfSearchHint[hidden] {
	display: none;
}

.stpEnfLookup :is(.stpEnfBootBanner, .stpEnfLookupCard, .stpEnfLookupTable, .stpEnfLookupEmpty) {
	box-sizing: border-box;
	width: 100%;
	min-width: 0;
	margin: 0;
	border: var(--stpHairline, 1px solid rgba(17, 17, 17, .08));
	border-radius: var(--stpRadius, 14px);
	background-color: var(--stpSurface, #fff);
}

/* plate tag (mockup .plate): 1px ink frame, mono */
.stpEnfLookup span.stpPlate {
	display: inline-block;
	padding: 2px 7px;
	border: 1px solid var(--stpInk, #1a1a1a);
	border-radius: 5px;
	background-color: var(--stpCanvas, #f6f6f4);
	font-family: var(--stpMono, ui-monospace, Menlo, Monaco, Consolas, monospace);
	font-size: 13px;
	font-style: normal;
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: .06em;
	color: var(--stpInk, #1a1a1a);
	white-space: nowrap;
}

/* boot banner (state A): red tint row, round alert icon, Acknowledge right */
.stpEnfLookup .stpEnfBootBanner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	padding: 12px 14px;
	background-color: var(--stpAccentBg, #fbe9ec);
}

.stpEnfBootBanner > i:first-child {
	display: inline-grid;
	place-items: center;
	flex: none;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background-color: var(--stpAccent, #c8102e);
	font-size: 13px;
	font-style: normal;
	color: var(--stpSurface, #fff);
}

.stpEnfBootBanner > span {
	flex: 1 1 200px;
	min-width: 0;
	font-size: 13.5px;
	font-style: normal;
	line-height: 1.4;
	color: var(--stpInk, #1a1a1a);
}

.stpEnfBootBanner > span b {
	font-weight: 700;
	color: var(--stpAccent, #c8102e);
}

.stpEnfBootBanner > span span {
	color: var(--stpBody, #333);
}

.stpEnfBootBanner > :is(.linkObjects, .formBtn, button) {
	flex: 0 0 auto;
	margin: 0;
}

/* vehicle card (states A/B) */
.stpEnfLookup .stpEnfLookupCard {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px 18px;
	padding: 14px;
}

.stpEnfLookupCard .stpEnfLookupChip {
	display: inline-grid;
	place-items: center;
	flex: none;
	width: 44px;
	height: 44px;
	border-radius: 12px;
	background-color: var(--stpInfoBg, #e8f0fb);
	font-size: 13px;
	font-weight: 800;
	letter-spacing: .02em;
	text-transform: uppercase;
	color: var(--ffoToneInfo, #1a5fb4);
}

.stpEnfLookupCard .stpEnfLookupMeta {
	flex: 1 1 auto;
	min-width: 0;
	text-align: left;
}

/* vehicle colour dot before the title. stpMain.css (shared with MC) sets
   width 20px !important, so the size override needs !important too. */
.stpEnfLookupMeta .colorSampleCircle {
	display: inline-block;
	flex: none;
	width: 12px !important;
	height: 12px;
	margin: 0 8px 0 0;
	box-sizing: border-box;
	border: var(--stpHairline, 1px solid rgba(17, 17, 17, .08));
	border-radius: 50%;
	vertical-align: middle;
}

.stpEnfLookupCard .stpEnfLookupMeta > b {
	display: block;
	margin: 0 0 4px;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--stpInk, #1a1a1a);
	overflow-wrap: anywhere;
}

.stpEnfLookupCard .stpEnfLookupMeta > span {
	display: block;
	font-size: 13px;
	font-style: normal;
	line-height: 1.6;
	color: var(--stpSecondary, #66665f);
}

.stpEnfLookupCard .stpEnfLookupStats {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 20px;
	margin: 0;
}

.stpEnfLookupStats > div {
	min-width: 0;
}

.stpEnfLookupStats > div b {
	display: block;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.25;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
	color: var(--stpInk, #1a1a1a);
}

.stpEnfLookupStats > div span {
	display: block;
	font-size: 12px;
	line-height: 1.4;
	color: var(--stpSecondary, #66665f);
}

.stpEnfLookupStats > div.is-alert b {
	color: var(--stpAccent, #c8102e);
}

.stpEnfLookupCard .stpEnfLookupActions {
	display: flex;
	flex: 0 0 auto;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: flex-end;
	gap: 8px;
	margin: 0 0 0 auto;
}

.stpEnfLookupActions > .linkObjects.tooltipWrap {
	display: inline-flex;
	align-items: center;
	flex: 0 0 auto;
	margin: 0;
	padding: 0;
}

.stpEnfLookupActions > .formBtn,
.stpEnfLookupActions > button,
.stpEnfLookupActions > .linkObjects.tooltipWrap > .formBtn {
	flex: 0 0 auto;
	margin: 0;
	white-space: nowrap;
	display: inline-flex;
	align-items: center;
	gap: 7px;
}

/* open tickets · all locations (states A/B): the card is the frame, so the
   §4.6 table frame comes off (same move as #lifeCycleWrapper .ffo-card).
   overflow: clip keeps the corners without making a scroll container. */
.stpEnfLookup .stpEnfLookupTable {
	overflow: clip;
}

.stpEnfLookupTable > h3 {
	margin: 0;
	padding: 12px 14px;
	border-bottom: var(--stpRowDivider, 1px solid rgba(17, 17, 17, .06));
	font-size: 13px;
	font-style: normal;
	font-weight: 700;
	line-height: 18px;
	letter-spacing: 0;
	text-transform: none;
	color: var(--stpInk, #1a1a1a);
}

.stpEnfLookupTable .horizontalScrollable.hsHeader,
.stpEnfLookupTable .horizontalScrollable.lazyLoadTarget {
	border: 0;
	border-radius: 0;
}

.stpEnfLookupTable .ffo-tbl-foot {
	margin: 0;
	padding: 10px 14px;
	border-top: var(--stpRowDivider, 1px solid rgba(17, 17, 17, .06));
	color: var(--stpSecondary, #66665f);
}

.stpEnfLookupTable .ffo-tbl-foot-s {
	font-size: 12.5px;
	font-style: normal;
}

.stpEnfLookupTable .emptyTableText,
.stpEnfLookupTable .emptyTableTextV2 {
	padding: 26px 16px 30px;
	font-size: 14px;
}

/* no match (state C) */
.stpEnfLookup .stpEnfLookupEmpty {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	padding: 30px 20px 32px;
	text-align: center;
}

.stpEnfLookupEmpty > b {
	display: block;
	font-size: 15px;
	font-weight: 700;
	line-height: 22px;
	color: var(--stpInk, #1a1a1a);
}

.stpEnfLookupEmpty > p {
	max-width: 420px;
	margin: 0;
	font-size: 13.5px;
	font-style: normal;
	line-height: 19px;
	color: var(--stpEnfEmptyBody, #8a8a8a);
}

.stpEnfLookupEmpty > :is(.linkObjects, .formBtn, button) {
	margin: 8px 0 0;
}

/* dark variant: the banner edge picks up the accent so the tint reads on
   the dark canvas; icon and chip ink go light (--ffoToneInfo does not flip) */
:root[data-stp-dark] .stpEnfLookup .stpEnfBootBanner {
	border-color: var(--stpAccent, #ef4f66);
}

:root[data-stp-dark] .stpEnfBootBanner > i:first-child {
	color: var(--stpInk, #ececea);
}

:root[data-stp-dark] .stpEnfLookupCard .stpEnfLookupChip {
	color: var(--stpInk, #ececea);
}

/* =========================================================================
   §11 vehicle detail (Phase 19.10) — mod/vehicles/vehicleDetail.php
   -------------------------------------------------------------------------
   Every selector starts at .stpVehicleDetail (the .main wrapper itself) or
   .main.stpVehicleDetail; never `.main .stpVehicleDetail`. Swatch colours
   mirror Fun.php colorsArrayBase() and are §11-local tokens.
   ========================================================================= */

.stpVehicleDetail {
	--stpSwatchBlack: #000000;
	--stpSwatchWhite: #ffffff;
	--stpSwatchGray: #3c3f41;
	--stpSwatchBrown: #815137;
	--stpSwatchBeige: #e8e0cd;
	--stpSwatchGold: #f7d000;
	--stpSwatchSilver: #c0c0c0;
	--stpSwatchRed: #a9383b;
	--stpSwatchOrange: #f7a000;
	--stpSwatchYellow: #ffff00;
	--stpSwatchGreen: #297a18;
	--stpSwatchBlue: #1f53ba;
	--stpSwatchPurple: #492e5d;
	--stpSwatchPink: #ffc0cb;
}

/* (a) plate hero — (0,5,2) beats 6.1a (0,4,2) and stpMain.css:31-35 (0,3,2) */
.main.filled section.pageHeaderV2.stpVehicleHero .hx h1 {
	display: flex;
	align-items: center;
	gap: 10px;
	font-family: var(--stpMono, ui-monospace, monospace);
	font-size: 30px;
	font-weight: 700;
	letter-spacing: .06em;
}

/* (b) state badge, rendered inside the h1 (titleSuffix): keep it sans */
.stpVehicleHero .stpStateBadge {
	display: inline-flex;
	align-items: center;
	height: 24px;
	padding: 0 8px;
	box-sizing: border-box;
	border: 1px solid var(--stpHairlineColor, rgba(17, 17, 17, .10));
	border-radius: 6px;
	font-family: var(--stpFont, -apple-system, system-ui, 'Segoe UI', Helvetica, Arial, sans-serif);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0;
	color: var(--stpBodyAlt, #555);
}

/* (c) colour swatch in the subtitle; <i> is italic by default */
.stpVehicleDetail .stpSwatch {
	display: inline-block;
	width: 12px;
	height: 12px;
	margin: 0 2px;
	box-sizing: border-box;
	vertical-align: -1px;
	border-radius: 50%;
	font-style: normal;
	background-color: var(--stpMuted, #9a9a9a);
	box-shadow: inset 0 0 0 1px var(--stpBorder, rgba(0, 0, 0, .14));
}

.stpVehicleDetail .stpSwatch-black { background-color: var(--stpSwatchBlack); }
.stpVehicleDetail .stpSwatch-white { background-color: var(--stpSwatchWhite); }
.stpVehicleDetail .stpSwatch-gray { background-color: var(--stpSwatchGray); }
.stpVehicleDetail .stpSwatch-brown { background-color: var(--stpSwatchBrown); }
.stpVehicleDetail .stpSwatch-beige { background-color: var(--stpSwatchBeige); }
.stpVehicleDetail .stpSwatch-gold { background-color: var(--stpSwatchGold); }
.stpVehicleDetail .stpSwatch-silver { background-color: var(--stpSwatchSilver); }
.stpVehicleDetail .stpSwatch-red { background-color: var(--stpSwatchRed); }
.stpVehicleDetail .stpSwatch-orange { background-color: var(--stpSwatchOrange); }
.stpVehicleDetail .stpSwatch-yellow { background-color: var(--stpSwatchYellow); }
.stpVehicleDetail .stpSwatch-green { background-color: var(--stpSwatchGreen); }
.stpVehicleDetail .stpSwatch-blue { background-color: var(--stpSwatchBlue); }
.stpVehicleDetail .stpSwatch-purple { background-color: var(--stpSwatchPurple); }
.stpVehicleDetail .stpSwatch-pink { background-color: var(--stpSwatchPink); }

/* unknown colour: dashed neutral ring, no fill */
.stpVehicleDetail .stpSwatch-na {
	background-color: transparent;
	box-shadow: none;
	border: 1px dashed var(--stpMuted, #9a9a9a);
}

/* (d) the letter shown below: ink rail + hover tint on the first cell. (0,13,1) beats the
   §4 zebra (0,12,1) and hover (0,9,1); the :not() chain keeps red/yellow/green/blue rows. */
.stpVehicleDetail .horizontalScrollable .formRow.stpRowViewing:not(.formRow.red):not(.formRow.yellow):not(.formRow.green):not(.formRow.blue) > div:first-child {
	box-shadow: inset 3px 0 0 var(--stpInk, #1a1a1a);
	background-color: var(--stpHover, #f5f5f4);
}

/* (e) header pills row and the cards under the tabs */
.stpVehicleDetail .stpVdPills {
	margin: 12px 0 0;
	padding: 0 var(--stpHeaderPadX, 28px);
	box-sizing: border-box;
}

.stpVehicleDetail .ffo-grid {
	margin-top: 16px;
}

/* (f) 24.5-p (runtime fix): the Whitelist add form sits flat in the card body.
   Vehicles.php getVehicleWhitelistAddForm wraps it in form#addWhitelistAreaForm
   .sectionBox.w100 (main.css:804 padding 10px), each field is a section with
   `.main.filled section` padding 0 10px (main.css:1083) and a .longBlock at
   calc(100% - 20px) + 10px padding + a fixed 60px height (main.css:1274/1300/1396),
   while the button is a bare inline input in the form. The three insets differed,
   so the button was neither card nor field width. Same reset as #loginForm §8.
   (1,2,0) beats `.main .sectionBox.w100` (0,3,0, mainMobile.css:33). */
.stpVehicleDetail #addWhitelistAreaForm.sectionBox {
	width: 100%;
	margin: 0;
	padding: 0;
}

/* (1,3,1) beats `.main.filled section` (0,2,1) */
.stpVehicleDetail #addWhitelistAreaForm section.block.long {
	width: 100%;
	margin: 0 0 12px;
	padding: 0;
	overflow: visible;
}

/* (1,5,1) beats `section.block.long.narrow > div` (0,3,2) and
   `section.block.long > div` (0,2,2); height:auto lets the help text sit inside */
.stpVehicleDetail #addWhitelistAreaForm section.block.long .longBlock.formInput {
	width: 100%;
	height: auto;
	min-height: 0;
	margin: 0;
	padding: 0;
}

/* mainMobile.css:223 `section.block.long .longBlock .subject{padding:0 5px}` (0,4,1)
   on a content-box `width:100%` (main.css:1642) pushed the fields 5px right and
   10px past the now unpadded field box, out of line with the button. (1,6,1) wins. */
.stpVehicleDetail #addWhitelistAreaForm section.block.long .longBlock.formInput .subject {
	padding: 0;
}

/* the lone primary spans the card body. (1,2,1) beats `.formBtn.inRow` (0,2,0,
   mainMobile.css:220 margin 5px) and the stpTheme.css §2.1 `.formBtn` base. */
.stpVehicleDetail #addWhitelistAreaForm input.formBtn {
	display: block;
	width: 100%;
	margin: 4px 0 0;
	box-sizing: border-box;
}

/* -------------------------------------------------------------------------
   11 (f2) box-in-box, round 2 — the two cards under the tabs (Letter requests,
   Whitelist). The card is the only frame: inner FormV2 tables, the empty
   states and the add-area form shed their own border / radius / shadow, and
   the table row dividers + head underline are the only lines left.
   Scoped to .stpVehicleDetail .ffo-card so the tabbed tables above are untouched.
   ------------------------------------------------------------------------- */

/* (0,4,0)-(0,5,0) beats §4.6 (0,2,0) and §4.9 (0,2,0) on .hsHeader / .lazyLoadTarget / .emptyTableTextV2 */
.stpVehicleDetail .ffo-card .ffo-card-b .horizontalScrollable.hsHeader,
.stpVehicleDetail .ffo-card .ffo-card-b .horizontalScrollable.lazyLoadTarget,
.stpVehicleDetail .ffo-card .ffo-card-b .emptyTableTextV2 {
	margin: 0;
	border: 0;
	border-radius: 0;
	box-shadow: none;
}

/* the add-area form and its field block drop the hairline rectangle; the
   fields keep their own pill chrome (§2.2). (1,2,0) beats the §2.6 :not() chain. */
.stpVehicleDetail #addWhitelistAreaForm.sectionBox {
	border: 0;
	border-radius: 0;
	box-shadow: none;
	background-color: transparent;
}

.stpVehicleDetail #addWhitelistAreaForm section.block.long {
	border: 0;
	box-shadow: none;
	background-color: transparent;
}

/* sub-labels ("Notices sent", "Payments received", "Add an area"): one hairline
   above as the only divider, 20px air above the rule, 8px to the content.
   (0,4,0) beats main.css .ffo-h (0,1,0) and §2 heading rules. */
.stpVehicleDetail .ffo-card .ffo-card-b > .ffo-h {
	margin: 20px 0 8px;
	padding: 10px 0 0;
	border-top: 1px solid var(--stpHairlineColor, rgba(17, 17, 17, .10));
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--stpInk, #1a1a1a);
}

/* the framework <hr> before "Add an area" would double the hairline above the
   sub-label, so the sub-label's own border-top is the single divider. */
.stpVehicleDetail .ffo-card .ffo-card-b > .ffo-hr {
	display: none;
}

/* compact empty state: 24px vertical, 13.5px regular secondary copy, 36px ring
   icon (was 44/48px padding, 15px bold, 52px ring). (0,3,0) beats §4.9 (0,1,0). */
.stpVehicleDetail .ffo-card .emptyTableTextV2 {
	gap: 8px;
	padding: 24px 16px;
	font-size: 13.5px;
	font-weight: 400;
	color: var(--stpSecondary, #66665f);
}

/* (0,3,1) beats §4.9 .emptyTableTextV2::before (0,1,1) */
.stpVehicleDetail .ffo-card .emptyTableTextV2::before {
	width: 36px;
	height: 36px;
	font-size: 14px;
}

/* the FormV2 action-column head ("< >" arrows and "(Scroll)" caption) reads as
   muted helper chrome, not a column header. The caption's inline font-size and
   margin-top (FormV2.php:526) are left as emitted: overriding them needs
   !important, which this file does not use. (0,5,1) beats the §4 head rules. */
.stpVehicleDetail .ffo-card .formRow.head > .stickyAction i {
	color: var(--stpMuted, #9a9a9a);
}

.stpVehicleDetail .ffo-card .formRow.head > .stickyAction > div > div:last-child {
	color: var(--stpMuted, #9a9a9a);
	letter-spacing: .02em;
}


/* =========================================================================
   §12 reports (Phase 20.10) — mod/reports/index.php + the quick-date control
   on trends / letterVolume / reportAppeals / vehicles.
   Chart.js colours cannot read CSS variables, so the PHP colorArray hexes
   (#1a1a1a / #c9c9c9) are a recorded HARD RULE 6 exception; the legend
   reads the §12-local token below.
   ========================================================================= */
:root {
	--stpRepBarIdle: #c9c9c9;
}

/* filter bar: FLAT on the canvas like every other filter (white = data only).
   (1,4,0) beats stpTheme.css §2.6 (1,2,0). Was a white card (mockup #1). */
.main.stpReports #filterOptions.sectionBox.stpRepFilter {
	background-color: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	padding: 0;
}

/* Whitelist (FilterFormV3) and Past Due filters: same one-row, label-above bar
   as the dashboard. Their builders cannot emit .stpRepFilterRow on the field
   sections, so these rules key on the form ids instead. (1,2,x) beats main.css
   section.block.long / .sixth / .fifth widths and the centred inline layout. */
.main.stpReports :is(#filterWhitelistReport, #filterPastDueTickets) {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: flex-start;
	gap: 12px 0;
	text-align: left;
}

.main.stpReports :is(#filterWhitelistReport, #filterPastDueTickets) > section.block.long {
	flex: 0 0 150px;
	width: 150px;
	margin: 0 12px 0 0;
}

.main.stpReports #filterWhitelistReport > section.block.long {
	flex-basis: 136px; /* four fields + the quick ranges + Apply on one row */
	width: 136px;
}

.main.stpReports #filterPastDueTickets > section.block.long {
	flex-basis: 190px; /* its date labels are "Starting / Ending Most Recent Issued" */
	width: 190px;
}

/* FilterFormV3 quickDateBtns lineBreak: an empty label-only section */
.main.stpReports #filterWhitelistReport > section.block.long.lineBreak {
	display: none;
}

.main.stpReports :is(#filterWhitelistReport, #filterPastDueTickets) > section.block.long > .longBlock.formInput {
	width: 100%;
	height: auto;
	min-height: 0;
	margin: 0;
	padding: 0;
}

.main.stpReports :is(#filterWhitelistReport, #filterPastDueTickets) > section.block.long .formFieldLabel {
	order: -1;
}

.main.stpReports :is(#filterWhitelistReport, #filterPastDueTickets) > section.block.long :is(input[type='date'], select) {
	box-sizing: border-box;
	width: 100%;
	height: 40px;
	margin: 0;
}

.main.stpReports :is(#filterWhitelistReport, #filterPastDueTickets) > input.formBtn.primary {
	order: 2;
	box-sizing: border-box;
	height: 40px;
	margin: 0 0 0 auto;
	padding: 0 18px;
}

/* the Report by switch (Tickets::getTimeFilterSwitch) is the first item of
   the filter row; it sits on the input baseline with the row's 12px rhythm. */
.main.stpReports form.stpRepFilter > .stpSegSwitch {
	align-self: flex-end;
	margin: 0 16px 0 0;
}

/* 24.6-v1 (runtime fix): ONE row at 1440 = Start, End, one connected
   segmented control, Apply pushed right (mockup #1). column-gap is 0 because
   a flex gap sits between EVERY item, segments included (that was the gapped
   chip look); the date sections carry their own 12px right margin. */
.main.stpReports form.stpRepFilter {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 12px 0;
}

/* (0,4,2) beats main.css:1086 section.third{width:33.33%} (0,1,1): the two
   33% dates left no room for the presets, so YTD and Apply wrapped */
.main.stpReports form.stpRepFilter > section.stpRepFilterRow {
	flex: 0 0 160px; /* 180 -> 160: the Report by switch joined the row */
	width: 160px;
	margin: 0 12px 0 0;
}

/* (0,6,2) beats main.css:1396 `section.block.long.narrow > div` (0,3,2) and
   :1300 (0,2,2): no pinned 60px height or 10px margins, so the section's
   bottom edge IS the input's bottom edge and flex-end lines the row up */
.main.stpReports form.stpRepFilter > section.stpRepFilterRow > .longBlock.formInput {
	width: 100%;
	height: auto;
	min-height: 0;
	margin: 0;
	padding: 0;
}

/* FormV2 emits the label after the input; .subject is a flex column (main.css:1645) */
.main.stpReports form.stpRepFilter > section.stpRepFilterRow .formFieldLabel {
	order: -1;
}

/* (0,5,3) beats stpTheme.css §2 `section.block.long .longBlock.formInput input[type='date']` (0,5,2) */
.main.stpReports form.stpRepFilter > section.stpRepFilterRow input[type='date'] {
	box-sizing: border-box;
	width: 100%;
	height: 40px;
	margin: 0;
	padding: 0 14px;
}

/* the one ink button. (0,5,2) beats main.css:276-277 .formBtn.narrow /
   .formFilterVCenter{margin:18px 0} (0,2,0) */
.main.stpReports form.stpRepFilter > input.formBtn.primary {
	order: 2;
	box-sizing: border-box;
	height: 40px;
	margin: 0 0 0 auto;
	padding: 0 18px;
}

/* Reporting Dashboard + Vehicle Whitelist on desktop: Apply sits right after
   End Date, ahead of the quick-date presets. (1,5,2) beats the whitelist's
   :is(#filterWhitelistReport, ...) > input.formBtn.primary (1,4,1) push-right.
   Desktop only — stpThemeTap/Mobile set their own row order. */
@media screen and (min-width: 1001px) {
	.main.stpReports form.stpRepFilter:is(#filterOptions, #filterWhitelistReport) > input.formBtn.primary {
		margin: 0 16px 0 0;
	}

	.main.stpReports form.stpRepFilter:is(#filterOptions, #filterWhitelistReport) > input.formBtn.secondaryBtn.stpQdSeg {
		order: 3;
	}
}

/* segmented quick dates: hidden inputs are siblings, so no :first-child / :last-child */
form input.formBtn.secondaryBtn.stpQdSeg {
	margin: 0;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	background-color: var(--stpHover, #f5f5f4);
	color: var(--stpBodyAlt, #555);
	font-size: 12.5px;
	font-weight: 600;
}

form input.formBtn.secondaryBtn.stpQdSeg.is-on {
	background-color: var(--stpSurface, #fff);
	color: var(--stpInk, #1a1a1a);
	box-shadow: 0 1px 2px rgba(17, 17, 17, .12);
}

/* pill ends. Both at (0,5,2)/(0,4,2) so they beat the (0,3,2) base above
   (the old `form input.stpQdSeg:not(:has(+ ...))` was (0,2,2) and lost, so
   the last segment never got its right-hand pill end) */
form input.formBtn:not(.stpQdSeg) + input.formBtn.secondaryBtn.stpQdSeg,
form .lineBreak + input.formBtn.secondaryBtn.stpQdSeg {
	border-radius: var(--stpPill, 999px) 0 0 var(--stpPill, 999px);
}

form input.formBtn.secondaryBtn.stpQdSeg:not(:has(+ input.stpQdSeg)) {
	border-radius: 0 var(--stpPill, 999px) var(--stpPill, 999px) 0;
}

/* Reporting Dashboard: one grey track, 40px tall. The 3px border is the
   track colour, so every segment (and the white "on" pill) sits 3px inside
   it. (0,6,2) beats the shared segment rules above. */
.main.stpReports form.stpRepFilter > input.formBtn.secondaryBtn.stpQdSeg {
	position: relative;
	box-sizing: border-box;
	height: 40px;
	padding: 0 12px;
	border: 3px solid var(--stpHover, #f5f5f4);
}

/* the "on" pill: rounded, above its neighbours. Its four transparent corner
   wedges reach at most half its height (22px at the 44px mobile tap floor)
   in from each side, so it overlaps each neighbour by 22px and the
   neighbour's grey track fills the wedges; the neighbour gets the same 22px
   back as padding so its label stays centred. (0,7,2) beats (0,6,2). */
.main.stpReports form.stpRepFilter > input.formBtn.secondaryBtn.stpQdSeg.is-on {
	z-index: 1;
	border-radius: var(--stpPill, 999px);
	box-shadow: none;
}

.main.stpReports form.stpRepFilter > input.stpQdSeg + input.formBtn.secondaryBtn.stpQdSeg.is-on {
	margin-left: -22px;
}

.main.stpReports form.stpRepFilter > input.formBtn.secondaryBtn.stpQdSeg.is-on:has(+ input.stpQdSeg) {
	margin-right: -22px;
}

.main.stpReports form.stpRepFilter > input.stpQdSeg.is-on + input.formBtn.secondaryBtn.stpQdSeg {
	padding-left: 34px;
}

.main.stpReports form.stpRepFilter > input.formBtn.secondaryBtn.stpQdSeg:has(+ input.stpQdSeg.is-on) {
	padding-right: 34px;
}

/* KPI strip: separate hairline cards */
.stpReports .kpiStrip {
	background-color: transparent;
	border: 0;
}

.stpReports .kpiStripRow {
	gap: 12px;
}

/* box-shadow:none drops the base .kpiStripCell 1px right/bottom shadow
   (stpTheme.css §6 KPI strip), which doubled the hairline to 2px on a card */
.stpReports .kpiStripCell {
	border: var(--stpHairline, 1px solid rgba(17, 17, 17, .10));
	border-radius: var(--stpRadius, 14px);
	background-color: var(--stpSurface, #fff);
	box-shadow: none;
	/* value, label and footnote all left-aligned on one 18px inset (matches the chart cards) */
	display: flex;
	flex-direction: column;
	align-items: stretch;
	justify-content: flex-start;
	padding: 16px 18px;
	text-align: left;
}

/* every card keeps all four hairlines, at any column count. (0,4,0) beats
   main.css:3728-3731 `.kpiStrip-cols3 .kpiStripCell:nth-child(3n)` /
   `:nth-last-child(-n+3)` (0,3,0), which dropped the right edge of cards 3
   and 6 and the bottom edge of cards 4-6 */
.stpReports .kpiStrip .kpiStripCell:nth-child(n) {
	border: var(--stpHairline, 1px solid rgba(17, 17, 17, .10));
}

.stpReports .kpiStripSub {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

/* chart cards */
.main .sectionBox.stpRepChartCard {
	padding: 16px 18px;
}

.stpReports .stpRepChartCard canvas {
	max-height: 220px;
}

.stpRepLegend {
	display: inline-flex;
	gap: 14px;
	font-size: 12px;
	color: var(--stpSecondary, #6f6f6f);
}

.stpRepLegend i {
	display: inline-block;
	width: 10px;
	height: 10px;
	border-radius: 3px;
	margin-right: 6px;
	background-color: var(--stpRepBarIdle, #c9c9c9);
}

.stpRepLegend i.is-paid {
	background-color: var(--stpInk, #1a1a1a);
}

.stpReports .ffo-empty {
	padding: 28px 16px;
}

.stpIconTile {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 8px;
	background-color: var(--stpHover, #f5f5f4);
	color: var(--stpInk, #1a1a1a);
}

.stpReports .ffo-h small {
	display: inline;
	margin-left: 8px;
	font-size: 13px;
	font-weight: 400;
	color: var(--stpSecondary, #6f6f6f);
}

#teamPerf .formRow > div,
#areaPerf .formRow > div {
	font-variant-numeric: tabular-nums;
}

/* 12.S spacing and edges (reports-spacing round). Page-scoped to .stpReports.
   .main.filled > div is an inline-flex row that WRAPS (main.css:798), so every
   block is its own line and row-gap is the one block gap (24px). The 40px
   .spacer between the team and area tables is dropped for this page. */
.main.stpReports > div {
	row-gap: 24px;
}

.main.stpReports > div > .spacer {
	display: none;
}

/* header: no 28px side inset and no bottom pad, so the title and the link-card
   row share the filter card's edge and the 24px row-gap is the only gap below.
   (0,4,1) beats §6.1a (0,3,1). */
.main.filled section.pageHeaderV2.stpReportsHead {
	padding-left: 0;
	padding-right: 0;
	padding-bottom: 0;
}

/* "Revenue performance" heading: 24px above it (row-gap), 16px to its cards */
.main.stpReports > div > .ffo-row {
	margin-bottom: -8px;
}

/* the wrapping row shrank the chart grid to its content (~972px of 1104).
   Full width, equal columns, equal-height cards. */
.main.stpReports > div > .ffo-grid {
	width: 100%;
	gap: 16px;
	align-items: stretch;
}

/* team and area tables: same edges as the filter card (they sat 10px in).
   The wrappers are div.sectionBox (not section), so the old section selector
   never matched. The 10px .main .sectionBox padding (main.css:804, mobile 12px)
   is the inset; zero the side padding so heading and table card share 286-1390.
   (1,2,1) beats both sectionBox paddings. */
.main.stpReports > div > #teamPerf,
.main.stpReports > div > #areaPerf {
	box-sizing: border-box;
	width: 100%;
	margin: 0;
	padding-left: 0;
	padding-right: 0;
}

/* link cards: 16px ink title, 14px muted subtitle, left-aligned beside the icon,
   16px padding, no min-height. Same selectors as the §6.R block; this section
   is later in the file, so these win at equal specificity. */
.main.filled section.pageHeaderV2.stpReportsHead .links .linkObjects.tooltipWrap {
	min-height: 0;
}

.main.filled section.pageHeaderV2.stpReportsHead .links .linkObjects.tooltipWrap > .linkObjects {
	gap: 12px;
	min-height: 0;
	padding: 16px;
	text-align: left;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--stpInk, #1a1a1a);
	/* white tile on the canvas (was transparent = canvas grey), same card
	   treatment as the Settings nav tiles */
	background-color: var(--stpSurface, #fff);
	box-shadow: var(--stpShadow, 0 1px 2px rgba(0, 0, 0, .05));
	transition: border-color .12s ease;
}

.main.filled section.pageHeaderV2.stpReportsHead .links .linkObjects.tooltipWrap > .linkObjects:hover {
	border-color: rgba(17, 17, 17, .28);
}

.main.filled section.pageHeaderV2.stpReportsHead .links .linkObjects .labelText {
	display: block;
	text-align: left;
	font-size: 16px;
	font-weight: 600;
	color: var(--stpInk, #1a1a1a);
}

.main.filled section.pageHeaderV2.stpReportsHead .links .linkObjects .labelText small {
	display: block;
	margin-top: 2px;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.35;
	color: var(--stpSecondary, #6f6f6f);
}


/* =========================================================================
   §print — RESTORE BLOCK (regression fix, plan task 1.7)
   -------------------------------------------------------------------------
   Page.php:43 emits print.css BEFORE headBase() emits this theme, and media
   blocks add no specificity, so the bare `body{}` rule above WINS inside
   @media print. print.css:21 is mirrored here exactly.
   PrintTableV1.php:187 documents that body{font-size:0} is LOAD-BEARING:
   print.css `#printArea .labelPrintCode{font-size:2.8mm}` depends on that
   zero baseline. Do not "clean up" these values.

   Same cascade for chrome: §5.2 `.headerBar{display:flex}` and §5.6
   `.navLeft{display:flex}` are (0,1,0) and later than print.css:24-26, so
   they paint the rail + header on every printed page (ticket-roll print on
   mod/fulfillment/newTicketBatch). Re-assert those hides here.
   ========================================================================= */

@media print {
	body {
		font-size: 0;
		font-family: 'ArialNarrow-Bold', Arial, Helvetica, sans-serif;
		color: #000;
	}

	.navLeft, .navRight { display: none; }
	.headerBar { display: none; }
	.main.hideMainOnPrint { display: none; }
}

/* -------------------------------------------------------------------------
   Settings grouped navigation — port of PTB ptbMain.css:438-575
   (`section.block.short.nav`), in STP tokens.
   -------------------------------------------------------------------------
   mod/settings/index.php wraps Page::modNavOptions() in section.block.short.nav;
   Main.php defines modBox[Settings]['groups'], so the framework emits
   .nav-group > .nav-group-header + .nav-group-items > div.shortBlockBtn
   (i + div > .shortBlockBtn-title + .shortBlockBtn-subTitle).
   Unlike PTB there is no outer panel: groups sit on the canvas and the tiles
   are the white cards. Beats main.css:1299 `section.block.short > div`
   (width 33% / max-width 240px) and main.css:1361-1364 (column tile, 18px,
   #EEE hover, padded icon) — all (0,2,1)/(0,2,2) — at (0,3,x) and later order. */
section.block.short.nav {
	display: block;
	padding: 4px 0 0;
}

/* full width: the framework section is a centred flex row, so without this
   each group shrink-wraps to its own items and the groups do not line up. */
section.block.short.nav > .nav-group {
	flex: 1 1 100%;
	width: 100%;
	box-sizing: border-box;
	min-width: 0;
	max-width: none;
	margin: 0 0 28px;
}

section.block.short.nav > .nav-group:last-child {
	margin-bottom: 0;
}

section.block.short.nav .nav-group-header {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 14px;
	padding: 0 2px 10px;
	border-bottom: var(--stpHairline, 1px solid rgba(17, 17, 17, .08));
	font-size: 17px;
	font-weight: 700;
	color: var(--stpInk, #1a1a1a);
}

section.block.short.nav .nav-group-header i {
	font-size: 15px;
	color: var(--stpSecondary, #66665f);
}

section.block.short.nav .nav-group-items {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
}

section.block.short.nav .nav-group-items > .shortBlockBtn {
	display: flex;
	flex-direction: row;
	justify-content: flex-start;
	align-items: center;
	gap: 14px;
	width: 100%;
	min-width: 0;
	max-width: none;
	min-height: 0;
	box-sizing: border-box;
	margin: 0;
	padding: 16px 20px;
	font-size: 15px;
	text-align: left;
	color: var(--stpInk, #1a1a1a);
	background-color: var(--stpSurface, #fff);
	border: var(--stpHairline, 1px solid rgba(17, 17, 17, .08));
	border-radius: 12px;
	box-shadow: var(--stpShadow, 0 1px 2px rgba(0, 0, 0, .05));
	transition: background-color .12s ease, border-color .12s ease;
}

section.block.short.nav .nav-group-items > .shortBlockBtn:hover {
	background-color: var(--stpSurface, #fff);
	border-color: rgba(17, 17, 17, .28);
}

section.block.short.nav .nav-group-items > .shortBlockBtn i {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 40px;
	height: 40px;
	padding: 0;
	font-size: 22px;
	color: var(--stpInk, #1a1a1a);
}

section.block.short.nav .nav-group-items > .shortBlockBtn > div {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	row-gap: 3px;
	flex: 1;
	min-width: 0;
}

section.block.short.nav .shortBlockBtn .shortBlockBtn-title {
	font-weight: 600;
	text-align: left;
}

section.block.short.nav .shortBlockBtn .shortBlockBtn-subTitle {
	font-size: 13px;
	line-height: 1.3;
	text-align: left;
	color: var(--stpSecondary, #66665f);
}

@media (max-width: 1100px) {
	section.block.short.nav .nav-group-items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
	section.block.short.nav .nav-group-items { grid-template-columns: 1fr; }
}


/* user profile › PIN tab: current PIN as a label + mono value (mod/utilities/userProfile.php) */
.main .stpProfilePin {
	display: flex;
	align-items: baseline;
	gap: 12px;
	margin: 4px 0 14px;
	text-align: left;
}

.main .stpProfilePin span {
	font-size: 13px;
	font-weight: 600;
	color: var(--stpSecondary, #66665f);
}

.main .stpProfilePin strong {
	font-family: var(--stpMono, ui-monospace, Menlo, monospace);
	font-size: 22px;
	letter-spacing: .08em;
	color: var(--stpInk, #1a1a1a);
}

/* Dispute Responder email tokens (DisputeSettingsView::drViewTokenChips): quiet mono pills, click copies the token */
.stpTokenChips {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	margin-top: 8px;
}

.stpTokenChip {
	appearance: none;
	-webkit-appearance: none;
	font-family: var(--stpMono, ui-monospace, Menlo, monospace);
	font-size: 12px;
	line-height: 1.4;
	padding: 2px 8px;
	border: 1px solid var(--stpBorder, rgba(0, 0, 0, .14));
	border-radius: 999px;
	background: var(--stpZebra, #f7f7f6);
	color: var(--stpSecondary, #66665f);
	cursor: pointer;
}

.stpTokenChip:hover {
	background: var(--stpHover, #efefeb);
	color: var(--stpInk, #1a1a1a);
}

.stpTokenChip:focus-visible {
	outline: 2px solid var(--stpInk, #1a1a1a);
	outline-offset: 2px;
}

/* vehicle detail, Letter requests tab: the read-only workflow stepper (.stpSteps) draws done / current steps without a button,
   so they take the same box as .stpStep.todo. Wraps two per line on phones. */
.stpVehicleDetail .stpLetterSteps {
	padding: 0;
}

.stpVehicleDetail .stpLetterSteps .stpStep {
	display: flex;
	flex-direction: column;
	gap: 3px;
	box-sizing: border-box;
	padding: 10px 6px 6px;
}

@media (max-width: 560px) {
	.stpVehicleDetail .stpLetterSteps {
		flex-wrap: wrap;
	}

	.stpVehicleDetail .stpLetterSteps .stpStep {
		flex: 1 1 45%;
	}
}

/* MC My order, verify-roll modal (Fulfillment::ffVerifyRollForm): the handheld-scanner icon. The popup .sectionBox is font-size 0
   (main.css:567), so the icon sizes in px; --stpInk is set in both themes. (1,1,0) scoped to the modal id. */
#ffVerifyRollModal .stpFfScanIcon {
	display: block;
	font-size: 52px;
	line-height: 1;
	text-align: center;
	color: var(--stpInk, #1a1a1a);
	margin: 2px 0 4px;
}
