/* =================================================================
   DESIGN TOKENS -- 2026-05-27 refresh ("Glacier" default)
   =================================================================
   The new token family (--bg / --panel / --line / --text / --primary)
   is the source of truth. The legacy --c-* names (used throughout
   site.css and per-page styles) are bridged at the bottom of this
   block so existing rules keep working without per-rule rewrites.

   Class hooks (applied by Site.Master from the user profile):
     .theme-glacier   default blue        (#2563eb primary)
     .theme-graphite  alt gray/mono       (#3a4252 primary)
     .theme-rcr       legacy RCR red      (#c8102e primary)
     .dark            dark-mode (layered on top of any theme)
     .density-{compact|regular|cozy}
     .radius-{sharp|soft|pillow}
   ================================================================= */

:root,
.theme-glacier {
    color-scheme: light;

    /* surfaces */
    --bg:        #f5f6f8;
    --panel:     #ffffff;
    --panel-2:   #fafbfc;
    --line:      #e6e8ec;
    --line-soft: #eef0f3;

    /* text */
    --text:    #1a1f2b;
    --text-2:  #4a5363;
    --text-3:  #8a93a3;
    --text-4:  #aab3c2;

    /* brand */
    --primary:          #2563eb;
    --primary-ink:      #ffffff;
    --primary-soft:     #e8efff;
    --primary-soft-ink: #1d4ed8;

    /* sidebar (always-dark navy across all themes -- per design spec) */
    --sidebar-bg:         #1f2532;
    --sidebar-ink:        #c8cfdc;
    --sidebar-ink-active: #ffffff;
    --sidebar-active-bg:  rgba(255,255,255,.08);

    /* semantic */
    --ok:            #16a34a;
    --ok-soft:       #d8f0df;
    --ok-soft-ink:   #0e6b32;
    --warn:          #b6781f;
    --warn-soft:     #fbecc7;
    --warn-soft-ink: #8a5a13;
    --danger:          #c0392b;
    --danger-soft:     #fadcd7;
    --danger-soft-ink: #8b2418;
    --info-soft:     #dde7f9;
    --info-soft-ink: #1d4ed8;

    /* geometry -- pillow default */
    --radius-sm: 10px;
    --radius:    16px;
    --radius-lg: 22px;

    /* density -- regular default (44px row height) */
    --row-h: 44px;
    --pad-x: 16px;
    --pad-y: 12px;

    /* shell geometry */
    --side-w:           232px;
    --side-w-collapsed: 64px;
    --top-h:            64px;
    --foot-h:           36px;

    /* type */
    --font-ui:   "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

    --c-shadow: 0 1px 2px rgba(0,0,0,.04), 0 4px 10px rgba(15,18,40,.06);
}

/* Alt theme: Graphite (gray / mono) */
.theme-graphite {
    --primary:          #3a4252;
    --primary-soft:     #e6e9ef;
    --primary-soft-ink: #262b37;

    --sidebar-bg: #171a22;
    --bg:         #f3f4f6;
}

/* Legacy theme: RCR red. Keeps the red brand available as a preset for
   users who have it set today; new deployments default to Glacier. */
.theme-rcr {
    --primary:          #c8102e;
    --primary-ink:      #ffffff;
    --primary-soft:     #fbe4e7;
    --primary-soft-ink: #8a0a1f;

    --sidebar-bg: #1f2233;
}

/* ---- Per-deployment identity colour: built-in fallback -------------------
   Which of the four systems is this? Paints the brand block at the top of the
   sidebar and a strip across the top bar. Both masters override these from
   local.config via <style id="brandTheme">, and unlike everything else in
   this file they are not the user's to change.

   THESE TWO RULES MUST MATCH <html> ONLY. Do not fold them back into the
   `:root, .theme-glacier` block above, or into the `.dark, ...` block below:
   both of those also carry PRESET CLASS selectors, and the preset class sits
   on <body>. A custom property set directly on <body> beats the same property
   inherited from <html>, so the master's :root injection would lose and every
   deployment would render this fallback instead of its own colour.

   That is not hypothetical -- it shipped that way in 2026.9.2.3, and showed up
   as the sign-in page (whose <body> carries no preset class) rendering the
   right colour while the app itself was stuck on the fallback red. */
:root { --brand-head: #b3122b; --brand-head-ink: #ffffff; --brand-chip: #b3122b; }
.dark, [data-theme="dark"] { --brand-head: #8d0e21; }

/* --brand-chip is deliberately NOT re-declared for dark mode. The user chip is
   a small circle on the top bar rather than a large block, and the deepened
   dark variant reads as a muddy smudge there; holding the light value keeps it
   legible on both grounds. */

/* Dark mode (layered on any theme via the .dark class). data-theme="dark"
   is kept as a back-compat alias for the existing localStorage toggle.

   The descendant selectors are essential: the .dark / [data-theme] hook sits
   on <html>, but the theme preset class (.theme-glacier etc.) sits on <body>
   and sets the base surface/text tokens DIRECTLY on that element. A custom
   property set directly on <body> beats the one inherited from <html>, so
   without re-asserting the dark tokens at the body level the preset's light
   surfaces win and dark mode appears broken (glacier, which defines the full
   palette, was hit hardest). Re-declaring here at (0,2,0) specificity beats
   the preset's (0,1,0); --primary stays from the preset (not set below). */
.dark,
[data-theme="dark"],
.dark .theme-glacier,
.dark .theme-graphite,
.dark .theme-rcr,
[data-theme="dark"] .theme-glacier,
[data-theme="dark"] .theme-graphite,
[data-theme="dark"] .theme-rcr {
    color-scheme: dark;

    --bg:        #0e1117;
    --panel:     #171b23;
    --panel-2:   #1c2230;
    --line:      #262d3b;
    --line-soft: #1f2532;

    --text:   #e7eaf0;
    --text-2: #a7b0c0;
    --text-3: #7e889a;
    --text-4: #5a6275;

    --sidebar-bg:         #0a0d13;
    --sidebar-ink:        #a7b0c0;
    --sidebar-ink-active: #ffffff;
    --sidebar-active-bg:  rgba(255,255,255,.06);

    --primary-soft:     rgba(37, 99, 235, 0.22);
    --primary-soft-ink: #ffffff;

    --ok-soft:       rgba(22, 163, 74, 0.18);
    --ok-soft-ink:   #7fdda0;
    --warn-soft:     rgba(182, 120, 31, 0.22);
    --warn-soft-ink: #e9c074;
    --danger-soft:   rgba(192, 57, 43, 0.22);
    --danger-soft-ink:#f0a097;
    --info-soft:     rgba(37, 99, 235, 0.22);
    --info-soft-ink: #a8c2ff;

    --c-shadow: 0 1px 2px rgba(0,0,0,.4), 0 4px 14px rgba(0,0,0,.5);
}

/* Density alternates */
.density-compact { --row-h: 36px; --pad-x: 12px; --pad-y:  8px; }
.density-regular { --row-h: 44px; --pad-x: 16px; --pad-y: 12px; } /* default */
.density-cozy    { --row-h: 52px; --pad-x: 20px; --pad-y: 16px; }

/* Radius alternates */
.radius-sharp  { --radius:  4px; --radius-sm:  3px; --radius-lg:  6px; }
.radius-soft   { --radius: 10px; --radius-sm:  6px; --radius-lg: 14px; }
.radius-pillow { --radius: 16px; --radius-sm: 10px; --radius-lg: 22px; } /* default */

/* ---- Legacy-name bridge ------------------------------------------------
   Existing rules and per-page CSS read --c-* names. We alias them onto
   the new design tokens so a one-off rule like `background: var(--c-bg)`
   resolves to the new --bg value without an across-the-board rename. */
:root,
.theme-glacier,
.theme-graphite,
.theme-rcr,
.dark,
[data-theme="dark"] {
    --c-bg:           var(--bg);
    --c-surface:      var(--panel);
    --c-surface-2:    var(--panel-2);
    --c-border:       var(--line);
    --c-text:         var(--text);
    --c-text-muted:   var(--text-2);
    --c-primary:      var(--primary);
    --c-primary-ink:  var(--primary-ink);
    --c-accent:       var(--primary);
    --c-side-bg:      var(--sidebar-bg);
    --c-side-bg-2:    var(--sidebar-bg);
    --c-side-text:    var(--sidebar-ink);
    --c-side-text-2:  var(--text-3);
    --c-side-active:  var(--sidebar-active-bg);

    --c-bg-soft:         var(--panel-2);
    --c-bg-hover:        var(--line-soft);
    --c-bg-alert:        var(--danger-soft);
    --c-bg-alert-strong: var(--danger);
    --c-input-bg:        var(--panel);
    --c-input-bg-focus:  var(--panel);
    --c-panel-head-grad-1: var(--primary-soft);
    --c-panel-head-grad-2: var(--primary-soft);
    --c-panel-head-text:   var(--primary-soft-ink);
    --c-action-btn-bg:     var(--primary-soft);
    --c-overlay:           rgba(15,18,40,.45);
    --c-success-bg:        var(--ok-soft);
    --c-success-ink:       var(--ok-soft-ink);
    --c-success-bd:        var(--ok);

}

/* Per-user color overrides (live in the inline <style id="userTheme">
   block in Site.Master) set the NEW token names. Legacy --c-* will
   inherit through the aliases above. */

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
    margin: 0;
    font: 14px/1.45 var(--font-ui);
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
/* Numeric / monospace utilities -- IDs, dates, currency get tabular figures. */
.mono { font-family: var(--font-mono); font-feature-settings: "tnum"; }
.num  { font-variant-numeric: tabular-nums; }

a { color: var(--c-accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- Layout shell ---------- */
.app-shell {
    display: grid;
    grid-template-columns: var(--side-w) 1fr;
    grid-template-rows: 1fr;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    transition: grid-template-columns .18s ease;
}
.app-shell[data-sidebar-collapsed="true"] {
    grid-template-columns: var(--side-w-collapsed) 1fr;
}

.main-col {
    display: grid;
    grid-template-rows: var(--top-h) 1fr var(--foot-h);
    min-width: 0;
    min-height: 0;
}

/* ---------- Sidebar ---------- */
.side-nav {
    background: linear-gradient(180deg, var(--c-side-bg) 0%, var(--c-side-bg-2) 100%);
    color: var(--c-side-text);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    /* Grid items default to min-height: auto, which is intrinsic content
       height. With many nav-items + expanded groups the sidebar would
       overflow the grid cell and clip below the viewport, leaving the
       last items unscrollable. Forcing min-height: 0 lets the flex
       container honour the grid track height instead. */
    min-height: 0;
    border-right: 1px solid #0c0e18;
}

.side-nav__head {
    height: var(--top-h);
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 12px;
    /* The brand block: solid per-deployment colour, so the icon, the name and
       the colour read as one object in the corner people already look at.
       A dark hairline (not the old white one) separates it from the nav. */
    background: var(--brand-head);
    border-bottom: 1px solid rgba(0,0,0,.22);
}

/* The collapse toggle sits on the brand colour now, so it takes its ink from
   the block rather than from the sidebar's muted --c-side-text. */
.side-nav__head .icon-btn { color: rgba(255,255,255,.78); }
.side-nav__head .icon-btn:hover { background: rgba(255,255,255,.18); color: #fff; }

.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand__badge {
    width: 32px; height: 32px;
    border-radius: 8px;
    background: #fff;
    object-fit: contain;
    padding: 3px;
    flex: 0 0 32px;
    box-shadow: 0 0 0 1px rgba(255,255,255,.08);
}
.brand__name {
    font-weight: 600;
    font-size: 14px;
    color: var(--brand-head-ink);
    letter-spacing: .2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.side-nav__list {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 8px 6px 16px;
    display: flex; flex-direction: column; gap: 2px;
    scrollbar-width: none;       /* Firefox */
}
.side-nav__list::-webkit-scrollbar { display: none; }  /* Chromium/Safari/Edge */
.side-nav__list > * { flex-shrink: 0; }
.side-nav__foot {
    flex-shrink: 0;
    padding: 8px 6px;
    border-top: 1px solid rgba(255,255,255,.06);
}

.nav-item {
    display: flex; align-items: center; gap: 12px;
    height: 40px;
    padding: 0 12px;
    border-radius: 8px;
    color: var(--c-side-text);
    white-space: nowrap;
    overflow: hidden;
}
.nav-item:hover { background: rgba(255,255,255,.06); text-decoration: none; color: #fff; }
.nav-item.is-active { background: var(--c-side-active); color: #fff; }
.nav-item.is-active::before {
    content: ""; position: absolute;
    width: 3px; height: 22px; background: var(--c-primary);
    margin-left: -12px; border-radius: 0 3px 3px 0;
}
/* Collapsed sidebar centers the icon in a narrow rail; the default
   margin-left shift would land the indicator on top of the glyph.
   Pin it flush with the rail's left edge instead (compensates for
   side-nav__list's 6px padding). */
.app-shell[data-sidebar-collapsed="true"] .nav-item.is-active::before {
    margin-left: 0;
    left: -6px;
}
.nav-item { position: relative; }
.nav-item--muted { color: var(--c-side-text-2); }
.nav-item .icon { flex: 0 0 18px; }
.nav-item__label { font-size: 13.5px; flex: 1 1 auto; }

/* Group (parent w/ children) */
.nav-item--group {
    width: 100%;
    background: transparent;
    border: 0;
    text-align: left;
    cursor: pointer;
    font: inherit;
}

/* Split-group variant: the row is a link that navigates, the chevron is a
   separate button that toggles the children. The two-element form is used when
   the group has a sensible default page to land on. */
.nav-group__main {
    flex: 1 1 auto;
    min-width: 0;
    display: flex; align-items: center; gap: 12px;
    color: inherit;
    text-decoration: none;
    height: 100%;
}
.nav-group__main:hover { text-decoration: none; color: #fff; }

.nav-group__toggle {
    display: inline-flex; align-items: center; justify-content: center;
    margin-left: auto;
    width: 28px; height: 28px;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 6px;
    color: inherit;
    cursor: pointer;
}
.nav-group__toggle:hover { background: rgba(255,255,255,.08); }

.nav-group__caret {
    margin-left: auto;
    transition: transform .15s ease;
    opacity: .55;
}
.nav-group__toggle .nav-group__caret { margin-left: 0; }
.nav-item--group[aria-expanded="true"] .nav-group__caret,
.nav-group__toggle[aria-expanded="true"] .nav-group__caret { transform: rotate(180deg); opacity: .9; }

.nav-group__children {
    display: none;
    flex-direction: column;
    gap: 1px;
    padding: 2px 0 6px 0;
}
.nav-item--group[aria-expanded="true"] + .nav-group__children,
.nav-group:has(.nav-group__toggle[aria-expanded="true"]) > .nav-group__children { display: flex; }

.nav-item--child {
    height: 32px;
    margin-left: 30px;
    padding: 0 12px;
    border-radius: 6px;
    color: var(--c-side-text-2);
    font-size: 13px;
}
.nav-item--child:hover { color: #fff; background: rgba(255,255,255,.05); }
.nav-item--child.is-active { color: #fff; background: var(--c-side-active); }
.nav-item--child.is-active::before {
    width: 2px; height: 16px;
    margin-left: -12px;
}

/* Collapsed state hides labels */
.app-shell[data-sidebar-collapsed="true"] .nav-item__label,
.app-shell[data-sidebar-collapsed="true"] .brand__name,
.app-shell[data-sidebar-collapsed="true"] .nav-group__caret,
.app-shell[data-sidebar-collapsed="true"] .nav-group__children {
    display: none;
}
.app-shell[data-sidebar-collapsed="true"] .side-nav__head { justify-content: center; }
.app-shell[data-sidebar-collapsed="true"] .nav-item { justify-content: center; padding: 0; }
.app-shell[data-sidebar-collapsed="true"] .nav-item--child { display: none; }
.app-shell[data-sidebar-collapsed="true"] .nav-group__toggle { display: none; }
.app-shell[data-sidebar-collapsed="true"] .nav-group__main  { justify-content: center; }

/* ---------- Top bar ---------- */
.top-bar {
    height: var(--top-h);
    background: var(--c-surface);
    border-bottom: 1px solid var(--c-border);
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 16px;
    gap: 16px;
    /* The 3px inset strip continues the sidebar's brand block across the top
       of the page, so the identity colour frames the whole window. Inset
       rather than a border-top on purpose: the row is a fixed var(--top-h)
       tall inside a grid, and a border would eat 3px of it. */
    box-shadow: inset 0 3px 0 0 var(--brand-head), var(--c-shadow);
    z-index: 10;
    /* No position: sticky -- the grid layout already pins this row at the
       top of .main-col. Adding sticky inside an overflow:hidden grand-
       parent grid causes the 1fr content row to mis-calculate its
       height in some touch-emulated viewports, which clips the bottom
       of .content and prevents scrolling all the way down. */
}
.top-bar__search {
    position: relative;
    flex: 1 1 520px;
    max-width: 640px;
}
.top-bar__search .icon-search {
    position: absolute; left: 10px; top: 50%; transform: translateY(-50%);
    opacity: .6;
}
.top-bar__search input {
    width: 100%;
    height: 36px;
    padding: 0 12px 0 34px;
    border: 1px solid var(--c-border);
    border-radius: 8px;
    background: var(--c-input-bg);
    color: var(--c-text);
    font: inherit;
}
.top-bar__search input:focus {
    outline: none;
    background: var(--c-input-bg-focus);
    border-color: var(--c-accent);
    box-shadow: 0 0 0 5px color-mix(in srgb, var(--c-accent) 32%, transparent);
}

.top-bar__meta { display: flex; align-items: center; gap: 10px; }

.meta-chip {
    display: inline-flex; align-items: baseline; gap: 6px;
    padding: 6px 10px;
    border: 1px solid var(--c-border);
    border-radius: 999px;
    background: var(--c-bg-soft);
    font-size: 12px;
    color: var(--c-text-muted);
}
.meta-chip__value { color: var(--c-text); font-weight: 600; }
/* Clickable variant -- used for the Cashout pill which navigates to
   ~/Pages/Cashout.aspx. Reset the default anchor color/underline so
   the pill keeps its chip look, and add a subtle hover affordance. */
.meta-chip--link {
    text-decoration: none;
    cursor: pointer;
    transition: border-color .15s, background .15s;
}
.meta-chip--link:hover, .meta-chip--link:focus {
    border-color: var(--c-accent);
    background: var(--c-bg-hover);
    text-decoration: none;
}

.user-chip {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 4px 10px 4px 4px;
    border: 1px solid var(--c-border);
    border-radius: 999px;
    background: var(--c-surface);
    cursor: pointer;
}
.user-chip:hover { background: var(--c-bg-soft); }
.user-chip--disabled,
.user-chip--disabled:hover {
    cursor: not-allowed;
    opacity: .55;
    background: var(--c-surface);
    pointer-events: auto;   /* keep tooltip/title hover events */
}
.user-chip__avatar {
    width: 28px; height: 28px;
    border-radius: 50%;
    /* Brand-owned, not var(--c-primary): the initials circle is the third
       thing the eye lands on up there, after the badge and the top strip, so
       it carries the deployment's colour rather than the user's theme. */
    background: var(--brand-chip);
    color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 600; font-size: 12px;
    overflow: hidden;
}
.user-chip__avatar-img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}
.user-chip__name {
    font-size: 13px; font-weight: 500;
    max-width: 160px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ---------- Icon button ---------- */
.icon-btn {
    width: 32px; height: 32px;
    border: 1px solid transparent;
    background: transparent;
    border-radius: 8px;
    color: var(--c-side-text);
    cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
}
.icon-btn:hover { background: rgba(255,255,255,.08); color: #fff; }

/* ---------- Content + footer ---------- */
.content {
    padding: 20px 24px 28px;
    overflow: auto;
    overscroll-behavior: contain;
    min-width: 0;
    min-height: 0;
}
/* Default inter-card spacing for every page. Direct children of the
   main scroll area (section-head, .panel, .alert, individual wrappers
   like .order-page / .me-page) get a 16px gap from their preceding
   sibling. Pages that wrap cards in their own flex column (with their
   own gap) are unaffected -- the wrapper is the single direct child
   of .content, so this rule only applies once for it. Adjacent-sibling
   (* + *) so the very first element gets no top margin. */
.content > * + * { margin-top: 16px; }

.foot-bar {
    height: var(--foot-h);
    border-top: 1px solid var(--c-border);
    background: var(--c-surface);
    display: flex; align-items: center; gap: 8px;
    padding: 0 16px;
    font-size: 12px;
    color: var(--c-text-muted);
}
.foot-bar__sep { opacity: .5; }
.foot-bar__ver { opacity: .55; font-weight: 400; margin-left: 4px; }
/* Each labeled segment of the footer (BrandName / Location / IP) gets
   a bold prefix so the eye lands on the label before the value. The
   value stays in the muted base color of the .foot-bar so labels pop. */
.foot-bar__lbl { color: var(--text); font-weight: 600; }

/* ---------- Cards (LastPass-style tile) ---------- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
}
.card {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--c-shadow);
    display: flex; flex-direction: column;
    transition: transform .12s ease, box-shadow .12s ease;
}
.card:hover { transform: translateY(-1px); box-shadow: 0 2px 4px rgba(0,0,0,.06), 0 8px 18px rgba(15,18,40,.08); }
.card__media {
    height: 90px;
    background: var(--c-primary);
    display: flex; align-items: center; justify-content: center;
    color: #fff;
}
.card__media .icon { width: 28px; height: 28px; }
.card__body { padding: 12px 14px; }
.card__title { font-weight: 600; margin: 0 0 2px; }
.card__sub { color: var(--c-text-muted); font-size: 12px; }

/* ---------- Home dashboard ----------------------------- */
/* Greeting + flavour-phrase share a single baseline-aligned flex row so
   they sit next to each other on wide screens ("Good evening, Darren
   Tonight at Fernie -- Tuesday, May 27") and wrap cleanly onto a second
   line when the column gets narrow. The sub line has no max-width so a
   long phrase + date can't get clipped. */
.home-greet {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px 14px;
    margin: 4px 0 18px;
}
.home-greet__line {
    font-size: 22px;
    font-weight: 600;
    margin: 0;
    letter-spacing: -.01em;
}
.home-greet__sub {
    color: var(--text-2);
    font-size: 14px;
    margin: 0;
    min-width: 0;
    flex: 1 1 auto;
}

.home-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin: 0 0 22px;
}
.home-stat {
    display: block;
    padding: 14px 16px;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    box-shadow: var(--c-shadow);
    text-decoration: none;
    color: inherit;
    transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.home-stat:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,.06), 0 8px 18px rgba(15,18,40,.08);
    /* Override the global a:hover { text-decoration: underline; } so the
       large card / tile anchors don't get an underline ribbon under the
       label text. The lift + shadow already communicate hoverability. */
    text-decoration: none;
}
.home-stat__label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--c-text-muted);
    margin: 0 0 4px;
}
.home-stat__num   { font-size: 26px; font-weight: 700; margin: 0; line-height: 1.15; }
.home-stat__sub   { font-size: 12px; color: var(--c-text-muted); margin: 4px 0 0; }
.home-stat--warn  { border-color: #d99; }
.home-stat--warn .home-stat__num { color: #b22; }
.home-stat--warn .home-stat__sub { color: #b22; opacity: .8; }

.home-cols {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
    gap: 16px;
    align-items: start;
}
@media (max-width: 900px) {
    .home-cols { grid-template-columns: 1fr; }
}

/* Activity feed (left) */
.home-activity .panel__head { display: flex; align-items: baseline; gap: 10px; }
.home-activity .panel__sub  { color: var(--c-text-muted); font-size: 12px; }
.home-activity__list { list-style: none; margin: 0; padding: 0; }
.home-activity__item {
    border-bottom: 1px solid var(--c-border-light, #eee);
}
.home-activity__item:last-child { border-bottom: 0; }
/* Whole-row LinkButton becomes the grid container so click target = whole row.
   Strip default <a> styling so the row reads as a card, not a hyperlink. */
.home-activity__row-link {
    display: grid;
    grid-template-columns: 56px 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 10px 6px;
    border-radius: 6px;
    color: inherit;
    text-decoration: none;
    transition: background-color .12s ease;
}
.home-activity__row-link:hover,
.home-activity__row-link:focus-visible {
    background: var(--c-row-hover, #f4f5f7);
    text-decoration: none;
    color: inherit;
}
.home-activity__time {
    font-variant-numeric: tabular-nums;
    color: var(--c-text-muted);
    font-size: 13px;
}
.home-activity__main { min-width: 0; }
.home-activity__title { font-weight: 600; margin: 0; }
.home-activity__sub   { font-size: 12px; color: var(--c-text-muted); margin: 1px 0 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-activity__badge {
    font-size: 15px;
    font-weight: 600;
    padding: 3px 12px;
    border-radius: 999px;
    white-space: nowrap;
    line-height: 1.25;
}
.home-activity__badge::before {
    content: "";
    display: inline-block;
    width: 8px; height: 8px;
    border-radius: 50%;
    margin-right: 8px;
    vertical-align: 1px;
    background: currentColor;
}
.home-activity__badge--web_commit  { background: #e8f5ea; color: #1f7a3a; }
.home-activity__badge--refund      { background: #fde9ee; color: #b3324a; }
.home-activity__badge--passprint   { background: #e8eefb; color: #2b4eaa; }
/* Discount = yellow (matches the "Woo" chip in the mock). Comp = pale red,
   distinguishable from refund's saturated red without losing the "money
   came off" cue. order_new = indigo (creation accent); product_add = teal
   (neutral additive). */
.home-activity__badge--discount    { background: #fdf2c4; color: #8a6500; }
.home-activity__badge--comp        { background: #fce4e4; color: #a85050; }
.home-activity__badge--order_new   { background: #ede9fe; color: #5b34d0; }
.home-activity__badge--product_add { background: #d8efe6; color: #1f6e5f; }
/* Receipt actions: print = sky blue (distinct from passprint's indigo-blue),
   email = teal/cyan (sent). */
.home-activity__badge--receipt_print { background: #e3f1fb; color: #1c6fb3; }
.home-activity__badge--receipt_email { background: #dcf1f3; color: #1f6f7a; }
.home-activity__empty { color: var(--c-text-muted); font-size: 13px; padding: 12px 0; }

/* Quick actions (right) */
.home-quick__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.home-quick__card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 12px;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    text-decoration: none;
    color: inherit;
    transition: background-color .12s ease, transform .12s ease;
}
.home-quick__card:hover {
    background: var(--c-row-hover, #f5f8ff);
    transform: translateY(-1px);
    text-decoration: none;
}
.home-quick__card .icon { width: 18px; height: 18px; flex: 0 0 18px; }
.home-quick__label { font-weight: 600; font-size: 14px; }

/* ---------- Section header in content ---------- */
.section-head {
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px;
    margin: 6px 0 14px;
    flex-wrap: wrap;
}
.section-head h1 { font-size: 18px; margin: 0; }
.section-head__title { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; min-width: 0; }
.section-head h1 .order-id { color: var(--c-text-muted); font-weight: 500; margin-left: 4px; }
.section-head .actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* Inline "copy to clipboard" button rendered beside the order/member id
   in the page heading. Borderless and small so it tucks under the id
   text. The icon swaps from copy to check for ~1.2s after a successful
   copy (see .is-copied below + the [data-copy] handler in site.js). */
.copy-id {
    -webkit-appearance: none; appearance: none;
    background: transparent; border: 0;
    color: var(--c-text-muted);
    cursor: pointer;
    display: inline-flex; align-items: center;
    padding: 2px 5px; margin-left: 2px;
    border-radius: 4px;
    vertical-align: baseline;
    transition: color .15s, background .15s;
}
.copy-id:hover  { color: var(--c-text); background: var(--c-bg-hover); }
.copy-id:focus  { outline: 2px solid var(--c-focus, #4a86ff); outline-offset: 1px; }
.copy-id .icon  { width: 14px; height: 14px; flex: 0 0 14px; }
.copy-id .icon-check { display: none; }
.copy-id.is-copied                 { color: var(--c-success-ink); background: var(--c-success-bg); }
.copy-id.is-copied .icon-copy      { display: none; }
.copy-id.is-copied .icon-check     { display: inline-block; }

/* A Copy button for a whole table or chart (the [data-copy-from] handler in
   site.js): the same copy -> check swap as .copy-id, on a .btn. .is-failed is
   a red flash when the browser refuses the clipboard. */
.copy-btn .icon-check              { display: none; }
.copy-btn.is-copied                { color: var(--c-success-ink); background: var(--c-success-bg); }
.copy-btn.is-copied .icon-copy     { display: none; }
.copy-btn.is-copied .icon-check    { display: inline-block; }
.copy-btn.is-failed                { color: var(--danger); }
/* Copy buttons on their own line under a chart, at the right (a dashboard
   chart has two: Copy picture and Copy data). */
.copy-row { display: flex; justify-content: flex-end; gap: .5rem; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; gap: 6px;
    height: 34px; padding: 0 12px;
    border: 1px solid var(--c-border);
    background: var(--c-surface);
    color: var(--c-text);
    border-radius: 8px;
    font: inherit; font-size: 13px; font-weight: 500;
    cursor: pointer;
    text-decoration: none;
}
.btn:hover { background: var(--c-bg-soft); text-decoration: none; }

/* A button shown DISABLED rather than removed -- the Hold button on an order
   that has nothing left to hold. It carries the reason in its tooltip, so it
   has to stay readable, not merely inert. .aspNetDisabled is the class
   WebForms puts on a disabled server control; .is-disabled is for the same
   look on plain markup. */
.btn.aspNetDisabled,
.btn.is-disabled {
    opacity: .55;
    cursor: not-allowed;
    pointer-events: none;
}
.btn--primary { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }
/* Hover darkens the primary (mix toward black) -- NOT --c-primary-ink, which
   is the white text-on-primary colour and would make the label invisible. */
.btn--primary:hover {
    background: color-mix(in srgb, var(--c-primary) 86%, #000);
    border-color: color-mix(in srgb, var(--c-primary) 86%, #000);
}
.btn--ghost { background: transparent; border-color: transparent; color: var(--c-text-muted); }
.btn--ghost:hover { color: var(--c-text); background: var(--c-bg-soft); border-color: var(--c-border); }
/* "Secondary action" button: a soft chip that visibly sits between plain
   .btn and .btn--primary. Used where the operator is taking an action
   that isn't the page's default one (e.g. picking an OrderID in the
   Cashout "Today's orders" grid). Background is the user-configurable
   --c-action-btn-bg (defaults to about half-intensity of the card
   header); text uses --c-text so it stays legible across themes. */
.btn--action {
    background: var(--c-action-btn-bg);
    border-color: var(--c-action-btn-bg);
    color: var(--c-text);
}
.btn--action:hover {
    background: color-mix(in srgb, var(--c-action-btn-bg) 70%, var(--c-text) 8%);
    border-color: color-mix(in srgb, var(--c-action-btn-bg) 70%, var(--c-text) 8%);
}
.btn--small { height: 28px; padding: 0 10px; font-size: 12px; }

/* ---------- Panel (sectioned card) ---------- */
.panel {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    box-shadow: var(--c-shadow);
    overflow: hidden;
}
/* Panels that host hover cards (member rows) need overflow:visible so
   the card can pop above the row without being clipped at the panel
   boundary -- otherwise the card gets cut off when it flips upward
   for rows near the bottom of the panel. */
.panel:has(.hover-card-host) { overflow: visible; }
/* Same reason for panels hosting a token picker: the suggestion menu is
   absolutely positioned and drops BELOW its input, so on a filter card it runs
   past the card's bottom edge and gets clipped there. A menu sliced off
   mid-row reads as one sliding BEHIND the next card rather than as one being
   cut off, which is how it gets reported.

   Deliberately no z-index and no position on the panel. Either would create a
   stacking context and trap the menu's own z-index inside the card -- the fix
   that looks more thorough and reintroduces the bug the moment a following
   panel is positioned. */
.panel:has(.tp) { overflow: visible; }
.panel__head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid var(--c-border);
    background: linear-gradient(180deg, var(--c-panel-head-grad-1) 0%, var(--c-panel-head-grad-2) 100%);
    color: var(--c-panel-head-text);
    gap: 12px;
}
/* .panel__hint inside the panel head follows the head's text color so
   it stays readable when the user picks a dark/colored card header.
   Faded via color-mix to keep it visually subordinate to the title. */
.panel__head .panel__hint { color: color-mix(in srgb, var(--c-panel-head-text) 65%, transparent); }
.panel__title { margin: 0; font-size: 14px; font-weight: 600; letter-spacing: .2px; color: inherit; }
/* Pinned right, so a head that ALSO carries a hint or a collapse chevron
   still puts its buttons hard against the right-hand end instead of
   letting space-between float them mid-header. A no-op on the heads that
   are only title + actions (space-between already puts them there), which
   is every other one in the app -- only Member Edit "Credit cards on file"
   and Order Details "Installment plan card" combine the two. */
.panel__actions { display: flex; gap: 6px; flex-wrap: wrap; }
.panel__head > .panel__actions { margin-left: auto; }
.panel__head-text { display: flex; align-items: baseline; gap: 10px; min-width: 0; flex-wrap: wrap; }

/* Collapsible panel: opt-in via .panel--collapsible on the section + a
   .panel__collapse chevron button in the head. Clicking anywhere in the
   head (except actionable controls inside it) toggles. State persists
   in sessionStorage when the panel has data-collapse-id, so postbacks
   don't lose it. Useful for mobile/iPad widths where a long results
   list otherwise pushes the next panel off-screen. */
.panel--collapsible > .panel__head { cursor: pointer; user-select: none; }
.panel__collapse {
    background: transparent;
    border: 1px solid transparent;
    border-radius: 6px;
    width: 28px; height: 28px;
    display: inline-flex; align-items: center; justify-content: center;
    cursor: pointer;
    color: inherit;
    margin-left: 4px;
    flex: 0 0 auto;
}
.panel__collapse:hover { background: var(--c-bg-hover); }
.panel__collapse .icon { transition: transform .15s ease; opacity: .85; }
.panel--collapsible.is-collapsed .panel__collapse .icon { transform: rotate(-90deg); }
.panel--collapsible.is-collapsed > :not(.panel__head) { display: none; }

/* ---------- In-place list filter (panel-head inline search) ---------- */
.list-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.list-filter { position: relative; }
.list-filter .icon-search {
    position: absolute; left: 8px; top: 50%; transform: translateY(-50%);
    opacity: .55;
}
.list-filter input {
    height: 30px;
    width: 220px;
    padding: 0 10px 0 28px;
    border: 1px solid var(--c-border);
    border-radius: 6px;
    background: var(--c-input-bg);
    color: var(--c-text);
    font: inherit;
    font-size: 13px;
}
.list-filter input:focus {
    outline: none;
    background: var(--c-input-bg-focus);
    border-color: var(--c-accent);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--c-accent) 28%, transparent);
}
.line-row.is-filtered-out { display: none; }
.line-table.is-filter-empty::after {
    content: attr(data-filter-empty-msg);
    display: block;
    padding: 16px;
    color: var(--c-text-muted);
    font-size: 13px;
    text-align: center;
}

/* ---------- Order summary grid ---------- */
.order-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 28px;
    padding: 16px 20px;
    background: var(--panel);
}
/* .kv is a standalone label/value pair, NOT part of .order-summary. It used to
   get its display:flex from a `.order-summary .kv` rule, so anywhere else
   (Assign Media's slot header) the two spans collapsed together and rendered as
   "ORDER906994" with no gap. The layout belongs on the component. */
.kv { display: flex; align-items: baseline; gap: 14px; }
.kv__k {
    color: var(--text-3);
    font-size: 11.5px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .08em;
}
.kv__v { font-weight: 600; font-variant-numeric: tabular-nums; }
.kv__v--strong { font-size: 16px; }
/* Balance status colours -- same hardcoded red as .line-row__price.is-credit
   (theme-independent: "money owed" reads the same regardless of brand colour).
   Overpaid green follows the theme so it adapts in dark mode. */
.kv__v--owed                       { color: #c8102e; font-weight: 700; }
[data-theme="dark"] .kv__v--owed   { color: #ff6b80; }
.kv__v--overpaid                   { color: var(--c-success-ink); font-weight: 700; }
.kv--span { grid-column: 1 / -1; border-top: 1px dashed var(--c-border); padding-top: 10px; }
.comments-link { font-size: 13px; }

@media (min-width: 720px) {
    .order-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- Line table (products / payments) ---------- */
.line-table {
    display: flex; flex-direction: column;
}
.line-table__head, .line-row {
    display: grid;
    grid-template-columns: 2fr 2fr 1fr;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border-top: 1px solid var(--c-border);
}
.line-table__head {
    background: var(--panel-2);
    color: var(--text-3);
    font-size: 11.5px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .08em;
    border-top: 0;
}

/* Zebra striping for member-result tables (Members search + SearchResults
   Members card). Applied via the variant class so other line-tables
   (products, payments) keep their plain look. */
.line-table--members .line-row:nth-of-type(odd),
.line-table--sr-members .line-row:nth-of-type(odd) {
    background: var(--panel-2);
}
.line-table--members .line-row:hover,
.line-table--sr-members .line-row:hover {
    background: color-mix(in oklab, var(--primary) 6%, var(--panel));
}
.line-row__product { display: flex; flex-direction: column; gap: 2px; }
.line-row__name { font-weight: 600; }
.line-row__sub { font-size: 12px; }

.line-row__member { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.line-row__member-name { font-weight: 500; }
/* Member name on an order line links to that member's page. Underline only
   on hover so the grid stays quiet at rest. A "no member" modifier row
   renders the disabled LinkButton as a plain span -- no pointer, no colour
   shift -- so it still reads as ordinary text. */
a.line-row__member-link { color: inherit; text-decoration: none; }
a.line-row__member-link:hover { color: var(--c-primary); text-decoration: underline; }
span.line-row__member-link { color: inherit; cursor: default; }
.line-row__icons { display: flex; gap: 2px; }
/* Member name + age share one line: the name is the link, the age is not.
   .line-row__member is a flex COLUMN, so this wrapper is the single child
   that keeps them on one line -- without it the age drops to its own row. */
.line-row__member-line { display: inline; }
.line-row__member-age  { margin-left: 4px; }

/* Season-age marker: the age shown beside a member is TODAY's, but a pass is
   judged as of the season's CalcBDate. The "+" sits inside the parentheses --
   "(55+)" -- so it reads as part of the age it qualifies, and it uses the
   same hover popup as the circled (i) on this grid rather than a plain
   browser tooltip. No underline: an earlier dotted border-bottom stretched
   the full cell width, because the marker was then a flex-column child. */
sup.season-age {
    color: var(--c-primary);
    font-weight: 700;
    cursor: help;
    /* .line-info carries margin-left:6px for the circled (i), which sits
       apart from the text it annotates. This one sits INSIDE the age
       parentheses -- "(55+)" -- so the gap has to come back off or it
       renders as "(55 +)" and the sign reads as a separate token. */
    margin-left: 0;
    /* .line-info sets inline-flex + baseline for the (i) glyph, which would
       drop the "+" out of superscript position. Put it back. */
    display: inline;
    vertical-align: super;
    font-size: 0.75em;
}
sup.season-age:hover, sup.season-age:focus { color: var(--c-accent); }
sup.season-age:focus { outline: 2px solid var(--c-focus, #4a86ff); outline-offset: 1px; border-radius: 3px; }

/* Single-sentence popup body (data-info-note), as opposed to label/value rows. */
.line-info-popup__note { color: var(--c-text); line-height: 1.4; }

.line-row__price { text-align: right; font-variant-numeric: tabular-nums; font-weight: 500; }
/* Credit/negative amounts stay red regardless of the active theme. */
.line-row__price.is-credit { color: #c8102e; }
[data-theme="dark"] .line-row__price.is-credit { color: #ff6b80; }
/* The other half of the pair, stated rather than inherited: a figure that is
   NOT a credit reads as ordinary body text -- black in light, light in dark.
   Only useful where both cases appear in one column and the reader is meant
   to tell them apart by colour alone. */
.line-row__price.is-positive { color: var(--c-text); }
.num { text-align: right; }

.line-row--total {
    background: var(--c-bg-soft);
    color: var(--c-text-muted);
    font-size: 13px;
}
.line-row--strong { color: var(--c-text); font-weight: 600; }
.line-row--empty { color: var(--c-text-muted); font-style: italic; padding: 14px 16px; }

.line-row--clickable {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}
.line-row--clickable:hover { background: var(--c-bg-hover); text-decoration: none; }
.line-row--clickable.is-active { background: var(--c-bg-alert); }
/* Member-search rows the age gate has ruled out: rendered as a span
   (LinkButton disabled), dimmed, and decorated with a not-allowed cursor
   so the operator sees they exist but cannot pick them. Tooltip carries
   the reason (e.g. "Must be at least 75 as of 2026-12-31."). */
.line-row.is-ineligible {
    opacity: 0.45;
    cursor: not-allowed;
    text-decoration: none;
    color: inherit;
}
.line-row.is-ineligible:hover { background: transparent; }
.line-row.is-ineligible .line-row__hint { font-style: italic; }
.line-row__hint { color: var(--c-text-muted); font-size: 12px; text-align: right; }
.line-row__products { color: var(--c-text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mono { font-variant-numeric: tabular-nums; font-family: ui-monospace, SFMono-Regular, "Menlo", Consolas, monospace; }

/* Variant column layouts */
.line-table--members .line-table__head,
.line-table--members .line-row {
    grid-template-columns: 36px 90px 1.2fr 1.2fr 50px 110px 60px 70px;
}
.line-table--orders .line-table__head,
.line-table--orders .line-row {
    grid-template-columns: 110px 70px 110px 90px 1fr;
}

/* ---------- Search form ---------- */
.panel__body { padding: 12px 16px; display: flex; flex-direction: column; gap: 10px; }
.panel__hint { color: var(--c-text-muted); font-size: 12px; }
.panel__title-em { color: var(--c-primary); margin-left: 4px; }

.filter-radios { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; }
.filter-radios label { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }
.filter-radios input[type="radio"] { accent-color: var(--c-primary); }

.search-row { display: flex; gap: 8px; align-items: center; }
.search-input {
    flex: 1 1 auto;
    height: 36px;
    padding: 0 12px;
    border: 1px solid var(--c-border);
    border-radius: 8px;
    background: var(--c-input-bg-focus);
    color: var(--c-text);
    font: inherit;
}
.search-input:focus {
    outline: none;
    border-color: var(--c-accent);
    box-shadow: 0 0 0 5px color-mix(in srgb, var(--c-accent) 32%, transparent);
}

/* ---------- Inline icon links ---------- */
.iconlink {
    display: inline-flex; align-items: center; justify-content: center;
    width: 26px; height: 26px;
    border-radius: 6px;
    color: var(--c-text-muted);
}
.iconlink:hover { background: var(--c-bg-hover); color: var(--c-text); text-decoration: none; }
.iconlink .icon { width: 16px; height: 16px; }
.iconlink--alert { color: var(--c-primary); }
.iconlink--alert:hover { color: var(--c-primary-ink); background: var(--c-bg-alert); }
/* An action icon on a line whose season has ENDED. Rendered as a span, not an
   anchor, so it is already unclickable and out of the tab order -- this only
   makes it LOOK settled rather than broken: dimmed, no hover response, and a
   default cursor. The row's state is still worth reading, which is why the
   icon stays on the page at all instead of disappearing. */
.iconlink--inert { opacity: .45; cursor: default; }
.iconlink--inert:hover { background: none; color: inherit; }

/* ---------- Bottom action bar ---------- */
.action-bar {
    display: flex; flex-wrap: wrap; gap: 8px;
    padding: 12px;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    box-shadow: var(--c-shadow);
}
.action-bar__btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 12px;
    border-radius: 8px;
    color: var(--c-text);
    background: var(--c-bg-soft);
    border: 1px solid var(--c-border);
    font-size: 13px;
    text-decoration: none;
}
.action-bar__btn:hover { background: var(--c-bg-hover); text-decoration: none; }
.action-bar__btn--alert { color: var(--c-primary); border-color: #f3c4cb; background: var(--c-bg-alert); }
.action-bar__btn--alert:hover { background: var(--c-bg-alert-strong); }

/* ---------- Extra icons ---------- */
.icon-id        { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'><rect x='3' y='5' width='18' height='14' rx='2'/><circle cx='9' cy='12' r='2.5'/><line x1='14' y1='10' x2='19' y2='10'/><line x1='14' y1='14' x2='19' y2='14'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'><rect x='3' y='5' width='18' height='14' rx='2'/><circle cx='9' cy='12' r='2.5'/><line x1='14' y1='10' x2='19' y2='10'/><line x1='14' y1='14' x2='19' y2='14'/></svg>"); }
.icon-mail      { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'><rect x='3' y='5' width='18' height='14' rx='2'/><path d='M3 7l9 6 9-6'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'><rect x='3' y='5' width='18' height='14' rx='2'/><path d='M3 7l9 6 9-6'/></svg>"); }
.icon-megaphone { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'><path d='M3 11v2l11 5V6L3 11z'/><path d='M14 8a4 4 0 0 1 0 8'/><path d='M7 13v5l3 1v-5'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'><path d='M3 11v2l11 5V6L3 11z'/><path d='M14 8a4 4 0 0 1 0 8'/><path d='M7 13v5l3 1v-5'/></svg>"); }
.icon-person, .icon-user {  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'><circle cx='12' cy='8' r='4'/><path d='M4 21c0-4 4-7 8-7s8 3 8 7'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'><circle cx='12' cy='8' r='4'/><path d='M4 21c0-4 4-7 8-7s8 3 8 7'/></svg>"); }
.icon-doc       { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'><path d='M6 3h9l4 4v14H6z'/><path d='M14 3v5h5'/><path d='M9 13l2 2 4-4'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'><path d='M6 3h9l4 4v14H6z'/><path d='M14 3v5h5'/><path d='M9 13l2 2 4-4'/></svg>"); }
.icon-voucher   { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'><rect x='3' y='6' width='18' height='12' rx='2'/><path d='M3 9l9 5 9-5'/><path d='M16 14l4 4'/><path d='M20 14h-4'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'><rect x='3' y='6' width='18' height='12' rx='2'/><path d='M3 9l9 5 9-5'/><path d='M16 14l4 4'/><path d='M20 14h-4'/></svg>"); }
.icon-flame     { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'><path d='M12 3c1 4 5 5 5 10a5 5 0 0 1-10 0c0-2 1-3 2-4-1-2 1-4 3-6z'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'><path d='M12 3c1 4 5 5 5 10a5 5 0 0 1-10 0c0-2 1-3 2-4-1-2 1-4 3-6z'/></svg>"); }
.icon-camera    { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'><path d='M3 8a2 2 0 0 1 2-2h2l1.5-2h7L19 6h0a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z'/><circle cx='12' cy='13' r='3.5'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'><path d='M3 8a2 2 0 0 1 2-2h2l1.5-2h7L19 6h0a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z'/><circle cx='12' cy='13' r='3.5'/></svg>"); }
.icon-upload    { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'><path d='M4 15v3a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-3'/><path d='M12 16V4'/><path d='M7 9l5-5 5 5'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'><path d='M4 15v3a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-3'/><path d='M12 16V4'/><path d='M7 9l5-5 5 5'/></svg>"); }
.icon-info      { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='9'/><line x1='12' y1='11' x2='12' y2='16'/><line x1='12' y1='8' x2='12.01' y2='8'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='9'/><line x1='12' y1='11' x2='12' y2='16'/><line x1='12' y1='8' x2='12.01' y2='8'/></svg>"); }
.icon-copy      { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'><rect x='9' y='9' width='11' height='11' rx='2'/><path d='M5 15V6a2 2 0 0 1 2-2h9'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'><rect x='9' y='9' width='11' height='11' rx='2'/><path d='M5 15V6a2 2 0 0 1 2-2h9'/></svg>"); }
.icon-check     { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><path d='M5 12l5 5 9-11'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><path d='M5 12l5 5 9-11'/></svg>"); }

/* ---------- Generic icons (CSS masks so we don't need an icon font) ---------- */
.icon {
    display: inline-block;
    width: 18px; height: 18px;
    background-color: currentColor;
    -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
    -webkit-mask-position: center; mask-position: center;
    -webkit-mask-size: contain; mask-size: contain;
    vertical-align: middle;
    flex: 0 0 18px;
}
.icon-home     { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M3 12l9-9 9 9'/><path d='M5 10v10h14V10'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M3 12l9-9 9 9'/><path d='M5 10v10h14V10'/></svg>"); }
.icon-plus     { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'><line x1='12' y1='5' x2='12' y2='19'/><line x1='5' y1='12' x2='19' y2='12'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'><line x1='12' y1='5' x2='12' y2='19'/><line x1='5' y1='12' x2='19' y2='12'/></svg>"); }
.icon-pause    { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'><rect x='6' y='5' width='4' height='14'/><rect x='14' y='5' width='4' height='14'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'><rect x='6' y='5' width='4' height='14'/><rect x='14' y='5' width='4' height='14'/></svg>"); }
.icon-globe    { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'><circle cx='12' cy='12' r='9'/><path d='M3 12h18M12 3a14 14 0 010 18M12 3a14 14 0 000 18'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'><circle cx='12' cy='12' r='9'/><path d='M3 12h18M12 3a14 14 0 010 18M12 3a14 14 0 000 18'/></svg>"); }
.icon-edit     { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M11 4H4v16h16v-7'/><path d='M18.5 2.5a2.121 2.121 0 1 1 3 3L12 15l-4 1 1-4 9.5-9.5z'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M11 4H4v16h16v-7'/><path d='M18.5 2.5a2.121 2.121 0 1 1 3 3L12 15l-4 1 1-4 9.5-9.5z'/></svg>"); }
.icon-print    { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'><path d='M6 9V3h12v6'/><rect x='4' y='9' width='16' height='8' rx='1'/><path d='M6 17v4h12v-4'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'><path d='M6 9V3h12v6'/><rect x='4' y='9' width='16' height='8' rx='1'/><path d='M6 17v4h12v-4'/></svg>"); }
.icon-move { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M12 3v18M3 12h18'/><path d='M9 6l3-3 3 3M9 18l3 3 3-3M6 9l-3 3 3 3M18 9l3 3-3 3'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M12 3v18M3 12h18'/><path d='M9 6l3-3 3 3M9 18l3 3 3-3M6 9l-3 3 3 3M18 9l3 3-3 3'/></svg>"); }
.icon-widen { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M3 12h18'/><path d='M7 8l-4 4 4 4M17 8l4 4-4 4'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M3 12h18'/><path d='M7 8l-4 4 4 4M17 8l4 4-4 4'/></svg>"); }
.icon-narrow { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M3 12h7M14 12h7'/><path d='M6 8l4 4-4 4M18 8l-4 4 4 4'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M3 12h7M14 12h7'/><path d='M6 8l4 4-4 4M18 8l-4 4 4 4'/></svg>"); }
.icon-people   { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'><circle cx='9' cy='8' r='3'/><circle cx='17' cy='10' r='2.5'/><path d='M3 20c0-3 3-5 6-5s6 2 6 5'/><path d='M14 20c0-2 2-4 5-4'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'><circle cx='9' cy='8' r='3'/><circle cx='17' cy='10' r='2.5'/><path d='M3 20c0-3 3-5 6-5s6 2 6 5'/><path d='M14 20c0-2 2-4 5-4'/></svg>"); }
.icon-card     { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'><rect x='3' y='6' width='18' height='12' rx='2'/><line x1='3' y1='10' x2='21' y2='10'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'><rect x='3' y='6' width='18' height='12' rx='2'/><line x1='3' y1='10' x2='21' y2='10'/></svg>"); }
.icon-cash     { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'><rect x='2' y='6' width='20' height='12' rx='2'/><circle cx='12' cy='12' r='3'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'><rect x='2' y='6' width='20' height='12' rx='2'/><circle cx='12' cy='12' r='3'/></svg>"); }
.icon-lock     { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'><rect x='5' y='11' width='14' height='10' rx='2'/><path d='M8 11V8a4 4 0 0 1 8 0v3'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'><rect x='5' y='11' width='14' height='10' rx='2'/><path d='M8 11V8a4 4 0 0 1 8 0v3'/></svg>"); }
.icon-help     { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'><circle cx='12' cy='12' r='9'/><path d='M9.5 9a2.5 2.5 0 1 1 3.5 2.3c-.9.4-1.5 1-1.5 2.2'/><circle cx='12' cy='17' r='.6' fill='black'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'><circle cx='12' cy='12' r='9'/><path d='M9.5 9a2.5 2.5 0 1 1 3.5 2.3c-.9.4-1.5 1-1.5 2.2'/><circle cx='12' cy='17' r='.6' fill='black'/></svg>"); }
.icon-info     { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'><circle cx='12' cy='12' r='9'/><line x1='12' y1='11' x2='12' y2='16'/><circle cx='12' cy='8' r='.8' fill='black' stroke='none'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'><circle cx='12' cy='12' r='9'/><line x1='12' y1='11' x2='12' y2='16'/><circle cx='12' cy='8' r='.8' fill='black' stroke='none'/></svg>"); }
.icon-warning  { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'><path d='M12 2.5c.7 0 1.3.37 1.66.97l9 15.5c.36.62.36 1.39 0 2-.36.62-1.02 1.03-1.73 1.03H3.07c-.71 0-1.37-.41-1.73-1.03-.36-.61-.36-1.38 0-2l9-15.5c.36-.6.96-.97 1.66-.97zm-1 6.5v6h2V9h-2zm0 8v2h2v-2h-2z'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'><path d='M12 2.5c.7 0 1.3.37 1.66.97l9 15.5c.36.62.36 1.39 0 2-.36.62-1.02 1.03-1.73 1.03H3.07c-.71 0-1.37-.41-1.73-1.03-.36-.61-.36-1.38 0-2l9-15.5c.36-.6.96-.97 1.66-.97zm-1 6.5v6h2V9h-2zm0 8v2h2v-2h-2z'/></svg>"); }
.icon-history  { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='9'/><path d='M12 7v5l3 2'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='9'/><path d='M12 7v5l3 2'/></svg>"); }
.icon-search   { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'><circle cx='11' cy='11' r='7'/><line x1='16.5' y1='16.5' x2='21' y2='21'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'><circle cx='11' cy='11' r='7'/><line x1='16.5' y1='16.5' x2='21' y2='21'/></svg>"); }
.icon-collapse { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M14 6l-6 6 6 6'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M14 6l-6 6 6 6'/></svg>"); width: 16px; height: 16px; }
.app-shell[data-sidebar-collapsed="true"] .icon-collapse { transform: rotate(180deg); }
.icon-chevron  { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>"); width: 14px; height: 14px; opacity: .6; }
.icon-hash     { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'><line x1='4' y1='9' x2='20' y2='9'/><line x1='4' y1='15' x2='20' y2='15'/><line x1='10' y1='3' x2='8' y2='21'/><line x1='16' y1='3' x2='14' y2='21'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'><line x1='4' y1='9' x2='20' y2='9'/><line x1='4' y1='15' x2='20' y2='15'/><line x1='10' y1='3' x2='8' y2='21'/><line x1='16' y1='3' x2='14' y2='21'/></svg>"); }
.icon-tag      { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M20.59 13.41l-7.18 7.18a2 2 0 0 1-2.83 0L2 12V2h10l8.59 8.59a2 2 0 0 1 0 2.82z'/><circle cx='7' cy='7' r='1.5' fill='black' stroke='none'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M20.59 13.41l-7.18 7.18a2 2 0 0 1-2.83 0L2 12V2h10l8.59 8.59a2 2 0 0 1 0 2.82z'/><circle cx='7' cy='7' r='1.5' fill='black' stroke='none'/></svg>"); }
.icon-calendar { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='5' width='18' height='16' rx='2'/><line x1='3' y1='10' x2='21' y2='10'/><line x1='8' y1='3' x2='8' y2='7'/><line x1='16' y1='3' x2='16' y2='7'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='5' width='18' height='16' rx='2'/><line x1='3' y1='10' x2='21' y2='10'/><line x1='8' y1='3' x2='8' y2='7'/><line x1='16' y1='3' x2='16' y2='7'/></svg>"); }

/* ---------- Hamburger + backdrop (mobile only) ---------- */
.top-bar__menu { display: none; flex: 0 0 auto; color: var(--c-text-muted); border: 1px solid transparent; }
.top-bar__menu:hover { color: var(--c-text); background: var(--c-bg-hover); }

.mobile-backdrop {
    position: fixed; inset: 0;
    background: var(--c-overlay);
    z-index: 25;
    opacity: 0;
    pointer-events: none;
    transition: opacity .15s ease;
}
.app-shell[data-mobile-menu="open"] .mobile-backdrop {
    opacity: 1;
    pointer-events: auto;
}

.icon-menu  { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'><line x1='4' y1='6' x2='20' y2='6'/><line x1='4' y1='12' x2='20' y2='12'/><line x1='4' y1='18' x2='20' y2='18'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'><line x1='4' y1='6' x2='20' y2='6'/><line x1='4' y1='12' x2='20' y2='12'/><line x1='4' y1='18' x2='20' y2='18'/></svg>"); }
.icon-close { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'><line x1='6' y1='6' x2='18' y2='18'/><line x1='6' y1='18' x2='18' y2='6'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'><line x1='6' y1='6' x2='18' y2='18'/><line x1='6' y1='18' x2='18' y2='6'/></svg>"); }

/* ---------- Responsive ---------- */

/* Tablet: force icon-only rail (existing behavior) */
@media (max-width: 899px) and (min-width: 720px) {
    /* Tablet width (iPad mini portrait, etc): no special sidebar rules
       beyond meta-chip. The desktop [data-sidebar-collapsed="true"]
       rules already cover the collapsed visuals; site.js defaults
       this width to collapsed on first load so the sidebar doesn't
       eat 30% of the viewport, and the toggle works either way. */
    .meta-chip { display: none; }
}

/* Phone: sidebar leaves the grid, becomes a fixed drawer */
@media (max-width: 719px) {
    .app-shell { grid-template-columns: 1fr; }

    .top-bar__menu { display: inline-flex; }
    .top-bar { padding: 0 10px; gap: 8px; }
    .top-bar__search { flex: 1 1 120px; }
    .top-bar__search input { padding-left: 32px; padding-right: 8px; }
    .meta-chip { display: none; }
    .user-chip__name { display: none; }
    .user-chip { padding: 4px 6px 4px 4px; }

    .side-nav {
        position: fixed; top: 0; left: 0; bottom: 0;
        width: var(--side-w);
        max-width: 86vw;
        z-index: 30;
        transform: translateX(-100%);
        transition: transform .2s ease;
        box-shadow: 4px 0 18px rgba(0,0,0,.25);
    }
    .app-shell[data-mobile-menu="open"] .side-nav {
        transform: translateX(0);
    }

    /* Always show full labels in the drawer (override desktop collapsed state) */
    .side-nav .nav-item__label,
    .side-nav .brand__name,
    .side-nav .nav-group__caret { display: inline; }
    .side-nav .nav-item--child { display: flex; }
    .side-nav .nav-item { justify-content: flex-start; padding: 0 12px; }

    .content { padding: 14px 14px; }
    .section-head { gap: 10px; }
    .section-head h1 { font-size: 16px; }

    /* Stack action bar tighter */
    .action-bar { padding: 8px; gap: 6px; }
    .action-bar__btn { padding: 8px 10px; font-size: 12px; }

    /* Member table: hide low-value columns to prevent overflow. With
       the leading pic-icon column the kept ones are (pic, ID, Last,
       First, Birth) -- Init/Age/details get display:none. */
    .line-table--members .line-table__head,
    .line-table--members .line-row {
        grid-template-columns: 36px 70px 1fr 1fr 90px;
    }
    .line-table--members .line-table__head > :nth-child(5),  /* Init */
    .line-table--members .line-row       > :nth-child(5),
    .line-table--members .line-table__head > :nth-child(7),  /* Age */
    .line-table--members .line-row       > :nth-child(7),
    .line-table--members .line-table__head > :nth-child(8),  /* details > */
    .line-table--members .line-row       > :nth-child(8) {
        display: none;
    }

    /* Order-history table: drop the products column on phones */
    .line-table--orders .line-table__head,
    .line-table--orders .line-row {
        grid-template-columns: 100px 60px 100px 1fr;
    }
    .line-table--orders .line-table__head > :nth-child(5),
    .line-table--orders .line-row       > :nth-child(5) {
        display: none;
    }

    /* Products table on OrderDetails: let the per-product icon row wrap */
    .line-row__icons { flex-wrap: wrap; }
}

/* Disable body scroll when drawer is open (mobile) */
@media (max-width: 719px) {
    body:has(.app-shell[data-mobile-menu="open"]) { overflow: hidden; }
}

/* ---------- Theme + Language toggles ---------- */
.theme-toggle { color: var(--c-text-muted); border: 1px solid transparent; }
.theme-toggle:hover { color: var(--c-text); background: var(--c-bg-hover); }
.theme-toggle__sun, .theme-toggle__moon { display: none; }
[data-theme="light"] .theme-toggle__moon { display: inline-block; }
[data-theme="dark"]  .theme-toggle__sun  { display: inline-block; }

.lang-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 36px; height: 32px; padding: 0 10px;
    border: 1px solid var(--c-border);
    border-radius: 999px;
    background: var(--c-surface);
    color: var(--c-text);
    font-size: 12px; font-weight: 600; letter-spacing: .4px;
    cursor: pointer;
    font: inherit;
    font-weight: 600;
    font-size: 12px;
}
.lang-toggle:hover { background: var(--c-bg-hover); border-color: var(--c-text-muted); }

.icon-sun  { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'><circle cx='12' cy='12' r='4'/><line x1='12' y1='3' x2='12' y2='6'/><line x1='12' y1='18' x2='12' y2='21'/><line x1='3' y1='12' x2='6' y2='12'/><line x1='18' y1='12' x2='21' y2='12'/><line x1='5.5' y1='5.5' x2='7.5' y2='7.5'/><line x1='16.5' y1='16.5' x2='18.5' y2='18.5'/><line x1='5.5' y1='18.5' x2='7.5' y2='16.5'/><line x1='16.5' y1='7.5' x2='18.5' y2='5.5'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'><circle cx='12' cy='12' r='4'/><line x1='12' y1='3' x2='12' y2='6'/><line x1='12' y1='18' x2='12' y2='21'/><line x1='3' y1='12' x2='6' y2='12'/><line x1='18' y1='12' x2='21' y2='12'/><line x1='5.5' y1='5.5' x2='7.5' y2='7.5'/><line x1='16.5' y1='16.5' x2='18.5' y2='18.5'/><line x1='5.5' y1='18.5' x2='7.5' y2='16.5'/><line x1='16.5' y1='7.5' x2='18.5' y2='5.5'/></svg>"); }
.icon-moon { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'><path d='M21 13a9 9 0 1 1-10-10 7 7 0 0 0 10 10z'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'><path d='M21 13a9 9 0 1 1-10-10 7 7 0 0 0 10 10z'/></svg>"); }
.icon-cog  { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='3'/><path d='M19.4 15a1.7 1.7 0 0 0 .3 1.8l.1.1a2 2 0 1 1-2.8 2.8l-.1-.1a1.7 1.7 0 0 0-1.8-.3 1.7 1.7 0 0 0-1 1.5V21a2 2 0 1 1-4 0v-.1a1.7 1.7 0 0 0-1-1.5 1.7 1.7 0 0 0-1.8.3l-.1.1a2 2 0 1 1-2.8-2.8l.1-.1a1.7 1.7 0 0 0 .3-1.8 1.7 1.7 0 0 0-1.5-1H3a2 2 0 1 1 0-4h.1a1.7 1.7 0 0 0 1.5-1 1.7 1.7 0 0 0-.3-1.8l-.1-.1a2 2 0 1 1 2.8-2.8l.1.1a1.7 1.7 0 0 0 1.8.3h.1a1.7 1.7 0 0 0 1-1.5V3a2 2 0 1 1 4 0v.1a1.7 1.7 0 0 0 1 1.5 1.7 1.7 0 0 0 1.8-.3l.1-.1a2 2 0 1 1 2.8 2.8l-.1.1a1.7 1.7 0 0 0-.3 1.8v.1a1.7 1.7 0 0 0 1.5 1H21a2 2 0 1 1 0 4h-.1a1.7 1.7 0 0 0-1.5 1z'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='3'/><path d='M19.4 15a1.7 1.7 0 0 0 .3 1.8l.1.1a2 2 0 1 1-2.8 2.8l-.1-.1a1.7 1.7 0 0 0-1.8-.3 1.7 1.7 0 0 0-1 1.5V21a2 2 0 1 1-4 0v-.1a1.7 1.7 0 0 0-1-1.5 1.7 1.7 0 0 0-1.8.3l-.1.1a2 2 0 1 1-2.8-2.8l.1-.1a1.7 1.7 0 0 0 .3-1.8 1.7 1.7 0 0 0-1.5-1H3a2 2 0 1 1 0-4h.1a1.7 1.7 0 0 0 1.5-1 1.7 1.7 0 0 0-.3-1.8l-.1-.1a2 2 0 1 1 2.8-2.8l.1.1a1.7 1.7 0 0 0 1.8.3h.1a1.7 1.7 0 0 0 1-1.5V3a2 2 0 1 1 4 0v.1a1.7 1.7 0 0 0 1 1.5 1.7 1.7 0 0 0 1.8-.3l.1-.1a2 2 0 1 1 2.8 2.8l-.1.1a1.7 1.7 0 0 0-.3 1.8v.1a1.7 1.7 0 0 0 1.5 1H21a2 2 0 1 1 0 4h-.1a1.7 1.7 0 0 0-1.5 1z'/></svg>"); }
/* Admin group. Deliberately NOT the cog: Setup owns that, and the two groups
   sat side by side in the sidebar wearing the same icon, which made the
   collapsed (icon-only) sidebar unreadable. A wrench reads as "maintenance
   tools" against the cog's "settings". */
.icon-tools { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z'/></svg>"); }

/* ---------- Dark-mode polish ---------- */
[data-theme="dark"] body { background: var(--c-bg); }
[data-theme="dark"] .top-bar__search input::placeholder { color: var(--c-text-muted); opacity: .8; }
[data-theme="dark"] .search-input::placeholder { color: var(--c-text-muted); opacity: .8; }
[data-theme="dark"] .top-bar { background: var(--c-surface); }
[data-theme="dark"] .foot-bar { background: var(--c-surface); }
[data-theme="dark"] .filter-radios input[type="radio"] { accent-color: var(--c-primary); }
[data-theme="dark"] .meta-chip { background: var(--c-surface-2); }
[data-theme="dark"] .iconlink--alert:hover { background: var(--c-bg-alert); }
[data-theme="dark"] .action-bar__btn--alert { border-color: rgba(226,51,81,.4); }
[data-theme="dark"] .nav-item--child.is-active { background: var(--c-side-active); }
[data-theme="dark"] .line-row--clickable.is-active { background: var(--c-bg-alert); }
[data-theme="dark"] .brand__badge { background: #f3f3f3; }

@media (max-width: 719px) {
    .lang-toggle { min-width: 32px; padding: 0 8px; height: 30px; font-size: 11px; }
}

/* ---------- Profile page ---------- */
.lead { color: var(--c-text-muted); margin: -4px 0 14px; max-width: 720px; }

.signed-in-as { color: var(--c-text-muted); font-size: 13px; }
.signed-in-as strong { color: var(--c-text); margin-left: 4px; }

.profile-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}
@media (min-width: 1100px) {
    .profile-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
    .profile-preview { position: sticky; top: 76px; }
}

.profile-form { display: flex; flex-direction: column; gap: 16px; }

.banner {
    padding: 10px 14px;
    border-radius: var(--radius);
    border: 1px solid var(--c-border);
    background: var(--c-bg-soft);
    color: var(--c-text);
    font-size: 13px;
    margin-bottom: 8px;
}
.banner--ok {
    background: rgba(11,110,79,.18);
    border-color: rgba(11,110,79,.50);
    color: #074d37;
}
[data-theme="dark"] .banner--ok { background: rgba(40,180,130,.15); color: #6ddca9; border-color: rgba(40,180,130,.3); }

.field { display: flex; flex-direction: column; gap: 6px; padding: 6px 0; }
.field + .field { border-top: 1px dashed var(--c-border); padding-top: 14px; }
.field > label { font-weight: 600; font-size: 13px; }
.field .hint { color: var(--c-text-muted); font-size: 12px; }
.hint--ok { color: var(--c-success-ink); font-size: 12px; margin-top: 6px; display: inline-block; }

.hint--warn { color: var(--danger); font-size: 12px; margin-top: 6px; display: inline-block; }

/* Native date inputs go :invalid on a range violation (min/max) or on a
   half-typed / oversized segment -- e.g. the six-digit year the browser's
   year field will happily accept. Worth flagging, because such a value
   serializes as "" and would otherwise look like an empty field. */
input[type="date"]:invalid { border-color: var(--danger); }

.color-row {
    display: inline-flex; align-items: center; gap: 10px;
}
.color-input {
    width: 56px; height: 36px;
    padding: 2px;
    border: 1px solid var(--c-border);
    border-radius: 8px;
    background: var(--c-surface);
    cursor: pointer;
}
.color-input::-webkit-color-swatch { border-radius: 6px; border: 0; }
.color-input::-moz-color-swatch    { border-radius: 6px; border: 0; }
.color-code {
    font-family: ui-monospace, SFMono-Regular, "Menlo", Consolas, monospace;
    font-size: 12px;
    color: var(--c-text-muted);
    background: var(--c-bg-soft);
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid var(--c-border);
}

.form-actions {
    display: flex; gap: 8px; flex-wrap: wrap;
    padding-top: 4px;
}
.form-actions--end { justify-content: flex-end; }

/* Link / Remove buttons sitting in the Status column of the web-members
   repeater on WebOrders step 2 -- both reuse btn btn--small. The Link
   button stands alone (no preceding text), Remove sits after
   "Linked to: 12345" so it needs an inline gap. */
.line-row__unlink-btn { margin-left: 8px; }

/* Hover-pic icon -- sits in a leading cell on the member-search row.
   The icon stays muted; on hover (when a pic exists) site.js drops a
   small popup with the member's most recent photo next to the row.
   `data-pic-id="0"` rows show a dimmed icon and no popup. */
.line-row__pic { display: flex; align-items: center; justify-content: center; }
.hover-pic { display: inline-flex; align-items: center; cursor: help; }
.hover-pic .icon { width: 18px; height: 18px; opacity: .55; transition: opacity .15s ease, color .15s ease; }
.hover-pic[data-pic-id="0"] { opacity: .35; cursor: default; }
.hover-pic[data-pic-id]:not([data-pic-id="0"]):hover .icon { opacity: 1; color: var(--c-accent); }
.hover-pic-popup {
    position: absolute;
    z-index: 200;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: 8px;
    padding: 4px;
    box-shadow: 0 6px 18px rgba(0,0,0,.18);
    pointer-events: none;
    display: none;
}
.hover-pic-popup.is-visible { display: block; }
.hover-pic-popup img {
    display: block;
    width: 180px;
    height: auto;
    border-radius: 4px;
    background: var(--c-bg-soft);
}

/* Per-line audit-detail hover marker beside each PROD/modifier in the
   OrderDetails products grid. Same absolute-positioned pop pattern as
   .hover-pic-popup, but the body is a label/value list built in JS
   from the trigger's data-info-* attributes. */
.line-info {
    display: inline-flex; align-items: center;
    margin-left: 6px;
    color: var(--c-text-muted);
    cursor: help;
    vertical-align: baseline;
    transition: color .15s ease, opacity .15s ease;
}
.line-info .icon { width: 14px; height: 14px; opacity: .65; }
/* A popup trigger wrapped around an existing icon LINK (the waiver icon on an
   order row). It is a positioning shell only: the row's own flex gap already
   spaces the icons and the .iconlink inside owns its own sizing, so the
   trigger must not add the standalone marker's margin or shrink the glyph.
   Declared AFTER .line-info .icon deliberately -- both selectors carry the
   same specificity, so source order is what decides. */
.line-info--icon { margin-left: 0; cursor: default; }
.line-info--icon .icon { width: 16px; height: 16px; opacity: 1; }
.line-info:hover .icon, .line-info:focus .icon { opacity: 1; color: var(--c-accent); }
.line-info:focus { outline: 2px solid var(--c-focus, #4a86ff); outline-offset: 1px; border-radius: 3px; }
.line-info-popup {
    position: absolute;
    z-index: 200;
    min-width: 220px; max-width: 320px;
    background: var(--c-surface);
    color: var(--c-text);
    border: 1px solid var(--c-border);
    border-radius: 8px;
    padding: 10px 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,.18);
    pointer-events: none;
    display: none;
    font-size: 12px;
    line-height: 1.45;
}
.line-info-popup.is-visible { display: block; }
.line-info-popup__row { display: flex; gap: 10px; align-items: baseline; }
.line-info-popup__row + .line-info-popup__row { margin-top: 4px; }
.line-info-popup__k { color: var(--c-text-muted); flex: 0 0 auto; min-width: 78px; }
.line-info-popup__v { color: var(--c-text); font-weight: 500; word-break: break-word; }

/* A value holding SEVERAL things -- a member's phone numbers, one per contact
   type. They stack rather than running together on one line: a row of numbers
   separated by semicolons is read as one long number at a glance, which is the
   opposite of useful on the field somebody is about to dial. site.js switches
   to this class only when the value actually carries more than one line, so a
   single value is still a plain inline string. */
.line-info-popup__v--stack { display: flex; flex-direction: column; gap: 2px; }

/* OrderDetails comments card -- chronological list of dbo.OrderComments
   rows + an inline add form at the bottom + a "jump to other cards" row.
   Page auto-scrolls here on load when at least one comment exists. */
#cardComments > .panel__body { padding: 16px; gap: 16px; }
.comments-list  { display: flex; flex-direction: column; gap: 10px; }
.comments-empty { color: var(--c-text-muted); font-style: italic; padding: 6px 0; }
.comment {
    background: var(--c-bg-soft, transparent);
    border: 1px solid var(--c-border);
    border-radius: 6px;
    padding: 8px 12px;
}
.comment__meta {
    display: flex; gap: 10px; align-items: baseline;
    margin-bottom: 4px;
    font-size: 12px;
}
.comment__author { font-weight: 600; color: var(--c-text); }
.comment__date   { color: var(--c-text-muted); }
.comment__body   { white-space: pre-wrap; word-break: break-word; }

.comment-form {
    border-top: 1px solid var(--c-border);
    padding-top: 12px;
    display: flex; flex-direction: column; gap: 6px;
}
.comment-form__label   { font-size: 12px; color: var(--c-text-muted); }
.comment-form__input   { min-height: 64px; resize: vertical; font-family: inherit; }
.comment-form__actions { display: flex; align-items: center; gap: 12px; }
.comment-form__error   { color: var(--c-primary, #c0392b); font-size: 12px; }

/* --- Client note (Edit Order) --------------------------------------
   The customer's own note from the web store checkout. Deliberately NOT
   styled like the staff .comment blocks below it: those are ours and
   there can be many, this is theirs and there is at most one, so it gets
   a panel of its own with a coloured left edge. Blue rather than yellow
   -- it is information the customer gave us, not a warning about the
   order, and the amber .alert--warn treatment is already spoken for by
   things that went wrong.

   The tint is a translucent wash of the same blue as the accent bar, so
   one declaration works on the light and dark panel grounds alike and no
   per-theme override is needed for the surface. */
.client-note {
    border-left: 4px solid #1d4ed8;
    background: rgba(37, 99, 235, 0.06);
}
[data-theme="dark"] .client-note {
    border-left-color: #6f9bff;
    background: rgba(111, 155, 255, 0.10);
}
/* pre-wrap, like .comment__body: 1,536 of the QC notes carry newlines the
   customer typed, and flattening them turns a list of names into a run-on
   sentence. break-word because an unspaced email address or URL is common
   in these and must not widen the card. */
.client-note__body {
    white-space: pre-wrap;
    word-break: break-word;
    font-size: 14px;
    line-height: 1.5;
}

/* Bottom-of-card "jump to other cards" row, mirroring the jump buttons
   beside the page title. Border-top echoes the .comment-form divider so
   the three sections (comments, add form, jumps) read as stacked groups. */
.card-jumps {
    display: flex; flex-wrap: wrap; gap: 8px;
    border-top: 1px solid var(--c-border);
    padding-top: 12px;
}

/* Count pill inside a jump button (e.g. the comments count beside the
   "Comments" header link with its down arrow). Uses --c-accent so it reads as a neutral
   counter rather than an alert. */
.jump-badge {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 18px; height: 18px;
    margin-left: 4px;
    padding: 0 5px;
    border-radius: 9px;
    background: var(--c-accent);
    color: #ffffff;
    font-size: 11px; font-weight: 700; line-height: 1;
}

/* Quick-search results page (Pages/SearchResults.aspx). Two cards
   side-by-side on desktop, stacked on mobile. Each card's table
   uses its own grid template to fit the columns it shows. */
/* STACKED, one card per row -- not a responsive multi-column grid.
   A numeric search can raise three cards at once (Orders, Web store, Members)
   and side-by-side squeezed each to ~380px, which is too narrow to read a name
   in: the very thing the cards were given names FOR. Vertical costs scrolling,
   which is cheap, instead of legibility, which is the point.

   Order is deliberate: Orders, then Web store orders, then Members -- most to
   least likely to be what somebody typing an order-shaped number meant. */
.sr-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
}
/* Pic, id, last, first, INITIAL, birth, age, last order, and the details (i)
   in the last cell -- the same shape as the Member Search grid, because the
   two list the same thing and an operator should not have to re-learn a row
   depending on which search they came from. */
.line-table--sr-members .line-table__head,
.line-table--sr-members .line-row {
    grid-template-columns: 36px 80px 1fr 1fr 50px 100px 50px 100px 40px;
}
/* In-place filter bar shown above the SR members grid when there are
   more than 10 rows. Three text inputs sized roughly to match the
   underlying Last / First / BirthDate columns + a "N / M" counter. */
.sr-filter-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 10px 0;
    /* Match the line-row's 16px horizontal padding so the first input
       and the right-side count don't sit flush against the card edge. */
    padding: 0 16px;
}
.sr-filter-row .text-input { padding: 6px 10px; font-size: 13px; }
.sr-filter-row .text-input[data-filter-col="last"]  { flex: 0 0 160px; }
.sr-filter-row .text-input[data-filter-col="first"] { flex: 0 0 160px; }
.sr-filter-row .text-input[data-filter-col="birth"] { flex: 0 0 100px; }
.sr-filter-row__count {
    margin-left: auto;
    font-size: 12px;
    color: var(--c-muted, #6a7280);
    white-space: nowrap;
    min-width: 4em;
    text-align: right;
}
.line-table--sr-orders .line-table__head,
.line-table--sr-orders .line-row {
    /* Name column added 2026-09-01 so an order can be recognised without
       opening it; SPLIT into last + first 2026-09-12 now the top-bar search is
       full width and there is room for both. */
    /* Money columns are FIXED and the names take everything left over. They
       hold "$1,234.56" at most, so letting them grow only steals width from
       the columns whose content actually varies. */
    /* Last name gets the larger share, and both are minmax(0, ...) rather than
       bare fr: a bare fr with nowrap content will not shrink below its longest
       word and pushes the money columns off the row instead. Surname is the
       column that must never truncate -- it carries the "+N" marker too -- so
       first name is the one that gives way first. */
    grid-template-columns: 110px minmax(0, 1.2fr) minmax(0, 1fr) 110px 130px 130px;
}

/* The "+N" marker for an order carrying more than one PERSON (it counted
   surnames until 2026-09-12). Superscript so it never widens the row, and muted
   so the NAME stays the thing you read. Last-name column only -- the first-name
   column carries no marker, so hovering it pops nothing. */
.sr-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sr-name__more {
    margin-left: 2px;
    font-size: 10px;
    font-weight: 600;
    color: var(--c-text-muted);
    cursor: help;
}
.line-table--sr-passes .line-table__head,
.line-table--sr-passes .line-row {
    grid-template-columns: 130px 1fr 1fr 60px;
}
.line-table--sr-media .line-table__head,
.line-table--sr-media .line-row {
    grid-template-columns: 130px 1fr 1fr 90px;
}

/* Pages/Orders/TakePayment.aspx -- two-column layout: grouped tile
   picker on the left, conditional entry card pinned to the right.
   `grid-template-columns: 1fr auto` lets the side card stay at its
   natural width when present (set by .tp-side max-width) and collapse
   to nothing when step 2 hasn't been revealed. On narrow viewports
   the side card stacks below. */
.tp-layout {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 16px;
    align-items: start;
}
.tp-layout > * { min-width: 0; }
.tp-side { width: 320px; max-width: 100%; }
@media (max-width: 900px) {
    .tp-layout { grid-template-columns: 1fr; }
    .tp-side { width: 100%; }
}
.tp-stack    { display: flex; flex-direction: column; gap: 16px; }
.tp-group    { display: flex; flex-direction: column; gap: 6px; }
.tp-group__name {
    margin: 0;
    font-size: 13px; font-weight: 600;
    color: var(--c-text);
    text-transform: uppercase; letter-spacing: .4px;
}
.tp-tile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 8px;
}
.tp-tile {
    display: flex; flex-direction: column; gap: 4px;
    padding: 12px 14px;
    border: 1px solid var(--c-border);
    border-radius: 6px;
    background: var(--c-surface);
    color: var(--c-text);
    text-decoration: none;
    transition: border-color .15s, background .15s;
}
.tp-tile:hover, .tp-tile:focus { border-color: var(--c-accent); background: var(--c-bg-hover); text-decoration: none; }
.tp-tile--selected { border-color: var(--c-accent); background: color-mix(in srgb, var(--c-accent) 8%, transparent); }
.tp-tile__name { font-weight: 600; }
.tp-tile__flags { display: flex; flex-wrap: wrap; gap: 4px; }
.tp-tile__flag {
    font-size: 10.5px; font-weight: 500;
    color: var(--c-text-muted);
    letter-spacing: .3px;
}
.tp-tile__flag--strong { color: var(--c-text); font-weight: 700; }
.tp-tile__flag--warn   { color: var(--c-primary); }

.tp-form { display: flex; flex-direction: column; gap: 12px; }
.tp-form__row    { display: flex; flex-direction: column; gap: 4px; }
.tp-form__label  { font-size: 12px; color: var(--c-text-muted); }
.tp-form__amount { font-variant-numeric: tabular-nums; font-size: 18px; font-weight: 600; }
/* "$" prefix sitting inside the amount input -- the wrapper holds the
   absolute-positioned glyph and the input gets extra left padding so
   the typed digits clear it. pointer-events:none keeps clicks falling
   through to focus the input. */
.tp-form__amount-wrap { position: relative; display: block; }
.tp-form__amount-prefix {
    position: absolute;
    left: 10px; top: 50%;
    transform: translateY(-50%);
    color: var(--c-text-muted);
    font-size: 18px; font-weight: 600;
    pointer-events: none;
    line-height: 1;
}
.tp-form__amount-wrap .tp-form__amount { padding-left: 22px; }

/* AddRefund: "% of remaining" helper row. Sits under the dollar input
   and lets the operator either type a percent (with Enter / Apply)
   or tap a chip (25/50/75/100). Computed amount is written back into
   tbAmount in the user's decimal format. */
.ar-pct {
    display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
}
.ar-pct__input  { width: 80px; }
.ar-pct__suffix { color: var(--c-text-muted); margin-right: 4px; }
.ar-pct__chips  { display: inline-flex; flex-wrap: wrap; gap: 4px; margin-left: 8px; }
.ar-pct__chip   { min-width: 50px; justify-content: center; }
.tp-form__actions { display: flex; gap: 12px; align-items: center; margin-top: 4px; flex-wrap: wrap; }

.section-head__balance {
    font-size: 12px;
    color: var(--c-text-muted);
    text-transform: uppercase;
    letter-spacing: .4px;
    align-self: center;
}

/* Pages/Cashout.aspx -- 3-column grouped summary (Type / Qty / Total). */
.line-table--co-summary .line-table__head,
.line-table--co-summary .line-row {
    grid-template-columns: 1fr 90px 140px;
    align-items: center;
}
/* "Today's Orders" grid -- OrderID button | products + members | balance.
   Products column overflows to ellipsis so the row stays single-line in
   normal cases; long stacks still wrap via white-space:normal. */
.line-table--co-orders .line-table__head,
.line-table--co-orders .line-row {
    grid-template-columns: 120px 1fr 130px;
    align-items: center;
}
.line-table--co-orders .line-row__products {
    color: var(--c-text);
    overflow-wrap: anywhere;
    white-space: normal;
}

/* Pages/Orders/SuspendedOrders.aspx -- single-line variant of the
   Today's Orders grid with Location wedged between Order and Products.
   Products column keeps the global .line-row__products ellipsis +
   white-space:nowrap so each row stays one line; the markup also sets
   title=... on that cell so the operator can hover to see the full
   stack when it truncates. */
.line-table--so-orders .line-table__head,
.line-table--so-orders .line-row {
    grid-template-columns: 120px 140px 1fr 130px;
    align-items: center;
}
@media (max-width: 719px) {
    .line-table--so-orders { overflow-x: auto; }
    .line-table--so-orders .line-table__head,
    .line-table--so-orders .line-row { min-width: 520px; }
}
/* Per-employee stack inside a section panel. One co-emp-block per
   employee with their TransType breakdown + subtotal, followed by a
   single section grand-total row pinned at the bottom. */
.co-emp-stack { display: flex; flex-direction: column; gap: 16px; }
.co-emp-block { display: flex; flex-direction: column; gap: 6px; }
.co-emp-block__name {
    margin: 0;
    font-size: 13px; font-weight: 600;
    color: var(--c-text);
    text-transform: uppercase; letter-spacing: .4px;
}
.co-grand-total {
    margin-top: 4px;
    border-top: 2px solid var(--c-border);
    padding-top: 8px;
}
/* Definition-list style for the open-cashout header (Opened / Opened by / Location). */
.co-meta { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.co-meta__row { display: grid; grid-template-columns: 130px 1fr; gap: 12px; }
.co-meta__row dt { color: var(--c-text-muted); font-size: 12px; text-transform: uppercase; letter-spacing: .4px; margin: 0; }
.co-meta__row dd { margin: 0; font-weight: 500; }

/* AddDiscount picker tables. Step 1 lists product slots; step 2 lists
   discounts. .line-row--ad--selected highlights the currently-picked
   product so the operator sees what they're applying the discount to. */
.line-table--ad-products .line-table__head,
.line-table--ad-products .line-row {
    grid-template-columns: 50px 1.5fr 2fr 110px 120px;
    align-items: center;
}
.line-table--ad-discounts .line-table__head,
.line-table--ad-discounts .line-row {
    grid-template-columns: 1.6fr 110px 90px 100px;
    align-items: center;
}
/* AddComp picker (step 2) -- a comp is always 100% so no value or
   multiply columns; just description + apply. */
.line-table--ac-comps .line-table__head,
.line-table--ac-comps .line-row {
    grid-template-columns: 1fr 110px;
    align-items: center;
}
.line-row--ad { padding: 8px 12px; }
.line-row--ad--selected {
    background: var(--c-bg-soft, color-mix(in srgb, var(--c-accent) 7%, transparent));
    border-left: 3px solid var(--c-accent);
    padding-left: 9px;
}
.line-row--ad--disabled { color: var(--c-text-muted); opacity: .75; }
.line-row--ad--disabled .aspNetDisabled { cursor: not-allowed; }
.line-row__members-stack { color: var(--c-text-muted); }
/* Stacked "was / now" price column for the AddDiscount step-1 grid:
   original PROD amount on top with a strikethrough, current remaining
   amount (after prior DISC rows) below in bold. Cells with no prior
   discounts render the single original amount unchanged. */
.line-row__price-old {
    display: block;
    text-decoration: line-through;
    color: var(--c-text-muted);
    font-weight: 400;
    font-size: 12px;
}
.line-row__price-now {
    display: block;
}
.line-row__badge {
    display: inline-block;
    margin-left: 6px;
    font-size: 11px; font-weight: 600;
    color: var(--c-text-muted);
    letter-spacing: .3px;
}
.line-row__badge--warn { color: var(--c-primary); }

/* Reason form -- revealed inside step 2 when the picked discount has
   NeedReason=1 (e.g. operator-override comps where the auditor needs
   the why). Stacks under the discount list so the operator sees
   their pick highlighted and the input together. */
.discount-reason {
    margin-top: 14px;
    padding: 12px 16px;
    border-top: 1px solid var(--c-border);
    display: flex; flex-direction: column; gap: 6px;
}
.discount-reason__label   { font-size: 12px; color: var(--c-text-muted); }
.discount-reason__input   { width: 100%; max-width: 520px; }
.discount-reason__actions { display: flex; align-items: center; gap: 12px; }
.discount-reason__error   { color: var(--c-primary); font-size: 12px; }
.discount-reason__override-note {
    margin: 0 0 4px;
    padding: 8px 10px;
    background: var(--c-bg-alert);
    border-left: 3px solid var(--c-primary);
    border-radius: 4px;
    font-size: 12px;
    color: var(--c-text);
}
@media (max-width: 719px) {
    .line-table--sr-members, .line-table--sr-orders,
    .line-table--sr-passes,  .line-table--sr-media { overflow-x: auto; }
    .line-table--sr-members .line-table__head, .line-table--sr-members .line-row { min-width: 700px; }
    .line-table--sr-orders  .line-table__head, .line-table--sr-orders  .line-row { min-width: 670px; }
    .line-table--sr-passes  .line-table__head, .line-table--sr-passes  .line-row,
    .line-table--sr-media   .line-table__head, .line-table--sr-media   .line-row { min-width: 380px; }
}

/* AddProduct picker tables + member-attach UI. Step 1 lists the
   catalog (one row per ProductID x PriceLevelID); step 2 shows the
   chosen-members chip strip + the inline lookup that drives it. */
.line-table--ap-products .line-table__head,
.line-table--ap-products .line-row {
    grid-template-columns: 1.8fr 1.4fr 1fr 1fr 110px 110px;
    align-items: center;
}
.line-row--ap          { padding: 8px 12px; }
.line-row--ap--selected {
    background: var(--c-bg-soft, color-mix(in srgb, var(--c-accent) 7%, transparent));
    border-left: 3px solid var(--c-accent);
    padding-left: 9px;
}
.line-row__sub { color: var(--c-text-muted); font-size: 11px; margin-left: 6px; }

.ap-filter-row {
    display: flex; flex-wrap: wrap; align-items: end; gap: 12px;
    margin: 10px 0 12px;
    padding: 0 16px;
}
.ap-filter-row__field { display: flex; flex-direction: column; gap: 4px; }
.ap-filter-row__label { font-size: 12px; color: var(--c-text-muted); }
.ap-filter-row .text-input { padding: 6px 10px; font-size: 13px; min-width: 180px; }
.ap-filter-row__count {
    margin-left: auto;
    font-size: 12px;
    color: var(--c-text-muted);
    min-width: 4em; text-align: right;
}

.ap-selected {
    display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
    padding: 8px 16px 12px;
    border-bottom: 1px solid var(--c-border);
}
.ap-selected__label { font-size: 12px; color: var(--c-text-muted); margin-right: 4px; }
.ap-selected__empty { font-size: 12px; color: var(--c-text-muted); font-style: italic; }
.ap-chip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 8px 4px 10px;
    background: color-mix(in srgb, var(--c-accent) 8%, transparent);
    border: 1px solid var(--c-border);
    border-radius: 999px;
    font-size: 13px;
}
.ap-chip__remove {
    color: var(--c-text-muted);
    text-decoration: none;
    font-size: 14px; line-height: 1;
    padding: 0 4px;
}
.ap-chip__remove:hover, .ap-chip__remove:focus { color: var(--c-primary); }

.ap-search {
    display: flex; flex-wrap: wrap; align-items: end; gap: 10px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--c-border);
}
.ap-search__field { display: flex; flex-direction: column; gap: 4px; }
.ap-search__label { font-size: 12px; color: var(--c-text-muted); }
.ap-search .text-input { padding: 6px 10px; font-size: 13px; min-width: 160px; }

.ap-confirm {
    display: flex; align-items: center; justify-content: flex-end; gap: 12px;
    padding: 12px 16px;
}
.ap-confirm__error { color: var(--c-primary); font-size: 12px; margin-right: auto; }

/* "New Member" chip on the AddProduct member lookup. Pushed to the far
   end of the search row so it reads as the fallback after the search,
   not as another search field. Locked until the operator has searched
   once, in which state it renders as a plain span (.user-chip--disabled)
   rather than a disabled control. */
.ap-search__new { margin-left: auto; }
.user-chip__avatar--new { background: #1f7a3a; color: #fff; }

/* MULTI-holder member picker: the members grid plus a leading checkbox
   column. Kept as its own variant rather than reusing
   .line-table--members, whose column template (and its phone-width
   override) has no slot for the box. */
.line-table--ap-members .line-table__head,
.line-table--ap-members .line-row {
    grid-template-columns: 34px 36px 90px 1.2fr 1.2fr 50px 110px 60px 70px;
}
.line-table--ap-members .line-row:nth-of-type(odd) { background: var(--panel-2); }
.line-table--ap-members .line-row:hover { background: color-mix(in oklab, var(--primary) 6%, var(--panel)); }

/* Each row is a <label> around its own checkbox, so the whole row is a
   hit target for the tick and nothing posts back until Add checked. */
.line-row--pick { cursor: pointer; }
.line-row--pick.is-ineligible { cursor: not-allowed; }
.line-row__check { display: flex; align-items: center; }
.ap-check { width: 16px; height: 16px; accent-color: var(--c-primary); cursor: pointer; }
.ap-check:disabled { cursor: not-allowed; }

.ap-picktools {
    display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
    padding: 10px 16px;
    border-bottom: 1px solid var(--c-border);
}
.ap-picktools__hint  { font-size: 12px; color: var(--c-text-muted); }
.ap-picktools__count { font-size: 12px; color: var(--c-text-muted); margin-left: auto; }

@media (max-width: 719px) {
    /* Same trim as the plain members grid: keep box, pic, ID, Last,
       First, Birth and drop Init / Age / hint so the row stops
       overflowing. */
    .line-table--ap-members .line-table__head,
    .line-table--ap-members .line-row {
        grid-template-columns: 30px 36px 70px 1fr 1fr 90px;
    }
    .line-table--ap-members .line-table__head > :nth-child(6),
    .line-table--ap-members .line-row       > :nth-child(6),
    .line-table--ap-members .line-table__head > :nth-child(8),
    .line-table--ap-members .line-row       > :nth-child(8),
    .line-table--ap-members .line-table__head > :nth-child(9),
    .line-table--ap-members .line-row       > :nth-child(9) {
        display: none;
    }
    .ap-search__new { margin-left: 0; }
}

/* Off-screen but text-readable. Used by content the layout doesn't
   need to show (e.g. the comma-separated emails on each pending web
   order) but the in-page filter still needs to query via textContent. */
.sr-only {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Inline error banner -- used by WebOrders step 3 to surface SQL errors
   from the commit proc without leaving the page. Light + dark variants
   tuned to the same red as .is-credit so the visual signal matches. */
.alert {
    margin: 12px 0 0;
    padding: 10px 14px;
    border-radius: 6px;
    border: 1px solid transparent;
    font-size: 13px;
    line-height: 1.4;
}
/* When an alert sits as a direct child of a .panel (no .panel__body
   wrapper around the content, as on SearchResults), indent it from
   the card edges so it visually aligns with the .line-row cells. */
.panel > .alert { margin-left: 16px; margin-right: 16px; }

.alert--error {
    background: #fdecee;
    color: #8a0a1d;
    border-color: #f3b3ba;
}
[data-theme="dark"] .alert--error {
    background: #3a181c;
    color: #ff6b80;
    border-color: #5a2228;
}
/* Inline warning banner -- used by SearchResults when the result cap
   (TOP 50) is hit so the operator knows to narrow their query. Deliberately
   loud: thick left bar, warning icon, larger bolder text. */
.alert--warn {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff1c2;
    color: #5a3700;
    border: 1px solid #e6b347;
    border-left-width: 6px;
    padding: 14px 18px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    box-shadow: 0 1px 3px rgba(120, 80, 0, .12);
}
.alert--warn::before {
    content: "";
    display: inline-block;
    width: 22px; height: 22px;
    flex: 0 0 22px;
    background-color: #b8730d;
    -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'><path d='M12 2.5c.7 0 1.3.37 1.66.97l9 15.5c.36.62.36 1.39 0 2-.36.62-1.02 1.03-1.73 1.03H3.07c-.71 0-1.37-.41-1.73-1.03-.36-.61-.36-1.38 0-2l9-15.5c.36-.6.96-.97 1.66-.97zm-1 6.5v6h2V9h-2zm0 8v2h2v-2h-2z'/></svg>");
    mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'><path d='M12 2.5c.7 0 1.3.37 1.66.97l9 15.5c.36.62.36 1.39 0 2-.36.62-1.02 1.03-1.73 1.03H3.07c-.71 0-1.37-.41-1.73-1.03-.36-.61-.36-1.38 0-2l9-15.5c.36-.6.96-.97 1.66-.97zm-1 6.5v6h2V9h-2zm0 8v2h2v-2h-2z'/></svg>");
    -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
    -webkit-mask-position: center; mask-position: center;
    -webkit-mask-size: contain; mask-size: contain;
}
[data-theme="dark"] .alert--warn {
    background: #3d2a08;
    color: #ffd870;
    border-color: #a17220;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .4);
}
[data-theme="dark"] .alert--warn::before {
    background-color: #f0bb55;
}
/* Success banner -- "the thing you just asked for happened". Quieter than
   --warn (no icon, normal weight): a confirmation should not compete with the
   record it is confirming. LockerAdmin, LockerView and AssignMedia all mark
   their status panel with this; it had no definition until 2026-08-27, so
   those banners were rendering as a plain bordered box. */
.alert--ok {
    background: var(--ok-soft);
    color: var(--ok-soft-ink);
    border-color: transparent;
    font-weight: 500;
}
/* Soft info/tip banner -- used by SearchResults to surface the
   search-syntax hint right above the grid when the result cap is
   hit, so the operator sees the formatting reminder inline. */
.alert--tip {
    background: #eaf3fc;
    color: #1f4870;
    border-color: #b8d3ee;
    font-weight: 500;
}
[data-theme="dark"] .alert--tip {
    background: #1a2a3d;
    color: #9ec0e6;
    border-color: #2f4a6b;
}
/* Neutral information (a hub's "you can see N of M" line, Woo Order Lookup).
   Used by the hub pages and Woo Order Lookup with no definition until
   2026-09-26, so it rendered as a bare box; theme tokens, so dark mode and
   user themes follow. */
.alert--info {
    background: var(--info-soft);
    color: var(--info-soft-ink);
    border-color: transparent;
}

/* Modal -- minimal overlay used by the WebOrders link confirmation prompt.
   Native <dialog> would be nicer but the panel needs to participate in
   the WebForms postback model, so we render it as a fixed overlay. */
.wo-modal { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; }
.wo-modal__backdrop { position: absolute; inset: 0; background: var(--c-overlay); }
.wo-modal__card {
    position: relative;
    background: var(--c-surface);
    color: var(--c-text);
    border: 1px solid var(--c-border);
    border-radius: 10px;
    box-shadow: 0 14px 40px rgba(0,0,0,.25);
    padding: 20px 22px;
    width: min(440px, calc(100vw - 32px));
}
.wo-modal__title { margin: 0 0 8px; font-size: 17px; }
.wo-modal__body  { margin: 0 0 16px; color: var(--c-text-muted); }

/* Preview card */
.preview-card .panel__body { padding: 16px; }
.preview-swatches { display: flex; gap: 8px; margin-bottom: 14px; }
.preview-swatch {
    flex: 1 1 0;
    height: 36px;
    border-radius: 8px;
    border: 1px solid var(--c-border);
}
.preview-lead { color: var(--c-text-muted); font-size: 13px; margin: 0 0 14px; }
.preview-actions { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.preview-link { font-size: 13px; }

/* Theme preset chips */
.preset-group { display: flex; gap: 8px; flex-wrap: wrap; }
.preset {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 14px;
    border: 1px solid var(--c-border);
    border-radius: 999px;
    background: var(--c-surface);
    color: var(--c-text);
    font: inherit; font-size: 13px;
    cursor: pointer;
}
.preset:hover { background: var(--c-bg-hover); border-color: var(--c-text-muted); }
.preset__chip {
    width: 14px; height: 14px;
    border-radius: 50%;
    border: 1px solid rgba(0,0,0,.12);
    flex: 0 0 14px;
}

/* ---------- Wizard step indicator ---------- */
.wizard-steps {
    display: flex; flex-wrap: wrap;
    list-style: none; margin: 0 0 14px; padding: 0;
    gap: 0;
}
.wizard-step {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 14px;
    border: 1px solid var(--c-border);
    border-right: 0;
    background: var(--c-surface);
    color: var(--c-text-muted);
    font-size: 13px;
}
.wizard-step:first-child { border-radius: 8px 0 0 8px; }
.wizard-step:last-child  { border-right: 1px solid var(--c-border); border-radius: 0 8px 8px 0; }
.wizard-step.is-active {
    background: var(--c-primary);
    border-color: var(--c-primary);
    color: #fff;
}
.wizard-step.is-active + .wizard-step { border-left-color: var(--c-primary); }
.wizard-step.is-done {
    background: var(--c-bg-soft);
    color: var(--c-text);
}
.wizard-step__num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 22px; height: 22px;
    border-radius: 50%;
    background: rgba(0,0,0,.10);
    color: inherit;
    font-size: 11px; font-weight: 600;
}
.wizard-step.is-active .wizard-step__num { background: rgba(255,255,255,.25); }
[data-theme="dark"] .wizard-step__num { background: rgba(255,255,255,.10); }

/* ---------- Generic key-value grid (used on Web Orders + future detail panels) ---------- */
.kv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px 28px;
}

/* ---------- Member edit form (Pages/Members/MemberEdit.aspx) ---------- */
.text-input {
    height: 34px;
    padding: 0 10px;
    border: 1px solid var(--c-border);
    background: var(--c-input-bg);
    color: var(--c-text);
    border-radius: 6px;
    font: inherit;
    width: 100%;
}
.text-input:focus {
    outline: none;
    border-color: var(--c-accent);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--c-accent) 28%, transparent);
}
textarea.text-input { height: auto; padding: 8px 10px; resize: vertical; line-height: 1.4; }
/* A day count is at most four characters wide; a full-width box invites
   somebody to type a sentence into it. Used by the Hold prompt on Order
   Details (Pages/Orders/OrderDetails.aspx). */
.text-input--narrow { width: 7ch; min-width: 7ch; }

/* Main info card layout: 12-col grid with the form spanning 8 cols on
   the left and the photo aside spanning 4 cols on the right (so the
   photo never exceeds 1/3 of the card width). Grid is more
   deterministic than flex inside .panel__body's existing column flex.
   On mobile (<=719px) photo stacks above the form. */
.panel__body .me-main-layout {
    display: grid;
    grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
    gap: 20px;
    align-items: start;
}
.panel__body .me-main-fields { min-width: 0; }
.panel__body .me-main-photo  {
    min-width: 0;
    max-width: 280px;
    justify-self: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}
@media (max-width: 719px) {
    .panel__body .me-main-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }
    .panel__body .me-main-photo { justify-self: center; }
}

/* Family contact buffer: the paste checklist that appears above the main
   card. It is a full panel rather than something inside the card because
   the card collapses, and a Paste click that produced nothing visible
   would be indistinguishable from a broken button. */
.me-paste { border-color: var(--c-accent); }
.me-paste__item {
    display: flex; align-items: baseline; gap: 10px;
    flex-wrap: wrap;
    padding: 6px 0;
    border-bottom: 1px solid var(--c-border);
}
.me-paste__item:last-of-type { border-bottom: 0; }
.me-paste__preview {
    font-size: 13px; line-height: 1.35;
    color: var(--c-text-muted);
}
.me-paste__note { font-size: 12px; color: var(--c-text-muted); }
.me-paste__actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
/* Featured image keeps its natural aspect ratio at the column width.
   Capped at 200px so it never dominates the card on a narrow column. */
.me-main-photo__featured {
    display: block;
    width: 100%;
    max-width: 250px;
    height: auto;
    border-radius: 8px;
    border: 1px solid var(--c-border);
    background: var(--c-bg-soft);
}
.me-main-photo__empty {
    width: 100%;
    max-width: 250px;
    aspect-ratio: 3 / 4;
    border-radius: 8px;
    border: 1px dashed var(--c-border);
    background: var(--c-bg-soft);
    color: var(--c-text-muted);
    font-size: 12px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 10px;
    text-align: center; padding: 16px;
}
/* Bump the head/shoulders glyph up from the default 18px icon size so
   it visually fills the placeholder instead of getting lost. */
.me-main-photo__empty-icon { width: 96px; height: 96px; opacity: .55; }

/* Hidden autofill honeypot. Edge / Chrome will fill the first input
   matching each autocomplete category they find on the page -- these
   off-screen decoys absorb that so the real member-edit fields stay
   empty. Must be in normal document flow (display:none gets skipped
   by some browsers), reachable to the autofill engine, but invisible
   and untabbable to the operator. */
.autofill-trap {
    position: absolute;
    left: -9999px;
    top: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}
.autofill-trap input { width: 1px; height: 1px; }
/* Scroller layout: prev arrow | scrollable strip | next arrow. Strip
   width is constrained by the column so only ~2-3 thumbs (60px each)
   fit at once -- the rest scroll into view via the arrow buttons or
   touch swipe. */
.me-main-photo__scroller-wrap {
    margin-top: 10px;
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) 24px;
    gap: 4px;
    align-items: center;
    max-width: 250px;
}
.me-main-photo__scroller {
    display: flex; gap: 6px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
    scroll-behavior: smooth;
}
.me-main-photo__scroller::-webkit-scrollbar { display: none; }
.me-main-photo__thumb {
    flex: 0 0 56px;
    width: 56px; height: 56px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid var(--c-border);
    background: var(--c-bg-soft);
    cursor: pointer;
    transition: border-color .12s ease, transform .12s ease;
}
.me-main-photo__thumb:hover { border-color: var(--c-accent); }
.me-main-photo__thumb.is-featured {
    border-color: var(--c-primary);
    border-width: 2px;
    transform: scale(1.04);
}
.me-main-photo__nav {
    width: 24px; height: 56px;
    display: flex; align-items: center; justify-content: center;
    background: transparent;
    border: 1px solid var(--c-border);
    border-radius: 4px;
    color: var(--c-text-muted);
    cursor: pointer;
    font: inherit; line-height: 1;
    padding: 0;
}
.me-main-photo__nav:hover { color: var(--c-text); border-color: var(--c-text-muted); background: var(--c-bg-soft); }
.me-main-photo__nav:disabled { opacity: .4; cursor: default; }
.me-main-photo__count {
    margin-top: 8px;
    color: var(--c-text-muted);
    font-size: 12px;
    text-align: center;
    max-width: 250px;
}
/* Take Photo / Upload Photo buttons under the carousel. Side by side,
   each taking half the photo column so they line up under the thumb
   strip. */
.me-main-photo__actions {
    margin-top: 12px;
    display: flex;
    gap: 8px;
    width: 100%;
    max-width: 250px;
}
.me-main-photo__actions .btn {
    flex: 1 1 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* ---------- Member photo capture / upload modal ---------- */
.mp-modal { position: fixed; inset: 0; z-index: 70; display: none; align-items: center; justify-content: center; }
.mp-modal.is-open { display: flex; }
.mp-modal__backdrop { position: absolute; inset: 0; background: var(--c-overlay); }
.mp-modal__card {
    position: relative;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: 12px;
    box-shadow: 0 18px 50px rgba(0,0,0,.35);
    width: min(560px, calc(100vw - 32px));
    max-height: calc(100vh - 32px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.mp-modal__head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid var(--c-border);
}
.mp-modal__title { margin: 0; font-size: 16px; }
.mp-modal__x {
    border: none; background: transparent; cursor: pointer;
    font-size: 24px; line-height: 1; color: var(--c-text-muted);
    width: 32px; height: 32px; border-radius: 6px;
}
.mp-modal__x:hover { background: var(--c-bg-soft); color: var(--c-text); }
.mp-modal__body { padding: 18px; overflow-y: auto; }
.mp-modal__foot {
    display: flex; justify-content: flex-end; gap: 10px;
    padding: 14px 18px;
    border-top: 1px solid var(--c-border);
}

/* Upload drop area */
.mp-drop {
    border: 2px dashed var(--c-border);
    border-radius: 10px;
    padding: 32px 20px;
    text-align: center;
    cursor: pointer;
    background: var(--c-bg-soft);
    transition: border-color .15s ease, background .15s ease;
}
.mp-drop:hover, .mp-drop.is-over { border-color: var(--c-primary); background: var(--c-bg-hover); }
.mp-drop__icon { width: 40px; height: 40px; margin: 0 auto 10px; background-color: var(--c-primary); }
.mp-drop__main { font-weight: 600; margin-bottom: 4px; }
.mp-drop__hint { font-size: 12px; color: var(--c-text-muted); }

/* Camera live preview */
.mp-cam {
    position: relative;
    width: 100%;
    /* Match the camera's native widescreen frame so the whole picture shows
       (no cropping) and the 4:3 guide can sit visibly inside it. */
    aspect-ratio: 16 / 9;
    background: #111;
    border-radius: 10px;
    overflow: hidden;
    display: flex; align-items: center; justify-content: center;
}
/* contain (not cover) so the full frame is always visible -- the operator
   sees exactly what the camera captures, with the 4:3 target inside it. */
.mp-cam__video { width: 100%; height: 100%; object-fit: contain; }
/* Live framing guide: a centred 4:3 target box (matching the saved crop)
   with a dimmed surround, shown over the running preview so the operator
   centres the subject before snapping. Pure CSS -- same ratio as the
   editor crop, so framing here == what gets stored. */
.mp-cam__overlay {
    position: absolute;
    top: 8%; bottom: 8%;
    left: 50%; transform: translateX(-50%);
    aspect-ratio: 4 / 3;
    border: 2px solid rgba(255,255,255,.92);
    border-radius: 6px;
    box-shadow: 0 0 0 9999px rgba(0,0,0,.45);
    pointer-events: none;
}
/* Corner ticks to make the target read as a framing reticle. */
.mp-cam__overlay::before, .mp-cam__overlay::after {
    content: ""; position: absolute; width: 18px; height: 18px;
    border: 3px solid rgba(255,255,255,.95);
}
.mp-cam__overlay::before { top: -2px; left: -2px; border-right: none; border-bottom: none; border-radius: 6px 0 0 0; }
.mp-cam__overlay::after  { bottom: -2px; right: -2px; border-left: none; border-top: none; border-radius: 0 0 6px 0; }
.mp-cam__error { margin: 12px 0 0; color: var(--c-primary); font-size: 13px; text-align: center; }
.mp-cam__controls { margin-top: 14px; display: flex; gap: 10px; justify-content: center; align-items: center; }
.mp-cam__controls .icon { width: 16px; height: 16px; }

/* Crop / zoom / rotate editor */
.mp-editor__hint { margin: 0 0 12px; font-size: 12px; color: var(--c-text-muted); }
.mp-canvas-wrap { display: flex; justify-content: center; }
.mp-canvas {
    position: relative;
    width: 470px; max-width: 100%;
    height: 360px;
    background: var(--c-bg-soft);
    border-radius: 10px;
    overflow: hidden;
    cursor: grab;
    user-select: none;
    touch-action: none;
}
.mp-canvas.is-dragging { cursor: grabbing; }
.mp-canvas__img { position: absolute; top: 0; left: 0; cursor: grab; user-select: none; }
.mp-crop {
    position: absolute;
    border: 2px solid var(--c-primary);
    box-shadow: 0 0 0 9999px rgba(0,0,0,.5);
    z-index: 10; pointer-events: none;
}
.mp-loading {
    display: none; position: absolute; inset: 0; z-index: 20;
    align-items: center; justify-content: center;
    background: rgba(0,0,0,.4);
}
.mp-loading.is-active { display: flex; }
/* Full-card busy overlay while the save POST runs the photo-suitability
   check (server rules + the 2-3s Claude call). */
.mp-busy {
    position: absolute; inset: 0; z-index: 40;
    display: flex; flex-direction: column; gap: 14px;
    align-items: center; justify-content: center;
    background: rgba(255,255,255,.84);
    border-radius: 12px;
    font-size: 14px; font-weight: 600; color: var(--c-text);
    text-align: center; padding: 16px;
}
[data-theme="dark"] .mp-busy { background: rgba(18,18,20,.84); }
.mp-busy[hidden] { display: none; }
.mp-busy .mp-spinner { width: 38px; height: 38px; border-top-color: var(--c-primary); border-color: rgba(0,0,0,.18); border-top-color: var(--c-primary); }
.mp-spinner {
    width: 34px; height: 34px; border-radius: 50%;
    border: 3px solid rgba(255,255,255,.35);
    border-top-color: #fff;
    animation: mp-spin .8s linear infinite;
}
@keyframes mp-spin { to { transform: rotate(360deg); } }

.mp-sliders { margin-top: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 520px) { .mp-sliders { grid-template-columns: 1fr; } .mp-canvas { height: 280px; } }
.mp-slider { display: flex; flex-direction: column; gap: 6px; font-size: 12px; }
.mp-slider__label { font-weight: 600; text-transform: uppercase; letter-spacing: .03em; color: var(--c-text-muted); }
.mp-slider input[type="range"] {
    width: 100%; height: 6px; border-radius: 3px; outline: none;
    -webkit-appearance: none; appearance: none;
    background: linear-gradient(to right, var(--c-primary) 0%, var(--c-primary) var(--val,50%), var(--c-border) var(--val,50%), var(--c-border) 100%);
}
.mp-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%;
    background: #fff; border: 2px solid var(--c-primary); cursor: pointer;
}
.mp-slider input[type="range"]::-moz-range-thumb {
    width: 18px; height: 18px; border-radius: 50%;
    background: #fff; border: 2px solid var(--c-primary); cursor: pointer;
}
.mp-editor__tools { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.mp-save-error { margin: 14px 0 0; color: var(--c-primary); font-size: 13px; }

/* Form grid -- 12-track grid, default field spans 6 (half), with
   field--narrow (3 of 12) and field--span (12) modifiers for shorter
   inputs and full-width address rows. Collapses to single-column at
   mobile width. */
.form-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 12px 16px;
}
.form-grid > .field { grid-column: span 6; }
.form-grid > .field--narrow { grid-column: span 3; }
.form-grid > .field--span   { grid-column: span 12; }
/* The base .field + .field rule adds a top border / extra top padding
   to every field after the first as a stacked-form separator. Inside a
   grid the gap handles separation already and that adjacent-sibling
   rule (which is HTML-order, not grid-order) misaligns inputs that
   share a row. Reset both. */
.form-grid > .field + .field { border-top: none; padding-top: 6px; }
@media (max-width: 719px) {
    .form-grid > .field,
    .form-grid > .field--narrow,
    .form-grid > .field--span { grid-column: span 12; }
}

/* Add-row: inline inputs + Add button under each line-table for
   appending new contact / note rows without leaving the page. */
.add-row {
    display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
    padding-top: 12px;
    margin-top: 8px;
    border-top: 1px dashed var(--c-border);
}
.add-row .text-input { flex: 1 1 140px; }
.add-row .add-row__prefix { flex: 0 0 80px; }
.add-row .add-row__phone  { flex: 1 1 160px; }
.add-row .add-row__ext    { flex: 0 0 80px; }
.add-row--block { flex-direction: column; align-items: stretch; }
.add-row--block .btn { align-self: flex-end; }

/* Contacts table: 4 data columns + a small action cell. */
.line-table--contacts .line-table__head,
.line-table--contacts .line-row {
    grid-template-columns: 90px 80px 1fr 90px 100px;
}
/* Notes table: date / employee / free-form text. */
.line-table--notes .line-table__head,
.line-table--notes .line-row {
    grid-template-columns: 110px 140px 1fr;
}
.line-row__note { white-space: pre-wrap; }
/* MemberEdit summary cards: Passes / Orders / Media / Waivers. Read-only line
   tables that sit below the editable cards. */
.line-table--me-passes .line-table__head,
.line-table--me-passes .line-row {
    grid-template-columns: 130px 70px 110px 70px 1fr 100px;
}
/* Last two columns are wider than the first three flags: their headers carry
   a word AND an icon ("Pass" + printer, "Media" + card), not a bare word. */
.line-table--me-orders .line-table__head,
.line-table--me-orders .line-row {
    grid-template-columns: 100px 120px 1fr 52px 52px 66px 66px;
}
.line-table--me-media .line-table__head,
.line-table--me-media .line-row {
    grid-template-columns: 150px 130px 175px 1fr 100px 120px;
}
/* Cards on file. The masked number is fixed-width (it is always the same
   shape) and so is the MM/YY, so both are pinned; the name on the card is
   the only free-length value and takes the 1fr. Status is wide enough for
   two pills side by side -- a card can be Active AND Shared at once. */
.line-table--me-vault .line-table__head,
.line-table--me-vault .line-row {
    grid-template-columns: 140px 90px 1fr 100px 140px 190px;
}
/* Edit Order carries no "added by" column: on an installment order the
   card was almost always taken by the web store rather than by a person, so
   the name is usually blank and the space is better spent on the status. */
.line-table--od-vault .line-table__head,
.line-table--od-vault .line-row {
    grid-template-columns: 140px 90px 1fr 100px 190px;
}
/* Refused payments. The reason is the only free-length value and takes the
   1fr; the amount is right-aligned by .line-row__price like every other money
   column on this page. */
.line-table--od-declined .line-table__head,
.line-table--od-declined .line-row {
    grid-template-columns: 160px 190px 1fr 140px 110px;
}
/* Manage Cards: the same card row as the two status cards, with the two
   control columns in front. They lead rather than trail because the operator
   came here to tick something, and a control at the far right of a row that
   scrolls sideways on a till screen is a control nobody finds. */
.line-table--cv-manage .line-table__head,
.line-table--cv-manage .line-row {
    grid-template-columns: 60px 70px 140px 90px 1fr 100px 190px;
}
/* A checkbox inherits a 13px font from the row and renders tiny on a touch
   screen; these are the two most consequential clicks on the page. */
.line-table--cv-manage .cm-check {
    width: 18px;
    height: 18px;
    cursor: pointer;
}
.line-table--cv-manage .cm-check:disabled {
    cursor: not-allowed;
    opacity: .45;
}
.cm-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 14px;
}
.cm-actions__hint {
    font-size: 13px;
    color: var(--text-2);
}
/* Waivers group BY SEASON: one row per season, the types inside it as
   circles. Only three columns because the middle one absorbs however
   many waivers a season carries. */
.line-table--me-waivers .line-table__head,
.line-table--me-waivers .line-row {
    grid-template-columns: 150px 1fr 110px;
}
/* Pass invites sent: date and time, Bulk / Single pill (+ campaign), who
   sent it as a pill, the address, the order. */
.line-table--me-invites .line-table__head,
.line-table--me-invites .line-row {
    grid-template-columns: 150px minmax(150px, 1fr) minmax(140px, 1fr) minmax(160px, 1fr) 80px;
}
.me-invite__detail {
    color: var(--c-text-muted);
    font-size: 12px;
}
@media (max-width: 719px) {
    .line-table--contacts,
    .line-table--notes,
    .line-table--me-passes,
    .line-table--me-orders,
    .line-table--me-media,
    .line-table--me-vault,
    .line-table--me-waivers,
    .line-table--me-invites { overflow-x: auto; }
    .line-table--contacts .line-table__head,
    .line-table--contacts .line-row { min-width: 540px; }
    .line-table--notes .line-table__head,
    .line-table--notes .line-row { min-width: 480px; }
    .line-table--me-passes .line-table__head,
    .line-table--me-passes .line-row { min-width: 640px; }
    .line-table--me-orders .line-table__head,
    .line-table--me-orders .line-row { min-width: 700px; }
    .line-table--me-media .line-table__head,
    .line-table--me-media .line-row { min-width: 815px; }
    .line-table--me-vault .line-table__head,
    .line-table--me-vault .line-row { min-width: 760px; }
    .line-table--me-waivers .line-table__head,
    .line-table--me-waivers .line-row { min-width: 480px; }
    .line-table--me-invites .line-table__head,
    .line-table--me-invites .line-row { min-width: 780px; }
}
/* Manage Cards scrolls sideways on a phone like the other wide grids. The
   min-width is DERIVED, not chosen: 650px of fixed columns plus room for the
   name, because a 1fr in a grid narrower than its fixed columns collapses to
   nothing and the name cell becomes an 8px sliver. */
@media (max-width: 719px) {
    .line-table--cv-manage { overflow-x: auto; }
    .line-table--cv-manage .line-table__head,
    .line-table--cv-manage .line-row { min-width: 780px; }
}

/* Member Edit waivers card: one row per season, one circle per waiver
   -------------------------------------------------------------------
   Four states on a single 30px circle, so a whole season's waiver
   picture fits on one line:
       (no class)   open   -- a record exists with no signature behind it
       .is-online   fill   -- an online submission
       .is-manual   stroke -- taken at the counter
       both         fill + stroke

   The stroke is a box-shadow, not a fatter border: it sits OUTSIDE the
   circle, so the two states compose without the letters shifting by a
   pixel between them, and "manual" reads as a ring around the fill
   rather than as a different-sized dot. Green comes from the shared
   --ok-soft / --ok-soft-ink pills tokens so light and dark are already
   handled -- in dark mode the "ink" is a bright green, which is the
   correct reading of "the strong one" against a dark ground. */
.waiver-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    flex: 0 0 auto;
    border-radius: 999px;
    border: 1.5px solid var(--c-border);
    background: transparent;
    color: var(--c-text-muted);
    font-size: 11px;
    font-weight: 700;
    /* Badges run one to THREE characters (E, WP, VIP), so no tracking --
       three bold chars at 11px just clear the 27px inner width. */
    letter-spacing: 0;
    line-height: 1;
    cursor: help;
    user-select: none;
}
.waiver-dot:focus-visible { outline: 2px solid var(--c-primary); outline-offset: 3px; }
.waiver-dot.is-online {
    background: var(--ok-soft);
    border-color: transparent;
    color: var(--ok-soft-ink);
}
.waiver-dot.is-manual {
    border-color: transparent;
    box-shadow: 0 0 0 2px var(--ok-soft-ink);
    color: var(--ok-soft-ink);
}
/* gap has to clear the 2px outer stroke on both neighbours. */
.wv-dots {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 3px 0;
}
.wv-season { display: flex; align-items: baseline; gap: 8px; }
/* The season cell is a link to that season's Waivers page. Quiet at rest and
   underlined on hover, the same grammar as the member name on an order line,
   so the grid does not turn into a wall of blue. The anchor carries the row's
   own flex layout because the code + type spans are its children. */
a.wv-season__link { display: flex; align-items: baseline; gap: 8px; color: inherit; text-decoration: none; }
a.wv-season__link:hover { color: var(--c-primary); text-decoration: underline; }
a.wv-season__link:focus-visible { outline: 2px solid var(--c-focus, #4a86ff); outline-offset: 2px; border-radius: 3px; }
.wv-season__code { font-weight: 600; }
.wv-season__type { color: var(--c-text-muted); font-size: 12px; }
.wv-tally { color: var(--c-text-muted); font-size: 12px; white-space: nowrap; }
.wv-legend {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 20px;
    margin: 0 0 14px;
    color: var(--c-text-muted);
    font-size: 12px;
}
.wv-legend__item { display: inline-flex; align-items: center; gap: 8px; }


/* Member Edit orders card: per-line pass-readiness flags (print window /
   waiver on file / card printed). The row is the grid container and the
   LinkButton covering the first three cells is display:contents, so those
   cells remain grid items while the whole info area stays one click target
   -- an <a> cannot be nested inside another <a>, and the print flag has to
   be its own control. Hover therefore has to be driven from the row. */
.line-row__span { display: contents; color: inherit; text-decoration: none; }
.line-table--me-orders .line-row:has(.line-row__span:hover) { background: var(--c-bg-hover); }
.line-table--me-orders .line-row:has(.line-row__span:hover) span { cursor: pointer; }

/* Secondary half of a two-fact cell -- the card's age group after its resort
   ("Fernie &middot; Adult"). Both are the card's identity, but the resort is
   what the operator scans for, so the age is muted and stays on the same line
   rather than taking a column header of its own. */
.cell-sub { color: var(--c-text-muted); font-size: 12px; white-space: nowrap; }
/* The same muted fact on a line of its own under the cell's value -- what
   prints on a pass, under the name staff know the product by. */
.cell-sub--below { display: block; white-space: normal; margin-top: 2px; }

.me-flag { display: flex; align-items: center; justify-content: center; }
.line-table__head .me-flag { justify-content: center; cursor: help; }

.me-flag__i {
    display: inline-flex; align-items: center; justify-content: center;
    width: 22px; height: 22px; border-radius: 50%;
    font-size: 13px; line-height: 1;
}
/* Green / red carry the whole meaning here, so each state also differs in
   GLYPH (check / cross / dash / card) -- colour alone would be invisible to
   a red-green colourblind operator. */
.me-flag__i--ok   { color: var(--c-success-ink); background: var(--c-success-bg); }
.me-flag__i--bad  { color: var(--danger);        background: var(--c-bg-alert); }
.me-flag__i--na   { color: var(--c-text-muted);  background: transparent; }
.me-flag__i--todo { color: var(--c-text-muted);  background: var(--c-bg-hover); }
/* SOLID green, not the soft green --ok uses. The printed check and the media
   card sit in adjacent columns; same glyph weight in the same soft green would
   make two different facts look like one. Filled = "a card is on this pass". */
.me-flag__i--solid { color: var(--c-surface); background: var(--c-success-ink); }
.me-flag__i .icon { width: 15px; height: 15px; }

/* Headers that name a thing and show its icon ("Pass" + printer). Two lines
   would double the header height for every card on the page, so they stay on
   one line and the column is sized for it instead. */
.me-flag--wide { justify-content: center; }
.me-colhead {
    display: inline-flex; align-items: center; gap: 4px;
    white-space: nowrap; line-height: 1;
}
.me-colhead .icon { width: 14px; height: 14px; flex: 0 0 14px; opacity: .75; }

.me-flag__link { display: inline-flex; text-decoration: none; border-radius: 50%; }
.me-flag__link:hover { text-decoration: none; }
.me-flag__link:hover .me-flag__i--todo { color: var(--c-primary); }
/* The clickable ring is keyed on the ANCHOR, not on a list of state
   modifiers. Listing them (--ok, --todo) meant every new state had to be
   remembered here, and --solid was not -- an attached media circle was the one
   clickable icon on the row with no hover affordance. A disabled LinkButton
   renders as a <span>, so scoping to `a` also keeps the ring off the
   non-clickable dash without naming --na either.
   Keyboard gets the same ring: it is the only thing marking these as
   controls. */
a.me-flag__link:hover .me-flag__i,
a.me-flag__link:focus-visible .me-flag__i {
    outline: 2px solid var(--c-primary);
    outline-offset: 1px;
}
a.me-flag__link:focus-visible { outline: none; }
/* Disabled LinkButton renders as a <span>: no pointer, no hover affordance. */
.me-flag span.me-flag__link { cursor: default; }
/* ---------- Web Orders specifics ---------- */
/* Seven tracks, not six: the Lock column was added 2026-09 and sits LAST
   among the leading (row-spanning) cells, immediately before the products
   column. Derived width, not 1fr -- a pill column left to share free space
   collapses to a few pixels beside a 1fr products column and the pill
   wraps. */
.line-table--web-orders .line-table__head,
.line-table--web-orders .line-row {
    grid-template-columns: 110px 70px 110px 90px 90px 44px 1fr;
}
/* Multi-row order: each PROD line takes its own grid row; the five
   leading cells use inline `grid-row: span N` to span them. Align the
   leading cells to the top so they sit at the start of the stack
   rather than centered across it. */
.line-table--web-orders .line-row--multi { align-items: start; }
.line-table--web-orders .line-row--multi .line-row__products + .line-row__products {
    border-top: 1px dashed var(--c-border);
    padding-top: 4px;
    margin-top: 4px;
}
.line-table--web-members .line-table__head,
.line-table--web-members .line-row {
    grid-template-columns: 110px 1fr 1fr 60px 110px 1.5fr;
}

/* ---------- Web order commit locks ---------- */
/* Who currently has an order open to commit it. The pill is a coordination
   signal, not a permission: anybody may still open a locked order and take
   it. Colour says which of the two cases this is, because "mine" and
   "somebody else's" call for opposite actions and an operator scanning the
   list should not have to read the name to tell them apart. */
/* Just the circle. Who holds the order is the whole question a column of
   orders is scanned for; when they took it is on hover, where it costs the
   products column nothing. */
.line-row__lock { display: flex; align-items: center; min-width: 0; }

/* The initials circle. Same idiom and same geometry family as the user chip
   top-right, so "who has this" reads the same way everywhere -- just smaller,
   because it sits inside a grid row rather than a toolbar. The full name is
   the title; 104px will not hold it and the circle is what the eye scans. */
.lock-who {
    width: 22px; height: 22px;
    flex: 0 0 22px;
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 10px; font-weight: 700; line-height: 1;
    letter-spacing: .3px;
    cursor: default;
}
/* Mine and somebody else's must differ at a glance: they call for opposite
   actions, and an operator scanning the column should not have to read the
   letters to tell them apart. */
.lock-who--mine  { background: var(--ok-soft); color: var(--ok-soft-ink); }
.lock-who--other { background: #e6b347; color: #3d2a08; }
[data-theme="dark"] .lock-who--other { background: #a17220; color: #1a1205; }

/* The refusal banner's content, as ONE flex child -- .alert--warn puts its
   icon and its content side by side, so loose siblings would end up in a
   row instead of stacked. */
.lock-notice { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.lock-notice__note { font-weight: 400; font-size: 13px; opacity: .85; }
.lock-notice__actions { margin-top: 2px; }

/* The countdown in the wizard header. Tabular figures so the digits do not
   jitter as the seconds tick -- a number that shifts sideways every second
   reads as broken. */
.lock-timer {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--c-bg-soft);
    border: 1px solid var(--c-border);
    color: var(--c-text-muted);
    font-size: 12px;
    font-weight: 600;
}
.lock-timer__clock {
    font-variant-numeric: tabular-nums;
    font-size: 14px;
    color: var(--c-text);
}
/* Amber from T minus 60. Deliberately louder than the resting state: five
   minutes is short, and somebody on the phone to a customer mid-commit has
   no other cue that the window is closing. */
.lock-timer.is-warning {
    background: #fff1c2;
    border-color: #e6b347;
    color: #5a3700;
}
.lock-timer.is-warning .lock-timer__clock { color: #8a5200; }
[data-theme="dark"] .lock-timer.is-warning {
    background: #3d2a08;
    border-color: #a17220;
    color: #ffd870;
}
[data-theme="dark"] .lock-timer.is-warning .lock-timer__clock { color: #ffd870; }

/* ---------- Employee Security (Setup) ---------- */
/* Roster grid: leading tick column, then the identifying columns. Rows stay
   ticked while the in-place filter narrows the list, so a picked row is
   tinted to stay findable after the filter changes. */
.line-table--emp-sec .line-table__head,
.line-table--emp-sec .line-row {
    grid-template-columns: 34px 88px 1.7fr 1fr 1.3fr 1.3fr 64px;
    padding: 7px 16px;
}
.line-table--emp-sec .line-row__pick { display: flex; align-items: center; }
.line-table--emp-sec .line-row.is-picked,
.line-table--emp-sec .line-row.is-picked:nth-of-type(even) {
    background: color-mix(in srgb, var(--c-accent) 16%, transparent);
}
/* Disabled staff are in the payload but hidden until asked for, so the
   toggle costs no round trip. */
.line-table--emp-sec .line-row[data-dis="1"] { display: none; }
.line-table--emp-sec.show-disabled .line-row[data-dis="1"] { display: grid; }
.line-table--emp-sec .line-row[data-dis="1"].is-filtered-out { display: none; }

/* A PICKED row is never hidden, by the filter or by the disabled rule. The
   selection decides whether the page is in single-employee or bulk mode, so a
   tick that cannot be seen changes what every control below means with nothing
   on screen to say so: filter to somebody else, tick them, and you are silently
   in a two-person bulk edit. Pinning the row keeps the filter honest about what
   is selected, and .is-picked already tints it so it does not read as a filter
   miss. Specificity beats the three display:none rules above without
   !important. */
.line-table--emp-sec .line-row.is-picked.is-filtered-out,
.line-table--emp-sec .line-row[data-dis="1"].is-picked,
.line-table--emp-sec .line-row[data-dis="1"].is-picked.is-filtered-out { display: grid; }

/* Function picker: groups collapse; a ticked function is the SUBJECT of the
   next Add/Remove, never a reflection of what anyone currently holds. */
.fn-group { border-top: 1px solid var(--c-border); }
.fn-group:first-child { border-top: 0; }
.fn-group__head {
    display: flex; align-items: center; gap: 8px; width: 100%;
    padding: 8px 16px; background: none; border: 0; cursor: pointer;
    font: inherit; font-weight: 600; color: inherit; text-align: left;
}
.fn-group__head:hover { background: var(--c-bg-hover); }
.fn-group__caret { transition: transform .15s; flex: 0 0 auto; }
.fn-group.is-open .fn-group__caret { transform: rotate(90deg); }
.fn-group__count { margin-left: auto; font-weight: 400; font-size: 12px; color: var(--c-text-muted); }
.fn-group__body { display: none; padding: 2px 0 8px; }
.fn-group.is-open .fn-group__body { display: block; }
/* Groups whose every function is filtered out drop away entirely, so the
   list only ever shows headers worth opening. */
.fn-group.is-empty { display: none; }
.fn-group__count--hit { color: var(--c-accent); font-weight: 600; }
.fn-group__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(23em, 1fr)); }

.fn-item { display: flex; align-items: center; gap: 8px; padding: 4px 16px 4px 34px; min-width: 0; }
.fn-item:hover { background: var(--c-bg-hover); }
.fn-item.is-picked { background: color-mix(in srgb, var(--c-accent) 16%, transparent); }
.fn-item__name { flex: 1 1 auto; min-width: 0; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Read-only "how many of the ticked employees already hold this". */
.fn-held { flex: 0 0 auto; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 999px; }
.fn-held--all  { background: color-mix(in srgb, #0a7a0a 18%, transparent); color: #0a7a0a; }
.fn-held--some { background: color-mix(in srgb, #a06a00 20%, transparent); color: #a06a00; }
.fn-held--none { background: var(--panel-2); color: var(--c-text-muted); }

.es-actionbar {
    position: sticky; bottom: 0; z-index: 3;
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    margin-top: 16px; padding: 12px 14px;
    border: 1px solid var(--c-border); border-radius: 10px;
    background: var(--c-surface);
    box-shadow: 0 -2px 8px rgba(0,0,0,.06);
}
.es-actionbar__count { font-weight: 600; }
.es-badge {
    display: inline-block; font-size: 10px; font-weight: 700;
    padding: 1px 6px; border-radius: 999px; margin-left: 6px; vertical-align: middle;
}
.es-badge--disabled { background: color-mix(in srgb, var(--c-danger, #c0392b) 18%, transparent); color: var(--c-danger, #c0392b); }
.es-badge--locked   { background: color-mix(in srgb, #a06a00 20%, transparent); color: #a06a00; }
.line-table--web-search .line-table__head,
.line-table--web-search .line-row {
    grid-template-columns: 1fr 1fr 60px 110px 70px 60px 90px;
}
.line-row.is-linked   { background: rgba(11,110,79,.06); }
.line-row.is-unlinked { background: var(--c-bg-alert); }
[data-theme="dark"] .line-row.is-linked   { background: rgba(40,180,130,.10); }
[data-theme="dark"] .line-row.is-unlinked { background: rgba(226,51,81,.10); }

/* On narrow viewports the WebOrders tables can't shrink below the sum
   of their fixed-px columns (Order# / Date / amounts / etc), so let
   them scroll horizontally inside their panel rather than blowing
   out the whole page. min-width on each row keeps the grid layout
   from collapsing -- the table can never get narrower than its
   column-sum + a buffer for the flexible name/product cells. */
@media (max-width: 719px) {
    .line-table--web-orders,
    .line-table--web-members,
    .line-table--web-search {
        overflow-x: auto;
    }
    .line-table--web-orders .line-table__head,
    .line-table--web-orders .line-row {
        /* 540px + the 44px Lock track. Derived, not guessed: leave it at
           540 and the 1fr products column collapses to nothing. */
        min-width: 584px;
    }
    .line-table--web-members .line-table__head,
    .line-table--web-members .line-row {
        min-width: 620px;
    }
    .line-table--web-search .line-table__head,
    .line-table--web-search .line-row {
        min-width: 600px;
    }
}

/* ---------- Bold panel / table variant (scan-portal style) ----------
   Opt-in via `.panel--bold` + `.line-table--bold`. Used on the WebOrders
   pending-list step; not yet rolled out site-wide. Visual changes:
     * dark-primary header bar with white uppercase title + icon chip
     * filter bar inside the card, light-tinted strip with pill inputs
     * dark-primary table header bar
     * zebra-striped rows (every 2nd row tinted) */
.panel--bold {
    border: 0;
    box-shadow: 0 1px 3px rgba(0,0,0,.08);
}
.panel--bold > .panel__head {
    background: var(--c-primary);
    color: #fff;
    padding: 6px 14px;
    min-height: 40px;
    border: 0;
    gap: 10px;
    justify-content: flex-start;
}
.panel--bold > .panel__head .panel__title {
    color: #fff;
    font-size: 13px;
    letter-spacing: .6px;
    text-transform: uppercase;
    font-weight: 700;
}
/* Icon chip: a wrapper span gets the accent background; the masked
   .icon child inherits white from the chip's `color` so it appears as
   a white glyph on the accent square (instead of the bare mask
   showing through with no chip behind it). */
.panel--bold > .panel__head .panel__head-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 26px; height: 26px;
    background: var(--c-accent);
    border-radius: 5px;
    color: #fff;
    flex: 0 0 26px;
}
.panel--bold > .panel__head .panel__head-icon .icon {
    width: 16px; height: 16px;
    flex: 0 0 16px;
}

.list-filters--inside-bold {
    padding: 10px 12px;
    background: var(--c-bg-soft);
    border-bottom: 1px solid var(--c-border);
    align-items: center;
    gap: 10px;
}
.list-filters--inside-bold .list-filter { flex: 1 1 200px; min-width: 0; }
.list-filters--inside-bold .list-filter input {
    width: 100%;
    height: 36px;
    padding: 0 12px 0 36px;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: 8px;
    font-size: 13px;
    color: var(--c-text);
}
/* Date filter uses the native <input type="date"> picker -- the browser
   draws its own calendar icon on the right edge, so undo the left
   icon-prefix padding and let the native indicator have a bit of
   breathing room. */
.list-filters--inside-bold .list-filter--date input { padding: 0 8px 0 12px; }
.list-filters--inside-bold .list-filter--date input::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: .55;
}
.list-filters--inside-bold .list-filter--date input::-webkit-calendar-picker-indicator:hover { opacity: 1; }
.list-filters--inside-bold .list-filter input:focus {
    outline: none;
    border-color: var(--c-accent);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--c-accent) 28%, transparent);
}
.list-filter--icon .icon {
    position: absolute; left: 10px; top: 50%; transform: translateY(-50%);
    color: var(--c-text-muted);
    pointer-events: none;
}
.list-filters__clear {
    flex: 0 0 auto;
    width: 36px; height: 36px;
    border: 1px solid var(--c-border);
    background: var(--c-surface);
    border-radius: 8px;
    color: var(--c-text-muted);
    display: inline-flex; align-items: center; justify-content: center;
    cursor: pointer;
}
.list-filters__clear:hover { color: var(--c-text); background: var(--c-bg-hover); }

.line-table--bold .line-table__head {
    background: var(--c-primary);
    color: #fff;
    border-top: 0;
    text-transform: uppercase;
    letter-spacing: .8px;
    font-weight: 700;
    font-size: 12px;
}
.line-table--bold .line-table__head > * { color: #fff; }
.line-table--bold .line-row { border-top: 0; }
.line-table--bold .line-row:nth-of-type(even) { background: var(--c-bg-soft); }
.line-table--bold .line-row--clickable:hover { background: var(--c-bg-hover); }

/* Row-hover card for member-search grids -- shows the Members.* fields
   that don't fit in the row itself (id, email, address, company, opt-out
   flags). The .line-row gets position:relative so the absolutely
   positioned card pops just under the row without consuming a grid cell.
   The card is opted-into per-grid by including a child .hover-card-host
   in the ItemTemplate; rows without that child get no card. */
.line-row { position: relative; }
.hover-card-host {
    position: absolute;
    top: 100%;
    left: 20px;
    z-index: 100;
    display: none;
}
/* When JS detects the row is too close to the viewport bottom, it adds
   --above to flip the card up instead of down. Saves the card from
   getting clipped by the panel/viewport. */
.hover-card-host--above {
    top: auto;
    bottom: 100%;
}
/* Show the card only when the in-row info icon is hovered (not on
   every row hover) -- less noisy, deliberate reveal. Uses :has() so
   the trigger can sit anywhere inside the row (inside a cell, next to
   a button) and the hover-card-host still pops correctly. */
.line-row:has(.hover-trigger:hover) > .hover-card-host { display: block; }
.hover-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px; height: 18px;
    color: var(--c-text-muted);
    cursor: help;
    opacity: .55;
    transition: opacity 120ms ease, color 120ms ease;
    vertical-align: middle;
}
.hover-trigger:hover { opacity: 1; color: var(--c-accent); }
/* Set by the page when this member's address overlaps the order's
   billing address -- draws the operator's eye to likely matches even
   before they hover. */
.hover-trigger--match {
    background: var(--c-success-bg);
    color: var(--c-success-ink);
    border: 1px solid var(--c-success-bd);
    border-radius: 999px;
    opacity: 1;
}
.hover-trigger--match:hover { color: var(--c-success-ink); }

/* Subheading inside a panel body (e.g. "Order address" between two
   kv-grids in the WebOrders step 3 selected-member panel). */
.panel__subhead {
    margin: 16px 0 8px;
    color: var(--c-text-muted);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .6px;
    border-top: 1px dashed var(--c-border);
    padding-top: 10px;
}
.hover-card {
    background: var(--c-surface);
    color: var(--c-text);
    border: 1px solid var(--c-border);
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0,0,0,.18);
    padding: 12px 16px;
    min-width: 280px;
    max-width: 460px;
    font-size: 13px;
    line-height: 1.45;
}
.hover-card__kv .kv { display: flex; align-items: baseline; gap: 0; margin-bottom: 4px; }
.hover-card__kv .kv__v { font-weight: 500; }
.hover-card__addr {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed var(--c-border);
    color: var(--c-text);
}
/* Orders / pictures / last pass printed. Separated from the address above by
   the same dashed rule the address uses, because it answers a different
   question -- "is this a real customer" rather than "where do they live" -- and
   running the two together makes the card read as one undifferentiated list. */
.hover-card__activity {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed var(--c-border);
}
.hover-card__flags { margin-top: 8px; display: flex; gap: 6px; flex-wrap: wrap; }
.flag {
    display: inline-block;
    padding: 1px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .3px;
    text-transform: uppercase;
}
.flag--warn {
    background: var(--c-bg-alert);
    color: var(--c-primary);
    border: 1px solid color-mix(in srgb, var(--c-primary) 40%, transparent);
}

/* Per-cell highlight for exact-match cells in the WebOrders step 3
   search results -- last name / first name / birth date that match the
   selected web member exactly get a green pill so the operator can spot
   the right candidate at a glance. */
.line-row .is-match {
    background: var(--c-success-bg);
    color: var(--c-success-ink);
    border: 1px solid var(--c-success-bd);
    border-radius: 4px;
    padding: 1px 6px;
    font-weight: 600;
    display: inline-block;
}

.panel__lead { color: var(--c-text-muted); font-size: 13px; padding: 8px 16px 0; margin: 0; }

/* ---------- Auth pages (Login, Forgot, Reset, Magic) ---------- */
.auth-body { background: var(--c-bg); min-height: 100vh; }
.auth-shell {
    min-height: 100vh;
    display: grid;
    grid-template-rows: 1fr auto;
    align-items: center;
    justify-items: center;
    padding: 24px 16px;
    gap: 18px;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    padding: 28px;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    /* Sign-in and error screens have no sidebar, so the card's top edge is
       where the identity colour goes. Longhand after the shorthand above, and
       a border rather than an inset shadow because the dark-mode rule below
       replaces box-shadow outright. */
    border-top: 4px solid var(--brand-head);
    border-radius: 14px;
    box-shadow: 0 1px 3px rgba(0,0,0,.05), 0 16px 36px rgba(15,18,40,.08);
    display: flex; flex-direction: column; gap: 14px;
}
.auth-card__logo {
    display: block;
    align-self: center;
    width: 100px;
    height: auto;
    padding: 12px;
    margin: 0;
    object-fit: contain;
    box-sizing: content-box;
}
[data-theme="dark"] .auth-card__logo {
    background: #fff;
    border-radius: 10px;
}
[data-theme="dark"] .auth-card {
    box-shadow: 0 1px 3px rgba(0,0,0,.4), 0 16px 36px rgba(0,0,0,.5);
}
.auth-title { margin: 0; font-size: 22px; }
.auth-sub { margin: -4px 0 0; color: var(--c-text-muted); font-size: 14px; }

.auth-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }

.checkbox {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 13px; color: var(--c-text-muted);
    cursor: pointer;
}
.checkbox input[type="checkbox"] { accent-color: var(--c-primary); }

.btn--block { width: 100%; height: 40px; justify-content: center; font-size: 14px; }

/* Stacked full-width choices on an auth-card page (Error.aspx offers Back and
   sign-in-again). The trailing note is centred and muted so the two buttons
   stay the things you read. */
.auth-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.auth-actions .auth-sub { text-align: center; margin: 2px 0 0; font-size: 12.5px; }

.auth-links {
    text-align: center;
    font-size: 13px;
    color: var(--c-text-muted);
}
.auth-links__sep { opacity: .55; margin: 0 6px; }

.auth-foot {
    display: flex; gap: 8px;
    justify-content: center;
    align-items: center;
    color: var(--c-text-muted);
}

.banner--error {
    background: rgba(200,16,46,.10);
    border-color: rgba(200,16,46,.35);
    color: #8a0a1f;
}
[data-theme="dark"] .banner--error { background: rgba(226,51,81,.16); border-color: rgba(226,51,81,.35); color: #ff9eaf; }

/* ---------- User-chip dropdown menu ---------- */
.user-menu { position: relative; }

.user-menu .user-chip {
    border: 1px solid var(--c-border);
    background: var(--c-surface);
    color: var(--c-text);
    font: inherit;
    font-size: 13px;
    cursor: pointer;
}
.user-menu[data-open="true"] .user-chip { background: var(--c-bg-hover); }

.user-menu__pop {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 240px;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,.06), 0 16px 32px rgba(15,18,40,.12);
    padding: 6px;
    display: none;
    z-index: 40;
}
.user-menu[data-open="true"] .user-menu__pop { display: block; }

.user-menu__head {
    padding: 10px 10px 12px;
    border-bottom: 1px solid var(--c-border);
    margin-bottom: 4px;
}
.user-menu__head + .user-menu__head { margin-top: 0; }
.user-menu__section-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--c-text-muted);
    font-weight: 600;
    margin-bottom: 4px;
}
.user-menu__name { font-weight: 600; }
.user-menu__sub { color: var(--c-text-muted); font-size: 12px; word-break: break-all; }

.user-menu__item {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 10px;
    color: var(--c-text);
    border-radius: 6px;
    text-decoration: none;
    font-size: 13.5px;
}
.user-menu__item:hover { background: var(--c-bg-hover); text-decoration: none; }
.user-menu__item--danger { color: var(--c-primary); }
.user-menu__item--danger:hover { background: var(--c-bg-alert); }

.icon-signout { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M16 17l5-5-5-5'/><line x1='21' y1='12' x2='9' y2='12'/><path d='M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M16 17l5-5-5-5'/><line x1='21' y1='12' x2='9' y2='12'/><path d='M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4'/></svg>"); }

/* ---------- Receipt page (Pages/Orders/OrderReceipt.aspx) ----------
   On-screen the receipt sits inside an 8.5x11 "paper" container with a
   drop shadow so the operator can preview how it will print. The print
   stylesheet at the bottom hides the rest of the app shell + the
   toolbar so only the paper sheet goes to the printer. */
.receipt-toolbar {
    display: flex; gap: 8px; justify-content: flex-end;
    margin: 0 0 12px;
}
.receipt-paper {
    width: 8.5in;
    min-height: 11in;
    margin: 0 auto;
    padding: 0.6in 0.65in;
    background: #ffffff;
    color: #1f2230;
    border: 1px solid var(--c-border);
    box-shadow: 0 8px 24px rgba(0,0,0,.10);
    font-size: 11pt;
    line-height: 1.4;
}
.receipt-head {
    display: flex; align-items: center; gap: 18px;
    border-bottom: 2px solid #1f2233;
    padding-bottom: 10px;
    margin-bottom: 14px;
}
.receipt-head__logo {
    width: 72px; height: 72px;
    object-fit: contain;
    flex: 0 0 72px;
}
.receipt-head__title { flex: 1; min-width: 0; }
.receipt-head__title h1 {
    margin: 0 0 2px;
    font-size: 20pt; line-height: 1.1; letter-spacing: -0.5px;
}
.receipt-head__kicker {
    margin-top: 2px;
    text-transform: uppercase; letter-spacing: 2px;
    font-size: 10pt; font-weight: 600; color: #1f2233;
}
/* QR (order id) top-right of the receipt header. flex:1 on the title
   block pushes this to the right edge; pixelated keeps it crisp scaled. */
.receipt-head__qr {
    flex: 0 0 84px;
    width: 84px; height: 84px;
    align-self: flex-start;
    image-rendering: pixelated;
}

.receipt-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px 24px;
    margin-bottom: 18px;
    font-size: 10pt;
}
.receipt-meta > div { display: flex; gap: 8px; }
.receipt-meta__k { color: #555a6e; min-width: 100px; }
.receipt-meta__v { color: #1f2230; font-weight: 600; }

.receipt-section { margin-bottom: 16px; }
.receipt-section__title {
    margin: 0 0 6px;
    font-size: 10pt; text-transform: uppercase; letter-spacing: 1.5px;
    color: #555a6e; font-weight: 700;
    border-bottom: 1px solid #d8dae3;
    padding-bottom: 3px;
}
.receipt-empty { font-style: italic; color: #777b8c; margin: 4px 0 0; }

.receipt-table { width: 100%; border-collapse: collapse; font-size: 10pt; }
.receipt-table th, .receipt-table td {
    text-align: left; vertical-align: top;
    padding: 5px 8px;
    border-bottom: 1px solid #ececf0;
}
.receipt-table th {
    font-weight: 600; color: #555a6e;
    text-transform: uppercase; font-size: 8.5pt; letter-spacing: 0.8px;
    border-bottom: 1px solid #b8bbc7;
}
.receipt-table__date   { width: 1.3in; white-space: nowrap; }
.receipt-table__amt    { width: 1.0in; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.receipt-table__member { white-space: pre-line; color: #1f2230; }
.receipt-table__amt.is-credit { color: #c8102e; }
.receipt-row--modifier .receipt-table__desc { color: #555a6e; padding-left: 18px; font-style: italic; }
.receipt-row--modifier .receipt-table__date { color: #777b8c; }

.receipt-totals {
    margin-top: 18px; margin-left: auto;
    width: 3.4in;
    border-top: 2px solid #1f2233;
    padding-top: 8px;
    font-size: 10pt;
}
.receipt-totals__row {
    display: flex; justify-content: space-between;
    padding: 3px 0;
    font-variant-numeric: tabular-nums;
}
.receipt-totals__row--strong { border-top: 1px solid #d8dae3; padding-top: 5px; font-weight: 700; }
.receipt-totals__row--balance {
    border-top: 1px solid #1f2233;
    margin-top: 4px; padding-top: 6px;
    font-size: 12pt; font-weight: 700;
}
.receipt-totals__balance-owed     { color: #c8102e; }
.receipt-totals__balance-overpaid { color: #1a7c3a; }

.receipt-foot {
    margin-top: 28px;
    border-top: 1px dashed #c8c9d2;
    padding-top: 12px;
    text-align: center;
    font-size: 9pt;
    color: #555a6e;
}
.receipt-foot__thanks { font-size: 11pt; color: #1f2230; margin-bottom: 4px; }

/* "Thank you" line: centered on the page, sits under the Balance and
   above the footer's dashed line. */
.receipt-thanks {
    text-align: center;
    font-size: 11pt;
    color: #1f2230;
    margin: 16px 0 4px;
}

/* Two company blocks side by side in the footer: Company 1 left,
   Company 2 right. Left-aligned text overrides the centered footer. */
.receipt-foot__companies {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    text-align: left;
}
.receipt-foot__company {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 9pt;
    line-height: 1.4;
    color: #555a6e;
}
/* Company 2 hugs the right edge. */
.receipt-foot__companies .receipt-foot__company:last-child:not(:only-child) {
    text-align: right;
    flex-direction: row-reverse;
}
.receipt-foot__company-logo {
    width: 34px; height: auto; flex: 0 0 auto;
    margin-top: 1px;
}
.receipt-foot__company-name { font-weight: 700; color: #1f2230; }
.receipt-foot__company-tax { margin-top: 2px; }

/* Refund-policy fine print: sits at the very bottom of the footer, under a
   line, left-aligned (the numbered terms read better flush-left than the
   centered footer above it). */
.receipt-refund {
    margin-top: 16px;
    border-top: 1px solid #c8c9d2;
    padding-top: 10px;
    text-align: left;
    font-size: 8.5pt;
    line-height: 1.45;
    color: #555a6e;
}
.receipt-refund__title {
    margin: 0 0 6px;
    font-size: 9pt; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.8px;
    color: #555a6e;
}
.receipt-refund__terms { margin: 0 0 8px; padding-left: 1.5em; }
.receipt-refund__terms li { margin-bottom: 4px; }
.receipt-refund__full { margin: 0; }
.receipt-refund__full a { color: inherit; text-decoration: underline; }
/* Admin-authored refund HTML (Receipt Designer). Tame nested lists/paras
   to the same fine-print scale as the localized default above. */
.receipt-refund__body { margin: 0; }
.receipt-refund__body :first-child { margin-top: 0; }
.receipt-refund__body :last-child { margin-bottom: 0; }
/* Paragraphs get the same spacing as the lists beside them. Without this
   the site CSS reset leaves them at zero margin, so two <p> blocks run
   together and the tag the admin typed appears to have done nothing. */
.receipt-refund__body p { margin: 0 0 8px; }
.receipt-refund__body ol, .receipt-refund__body ul { margin: 0 0 8px; padding-left: 1.5em; }
.receipt-refund__body li { margin-bottom: 4px; }
.receipt-refund__body a { color: inherit; text-decoration: underline; }


/* --- Receipt: window-envelope (shipping) layout --------------------------

   Sheet coordinates, measured from the top-left corner of the PAPER.

   THERE IS NO NAMED @page HERE, ON PURPOSE. The app-wide
   `@page { size: letter portrait; margin: 0 }` in the print block below is
   exactly what this layout needs: a zero page margin makes one CSS inch
   equal one real inch from the physical paper corner. A named page would
   move that origin AND force a page break before whatever carries it, which
   is how the cashout reports once started on sheet 2. If anyone ever scopes
   that rule or gives the receipt a page name, this geometry breaks silently
   on paper and still looks right on screen.

   THE ABSOLUTE OFFSETS BELOW DO NOT SUBTRACT THE PAPER'S PADDING, AND THAT
   IS NOT AN OVERSIGHT. An absolutely positioned child is placed against its
   containing block's PADDING box, whose origin is the paper's own edge, so
   `top: 2.30in` already means 2.30in from the top of the sheet. The first
   cut of this rule subtracted the padding and put every offset 0.6in too
   high and 0.65in too far left: the address landed on top of the letterhead
   rule and the fold ticks fell off the side of the paper.

   The IN-FLOW pieces are the opposite case. A block in normal flow starts at
   the CONTENT box, so anything expressed as a distance from the sheet edge
   does subtract --rcpt-pady. That is why the letterhead cap below has a
   calc() and the address does not.

   Assumed stock: #10 envelope 9.5 x 4.125in, window 4.5 x 1.125in sitting
   1.125in from its left edge and 0.5in up from its bottom; Letter folded in
   three (3.667in panels) with the sheet's TOP third facing the window, right
   way up. Taking the packet's full slack inside the envelope at both
   extremes, the window can only ever fall within:
       2.27in .. 3.17in from the sheet top
       1.125in .. 4.625in from the sheet left
   The address block sits inside both bands with clearance on every side, and
   is centred in the vertical band so it grows symmetrically.

   The --ship-* properties are the tuning surface: print one, fold it, hold it
   up to a real envelope, and move these rather than the rules. Keep
   --ship-head-end above 2.27in and --ship-body-start below the first crease
   plus a little, or the layout starts fighting the window. */
.receipt-paper { --rcpt-padx: 0.65in; --rcpt-pady: 0.60in; }

.receipt-paper--ship {
    position: relative;
    --ship-left:       1.25in;   /* address block, from the sheet's left edge */
    --ship-top:        2.30in;   /* address block, from the sheet's top edge  */
    --ship-width:      3.25in;
    --ship-height:     0.84in;
    --ship-head-end:   1.70in;   /* letterhead stops here, clear of the window */
    --ship-body-start: 3.80in;   /* receipt body starts here, past the crease  */
    --ship-fold-1:     3.667in;
    --ship-fold-2:     7.333in;
}

.receipt-ship__addr {
    position: absolute;
    left:   var(--ship-left);
    top:    var(--ship-top);
    width:  var(--ship-width);
    height: var(--ship-height);
    display: flex; flex-direction: column; justify-content: center;
    margin: 0;
    font-size: 10pt;
    font-style: normal;
    line-height: 1.15;
    color: #1f2230;
    /* On screen the operator can see where it will land; on paper the
       outline goes (see the print block). */
    outline: 1px dashed var(--c-border);
    outline-offset: 4px;
}
.receipt-ship__addr--tight { font-size: 9pt; line-height: 1.12; }

/* Letterhead capped so a tall logo can never reach the window band, and so
   its bottom rule keeps clear air above the address. In flow, so this one
   DOES subtract the paper's top padding. */
.receipt-paper--ship .receipt-head {
    height: calc(var(--ship-head-end) - var(--rcpt-pady));
    overflow: hidden;
    margin-bottom: 0;
}
.receipt-paper--ship .receipt-head__logo,
.receipt-paper--ship .receipt-head__qr { max-height: 0.8in; }

/* Holds the receipt body off the address panel and off the first crease.
   Derived from the two ends so they can never drift apart. */
.receipt-ship__reserve { height: calc(var(--ship-body-start) - var(--ship-head-end)); }

/* Fold marks at the left edge, so the operator does not have to measure.
   They are also the tell that the print dialog scaled the sheet: a tick
   that is not 3.667in down means "Fit to printable area" is on and the
   address will miss the window. */
.receipt-ship__fold {
    position: absolute;
    left: 0;
    width: 0.22in;
    border-top: 0.5pt solid #9aa0ae;
}
.receipt-ship__fold--1 { top: var(--ship-fold-1); }
.receipt-ship__fold--2 { top: var(--ship-fold-2); }

.rcpt-ship-toggle { margin-right: 4px; }
.rcpt-ship-who { max-width: 220px; }

/* Print: hide the entire app shell except the receipt paper. The paper
   itself drops its shadow and border so it doesn't print as a framed box. */
@media print {
    /* `@page { margin: 0 }` is the trick that makes Chromium / Firefox
       suppress their default print header/footer band (URL, page #,
       date stamp). The user can still turn them back on from the
       browser's print dialog, but the default is off when the page
       declares zero page margins. The visible white margin is moved
       onto .receipt-paper below so the printed receipt still has the
       same breathing room around its edges. */
    @page { size: letter portrait; margin: 0; }
    html, body { background: #ffffff !important; }
    /* App chrome never prints, on ANY page. .release-banner is in this list
       rather than in the cashout-report rules because it is not a report
       concern: the "what's new" notice is chrome that happens to sit at the
       top of every page until it is dismissed, so it would otherwise print on
       a receipt, a report, or anything else somebody prints that week.

       On the cashout reports it did worse than take up room. .crq-output
       carries `page: cashoutReport`, and a change of NAMED PAGE forces a page
       break -- so the banner took sheet 1 to itself and every report started
       on sheet 2. Reported from QC on 2026-09-15 as "that banner shouldn't
       print as part of report printing, reports do start on page 2". Hiding
       it fixes both halves. */
    /* The shipping warnings are operator guidance, not part of the
       document that goes in the envelope. */
    .rcpt-ship-warn { display: none !important; }
    .receipt-ship__addr { outline: 0; }
    .side-nav, .top-bar, .foot-bar, .receipt-toolbar, .release-banner,
    .mobile-backdrop, .mobile-menu-toggle { display: none !important; }
    .app-shell {
        display: block !important;
        grid-template-columns: none !important;
        height: auto !important;
        overflow: visible !important;
    }
    .main-col, .content {
        display: block !important;
        overflow: visible !important;
        height: auto !important;
        padding: 0 !important;
        background: #ffffff !important;
    }
    .receipt-paper {
        width: 100%;
        min-height: 0;
        margin: 0;
        /* Carries the white margin the @page rule no longer provides. */
        /* Kept in step with the two --rcpt-pad* properties above: the
           window-envelope block is positioned against the PADDING box. */
        --rcpt-padx: 0.35in;
        --rcpt-pady: 0.35in;
        padding: 0.35in;
        border: 0;
        box-shadow: none;
        page-break-inside: auto;
    }
    .receipt-table { page-break-inside: auto; }
    .receipt-row   { page-break-inside: avoid; }
}

/* ===========================================================================
   Pages/Admin/PassDesigner.aspx -- CR80 pass-design editor.
   Phase 1 = read-only preview (background + element overlays at saved mm
   positions). Phase 2 will layer drag handles onto these same overlays.
   =========================================================================== */
.pd-picker {
    display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
}
/* The routine picker: an in-place filtered grid (site.js filter bar) in a
   box that scrolls on its own with the header pinned, so 140+ routines do
   not push the editor off the screen. A row is picked by clicking it. */
.pd-picker > .filter-fields,
.pd-routine-list { align-self: stretch; }
.pd-picker__count { font-size: 12.5px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.pd-routine-list {
    max-height: 360px; overflow: auto;
    border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.pd-routine-list .tbl { table-layout: fixed; }
.pd-routine-list .tbl thead th { position: sticky; top: 0; z-index: 1; }
/* "LEGACY ID" in the kit's letter-spaced caps is ~80px; the name column
   takes the rest (~340px of a 1280px screen's half-width card). */
.pd-routine-list .tbl th.pd-col-legacy { width: 8.5rem; }
.pd-pick-name { display: flex; align-items: center; gap: 6px; min-width: 0; white-space: nowrap; }
.pd-pick-name .id-chip { margin-right: 2px; flex: none; }
.pd-pick-name__text { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.pd-pick-name .pill { flex: none; }
.pd-routine-list .tbl tbody tr[data-routine-id] { cursor: pointer; }
.pd-routine-list .tbl tbody tr:focus-visible { outline: 2px solid var(--c-primary); outline-offset: -2px; }
.pd-routine-list .tbl tbody tr.is-selected td {
    background: color-mix(in srgb, var(--c-primary) 12%, var(--c-surface)); font-weight: 600;
}
.pd-routine-list .tbl tbody tr.is-selected { cursor: default; }
.pd-routine-list.is-busy { opacity: .6; pointer-events: none; }
/* Refresh + "Show archived" sit on a row beneath the routine list. */
.pd-picker__actions {
    display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
}
.pd-picker__check  { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
/* Import legacy routines: the picker's scrolling grid with a tick column.
   The name is the tick's <label>, so the whole name toggles it. */
.pd-import { display: flex; flex-direction: column; align-items: stretch; gap: 12px; }
.pd-import__intro { margin: 0; color: var(--text-2); font-size: 13px; max-width: 90ch; }
.pd-import__list .tbl th.pd-col-tick  { width: 2.4rem; }
.pd-import__list .tbl th.pd-col-used  { width: 7.5rem; }
.pd-import__list .tbl th.pd-col-edited { width: 8.5rem; }
.pd-import__list label.pd-pick-name { cursor: pointer; }

.pd-layout {
    display: grid;
    grid-template-columns: minmax(0, max-content) minmax(280px, 1fr);
    gap: 16px;
    align-items: start;
    margin-top: 16px;
}
@media (max-width: 900px) { .pd-layout { grid-template-columns: 1fr; } }

/* Two-row layout: row 1 = picker | details, row 2 = properties |
   image-preview canvas. Both rows are 50/50 so widths align column-
   to-column (picker == properties width; details == canvas width).
   The right column collapses gracefully -- when the user hasn't
   picked a routine yet, the right column is empty and the picker
   sits in the left half rather than stretching across. */
.pd-top-row,
.pd-edit-row {
    display: grid;
    grid-template-columns: minmax(0, 50%) minmax(0, 50%);
    gap: 16px;
    align-items: start;
    margin-top: 16px;
}
.pd-below {
    display: flex; flex-direction: column; gap: 16px;
    margin-top: 16px;
}
.pd-card { min-width: 0; }
@media (max-width: 900px) {
    .pd-top-row,
    .pd-edit-row { grid-template-columns: 1fr; }
}

/* Center the CR80 canvas horizontally in its card. .panel__body sets
   flex-direction:column by default, which makes justify-content:center
   center vertically instead -- so the row direction has to be
   re-asserted here. */
.pd-card--canvas .panel__body {
    padding: 12px;
    flex-direction: row;
    justify-content: center;
}
.pd-canvas-wrap {
    display: flex;
    flex-direction: row;
    justify-content: center;
    /* Positioning context for the background drop overlay below. The
       overlay covers the whole body rather than just the card, so a file
       dropped anywhere near the canvas lands -- aiming at a 270x428 box
       while holding a file is fiddlier than it sounds. */
    position: relative;
}

/* Background replacement -------------------------------------------------
   The file input is the real control; the toolbar button clicks it and the
   drop target feeds it. Hidden the accessible way (clipped, not
   display:none) so it keeps its place in the tab order and screen readers
   still announce it. */
.pd-bg-file {
    position: absolute;
    width: 1px; height: 1px;
    margin: -1px; padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* Inert until a drag is actually over the panel. pointer-events stays
   none even when visible: the overlay is feedback, and the drop is
   handled on the wrapper, so letting it swallow pointer events would
   only risk stealing a click from the canvas underneath. */
.pd-bg-drop {
    position: absolute;
    inset: 4px;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed var(--c-primary);
    border-radius: 8px;
    background: color-mix(in srgb, var(--c-primary) 12%, transparent);
    backdrop-filter: blur(1px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 120ms ease;
    pointer-events: none;
}
.pd-bg-drop.is-active {
    opacity: 1;
    visibility: visible;
}
.pd-bg-drop__label {
    padding: 8px 14px;
    border-radius: 6px;
    background: var(--c-surface);
    color: var(--c-text);
    font-weight: 600;
    font-size: 13px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

/* The CR80 canvas itself -- absolute-positioning context for every
   overlay. Sizes (270x428 portrait / 428x270 landscape at 5px/mm)
   are stamped in inline style from code-behind so the bg image and
   the overlays share the same pixel box. */
.pd-canvas {
    position: relative;
    border: 1px solid var(--c-border);
    border-radius: 6px;
    overflow: hidden;
    background: #2a2f44;        /* visible if the bg image fails to load */
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}
.pd-canvas__bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    user-select: none;
    pointer-events: none;
}

.pd-overlay {
    position: absolute;
    box-sizing: border-box;
    line-height: 1;
    white-space: nowrap;
    pointer-events: auto;
    cursor: default;        /* Phase 2 flips to "grab" */
}

/* Rect-y overlays: photo + barcode + IDRect get a translucent outline
   so they're easy to see against any background. Phase-2 drag handles
   will hang off these. */
.pd-overlay--photo,
.pd-overlay--barcode,
.pd-overlay--idrect {
    background: rgba(255, 255, 255, 0.10);
    border: 1px dashed rgba(255, 255, 255, 0.70);
    color: #ffffff;
    display: flex; align-items: center; justify-content: center;
    font-size: 10px; letter-spacing: .5px;
    text-shadow: 0 0 2px rgba(0, 0, 0, .8);
}
/* Photo element shows a stock headshot. Source is a server-rendered
   PNG (PassDesignerSamplePhoto.ashx) so it does not depend on any
   client-side SVG MIME quirks and always matches the silhouette drawn
   by the server-side print preview. Cookie-authenticated like the rest
   of /Pages -- only loads for signed-in operators (which is the only
   audience for this page anyway). */
.pd-overlay--photo {
    background-image: url("../../Pages/Admin/PassDesignerSamplePhoto.ashx");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.pd-overlay--photo .pd-overlay__tag { display: none; }
.pd-overlay__tag {
    text-transform: uppercase;
    font-weight: 600;
    opacity: .85;
}

/* Text overlays inherit color/font/size from inline style. The dashed
   outline + transparent bg keeps them visible while they're being
   designed against any backdrop. */
.pd-overlay:not(.pd-overlay--photo):not(.pd-overlay--barcode):not(.pd-overlay--idrect) {
    padding: 1px 2px;
    background: rgba(0, 0, 0, 0.15);
    border: 1px dashed rgba(255, 255, 255, 0.35);
    text-shadow: 0 0 2px rgba(0, 0, 0, .85);
}

/* Right-side panel: routine metadata + element list. */
.pd-side .panel__body { padding: 12px 16px; }

.pd-meta { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.pd-meta__row { display: grid; grid-template-columns: 130px 1fr; gap: 12px; }
.pd-meta__row dt {
    color: var(--c-text-muted); font-size: 12px;
    text-transform: uppercase; letter-spacing: .4px; margin: 0;
}
.pd-meta__row dd { margin: 0; font-weight: 500; }

.pd-elements {
    list-style: none; padding: 0; margin: 0;
    display: flex; flex-direction: column; gap: 2px;
}
.pd-elements__row {
    display: grid;
    grid-template-columns: 26px 110px 1fr 70px;
    align-items: center;
    gap: 6px;
    padding: 4px 6px;
    border-radius: 4px;
    font-size: 12px;
}
.pd-el__toggle {
    width: 22px; height: 22px;
    border: 1px solid var(--c-border);
    border-radius: 4px;
    background: var(--c-surface);
    color: var(--c-text-muted);
    cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0;
}
.pd-el__toggle:hover { background: var(--c-bg-hover); }
.pd-el__toggle[aria-pressed="true"] {
    border-color: var(--c-accent);
    color: var(--c-accent);
}
.pd-el__eye {
    display: inline-block; width: 14px; height: 14px;
    background-color: currentColor;
    -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M1 12s4-7 11-7 11 7 11 7-4 7-11 7-11-7-11-7z'/><circle cx='12' cy='12' r='3'/></svg>");
            mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M1 12s4-7 11-7 11 7 11 7-4 7-11 7-11-7-11-7z'/><circle cx='12' cy='12' r='3'/></svg>");
    -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
    -webkit-mask-position: center; mask-position: center;
}
.pd-el__toggle[aria-pressed="false"] .pd-el__eye {
    -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M17.94 17.94A10.94 10.94 0 0 1 12 19c-7 0-11-7-11-7a18.51 18.51 0 0 1 5.06-5.94'/><path d='M22.54 11.88a10.94 10.94 0 0 0-3.5-4.45'/><path d='M9.9 4.24A10.94 10.94 0 0 1 12 4c7 0 11 7 11 7a18.55 18.55 0 0 1-2.16 3.19'/><path d='M9.9 9.9a3 3 0 0 0 4.2 4.2'/><line x1='1' y1='1' x2='23' y2='23'/></svg>");
            mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M17.94 17.94A10.94 10.94 0 0 1 12 19c-7 0-11-7-11-7a18.51 18.51 0 0 1 5.06-5.94'/><path d='M22.54 11.88a10.94 10.94 0 0 0-3.5-4.45'/><path d='M9.9 4.24A10.94 10.94 0 0 1 12 4c7 0 11 7 11 7a18.55 18.55 0 0 1-2.16 3.19'/><path d='M9.9 9.9a3 3 0 0 0 4.2 4.2'/><line x1='1' y1='1' x2='23' y2='23'/></svg>");
}
.pd-elements__row--on  { background: color-mix(in srgb, var(--c-accent) 8%, transparent); }
.pd-elements__row--off { color: var(--c-text-muted); }
.pd-el__name { font-weight: 600; }
.pd-el__pos  { font-variant-numeric: tabular-nums; }
.pd-el__z    { color: var(--c-text-muted); margin-left: 4px; }
.pd-el__flag {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .4px;
    text-align: right;
    color: var(--c-text-muted);
}
.pd-elements__row--on .pd-el__flag { color: var(--c-text); }

/* Operator-added text elements. The name column shows the element key
   followed by the text itself, muted -- "Text1, Text2, Text3" says nothing
   about which is the resort name and which is the small print. */
.pd-el__custom {
    color: var(--c-text-muted);
    font-weight: 400;
    font-style: italic;
}

/* Remove button, only rendered on custom rows. Deliberately quiet until
   hovered: it sits in a list people scan constantly and a row of red
   crosses would read as an error state. */
.pd-el__del {
    margin-left: 6px;
    padding: 0 5px;
    border-radius: 4px;
    line-height: 1.4;
    color: var(--c-text-muted);
    text-decoration: none;
    opacity: .55;
    transition: opacity 100ms ease, color 100ms ease, background-color 100ms ease;
}
.pd-el__del:hover,
.pd-el__del:focus-visible {
    opacity: 1;
    color: #fff;
    background: var(--danger, #c0392b);
    text-decoration: none;
}

.pd-phase-note {
    margin: 12px 0 0;
    padding: 8px 10px;
    background: var(--c-bg-alert);
    border-left: 3px solid var(--c-accent);
    border-radius: 4px;
    font-size: 12px;
    color: var(--c-text);
}

/* Card centerlines: pure editor chrome, never print. Faint by default,
   pulse to a strong yellow while an element is being dragged so the
   operator can see exactly when they're aligned to card center. The
   2mm snap-to-center is in the JS. */
.pd-centerline {
    position: absolute;
    background: rgba(255, 255, 255, 0.18);
    pointer-events: none;
    z-index: 9000;
    transition: background 80ms ease;
}
.pd-centerline--v { top: 0; bottom: 0; left: 50%; width: 1px; }
.pd-centerline--h { left: 0; right: 0; top:  50%; height: 1px; }
.pd-canvas--dragging .pd-centerline { background: rgba(255, 235, 59, 0.95); }

/* Phase 2 -- drag affordance + selection highlight on the overlay. */
.pd-overlay { cursor: grab; }
.pd-overlay:active { cursor: grabbing; }
.pd-overlay--selected {
    outline: 2px solid var(--c-accent);
    outline-offset: 1px;
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--c-accent) 35%, transparent);
}
.pd-overlay--hidden { opacity: .45; }

/* Toolbar -- Undo / Duplicate / Archive buttons. Save is automatic
   (debounced AJAX); the toolbar's primary action is the Undo button. */
.pd-toolbar {
    display: flex; flex-wrap: wrap; gap: 6px;
    margin: 12px 0 0;
    padding-top: 12px;
    border-top: 1px solid var(--c-border);
}
.pd-toolbar button[disabled] { opacity: .45; cursor: not-allowed; }

/* Auto-save state indicator -- lives in the Routine Details (Active)
   card header. Tiny dot + a one-word label; the title attribute
   carries the timestamp / error detail on hover. */
.pd-save-status {
    display: inline-flex; align-items: center; gap: 6px;
    margin-left: 12px;
    font-size: 12px;
    /* Lives in the panel header (dark / brand-coloured background) --
       muted gray was unreadable against the blue. White reads on every
       brand colour; the error state overrides to a high-contrast pink
       below so it still pops against the header. */
    color: #fff;
    user-select: none;
    /* Pin the pill at full width regardless of how much room the hint
       wants -- without this, on narrow headers the "Saved 9:01:13 PM"
       text wrapped to two lines under the dot, looking like a
       duplicate label. The hint will shrink/truncate instead. */
    flex: 0 0 auto;
    white-space: nowrap;
}
.pd-save-status__dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 1px rgba(0,0,0,.15);
    transition: background .2s ease;
}
.pd-save-status[data-state="saved"]  .pd-save-status__dot { background: #1f7a3a; }   /* green */
.pd-save-status[data-state="dirty"]  .pd-save-status__dot { background: #9aa0b0; }   /* gray, pending */
.pd-save-status[data-state="saving"] .pd-save-status__dot { background: #d6a700; }   /* amber */
.pd-save-status[data-state="error"]  .pd-save-status__dot { background: #c8102e; }   /* red */
.pd-save-status[data-state="error"]  { color: #ffb3b8; }   /* light pink reads against brand header */

/* New-from-blank inline form (above the picker). */
.pd-new-form {
    display: flex; flex-direction: column; gap: 12px;
}
.pd-new-form__row { display: flex; flex-direction: column; gap: 4px; }
.pd-new-form__label { font-size: 12px; color: var(--c-text-muted); }
.pd-new-form__check { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.pd-new-form__file  { font-size: 12px; }
.pd-new-form__hint  { font-size: 11px; color: var(--c-text-muted); }
.pd-new-form__actions { display: flex; gap: 8px; align-items: center; }

/* Duplicate-as inline form, inside the side panel. */
.pd-dup-form {
    margin-top: 12px;
    padding: 10px;
    background: var(--c-bg-soft, color-mix(in srgb, var(--c-accent) 7%, transparent));
    border: 1px solid var(--c-border);
    border-radius: 6px;
    display: flex; flex-direction: column; gap: 6px;
}

/* Copy-layout summary. Sits between the source dropdown and the button so
   the operator reads what is about to happen before reaching the confirm. */
.pd-copy-note {
    margin: 0;
    font-size: 12px;
    line-height: 1.45;
    color: var(--c-text-muted);
}
/* The orientation mismatch is the one thing here that can leave a design
   visibly broken, so it gets the alert colour rather than the muted one. */
.pd-copy-note__warn {
    display: block;
    margin-top: 4px;
    color: var(--danger, #c0392b);
    font-weight: 600;
}

/* Properties panel -- shown when an element is selected. */
.pd-props { display: flex; flex-direction: column; gap: 10px; }
.pd-props__empty { color: var(--c-text-muted); font-style: italic; margin: 0; font-size: 13px; }
.pd-props__form { display: none; flex-direction: column; gap: 10px; }
.pd-props:not(.pd-props--empty) .pd-props__empty { display: none; }
.pd-props:not(.pd-props--empty) .pd-props__form  { display: flex; }
.pd-props__name {
    margin: 0;
    font-size: 14px; font-weight: 600;
    text-transform: uppercase; letter-spacing: .5px;
    color: var(--c-text);
}
.pd-props__check { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.pd-props__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 10px;
}
.pd-props__grid label {
    display: flex; flex-direction: column; gap: 2px;
    font-size: 11px; color: var(--c-text-muted);
}
.pd-props__grid input {
    padding: 4px 6px;
    border: 1px solid var(--c-border);
    border-radius: 4px;
    background: var(--c-input-bg);
    color: var(--c-text);
    font-size: 13px;
    font-variant-numeric: tabular-nums;
}
.pd-props__grid input[type="color"] { padding: 0; height: 28px; }
.pd-props__textrow {
    display: flex; flex-direction: column; gap: 2px;
    font-size: 11px; color: var(--c-text-muted);
}
.pd-props__textrow input {
    padding: 4px 6px;
    border: 1px solid var(--c-border);
    border-radius: 4px;
    background: var(--c-input-bg);
    color: var(--c-text);
    font-size: 13px;
}

/* Background-color row: a "transparent" checkbox + a color picker that
   greys out when transparent. Stacks vertically so both labels stay
   readable on the narrow side panel. */
.pd-props__bgrow {
    display: flex; flex-direction: column; gap: 6px;
    padding-top: 4px;
    border-top: 1px dashed var(--c-border);
}
.pd-props__bgcolor {
    display: flex; align-items: center; gap: 8px;
    font-size: 11px; color: var(--c-text-muted);
}
.pd-props__bgcolor input[type="color"] {
    padding: 0; height: 28px; width: 60px;
    border: 1px solid var(--c-border);
    border-radius: 4px;
}
.pd-props__bgcolor input[disabled] { opacity: .4; cursor: not-allowed; }

.pd-elements__row { cursor: pointer; }
.pd-elements__row:hover { background: var(--c-bg-hover); }

.pd-preview-wrap { display: flex; justify-content: center; padding: 12px; }
.pd-preview {
    max-width: 100%;
    border: 1px solid var(--c-border);
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,.15);
}

/* =================================================================
   2026-05-27 design-system utilities
   =================================================================
   Reusable classes that match the locked-in design (see
   design_handoff_rcr_pass_system/). None of these class names collide
   with existing rules above. The existing .btn / .panel system stays;
   these are additive utilities that the redesigned pages opt into. */

/* --- Pills / status badges ---------------------------------------- */
.pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 999px;
    line-height: 1;
    white-space: nowrap;
}
.pill .dot {
    width: 6px; height: 6px;
    border-radius: 999px;
    background: currentColor;
}
.pill.ok      { background: var(--ok-soft);     color: var(--ok-soft-ink); }
.pill.warn    { background: var(--warn-soft);   color: var(--warn-soft-ink); }
.pill.danger  { background: var(--danger-soft); color: var(--danger-soft-ink); }
.pill.info    { background: var(--info-soft);   color: var(--info-soft-ink); }
.pill.neutral { background: var(--line-soft);   color: var(--text-2); }
/* "Attached, but the pass it carries was refunded" on the Member Edit media
   card: the same green as .pill.ok drawn as a stroke instead of a fill, so it
   reads as a QUALIFIED Active rather than as a fourth status colour -- the
   same fill/stroke grammar the waiver circles use. inset box-shadow, not a
   border, so the pill keeps the exact box size of its solid siblings and the
   column does not jog. */
.pill.ok-outline {
    background: transparent;
    color: var(--ok-soft-ink);
    box-shadow: inset 0 0 0 1.5px var(--ok-soft-ink);
}
/* The web store order on the Edit Order masthead: globe icon + number, for
   the ONE place a cross-system id has to be found at a glance rather than
   merely read -- "this order came from the web" changes how the operator
   treats everything below it.

   An outlined chip on the panel colour -- globe, a small-caps WEB tag, then
   the number in the mono face the order number uses -- after Darren's
   2026-10-09 mock-up. It used to be a FILLED blue pill, which beside the blue
   Take Payment read as one more button. Neutral, not the brand colour: three
   deployments brand this page differently. */
.pill.web-tag {
    background: var(--c-surface);
    color: var(--c-text);
    border: 1px solid var(--c-border);
    box-shadow: 0 1px 2px rgba(15, 23, 42, .06);
    gap: 7px;
}
.pill.web-tag:hover { border-color: var(--c-primary); }
.pill.web-tag .icon { width: 14px; height: 14px; flex-basis: 14px; color: var(--text-3); }
.web-tag__label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--text-3);
}
.web-tag__num { font-family: var(--font-mono); font-weight: 600; }

/* --- Segmented control -------------------------------------------- */
.seg {
    display: inline-flex;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 2px;
    gap: 0;
}
.seg button,
.seg a,
.seg label {
    border: 0;
    background: transparent;
    color: var(--text-2);
    padding: 4px 12px;
    height: 28px;
    border-radius: calc(var(--radius-sm) - 2px);
    font: inherit;
    font-size: 13px;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}
.seg button:hover,
.seg a:hover { color: var(--text); }
.seg button.active,
.seg a.is-active,
.seg label.is-active {
    background: var(--primary);
    color: var(--primary-ink);
}
/* Radio-button-driven segmented (asp:RadioButtonList RepeatLayout="Flow"
   renders the inputs and labels as siblings inside an outer span). */
.seg input[type="radio"] { display: none; }
.seg input[type="radio"]:checked + label {
    background: var(--primary);
    color: var(--primary-ink);
}

/* --- Tables -------------------------------------------------------- */
.tbl {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
}
.tbl thead th {
    text-align: left;
    font-weight: 500;
    color: var(--text-3);
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: .08em;
    padding: 12px var(--pad-x);
    border-bottom: 1px solid var(--line);
    background: var(--panel-2);
    white-space: nowrap;
}
.tbl tbody td {
    padding: 0 var(--pad-x);
    height: var(--row-h);
    border-bottom: 1px solid var(--line-soft);
    color: var(--text);
    vertical-align: middle;
}
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover td { background: var(--panel-2); }
.tbl td.num, .tbl th.num {
    text-align: right;
    font-variant-numeric: tabular-nums;
}
.tbl td.muted { color: var(--text-3); }
.tbl tfoot td, .tbl tr.total td {
    padding: 0 var(--pad-x);
    height: var(--row-h);
    vertical-align: middle;
    background: var(--panel-2);
    font-weight: 600;
    border-top: 1px solid var(--line);
}
.tbl tr.subtotal td {
    background: transparent;
    font-weight: 500;
    color: var(--text-2);
}
.tbl--zebra tbody tr:nth-child(odd) td { background: var(--panel-2); }
.tbl--zebra tbody tr:hover td { background: color-mix(in oklab, var(--primary) 6%, var(--panel)); }
.tbl-wrap { overflow: auto; }

/* --- KPI tiles ----------------------------------------------------- */
.kpis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}
.kpi {
    display: block;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 14px 16px;
    text-decoration: none;
    color: inherit;
    transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.kpi:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,.06), 0 8px 18px rgba(15,18,40,.08);
    text-decoration: none;
}
.kpi .lbl {
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--text-3);
    font-weight: 500;
    margin: 0;
}
.kpi .val {
    font-size: 22px;
    font-weight: 600;
    margin: 4px 0 0;
    font-variant-numeric: tabular-nums;
    line-height: 1.15;
}
.kpi .delta {
    font-size: 12px;
    color: var(--text-3);
    margin: 2px 0 0;
}
.kpi .delta.up   { color: var(--ok); }
.kpi .delta.down { color: var(--danger); }
.kpi--warn { border-color: color-mix(in oklab, var(--warn) 35%, var(--line)); }
.kpi--warn .val { color: var(--warn-soft-ink); }

/* --- Filter strips ------------------------------------------------- */
.filters {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    padding: 14px 18px;
    border-bottom: 1px solid var(--line);
    background: var(--panel);
}
.filters .group {
    display: flex;
    align-items: center;
    gap: 8px;
}
.filters .label {
    font-size: 12.5px;
    color: var(--text-3);
    font-weight: 500;
}
.filters .row-end { margin-left: auto; display: flex; gap: 8px; }
.filter-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 10px 18px;
    background: var(--panel-2);
    border-bottom: 1px solid var(--line);
    color: var(--text-3);
    font-size: 12.5px;
}
.filter-row .row-end { margin-left: auto; display: flex; gap: 8px; }
.filter-row .live-on  { color: var(--ok); font-weight: 600; }
.filter-row .live-off { color: var(--text-3); }
.filter-row b { color: var(--text); font-weight: 600; }

/* --- Summary stripe (Edit Order) ---------------------------------- */
.summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 16px 20px;
    border-bottom: 1px solid var(--line);
    background: var(--panel);
    gap: 8px 16px;
}
.summary .item {
    display: flex;
    align-items: baseline;
    gap: 14px;
}
.summary .lbl {
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--text-3);
    font-weight: 500;
}
.summary .val {
    font-size: 16px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}
.summary .val.danger { color: var(--danger); }

/* --- Subtabs row (Edit Order / Edit Member) ----------------------- */
.subtabs {
    display: flex;
    gap: 22px;
    align-items: center;
    color: var(--text-2);
    font-size: 13.5px;
}
.subtabs a,
.subtabs button {
    background: transparent;
    border: 0;
    color: inherit;
    padding: 4px 0;
    font: inherit;
    position: relative;
    text-decoration: none;
}
.subtabs a:hover,
.subtabs button:hover { color: var(--text); }
.subtabs a.is-active,
.subtabs button.is-active { color: var(--primary); }
.subtabs a.is-active::after,
.subtabs button.is-active::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -7px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}

/* --- Empty state -------------------------------------------------- */
.empty {
    padding: 28px;
    text-align: center;
    color: var(--text-3);
    font-size: 13.5px;
}

/* --- Inline ID / order # chip ------------------------------------- */
.id-chip {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-3);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 1px 6px;
    background: var(--panel-2);
    font-feature-settings: "tnum";
}

/* --- Page head row ------------------------------------------------- */
.page-head {
    display: flex;
    align-items: baseline;
    gap: 14px;
    flex-wrap: wrap;
    margin: 6px 0 14px;
}
.page-head h1 {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -.01em;
}
.page-head h1 .num {
    margin-left: 6px;
    color: var(--text-3);
    font-size: 18px;
    font-weight: 500;
    font-family: var(--font-mono);
}
/* A pill sitting in the masthead heading (the web-store order id on Edit
   Order). .pill already sets its own 12px, so it does not inherit the h1
   size; it only needs to stop being underlined as a link and to sit on the
   heading's optical baseline rather than its text baseline. */
.page-head h1 .pill {
    margin-left: 8px;
    text-decoration: none;
    vertical-align: 2px;
}
/* One step up from the 12px every other pill uses. A masthead beside an
   18px order number is the one place a pill is competing with big type,
   and a single step is enough -- matching the heading would read as a
   second title. The right margin keeps it off the subtabs beside it. */
.page-head h1 .pill.web-tag {
    font-size: 13px;
    padding: 4px 12px 4px 10px;
    margin: 0 14px 0 12px;
}
.page-head .sub  { color: var(--text-2); font-size: 14px; }
.page-head .crumb { color: var(--text-3); font-size: 13px; }
.page-head .row-end { margin-left: auto; display: flex; gap: 8px; align-items: center; }

/* --- Section-head variants --------------------------------------
   Both the per-panel form (.panel.sh-solid > .panel__head) and the
   body-level form (body.sh-solid .panel > .panel__head) work. The
   body-level form is what the Profile "Section header style" picker
   drives -- one toggle re-skins every panel head on the site. */
.panel.sh-tint > .panel__head,
.sh-tint .panel > .panel__head {
    background: var(--primary-soft);
    color: var(--primary-soft-ink);
    border-bottom: 1px solid color-mix(in oklab, var(--primary) 18%, var(--line));
    background-image: none;
}
.panel.sh-tint > .panel__head .panel__hint,
.panel.sh-tint > .panel__head .panel__sub,
.panel.sh-tint > .panel__head .count,
.sh-tint .panel > .panel__head .panel__hint,
.sh-tint .panel > .panel__head .panel__sub,
.sh-tint .panel > .panel__head .count {
    color: color-mix(in oklab, var(--primary-soft-ink) 80%, transparent);
}

.panel.sh-solid > .panel__head,
.sh-solid .panel > .panel__head {
    background: var(--primary);
    color: var(--primary-ink);
    border-bottom: 1px solid var(--primary);
    background-image: none;
}
.panel.sh-solid > .panel__head .panel__hint,
.panel.sh-solid > .panel__head .panel__sub,
.panel.sh-solid > .panel__head .count,
.sh-solid .panel > .panel__head .panel__hint,
.sh-solid .panel > .panel__head .panel__sub,
.sh-solid .panel > .panel__head .count {
    color: color-mix(in srgb, var(--primary-ink) 78%, transparent);
}

.panel.sh-rule > .panel__head,
.sh-rule .panel > .panel__head {
    background: var(--panel);
    color: var(--text);
    background-image: none;
    position: relative;
    padding-left: 22px;
}
.panel.sh-rule > .panel__head::before,
.sh-rule .panel > .panel__head::before {
    content: "";
    position: absolute;
    left: 14px; top: 50%;
    transform: translateY(-50%);
    width: 3px; height: 18px;
    background: var(--primary);
    border-radius: 2px;
}

/* --- Quick-action card (Home) ------------------------------------- */
.qa-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.qa-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 12px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: inherit;
    transition: background-color .12s ease, transform .12s ease;
}
.qa-card:hover {
    background: var(--line-soft);
    transform: translateY(-1px);
    text-decoration: none;
}
.qa-card .icon { width: 18px; height: 18px; flex: 0 0 18px; }
.qa-card__label { font-weight: 600; font-size: 14px; }

/* ---------- Release banner + documentation pages ---------- */

/* "What's new" bar at the top of the content area, shown once per build.
   Only reaches the DOM when the person can read the notes and has not
   already dismissed this version -- see SiteMaster.BuildReleaseBanner.
   A quiet white card with a dark NEW tag (Darren's 2026-10-09 mock-up): it is
   news, not a warning, so no tinted ground and no coloured edge -- the
   session-banner below owns those. */
.release-banner {
    display: flex; align-items: center; gap: 12px;
    margin: 0 0 16px;
    padding: 10px 14px;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: 10px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .05);
    font-size: 13.5px;
}
.rb-pill {
    flex: 0 0 auto;
    background: #1f2937; color: #fff;
    border-radius: 4px;
    padding: 3px 7px;
    font-size: 10.5px; font-weight: 700; line-height: 1.2;
    text-transform: uppercase; letter-spacing: .06em;
}
/* The near-black tag would vanish on a dark panel: invert it there. */
[data-theme="dark"] .rb-pill { background: #e5e7eb; color: #111827; }
.rb-text a { color: var(--c-primary); text-decoration: underline; text-underline-offset: 2px; }
.rb-text { flex: 1 1 auto; min-width: 0; }
.rb-x {
    flex: 0 0 auto;
    background: none; border: 0;
    color: var(--c-text-muted);
    font-size: 20px; line-height: 1;
    padding: 0 4px; cursor: pointer; border-radius: 4px;
}
.rb-x:hover { color: var(--c-text); background: var(--c-bg-hover); }

/* Session-state warning bar: acting as another employee, and / or a cashout
   reopened for correction. Sits above the release bar.

   HARDCODED RED, not var(--c-primary), and that is deliberate -- the same
   reasoning as .line-row__price.is-credit. This bar warns that the operator's
   keystrokes are being recorded under somebody else's name, or that a closed
   till count has been made writable. A deployment whose brand colour happens to
   be red would render it invisible against the rest of the page, and a
   deployment whose brand colour is a calm blue would render a warning that does
   not look like one. Danger reads the same in every brand.

   The colours are fixed for both themes rather than following the palette, for
   the same reason; the dark-theme block below only adjusts them enough to stay
   legible on a dark ground. */
.session-banner {
    display: flex; flex-direction: column; gap: 6px;
    margin: 0 0 16px;
    padding: 10px 12px;
    background: #fdecec;
    border: 1px solid #e6a3a3;
    border-left: 3px solid #c62828;
    border-radius: 8px;
    font-size: 14px;
    color: #5c1a1a;
}
.session-banner__row { display: flex; align-items: center; gap: 10px; }
.session-banner__pill {
    flex: 0 0 auto;
    background: #c62828; color: #fff;
    border-radius: 999px;
    padding: 2px 10px;
    font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .04em;
}
.session-banner__text { flex: 1 1 auto; min-width: 0; }
.session-banner__act {
    flex: 0 0 auto;
    background: #fff; color: #c62828;
    border: 1px solid #c62828; border-radius: 6px;
    padding: 3px 12px;
    font-size: 13px; font-weight: 600;
    cursor: pointer; text-decoration: none;
}
.session-banner__act:hover { background: #c62828; color: #fff; }
.session-banner__act[disabled] { opacity: .55; cursor: default; }

[data-theme="dark"] .session-banner {
    background: #3a1414; border-color: #7a3535; border-left-color: #ef5350;
    color: #ffdad6;
}
[data-theme="dark"] .session-banner__pill { background: #ef5350; color: #3a1414; }
[data-theme="dark"] .session-banner__act {
    background: transparent; color: #ffb4ab; border-color: #ef5350;
}
[data-theme="dark"] .session-banner__act:hover { background: #ef5350; color: #3a1414; }

/* Rendered markdown (release notes / change log). MarkdownLite emits only
   h1-h3, p, ul/li, hr, strong and code, so this styles exactly that and
   nothing else. Constrained width because these are prose, not a grid --
   a full-width line of body text is hard to track back to the next line. */
.doc-body { max-width: 78ch; padding: 4px 4px 8px; }
.doc-body h1 { font-size: 22px; margin: 0 0 4px; }
.doc-body h2 {
    font-size: 17px; margin: 28px 0 8px;
    padding-bottom: 6px; border-bottom: 1px solid var(--c-border);
}
.doc-body h2:first-of-type { margin-top: 12px; }
.doc-body h3 { font-size: 15px; margin: 18px 0 6px; color: var(--c-primary); }
.doc-body p  { margin: 0 0 10px; line-height: 1.55; }
.doc-body ul { margin: 0 0 12px; padding-left: 22px; }
.doc-body li { margin: 0 0 5px; line-height: 1.5; }
.doc-body hr { border: 0; border-top: 1px solid var(--c-border); margin: 22px 0; }
.doc-body code {
    font-family: var(--font-mono, ui-monospace, "JetBrains Mono", Consolas, monospace);
    font-size: 0.9em;
    background: var(--c-bg-hover);
    border-radius: 4px;
    padding: 1px 5px;
    word-break: break-word;
}
.doc-body .muted { color: var(--c-text-muted); font-style: italic; }

/* ---------- Home activity: timestamps from an earlier day ---------- */
/* A row that is not from today carries a month + day in front of the clock
   time ("Aug 27 14:32"), which does not fit the original fixed 56px column.
   max-content sizes the column to the widest cell actually present, and the
   56px floor keeps a feed of today-only rows looking exactly as it did.
   Sizing the whole TRACK (rather than letting each cell grow) is what keeps
   the titles beside them aligned down the list. */
.home-activity__row-link { grid-template-columns: minmax(56px, max-content) 1fr auto; }
.home-activity__time { white-space: nowrap; }

/* ---------- Voiding a product line (OrderDetails) ---------- */
/* The minus twin of .icon-plus, drawn the same way so the two read as a
   matched pair in the same grid. */
.icon-minus    { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'><line x1='5' y1='12' x2='19' y2='12'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'><line x1='5' y1='12' x2='19' y2='12'/></svg>"); }

/* The products grid carries a fourth, narrow column for the remove control.
   Scoped to the variant class rather than added to .line-row, because the
   payments grid and the totals rows share that base rule and must keep
   their three columns aligned with each other. */
.line-table--voidable .line-table__head,
.line-table--voidable .line-row {
    grid-template-columns: 2fr 2fr 1fr 34px;
}
.line-row__actions { display: flex; justify-content: flex-end; }

/* Destructive action icon. Muted until hovered so a grid of them does not
   read as a row of warnings, then unmistakably red on approach. */
.iconlink--danger { color: var(--c-text-muted); }
.iconlink--danger:hover { color: #b42318; background: color-mix(in oklab, #b42318 10%, transparent); }

/* A blocked control stays VISIBLE and keeps its tooltip -- the tooltip is
   the whole point, since it names which gate stopped the operator. ASP.NET
   renders a disabled LinkButton as a span, so there is no anchor to style;
   .aspNetDisabled is the class WebForms puts on it. */
.iconlink--danger.aspNetDisabled,
.line-row__actions span.iconlink--danger {
    opacity: .35;
    cursor: not-allowed;
}
.line-row__actions span.iconlink--danger:hover {
    background: transparent;
    color: var(--c-text-muted);
}

/* A voided slot. Struck through and faded, but still fully legible: the
   line is part of the order's history now, not a mistake to be hidden.
   The strike is on the TEXT cells only -- striking the price would fight
   the .is-credit red that says the same thing in the money column. */
.line-row.is-voided .line-row__product,
.line-row.is-voided .line-row__member {
    text-decoration: line-through;
    opacity: .6;
}
.line-row.is-voided .line-badge--void { text-decoration: none; }

/* Line-type pill on Edit Order (REFD, DISC, COMP, VOID, INSR, RINS) in place of
   the old "(DISC)" suffix. Colours come from the shared .pill classes, mapped
   in OrderDetails.LinePillClass. A touch smaller than a status pill so it sits
   on the product-name line without making the row taller. */
.line-pill {
    margin-left: 8px;
    padding: 3px 8px;
    font-size: 11px;
    letter-spacing: .02em;
    vertical-align: 1px;
    text-decoration: none;
}

.line-badge {
    display: inline-block;
    margin-left: 8px;
    padding: 1px 6px;
    border-radius: 999px;
    font-size: 10.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    vertical-align: middle;
}
.line-badge--void {
    background: color-mix(in oklab, #b42318 14%, transparent);
    color: #b42318;
    opacity: 1;
}
[data-theme="dark"] .iconlink--danger:hover { color: #ff7b6b; background: color-mix(in oklab, #ff7b6b 14%, transparent); }
[data-theme="dark"] .line-badge--void { background: color-mix(in oklab, #ff7b6b 18%, transparent); color: #ff7b6b; }

/* A held order's banner: the text, then the release button pushed right.
   The icon and button must not inherit the alert's block layout, or the
   sentence wraps around them. */
.order-held { display: flex; align-items: center; gap: 10px; }
.order-held .btn { margin-left: auto; flex: 0 0 auto; }

/* ===========================================================================
   Pages/Cashout.aspx -- remittance (close-out) sheet, and the close
   confirmation. The sheet is a data-entry form living inside the same page
   as the read-only summary, so it borrows .line-table for its grid and adds
   only what an editable table needs.
   =========================================================================== */

.co-meta--totals .co-meta__row { grid-template-columns: 200px 1fr; }
.co-meta--totals .co-meta__row dd.num { text-align: right; max-width: 220px; font-variant-numeric: tabular-nums; }
.co-meta__row--strong { border-top: 1px solid var(--c-border); padding-top: 6px; margin-top: 2px; }
.co-meta__row--strong dd { font-weight: 700; }

.co-remit__block { margin-bottom: 22px; }
.co-remit__heading {
    margin: 0 0 8px;
    font-size: 13px; font-weight: 600;
    color: var(--c-text);
    text-transform: uppercase; letter-spacing: .4px;
}

/* Denomination | count | extended amount. */
.line-table--co-denoms .line-table__head,
.line-table--co-denoms .line-row {
    grid-template-columns: 1fr 120px 140px;
    align-items: center;
}
/* Payment type | system | counted | variance. */
.line-table--co-remit .line-table__head,
.line-table--co-remit .line-row {
    grid-template-columns: 1fr 140px 140px 140px;
    align-items: center;
}

/* Inputs sit inside a grid cell that is already right-aligned, so they are
   sized to the cell rather than stretched to it -- a full-width box in a
   140px column reads as a text field, not a number. */
.co-remit__count,
.co-remit__amount {
    width: 100%;
    max-width: 110px;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.co-remit__group {
    background: var(--c-bg-soft);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: .4px;
    color: var(--c-text-muted);
}

/* Payment types with nothing on either side. Hidden by default -- this
   deployment declares around fifty of them and a till touches a handful.
   The filter checkbox reveals them; the class is toggled in the page's
   own script, never by a server round trip. */
.co-remit__row.is-hidden,
.co-remit__group.is-hidden { display: none; }

.co-remit__filter {
    display: flex; align-items: center; gap: 12px;
    margin: 0 0 10px;
    font-size: 13px;
}
.co-remit__filter label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.co-remit__filter-hint { color: var(--c-text-muted); font-size: 12px; }

.co-remit__fx { color: var(--c-text-muted); font-size: 12px; margin-left: 6px; }

.co-remit__totals { margin-top: 18px; }
.co-remit__actions { margin-top: 16px; display: flex; gap: 10px; align-items: center; }

.co-remit__badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .4px;
    white-space: nowrap;
}
.co-remit__badge.is-ok  { background: var(--c-ok-bg,  #e6f4ea); color: var(--c-ok-fg,  #1b6b34); }
/* Out-of-balance uses the same red as a credit amount, and for the same
   reason: it must read as "wrong" regardless of the deployment's brand
   colour, so it is not routed through var(--c-primary). */
.co-remit__badge.is-out { background: #fdecea; color: #b3261e; }

/* Close confirmation. Wider than the stock .wo-modal__card because it may
   carry a list of orders as well as the reason box. */
.co-close-card { width: min(620px, calc(100vw - 32px)); }
.co-close__lead { margin: 0 0 14px; }
.co-close__subhead {
    margin: 0 0 4px;
    font-size: 12px; font-weight: 600;
    text-transform: uppercase; letter-spacing: .4px;
    color: var(--c-text);
}
.co-close__hint { margin: 0 0 8px; color: var(--c-text-muted); font-size: 12px; }
.co-close__orders { margin-bottom: 16px; max-height: 240px; overflow-y: auto; }
.line-table--co-close-orders .line-table__head,
.line-table--co-close-orders .line-row {
    grid-template-columns: 100px 1fr 120px;
    align-items: center;
}
.co-close__reason { display: flex; flex-direction: column; gap: 6px; }
.co-close__label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .4px; }
.co-close__error { color: #b3261e; font-size: 12px; }

/* Narrow screens: the four-column remittance grid does not fold, it scrolls,
   because a wrapped money column stops being comparable down the page. */
@media (max-width: 819px) {
    .line-table--co-remit,
    .line-table--co-denoms,
    .line-table--co-close-orders { overflow-x: auto; }
    .line-table--co-remit .line-table__head,
    .line-table--co-remit .line-row { min-width: 620px; }
    .line-table--co-denoms .line-table__head,
    .line-table--co-denoms .line-row { min-width: 420px; }
    .line-table--co-close-orders .line-table__head,
    .line-table--co-close-orders .line-row { min-width: 380px; }
}

/* ===========================================================================
   Pages/CashoutHistory.aspx -- read-only list of closed cashouts.
   =========================================================================== */

.line-table--ch .line-table__head,
.line-table--ch .line-row {
    /* Notes is a fixed 90px at the end: an action column, so it never competes
       with the 1fr that carries the closer's name. Derived rather than left to
       auto -- an auto track collapses to the width of its content and the
       header then sits over the wrong column. */
    grid-template-columns: 90px 150px 150px 1fr 120px 90px 150px 90px;
    align-items: center;
}
.ch-status { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.ch-status--ok   { background: var(--c-ok-bg, #e6f4ea); color: var(--c-ok-fg, #1b6b34); }
.ch-status--out  { background: #fdecea; color: #b3261e; }
.ch-status--none { background: var(--c-bg-soft); color: var(--c-text-muted); }

/* Two more remittance states, added 2026-09-03 because both were rendering
   in the same muted grey as "nothing to see here".

   --open is the SAME yellow as .pill.warn: a till that is still running is
   work in progress, and the operator has to be able to pick those rows out
   of a long list at a glance. The Closed column uses this exact class too,
   so the two "Still open" markers on one row match.

   --undeclared is a DIFFERENT, oranger amber, and it is used only when the
   till is out of balance as well as uncounted. It sits deliberately between
   the yellow and the red of --out, because that is where it belongs: nobody
   counted the drawer AND the remittance does not agree. An undeclared till
   that still balances stays grey (--none) -- it is a legacy close, not a
   fault. */
.ch-status--open { background: var(--warn-soft); color: var(--warn-soft-ink); }
.ch-status--undeclared { background: #fbe0c7; color: #8a4a13; }
[data-theme="dark"] .ch-status--undeclared {
    background: rgba(201, 112, 30, 0.24);
    color: #f0b477;
}
.ch-reason { display: block; margin-top: 4px; font-size: 12px; color: var(--c-text-muted); overflow-wrap: anywhere; }
.ch-more { margin-top: 14px; display: flex; justify-content: center; }

@media (max-width: 1099px) {
    .line-table--ch { overflow-x: auto; }
    .line-table--ch .line-table__head,
    .line-table--ch .line-row { min-width: 900px; }
}

/* Pages/CashoutReport.aspx -- printable close-out sheet. Reuses the receipt
   paper + print stylesheet; adds only the two shapes a cashout report needs
   that a customer receipt does not: a bolded total row inside a plain table,
   and a free-text note block for the out-of-balance reason. */
.receipt-row--total td { border-top: 1px solid #c9ccd8; font-weight: 700; padding-top: 6px; }
.receipt-note {
    margin: 10px 0 16px;
    padding: 8px 10px;
    border-left: 3px solid #c9ccd8;
    color: #1f2230;
    font-size: 10pt;
    overflow-wrap: anywhere;
}

/* ===========================================================================
   Pages/CashoutReports.aspx -- the report picker and the rendered set.

   The rendered set is written by ReportHtmlRenderer from the same
   ReportDocuments the PDF is built from, so the class names below are the
   contract between that renderer and this stylesheet. Its twin,
   ReportPdfRenderer, expresses the same emphasis in MigraDoc styles.
   =========================================================================== */

.crq-pick { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.crq-pick__label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .4px; }
.crq-pick__select { min-width: 340px; max-width: 100%; }
.crq-pick__note { color: var(--c-text-muted); font-size: 12px; }
.crq-pick__heading {
    margin: 0 0 4px;
    font-size: 13px; font-weight: 600;
    text-transform: uppercase; letter-spacing: .4px;
}
.crq-pick__hint { margin: 0 0 10px; font-size: 12px; }
.crq-link { color: var(--c-primary); text-decoration: none; }
.crq-link:hover { text-decoration: underline; }
.crq-sep { color: var(--c-text-muted); margin: 0 4px; }

/* Two columns of tick boxes on a wide screen: eleven reports in one column
   pushes the buttons below the fold on a till monitor. */
.crq-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 4px 22px; }
.crq-item { display: flex; align-items: flex-start; gap: 9px; padding: 7px 4px; cursor: pointer; border-radius: 6px; }
.crq-item:hover { background: var(--c-bg-soft); }
.crq-item__box { margin-top: 2px; }
.crq-item__text { display: flex; flex-direction: column; gap: 1px; }
.crq-item__name { font-weight: 600; font-size: 13px; }
.crq-item__desc { color: var(--c-text-muted); font-size: 12px; line-height: 1.35; }
.crq-actions { margin-top: 18px; display: flex; gap: 10px; flex-wrap: wrap; }

/* --- the rendered reports ------------------------------------------------ */
.crq-output { margin-top: 20px; }
.crq-report {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: 10px;
    padding: 18px 20px;
    margin-bottom: 18px;
}
.crq-legend {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 18px;
}
.crq-legend__title { margin: 0 0 10px; font-size: 18px; }
.crq-legend__grid { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 4px 24px; }
.crq-legend__row { display: grid; grid-template-columns: 110px 1fr; gap: 10px; }
.crq-legend__row dt { color: var(--c-text-muted); font-size: 12px; text-transform: uppercase; letter-spacing: .4px; margin: 0; }
.crq-legend__row dd { margin: 0; font-size: 13px; font-weight: 500; }
.crq-legend__note { margin: 10px 0 0; font-size: 12px; font-style: italic; color: var(--c-text-muted); }

.crq-report__title { margin: 0 0 3px; font-size: 16px; }
.crq-report__desc  { margin: 0 0 12px; font-size: 12px; font-style: italic; color: var(--c-text-muted); }
.crq-section__title { margin: 16px 0 6px; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .4px; }
.crq-empty { margin: 6px 0 10px; font-size: 12px; font-style: italic; color: var(--c-text-muted); }
.crq-unavailable { margin: 6px 0 10px; font-size: 12px; color: #b3261e; }

/* Cashout notes. The body is the only place in this application that renders
   text a person TYPED with its whitespace intact, so it is <pre>: tabs, blank
   lines and runs of spaces are content. pre-wrap rather than plain pre so a
   long line still wraps instead of forcing the page sideways, and the font is
   inherited rather than monospace because a note is prose, not code. */
.crq-note { margin: 0 0 12px; padding: 8px 10px; border-left: 3px solid var(--c-border); background: var(--c-surface-2); }
.crq-note__meta { font-size: 11px; color: var(--c-text-muted); margin: 0 0 4px; }
.crq-note__body { margin: 0; font: inherit; font-size: 12px; white-space: pre-wrap; tab-size: 4; overflow-wrap: anywhere; }
/* A restricted note has to be identifiable on paper, where no colour may
   survive, so the marker is the WORD in the meta line and the border is only a
   reinforcement on screen. */
.crq-note--restricted { border-left-color: #b3261e; }

/* The add box, on the Cashout panel and on Pages/CashoutNotes.aspx. The
   textarea is monospace-agnostic like the notes themselves but keeps tab-size
   in step with .crq-note__body, so an indent looks the same while it is being
   typed as it will once saved. resize:vertical because a drawer count can run
   long and the operator is the one who knows how long. */
.co-note-add { margin-top: 12px; }
.co-note-add__text { width: 100%; min-height: 84px; resize: vertical; tab-size: 4; white-space: pre-wrap; font: inherit; }
.co-note-add .actions { margin-top: 8px; display: flex; align-items: center; gap: 12px; }
.co-note-add__private { font-size: 12px; color: var(--c-text-muted); }
.crq-note--restricted .crq-note__meta { color: #b3261e; font-weight: 600; }

.crq-table { width: 100%; border-collapse: collapse; font-size: 12px; table-layout: fixed; }
.crq-table th {
    text-align: left;
    font-size: 11px; text-transform: uppercase; letter-spacing: .3px;
    color: var(--c-text-muted);
    border-bottom: 1px solid var(--c-border);
    padding: 5px 7px;
}
.crq-table td { padding: 4px 7px; vertical-align: top; overflow-wrap: anywhere; }
.crq-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.crq-table .ctr { text-align: center; }
.crq-row--group td { background: var(--c-bg-soft); font-weight: 600; }
.crq-row--subtotal td { font-weight: 600; border-top: 1px solid var(--c-border); }
.crq-row--total td { font-weight: 700; border-top: 2px solid var(--c-border); }
/* Credits red regardless of theme or brand -- same rule as .line-row__price. */
.crq-table td.is-credit { color: #c8102e; }

/* --- print --------------------------------------------------------------- */
@media print {
    /* ---------------------------------------------------------------------
       PAGE MARGINS. These MUST match ReportPdfRenderer's PageSetup exactly:
       top 0.55in, right 0.45in, bottom 0.6in, left 0.65in. Paper and PDF are
       the same document as far as anybody filing them is concerned.

       A NAMED page, not the bare `@page` rule. `@page` cannot be scoped by a
       selector, so the `@page { margin: 0 }` that Pages/ReceiptDesigner.aspx
       declares for the receipt paper applied to EVERY printed page in the
       application, this one included -- and unlike the receipt, which puts the
       white space back as `padding: 0.35in` on .receipt-paper, the report
       print rules never compensated. A printed cashout report therefore ran
       edge to edge with NO margin at all while its PDF had four proper ones,
       which is what QC reported on 2026-09-15 as "margins do not work"
       alongside "PDFs come out fine". Reported as a French regional-settings
       problem; it is not one, and a French session was checked for
       decimal-comma numbers in every <style> block and style attribute before
       ruling that out.

       KNOWN TRADE-OFF, made deliberately: a zero page margin is what makes
       Chromium and Firefox drop their URL / date / page-number band by
       default, so restoring real margins brings that band back unless the
       operator unticks "Headers and footers" in the print dialog (which the
       browser then remembers). Correct margins on every sheet are worth more
       than a band on the first one: a printer that cannot reach the paper
       edge CLIPS an edge-to-edge report, and a clipped figure on a close-out
       sheet is worse than an extra line of browser furniture.

       A browser that does not support named pages simply keeps today's
       behaviour rather than breaking -- a graceful degrade, not a regression.
       --------------------------------------------------------------------- */
    @page cashoutReport { size: letter portrait; margin: 0.55in 0.45in 0.6in 0.65in; }
    .crq-output { page: cashoutReport; }

    /* Everything that is not a rendered report leaves the page: the picker,
       the buttons, the nav. What prints is what the PDF contains. */
    .crq-noprint { display: none !important; }
    .crq-output { margin: 0; }
    .crq-legend, .crq-report {
        border: 0;
        border-radius: 0;
        padding: 0 0 6px;
        margin: 0 0 10px;
        background: #ffffff;
    }
    /* One report per sheet, matching ReportPdfRenderer's page break. A
       close-out report starting halfway down under the tail of the previous
       one cannot be filed or handed to anybody.

       Written against the ABSENCE of .crq-set--flow rather than as a rule the
       flow variant has to fight. Overriding a `page-break-before: always` with
       `auto` later in the file works until somebody reorders the stylesheet;
       not emitting the break in the first place cannot. The first report never
       needs a break before it either way, so :not(:first-child) also saves a
       blank leading sheet in some engines. */
    .crq-set:not(.crq-set--flow) .crq-report:not(:first-of-type) { page-break-before: always; }

    /* Flowing: reports run on, but a report must not SPLIT across a sheet
       where it can be helped -- the saving comes from filling the page, not
       from tearing a four-line report in half. */
    .crq-set--flow .crq-report { page-break-inside: avoid; margin-bottom: 14px; }
    .crq-table { font-size: 8.5pt; }
    /* Notes on paper: no fill or coloured rule can be relied on, so the block
       keeps only its indent and the restricted marker stays a WORD in the meta
       line. A note must not be torn across sheets -- half a drawer count is
       worse than a page break before it. */
    .crq-note { background: #ffffff; border-left: 1pt solid #000000; padding: 0 0 0 6pt; margin: 0 0 8pt; page-break-inside: avoid; }
    .crq-note__meta { color: #000000; font-size: 7.5pt; }
    .crq-note__body { font-size: 8.5pt; }
    .crq-table th { color: #333; }
    /* Repeat the head on every sheet a long table spans -- a column of
       unlabelled money on page three is useless. */
    .crq-table thead { display: table-header-group; }
    .crq-table tr { page-break-inside: avoid; }
    .crq-table td.is-credit { color: #b3261e; }
}

/* ============================================================================
   Token picker (Content/js/tokenpicker.js) -- type-to-narrow multi-select.
   Used by the Cashout Administration filter row. Deliberately generic: the
   only thing tying it to that page is where it happens to be placed.
   ========================================================================== */

.tp { position: relative; }

/* Mimics .text-input so a picker sits in a filter row without looking like a
   different species of control. The chips live INSIDE the box, which is why
   this is a flex container rather than an input. */
.tp__box {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    min-height: 34px;
    padding: 4px 8px;
    border: 1px solid var(--c-border);
    border-radius: 6px;
    background: var(--c-surface);
    cursor: text;
}

.tp__box:focus-within {
    border-color: var(--c-primary);
    outline: 2px solid color-mix(in srgb, var(--c-primary) 25%, transparent);
    outline-offset: -1px;
}

.tp__chips { display: contents; }

.tp__chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    max-width: 100%;
    padding: 2px 4px 2px 8px;
    border-radius: 999px;
    background: var(--c-bg-soft);
    border: 1px solid var(--c-border);
    font-size: 12px;
    line-height: 1.5;
    color: var(--c-text);
}

.tp__chip-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tp__chip-x {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--c-text-muted);
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
}

.tp__chip-x:hover { background: var(--c-bg-hover); color: var(--c-text); }

/* Grows to fill whatever the chips left, but never collapses to nothing --
   a picker with several chips must still be typeable. */
.tp__input {
    flex: 1 1 80px;
    min-width: 80px;
    border: 0;
    outline: 0;
    padding: 3px 0;
    background: transparent;
    color: var(--c-text);
    font: inherit;
    font-size: 13px;
}

.tp__menu {
    position: absolute;
    z-index: 40;
    left: 0;
    right: 0;
    top: calc(100% + 2px);
    max-height: 260px;
    overflow-y: auto;
    border: 1px solid var(--c-border);
    border-radius: 6px;
    background: var(--c-surface);
    box-shadow: 0 6px 20px rgba(0, 0, 0, .18);
}

.tp__menu[hidden] { display: none; }

.tp__item {
    padding: 6px 10px;
    font-size: 13px;
    color: var(--c-text);
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tp__item.is-active,
.tp__item:hover { background: var(--c-bg-hover); }

/* ============================================================================
   Cashout Administration (Pages/CashoutAdmin.aspx)
   ========================================================================== */

/* Pull one cashout by number. A single row above the filter grid, separated by
   a rule, because it does not combine with those filters -- it replaces them,
   and a fifth cell inside the grid would say the opposite. */
.ca-lookup {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding-bottom: 14px;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--c-border);
}

.ca-lookup > label {
    font-size: 12px;
    font-weight: 600;
    color: var(--c-text-muted);
}

/* Narrow on purpose: a cashout id is six digits, and a full-width box invites
   somebody to type a location name into it. */
.ca-lookup__box { width: 9ch; }

.ca-lookup__hint {
    font-size: 12px;
    color: var(--c-text-muted);
    flex: 1 1 220px;
}

.ca-filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px 16px;
    align-items: end;
    margin-bottom: 16px;
}

.ca-field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }

.ca-field > label {
    font-size: 12px;
    font-weight: 600;
    color: var(--c-text-muted);
}

/* Wildcard hint beside the Location label. The picker has always accepted a
   "*" pattern -- nothing in the UI said so, so nobody used it. A native title
   tooltip rather than a hover card: it is one sentence, it must work on the
   keyboard (hence tabindex), and this panel has no hover-card host. */
.ca-field__tip {
    width: 14px; height: 14px; flex: 0 0 14px;
    margin-left: 4px;
    cursor: help;
    opacity: .65;
}
.ca-field__tip:hover, .ca-field__tip:focus-visible { opacity: 1; color: var(--c-accent); }

.ca-field--dates { display: flex; flex-direction: row; gap: 8px; align-items: end; }
.ca-field--dates .ca-field { flex: 1 1 0; }

.ca-actions { display: flex; gap: 8px; align-items: end; }

/* Quick date ranges, under the filter grid. Its own row rather than a fifth
   grid cell: the grid is auto-fit/1fr and align-items:end, so a taller cell
   would push its two date boxes out of line with every other field's input. */
.ca-quick {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin: -4px 0 16px;
}

.ca-quick__label {
    font-size: 12px;
    font-weight: 600;
    color: var(--c-text-muted);
    margin-right: 2px;
}

/* The shortcut whose range is currently in the date boxes. Border and weight
   rather than a fill: four of these sit in a row next to Search, and a filled
   one would read as the primary action of the card. */
.ca-quick .btn.is-on {
    color: var(--c-text);
    background: var(--c-bg-soft);
    border-color: var(--c-accent);
    font-weight: 600;
}

/* The results table can outgrow a narrow window; it scrolls in its own box so
   the page body never scrolls sideways. */
.ca-results { overflow-x: auto; }

.ca-scope {
    margin: 0 0 12px;
    font-size: 12px;
    color: var(--c-text-muted);
}

/* The Closed column's "Still open" marker now renders as the same yellow
   .ch-status--open pill as the Remittance column, so the old italic grey
   text rule is gone rather than left to rot. */

/* The chosen cashout, and the report tick-list beneath it. */
.ca-picked {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 2px solid var(--c-border);
}

.ca-picked__head {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    align-items: baseline;
    margin-bottom: 12px;
}

.ca-picked__id { font-weight: 600; font-size: 15px; }
.ca-picked__meta { font-size: 13px; color: var(--c-text-muted); }

.ca-provisional {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--c-bg-alert);
    font-size: 12px;
}

/* Twelve columns plus the tick: select, cashout, opened, closed, location,
   resort, employee, then the four money figures (charged, payments, other
   payments, difference), the remittance pill and the notes link. Wider than
   Cashout History because this list spans locations, so the location and
   resort have to be readable at a glance -- they are the whole reason the
   operator is on this page rather than that one.

   MIN-WIDTH IS DERIVED, NOT GUESSED, AND THE SUM MUST BE REDONE WHENEVER A
   COLUMN IS ADDED. Get it wrong and the failure is silent but ugly: the
   flexible Location track absorbs the shortfall, so at 1410px against 1402px
   of fixed tracks it rendered EIGHT PIXELS wide, "CA-FD-606" came out as three
   stacked fragments, and the last column ran off the edge of the box.

     tracks   40 + 90 + 120 + 120 + 70 + 80 + 105 + 105 + 105 + 105
              + 135 + 80                                            = 1155
     location floor                                                 +  130
     gaps     12 gaps x 12px                                        +  144
     padding  16px each side                                        +   32
                                                                     -----
                                                                      1461

   Hence 1470, which leaves Location a little over its floor rather than exactly
   at it. minmax() rather than a bare 1fr so the floor is a real promise: a 1fr
   can be compressed to nothing, a minmax cannot.

   The count above was WRONG before the tick column was added -- it omitted the
   80px notes track and counted 10 gaps where there were 11, so the stated 1317
   was 92px short of the truth and Location had already been sitting on its
   floor. Redone here from the rendered columns rather than from the old sum. */
.line-table--ca .line-table__head,
.line-table--ca .line-row {
    grid-template-columns:
        40px                /* select     -- the consolidation tick. Fixed and
                               narrow: it holds one box and must not take width
                               from the location name. */
        90px                /* cashout    */
        120px               /* opened     -- compact stamp, see CompactStamp */
        120px               /* closed     */
        minmax(130px, 1fr)  /* location   -- 130 is NOT arbitrary: the longest
                               location name in use on RCR is CA-NONSTOP-01, 13
                               characters, about 104px. THIS COLUMN MUST NEVER WRAP
                               OR CLIP -- it is the thing people come to this page
                               to find, which is also why it is the one track that
                               takes the leftover space. */
        70px                /* resort     -- the two-character code, name on hover */
        80px                /* opened by  -- initials, full name on hover */
        105px               /* charged    */
        105px               /* payments   */
        105px               /* other      -- headed "Other", not "Other payments":
                               the full label needed 20px more than its three
                               siblings, and the meaning survives the trim beside
                               a Payments column and behind a header tooltip.
                               Difference is NOT abbreviated: it is the headline
                               figure and only ten characters. */
        105px               /* difference */
        135px               /* remittance -- sized by "Out by ($1,234.56)", NOT by
                               the No Trans pill: the out-of-balance caption carries
                               a formatted amount and is the longest thing here. */
        80px;               /* notes      -- an action, so a fixed track. Explicit
                               rather than auto: an auto track collapses to its
                               content width and the header then sits over the
                               wrong column. */
    align-items: center;
}

/* ---------- Web Cashout Reports: a different money block ----------
   Same seven leading columns as Cashout Administration, then FIVE money/count
   columns instead of four, because a web till needs both sides of the story:
   what the web store charged and took (the truth), and how much of it has
   been committed (our progress). Ends with the same status track.

   The two balance columns are narrower than the two totals: a balance is
   almost always $0.00 and the totals carry six figures.

     tracks   40 + 90 + 120 + 120 + 70 + 80 + 115 + 100 + 115 + 100
              + 95 + 135                                            = 1180
     location floor                                                 +  130
     gaps     12 gaps x 12px                                         +  144
     padding  16px each side                                        +   32
                                                                     -----
                                                                      1486
   Hence 1495 below. There is no Notes column here, and this grid is WIDER than
   Cashout Administration all the same. */
.line-table--cwr .line-table__head,
.line-table--cwr .line-row {
    grid-template-columns:
        40px                /* select         */
        90px                /* cashout    */
        120px               /* opened     */
        120px               /* closed     */
        minmax(130px, 1fr)  /* location   */
        70px                /* resort     */
        80px                /* opened by  */
        115px               /* web total      -- the web store's own figure */
        100px               /* web balance    -- always $0.00 when healthy */
        115px               /* committed      */
        100px               /* committed bal. */
        95px                /* orders         -- "61 / 174" */
        135px;              /* status         */
}

/* "61 / 174". Tabular figures so the slash stays in the same place down the
   column and a short count cannot be mistaken for a long one at a glance. */
.cwr-orders { font-variant-numeric: tabular-nums; }
/* Still being worked. Amber, NOT red: a partly committed cashout is a normal
   state of affairs, and colouring it like a fault is exactly the confusion
   this column exists to remove. */
.cwr-orders--partial { color: #8a5200; font-weight: 600; }
[data-theme="dark"] .cwr-orders--partial { color: #ffd870; }

/* One line per cell, always. Long values are cut with an ellipsis and carry a
   title, so a name too big for its column is still readable on hover instead
   of pushing the row two or three lines tall. That matters more here than on
   most grids: this is a scanning page, and a page of ragged-height rows is
   much harder to read down than a page of clipped ones. */
.line-table--ca .line-row > [role="cell"],
.line-table--ca .line-table__head > [role="columnheader"] {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

/* Money never wraps either, for a different reason: these are the columns a
   reader scans down comparing figures, and "($3,433.40)" broken across two
   lines stops being a number. Tabular figures so the decimal points line up. */
.line-table--ca .line-table__head > .num,
.line-table--ca .line-row > .num { font-variant-numeric: tabular-nums; }

/* The compact date stamp on this grid only. Tabular figures so the columns of
   dates align down the page. */
.line-table--ca .ca-stamp { font-variant-numeric: tabular-nums; }

/* The results box scrolls sideways on its own rather than the page body.
   Both numbers are the derived sums above; --cwr overrides --ca because its
   money block is wider, and it carries BOTH classes. */
.ca-results .line-table--ca .line-table__head,
.ca-results .line-table--ca .line-row { min-width: 1470px; }
.ca-results .line-table--cwr .line-table__head,
.ca-results .line-table--cwr .line-row { min-width: 1495px; }

/* ---------- The consolidation tick ----------
   One box per row, and one in the header covering everything loaded. Centred
   in its track and given a comfortable target: this is a column somebody
   clicks down repeatedly, and a 13px box in a 40px cell is a column of misses.
   Overflow is re-enabled because the shared cell rule clips, and a focus ring
   drawn at the edge of a 40px track would be cut in half. */
.ca-tick {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}
.ca-tick__box {
    width: 16px;
    height: 16px;
    margin: 0;
    cursor: pointer;
    accent-color: var(--c-primary);
}

/* ---------- The one-button selection strip ----------
   Under the results, not above them: the ticks are made going down the list,
   and the button that acts on them belongs where the reading ends. Sticky
   would be the other answer and is deliberately not used -- it would cover the
   last row of a grid that already scrolls sideways. */
.ca-select {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 12px 16px;
    border-top: 1px solid var(--c-border);
    background: var(--panel-2);
}
.ca-select__hint {
    flex: 1 1 260px;
    min-width: 0;
    font-size: 12px;
    color: var(--c-text-muted);
}

/* "grows with selection", beside a report's name in the tick-list. A quiet
   marker, not a warning: the report is perfectly valid at any size and the
   alert below says what to do about it. */
.crq-item__tag {
    display: inline-block;
    margin-left: 8px;
    padding: 1px 7px;
    border-radius: 999px;
    background: var(--c-bg-alert);
    color: var(--c-text-muted);
    font-size: 11px;
    font-weight: 500;
    text-transform: lowercase;
    letter-spacing: .02em;
    vertical-align: middle;
    white-space: nowrap;
}

/* ============================================================================
   Setup / Cashout Options (Pages/Setup/CashoutOptions.aspx)
   ========================================================================== */

/* A settings checkbox whose explanation matters as much as its label -- the
   consequence of the choice is not guessable from four words, and this one
   changes what every close-out sheet in the company looks like. */
.copt-option {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
    cursor: pointer;
}

.copt-option__text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.copt-option__name { font-weight: 600; font-size: 14px; color: var(--c-text); }
.copt-option__desc { font-size: 12px; color: var(--c-text-muted); max-width: 70ch; }

/* ============================================================================
   Order links inside cashout reports, and the read-only order lookup they
   open (Pages/Orders/OrderLookup.aspx).
   ========================================================================== */

/* On screen an OrderID is a link to the read-only order view. ON PAPER IT MUST
   NOT LOOK LIKE ONE: the PDF renderer never emits it at all, so a browser
   printout that showed a blue underline would be the odd one out of the three
   outputs. Colour and decoration are reset rather than the link removed,
   because the number still has to print. */
.crq-order-link { color: var(--c-primary); text-decoration: underline; }
.crq-order-link:hover { text-decoration: none; }

/* A report that ran and found nothing, marked so it can be told apart at a
   glance when the operator has NOT asked to skip blanks. */
.crq-report--empty .crq-report__title { color: var(--c-text-muted); }

.crq-skip { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; margin-right: auto; }

.ol-scroll { overflow-x: auto; }

/* Item / When / Type / Holder / Employee / Cashout / Amount, and the payments
   table below it repeats the last three so the two cards read as one page. The
   When track is wide enough for the full "Sep 3, 2026 11:41 AM" stamp; this
   page keeps the long format, unlike the Cashout Administration grid, because
   it shows one order rather than a screenful of tills.

   min-width is DERIVED. Item and Holder are the flexible pair and both carry
   minmax floors rather than a bare 1fr -- a 1fr can be squeezed to nothing,
   which is how the Cashout Administration grid once rendered a location column
   eight pixels wide.

     items    fixed 180 + 90 + 130 + 90 + 120           =  610
              floors 160 (item) + 140 (holder)          +  300
              gaps 6 x 12                               +   72
              padding                                   +   32   -> 1014, use 1020

     payments fixed 180 + 130 + 90 + 120                =  520
              floor 120 (type)                          +  120
              gaps 4 x 12                               +   48
              padding                                   +   32   ->  720 */
.line-table--ol .line-table__head,
.line-table--ol .line-row {
    grid-template-columns:
        minmax(160px, 1fr)  /* item     */
        180px               /* when     */
        90px                /* type     */
        minmax(140px, 1fr)  /* holder   */
        130px               /* employee */
        90px                /* cashout  */
        120px;              /* amount   */
    align-items: center;
}

.line-table--olp .line-table__head,
.line-table--olp .line-row {
    grid-template-columns:
        180px               /* when     */
        minmax(120px, 1fr)  /* type     */
        130px               /* employee */
        90px                /* cashout  */
        120px;              /* amount   */
    align-items: center;
}

/* An employee name is the one cell here that can outgrow its column. Clipped
   with a title rather than wrapped, so a long name cannot make one row twice
   the height of its neighbours. */
.line-table--ol .ol-who,
.line-table--olp .ol-who { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }

.ol-scroll .line-table--ol .line-table__head,
.ol-scroll .line-table--ol .line-row { min-width: 1020px; }
.ol-scroll .line-table--olp .line-table__head,
.ol-scroll .line-table--olp .line-row { min-width: 720px; }

/* Label / value pairs. Two columns so the values line up down the card. */
/* NO font-size here. It was pinned at 13px, which left this page's four
   stacked cards reading at two different sizes -- the two label/value cards
   at 13px and the two line-tables at the body's 14px, one under the other.
   Inheriting is the fix: the cards now match each other and every other card
   in the app. */
.ol-facts, .ol-totals {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 6px 20px;
    margin: 0;
}
.ol-facts dt, .ol-totals dt { color: var(--c-text-muted); }
.ol-facts dd, .ol-totals dd { margin: 0; }
.ol-totals dd { font-variant-numeric: tabular-nums; }
.ol-totals .is-strong { font-weight: 700; }

/* Money as TEXT rather than as a grid cell -- a totals value, or a REFD in a
   type column. .line-row__price.is-credit cannot be reused for those: it
   carries text-align and font-weight, and its weight would undo the bold on
   the Balance line. Same hardcoded credit red, theme-independent by project
   rule; the plain case is stated rather than inherited for the same reason it
   is on the Cashout Administration grid. */
.is-credit-text { color: #c8102e; }
[data-theme="dark"] .is-credit-text { color: #ff6b80; }
.is-plain-text  { color: var(--c-text); }

@media print {
    /* Paper must match the PDF exactly: the PDF has no links in it, so the
       screen's link styling is stripped rather than carried onto the page. */
    .crq-order-link { color: inherit; text-decoration: none; }
}

/* ---------- Hub pages (Admin / Setup / Help) ----------
   Admin, Setup and Help used to be collapsible fly-outs in the sidebar. They
   are pages of cards now, grouped into sections by the job the entry does.

   The icon is deliberately LARGER here than anywhere else in the app (28px in
   a 52px tile, against the sidebar's 18px). A hub page is chosen from across
   the room and scanned by shape before it is read, which is the one place in
   this app where an icon is doing real work rather than decorating a label --
   so the entries in these three groups each carry their own, and no two in a
   section repeat. Everywhere else an icon sits beside text that already says
   what it is, and a shared cog costs nothing. */
.hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 10px;
}
.hub-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--c-border);
    border-radius: 10px;
    background: var(--c-surface);
    color: inherit;
    text-decoration: none;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
a.hub-card:hover {
    border-color: color-mix(in srgb, var(--c-primary) 55%, var(--c-border));
    box-shadow: 0 2px 4px rgba(0,0,0,.05), 0 8px 18px rgba(15,18,40,.07);
    transform: translateY(-1px);
}
a.hub-card:focus-visible {
    outline: 2px solid var(--c-primary);
    outline-offset: 2px;
}
.hub-card__icon {
    flex: 0 0 auto;
    width: 52px; height: 52px;
    border-radius: 10px;
    display: inline-flex; align-items: center; justify-content: center;
    background: color-mix(in srgb, var(--c-primary) 12%, transparent);
    color: var(--c-primary);
}
.hub-card__icon .icon { width: 28px; height: 28px; }
.hub-card__text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.hub-card__title { font-weight: 600; line-height: 1.25; }
.hub-card__desc {
    color: var(--c-text-muted);
    font-size: 12px;
    line-height: 1.4;
}

/* A registered entry with nowhere to go yet. Rendered rather than dropped, so
   the hub page and Setup / Menu Items agree about what exists. */
.hub-card--inert { opacity: .55; cursor: default; }
.hub-card--inert .hub-card__icon {
    background: color-mix(in srgb, var(--c-text-muted) 14%, transparent);
    color: var(--c-text-muted);
}

/* ---------- Icons added for the hub cards ----------
   Same 24x24 stroke-2 mask style as every other icon in this file. */
.icon-pass      { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='2' y='5' width='20' height='14' rx='2'/><path d='M2 10h20'/><path d='M7 15h4'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='2' y='5' width='20' height='14' rx='2'/><path d='M2 10h20'/><path d='M7 15h4'/></svg>"); }
.icon-receipt   { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M5 3v18l2-1.5L9 21l2-1.5L13 21l2-1.5L17 21l2-1.5V3z'/><path d='M9 8h6'/><path d='M9 12h6'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M5 3v18l2-1.5L9 21l2-1.5L13 21l2-1.5L17 21l2-1.5V3z'/><path d='M9 8h6'/><path d='M9 12h6'/></svg>"); }
.icon-scale     { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M12 3v18'/><path d='M7 21h10'/><path d='M3 8h18'/><path d='M6 8l-3 6h6z'/><path d='M18 8l-3 6h6z'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M12 3v18'/><path d='M7 21h10'/><path d='M3 8h18'/><path d='M6 8l-3 6h6z'/><path d='M18 8l-3 6h6z'/></svg>"); }
.icon-code      { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M9 18l-6-6 6-6'/><path d='M15 6l6 6-6 6'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M9 18l-6-6 6-6'/><path d='M15 6l6 6-6 6'/></svg>"); }
.icon-trash     { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M3 6h18'/><path d='M8 6V4h8v2'/><path d='M6 6l1 14h10l1-14'/><path d='M10 11v5'/><path d='M14 11v5'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M3 6h18'/><path d='M8 6V4h8v2'/><path d='M6 6l1 14h10l1-14'/><path d='M10 11v5'/><path d='M14 11v5'/></svg>"); }
.icon-wrench    { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M15 4a5 5 0 0 0-4.6 7L4 17.4 6.6 20l6.4-6.4A5 5 0 0 0 20 9l-3 1-2-2 1-3a5 5 0 0 0-1-1z'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M15 4a5 5 0 0 0-4.6 7L4 17.4 6.6 20l6.4-6.4A5 5 0 0 0 20 9l-3 1-2-2 1-3a5 5 0 0 0-1-1z'/></svg>"); }
.icon-compare   { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M4 8h13l-3-3'/><path d='M20 16H7l3 3'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M4 8h13l-3-3'/><path d='M20 16H7l3 3'/></svg>"); }
.icon-clipboard { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='5' y='4' width='14' height='17' rx='2'/><path d='M9 4V3h6v1'/><path d='M9 10h6'/><path d='M9 14h6'/><path d='M9 18h3'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='5' y='4' width='14' height='17' rx='2'/><path d='M9 4V3h6v1'/><path d='M9 10h6'/><path d='M9 14h6'/><path d='M9 18h3'/></svg>"); }
.icon-key       { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='8' cy='8' r='4'/><path d='M11 11l9 9'/><path d='M17 17l2-2'/><path d='M15 15l2-2'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='8' cy='8' r='4'/><path d='M11 11l9 9'/><path d='M17 17l2-2'/><path d='M15 15l2-2'/></svg>"); }
.icon-sliders   { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M4 7h16'/><path d='M4 12h16'/><path d='M4 17h16'/><circle cx='9' cy='7' r='2'/><circle cx='15' cy='12' r='2'/><circle cx='8' cy='17' r='2'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M4 7h16'/><path d='M4 12h16'/><path d='M4 17h16'/><circle cx='9' cy='7' r='2'/><circle cx='15' cy='12' r='2'/><circle cx='8' cy='17' r='2'/></svg>"); }
.icon-pulse     { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M2 12h5l2-6 4 13 2-7h7'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M2 12h5l2-6 4 13 2-7h7'/></svg>"); }

/* ---------- Passes Printed ----------
   A log, not a table: one line per print, newest first, scanned top-down for a
   name or an order number rather than read column by column. Grid rather than
   <table> so the pills sit on the baseline and the row collapses cleanly on a
   narrow till screen. */
.pp-list { display: flex; flex-direction: column; }
.pp-row {
    display: grid;
    grid-template-columns: 110px 88px 190px minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    padding: 8px 4px;
    border-bottom: 1px solid var(--c-border);
}
.pp-row:last-child { border-bottom: 0; }
.pp-row:hover { background: color-mix(in srgb, var(--c-primary) 4%, transparent); }
.pp-row__when { color: var(--c-text-muted); font-size: 12px; white-space: nowrap; }
.pp-row__pass { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 12px; }
.pp-row__who  { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; min-width: 0; }
.pp-row__who .pill { text-decoration: none; }
.pp-row__what, .pp-row__where {
    color: var(--c-text-muted);
    font-size: 12px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
@media (max-width: 900px) {
    .pp-row {
        grid-template-columns: 1fr 1fr;
        row-gap: 4px;
    }
    .pp-row__pass, .pp-row__what, .pp-row__where { grid-column: 1 / -1; }
}

/* ---------- Web store (Woo) order lookup ---------- */
.line-table--sr-woo .line-table__head,
.line-table--sr-woo .line-row {
    /* Same last + first split as the Orders card above it, and deliberately the
       same proportions: a numeric query renders both cards and the two grids
       are read as one list, so their name columns should not step. */
    grid-template-columns: 120px minmax(0, 1.2fr) minmax(0, 1fr) 110px 130px 150px;
}

.wol-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 10px 18px;
}
.wol-field { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.wol-field--wide { grid-column: 1 / -1; }
.wol-field__label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .3px;
    color: var(--c-text-muted);
}
.wol-field__val { overflow-wrap: anywhere; }
.wol-note { margin-top: 12px; }

.wol-lines { display: flex; flex-direction: column; gap: 6px; }
.wol-line {
    border: 1px solid var(--c-border);
    border-radius: 8px;
    padding: 10px 12px;
}
/* A probable duplicate is TINTED, never hidden: the rule that flags it also
   fires on genuine repeats, so it is a prompt to look, not a verdict. */
.wol-line--dup { border-color: color-mix(in srgb, var(--warn-soft-ink) 45%, var(--c-border)); }
.wol-line__top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 160px 50px 100px;
    gap: 10px;
    align-items: baseline;
}
.wol-line__name { font-weight: 600; overflow-wrap: anywhere; }
.wol-line__sku, .wol-line__qty { color: var(--c-text-muted); font-size: 12px; }
.wol-line__meta {
    margin-top: 6px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 14px;
    font-size: 12px;
    color: var(--c-text-muted);
}
.wol-meta { overflow-wrap: anywhere; }
.wol-meta__k { font-weight: 600; }

@media (max-width: 900px) {
    .wol-line__top { grid-template-columns: 1fr 1fr; }
    .wol-line__name { grid-column: 1 / -1; }
    .line-table--sr-woo { overflow-x: auto; }
    .line-table--sr-woo .line-table__head,
    .line-table--sr-woo .line-row { min-width: 630px; }
}

/* =============================================================================
   ROW STATUS ICONS -- the monochrome three-state language
   =============================================================================
   Used by the icon band on each person's row in Edit Order (waiver, age match,
   print, hotlist). Deliberately two colours and two weights, nothing more:

     gray            not configured, not satisfied, or purely informational
     blue OUTLINE    actionable, or a condition worth acting on
     blue SOLID      satisfied / asserted -- the strongest statement an icon makes

   Semantic colour (amber warnings, red danger) is deliberately NOT used here.
   Darren's call 2026-09-02: these icons sit four-abreast on every line of a
   busy order, and a row of traffic lights reads as alarm rather than as
   information. The negative/credit red stays the only hardcoded colour on the
   page, which is what keeps it meaning something.

   OUTLINE vs SOLID is a different MASK, not a different colour: .icon paints
   the mask with background-color: currentColor, so a mask drawn from a stroked
   path yields an outline glyph and one drawn from a filled path yields a solid
   one. That is why the -fill variants below exist rather than a CSS toggle.
   ========================================================================== */
.iconstat            { color: var(--c-text-muted); }
.iconstat--on        { color: var(--c-primary); }

/* A status icon that carries information but nothing to click. Rendered as a
   span rather than an anchor so it is already out of the tab order; this only
   stops it LOOKING like a dead control. It keeps full opacity on purpose --
   it is not disabled, it is simply not a button, and dimming it would imply
   something is broken. */
.iconstat--static    { cursor: default; }
.iconstat--static:hover { background: none; }

/* Solid counterparts of two outline icons. Same artwork, filled path, so the
   pair reads as one icon in two states rather than as two different icons. */
.icon-flame-fill { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'><path d='M12 3c1 4 5 5 5 10a5 5 0 0 1-10 0c0-2 1-3 2-4-1-2 1-4 3-6z'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'><path d='M12 3c1 4 5 5 5 10a5 5 0 0 1-10 0c0-2 1-3 2-4-1-2 1-4 3-6z'/></svg>"); }
.icon-print-fill { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'><path d='M7 3h10v5H7z'/><rect x='4' y='9' width='16' height='8' rx='1'/><path d='M7 16h10v5H7z'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'><path d='M7 3h10v5H7z'/><rect x='4' y='9' width='16' height='8' rx='1'/><path d='M7 16h10v5H7z'/></svg>"); }

/* The age-match indicator has no outline/solid pair -- it is always the same
   glyph and only the colour changes, because "age matches" and "no age
   configured" are not two strengths of the same statement. */
.icon-birthday { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M4 21h16v-7H4z'/><path d='M4 14c2 0 2-2 4-2s2 2 4 2 2-2 4-2 2 2 4 2'/><path d='M12 3v4'/><circle cx='12' cy='2.5' r='1'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M4 21h16v-7H4z'/><path d='M4 14c2 0 2-2 4-2s2 2 4 2 2-2 4-2 2 2 4 2'/><path d='M12 3v4'/><circle cx='12' cy='2.5' r='1'/></svg>"); }

/* ---------- Order member sheets ----------
   Shared by the four read-only screens on the Edit Order action bar: Contact
   Info, Email Address, Print Status and Waiver Status. They render the same
   people in four ways, so the pieces every one of them needs live here rather
   than being copied into four page-local <style> blocks and drifting.       */

/* Secondary text inside a cell: "no email on file", "never printed". There is
   no site-wide muted class -- pages have been defining their own -- so this is
   the one these four share. */
.os-muted { color: var(--c-text-muted); font-style: italic; }

/* A member whose ENTIRE involvement in the order was reversed. The row is
   struck through, not hidden: they are part of the record of this order, and
   an operator who remembers selling to them needs to see what happened rather
   than find them missing. Only the name is struck -- striking the whole row
   would make the phone number they may still need to ring unreadable. */
.line-row.is-voided .os-name { text-decoration: line-through; color: var(--c-text-muted); }

/* The pick-up block on Email Address: every reachable address on one line, in
   a shape somebody can select and paste into a mail client. A plain block, not
   an input -- the page is read-only and a text box would invite typing into
   something that saves nowhere. */
.os-copy {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12.5px;
    line-height: 1.6;
    word-break: break-all;
    user-select: all;
    background: var(--panel-2);
    border: 1px solid var(--c-border);
    border-radius: 6px;
    padding: 10px 12px;
}

/* Several small facts stacked in one cell (waiver names, phone numbers) so a
   second one is never hidden behind an ellipsis on a screen whose whole job is
   to show them. */
.os-stack { display: flex; flex-direction: column; gap: 2px; }

/* =================================================================
   INNER-PAGE KIT -- 2026-09-26 (CSPS pilot)
   =================================================================
   The look Darren picked from two CSPS mockups, as SHARED pieces so a
   page opts in by class instead of copying CSS. Same typefaces as the
   rest of the app; only size, colour and navigation change. The
   `page-style` skill says which piece to use when.

     .crumbs        breadcrumb ABOVE the title (menu group / page)
     .masthead      large title + one-line intro + actions on the right
     .btn--soft     light-tinted secondary action (report, export, open)
     .btn--link     quiet text action (Back to..., Clear, Reset)
     .panel--card   white card whose body carries its own title block
     .filter-fields labelled filter fields, label above the control
     .grid-bar      the strip above a grid: summary figures + grid actions
     .grid-foot     the strip below it: count / pager, or a form's Save
     .pager         "Showing 1-25 of 78"  Previous  Next
     .toggle-switch a checkbox drawn as a toggle
     .chip-check    a checkbox drawn as a tick chip, with a count bubble
     .empty-card    empty state: icon tile, bold line, quiet line
     .pill.violet   the second category colour beside .pill.ok (no dot)
     .btn--danger   a quiet destructive button (soft red); .btn--link.danger a red link
     .btn--sm       alias of .btn--small (was defined only in csps.css)
     .filters select.text-input  a kit select inside the older .filters strip
     .card-pair     two cards side by side, stacking on a narrow screen
     .tbl tr.is-self  the viewer's own rows in a grid
     .tbl td.nowrap   a date or short cell that must not wrap
     .tbl th.th-group  a grouped column heading (first header row); .col-start its divider
     .tbl td.indent    a row under a tr.subtotal.is-group heading; td.is-key bold, td.is-todo warning ink
     .icon-trophy   a trophy (the Web Orders leaderboard)
     .home-stats--dense  six Home-style stat tiles in a row (div tiles do not lift)
     .hbars         a horizontal bar chart: one row per category, a bar per series, value + share at the tip
     .daychart      a "By hour" button whose hover / click card holds a one-day line chart (BulkPrintReportPage.DayChart)
     .copy-btn      a Copy button for a table (HTML + tab text) or a chart (PNG): [data-copy-from] in site.js
     .share-bar     a proportional bar in a grid cell (inner span width = the share)
     .home-stats--four  stat tiles four across (two across on a phone)

   Colours derive from --c-primary and the surface tokens, so a user
   theme, a deployment's brand colour and dark mode all carry through.
   ================================================================= */

.crumbs {
    display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
    margin: 2px 0 6px;
    font-size: 12.5px; color: var(--text-3);
}
.crumbs a { color: var(--text-3); text-decoration: none; }
.crumbs a:hover { color: var(--c-primary); text-decoration: underline; }
.crumbs__sep { color: var(--text-4); }
.crumbs [aria-current] { color: var(--text-2); }

.masthead {
    display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
    gap: 12px 24px;
    margin: 0 0 18px;
}
.masthead__title { min-width: 0; flex: 1 1 28rem; }
.masthead h1 {
    margin: 0 0 6px;
    font-size: 26px; font-weight: 700; line-height: 1.2; letter-spacing: -.015em;
}
.masthead__sub { margin: 0; max-width: 90ch; color: var(--text-2); font-size: 14px; line-height: 1.5; }
.masthead__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

/* Icons inside buttons: a step smaller than the 18px nav icons. */
.btn .icon { width: 15px; height: 15px; flex: 0 0 15px; }

.btn--soft {
    background: color-mix(in srgb, var(--c-primary) 11%, var(--c-surface));
    border-color: transparent;
    color: color-mix(in srgb, var(--c-primary) 82%, var(--c-text));
    font-weight: 600;
}
.btn--soft:hover {
    background: color-mix(in srgb, var(--c-primary) 19%, var(--c-surface));
    border-color: transparent;
}
.dark .btn--soft, [data-theme="dark"] .btn--soft {
    background: color-mix(in srgb, var(--c-primary) 24%, var(--c-surface));
    color: color-mix(in srgb, var(--c-primary) 45%, var(--c-text));
}
.dark .btn--soft:hover, [data-theme="dark"] .btn--soft:hover {
    background: color-mix(in srgb, var(--c-primary) 34%, var(--c-surface));
}
.btn--link { background: transparent; border-color: transparent; color: var(--text-2); }
.btn--link:hover { background: transparent; border-color: transparent; color: var(--c-primary); }

/* A white card whose body carries its own title block, for pages where the
   user's panel-head style (tint / solid / gradient) would be too loud. */
.panel--card { margin: 0 0 16px; }
.panel--card > .panel__body { padding: 16px 18px; gap: 12px; }
.card-title { margin: 0; font-size: 16px; font-weight: 650; }
.card-sub { margin: 2px 0 0; color: var(--text-2); font-size: 13px; line-height: 1.45; }

/* A labelled field in a filter strip: label above, control below. */
.filter-fields { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 14px; }
.filter-fields__end { display: flex; gap: 8px; align-items: center; }
.filter-field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.filter-field__label { font-size: 12px; font-weight: 500; color: var(--text-2); }
.filter-field .text-input { height: 36px; min-width: 10rem; }
.filter-field--wide .text-input { min-width: 15rem; }
.filter-note { font-size: 12.5px; color: var(--text-3); }
.filter-fields > .filter-note { padding-bottom: 9px; }  /* on the controls' text line */

/* Input with its button glued on the right ("Open member [____][Open]"). */
.joined { display: inline-flex; align-items: stretch; }
.joined .text-input { border-top-right-radius: 0; border-bottom-right-radius: 0; height: 34px; min-width: 0; width: 9rem; }
.joined .btn { border-top-left-radius: 0; border-bottom-left-radius: 0; }

.grid-bar {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    gap: 10px 16px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--line);
}
.grid-bar__stats { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.grid-bar__stat { font-size: 13px; color: var(--text-3); }
.grid-bar__stat b { font-size: 18px; font-weight: 700; color: var(--text); margin-right: 4px; font-variant-numeric: tabular-nums; }
.grid-bar__stat + .grid-bar__stat { padding-left: 14px; border-left: 1px solid var(--line); }
.grid-bar__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.grid-bar__label { font-size: 12.5px; color: var(--text-2); }

.grid-foot {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    gap: 10px 16px;
    padding: 12px 16px;
    border-top: 1px solid var(--line);
    font-size: 13px; color: var(--text-3);
}
.grid-foot__actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.pager { display: flex; align-items: center; gap: 8px; }

/* Grid cell conventions for the kit's grids (on top of .tbl). */
.tbl td.strong { font-weight: 700; }
.tbl td.dim, .tbl td .dim { color: var(--text-4); }
.tbl td a.row-link { color: var(--c-primary); font-weight: 500; text-decoration: none; }
.tbl td a.row-link:hover { text-decoration: underline; }
.tbl td.mid, .tbl th.mid { text-align: center; }
.tbl td .id-chip { margin-right: 8px; }

/* Empty state inside a card: icon tile, a bold line, a quiet line. */
.empty-card {
    display: flex; align-items: flex-start; gap: 14px;
    padding: 18px;
    border: 1px dashed var(--line);
    border-radius: var(--radius-sm);
    background: var(--panel-2);
}
.empty-card__icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; flex: 0 0 38px;
    border-radius: 10px;
    background: color-mix(in srgb, var(--c-primary) 11%, var(--c-surface));
    color: var(--c-primary);
}
.empty-card__title { margin: 0; font-weight: 600; font-size: 14px; color: var(--text); }
.empty-card__text { margin: 3px 0 0; font-size: 13px; color: var(--text-2); line-height: 1.45; }

/* Toggle: <label class="toggle-switch"><input type="checkbox" ...><span>Label</span></label>.
   Still a real checkbox, so it posts and is keyboard-operable. */
.toggle-switch { display: inline-flex; align-items: center; gap: 8px; height: 36px; font-size: 13px; color: var(--text-2); cursor: pointer; }
.toggle-switch input {
    appearance: none; margin: 0; flex: 0 0 auto;
    width: 34px; height: 20px; border-radius: 999px;
    background: var(--line); position: relative; cursor: pointer;
    transition: background .15s ease;
}
.toggle-switch input::before {
    content: ""; position: absolute; top: 2px; left: 2px;
    width: 16px; height: 16px; border-radius: 999px;
    background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25);
    transition: transform .15s ease;
}
.toggle-switch input:checked { background: var(--c-primary); }
.toggle-switch input:checked::before { transform: translateX(14px); }
.toggle-switch input:focus-visible { outline: 2px solid var(--c-primary); outline-offset: 2px; }
/* A switch that stops ALL contact (Member Edit's Never send). Red when on,
   pinned like .is-credit rather than themed: it must read the same on every
   brand. */
.toggle-switch--danger input:checked { background: #c8102e; }
[data-theme="dark"] .toggle-switch--danger input:checked { background: #ff6b80; }

/* Member Edit / Contact preferences: two groups side by side, stacked on a
   narrow screen. Each switch on its own line. */
.me-prefs { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px 32px; }
.me-prefs__group { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; }
.me-prefs__group--never { padding-left: 16px; border-left: 3px solid color-mix(in oklab, #c8102e 35%, transparent); }
.me-prefs__head { margin: 0; font-size: 13px; font-weight: 600; color: var(--text); }
.me-prefs__note { margin: 0 0 6px; font-size: 12.5px; color: var(--text-2); line-height: 1.45; }
.me-prefs__label { margin-top: 8px; font-size: 12.5px; color: var(--text-2); }
.me-prefs__group .text-input { width: 100%; }
.me-prefs__status { margin: 12px 0 0; font-size: 12.5px; color: var(--text-2); }
.me-prefs__status:empty { display: none; }
.me-prefs__actions { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.me-prefs__msg { font-size: 13px; color: var(--ok-soft-ink); }
.me-prefs__msg--error { color: #c8102e; }
[data-theme="dark"] .me-prefs__msg--error { color: #ff6b80; }

/* Tick chips: a checkbox drawn as a rounded chip, filled when ticked. The
   input stays in the label (visually hidden), so a click on the chip ticks
   it and it still posts. */
.chip-check {
    position: relative;
    display: inline-flex; align-items: center; gap: 8px;
    padding: 5px 6px 5px 12px;
    border: 1px solid var(--line); border-radius: 999px;
    background: var(--c-surface);
    font-size: 13px; color: var(--text); cursor: pointer;
}
.chip-check input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.chip-check__sub { color: var(--text-3); font-size: 12px; }
.chip-check__count {
    min-width: 22px; padding: 2px 7px; border-radius: 999px;
    background: var(--line-soft); color: var(--text-2);
    font-size: 11.5px; font-weight: 600; text-align: center; font-variant-numeric: tabular-nums;
}
.chip-check:has(input:checked) {
    border-color: color-mix(in srgb, var(--c-primary) 55%, var(--line));
    background: color-mix(in srgb, var(--c-primary) 10%, var(--c-surface));
    color: color-mix(in srgb, var(--c-primary) 80%, var(--c-text));
    font-weight: 600;
}
.chip-check:has(input:checked) .chip-check__count { background: var(--c-primary); color: #fff; }
.chip-check:has(input:focus-visible) { outline: 2px solid var(--c-primary); outline-offset: 2px; }
.chip-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.chip-row__label { font-size: 12.5px; font-weight: 500; color: var(--text-2); margin-right: 4px; }

.pill.violet { background: #ece6fb; color: #5a3ab4; }
.dark .pill.violet, [data-theme="dark"] .pill.violet { background: rgba(124, 92, 230, 0.24); color: #c9b8ff; }

.icon-download   { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M4 15v3a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-3'/><path d='M12 4v12'/><path d='M7 11l5 5 5-5'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M4 15v3a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-3'/><path d='M12 4v12'/><path d='M7 11l5 5 5-5'/></svg>"); }
.icon-arrow-left { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M19 12H5'/><path d='M11 6l-6 6 6 6'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M19 12H5'/><path d='M11 6l-6 6 6 6'/></svg>"); }
.icon-chart      { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'><path d='M6 20V11'/><path d='M12 20V5'/><path d='M18 20v-6'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'><path d='M6 20V11'/><path d='M12 20V5'/><path d='M18 20v-6'/></svg>"); }
.icon-mountain   { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M3 20l6.5-11 4 6.5 2.5-3.5 5 8z'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M3 20l6.5-11 4 6.5 2.5-3.5 5 8z'/></svg>"); }

/* .btn--sm: the name several pages (Lockers, Act As, printagent.js) and
   csps.css use for .btn--small. It was defined only in csps.css, so outside
   CSPS those buttons rendered full size. */
.btn--sm { height: 28px; padding: 0 10px; font-size: 12px; }

/* A quiet destructive action (Employee Security's Disable and Remove): the
   soft button in red. Pages that want a SOLID red one (Fix Commit Errors,
   Remove Woo Order) still define their own .btn--danger, which wins. */
.btn--danger { background: var(--danger-soft); border-color: transparent; color: var(--danger-soft-ink); font-weight: 600; }
.btn--danger:hover { background: color-mix(in srgb, var(--danger) 22%, var(--c-surface)); border-color: transparent; }

/* A quiet destructive LINK (a per-line Delete). */
.btn--link.danger { color: var(--danger); }
.btn--link.danger:hover { color: var(--danger); text-decoration: underline; }

/* The older .filters strip (Online Order Monitor, Fix Commit Errors, ...)
   holding a kit .text-input select: size it to its content, not 100%. */
.filters select.text-input, .filter-row select.text-input { width: auto; }

/* Two cards side by side, one column below ~60rem (Web Orders' two
   leaderboards). The cards keep their own bottom margin, so no row gap. */
.card-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 26rem), 1fr)); column-gap: 16px; align-items: start; margin-top: 16px; }

/* The signed-in person's own rows in a kit grid (a leaderboard place). */
.tbl tbody tr.is-self td { background: color-mix(in srgb, var(--c-primary) 8%, var(--c-surface)); font-weight: 600; }

/* A cell that must not wrap: dates break at their hyphens in a squeezed column. */
.tbl td.nowrap, .tbl th.nowrap { white-space: nowrap; }

/* A trophy: the Web Orders leaderboard (hub card and the Commit screen's link). */
.icon-trophy     { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M8 4h8v5a4 4 0 0 1-8 0z'/><path d='M8 6H5a3 3 0 0 0 3 4'/><path d='M16 6h3a3 3 0 0 1-3 4'/><path d='M12 13v4'/><path d='M8 20h8'/><path d='M10 17h4'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M8 4h8v5a4 4 0 0 1-8 0z'/><path d='M8 6H5a3 3 0 0 0 3 4'/><path d='M16 6h3a3 3 0 0 1-3 4'/><path d='M12 13v4'/><path d='M8 20h8'/><path d='M10 17h4'/></svg>"); }

/* Home-style stat tiles off the Home page. --dense fits six in a row on a
   normal screen (Home's 220px minimum fits four); a tile that is a <div>, not a
   link, does not lift on hover, which would suggest it could be clicked. */
.home-stats--dense { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-bottom: 16px; }
div.home-stat:hover { transform: none; box-shadow: var(--c-shadow); }

/* Grouped column headings over a kit grid: a first header row of th.th-group
   cells spanning their columns (Bulk Pass Printing's "Nakiska in November"),
   and td/th.col-start drawing the divider where a group begins. */
.tbl thead tr.tbl-head-group th { padding-bottom: 4px; border-bottom: 0; }
.tbl thead th.th-group { text-align: center; color: var(--text-2); }
.tbl td.col-start, .tbl th.col-start { border-left: 1px solid var(--line); }

/* A row under a subtotal heading row (tr.subtotal), indented one step; and
   the row's key figure in bold, the "still to do" figure in the warning ink. */
.tbl td.indent { padding-left: calc(var(--pad-x) * 2); }
.tbl td.is-key { font-weight: 600; }
.tbl td.is-todo { color: var(--warn-soft-ink); font-weight: 600; }
/* A subtotal row that HEADS its group (the rows under it are td.indent):
   tinted and bold, so the groups read at a glance in a long grid. */
.tbl tr.subtotal.is-group td { background: var(--panel-2); font-weight: 600; color: var(--text); }

/* Horizontal bar chart (.hbars) -- first used by Bulk Passes / Summary.
   One row per category: label on the left, one thin bar per series on a
   SHARED scale, the value and its share written at the tip in text ink
   (never in the series colour). Bars are 14px (24px with .hbars--lg),
   square at the baseline and 4px-rounded at the data end, with a 2px gap
   between a row's bars. The width comes from an inline --w (0 to 1, a
   fraction of the row's largest value); 11rem is held back for the tip label
   so the longest bar never pushes its label off the card.

   Series colours are the validated two-hue pair (blue / orange), stepped
   separately for dark mode and checked against this site's own surfaces
   (#ffffff and #171b23): every CVD, normal-vision, lightness, chroma and
   3:1 contrast check passes in both modes (2026-10-03). Add a third series
   only after re-running that check. */
.hbars, .hbars-legend { --series-1: #2a78d6; --series-2: #eb6834; }
.dark .hbars, .dark .hbars-legend, [data-theme="dark"] .hbars, [data-theme="dark"] .hbars-legend { --series-1: #3987e5; --series-2: #d95926; }
.hbars-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 6px; font-size: 12.5px; color: var(--text-2); }
.hbars-legend__item { display: inline-flex; align-items: center; gap: 6px; }
.hbars-legend__key { width: 12px; height: 12px; border-radius: 3px; background: var(--series-1); }
.hbars-legend__key.is-s2 { background: var(--series-2); }
.hbars__row {
    display: grid; grid-template-columns: minmax(7rem, 13rem) 1fr; gap: 14px; align-items: center;
    padding: 9px 0; border-top: 1px solid var(--line-soft);
}
.hbars__row:first-child { border-top: 0; }
.hbars__label { font-size: 13px; font-weight: 600; color: var(--text); overflow-wrap: anywhere; }
.hbars__label small { display: block; font-size: 12px; font-weight: 400; color: var(--text-3); }
.hbars__bars { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hbars__track { display: flex; align-items: center; gap: 8px; min-height: 16px; }
.hbars__bar {
    flex: none; height: 14px; min-width: 2px;
    width: calc((100% - 11rem) * var(--w, 0));
    border-radius: 0 4px 4px 0; background: var(--series-1);
}
.hbars__bar.is-s2 { background: var(--series-2); }
.hbars__bar.is-zero { background: var(--line); }
.hbars--lg .hbars__track { min-height: 26px; }
.hbars--lg .hbars__bar { height: 24px; }
/* A stacked bar (.hbars__stack): one bar split into parts -- first used for
   the queued passes whose holder will ski Nakiska before November 15. The
   part (.is-nk) sits at the baseline in a DARKER step of the bar's own
   series colour (blue 650 / the matching orange; on dark surfaces a LIGHTER
   step, so it still stands forward), then a 2px surface gap, then the rest
   in the series colour. Same hues as the validated pair, so no third series;
   the legend key and the written count beside the bar carry it too, so it is
   never colour alone. Only the data end is rounded, as on a plain bar. */
.hbars, .hbars-legend { --series-1-nk: #104281; --series-2-nk: #a3441c; }
.dark .hbars, .dark .hbars-legend, [data-theme="dark"] .hbars, [data-theme="dark"] .hbars-legend { --series-1-nk: #9ec5f4; --series-2-nk: #f4b08f; }
.hbars__bar.hbars__stack { display: flex; gap: 2px; background: transparent; overflow: hidden; }
.hbars__seg { flex-basis: 0; min-width: 0; background: var(--series-1); }
.hbars__seg.is-nk { min-width: 2px; background: var(--series-1-nk); }
.hbars__stack.is-s2 .hbars__seg { background: var(--series-2); }
.hbars__stack.is-s2 .hbars__seg.is-nk { background: var(--series-2-nk); }
.hbars-legend__key.is-nk { background: var(--series-1-nk); }
.hbars-legend__key.is-nk.is-s2 { background: var(--series-2-nk); margin-left: -4px; }
/* The part's count goes on its own line under the value: the 11rem held back
   for the tip label is sized for "13,070 73.7% of queued", not for both. */
.hbars__nk { display: block; font-size: 12px; line-height: 1.3; }
.hbars__val { font-size: 12.5px; color: var(--text-3); white-space: nowrap; font-variant-numeric: tabular-nums; }
.hbars__val b { font-size: 13px; font-weight: 600; color: var(--text); margin-right: 4px; }
@media (max-width: 600px) {
    .hbars__row { grid-template-columns: 1fr; gap: 4px; }
}

/* "By hour" day chart (.daychart) -- first used by Bulk Passes / Queued and
   printed and Reloaded passes (detail views). A button that opens a card on
   hover or keyboard focus, and pins it open on click (.is-open). The card
   holds an inline-SVG line of one day's counts per hour. One series, so the
   line takes .hbars' --series-1 (validated with it) and every label stays in
   text ink. The card hangs from a transparent strip (padding-top on
   __pop) so the pointer can travel from the button into it without the hover
   dropping. */
.daychart { position: relative; display: inline-block; --series-1: #2a78d6; }
.dark .daychart, [data-theme="dark"] .daychart { --series-1: #3987e5; }
/* The card is wider than the panel's clipped edge allows (as .hover-card-host). */
.panel:has(.daychart) { overflow: visible; }
/* Opens rightwards from the button; .is-flip (set on hover / focus when there
   is no room on the right) opens it leftwards instead. */
.daychart__pop {
    display: none; position: absolute; left: 0; top: 100%; z-index: 40;
    padding-top: 6px; width: min(600px, calc(100vw - 32px));
}
.daychart.is-flip .daychart__pop { left: auto; right: 0; }
.daychart:hover .daychart__pop,
.daychart:focus-within .daychart__pop,
.daychart.is-open .daychart__pop { display: block; }
.daychart__card {
    background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, .16); padding: 12px 14px 10px; text-align: left;
}
.daychart__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.daychart__head b { color: var(--text); font-size: 14px; }
.daychart__day { color: var(--text-2); font-size: 13px; }
.daychart__nav { display: flex; align-items: center; gap: 2px; }
.daychart__close { font-size: 18px; line-height: 1; padding-inline: 8px; display: none; }
.daychart.is-open .daychart__close { display: inline-flex; }
.daychart__sum { margin: 4px 0 2px; font-size: 12.5px; color: var(--text-2); }
.daychart__note { margin: 2px 0 0; font-size: 11.5px; color: var(--text-3); }
.lc-svg { display: block; width: 100%; height: auto; overflow: visible; }
.lc-svg .dc-grid { stroke: var(--line); stroke-width: 1; }
.lc-svg .dc-ylab { fill: var(--text-3); font-size: 11px; text-anchor: end; font-variant-numeric: tabular-nums; }
.lc-svg .dc-xlab { fill: var(--text-3); font-size: 11px; text-anchor: middle; font-variant-numeric: tabular-nums; }
.lc-svg .dc-line { fill: none; stroke: var(--series-1); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.lc-svg .dc-area { fill: var(--series-1); opacity: .10; stroke: none; }
.lc-svg .dc-hit { fill: transparent; }
.lc-svg .dc-guide { stroke: var(--text-3); stroke-width: 1; stroke-dasharray: 3 3; opacity: 0; }
.lc-svg .dc-dot { fill: var(--series-1); stroke: var(--panel); stroke-width: 2; opacity: 0; }
.lc-svg .dc-tip { fill: var(--text); font-size: 12px; font-weight: 600; text-anchor: middle; opacity: 0; }
.lc-svg .dc-col:hover .dc-guide,
.lc-svg .dc-col:hover .dc-dot,
.lc-svg .dc-col:hover .dc-tip { opacity: 1; }
/* The shared line chart (App_Code/LineChart.vb) wherever it is drawn: the
   series colours are .hbars' validated pair, the second for a second line. */
.lc-svg { --series-1: #2a78d6; --series-2: #eb6834; }
.dark .lc-svg, [data-theme="dark"] .lc-svg { --series-1: #3987e5; --series-2: #d95926; }
.lc-svg .dc-line.is-s2 { stroke: var(--series-2); }
.lc-svg .dc-dot.is-s2  { fill: var(--series-2); }
/* A chart with only one point to draw shows its dots and values outright
   (LineChart.Svg): a one-point line is invisible. */
.lc-svg .dc-dot.is-solo { opacity: 1; }
.lc-svg .dc-val { fill: var(--series-1); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.lc-svg .dc-val.is-s2 { fill: var(--series-2); }
.lc-svg .dc-key { fill: var(--text-2); font-size: 11.5px; }
.lc-svg .dc-legend { transition: opacity .15s; }
.lc-svg:hover .dc-legend { opacity: 0; }
.bis-steps { display: flex; flex-wrap: wrap; gap: 2px; margin-top: 4px; }
/* A line chart drawn inline in a card (Campaign sends), not in a popover. */
.linechart { max-width: 900px; }  /* LineChart.Svg is drawn 860 wide here */
.linechart .hbars-legend { margin-top: 2px; }

/* ===========================================================================
   Weekly reports (Admin / Weekly reports): the printed Weekly Summary and
   the on-screen Weekly Dashboard. Both are rendered by WeeklyReportPage;
   the classes here are shared, and the .wr-sheet rules are the paper.
   =========================================================================== */
.wr-picker { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; }
/* Weekly / Season / Dates: three buttons (links that open each mode); the
   one on screen is .btn--primary. */
.wr-modes { display: inline-flex; gap: 6px; align-self: flex-end; flex-wrap: wrap; }
/* Sales report settings: the current list above the table, ticked rows tinted. */
/* Sales dashboards (Admin / Sales reports / Dashboards): included rows
   tinted; "Select all" sits in the tick column's header. */
.srs-tbl tr.is-in td { background: color-mix(in oklab, var(--c-primary) 7%, var(--panel)); }
.srs-all { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; cursor: pointer; }
.srs-list td.actions { white-space: nowrap; text-align: right; }
/* The reports' dashboard picker, ahead of the Week / Season / Dates buttons. */
.wr-dashpick { display: flex; align-items: flex-end; gap: 8px; flex-wrap: wrap; }
.wr-dashpick select { min-width: 14rem; }
/* A season by month is up to thirteen columns: smaller figures so it fits. */
.wr-days--many td.num, .wr-days--many th.num { font-size: 11.5px; padding-left: 4px; padding-right: 4px; }
.wr-sheet .wr-days--many td.num, .wr-sheet .wr-days--many th.num { font-size: 9px; padding-left: 2px; padding-right: 2px; }
.wr-scope { margin: 4px 0 12px; color: var(--text-2); font-size: 13.5px; }

/* Headline tiles: this week big, last year small, the change coloured. */
.wr-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(104px, 1fr)); gap: 8px; margin: 0 0 14px; }
.wr-kpi { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; }
.wr-kpi__lbl { margin: 0; font-size: 11px; text-transform: uppercase; letter-spacing: .07em; color: var(--text-3); font-weight: 500; }
.wr-kpi__val { margin: 3px 0 0; font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.15; }
.wr-kpi__ly { margin: 2px 0 0; font-size: 12px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.wr-chg.is-up   { color: var(--ok); }
.wr-chg.is-down { color: var(--danger); }
.wr-kpi .wr-chg { font-weight: 600; }

/* Credits are red whatever the theme (CLAUDE.md), so a hardcoded colour. */
.wr-tbl td.is-neg { color: #c0392b; }
/* The Discounts / Comps card headline (WeeklyReportPage.DiscCompCard). */
.wr-dc .grid-bar__stat b.is-neg { color: #c0392b; }
.wr-tbl td.wr-chg { white-space: nowrap; font-weight: 600; }
.wr-tbl td.wr-name { overflow-wrap: anywhere; }
.wr-tbl tr.wr-sep td { border-top: 1px solid var(--line); }
.wr-tbl tr.wr-other td { font-style: italic; color: var(--text-2); }
/* Product groups past the top ten, until "Show all" (site.js "Show all rows"). */
.wr-tbl tr[hidden] { display: none; }
[data-expand-rows][aria-expanded="true"] .icon-chevron { transform: rotate(180deg); }
.wr-tbl td.is-key { font-weight: 600; }
.wr-tbl th.col-start, .wr-tbl td.col-start { border-left: 1px solid var(--line); }
.wr-days td.wr-yr { color: var(--text-3); font-size: 12px; white-space: nowrap; }
.wr-days tr.wr-ly td { color: var(--text-3); }
.wr-days tr.wr-ty td { border-bottom: 0; }

/* ---- Dashboard board ---------------------------------------------------
   The Sales Dashboard's cards on one two-column board the person arranges:
   hover a card's top-right corner for the move handle (drag) and the
   wide / narrow toggle. Width is data-size "h" (one column) or "f" (both).
   Order and widths are saved per person (DashLayout.ashx) and replayed by
   the page; the dragging itself is site.js "Dashboard boards". Below about
   900px of board every card takes the full width, whatever its size. */
.wr-board { container: wrboard / inline-size; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
.wr-tile { position: relative; min-width: 0; }
.wr-tile[data-size="f"] { grid-column: 1 / -1; }
.wr-tile > .panel { margin: 0; }
/* A table never squeezes below its natural width in a narrow card (the row
   labels would break a letter per line); its .tbl-wrap scrolls instead. */
.wr-tile .tbl-wrap > table { min-width: max-content; }
@container wrboard (max-width: 900px) {
    .wr-tile { grid-column: 1 / -1; }
    .wr-tile__btn--size { display: none; }
}
/* A full-width chart keeps a sensible height rather than scaling up. */
.wr-tile[data-size="f"] .lc-svg { max-height: 340px; }
/* Room for the corner tools beside the title. */
.wr-tile .panel__body > div:first-child { padding-right: 64px; }
/* The hover zone is the corner itself (padding = a forgiving target); the
   tools fade in when the pointer reaches it, or on keyboard focus. */
.wr-tile__tools { position: absolute; top: 0; right: 0; z-index: 2; display: flex; gap: 4px; padding: 10px 10px 16px 24px; opacity: 0; transition: opacity .12s ease; }
.wr-tile__tools:hover, .wr-tile__tools:focus-within, .wr-tile.is-drag .wr-tile__tools { opacity: 1; }
@media (hover: none) { .wr-tile__tools { opacity: 1; } }
.wr-tile__btn { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; padding: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); color: var(--text-2); cursor: pointer; }
.wr-tile__btn:hover, .wr-tile__btn:focus-visible { color: var(--primary); border-color: var(--primary); }
.wr-tile__btn .icon { width: 16px; height: 16px; flex-basis: 16px; }
.wr-tile__btn--move { cursor: grab; touch-action: none; }
/* While dragging: the card holds its new place, dimmed and outlined, and a
   small copy of it follows the pointer. */
[data-board].is-dragging { user-select: none; }
[data-board].is-dragging, [data-board].is-dragging * { cursor: grabbing; }
.wr-tile.is-drag > .panel, .wr-tile.is-drag > .wr-kpi { opacity: .4; outline: 2px dashed var(--primary); outline-offset: 3px; }
.wr-tile-ghost { position: fixed; top: 0; left: 0; z-index: 1000; pointer-events: none; overflow: hidden; transform-origin: 0 0; border-radius: var(--radius); box-shadow: 0 12px 32px rgba(0, 0, 0, .22); opacity: .92; }
.wr-tile-ghost > .panel { margin: 0; }
.wr-tile-ghost .wr-tile__tools { display: none; }
.wr-tile[hidden] { display: none; }
/* The headline figures are a board too: same tools, smaller. The tile
   wrapper fills its grid cell so every figure in a row is the same height. */
.wr-kpis[data-board] { align-items: stretch; }
.wr-tile--kpi > .wr-kpi { height: 100%; }
.wr-tile--kpi .wr-tile__tools { padding: 4px 4px 10px 14px; gap: 2px; }
.wr-tile--kpi .wr-tile__btn { width: 22px; height: 22px; border-radius: 6px; }
.wr-tile--kpi .wr-tile__btn .icon { width: 13px; height: 13px; flex-basis: 13px; }
.wr-tile__btn--remove:hover, .wr-tile__btn--remove:focus-visible { color: #c0392b; border-color: #c0392b; }
/* Add items / Reset layout, above the figures. */
.wr-board-bar { display: flex; justify-content: flex-end; align-items: center; gap: 6px; margin: -6px 0 8px; }
.wr-board-bar:not(:has(button:not([hidden]))) { display: none; }
/* .btn sets display, which beats the hidden attribute: Reset layout showed
   before anything had been changed. */
.wr-board-bar [hidden] { display: none; }
.wr-add { position: relative; }
.wr-add__menu { position: absolute; right: 0; top: calc(100% + 4px); z-index: 20; display: flex; flex-direction: column; min-width: 240px; max-height: 60vh; overflow: auto; padding: 6px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 12px 32px rgba(0, 0, 0, .16); }
.wr-add__menu[hidden] { display: none; }
.wr-add__group { padding: 6px 8px 2px; font-size: 11px; text-transform: uppercase; letter-spacing: .07em; color: var(--text-3); font-weight: 500; }
.wr-add__item { text-align: left; padding: 7px 10px; border: 0; border-radius: 6px; background: transparent; color: var(--text); font: inherit; font-size: 13.5px; cursor: pointer; }
.wr-add__item:hover, .wr-add__item:focus-visible { background: var(--primary-soft); color: var(--primary-soft-ink); outline: none; }
.wr-add__empty { padding: 8px 10px; font-size: 13px; color: var(--text-2); }
@media print { .wr-tile__tools, .wr-board-bar { display: none; } }
.wr-links { display: inline-flex; gap: 4px; flex-wrap: wrap; }

/* ---- The sheet ------------------------------------------------------------
   On screen: a page preview, letter width, always light (it is paper, in
   either theme -- so the theme variables are pinned inside it). In print:
   the only thing on the page, on its own named page. */
.wr-sheet {
    --text: #1a1d24; --text-2: #3c4250; --text-3: #5f6675; --text-4: #8a909c;
    --line: #d5d9e1; --line-soft: #e6e9ee; --panel: #ffffff; --panel-2: #f4f6f9;
    --ok: #15803d; --danger: #b42318;
    box-sizing: border-box;
    width: 8.5in; max-width: 100%;
    margin: 14px auto 24px;
    padding: 0.45in;
    background: #ffffff; color: var(--text);
    border: 1px solid var(--line);
    box-shadow: 0 2px 10px rgba(15, 18, 40, .12);
    font-size: 12px;
}
.wr-head { display: flex; align-items: center; gap: 12px; margin: 0 0 10px; padding: 0 0 8px; border-bottom: 2px solid var(--text); }
.wr-head__badge { height: 40px; width: auto; }
.wr-head__title { margin: 0; font-size: 18px; font-weight: 700; }
.wr-head__scope { margin: 2px 0 0; color: var(--text-2); font-size: 12px; }
.wr-sheet .wr-kpis { grid-template-columns: repeat(8, 1fr); gap: 5px; margin: 0 0 10px; }
.wr-sheet .wr-kpi { padding: 6px 6px; border-radius: 6px; background: var(--panel-2); border-color: var(--line-soft); }
.wr-sheet .wr-kpi__lbl { font-size: 9px; letter-spacing: .04em; }
.wr-sheet .wr-kpi__val { font-size: 14px; }
.wr-sheet .wr-kpi__ly { font-size: 9.5px; }
.wr-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.wr-sec { margin: 0 0 8px; break-inside: avoid; }
.wr-sec__title { margin: 0 0 4px; font-size: 13px; font-weight: 700; }
.wr-sheet .tbl { font-size: 11px; }
.wr-sheet .tbl thead th { padding: 4px 5px; font-size: 9px; letter-spacing: .04em; }
.wr-sheet .tbl tbody td { padding: 2px 5px; height: auto; line-height: 1.35; }
.wr-sheet .tbl tbody tr:hover td { background: transparent; }
.wr-sheet .tbl tr.total td { background: var(--panel-2); }
.wr-sheet .wr-days td.wr-yr { font-size: 10px; }
/* The y-axis labels hang left of the plot (LineChart draws them in a 38px
   gutter, too narrow for "200,000"), so the box makes room for them. */
.wr-chart { margin-top: 6px; padding-left: 16px; }
.wr-sheet .lc-svg .dc-ylab, .wr-sheet .lc-svg .dc-xlab, .wr-sheet .lc-svg .dc-key { font-size: 10px; }
.wr-foot { margin-top: 8px; padding-top: 6px; border-top: 1px solid var(--line); font-size: 9.5px; color: var(--text-3); }
@media (max-width: 760px) {
    .wr-cols { grid-template-columns: 1fr; }
    .wr-sheet .wr-kpis { grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); }
}

@media print {
    /* Its own named page with a real margin (the app-wide @page is margin 0
       for receipts). A change of named page is a page break, so everything
       above the sheet is .wr-noprint -- memory css-print-and-named-pages. */
    @page weeklySummary { size: letter portrait; margin: 0.4in; }
    .wr-noprint { display: none !important; }
    .wr-sheet {
        page: weeklySummary;
        width: auto; max-width: none;
        margin: 0; padding: 0;
        border: 0; box-shadow: none;
        font-size: 10.5px;
        -webkit-print-color-adjust: exact; print-color-adjust: exact;
    }
    .wr-sheet .wr-kpis { grid-template-columns: repeat(8, 1fr); }
    .wr-cols { grid-template-columns: 1fr 1fr; }
    .wr-sheet .lc-svg .dc-col { display: none; }
}

/* A proportional bar in a grid cell: the share of a whole that a row
   carries (Manage Pass Activity's "where people are"). The inner span's
   width is set inline as a percentage. td.share-col gives the bar its room. */
.share-bar { display: block; height: 8px; min-width: 6rem; border-radius: 4px; background: var(--line-soft); overflow: hidden; }
.share-bar > span { display: block; height: 100%; border-radius: 4px; background: var(--c-primary); }
.tbl td.share-col, .tbl th.share-col { width: 30%; }
/* Eight tiles read as two rows of four rather than six and a stray two. */
.home-stats--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 720px) { .home-stats--four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
