/* ============================================================
   VECTOR LOOK (2026-10-26) — the trading journal's type and card style, app-wide, light theme only.
   Source brief: C:\claude projects\Trading Dashboard\vector-dashboard-style.md.

   ⚠️ THIS FILE IS A SWITCHABLE LAYER, NOT A REWRITE. app.css (the "classic" look) is untouched.
   App.razor links this file and puts class="vx" on <html> only while the setting `Ui:Look` is
   "vector". Set it to "classic" (Azure: App Setting  Ui__Look = classic) and the app is back to the
   exact pre-Vector look on the next page load — no code change, no redeploy.
   So: every rule here must stay under `.vx`, and nothing in app.css may be edited for Vector.

   Kept from the classic look: the orange accent (Pointerz brand, not Vector's maroon) and every
   state colour. Print is untouched: everything below the fonts is screen-only.
   ============================================================ */

/* The weight ranges are deliberately capped at 600: a variable font clamps any heavier request to
   the declared maximum, so the app's many 650/700/750 rules all land on SemiBold without editing
   them. (It was 500, per the brief, until the softer-weights pass below; font-synthesis:none stops
   the browser faking a bold on top.) */
@font-face {
  font-family: 'General Sans';
  font-style: normal;
  font-weight: 200 600;
  font-display: swap;
  src: url('fonts/general-sans-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 100 600;
  font-display: swap;
  src: url('fonts/onest-latin.woff2') format('woff2');
}

@media screen {

/* ---- tokens: the guide's light palette, mapped onto this app's names ---- */
html.vx {
  --font-display: 'General Sans', 'Onest', system-ui, sans-serif;
  --font-text: 'Onest', -apple-system, 'Segoe UI', system-ui, sans-serif;
  --font: var(--font-text);
  --ink: #1d1d1f;
  --ink-2: #38383b;   /* a shade under the brief's #424245 / #6e6e73 — see SOFTER WEIGHTS */
  --muted: #5f5f64;
  --faint: #86868b;
  --hair: #e8e8ed;
  --hair-strong: #d2d2d7;
  --bg: #f5f5f7;
  --surface-2: #f5f5f7;
  --fill: rgba(118,118,128,.12);
  --fill-2: rgba(118,118,128,.2);
  --r-lg: 16px;
  --vx-card-line: #00000012;
  --vx-card-shadow: inset 0 1px 0 #fff, 0 1px 2px #0000000a, 0 24px 48px -36px #00000029;
  --shadow-1: var(--vx-card-shadow);
  font-synthesis: none;
}
/* Base size and line height are NOT changed from the classic look (user, 2026-10-26: Vector at first
   used the brief's 14px / 1.43 body, and the taller line height made every sidebar item and list row
   visibly roomier — "I would prefer a smaller font, like it was previously"). Text sizes below are
   matched to app.css's, so the faces and cards change but the density does not. */
html.vx body {
  /* Inter's own "normal" line height (its ascent + descent = 1.21em). Onest's normal is ~1.28, which
     alone made each sidebar item and table row 1px taller than the classic look. */
  line-height: 1.21;
  /* the faint colourless wash the glass sits on — fixed, no blur */
  background:
    radial-gradient(60% 50% at 18% 0%,   #ffffffd9, transparent 70%),
    radial-gradient(50% 45% at 92% 38%,  #00000008, transparent 70%),
    radial-gradient(55% 50% at 40% 100%, #00000008, transparent 70%),
    #f5f5f7;
  background-attachment: fixed;
}

/* ---- type resets: no caps, no tracking, light weights ---- */
html.vx body * { text-transform:none !important; letter-spacing:normal !important; font-weight:400; }
html.vx body :is(b, strong, h1, h2, h3, h4, th, dt) { font-weight:500; }
.vx :is(button, select, input, textarea) { font-family:inherit; }
/* .pill capitalises raw lower-case data (role and category names) — that is content, not styling. */
.vx .pill { text-transform:capitalize !important; }
/* Labels written in capitals in the markup itself: lower them, lift the first letter back up. */
.vx :is(.pulse2-strip span, .ftiles-h > span, .panel-tag, .wbars-x b, .oi-n, .pulse2-k) { text-transform:lowercase !important; }
.vx :is(.pulse2-strip span, .ftiles-h > span, .panel-tag, .wbars-x b) { display:inline-block; }
.vx :is(.pulse2-strip span, .ftiles-h > span, .panel-tag, .wbars-x b)::first-letter { text-transform:uppercase !important; }
/* The sidebar's own wordmark keeps its weight — it is a logo, not text. */
.vx .sidebar .brand, .vx .sidebar .brand span { font-family:var(--font-display); font-weight:500; letter-spacing:-.02em !important; }

/* ---- display face: titles, figures, buttons ---- */
.vx :is(h1, h2, h3, .panel h2, .panel-head h2, .lvb-ch h3, .lvb-id h2, .dash-sec-k, .panel-sub2 h3,
        .drawer-head h2, .kpi-v, .card-v, .stat-value, .fpv-v, .lvb-count-v, .lvb-count-slash, .pulse2-v,
        .oi-n b, .cust-v b, .pk b, .oi b, .tmx-v, .tmx-f b, .age-r b, .ftile-t b, .ftiles-h b, .wbars-n span,
        .pulse2-strip b, .lvb-cov-n, .lvb-key b, .lvb-pend-v, .rank, .qa, .delta, .c-vlab,
        .btn-primary, .btn-ghost, .btn-danger) {
  font-family:var(--font-display); font-variant-numeric:tabular-nums; }

/* Page title — big, light, fading ink. background-clip:text reaches descendant text too, so the
   greeting's name rides the same fade, and an ⓘ inside a title gets its colour back explicitly
   (its pop-up text would otherwise inherit the transparent fill and vanish). */
.vx :is(.hero h1, .page-head h1, .content > h1) { line-height:1.06;
  font-weight:400; letter-spacing:-.03em !important; text-wrap:balance; margin:0;
  background:linear-gradient(122deg, #1d1d1f 0%, #1d1d1f 18%, #6e6e73 100%);
  -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; }
/* Only the dashboard greeting keeps the brief's display size. Section titles were the same 56px at
   first and the user found them far too big (2026-10-26) — 28px. */
.vx .hero h1 { font-size:clamp(2.3rem, 4.3vw, 3.75rem); }
/* Solid ink, no fade: at 28px the gradient only greyed out the end of the title ("Snake Repellent"
   read as "Snake" + a washed-out "Repellent"). The fade belongs to the big greeting alone. */
.vx :is(.page-head h1, .content > h1) { font-size:28px; line-height:34px; letter-spacing:-.02em !important;
  background:none; -webkit-text-fill-color:currentColor; color:var(--ink); }
.vx :is(.page-head, .content > h1) { margin-bottom:14px; }
.vx .hero h1 em { background:none; -webkit-text-fill-color:inherit; font-weight:400; }
.vx h1 .info-tip { -webkit-text-fill-color:currentColor; }
.vx .hero { align-items:flex-end; margin:4px 0 22px; }

/* SIZES MATCH THE CLASSIC LOOK (user, 2026-10-26: "the main dashboard text is still bigger").
   Measured side by side: Vector first used the brief's sizes, 1-6px above app.css almost everywhere.
   Text now sits at the classic size; a label that classic set in 9.5px CAPITALS gets 11px, because
   sentence case at the old size reads smaller than the capitals did. The greeting alone stays big. */
/* Card titles: 15px display Medium; inner titles 12.5px. */
.vx :is(.panel h2, .panel-head h2, .lvb-ch h3, .card h2, .form-card h2, .drawer-head h2) {
  font-size:15px; line-height:19px; font-weight:500; letter-spacing:-.01em !important; color:var(--ink); }
.vx .dash-sec-k { font-size:13px; line-height:17px; font-weight:500; color:var(--ink); }
.vx .lvb-id h2 { font-size:17px; line-height:22px; font-weight:500; letter-spacing:-.015em !important; }
.vx :is(.panel-sub2 h3, .panel h3, .card h3) { font-size:12.5px; line-height:16px; font-weight:500; letter-spacing:-.01em !important; }

/* ---- buttons: pills in the display face, never bold ---- */
.vx :is(.btn-primary, .btn-ghost, .btn-danger, .qa) { border-radius:999px; font-weight:400; letter-spacing:-.01em !important; }
.vx .btn-primary { box-shadow:inset 0 1px 0 rgba(255,255,255,.22), 0 1px 2px rgba(201,79,0,.3); }
.vx :is(.btn-ghost, .qa) { background:#fff; color:var(--ink); border:1px solid var(--vx-card-line);
  box-shadow:inset 0 1px 0 #fff, 0 1px 2px #0000000a; }
.vx :is(.btn-ghost, .qa):hover { background:#fff; border-color:var(--hair-strong);
  box-shadow:0 1px 2px #0000000f, 0 8px 18px -12px #00000040; }
.vx .btn-ghost.on { background:var(--brand-soft); color:var(--brand-deep); border-color:var(--brand-pale); }
.vx .btn-ghost.danger { color:#C81E1E; border-color:#F3C5C5; }
.vx .qa { padding:7px 15px; font-size:12.5px; }
.vx :is(.link, .panel-link, .lvb-ch-a) { font-weight:400; }
/* buttons don't inherit line-height; Onest's taller "normal" made table rows with row-action links 1px taller */
.vx .link { line-height:1.21; }

/* ---- cards: white, hairline, one long faint shadow, 16px corner ---- */
.vx :is(.panel, .card, .stat-card, .form-card, .kpi, .lvb-c, .lvb-top, .grid) {
  background:#fff; border:1px solid var(--vx-card-line); box-shadow:var(--vx-card-shadow); }
.vx :is(.panel, .card, .stat-card, .form-card, .kpi, .grid) { border-radius:16px; }
/* the live board is a card holding cards */
.vx .lvb { background:transparent; border:1px solid var(--vx-card-line); border-radius:20px; }
.vx :is(.lvb-c, .lvb-top) { border-radius:14px; }
.vx button.kpi:hover { box-shadow:inset 0 1px 0 #fff, 0 1px 2px #0000000f, 0 24px 48px -30px #00000040;
  border-color:#0000001a; }

/* Card anatomy: a header with no rule under it, then the body. */
.vx .panel { padding:14px 16px 16px; }
.vx .panel-head { align-items:center; margin:0 0 12px; }
.vx .lvb-ch { padding:12px 16px 10px; border-bottom:none; }
.vx .lvb-top { padding:16px 18px; }

/* ---- stat cells ---- */
.vx .kpi { padding:12px 14px 14px; min-height:112px; align-content:space-between; }
.vx :is(.kpi-k, .stat-label, .card-k) { font-size:12.5px; line-height:17px; font-weight:400; color:var(--ink-2); }
.vx .kpi-ic .nav-ic { stroke:var(--muted); }
.vx .kpi-v { font-size:30px; line-height:36px; font-weight:400; letter-spacing:-.03em !important; margin-top:18px; }
.vx .kpi-v.none { color:var(--hair-strong); }
.vx :is(.stat-value, .card-v) { font-size:30px; line-height:36px; font-weight:400; letter-spacing:-.03em !important; }

/* ---- big and small figures ---- */
.vx .fpv-v { font-size:24px; line-height:28px; font-weight:400; letter-spacing:-.03em !important; }
.vx .lvb-count-v { font-size:28px; line-height:32px; font-weight:400; letter-spacing:-.03em !important; }
.vx .pulse2-v { font-size:26px; font-weight:400; letter-spacing:-.03em !important; }
.vx .oi-n b { font-size:18px; font-weight:400; letter-spacing:-.03em !important; }
.vx .cust-v b { font-size:16px; font-weight:400; letter-spacing:-.02em !important; }
.vx :is(.pk b, .oi b, .tmx-v, .tmx-f b, .age-r b, .ftile-t b, .ftiles-h b, .wbars-n span,
        .lvb-cov-n, .lvb-key b, .pulse2-strip b) { font-weight:500; color:var(--ink); }
.vx .ftile-t b, .vx .pulse2-strip b { font-size:14.5px; letter-spacing:-.02em !important; }

/* ---- labels, captions: Onest, grey, sentence case ---- */
.vx :is(.tmx-h span, .fpv-k, .pulse2-strip span, .ftiles-h, .oi-n, .lvb-count-k, .lvb-cov-lab,
        .panel-tag, .wbars-x b, .lvb-hk, .lvb-hv, .lvb-sec span, .lvb-zone-h span, .lvb-peek-d dt,
        .nav-group, .stk-detail-h) {
  font-size:11px; line-height:14px; font-weight:400; color:var(--muted); }
.vx .nav-group { margin:18px 10px 5px; font-size:11.5px; line-height:15px; }
.vx :is(.pk span, .oi span, .age-k, .lvb-key, .ftile-n, .lvb-sub, .lvb-crew-k, .tmx-f, .cust-f em) {
  font-size:12px; font-weight:400; color:var(--ink-2); }
/* html.vx, not .vx: the group above takes .cust-f em's (0,1,1) through :is(), which outranks a plain .vx rule */
html.vx :is(.lvb-key, .ftile-n) { font-size:11.5px; }
.vx :is(.ftile-a, .wbars-x em, .cust-s, .cust-v em, .oi em, .lvb-upd, .feed-date, .lvb-ch-live, .crumbs) {
  font-size:11px; color:var(--muted); }
.vx .panel-tag { color:var(--muted); background:none; }
.vx .field > label { font-size:12px; font-weight:400; color:var(--ink-2); }
/* Names are what you read first — ink at Medium, not bold. */
.vx :is(.tmx-n, .cust-n, .feed-cust, .lvb-task-n, .tb-user-name) { font-weight:500; color:var(--ink); }
.vx :is(.tmx-n, .cust-n, .feed-cust, .lvb-task-n) { font-size:12.5px; }
.vx :is(.panel-link, .lvb-ch-a) { font-size:12px; color:var(--brand-deep); }

/* ---- sidebar: classic size and spacing, Medium for the open page ---- */
.vx .sidebar nav a.active { font-weight:500; }

/* ---- no tinted pills behind text: the colour moves to the text and a small dot ---- */
.vx :is(.badge, .pill) { background:none !important; padding:0; border-radius:0; font-size:12px; font-weight:400;
  display:inline-flex; align-items:center; gap:6px; white-space:nowrap; }
.vx :is(.badge, .pill)::before { content:''; width:6px; height:6px; border-radius:999px; background:currentColor; flex:none; }
.vx .feed .badge::before { display:none; }
.vx .delta { background:none !important; padding:0; font-size:13px; font-weight:400; }
.vx .rank { background:none !important; box-shadow:none; color:var(--muted); font-size:12px; font-weight:400; }
.vx .rank.r-1 { color:var(--brand-deep); }
.vx .rank.r-2, .vx .rank.r-3 { color:var(--ink-2); }
.vx .type-pill { font-size:11.5px; font-weight:400; }

/* ---- segmented controls: grey track, white thumb, never bold ---- */
.vx :is(.seg, .fpv-ranges) { background:var(--fill); border:none; border-radius:10px; padding:3px; gap:2px; }
.vx :is(.seg-btn, .fpv-range) { font-size:12px; line-height:16px; font-weight:400; padding:4px 11px;
  border-radius:7px; color:var(--ink-2); }
.vx :is(.seg-btn.on, .fpv-range.on) { background:#fff; color:var(--ink); font-weight:400;
  box-shadow:0 1px 2px #0000001a, 0 0 0 .5px #0000000d; }
/* The sliding thumb (app.css, js/ui-motion.js) wears the same white as the .on button it stands in for. */
.vx .seg.has-thumb::before { background:#fff; box-shadow:0 1px 2px #0000001a, 0 0 0 .5px #0000000d; }

/* ---- inputs ---- */
.vx :is(.input, .search, .dash-f, select.input) { border-radius:10px; border-color:var(--hair-strong); }
.vx .dash-f { border-color:var(--vx-card-line); background:#fff; }

/* ---- meters: 6px capsules on a grey track ---- */
.vx :is(.tmx-b, .ftile-b, .age-t, .ratio-track) { height:6px; border-radius:999px; background:var(--fill); }
.vx :is(.tmx-b i, .ftile-b i, .age-t i) { height:6px; border-radius:999px; }
.vx :is(.cust-bar span, .mixbar span, .lvb-mix-bar span, .lvb-cov-fill) { height:6px; border-radius:999px; }

/* ---- inner boxes: 12px corner, hairline ---- */
.vx :is(.fpv-tile, .fpv-chart) { border-radius:12px; border-color:var(--hair); background:#fff; }

/* ---- tables: sentence-case header, hairline between rows, grey hover ---- */
/* #55555a, not --muted: light grey at 11.5px made the header row hard to tell from the data rows. */
.vx .grid th { font-size:11.5px; font-weight:400; color:#55555a; border-bottom-color:var(--hair); }
.vx .grid td { border-bottom-color:var(--hair); }
.vx .grid tr:hover td { background:var(--fill); }
.vx .feed { border-collapse:separate; border-spacing:0; }
.vx .feed td { padding:8px 12px; font-size:13px; border-bottom-color:var(--hair); }
.vx .feed.clickable tbody tr:hover td { background:var(--fill); }
.vx .feed.clickable tbody tr:hover td:first-child { border-radius:8px 0 0 8px; }
.vx .feed.clickable tbody tr:hover td:last-child { border-radius:0 8px 8px 0; }
.vx :is(.pk, .oi, .tmx-r, .cust-r, .tmx-h) { border-bottom-color:var(--hair); }

/* ---- chart text ---- */
.vx :is(.c-ylab, .c-xlab) { font-family:var(--font-text); }
/* site-map room labels name Inter directly in app.css, so they would not follow the token */
.vx :is(.smap-roomt, .spe-roomt) { font-family:var(--font-text); }

/* ---- sign-in (Login, MFA): after the Vector journal's own sign-in card ----
   Big display wordmark, grey segmented track with a white thumb, tall inputs, a full-width pill.
   The orange button stays: grey (as in the journal) reads as disabled to someone signing in. */
.vx .auth-shell { background:none; }
.vx .auth-card { border-radius:24px; border-color:var(--vx-card-line);
  box-shadow:inset 0 1px 0 #fff, 0 1px 2px #0000000a, 0 30px 60px -40px #00000038; }
.vx .auth-card:not(.duo) { position:relative; width:440px; max-width:calc(100vw - 32px); padding:30px 28px 28px; }
.vx .auth-brand { font-family:var(--font-display); font-size:36px; line-height:40px; font-weight:500;
  letter-spacing:-.03em !important; gap:0 9px; margin-bottom:8px; }
.vx .auth-brand::before { height:34px; margin-bottom:18px; }
/* "Welcome back" takes the journal's subtitle line; the second sub-line would only repeat it. */
.vx .auth-card:not(.duo) h1 { font-family:var(--font-text); font-size:16px; line-height:22px; font-weight:400;
  color:var(--ink-2); letter-spacing:0 !important; margin:0 0 22px; }
.vx .auth-card:not(.duo) .auth-sub { display:none; }
/* The public verify page (Pages/VerifyDocument.razor) borrows the login card, but its heading is the page's
   title, not a login sub-line: General Sans Medium like the dashboard's titles (user, 2026-10-28). One class
   more than the rule above, so it wins. */
.vx .auth-card.verify-card:not(.duo) h1 { font-family:var(--font-display); font-size:22px; line-height:28px;
  font-weight:500; color:var(--ink); letter-spacing:-.02em !important; margin:0 0 4px; }
.vx .auth-seg { background:var(--fill); border:none; border-radius:14px; padding:4px; gap:4px; margin:0 0 22px; }
/* .auth-card .auth-seg, so it outranks the field-label margin set further down on `.auth-card label` */
.vx .auth-card .auth-seg label { font-size:15px; font-weight:400; padding:11px 0; margin:0; border-radius:11px; color:var(--muted); }
.vx #seg-staff:checked ~ .auth-seg label[for="seg-staff"],
.vx #seg-client:checked ~ .auth-seg label[for="seg-client"] {
  color:var(--ink); background:#fff; box-shadow:0 1px 2px #0000001a, 0 0 0 .5px #0000000d; }
.vx .auth-card label { font-size:14px; font-weight:400; color:var(--ink-2); margin:16px 0 8px; }
.vx .auth-card input { padding:15px 16px; font-size:15px; border-radius:12px; border-color:var(--hair-strong); }
.vx .auth-card button { margin-top:28px; padding:16px; border-radius:999px; font-family:var(--font-display);
  font-size:16px; font-weight:400; letter-spacing:-.01em !important; }
.vx .auth-note { font-size:13px; margin-top:16px; }
.vx .auth-error { border-radius:12px; font-size:13.5px; }
/* the product line sits under the card, where the journal keeps its footer links */
.vx .auth-card:not(.duo) .auth-hint { position:absolute; left:0; right:0; top:100%; margin-top:22px;
  font-size:13px; color:var(--muted); }

/* ---- drawers and tooltips ---- */
.vx .drawer-head { border-bottom:none; }
.vx .info-tip-pop { border-radius:10px; }

/* ============================================================
   TYPE PASS 2 (user brief, 2026-10-26, against the live board) — SIZES WITHDRAWN.
   The brief's own scale made the sidebar, card titles, tile figures, visit log and small labels
   LARGER, and the user wants the smaller text they had ("I need smaller text as it was before").
   So every size the brief raised is left at the rule above, and only these stay from the brief:
   the two reductions (body 14px, the 249 / 350 figures at 24px), Medium titles in General Sans,
   figures in General Sans Regular (never lighter), and tabular numerals on small stats.
   html.vx (not .vx) so these outrank the grouped label rules above, whose :is() lists carry a
   (0,1,1) member such as .cust-f em.
   ============================================================ */
html.vx body { font-size:14px; }

html.vx .sidebar nav a.active { font-weight:500; }

/* timestamps and small stats line up as columns */
html.vx :is(.lvb-ev-t, .lvb-count-k, .lvb-cov-h, .lvb-cov-n, .lvb-cov-lab, .lvb-task-c, .lvb-task-at,
        .lvb-ch-live, .lvb-upd) { font-variant-numeric:tabular-nums; }

/* titles: display Medium at their existing sizes; the visit header comes down 17 -> 16 */
html.vx :is(.panel h2, .panel-head h2, .lvb-ch h3, .lvb-id h2, .card h2, .form-card h2, .drawer-head h2,
        .lvb-task-n, .panel-sub2 h3) { font-family:var(--font-display); font-weight:500; }
html.vx .lvb-id h2 { font-size:16px; line-height:20px; letter-spacing:-.01em !important; }

/* figures: General Sans Regular, never lighter */
html.vx :is(.kpi-v, .lvb-count-v, .lvb-count-slash) {
  font-family:var(--font-display); font-weight:400; letter-spacing:-.03em !important; font-variant-numeric:tabular-nums; }
html.vx .lvb-count-v { font-size:24px; line-height:30px; }
html.vx .lvb-count-slash { font-size:20px; }

/* ============================================================
   SOFTER WEIGHTS (user, 2026-10-26: "everything looks a little bit too much crispy").
   Vector's weights were made for a near-black page, where light-on-dark text reads heavier than
   it is; on white the same 400 / 500 looked thin and sharp, worst in small grey text on Windows.
   Same faces and sizes, one notch heavier: text 450, titles / names / bold words 550, figures 450,
   greys a shade darker (tokens above). The large titles — section headings and the dashboard
   greeting — keep their light weight on purpose: crispness is a small-text problem.
   Approved from a side-by-side render (design/vector-trial/weight-compare-now-vs-softer.png).
   ============================================================ */
html.vx body * { font-weight:450; }
html.vx body :is(b, strong, h2, h3, h4, th, dt) { font-weight:550; }
html.vx :is(.tmx-n, .cust-n, .feed-cust, .lvb-task-n, .tb-user-name, .sidebar nav a.active) { font-weight:550; }
html.vx :is(.panel h2, .panel-head h2, .lvb-ch h3, .lvb-id h2, .card h2, .form-card h2, .drawer-head h2,
        .panel-sub2 h3, .dash-sec-k, .auth-brand) { font-weight:550; }
html.vx :is(.kpi-v, .lvb-count-v, .lvb-count-slash, .fpv-v, .oi-n b, .cust-v b, .pulse2-v, .stat-value, .card-v) { font-weight:450; }

/* ============================================================
   CALM CALENDAR (user, 2026-10-26: "how Apple does things — calm, breathing space, modern").
   The first screen of a calmer pass; the rest of the app follows once this is approved.
   Room comes from SPACING, not from bigger text (text sizes stay as app.css has them, per the
   2026-10-26 "smaller font, like it was previously" decision). The one large type is the month
   title, which is a heading. Every state colour is kept; chips only get softer shapes.
   ============================================================ */

/* Toolbar: no box. Row one is where you are (month, arrows, Today, Month/Week); the tools drop to a
   quiet second row of their own, so the title is not fighting eleven controls for the eye. */
.vx .cal-toolbar { background:none; border:none; padding:0; margin:4px 0 22px; gap:14px 18px; }
/* The pills' grey, one step lighter than the app's --fill here (user: "too grey… a little, not much"). */
.vx :is(.cal-toolbar, .cal-chips-filter) { --fill:rgba(118,118,128,.08); --fill-2:rgba(118,118,128,.14); }
.vx .cal-nav { order:-1; gap:4px; }
.vx .cal-period { order:-1; margin:0 14px 0 0; font-family:var(--font-display); font-size:24px; line-height:30px;
  letter-spacing:-.02em; color:var(--ink); }
html.vx .cal-period { font-weight:550; }
.vx .cal-nav .btn-ghost { border:none; background:none; box-shadow:none; color:var(--ink-2);
  min-width:32px; height:32px; padding:0 10px; border-radius:999px; justify-content:center; font-size:20px; line-height:1; }
.vx .cal-nav .btn-ghost:hover { background:var(--fill); color:var(--ink); }
/* "Today" is the one word in the cluster, so it gets a visible pill; the arrows stay bare. */
.vx .cal-nav .btn-ghost:not([title]) { background:var(--fill); font-size:13px; padding:0 14px; }
.vx .cal-nav .btn-ghost:not([title]):hover { background:var(--fill-2); }
.vx .cal-toolbar-right { flex-basis:100%; margin-left:0; gap:8px 16px; padding-top:14px;
  border-top:1px solid var(--hair); }
/* Same white pill as every other filter field (CALM PAGES below), so the calendar matches the lists. */
.vx .cal-toolbar-right .cal-ctl .input { height:34px; border:none; background-color:#fff; border-radius:999px;
  padding:0 30px 0 12px; min-width:0; box-shadow:var(--calm-field-ring); }
.vx .cal-toolbar-right .cal-ctl .input:focus { outline:none; box-shadow:var(--calm-focus-ring); }
.vx .cal-toolbar-right .chk { color:var(--muted); font-size:.8rem; }
.vx .cal-toolbar-right .btn-ghost { border-color:transparent; background:none; box-shadow:none; color:var(--muted);
  padding:5px 10px; border-radius:999px; font-size:.8rem; }
.vx .cal-toolbar-right .btn-ghost:hover { background:var(--fill); color:var(--ink); }
.vx .cal-toolbar-right .btn-ghost.on { background:var(--brand-soft); color:var(--brand-deep); }
/* Status chips: pills on the same quiet row rhythm. */
.vx .cal-chips-filter { margin:-8px 0 18px; }
.vx .cal-chips-filter .wo-chip { border:none; background:var(--fill); border-radius:999px; padding:5px 12px; }
.vx .cal-chips-filter .wo-chip.on { background:var(--ink); color:#fff; }
.vx .cal-chips-filter .wo-chip.on small { color:#ffffffb3; }

/* The grid: one soft card, lines only where they separate something. */
/* --hair is re-pointed inside the grid (not each border recoloured) because app.css draws the week-number
   column's rules with var(--hair) at a higher specificity; one token keeps every line the same grey. */
.vx .cal { --hair:#f0f0f3; border:none; border-radius:20px; box-shadow:var(--vx-card-shadow), 0 0 0 1px var(--vx-card-line); }
.vx .cal-dow > div { background:none; border-bottom:1px solid var(--hair); padding:14px 14px 10px;
  font-size:11px; letter-spacing:.04em; color:var(--faint); }
.vx .cal-wno { color:var(--hair-strong); background:none; }
.vx .cal-cell { min-height:128px; padding:10px 10px 12px; gap:6px; }
.vx .cal-cell.off { background:#fbfbfd; }
.vx .cal-cell.other-month { background:none; }
.vx .cal-cell.other-month .cal-chips { opacity:.55; }
.vx .cal-cell.holiday { background:#fff8f2; }
/* Today: Apple's filled circle on the number instead of a box round the whole day. */
.vx .cal-cell.today { box-shadow:none; }
.vx .cal-daynum > span { min-width:26px; height:26px; display:inline-flex; align-items:center; justify-content:center;
  margin:-3px 0 0 -4px; border-radius:999px; font-size:13px; color:var(--ink); }
.vx .cal-cell.today .cal-daynum > span { background:var(--brand); color:#fff; }
.vx .cal-cell[data-drop-over] { background:var(--brand-soft); box-shadow:inset 0 0 0 1.5px var(--brand-pale); }
.vx .cal-wk .cal-cell { min-height:420px; }

/* Chips: softer and rounder. The status colour still rides the left edge, now as a rounded bar. */
.vx .cal-chips { gap:5px; }
.vx .cal-chip { border-radius:8px; padding:6px 9px; border-top:none; border-right:none; border-bottom:none;
  transition:background-color .15s ease, box-shadow .15s ease; }
.vx .cal-chip.cal-o, .vx .cal-chip.cal-e { border-radius:8px; }
.vx .cal-chip:hover { box-shadow:0 1px 2px #0000000f, 0 4px 12px -6px #0000002e; }
.vx .cal-chip.ghost { border:1px dashed var(--hair-strong); }
.vx .cal-chip-x { font-weight:550; }
.vx .cal-more { color:var(--faint); padding:2px 9px; border-radius:999px; }
.vx .cal-add { border-radius:999px; width:22px; height:22px; padding:0; }
.vx .cal-add:hover { background:var(--fill); color:var(--ink); }

/* ============================================================
   CALM PAGES (2026-10-26) — the calendar's look on every page. Trialled first on Work Orders, Service
   Plans and Customers (approved: "great, apply fully now"), then widened from a per-page wrapper to the
   whole page area, `.content`. The shared patterns: page head, view tabs, status chips, the two filter
   rows (.wo-filters and FilterBar's .filterbar), DataGrid, standalone .grid tables, pager, and the side
   drawer's forms. Same rules as the calendar: room from spacing, text sizes unchanged, every state
   colour kept.
   ============================================================ */
.vx .content { --fill:rgba(118,118,128,.08); --fill-2:rgba(118,118,128,.14);
  --calm-field-ring:0 0 0 1px var(--vx-card-line), 0 1px 2px #0000000a;
  --calm-focus-ring:0 0 0 1px var(--brand-pale), 0 0 0 4px var(--brand-ring); }
.vx .content .page-head { margin-bottom:22px; }
.vx .content .head-actions { gap:6px; }

/* View tabs + status chips: the calendar's quiet pills. */
.vx .content .wo-views { gap:12px 16px; margin:0 0 16px; }
.vx .content .wo-chip { border:none; background:var(--fill); border-radius:999px; padding:5px 12px; }
.vx .content .wo-chip:hover { background:var(--fill-2); }
.vx .content .wo-chip.on { background:var(--ink); color:#fff; }
.vx .content .wo-chip.on small { color:#ffffffb3; }

/* Filter rows: ONE tidy line (user, 2026-10-26: the first calm pass left uneven widths, labels above some
   fields and not others, Apply wrapping to its own row, and heavy grey slabs). Every field is the same
   36px white pill with a hairline edge — macOS's pop-up button, not a filled block — widths are capped
   so a long customer list cannot stretch its select, and labels read as inline prefixes.
   .filterbar is FilterBar.razor (field operations + reports): same treatment, its fb-field columns turned
   into label-then-field pairs. */
.vx .content :is(.wo-filters, .filterbar) { background:none; border:none; box-shadow:none; padding:0; margin:0 0 18px;
  gap:10px 12px; align-items:center; }
.vx .content :is(.wo-filters label, .fb-field) { flex-direction:row; align-items:center; gap:8px; }
.vx .content .wo-filters label { font-size:.8rem; color:var(--faint); }
/* :not(.chk) — a tick-box sits in an fb-field as a label too (Activity Log), and must stay readable. */
.vx .content .fb-field > label.chk { font-size:.8rem; color:var(--ink-2); text-transform:none; letter-spacing:0; }
.vx .content .fb-field > label:not(.chk) { font-size:.8rem; font-weight:450; color:var(--faint); text-transform:none; letter-spacing:0; }
.vx .content :is(.wo-filters .input, .filterbar .input, .dg-toolbar .search, .findings-filter .input) { height:36px; border:none; background-color:#fff;
  border-radius:999px; padding:0 14px; font-size:.84rem; color:var(--ink); box-shadow:var(--calm-field-ring); }
/* The report activity picker is a BUTTON drawn as a select: room for its arrow, like the selects below. */
.vx .content .findings-filter .ff-btn { padding-right:32px; }
.vx .content :is(.wo-filters, .filterbar) select.input { width:auto; min-width:0; max-width:210px; padding-right:32px;
  text-overflow:ellipsis; white-space:nowrap; }
.vx .content :is(.wo-filters, .filterbar) input[type="date"].input { width:150px; min-width:0; }
.vx .content .filterbar .fb-num { width:90px; }
/* A free-text field in a filter row (Month Close's note) has no width of its own; the browser default cut
   its hint off mid-word. */
.vx .content .wo-filters input:is(:not([type]), [type="text"]).input { width:300px; max-width:100%; }
.vx .content :is(.wo-filters, .filterbar) .input:disabled { color:var(--faint); background-color:#fbfbfd; }
.vx .content :is(.wo-filters .input, .filterbar .input, .dg-toolbar .search, .findings-filter .input):focus { outline:none; box-shadow:var(--calm-focus-ring); }
.vx .content .wo-filters .chk { color:var(--ink-2); padding:0 4px; }
.vx .content :is(.wo-filters, .filterbar) :is(.btn-primary, .btn-ghost, .btn-danger) { height:36px; padding:0 18px; }
.vx .content .dg-toolbar .search { max-width:320px; }

/* Tables: one soft card with room in every row and lines only between rows. Vertical room only — the
   side padding stays at 16px, because report pivots run to dozens of columns and already scroll. */
/* The top margin is load-bearing: .content is block flow, so it collapses into a bigger gap above (a filter
   row's 18px) and only shows where the element above has none — Attendance's status chips sat touching
   the search box when it was 0. */
.vx .content .dg-toolbar { margin:14px 0 14px; }
/* A DataGrid's card is drawn on its scroller, not the table: .dg-scroll clips overflow, so a shadow on
   the table inside it would be cut off at the edges. A standalone .grid keeps the card on itself. */
.vx .content .dg-scroll { border-radius:20px; box-shadow:var(--vx-card-shadow), 0 0 0 1px var(--vx-card-line); background:#fff; }
.vx .content .dg-scroll .grid { margin-top:0; border:none; box-shadow:none; }
.vx .content .grid { --hair:#f0f0f3; border-radius:20px; }
.vx .content .grid th { padding:14px 16px 12px; color:var(--faint); background:#fff; }
.vx .content .grid td { padding:14px 16px; border-bottom-color:#f3f3f5; }
.vx .content .grid :is(th, td):first-child { padding-left:20px; }
.vx .content .grid :is(th, td):last-child { padding-right:20px; }
.vx .content .grid tr:hover td { background:#fafafb; }
/* Tables that set their own tighter padding keep it: the rules above outrank theirs, so it is restated. */
.vx .content .grid.stk-holder-grid :is(td, th) { padding:8px 10px; }
.vx .content .grid.stk-rep-grid :is(td, th) { padding:9px 12px; }
.vx .content .stk-match tr.stk-detail > td { padding:12px 16px 16px; }
/* The operation summary's table lives inside its own small scroll box, which is the frame: no card on it. */
.vx .content .grid.osp-grid { border:none; box-shadow:none; border-radius:0; }
/* Day groups (Work Orders): a quiet label row, not a grey band. */
.vx .content .dg-grp td { background:#fff; padding:20px 20px 8px; border-bottom:1px solid #f3f3f5; }
.vx .content .dg-grp:hover td { background:#fff; }
.vx .content .dg-grp-d { color:var(--ink); }
.vx .content .dg-state { border:none; border-radius:20px; box-shadow:var(--vx-card-shadow), 0 0 0 1px var(--vx-card-line); }
.vx .content .dg-foot { margin-top:16px; padding:0 6px; }
.vx .content .pg { border:none; background:var(--fill); border-radius:999px; padding:6px 14px; }
.vx .content .pg:hover:not(:disabled) { background:var(--fill-2); }
/* Status pills: same colours, a touch more air. */
.vx .content .wo-pill { padding:3px 11px; }
/* Team cards: the same soft card as the tables. */
.vx .content .tm-card { border:none; border-radius:20px; background:#fff;
  box-shadow:var(--vx-card-shadow), 0 0 0 1px var(--vx-card-line); }
.vx .content .tm-card:hover { box-shadow:inset 0 1px 0 #fff, 0 1px 2px #0000000f, 0 24px 48px -30px #00000040, 0 0 0 1px #0000001a; }
.vx .content .tm-card:focus-visible { box-shadow:var(--vx-card-shadow), 0 0 0 3px var(--brand-ring); }

/* The side drawer (EntityDrawer, ~60 screens): more air, and fields that match the filter pills — white
   with a hairline — at form shape (10px corners, since notes and textareas grow). */
.vx .drawer { width:460px; }
.vx .drawer-head { padding:22px 26px 14px; }
.vx .drawer-body { padding:14px 26px 28px; }
.vx .drawer .field { margin-bottom:18px; }
.vx .drawer .field > label { font-size:.78rem; color:var(--ink-2); margin-bottom:7px; }
html.vx .drawer .field > label { font-weight:550; }
.vx .drawer :is(.input, select.input, textarea.input) { border:none; border-radius:10px; background-color:#fff;
  padding:9px 12px; box-shadow:0 0 0 1px #dedee3, 0 1px 2px #0000000a; }
.vx .drawer :is(.input, select.input, textarea.input):focus { outline:none; box-shadow:var(--calm-focus-ring, 0 0 0 1px #FFC08A, 0 0 0 4px rgba(255,106,0,.16)); }
.vx .drawer .input:disabled { background-color:#fbfbfd; color:var(--faint); }
.vx .drawer .drawer-sep { border-top-color:#f0f0f3; margin:22px 0; }
.vx .drawer .form-actions { gap:8px; margin-top:22px; }

} /* @media screen */
