:root {
  --bg: #f2f5fa;
  --card: #fff;
  --ink: #1e293b;
  --muted: #5b6a80; /* QA-027: 5:1 on --bg (was #64748b, 4.4:1) */
  --line: #e2e8f0;
  /* GrabMyGround palette: bright blue + orange accent */
  --brand: #0b5ed7;
  --brand-2: #0d7bff;
  --accent: #ff6b1a;
  --accent-2: #ff8a3d;
  --grad: linear-gradient(90deg, #0b5ed7, #166fd9); /* light end darkened for white text, 4.9:1 (QA-027) */
  --hero: linear-gradient(160deg, #0b5ed7 0%, #1e8bff 55%, #ff7a2f 100%);
  --shadow: 0 6px 20px rgba(13, 60, 130, .08);

  --free: #15803d;      --free-bg: #e7f7ec;
  --confirmed: #1d4ed8; --confirmed-bg: #e3ecfd;
  --pending: #a16207;   --pending-bg: #fdf4d3;
  --weekend-bg: #efe7fd;
  --block: #374151;     --block-bg: #e2e5ea;
  --cancelled: #b91c1c; --cancelled-bg: #fde7e7;

  --bs-primary: #0d7bff;
  --bs-primary-rgb: 13, 123, 255;
  --bs-link-color: #0b5ed7;
  --bs-link-color-rgb: 11, 94, 215;
  --font-sans: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --bs-body-font-family: var(--font-sans);
  --bs-body-line-height: 1.5;
}
body { background: var(--bg); color: var(--ink); font-size: 15px; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5, h6 { line-height: 1.25; }
.btn, .form-control, .form-select { line-height: 1.3; }
.btn-primary { --bs-btn-bg: var(--brand-2); --bs-btn-border-color: var(--brand-2); --bs-btn-hover-bg: var(--brand); --bs-btn-hover-border-color: var(--brand); --bs-btn-active-bg: var(--brand); --bs-btn-disabled-bg: #7fb6ff; --bs-btn-disabled-border-color: #7fb6ff; border-radius: 10px; font-weight: 500; }
/* Orange call-to-action (top bar "+ Booking", FAB), like the accent on the GrabMyGround screens */
.btn-accent, .topbar .btn-primary { --bs-btn-color: #fff; --bs-btn-bg: var(--accent); --bs-btn-border-color: var(--accent); --bs-btn-hover-color: #fff; --bs-btn-hover-bg: #f25a05; --bs-btn-hover-border-color: #f25a05; --bs-btn-active-bg: #e35200; --bs-btn-active-color: #fff; }
h1, h2, h3, .h4, .h5, .h6, .cal-title, .topbar-title, .stat strong { font-weight: 700; letter-spacing: -.01em; }
.form-control, .form-select { border-radius: 10px; }
.form-control:focus, .form-select:focus { border-color: #7fb6ff; box-shadow: 0 0 0 .2rem rgba(13, 123, 255, .15); }
.btn-icon { font-size: 1.4rem; padding: .25rem .5rem; }

/* ---------- typography scale (mobile-first, rem = 16px) ----------
   page title 21/700 · section 16-17/600 · primary 15/600 · body 14 · meta 12-13 · chips 11-12/600 · buttons 14/500-600 */
b, strong { font-weight: 600; }            /* Bootstrap's "bolder" turned 600 parents into 900 */
.h6, h6 { font-weight: 600; }
.modal-title { font-size: 1.125rem; font-weight: 700; line-height: 1.25; }
.btn { --bs-btn-font-size: .875rem; }
.btn-lg { --bs-btn-font-size: .9375rem; }
.btn-sm { --bs-btn-font-size: .8125rem; }
.form-label { font-size: .8125rem; font-weight: 500; margin-bottom: .3rem; }
.form-control::placeholder { font-size: .875rem; }
.form-text { font-size: .8125rem; }
.alert { font-size: .875rem; }
.badge { font-weight: 600; }
.dropdown-item { font-size: .875rem; }
.table-x td { font-size: .875rem; }
@media (min-width: 992px) { .form-control, .form-select { font-size: .9375rem; } } /* phones keep 16px: iOS zooms into smaller inputs */

/* ---------- status tokens ---------- */
.st-free      { --c: var(--free);      --cb: var(--free-bg); }
.st-confirmed { --c: var(--confirmed); --cb: var(--confirmed-bg); }
.st-pending   { --c: var(--pending);   --cb: var(--pending-bg); }
.st-block     { --c: var(--block);     --cb: var(--block-bg); }
.st-cancelled { --c: var(--cancelled); --cb: var(--cancelled-bg); }
.st-free-text strong { color: var(--free); }
.st-pending-text strong { color: var(--pending); }
.st-cancelled-text strong { color: var(--cancelled); }
.pill { display: inline-block; font-size: .75rem; font-weight: 600; padding: .15rem .5rem; border-radius: 99px; background: var(--cb); color: var(--c); white-space: nowrap; }
.due { color: var(--cancelled); font-weight: 600; }
.stream { font-size: .78rem; color: var(--muted); white-space: nowrap; }
.stream.attn { color: var(--cancelled); font-weight: 600; }

/* ---------- layout ---------- */
.app { display: flex; min-height: 100vh; }
.sidebar { background: linear-gradient(180deg, #0b5ed7 0%, #1e8bff 84%, #ff8a3d 100%) !important; /* brand blue with a faint orange glow at the very bottom */ color: #fff; width: 232px; flex-shrink: 0; display: flex; flex-direction: column; }
@media (min-width: 992px) { .sidebar { position: sticky; top: 0; height: 100vh; } }
.sidebar.offcanvas-lg { --bs-offcanvas-bg: var(--brand); --bs-offcanvas-color: #fff; --bs-offcanvas-width: 260px; }
.sidebar-brand { display: flex; gap: .65rem; align-items: center; padding: 1.1rem 1rem; }
.sidebar-brand small, .sidebar-user small { display: block; color: #cfe2ff; font-size: .75rem; }
.sidebar-user small { color: rgba(255, 255, 255, .9); } /* sits on the orange end of the gradient */
/* GROUND66 logo: the artwork sits on white, so it gets a white tile on the blue bars (contrast) */
.brand-logo, .topbar-logo { display: block; flex-shrink: 0; height: auto; object-fit: contain; background: #fff; }
.brand-logo { width: 44px; border-radius: 12px; }
.brand-name { letter-spacing: .04em; font-weight: 700; }
.topbar-logo { width: 32px; border-radius: 8px; }
.sidebar .nav { padding: .25rem .6rem; flex: 1; }
.sidebar .nav-link { color: #e3eeff; border-radius: 10px; padding: .6rem .75rem; display: flex; gap: .7rem; align-items: center; }
.sidebar .nav-link:hover { background: #ffffff14; color: #fff; }
.sidebar .nav-link.active { background: #fff; color: var(--brand); font-weight: 600; box-shadow: inset 4px 0 0 var(--accent); }
.sidebar .nav-link.active i { color: var(--accent); }
.sidebar .nav { min-height: 0; overflow-y: auto; flex-wrap: nowrap; } /* short screens scroll instead of wrapping into a 2nd column */
.sidebar .nav-link { padding: .5rem .75rem; font-size: .9375rem; }
.nav-sec { font-size: .6875rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: rgba(255, 255, 255, .72); padding: .65rem .75rem .2rem; }
.nav-sec:first-child { padding-top: .2rem; }
.nav-badge { margin-left: auto; font-size: .6875rem; font-weight: 600; line-height: 1.5; padding: 0 .45rem; border-radius: 99px; background: rgba(255, 255, 255, .2); color: #fff; white-space: nowrap; }
.nav-badge.due { background: var(--accent); }
.sidebar .nav-link.active .nav-badge:not(.due) { background: #e8f2ff; color: var(--brand); }
/* Menu shortcuts: New booking / Record pay / Remind */
.nav-quick { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: .4rem; padding: 0 .6rem .35rem; }
.nav-quick > * { display: flex; flex-direction: column; align-items: center; gap: .2rem; padding: .55rem .2rem; border: 0; border-radius: 12px; background: rgba(255, 255, 255, .16); color: #fff; font-size: .6875rem; font-weight: 500; line-height: 1.2; text-align: center; text-decoration: none; white-space: nowrap; min-width: 0; }
.nav-quick > *:hover, .nav-quick > *:focus-visible { background: rgba(255, 255, 255, .26); color: #fff; }
.nav-quick i { font-size: 1.15rem; }
.sidebar-user { display: flex; justify-content: space-between; align-items: center; padding: 1rem; border-top: 1px solid #ffffff1f; }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { display: flex; align-items: center; gap: .75rem; padding: .7rem 1.25rem; background: var(--grad); color: #fff; box-shadow: 0 4px 16px rgba(11, 94, 215, .25); position: sticky; top: 0; z-index: 1020; }
.topbar-title { font-size: 1.15rem; margin: 0; font-weight: 700; }
.search { position: relative; margin-left: auto; width: min(360px, 45vw); }
.search i { position: absolute; left: .75rem; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search input { padding-left: 2.2rem; border-radius: 99px; background: #fff; border-color: transparent; }
.topbar .btn-icon { color: #fff; }
.vendor-pick .form-select { border-radius: 99px; border-color: transparent; }
.content { padding: 1.25rem; max-width: 1500px; width: 100%; }
.card-x { background: var(--card); border: 0; border-radius: 16px; box-shadow: var(--shadow); padding: 1rem; }
.page-head { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.page-head h2 { font-size: 1.3125rem; line-height: 1.25; margin: 0; }
.table-x { background: var(--card); border: 0; border-radius: 16px; box-shadow: var(--shadow); overflow: auto; }
.table-x table { margin: 0; }
.table-x th { font-size: .78rem; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); font-weight: 600; white-space: nowrap; }
.table-x td { vertical-align: middle; }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: .75rem; margin-bottom: .9rem; }
.stat { background: var(--card); border: 0; border-radius: 16px; box-shadow: var(--shadow); padding: .7rem 1rem; }
.stat small { display: block; color: var(--muted); font-size: .78rem; }
.stat strong { font-size: 1.25rem; font-weight: 700; }

/* ---------- calendar shell ---------- */
.cal-card { background: var(--card); border: 0; border-radius: 18px; box-shadow: var(--shadow); padding: 1rem; }
.cal-toolbar { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.cal-title { font-size: 1.3rem; font-weight: 700; margin: 0; flex: 1; }
.view-switch .btn.active { background: var(--brand-2); color: #fff; border-color: var(--brand-2); }
.cal-filters { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: .8rem 0; }
.ground-filter { width: auto; min-width: 170px; font-weight: 600; }
.occ { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; margin-bottom: .8rem; font-size: .88rem; }
.occ-text { display: flex; flex-wrap: wrap; gap: .3rem 1rem; }
.occ-bar { flex: 1; min-width: 120px; height: 8px; background: var(--free-bg); border-radius: 99px; overflow: hidden; display: inline-block; }
.occ-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand-2), var(--accent)); }
.occ-bar.sm { width: 120px; flex: none; vertical-align: middle; margin-left: .5rem; }
.legend { display: flex; flex-wrap: wrap; gap: .4rem 1rem; margin-top: .9rem; font-size: .8rem; color: var(--muted); }
.legend .sw { display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--c); margin-right: .3rem; }
.clash { margin-left: .2rem; }

/* month */
.month { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.dow { font-size: .75rem; font-weight: 600; color: var(--muted); text-transform: uppercase; padding: .4rem .5rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fafbfa; }
.dow.we, .mday.we { background: #f7faf8; }
.mday { min-height: 132px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: .3rem; display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.mday.other { background: #fbfbfb; }
.mday.other .mday-num, .mday.other .evs { opacity: .45; }
.mday.past .evs { opacity: .75; }
.mday-head { display: flex; justify-content: space-between; align-items: center; }
.mday-num { border: 0; background: none; font-weight: 600; font-size: .9rem; width: 28px; height: 28px; border-radius: 50%; padding: 0; }
.mday-num:hover { background: var(--bg); }
.mday.today .mday-num { background: var(--brand-2); color: #fff; }
.mday-occ { font-size: .75rem; color: var(--muted); }
.evs { display: flex; flex-direction: column; gap: 2px; }
.ev { display: flex; align-items: center; gap: .25rem; border: 0; border-left: 3px solid var(--c); background: var(--cb); color: var(--ink); border-radius: 5px; padding: 1px 4px; font-size: .75rem; line-height: 1.35; text-align: left; width: 100%; min-width: 0; }
.ev .ico { font-size: .55rem; }
.ev .t { font-weight: 600; color: var(--c); flex-shrink: 0; }
.ev .n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; min-width: 0; }
.ev.st-free { background: transparent; border-left-color: #bfe5cb; }
.ev.st-free .n, .ev.st-free .t { color: var(--free); font-weight: 400; }
.ev:not(.st-free) .n { font-weight: 600; }
.mday.past .ev.st-free { opacity: .35; }
.ev.st-cancelled .n { text-decoration: line-through; }
.ev:hover { filter: brightness(.95); }
.due-dot { color: var(--cancelled); font-weight: 700; }
.dots { display: none; flex-wrap: wrap; gap: 3px; margin-top: auto; }
.dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }

/* week */
.we-summary { font-size: .9rem; margin-bottom: .6rem; }
.week-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.week { border-collapse: separate; border-spacing: 4px; width: 100%; min-width: 860px; table-layout: fixed; }
.week th { font-size: .8rem; text-align: center; font-weight: 600; color: var(--muted); padding: .3rem; }
.week th small { display: block; font-weight: 400; }
.week thead th.we { background: var(--weekend-bg); border-radius: 8px; }
.week thead th.today { outline: 2px solid var(--brand-2); border-radius: 8px; }
.week .slot-col { width: 92px; text-align: left; position: sticky; left: 0; background: var(--card); z-index: 1; color: var(--ink); }
.week td { padding: 0; vertical-align: top; text-align: center; color: var(--muted); }
.week td.we .wk { box-shadow: inset 0 0 0 1px #c4b5fd; }
.wk-day { border: 0; background: none; color: inherit; }
.wk { width: 100%; min-height: 64px; border: 0; border-left: 4px solid var(--c); background: var(--cb); border-radius: 8px; padding: .35rem .45rem; text-align: left; display: flex; flex-direction: column; gap: 2px; font-size: .8rem; color: var(--ink); }
.wk-top { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.wk.st-free { background: #f6fbf7; border-left-color: #bfe5cb; }
.wk.st-free .wk-top { color: var(--free); font-weight: 500; }
.wk-meta { color: var(--muted); font-size: .76rem; }

/* day */
.day-list { display: flex; flex-direction: column; gap: .6rem; }
.d-slot { display: grid; grid-template-columns: 110px 1fr; gap: .8rem; align-items: stretch; }
.d-time { font-weight: 600; padding-top: .6rem; }
.d-time small { display: block; font-weight: 400; color: var(--muted); font-size: .8rem; }
.d-card { border: 0; border-left: 5px solid var(--c); background: var(--cb); border-radius: 12px; padding: .75rem 1rem; text-align: left; color: var(--ink); width: 100%; }
.d-card:hover { filter: brightness(.97); }
.d-status { font-size: .75rem; font-weight: 600; color: var(--c); letter-spacing: .03em; }
.d-name { font-size: 1.1rem; font-weight: 600; margin: .1rem 0 .25rem; }
.d-meta { display: flex; flex-wrap: wrap; gap: .3rem 1rem; font-size: .88rem; color: var(--muted); }
.d-notes { font-size: .85rem; margin-top: .3rem; color: var(--muted); white-space: pre-line; }

/* ---------- detail panel ---------- */
#detailPanel.offcanvas-end { --bs-offcanvas-width: 420px; }
#detailPanel.offcanvas-bottom { --bs-offcanvas-height: auto; max-height: calc(100dvh - 1.5rem); border-radius: 20px 20px 0 0; } /* sized to content */
.pay-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin-bottom: 1rem; }
.pay-summary > div { background: var(--bg); border-radius: 10px; padding: .5rem .7rem; }
.pay-summary small { display: block; color: var(--muted); font-size: .75rem; }
.pay-summary strong { font-size: 1.1rem; }
.detail-dl { display: grid; grid-template-columns: 120px 1fr; gap: .45rem .75rem; align-items: center; margin: 0; }
.detail-dl dt { font-weight: 500; color: var(--muted); font-size: .85rem; }
.detail-dl dd { margin: 0; }
.booking-row { display: flex; gap: .75rem; align-items: center; }

/* ---------- login (mobile first: brand band on top, white sheet with the form; ≥992px split screen) ---------- */
.lg-body { min-height: 100vh; min-height: 100dvh; margin: 0; display: flex; flex-direction: column; background: var(--bg); color: var(--ink); }
.lg-brand { position: relative; overflow: hidden; color: #fff; text-align: center; padding: max(1.4rem, env(safe-area-inset-top)) 1rem 2.6rem;
  /* GROUND66 blue (--brand / --brand-2) with the brand orange (--accent) as a low glow in one corner, like the old --hero */
  background: radial-gradient(65% 75% at 100% 75%, #ff7a2f66, transparent 70%), radial-gradient(120% 90% at 50% 0%, var(--brand-2) 0%, var(--brand) 55%, #0a46a8 100%); }
.lg-brand::after { content: ""; position: absolute; inset: auto 0 0; height: 4px; background: linear-gradient(90deg, var(--accent), #ffb347); opacity: .9; }
.lg-ground { position: absolute; left: 50%; top: 50%; width: 560px; height: 560px; transform: translate(-50%, -48%); fill: none; stroke: #ffffff26; stroke-width: 1.2; pointer-events: none; }
.lg-ground .pitch { stroke: #ffa25c59; } /* the pitch picks up the logo's orange */
.lg-brand-in { position: relative; }
.lg-logo { width: 76px; height: 76px; display: block; margin: 0 auto .55rem; object-fit: contain; background: #fff; border-radius: 22px; padding: 6px; box-shadow: 0 10px 28px #0006, 0 0 0 4px #ffffff22; }
.lg-name { margin: 0; font-weight: 700; font-size: 1.35rem; letter-spacing: .14em; }
.lg-name span { color: #ffa25c; }
.lg-tag { margin: .1rem 0 0; font-size: .9rem; color: #dbe7ff; }
.lg-panel { flex: 1; display: flex; flex-direction: column; background: var(--bg); border-radius: 26px 26px 0 0; margin-top: -1.5rem; position: relative; z-index: 1; }
.lg-card { width: 100%; max-width: 420px; margin: 0 auto; padding: 1.5rem 1.25rem 1rem; }
.lg-h { font-size: 1.3125rem; font-weight: 700; margin: 0; }
.lg-h::before { content: ""; display: block; width: 28px; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); margin-bottom: .6rem; }
.lg-sub { color: var(--muted); margin: .15rem 0 1.1rem; font-size: .92rem; }
.lg-alert { display: flex; gap: .6rem; align-items: flex-start; background: var(--cancelled-bg); color: var(--cancelled); border-radius: 12px; padding: .65rem .8rem; margin-bottom: 1rem; font-size: .88rem; animation: lgIn .2s ease-out; }
.lg-alert i { font-size: 1.1rem; line-height: 1.2; }
.lg-alert strong { display: block; font-weight: 600; }
.lg-alert span { color: #7f1d1d; }
.lg-alert.ok { background: var(--free-bg); color: var(--free); }
.lg-alert.ok span { color: #14532d; }
.lg-field { margin-bottom: .9rem; }
.lg-field label { display: block; font-size: .8125rem; font-weight: 500; margin-bottom: .3rem; }
.lg-field .form-control { height: 50px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; font-size: 16px; padding: 0 .9rem; transition: border-color .15s, box-shadow .15s; }
.lg-field .form-control:focus { border-color: var(--brand-2); box-shadow: 0 0 0 4px #0d7bff22; }
.lg-pw { position: relative; }
.lg-pw .form-control { padding-right: 3rem; }
.lg-eye { position: absolute; right: 4px; top: 4px; width: 42px; height: 42px; border: 0; border-radius: 10px; background: none; color: var(--muted); font-size: 1.15rem; display: grid; place-items: center; }
.lg-eye:hover { color: var(--ink); background: var(--bg); }
.lg-eye:focus-visible, .lg-btn:focus-visible, .lg-wa:focus-visible, .lg-call:focus-visible { outline: 3px solid #0d7bff66; outline-offset: 2px; }
.lg-err { display: none; color: var(--cancelled); font-size: .8rem; margin-top: .25rem; }
.lg-field.bad .lg-err { display: block; }
.lg-field.bad .form-control { border-color: var(--cancelled); }
.lg-btn { width: 100%; height: 52px; border: 0; border-radius: 14px; margin-top: .35rem; background: var(--brand); color: #fff; font-weight: 600; font-size: .9375rem;
  display: flex; align-items: center; justify-content: center; gap: .55rem; box-shadow: 0 8px 20px #0b5ed744; transition: transform .12s, box-shadow .15s, filter .15s; }
.lg-btn:hover { background: #0a54c2; box-shadow: 0 10px 24px #0b5ed755; }
.lg-btn:active { transform: scale(.985); }
.lg-btn .spinner-border { display: none; }
.lg-btn.busy { filter: saturate(.8); cursor: progress; }
.lg-btn.busy .spinner-border { display: inline-block; }
.lg-help { margin-top: 1.4rem; padding-top: 1.1rem; border-top: 1px dashed var(--line); text-align: center; }
.lg-help-t { margin: 0; font-weight: 600; font-size: .92rem; }
.lg-help-s { margin: 0 0 .7rem; color: var(--muted); font-size: .84rem; }
.lg-help-a { display: flex; gap: .5rem; justify-content: center; flex-wrap: wrap; }
.lg-wa, .lg-call { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; padding: 0 1rem; border-radius: 999px; font-size: .9rem; font-weight: 600; text-decoration: none; transition: background .15s, border-color .15s; }
.lg-wa { color: #128c4b; background: #e8f8ee; border: 1px solid #bfe9cf; }
.lg-wa:hover { background: #d6f3e1; color: #0e7a40; }
.lg-call { color: var(--ink); background: #fff; border: 1px solid var(--line); }
.lg-call:hover { border-color: #ffc29a; color: var(--brand); }
.lg-call i { color: var(--accent); }
.lg-foot { margin-top: auto; text-align: center; color: var(--muted); font-size: .75rem; padding: .8rem 1rem max(1rem, env(safe-area-inset-bottom)); }
/* Phones/tablets (design "P3"): soft blue → light blue → peach page; the white sheet with the form fades out at the bottom;
   extra screen height goes to the logo area (it grows and centres the logo) so the bottom stays compact: help → footer →
   a huge, very faint GROUND66 wordmark sitting on the bottom edge. */
.lg-word { display: none; }
@media (max-width: 991.98px) {
  .lg-body { background: linear-gradient(180deg, #0b5ed7 0%, #2a7cec 22%, #9cc0f7 48%, #ffe4d2 78%, #ffb184 100%); }
  .lg-brand { background: transparent; padding-bottom: 1.5rem; flex: 1 0 auto; display: flex; flex-direction: column; justify-content: center; }
  .lg-brand::after { display: none; }
  .lg-panel { flex: 0 0 auto; background: transparent; margin-top: 0; border-radius: 0; }
  .lg-card { padding: 0 12px; }
  .lg-sheet { background: linear-gradient(180deg, #fff 0%, #fff 84%, #ffffff00 100%); border-radius: 24px 24px 0 0; padding: 1.4rem 1.15rem 2.6rem; }
  .lg-help { border-top: 0; margin-top: 0; padding-top: 0; }
  .lg-wa, .lg-call { background: #ffffffcc; }
  .lg-wa:hover, .lg-call:hover { background: #fff; }
  .lg-foot { margin-top: .9rem; padding: .3rem 1rem 0; color: #8a5a3c; }
  /* same size/width as before; line-height .8 + a little bottom padding so the letters' bottoms aren't cut by the screen edge / gesture bar */
  .lg-word { display: block; overflow: hidden; margin-top: .3rem; padding-bottom: max(.6rem, env(safe-area-inset-bottom)); text-align: center; white-space: nowrap; font-weight: 700;
    font-size: min(16.5vw, 96px); letter-spacing: .02em; line-height: .8; color: #0b5ed71c; user-select: none; pointer-events: none; }
  .lg-word span { color: #ff7a2f38; }
}
@keyframes lgIn { from { opacity: 0; transform: translateY(-4px); } }
@media (max-height: 640px) { .lg-brand { padding-top: 1rem; padding-bottom: 2.2rem; } .lg-logo { width: 60px; height: 60px; border-radius: 18px; } .lg-sub { margin-bottom: .8rem; } }
@media (min-width: 576px) { .lg-card { padding-top: 2rem; } }
@media (min-width: 992px) {
  .lg-body { flex-direction: row; }
  .lg-brand { flex: 1.1; display: grid; place-items: center; padding: 2rem; }
  .lg-brand::after { inset: 0 0 0 auto; width: 4px; height: auto; background: linear-gradient(180deg, var(--accent), #ffb347); }
  .lg-ground { width: min(88vh, 92%); height: auto; aspect-ratio: 1; transform: translate(-50%, -50%) rotate(90deg); }
  .lg-logo { width: 120px; height: 120px; border-radius: 30px; padding: 8px; margin-bottom: 1rem; }
  .lg-name { font-size: 2rem; }
  .lg-tag { font-size: 1.05rem; }
  .lg-panel { flex: 1; margin: 0; border-radius: 0; justify-content: center; }
  .lg-ground .pitch { stroke: #ffa25c8c; }
  .lg-card { margin: auto; background: #fff; border-radius: 22px; box-shadow: var(--shadow); padding: 2.2rem 2rem 1.6rem; border-top: 3px solid var(--accent); }
  .lg-foot { margin-top: 0; }
}

/* ---------- mobile ---------- */
.tabbar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 1030; background: var(--card); border-top: 1px solid var(--line); display: flex; padding-bottom: env(safe-area-inset-bottom); }
.tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; padding: .45rem 0 .35rem; color: var(--muted); text-decoration: none; font-size: .75rem; font-weight: 500; line-height: 1.3; } /* one size on every page: page rules must not touch the tab bar */
.tabbar a i { font-size: 1.25rem; }
.tabbar a.active { color: var(--brand-2); font-weight: 600; }

@media (max-width: 991.98px) {
  .content { padding: .9rem .9rem 96px; }
  .topbar { padding: .55rem .75rem; }
  .stats { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 767.98px) {
  body { font-size: 14px; }
  .topbar-title { display: none; }
  .search { width: 100%; }
  .stats { display: flex; overflow-x: auto; scrollbar-width: none; gap: .5rem; }
  .stat { flex: 0 0 auto; min-width: 128px; padding: .55rem .8rem; }
  .stat strong { font-size: 1.2rem; }
  .cal-card { padding: .7rem; border-radius: 14px; }
  .cal-title { order: -1; flex-basis: 100%; font-size: 1.15rem; }
  .cal-toolbar { justify-content: space-between; }
  .ground-filter { width: 100%; }
  .detail-dl { grid-template-columns: 105px 1fr; }
}

.empty-state { text-align: center; padding: 3rem 1rem; color: var(--muted); }
.empty-state i { font-size: 2rem; display: block; margin-bottom: .5rem; }

/* ---------- opponent status ---------- */
/* Needs an opponent: dashed orange outline + faint hatch reads as "half-filled slot"; confirmed matches stay calm. */
.need-opp { outline: 1.5px dashed var(--accent); outline-offset: -1.5px;
  background-image: repeating-linear-gradient(135deg, rgba(255, 107, 26, .10) 0 6px, transparent 6px 12px); }
.vs-q { flex-shrink: 0; margin-left: auto; background: var(--accent); color: #fff; font-size: .6875rem; font-weight: 600; letter-spacing: .03em;
  padding: 0 .35rem; border-radius: 99px; line-height: 1.5; animation: oppPulse 2s ease-in-out infinite; }
.vs-ok { flex-shrink: 0; margin-left: auto; color: var(--free); font-size: .75rem; }
@keyframes oppPulse { 50% { box-shadow: 0 0 0 3px rgba(255, 107, 26, .3); } }
@media (prefers-reduced-motion: reduce) { .vs-q { animation: none; } }
.opp-tag { display: inline-flex; align-items: center; gap: .3rem; font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .03em;
  padding: .15rem .55rem; border-radius: 99px; white-space: nowrap; width: fit-content; }
.opp-tag.need { background: var(--accent); color: #fff; }
.opp-tag.ok { background: var(--free-bg); color: var(--free); }
/* Week columns are narrow and fixed: the pill wraps inside its cell instead of spilling into the next day. */
.wk { overflow: hidden; min-width: 0; }
.wk .opp-tag { max-width: 100%; white-space: normal; line-height: 1.25; border-radius: 8px; font-size: .6875rem; padding: .1rem .4rem; margin-top: 2px; }
.d-card .opp-tag { margin-bottom: .3rem; }
.d-main { display: flex; flex-direction: column; gap: .4rem; min-width: 0; }
.opp-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; padding: .5rem .75rem;
  border: 1.5px dashed var(--accent); border-radius: 12px; background: #fff7f0; color: #9a3f00; font-size: .88rem; }
.dots i.need-opp { box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--accent); }

/* ---------- mobile: calendar first ---------- */
.sm-only { display: none; }
.ground-pick { margin: 0; }
@media (max-width: 767.98px) {
  .sm-only { display: inline; }
  .lg-only { display: none; }

  /* Header: one tight row = menu · search · + booking (replaces the floating button that covered bookings) */
  .topbar { padding: .4rem .5rem; gap: .4rem; }
  .topbar .btn-icon { padding: .1rem .3rem; font-size: 1.3rem; }
  .search input { height: 36px; padding-top: 0; padding-bottom: 0; font-size: .9rem; }
  .new-booking-btn { width: 36px; height: 36px; padding: 0; justify-content: center; border-radius: 10px; flex-shrink: 0; font-size: 1.1rem; }
  .vendor-pick { max-width: 34%; }
  .content { padding: .5rem .5rem 76px; }

  /* Calendar card: controls reflow into a dense grid, calendar right after */
  .page-calendar .cal-card { padding: .5rem; border-radius: 14px; display: grid; grid-template-columns: 1fr auto; gap: .4rem; align-items: center;
    grid-template-areas: "title nav" "view ground" "occ occ" "cal cal"; }
  .page-calendar .cal-toolbar, .page-calendar .cal-filters { display: contents; }
  .page-calendar .cal-title { grid-area: title; order: 0; flex-basis: auto; font-size: 1.05rem; }
  .page-calendar .cal-toolbar > .btn-group:first-child { grid-area: nav; }
  .page-calendar .cal-toolbar .btn { padding: .25rem .55rem; font-size: .85rem; }
  .page-calendar .view-switch { grid-area: view; justify-self: start; }
  .page-calendar .ground-pick { grid-area: ground; display: flex; align-items: center; gap: .35rem; font-size: .8rem; color: var(--muted); }
  .page-calendar .ground-filter { width: auto; min-width: 0; max-width: 150px; padding-top: .2rem; padding-bottom: .2rem; }
  .page-calendar .occ { grid-area: occ; margin: 0; font-size: .78rem; gap: .2rem .6rem; }
  .page-calendar .occ:not(.d-none) { display: flex; }
  .page-calendar #cal { grid-area: cal; min-width: 0; }
  .page-calendar .legend { grid-area: legend; margin-top: .2rem; font-size: .75rem; }
  .page-calendar .cal-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
}

/* ---------- phone calendar legend ---------- */

@media (max-width: 767.98px) {
  .page-calendar .legend { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; white-space: nowrap; gap: .8rem; }
}

/* ---------- ball type ---------- */
.ball { flex-shrink: 0; vertical-align: -2px; }
.ball-tag { display: inline-flex; align-items: center; gap: .25rem; white-space: nowrap; }
.ball-pick { display: flex; flex-wrap: wrap; gap: .4rem; }
.ball-opt { display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .7rem .35rem .45rem; border: 1px solid var(--line);
  border-radius: 99px; background: #fff; cursor: pointer; font-size: .88rem; user-select: none; }
.ball-opt:hover { border-color: #93c5fd; }
.btn-check:checked + .ball-opt { border-color: var(--brand-2); background: #e8f2ff; box-shadow: 0 0 0 .15rem rgba(13, 123, 255, .2); font-weight: 600; }
.btn-check:focus-visible + .ball-opt { outline: 2px solid var(--brand-2); outline-offset: 2px; }
.ev .ball { width: 11px; height: 11px; }

.ground-one { font-weight: 600; font-size: .95rem; white-space: nowrap; }

/* ---------- phone calendar: concept A (strip + agenda) ---------- */
.pip { display: block; height: 6px; border-radius: 3px; background: #e2e8f0; }
.pip.match { background: var(--brand-2); }
.pip.need { background: var(--accent); }
.pip.block { background: #64748b; }
.psum { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem .75rem; font-size: .85rem; margin: .7rem 0 .75rem; min-height: 40px; }
.psum-chips { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: .4rem .5rem; margin-left: auto; }
.ag-need, .chip-due { display: inline-flex; align-items: center; min-height: 28px; border: 0; border-radius: 99px; padding: .2rem .7rem; font-size: .75rem; font-weight: 600; background: #fff1e6; color: #c2410c; white-space: nowrap; }
.chip-due { background: var(--cancelled-bg); color: var(--cancelled); }
.pstrip { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.pd { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 7px 0 5px; border-radius: 12px; border: 1px solid var(--line);
  background: #fff; color: var(--ink); min-width: 0; }
.pd.we { background: #f8f5ff; }
.pd.past { opacity: .6; }
.pd.today:not(.sel) { box-shadow: inset 0 0 0 2px var(--brand-2); }
.pd.sel { background: var(--brand-2); border-color: var(--brand-2); color: #fff; box-shadow: 0 6px 14px rgba(13, 123, 255, .3); opacity: 1; }
.pd.sel .pip.free { background: rgba(255, 255, 255, .35); }
.pd.sel .pip.match { background: #fff; }
.pd-dow { font-size: .6875rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }
.pd-num { font-size: 1.02rem; font-weight: 700; line-height: 1.1; }
.pd-pips { display: flex; flex-direction: column; gap: 2px; width: 100%; padding: 3px 6px 0; box-sizing: border-box; }
.pd-count { font-size: .6875rem; font-weight: 600; }
.plegend { display: flex; gap: .9rem; justify-content: center; margin: .45rem 0 .2rem; font-size: .75rem; color: var(--muted); }
.plegend span { display: flex; align-items: center; gap: .3rem; }
.plegend .pip { width: 14px; }
/* month grid: same day button, no labels */
.pm-dows { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); text-align: center; font-size: .6875rem; font-weight: 600; color: var(--muted); letter-spacing: .05em; text-transform: uppercase; margin-bottom: 3px; }
.pm-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
.pm-grid .pd { border: 0; background: #f8fafc; padding: 4px 0 6px; min-height: 56px; justify-content: space-between; }
.pm-grid .pd.we { background: #f8f5ff; }
.pm-grid .pd.out { opacity: .35; }
.pm-grid .pd.sel { background: var(--brand-2); color: #fff; }
.pm-grid .pd.today:not(.sel) .pd-num { background: var(--brand-2); color: #fff; border-radius: 50%; width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; font-size: .85rem; }
.pm-grid .pd.today:not(.sel) { box-shadow: none; }
.pm-grid .pd-pips { gap: 2px; padding: 0 5px; }
.pm-grid .pip { height: 4px; }
/* agenda */
.agenda { display: flex; flex-direction: column; gap: 7px; margin-top: .6rem; padding-top: .6rem; border-top: 1px solid var(--line); }
.agenda.full { border-top: 0; padding-top: 0; }
.ag-head { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; }
.ag-open { border: 0; background: none; color: var(--brand); font-weight: 600; font-size: .8rem; }
.ag-row { display: grid; grid-template-columns: 50px minmax(0, 1fr); gap: 8px; align-items: stretch; }
.ag-time { font-weight: 600; font-size: .84rem; padding-top: .55rem; line-height: 1.2; white-space: nowrap; }
.ag-time small { display: block; font-size: .6875rem; font-weight: 500; color: var(--muted); }
.ag-card { display: flex; align-items: center; gap: 8px; border-radius: 12px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--c);
  box-shadow: 0 2px 6px rgba(15, 23, 42, .05); min-width: 0; overflow: hidden; }
.ag-card.need { border: 1.5px dashed #ff8a3d; border-left: 4px solid var(--accent); background: #fff7f0; }
.ag-main { flex: 1; min-width: 0; border: 0; background: none; text-align: left; padding: .45rem .55rem; display: flex; flex-direction: column; gap: 1px; color: var(--ink); }
.ag-top { display: flex; align-items: center; justify-content: space-between; gap: .4rem; }
.ag-kick { font-size: .6875rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--c); }
.ag-kick.ok { color: var(--free); }
.ag-kick.need { color: #c2410c; }
.ag-status { font-size: .6875rem; font-weight: 600; color: var(--c); background: var(--cb); border-radius: 6px; padding: 0 .4rem; }
.ag-team { display: flex; align-items: center; flex-wrap: wrap; gap: .3rem; font-weight: 600; font-size: .92rem; line-height: 1.25; }
.ag-vs { color: #94a3b8; font-size: .78rem; font-weight: 500; }
.ag-q { color: #c2410c; border: 1.5px dashed #ff8a3d; border-radius: 6px; padding: 0 .4rem; font-size: .8rem; }
.ag-meta { font-size: .75rem; color: #475569; }
.ag-meta .paid { color: var(--free); }
.ag-meta .due { color: var(--cancelled); font-weight: 600; }
.ag-find { flex-shrink: 0; margin-right: .5rem; border: 0; background: var(--accent); color: #fff; border-radius: 10px; padding: .45rem .65rem; font-size: .8125rem; font-weight: 600; white-space: nowrap; }
.ag-free { border: 1px dashed #cbd5e1; background: transparent; border-radius: 12px; padding: .55rem .7rem; color: var(--free); font-weight: 600; font-size: .84rem;
  display: flex; align-items: center; justify-content: space-between; text-align: left; }
.ag-free small { color: var(--muted); font-weight: 500; }
.ag-free.past { color: #9fb7a8; border-color: #e5efe8; }
.ag-block { border: 0; background: var(--block-bg); color: var(--block); border-radius: 12px; padding: .55rem .7rem; font-size: .82rem; text-align: left; }
/* Day view: full cards with an action bar */
.agenda.full .ag-card { flex-direction: column; align-items: stretch; gap: 0; }
.agenda.full .ag-team { font-size: .9375rem; }
.ag-actions { display: flex; border-top: 1px dashed var(--line); }
.agenda.full .ag-card.need .ag-actions { border-top-color: #ffb27f; }
.ag-actions .ag-find { flex: 1; margin: 0; border-radius: 0; padding: .5rem; font-size: .82rem; }
.ag-act { border: 0; background: #fff; color: var(--brand); font-weight: 600; font-size: .82rem; padding: .5rem .9rem; text-decoration: none; text-align: center; }
.ag-actions > * + * { border-left: 1px solid var(--line); }
.agenda.full .ag-card:not(.need) .ag-actions { justify-content: flex-end; }

/* ---------- booking form: who → when → match → payment, sticky recap + save ---------- */
.bk-modal .modal-header { gap: .6rem; }
.bk-ground { display: flex; align-items: center; gap: .3rem; margin: 0 0 0 auto; }
.bk-ground .form-select { max-width: 220px; }
.bk-modal .modal-body { background: var(--bg); padding: .9rem; }
.bk-grid { display: grid; gap: .8rem; counter-reset: bk; }
.bk-h > span::before { counter-increment: bk; content: counter(bk); } /* numbered in order, so hidden sections (money for staff) leave no gap */
@media (min-width: 992px) {
  .bk-grid { grid-template-columns: 1fr 1.15fr; align-items: start; }
  .bk-when { grid-row: span 2; grid-column: 2; }
  .bk-more { grid-column: 1 / -1; }
}
.bk-sec, .bk-more { background: var(--card); border-radius: 16px; padding: .9rem 1rem; box-shadow: 0 1px 3px rgba(15, 23, 42, .06); min-width: 0; }
.bk-h { display: flex; align-items: center; gap: .5rem; font-size: 1rem; font-weight: 600; margin: 0 0 .7rem; }
.bk-h span { width: 22px; height: 22px; border-radius: 50%; background: #e8f2ff; color: var(--brand); font-size: .75rem;
  display: inline-flex; align-items: center; justify-content: center; }
.bk-label { display: block; font-size: .85rem; font-weight: 600; color: var(--muted); margin: .8rem 0 .35rem; }
.bk-err { display: none; color: var(--cancelled); font-size: .85rem; font-weight: 600; margin-top: .3rem; }
.bk-err.on { display: block; }
.bk-err.on::before { content: '⚠ '; }
.min-w-0 { min-width: 0; }

.bk-captain { display: flex; align-items: center; gap: .6rem; margin-top: .6rem; padding: .55rem .7rem; border-radius: 12px; background: #f5f9ff; border: 1px solid #dbe8fb; }
.bk-captain small { display: block; color: var(--muted); font-size: .75rem; line-height: 1.1; }
.bk-captain strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bk-avatar { width: 34px; height: 34px; border-radius: 50%; background: #fff; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }

.bk-date { display: flex; gap: .4rem; margin-bottom: .7rem; }
.bk-date input { flex: 1; min-width: 0; }
.bk-date .btn { white-space: nowrap; }
.bk-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .5rem; }
.slot-card { display: flex; flex-direction: column; align-items: flex-start; gap: .05rem; text-align: left; min-height: 64px; padding: .5rem .7rem;
  border-radius: 12px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); min-width: 0; }
.slot-card small { color: var(--muted); font-size: .75rem; }
.slot-card .slot-state { font-size: .75rem; font-weight: 600; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.slot-card.free .slot-state { color: var(--free); }
.slot-card.free:hover { border-color: #93c5fd; }
.slot-card.taken { background: var(--cancelled-bg); border-color: transparent; }
.slot-card.taken .slot-state { color: var(--cancelled); }
.slot-card.blocked { background: var(--block-bg); border-color: transparent; }
.slot-card[aria-disabled="true"] { opacity: .75; cursor: help; }
.slot-card.sel { border-color: var(--brand-2); background: #e8f2ff; box-shadow: 0 0 0 .2rem rgba(13, 123, 255, .18); }
.slot-card.sel .slot-state::before { content: '✓ '; }

/* Match type: three equal cards */
.bk-types { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .45rem; }
.bk-type { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .2rem; min-height: 62px; padding: .45rem .3rem;
  border: 1.5px solid var(--line); border-radius: 12px; background: #fff; font-size: .88rem; font-weight: 600; cursor: pointer; user-select: none; text-align: center; }
.bk-type .mt-ic { font-size: 1.15rem; }
.bk-type:hover { border-color: #93c5fd; }
.btn-check:checked + .bk-type { border-color: var(--brand-2); background: #e8f2ff; color: var(--brand); box-shadow: 0 0 0 .2rem rgba(13, 123, 255, .15); }
.btn-check:checked + .bk-type .mt-ic { color: var(--brand); }
.btn-check:focus-visible + .bk-type { outline: 2px solid var(--brand-2); outline-offset: 2px; }

/* Live streaming: the whole row is the tap target */
.bk-stream { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin: .8rem 0 0; padding: .6rem .75rem;
  border: 1px solid var(--line); border-radius: 12px; cursor: pointer; font-weight: 600; min-height: 48px; }
.bk-stream small { font-weight: 600; color: var(--muted); margin-left: .25rem; }
.bk-stream .form-check-input { width: 2.6em; height: 1.4em; cursor: pointer; }
.bk-stream:has(:checked) { border-color: #93c5fd; background: #f5f9ff; }
.bk-stream:has(:checked) small { color: var(--brand); }

/* Team search */
.tp-box { position: relative; }
.tp-box > .bi { position: absolute; left: .85rem; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.tp-box .tp-q { padding-left: 2.4rem; }
.tp-list { display: flex; flex-direction: column; margin-top: .4rem; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.tp-list:empty { display: none; }
.tp-head, .tp-more, .tp-none { padding: .35rem .75rem; font-size: .75rem; color: var(--muted); background: #f8fafc; }
.tp-head { font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.tp-none { font-size: .85rem; background: #fff; padding: .6rem .75rem; }
.tp-item { display: flex; flex-direction: column; align-items: flex-start; gap: .05rem; width: 100%; text-align: left; border: 0; border-top: 1px solid var(--line);
  background: #fff; padding: .5rem .75rem; min-height: 48px; justify-content: center; color: var(--ink); }
.tp-head + .tp-item, .tp-list > .tp-item:first-child { border-top: 0; }
.tp-item small { color: var(--muted); font-size: .78rem; }
.tp-item:hover, .tp-item:focus-visible { background: #f5f9ff; outline: 0; }
.tp-new strong { color: var(--brand); }
.bk-captain small { font-size: .8rem; }
.bk-captain #capMobile { display: block; width: fit-content; }
/* Who's playing: your team · VS · opponent (stacked on phones, side by side on desktop) */
#oppChosen { flex-wrap: wrap; }

.bk-sub { font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-bottom: .35rem; }
.bk-vs { display: flex; align-items: center; gap: .6rem; margin: .7rem 0; color: var(--muted); font-size: .75rem; font-weight: 600; letter-spacing: .08em; }
.bk-vs::before, .bk-vs::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.bk-addopp { width: 100%; min-height: 48px; border: 1.5px dashed #cbd5e1; border-radius: 12px; background: transparent; color: var(--brand); font-weight: 600; }
.bk-addopp:hover { border-color: #93c5fd; background: #f5f9ff; }
.bk-opp.attn .tp-q { border-color: var(--accent); box-shadow: 0 0 0 .2rem rgba(255, 107, 26, .18); }
@media (min-width: 992px) {
  .bk-who { grid-column: 1 / -1; }
  .bk-sides { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 0 1rem; align-items: start; }
  .bk-vs { flex-direction: column; margin: 0; align-self: stretch; padding-top: 1.6rem; }
  .bk-vs::before { flex: 0 0 1.2rem; width: 1px; height: auto; }
  .bk-vs::after { width: 1px; height: auto; }
}

/* Refreshment: one Included / Not included choice inside each team's block */

.ref-cost { flex: 0 0 130px; }
.up-fee { margin-top: .5rem; }

/* Match fees: one row per team (name on the left, its fee on the right), then the total */

.fee-none { padding: .5rem 0; font-size: .85rem; color: var(--muted); border-bottom: 1px solid var(--line); }
.fee-total { display: flex; justify-content: space-between; align-items: baseline; padding: .55rem 0 .1rem; font-weight: 600; }
.fee-total strong { font-size: 1.125rem; font-weight: 700; color: var(--brand); }
/* Booking details: both captains side by side */
.cap-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .5rem; margin-bottom: 1rem; }
.cap-card { display: flex; flex-direction: column; gap: .1rem; min-width: 0; padding: .55rem .7rem; border-radius: 12px; background: #f5f9ff; border: 1px solid #dbe8fb; }
.cap-card small { font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.cap-card strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cap-card > span { font-size: .85rem; overflow-wrap: break-word; }
.cap-card a { font-weight: 600; width: fit-content; }
.fee-box { border: 1px solid var(--line); border-radius: 12px; padding: .6rem .75rem; margin-bottom: 1rem; }
.fee-line { display: flex; justify-content: space-between; gap: .75rem; padding: .15rem 0; }
.fee-line span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fee-sum { border-top: 1px solid var(--line); margin-top: .3rem; padding-top: .4rem; }
.bk-seg { display: flex; flex: 1 1 240px; background: var(--bg); border-radius: 10px; padding: 3px; }
.bk-seg label { flex: 1; text-align: center; padding: .4rem .3rem; border-radius: 8px; cursor: pointer; font-size: .88rem; color: var(--muted); white-space: nowrap; }
.bk-seg .btn-check:checked + label { background: #fff; color: var(--brand); font-weight: 600; box-shadow: 0 1px 3px rgba(15, 23, 42, .12); }
.bk-seg .btn-check:focus-visible + label { outline: 2px solid var(--brand-2); }
.bk-received { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .6rem; margin-top: .5rem; }
.bk-received .input-group { flex: 1 1 200px; }
.bk-due { font-weight: 600; color: var(--cancelled); white-space: nowrap; }

.bk-more { padding: .7rem 1rem; }
.bk-more summary { font-weight: 600; cursor: pointer; }

.bk-foot { flex-wrap: nowrap; gap: .5rem; background: #fff; }
.bk-sum { flex: 1; min-width: 0; font-size: .85rem; line-height: 1.35; }
.bk-foot .btn-lg { white-space: nowrap; padding-left: 1.4rem; padding-right: 1.4rem; }
.bk-done { display: none; padding: 1.5rem 1rem calc(1rem + env(safe-area-inset-bottom)); background: var(--bg); overflow-y: auto; }
.done .modal-body, .done .modal-footer, .done #bkPitch { display: none; }
.done .bk-done { display: block; flex: 1 1 auto; min-height: 0; } /* its own scroll area inside the modal */
.done .modal-header .btn-close { margin-left: auto; }
.bk-done > * { max-width: 460px; margin-left: auto; margin-right: auto; }
.bk-done-head { text-align: center; margin-bottom: 1.1rem; }
.bk-done-icon { width: 60px; height: 60px; margin: 0 auto .75rem; border-radius: 50%; background: var(--free); color: #fff; font-size: 1.9rem;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 8px var(--free-bg); }
.bk-done-title { font-size: 1.25rem; font-weight: 700; margin: 0 0 .2rem; }
.bk-done-sub { color: var(--muted); font-size: .9rem; margin: 0; }
/* Saved booking: id + status, who's playing, labelled facts, then labelled extras */
.bk-done-card { background: var(--card); border-radius: 16px; box-shadow: var(--shadow); padding: 1rem 1.1rem; }
.bk-done-card:empty { display: none; }
.dc-top { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding-bottom: .65rem; border-bottom: 1px solid var(--line); }
.dc-id { font-weight: 600; color: var(--muted); font-size: .85rem; letter-spacing: .02em; }
.dc-match { padding: .75rem 0; font-size: 1.05rem; line-height: 1.35; overflow-wrap: break-word; border-bottom: 1px solid var(--line); }
.dc-match strong { font-weight: 600; }
.dc-match .pvs { display: inline; margin: 0 .3rem; }
.dc-match .opp-tag { margin-left: .35rem; vertical-align: middle; }
.dc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem 1rem; padding: .8rem 0; }
.dc-f small, .dc-m small { display: block; font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.dc-f strong { display: block; font-weight: 600; font-size: .92rem; overflow-wrap: break-word; }
.dc-meta { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; padding-top: .8rem; border-top: 1px solid var(--line); }
.dc-m { display: flex; align-items: center; gap: .55rem; padding: .5rem .6rem; border-radius: 12px; background: var(--bg); min-width: 0; }
.dc-m > i, .dc-m > .ball { flex-shrink: 0; font-size: 1.05rem; color: var(--brand); }
.dc-m div { min-width: 0; }
.dc-m span { display: block; font-size: .85rem; font-weight: 600; overflow-wrap: break-word; }
.dc-money { display: flex; justify-content: space-between; gap: .5rem; margin-top: .8rem; padding: .6rem .75rem; border-radius: 12px; background: #f5f9ff; font-size: .9rem; }
.dc-money strong { font-weight: 700; }
.bk-done-acts { display: grid; grid-template-columns: 1fr; gap: .55rem; margin-top: 1rem; padding: .75rem 0 .25rem;
  position: sticky; bottom: calc(-1rem - env(safe-area-inset-bottom)); background: var(--bg); } /* always one thumb away */
.bk-done-acts .btn { min-height: 48px; border-radius: 12px; font-weight: 600; }
.bk-done-acts .wa-day.labelled { height: 44px; width: 100%; }
@media (min-width: 576px) { .bk-done { padding-top: 2.25rem; } .bk-done-acts { grid-template-columns: 1fr 1fr; } .bk-done-acts .wa-day { grid-column: 1 / -1; } }

@media (max-width: 767.98px) {
  .bk-modal .modal-body { padding: .6rem; }
  .bk-sec, .bk-more { padding: .8rem; border-radius: 14px; }
  .bk-modal .form-control, .bk-modal .form-select { font-size: 16px; min-height: 44px; } /* 16px: no iOS zoom on focus */
  .bk-slots { grid-template-columns: 1fr 1fr; }
  .bk-date { flex-wrap: wrap; }
  .bk-date input { flex-basis: 100%; }
  .bk-date .btn { flex: 1; }
  .ball-pick { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -.8rem; padding: 0 .8rem .1rem; }
  .ball-opt { flex-shrink: 0; min-height: 40px; }
  
  .bk-foot { padding: .5rem .6rem calc(.5rem + env(safe-area-inset-bottom)); }
  .bk-sum { font-size: .78rem; }
}

/* Umpires & trophies: Umpire 1 above Umpire 2 (the section is narrow on every screen); trophy count as a 1–5 segment */

.xt { display: inline-flex; align-items: center; gap: .1rem; margin-left: .3rem; font-size: .78em; color: #64748b; white-space: nowrap; }
.xt:first-child { margin-left: 0; }

/* ---------- match type indicator: tiny monochrome slate icon, never a status colour ---------- */
.mt-ic { color: #64748b; font-size: .8em; flex-shrink: 0; line-height: 1; }
.ev .mt-ic { font-size: .62rem; }
.wk-top .mt-ic, .ag-team .mt-ic { font-size: .72em; }

.tlegend { display: flex; gap: .9rem; justify-content: center; margin: 0 0 .3rem; font-size: .75rem; color: var(--muted); }

/* Reports: match earnings */

/* Reports: who still owes. Red = both teams (or the booking) owe, amber = one team owes; a chip under each team says which. */

.pvs { display: block; font-size: .75rem; color: var(--muted); margin: .05rem 0; }
.pchip { display: inline-flex; align-items: center; padding: .05rem .5rem; border-radius: 999px; font-size: .75rem; font-weight: 600; white-space: nowrap; }
.pchip.due { background: var(--cancelled-bg); color: var(--cancelled); }
.pchip.ok { background: var(--free-bg); color: var(--free); }

/* Phones: every match becomes a card — teams + who owes on top, then label: value lines */

/* Read-only fields (profile login details): look locked, not editable */
.form-control[readonly] { background: var(--bg); color: var(--muted); cursor: default; }

/* WhatsApp pitch buttons: a small green icon on a calendar day, labelled where there is room */
.wa-day { display: inline-flex; align-items: center; justify-content: center; gap: .3rem; min-width: 28px; height: 28px; padding: 0 .35rem;
  border: 0; border-radius: 8px; background: #e7f8ee; color: #128c4a; font-size: .95rem; line-height: 1; flex-shrink: 0; }
.wa-day:hover, .wa-day:focus-visible { background: #25d366; color: #fff; }
.wa-day.labelled { height: 34px; padding: 0 .75rem; font-size: .85rem; font-weight: 600; }
.mday-head { align-items: center; }
.mday-head .wa-day { margin-left: auto; margin-right: .3rem; width: 24px; min-width: 24px; height: 24px; font-size: .8rem; }
.week thead th .wa-day { display: flex; margin: .2rem auto 0; height: 24px; }
.day-pitch { display: flex; justify-content: flex-end; margin-bottom: .5rem; }
.ag-head .wa-day { margin: 0 auto 0 .5rem; width: 36px; height: 36px; font-size: 1.05rem; } /* thumb-sized on phones */
.psum-chips .wa-day { width: 40px; min-width: 40px; height: 40px; font-size: 1.1rem; border-radius: 12px; } /* own tap target, clear of the chips */
.bk-modal .modal-header #bkPitch { margin-left: .4rem; }
@media (min-width: 360px) { .bk-modal .modal-title { white-space: nowrap; } } /* one-line title where the ground select still fits */
.bk-modal .modal-header .wa-day.labelled { padding: 0 .55rem; font-size: .8125rem; }
#bkGroundWrap.d-none + #bkPitch { margin-left: auto; }
.bk-modal form:not(.done) .modal-header #bkPitch:not(.d-none) + .btn-close { margin-left: .25rem; }
.opp-cta .wa-day { margin-left: .4rem; }
.wa-day.muted { background: var(--bg); color: #94a3b8; }
.wa-day.muted:hover, .wa-day.muted:focus-visible { background: var(--line); color: var(--muted); }
.dc-pitch { width: 100%; height: 44px; margin-top: .8rem; }
.bk-done-acts .btn-outline-secondary { background: var(--card); color: var(--ink); border-color: #cbd5e1; }
.bk-done-acts .btn-outline-secondary:hover { background: var(--bg); color: var(--ink); }

/* ---------- Home (mobile first; desktop = two columns) ---------- */
.dash { display: grid; gap: .75rem; }
.dash-main, .dash-side { display: grid; gap: .75rem; align-content: start; min-width: 0; }
@media (min-width: 992px) { .dash { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: start; } }
.dash-card, .dash-hero { background: var(--card); border-radius: 16px; padding: .8rem .9rem; box-shadow: 0 1px 3px rgba(15, 23, 42, .06); min-width: 0; }
.dash-h { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; margin-bottom: .5rem; }
.dash-h h2 { font-size: .95rem; font-weight: 700; margin: 0; }
.dash-h a { font-size: .82rem; font-weight: 600; text-decoration: none; white-space: nowrap; }

.dash-hero { background: var(--grad); color: #fff; }
.dash-hi strong { display: block; font-size: 1.15rem; }
.dash-hi span { font-size: .85rem; opacity: .9; }
.dash-ground { display: inline-flex; align-items: center; gap: .3rem; margin: .5rem 0 0; padding: .15rem .25rem .15rem .6rem; border-radius: 99px;
  background: rgba(255, 255, 255, .16); font-weight: 600; font-size: .88rem; max-width: 100%; }
.dash-ground.one { padding: .25rem .7rem; }
.dash-ground select { background: transparent; border: 0; color: #fff; font: inherit; min-height: 36px; max-width: 220px; text-overflow: ellipsis; }
.dash-ground select option { color: var(--ink); }

.attn-row { display: flex; align-items: center; gap: .6rem; width: 100%; text-align: left; border: 0; border-top: 1px solid var(--line); background: none;
  padding: .55rem .1rem; min-height: 52px; color: var(--ink); }
.dash-h + .attn-row { border-top: 0; }
.attn-ic { font-size: 1.05rem; flex-shrink: 0; }
.attn-body { flex: 1; min-width: 0; line-height: 1.25; }
.attn-body strong { display: block; font-size: .88rem; }
.attn-body small { color: var(--muted); font-size: .8rem; }
.attn-row .bi { color: var(--muted); }
.attn-body small b { color: var(--ink); }
a.attn-row { text-decoration: none; }
.attn-danger strong { color: var(--cancelled); }
.attn-warning strong { color: var(--pending); }
.attn-more summary { font-size: .82rem; font-weight: 600; color: var(--brand); padding: .4rem .1rem 0; cursor: pointer; }
.attn-ok { display: flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .5rem; }
.attn-ok strong { color: var(--free); }
.attn-ok small { color: var(--muted); flex-basis: 100%; }

/* Today timeline: time · status dot on a rail · what's there */
.tl { display: flex; flex-direction: column; }
.tl-row { display: grid; grid-template-columns: 3.1rem 14px minmax(0, 1fr) auto; align-items: center; gap: .5rem; width: 100%; text-align: left;
  border: 0; background: none; padding: .45rem 0; min-height: 52px; color: var(--ink); position: relative; }
.tl-row + .tl-row::before { content: ''; position: absolute; left: calc(3.1rem + .5rem + 6px); top: -50%; height: 100%; width: 2px; background: var(--line); z-index: 0; }
.tl-time { font-weight: 600; font-size: .85rem; }
.tl-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 3px var(--cb); position: relative; z-index: 1; }
.tl-body { min-width: 0; line-height: 1.25; }
.tl-body strong { display: block; font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl-body small { color: var(--muted); font-size: .78rem; }
.tl-vs { color: var(--muted); font-weight: 600; }
.tl-row.st-free strong { color: var(--free); }
.tl-row.past { opacity: .5; }
.tl-row.past strong { color: var(--muted); }

.tl-row .due, .next-row .due { color: var(--cancelled); font-weight: 600; }
button.tl-row:active, .next-row:active, .attn-row:active { background: #f5f9ff; }

.dash-chip { position: relative; border: 1px solid #bfe5cb; background: var(--free-bg); color: var(--free); border-radius: 99px; padding: .35rem .7rem; font-size: .8rem; font-weight: 600; min-height: 36px; }
.dash-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: .4rem; margin-top: .7rem; }
.dash-links a { display: flex; flex-direction: column; align-items: center; gap: .15rem; padding: .5rem .2rem; border-radius: 12px; background: var(--bg);
  color: var(--ink); text-decoration: none; font-size: .75rem; font-weight: 600; min-height: 56px; justify-content: center; }
.dash-links a i { font-size: 1.15rem; color: var(--brand); }

.next-row { display: flex; align-items: center; gap: .7rem; width: 100%; text-align: left; border: 0; border-top: 1px solid var(--line); background: none;
  padding: .5rem .1rem; min-height: 52px; color: var(--ink); }
.dash-h + .next-row { border-top: 0; }
.next-when { flex: 0 0 4.6rem; font-size: .8rem; font-weight: 600; line-height: 1.2; border-left: 3px solid var(--c); padding-left: .45rem; }
.next-when small { display: block; color: var(--muted); font-weight: 600; }
.next-body { flex: 1; min-width: 0; line-height: 1.25; }
.next-body strong { display: block; font-size: .88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.next-body small { color: var(--muted); font-size: .76rem; }

.meter { height: 10px; border-radius: 99px; background: #e2e8f0; overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: 99px; background: var(--brand-2); }
.meter.money i { background: var(--free); }
.we-day + .we-day { margin-top: .7rem; }
.we-top { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; margin-bottom: .3rem; font-size: .85rem; }
.we-top span { color: var(--muted); font-size: .78rem; text-align: right; }
.we-free { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .45rem; }
.util { display: flex; align-items: baseline; gap: .6rem; margin-bottom: .4rem; }
.util strong { font-size: 1.7rem; font-weight: 700; color: var(--brand); line-height: 1; }
.util span { font-size: .85rem; color: var(--muted); }
.util-legend { display: flex; gap: 1rem; margin-top: .45rem; font-size: .78rem; color: var(--muted); }
.util-legend b { color: var(--ink); }

/* Tab bar: + Book in the thumb zone (replaces the top-bar + button on phones/tablets) */
.tabbar { align-items: flex-end; }
.tab-book { flex: 1; display: flex; flex-direction: column; align-items: center; gap: .1rem; border: 0; background: none; padding: 0 0 .35rem; color: var(--accent);
  font-size: .75rem; font-weight: 600; }
.tab-book i { width: 48px; height: 48px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 1.5rem; display: grid; place-items: center;
  margin-top: -18px; box-shadow: 0 6px 16px rgba(255, 107, 26, .4); }
@media (max-width: 991.98px) { .new-booking-btn { display: none !important; } }
.dash-links a { overflow-wrap: break-word; text-align: center; }

/* ---------- Customers (mobile first: cards + profile; desktop = card grid / two columns) ---------- */
.clist-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: .6rem; }
.clist-head h2 { font-size: 1.3125rem; line-height: 1.2; margin: 0; }
.clist-head small { color: var(--muted); font-size: .8rem; font-weight: 400; }
.page-customers .topbar .search { display: none; } /* the page has its own customer search */
.clist-head .btn { min-height: 44px; font-weight: 600; padding-inline: 1rem; flex-shrink: 0; }
.csearch { margin-bottom: .45rem; }
/* customer search: a light utility field (44px touch target, quiet until focused) */
.csearch .tp-q { height: 44px; font-size: .9375rem; border-radius: 12px; border-color: var(--line); background: #f8fafc; box-shadow: none; padding-left: 2.5rem; }
.csearch .tp-q::placeholder { font-size: .875rem; color: #94a3b8; }
.csearch .tp-q:focus { background: #fff; border-color: #7fb6ff; box-shadow: 0 0 0 .18rem rgba(13, 123, 255, .12); }
.csearch > .bi { font-size: 1.1rem; left: .9rem; }
.cfilters { display: flex; gap: .35rem; overflow-x: auto; scrollbar-width: none; margin: 0 -.5rem .55rem; padding: 0 .5rem; }
.cfilters a { flex-shrink: 0; padding: .3rem .75rem; border-radius: 99px; background: var(--card); border: 1px solid var(--line); color: var(--ink);
  font-size: .82rem; font-weight: 600; text-decoration: none; min-height: 34px; display: inline-flex; align-items: center; }
.cfilters a.on { background: var(--brand-2); border-color: var(--brand-2); color: #fff; }
.clist { display: grid; gap: .55rem; }
@media (min-width: 768px) { .clist { grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); } }

.cav { width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; font-weight: 600; font-size: .9rem;
  color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-2)); }
.cav.lg { width: 60px; height: 60px; font-size: 1.2rem; }
.ccust { background: var(--card); border-radius: 16px; box-shadow: 0 1px 3px rgba(15, 23, 42, .06); overflow: hidden; min-width: 0; }
.ccust.off { opacity: .65; }
.ccust-main { display: flex; align-items: center; gap: .6rem; padding: .6rem .75rem .3rem; color: var(--ink); text-decoration: none; }
.ccust-main > .min-w-0 { flex: 1; line-height: 1.3; }
.ccust-main strong { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: .9375rem; font-weight: 600; overflow: hidden; overflow-wrap: break-word; }
.ccust-main strong em { font-style: normal; font-size: .75rem; font-weight: 600; color: var(--muted); background: var(--bg); border-radius: 99px; padding: .05rem .45rem; vertical-align: 2px; }
.ccust-main small { display: block; color: var(--muted); font-size: .8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ccust-main .cteam-line { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; white-space: normal; overflow-wrap: break-word; }
.ccust-main .cteam-line { color: #475569; font-weight: 500; }
.ccust-next { flex-shrink: 0; text-align: right; line-height: 1.2; min-width: 4.8rem; padding: .3rem .1rem; }
.ccust-next:not(.on) { min-width: 0; }
@media (max-width: 359px) { .ccust-next:not(.on) { max-width: 5.2rem; } }
.ccust-next:not(.on) small:not(.lbl) { white-space: normal; }
.ccust-next.on { background: #eef4ff; border-radius: 10px; padding: .3rem .55rem; }
.ccust-next .lbl { font-size: .6875rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.ccust-next small { display: block; font-size: .75rem; color: var(--muted); }
.ccust-next strong { display: block; font-size: .85rem; color: var(--brand); }
.ccust-foot { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .15rem .75rem .55rem; }
.ccount { font-size: .75rem; color: var(--muted); }
.cbtns { display: flex; gap: .35rem; }

.cact { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: .15rem; border: 0; border-radius: 14px;
  background: var(--bg); color: var(--ink); font-size: .75rem; font-weight: 600; text-decoration: none; min-height: 56px; padding: .4rem .3rem; }
.cact i { font-size: 1.15rem; color: var(--brand); }
.cact.wa i { color: #16a34a; }
.cact.book { background: var(--accent); color: #fff; }
.cact.book i { color: #fff; }
.cact.sm { position: relative; flex-direction: row; min-height: 36px; border-radius: 99px; padding: .3rem .65rem; gap: .3rem; font-size: .8125rem; }
.cact.sm i { font-size: .9rem; }
.cact.sm::after { content: ''; position: absolute; inset: -4px; } /* 44px hit area, compact look */
.ccount { white-space: nowrap; }
.cact.sm:not(.book) span { display: none; } /* card Call / WhatsApp: icon only (labelled for screen readers); the profile shows words */
.cact.sm:not(.book) { width: 38px; padding: 0; background: transparent; }
.cact.sm.book { font-weight: 600; padding-inline: .9rem; }
.cact.sm.wa i { color: #4b9a6a; }
/* loading skeleton (same footprint as a card) + inline empty/error states */
.ccust.sk { height: 98px; padding: .7rem .75rem; display: grid; gap: .5rem; align-content: start; }
.ccust.sk i { display: block; height: 14px; border-radius: 6px; background: linear-gradient(90deg, #eef1f6 25%, #f7f9fc 50%, #eef1f6 75%); background-size: 200% 100%; animation: sk 1.2s infinite linear; }
.ccust.sk i:nth-child(1) { width: 55%; height: 18px; } .ccust.sk i:nth-child(2) { width: 75%; } .ccust.sk i:nth-child(3) { width: 40%; }
@keyframes sk { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .ccust.sk i { animation: none; } }

.back-link { display: inline-flex; align-items: center; gap: .2rem; font-size: .88rem; font-weight: 600; text-decoration: none; margin-bottom: .5rem; min-height: 36px; }
.cprof { display: grid; gap: .7rem; max-width: 760px; }
.cprof-head { display: flex; gap: .8rem; align-items: center; }
.cprof-head h2 { font-size: 1.3rem; margin: 0 0 .15rem; }
.cteams { display: flex; flex-wrap: wrap; gap: .3rem; }
.cteams span { background: #e8f2ff; color: var(--brand); border-radius: 99px; padding: .1rem .55rem; font-size: .8rem; font-weight: 600; }
.cteams .none { background: var(--cancelled-bg); color: var(--cancelled); }
.cmeta { font-size: .84rem; color: var(--muted); margin-top: .25rem; }
.cstatus.on { color: var(--free); font-weight: 600; }
.cactions { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: .45rem; }
.ccard { background: var(--card); border-radius: 16px; padding: .8rem .9rem; box-shadow: 0 1px 3px rgba(15, 23, 42, .06); min-width: 0; }
.ccard h3 { font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 0 0 .5rem; }
.cnext { display: flex; align-items: center; gap: .75rem; width: 100%; text-align: left; border: 1.5px solid #bfd7fb; background: #f5f9ff; border-radius: 14px;
  padding: .65rem .75rem; color: var(--ink); }
.cnext-when { flex-shrink: 0; text-align: center; line-height: 1.15; font-size: .8rem; color: var(--muted); min-width: 4.4rem; }
.cnext-when strong { display: block; font-size: 1rem; color: var(--brand); }
.cnext strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cnext small { display: block; color: var(--muted); font-size: .78rem; }
.cnext .bi { margin-left: auto; color: var(--muted); }
.cempty { color: var(--muted); font-size: .88rem; margin: 0; }
.cstats { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: .4rem; margin-top: .7rem; }
.cstats > div { background: var(--bg); border-radius: 12px; padding: .4rem .5rem; text-align: center; }
.cstats strong { display: block; font-size: 1.05rem; font-weight: 700; }
.cstats small { color: var(--muted); font-size: .75rem; }
.cstats .due strong { color: var(--cancelled); }
.cteam { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .35rem 0; font-weight: 600; min-height: 44px; }
.cteam.off { color: var(--muted); }

.cdl { display: grid; grid-template-columns: 6.5rem 1fr; gap: .3rem .6rem; font-size: .88rem; margin: 0 0 .8rem; }
.cdl dt { color: var(--muted); font-weight: 500; }
.cdl dd { margin: 0; overflow-wrap: break-word; }
@media (min-width: 992px) {
  .cprof { grid-template-columns: 1fr 1fr; max-width: 1100px; align-items: start; }
  .cprof-head, .cactions { grid-column: 1 / -1; }
  .cactions { grid-template-columns: repeat(4, 140px); }
}

.cempty-state { text-align: center; background: var(--card); border-radius: 18px; padding: 2.2rem 1.2rem; }
.cempty-state.small { padding: 1.2rem; }
.cempty-ic { font-size: 2.6rem; }
.cempty-state h3 { font-size: 1rem; font-weight: 600; margin: .4rem 0 .2rem; }
.cempty-state p { color: var(--muted); }
.cmore-btn { display: block; text-align: center; margin: .8rem 0; padding: .7rem; border-radius: 12px; background: var(--card); font-weight: 600; text-decoration: none; }

/* Customer form */
.cf-sec h3 { font-size: .95rem; font-weight: 600; margin: 0 0 .5rem; }
.cust-modal .modal-body { background: var(--bg); }
.cust-modal .cf-sec, .cust-modal .cf-more { background: var(--card); border-radius: 14px; padding: .8rem; }
.cust-modal .row { --bs-gutter-x: 0; }
.cust-modal .modal-footer .btn { min-height: 48px; padding-inline: 1.2rem; }
.cust-modal .modal-footer .btn-primary { flex: 1; max-width: 260px; font-weight: 600; }
.team-rows { display: grid; gap: .4rem; margin-top: .5rem; }
.team-row { display: grid; grid-template-columns: auto minmax(0, 1fr) 7.2rem auto; gap: .4rem; align-items: center; }
.cf-more summary { font-weight: 600; cursor: pointer; }
.cdupes { margin-top: .55rem; border: 1.5px solid #f6c37a; background: #fff8eb; border-radius: 12px; padding: .55rem .65rem; font-size: .84rem; }
.cdupes-h { display: flex; justify-content: space-between; align-items: center; gap: .5rem; flex-wrap: wrap; }
.cdupe { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding-top: .45rem; flex-wrap: wrap; }
@media (max-width: 767.98px) {
  .cust-modal .form-control, .cust-modal .form-select { font-size: 16px; min-height: 44px; }
  .team-row { grid-template-columns: auto minmax(0, 1fr) 6.4rem auto; }
}
.cnone { display: flex; align-items: center; justify-content: space-between; gap: .6rem; flex-wrap: wrap; }
.cnone .btn { min-height: 44px; font-weight: 600; }

/* Customer profile: Coming up / Played tabs */
.ctabs { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; background: var(--bg); border-radius: 12px; padding: 3px; margin-bottom: .6rem; }
.ctabs button { border: 0; background: none; border-radius: 10px; min-height: 44px; font-weight: 600; font-size: .875rem; color: var(--muted); }
.ctabs button span { font-size: .75rem; background: #e2e8f0; color: var(--muted); border-radius: 99px; padding: .05rem .45rem; margin-left: .2rem; }
.ctabs button[aria-selected="true"] { background: var(--card); color: var(--brand); box-shadow: 0 1px 3px rgba(15, 23, 42, .12); }
.ctabs button[aria-selected="true"] span { background: #e8f2ff; color: var(--brand); }
.cloading { color: var(--muted); font-size: .88rem; padding: .6rem 0; }
.cm-nowa { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .6rem; background: #fff8eb; border: 1px solid #f6c37a; border-radius: 12px; padding: .5rem .65rem; font-size: .82rem; margin-bottom: .5rem; }
.cm-nowa span { flex: 1 1 180px; }
.cm-row { display: flex; align-items: center; gap: .7rem; width: 100%; text-align: left; border: 0; border-top: 1px solid var(--line); background: none;
  padding: .55rem 0; min-height: 56px; color: var(--ink); }
.cm-when { flex: 0 0 4.6rem; font-size: .78rem; color: var(--muted); line-height: 1.2; font-weight: 600; }
.cm-when strong { display: block; font-size: .9rem; color: var(--brand); }
.cm-main { flex: 1; min-width: 0; line-height: 1.3; }
.cm-main strong { display: block; font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cm-main small { display: block; color: var(--muted); font-size: .76rem; }
.cm-row > .bi { color: var(--muted); }
.cm-empty { text-align: center; padding: 1.2rem .5rem .6rem; }
.cm-empty > div { font-size: 2rem; }
.cm-empty strong { display: block; margin-top: .2rem; }
.cm-empty p { color: var(--muted); font-size: .85rem; margin: .2rem 0 .7rem; }
.cm-empty .btn { min-height: 44px; font-weight: 600; }
@media (max-width: 359.98px) { .cm-when { flex-basis: 3.7rem; } }

/* Played: summary line + All/Pending, follow-up strip, day groups, quiet rows, small Remind chip */
.cm-sum { display: flex; align-items: center; justify-content: space-between; gap: .5rem; flex-wrap: wrap; font-size: .85rem; color: var(--muted); margin-bottom: .45rem; }
.cm-sum b { color: var(--ink); }
.cm-sum b.cp-due, .cp-due { color: var(--cancelled); font-weight: 700; }
.cm-filter { display: inline-flex; background: var(--bg); border-radius: 99px; padding: 2px; }
.cm-filter button { border: 0; background: none; border-radius: 99px; padding: .3rem .8rem; min-height: 32px; font-size: .8rem; font-weight: 600; color: var(--muted); }
.cm-filter button.on { background: var(--card); color: var(--ink); box-shadow: 0 1px 2px rgba(15, 23, 42, .12); }
.cm-follow { display: flex; justify-content: space-between; align-items: center; gap: .5rem; width: 100%; text-align: left; border: 0; border-radius: 12px;
  background: var(--cancelled-bg); color: var(--cancelled); padding: .55rem .75rem; font-size: .84rem; margin-bottom: .2rem; min-height: 44px; }
.cm-follow b { white-space: nowrap; }
.cm-follow.ok { background: var(--free-bg); color: var(--free); }
.cm-month { font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 1.1rem 0 0; }
.cm-day { font-size: .78rem; font-weight: 600; color: var(--ink); padding: .9rem 0 .15rem; border-bottom: 1px solid var(--line); }
.cm-list > :first-child { padding-top: .35rem; }
.cm-p { display: flex; align-items: center; gap: .5rem; border-bottom: 1px solid #f1f5f9; }
.cm-p:last-child { border-bottom: 0; }
.cm-pm { flex: 1; min-width: 0; display: flex; gap: .7rem; align-items: flex-start; text-align: left; border: 0; background: none; padding: .55rem 0; color: var(--ink); }
.cm-t { flex: 0 0 4.1rem; font-size: .8rem; font-weight: 600; color: var(--muted); padding-top: .1rem; white-space: nowrap; }
.cm-p .cm-main strong { white-space: normal; overflow: visible; font-size: .93rem; }
.cm-pay { display: block; font-size: .8rem; margin-top: .1rem; }
.cp-of { color: var(--muted); }
.cp-ok { color: var(--free); font-weight: 600; }
.cm-p.paid .cm-main strong { font-weight: 600; color: #334155; }
.cm-p.paid .cm-t { opacity: .8; }
.cm-remind { flex-shrink: 0; display: inline-flex; align-items: center; gap: .3rem; border: 1px solid #bbf7d0; background: #f0fdf4; color: #15803d;
  border-radius: 99px; padding: 0 .7rem; height: 34px; font-size: .8rem; font-weight: 600; }
.cm-remind .bi { font-size: .9rem; }
.cm-thank { flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: none; color: #94a3b8; display: grid; place-items: center; }
.cm-remind:active, .cm-thank:active { transform: scale(.96); }
@media (max-width: 359.98px) { .cm-t { flex-basis: 3.5rem; } .cm-remind { padding: 0 .55rem; } }
@media (min-width: 992px) { .cm-pay { display: inline; margin-left: .5rem; } .cm-pay::before { content: '· '; color: var(--muted); } }

/* ---------- Communication sheet (every WhatsApp message): bottom sheet on phones, centred modal ≥576px ---------- */
.comm-sheet .modal-dialog { max-width: 480px; }
.comm-sheet .modal-content { border: 0; border-radius: 18px; overflow: hidden; }
.comm-head { display: flex; align-items: center; gap: .5rem; padding: .85rem .5rem .5rem 1rem; }
.comm-title { flex: 1; font-size: 1.1rem; font-weight: 700; margin: 0; }
.comm-close { width: 40px; height: 40px; border: 0; border-radius: 50%; background: none; color: var(--muted); display: grid; place-items: center; font-size: .95rem; }
.comm-close:hover { background: var(--bg); color: var(--ink); }
.comm-body { padding: 0 1rem .75rem; display: flex; flex-direction: column; gap: .65rem; }
.comm-k { display: block; font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: .25rem; }
.comm-who { display: flex; align-items: center; gap: .6rem; padding: .45rem .6rem; border-radius: 12px; background: var(--bg); min-height: 48px; margin: 0; }
.comm-who strong { display: block; font-weight: 600; font-size: .92rem; line-height: 1.2; }
.comm-who small { display: block; color: var(--muted); font-size: .78rem; }
.comm-who.none { color: var(--muted); font-size: .85rem; }
.comm-av { width: 30px; height: 30px; flex-shrink: 0; border-radius: 50%; background: #e8f2ff; color: var(--brand); display: grid; place-items: center; font-size: .9rem; }
.comm-pick { display: grid; gap: .35rem; }
.comm-pick .comm-who { cursor: pointer; border: 1.5px solid transparent; }
.comm-pick input { position: absolute; opacity: 0; pointer-events: none; }
.comm-pick .comm-who:has(input:checked) { border-color: var(--brand-2); background: #f5f9ff; }
.comm-pick .comm-who:has(input:focus-visible) { outline: 2px solid var(--brand-2); outline-offset: 2px; }
.comm-ctx { border-left: 3px solid var(--brand-2); padding: .1rem 0 .1rem .65rem; line-height: 1.3; }
.comm-ctx strong { display: block; font-weight: 600; font-size: .92rem; }
.comm-ctx small { color: var(--muted); font-size: .8rem; }
.comm-pay { display: inline-block; margin: .3rem .35rem 0 0; font-size: .76rem; font-weight: 600; border-radius: 99px; padding: .1rem .55rem; background: var(--bg); color: var(--muted); }
.comm-pay.due { background: var(--cancelled-bg); color: var(--cancelled); }
.comm-pay.ok { background: var(--free-bg); color: var(--free); }
.comm-msg-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: -.35rem; }
.comm-msg-h span { font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.comm-edit { border: 0; background: none; color: var(--brand); font-size: .82rem; font-weight: 600; padding: .35rem .2rem; min-height: 36px; }
/* Looks like the WhatsApp bubble it will become */
.comm-preview { background: #e7fbe0; border-radius: 4px 14px 14px 14px; padding: .65rem .8rem; font-size: .8125rem; line-height: 1.45; white-space: pre-wrap;
  overflow-wrap: break-word; color: #1f2c34; box-shadow: 0 1px 1px rgba(15, 23, 42, .08); }
.comm-text { font-size: .9rem; line-height: 1.45; min-height: 8rem; max-height: 50vh; resize: none; overflow-y: auto; }
.comm-foot { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); gap: .5rem; padding: .65rem 1rem calc(.75rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line); background: var(--card); }
.comm-btn { height: 48px; border-radius: 12px; font-weight: 600; font-size: .875rem; display: inline-flex; align-items: center; justify-content: center; gap: .4rem; white-space: nowrap; }
.comm-btn.copy { border: 1px solid var(--line); background: var(--card); color: var(--ink); }
.comm-btn.wa { border: 0; background: #1da851; color: #fff; }
.comm-btn.wa:hover { background: #17924a; }
.comm-btn:active { transform: scale(.98); }
@media (max-width: 575.98px) {
  .comm-sheet .modal-dialog { position: fixed; left: 0; right: 0; bottom: 0; margin: 0; max-width: none; min-height: 0; height: auto;
    max-height: calc(100% - 1.5rem); align-items: flex-end; }
  .comm-sheet .modal-dialog-scrollable .modal-content { max-height: calc(100dvh - 1.5rem); }
  .comm-sheet .modal-content { border-radius: 20px 20px 0 0; }
  .comm-sheet .comm-head { padding-top: 1.15rem; position: relative; }
  .comm-sheet .comm-head::before { content: ''; position: absolute; top: .45rem; left: 50%; width: 38px; height: 4px; margin-left: -19px; border-radius: 4px; background: #cbd5e1; }
  .comm-sheet.fade .modal-dialog { transform: translateY(100%); transition: transform .22s ease-out; }
  .comm-sheet.show .modal-dialog { transform: none; }
}
@media (prefers-reduced-motion: reduce) { .comm-sheet.fade .modal-dialog { transition: none; } }

/* ---------- Booking detail: header status, compact summary, sticky one-primary-action footer ---------- */
.detail-head { padding: .85rem .6rem .5rem 1rem; align-items: flex-start; }
.detail-head .offcanvas-title { font-size: 1.05rem; font-weight: 700; margin: 0; }
.detail-sub { display: inline-flex; align-items: center; gap: .35rem; font-size: .8rem; font-weight: 600; color: var(--muted); }
.detail-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c); display: inline-block; }
#detailPanel .offcanvas-body { padding-top: .25rem; }
.detail-match { font-size: 1.125rem; font-weight: 700; margin: 0 0 .25rem; }
.detail-when { display: flex; flex-direction: column; gap: .1rem; font-size: .88rem; color: var(--muted); margin: .4rem 0 .9rem; }
.detail-when .bi { width: 1.1em; display: inline-block; }
.pay-summary > div.due { background: var(--cancelled-bg); }
.pay-summary > div.due strong { color: var(--cancelled); }
.pay-summary > div.ok strong { color: var(--free); }
.pay-summary > div:not(.due) strong { font-size: 1rem; }
.cap-card { background: var(--bg); border-color: transparent; }
.cap-card a[href^="?page=customers"] { font-size: .8rem; text-decoration: none; margin-top: .15rem; }
.detail-foot { border-top: 1px solid var(--line); background: var(--card); padding: .65rem 1rem calc(.7rem + env(safe-area-inset-bottom)); display: grid; gap: .5rem; }
.df-row { display: flex; gap: .5rem; }
.df-row > .dropup { flex: 0 0 auto; }
.df-btn { height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font-weight: 600; font-size: .9rem;
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem; padding: 0 .9rem; white-space: nowrap; flex: 1 1 0; min-width: 0; }
.df-btn .bi { font-size: 1rem; line-height: 1; }
.df-btn:hover { background: var(--bg); }
.df-btn.primary { height: 50px; width: 100%; border: 0; background: var(--brand-2); color: #fff; font-size: .9375rem; font-weight: 600; }
.df-btn.primary:hover { background: var(--brand); }
.df-btn.wa { border-color: #bbf7d0; background: #f0fdf4; color: #15803d; flex-grow: 1.6; }
.df-btn.wa:hover { background: #dcfce7; }
.df-btn.icon { width: 44px; padding: 0; flex: 0 0 44px; }
.df-btn:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 2px; }
.df-state { display: flex; align-items: center; gap: .45rem; font-size: .88rem; font-weight: 600; padding: .1rem .2rem; }
.df-state.ok { color: var(--free); }
.df-state.off { color: var(--muted); }
.detail-foot .dropdown-item { display: flex; align-items: center; gap: .55rem; padding: .6rem 1rem; font-weight: 500; }
.comm-btn.danger { border: 0; background: var(--cancelled); color: #fff; }
.comm-btn.danger:hover { background: #991b1b; }
.confirm-body { padding-bottom: .9rem; }
.confirm-note { color: var(--muted); font-size: .88rem; margin: .6rem 0 0; }
.confirm-foot { grid-template-columns: 1fr 1fr; }
.detail-head > .min-w-0 { flex: 1; }
.detail-foot { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 379.98px) { .df-btn.edit span { display: none; } .df-btn.edit { flex: 0 0 44px; padding: 0; } }

/* ---------- Payments: pending hero + collected, Pending/Paid tabs, dues grouped by customer, paid by day ---------- */
.pay-page { max-width: 760px; }
.pay-top { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-bottom: .6rem; }
.pay-top h2 { font-size: 1.25rem; margin: 0; }
.pay-ground select { border: 1px solid var(--line); border-radius: 99px; background: var(--card); padding: .3rem .7rem; font-weight: 600; font-size: .85rem; min-height: 36px; max-width: 200px; }

.pay-search { margin: .7rem 0 .5rem; }
.pay-empty { background: var(--card); border-radius: 16px; padding: 1.6rem 1rem; }
.due-list { display: grid; gap: .6rem; }
@media (min-width: 992px) { .pay-page { max-width: 1100px; } .due-list { grid-template-columns: 1fr 1fr; align-items: start; } }
.due-grp { background: var(--card); border-radius: 16px; padding: .75rem .85rem; box-shadow: 0 1px 3px rgba(15, 23, 42, .06); min-width: 0; }
.dg-head { display: flex; align-items: center; gap: .6rem; }
.dg-head .min-w-0 { flex: 1; line-height: 1.25; }
.dg-head strong { display: block; font-size: .98rem; }
.dg-head strong a { color: inherit; text-decoration: none; }
.dg-head small { display: block; color: var(--muted); font-size: .78rem; }
.dg-head .cav { width: 38px; height: 38px; font-size: .8rem; }

.dg-list { list-style: none; margin: .5rem 0 0; padding: 0; }
.dg-list li { display: flex; align-items: center; gap: .4rem; border-top: 1px solid #f1f5f9; }
.dg-match { flex: 1; min-width: 0; display: flex; align-items: center; gap: .6rem; border: 0; background: none; text-align: left; padding: .5rem 0; color: var(--ink); }
.dg-when { flex: 0 0 3.6rem; font-size: .78rem; font-weight: 600; line-height: 1.2; }
.dg-when small { display: block; color: var(--muted); font-weight: 600; }
.dg-name { display: block; font-size: .86rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dg-match small { display: block; color: var(--muted); font-size: .75rem; }
.dg-due { flex-shrink: 0; font-size: .86rem; font-weight: 600; color: var(--cancelled); text-align: right; line-height: 1.2; }
.dg-due small { display: block; font-size: .75rem; color: var(--muted); font-weight: 500; }
.dg-rec { flex-shrink: 0; height: 32px; border: 1px solid var(--line); border-radius: 99px; background: var(--card); color: var(--brand); font-size: .76rem; font-weight: 600; padding: 0 .65rem; }

.dg-nomob { font-size: .78rem; color: var(--muted); }
.paid-list { background: var(--card); border-radius: 16px; padding: .1rem .85rem .4rem; box-shadow: 0 1px 3px rgba(15, 23, 42, .06); }
.paid-row { display: flex; align-items: center; gap: .6rem; width: 100%; border: 0; border-bottom: 1px solid #f1f5f9; background: none; text-align: left; padding: .55rem 0; color: var(--ink); }
.paid-row:last-child { border-bottom: 0; }
.paid-row strong { display: block; font-size: .9rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.paid-row small { display: block; color: var(--muted); font-size: .76rem; }
.paid-row .min-w-0 { flex: 1; }
.paid-amt { flex-shrink: 0; font-weight: 700; color: var(--free); }
.paid-amt.refund { color: var(--cancelled); }
@media (max-width: 359.98px) {  .dg-rec { padding: 0 .5rem; } }

/* Payments v2: hero buttons, expandable people (matches fetched on open), skeletons, lazy-load footer */

.dg-head { width: 100%; border: 0; background: none; padding: 0; text-align: left; color: var(--ink); }
.dg-chev { color: var(--muted); transition: transform .15s; flex-shrink: 0; }
.dg-head[aria-expanded="true"] .dg-chev { transform: rotate(180deg); }
.dg-body .dg-list { margin-top: .55rem; }
.dg-cust { display: inline-block; font-size: .8rem; font-weight: 600; text-decoration: none; margin: .35rem 0 0; }

.pay-loading { text-align: center; color: var(--muted); font-size: .85rem; padding: .8rem 0; }
.pay-foot { margin-top: .6rem; }
.pay-sentinel { display: block; height: 1px; }
.sk { display: block; height: .7rem; border-radius: 6px; background: linear-gradient(90deg, #eef2f7 25%, #e2e8f0 50%, #eef2f7 75%); background-size: 200% 100%; animation: sk 1.2s linear infinite; }
.sk + .sk { margin-top: .4rem; }
.sk.w70 { width: 70%; } .sk.w60 { width: 60%; } .sk.w40 { width: 40%; } .sk.w20 { width: 20%; }
.sk-av { width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0; }
.sk-grp, .sk-row { display: flex; align-items: center; gap: .7rem; background: var(--card); border-radius: 16px; padding: .85rem; margin-bottom: .6rem; }
.sk-grp > span, .sk-row > span { flex: 1; }
.dg-body .sk-row { background: none; padding: .5rem 0; margin: 0; }
@keyframes sk { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .sk { animation: none; } }

/* ---------- Bookings page: compact bar, filter sheet, time-first rows (desktop = columns), slot strip ---------- */
.bk-page { max-width: 1100px; }
.bl-search { margin-bottom: .5rem; }
.bl-bar { display: flex; align-items: center; gap: .35rem; flex-wrap: wrap; }
.bl-nav { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--card); border: 1px solid var(--line); color: var(--ink); text-decoration: none; flex-shrink: 0; }
.bl-date { position: relative; flex: 1; min-width: 0; height: 38px; display: flex; align-items: center; justify-content: center; border-radius: 10px; background: var(--card);
  border: 1px solid var(--line); font-weight: 600; font-size: .9rem; margin: 0; cursor: pointer; padding: 0 .5rem; }
.bl-date span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bl-date input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.bl-date.static { justify-content: flex-start; cursor: default; }
.bl-chip { height: 38px; padding: 0 .75rem; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font-weight: 600; font-size: .85rem;
  display: inline-flex; align-items: center; gap: .35rem; text-decoration: none; white-space: nowrap; flex-shrink: 0; }
.bl-chip.on { border-color: var(--brand-2); color: var(--brand); background: #f5f9ff; }
.bl-active { display: flex; gap: .35rem; flex-wrap: wrap; margin-top: .45rem; }
.bl-active a { display: inline-flex; align-items: center; gap: .15rem; padding: .2rem .35rem .2rem .65rem; border-radius: 99px; background: #e8f2ff; color: var(--brand);
  font-size: .78rem; font-weight: 600; text-decoration: none; min-height: 30px; }
.bl-sum { font-size: .84rem; color: var(--muted); margin: .7rem .1rem .35rem; }
.bl-sum strong { color: var(--ink); }
.bl-sum-l { font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-right: .35rem; }
.bl-avail { display: flex; gap: .3rem; flex-wrap: wrap; align-items: center; margin-bottom: .5rem; }
.bl-avail:empty { display: none; }
.bl-avail-l { font-size: .75rem; font-weight: 600; color: var(--muted); margin-right: .15rem; }
.bl-slot { border: 0; border-radius: 99px; padding: .25rem .6rem; font-size: .76rem; font-weight: 600; min-height: 30px; display: inline-flex; align-items: center; gap: .2rem; }
.bl-slot.booked { background: var(--confirmed-bg); color: var(--confirmed); }
.bl-slot.open { background: var(--free-bg); color: var(--free); border: 1px dashed #86cf9e; }
.bl-slot.blocked, .bl-slot.past { background: var(--bg); color: #94a3b8; }
.bl-list .bl-items { background: var(--card); border-radius: 16px; padding: 0 .85rem; box-shadow: 0 1px 3px rgba(15, 23, 42, .06); }
.bl-items .cm-day:first-child { padding-top: .7rem; }
.bl-row { display: flex; align-items: center; gap: .5rem; border-bottom: 1px solid #f1f5f9; }
.bl-row:last-child { border-bottom: 0; }
.bl-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: .75rem; border: 0; background: none; text-align: left; padding: .65rem 0; color: var(--ink); }
.bl-time { flex: 0 0 4.3rem; font-weight: 600; font-size: .92rem; line-height: 1.15; }
.bl-time small { display: block; font-size: .75rem; font-weight: 600; color: var(--muted); }
.bl-info { flex: 1; min-width: 0; line-height: 1.3; }
.bl-info strong { display: block; font-size: .95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bl-info small { display: block; font-size: .78rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bl-st { color: var(--c); font-weight: 600; display: inline-flex; align-items: center; gap: .3rem; }
.bl-need { color: #c2410c; font-weight: 600; }
.bl-chev { color: #cbd5e1; flex-shrink: 0; }
.bl-pay { flex-shrink: 0; border: 0; border-radius: 99px; padding: .25rem .6rem; font-size: .76rem; font-weight: 600; white-space: nowrap; }
.bl-pay.due { background: var(--cancelled-bg); color: var(--cancelled); }
.bl-pay.part { background: var(--pending-bg); color: var(--pending); }
.bl-pay.ok { background: none; color: var(--free); font-weight: 600; }
.bl-row.off .bl-info strong { text-decoration: line-through; color: var(--muted); }
.bl-row.off .bl-time { color: var(--muted); }
.bl-sk { background: none; padding: .7rem 0; margin: 0; border-bottom: 1px solid #f1f5f9; }
@media (max-width: 991.98px) { /* phones/tablets: the payment pill sits under the match, so team names get the full width */
  .bl-row { flex-wrap: wrap; row-gap: 0; }
  .bl-main { flex-basis: 100%; }
  .bl-pay { margin: -.45rem 0 .6rem 5.05rem; }
  .bl-pay.ok { padding-left: 0; }
}
@media (max-width: 374.98px) { .bl-time { flex-basis: 4rem; font-size: .82rem; white-space: nowrap; } .bl-main { gap: .55rem; } .bl-pay { margin-left: 4.55rem; } }
@media (min-width: 992px) {
  .bl-main { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr) 1rem; }
  .bl-row { padding-right: .25rem; }
  .bl-pay { min-width: 7.5rem; text-align: center; }
}
/* Filter sheet */
.bf-body fieldset { margin: 0 0 .2rem; }
.bf-chips { display: flex; flex-wrap: wrap; gap: .35rem; }
.bf-chip { border: 1px solid var(--line); border-radius: 99px; padding: .35rem .8rem; font-size: .84rem; font-weight: 600; cursor: pointer; min-height: 36px; display: inline-flex; align-items: center; margin: 0; }
.btn-check:checked + .bf-chip { background: var(--brand-2); border-color: var(--brand-2); color: #fff; }
.btn-check:focus-visible + .bf-chip { outline: 2px solid var(--brand-2); outline-offset: 2px; }
.bf-dates { display: none; gap: .5rem; margin-top: .5rem; }
.bf-dates label { flex: 1; font-size: .78rem; color: var(--muted); }
fieldset:has(#bfw_custom:checked) .bf-dates { display: flex; }
.bf-more summary { font-weight: 600; font-size: .88rem; color: var(--brand); cursor: pointer; }
.bf-apply { background: var(--brand-2) !important; }

/* ---------- Staff & Umpires (#pplPage): compact person rows, lazy tabs ---------- */

.ppl-tools { display: flex; flex-direction: column; gap: .45rem; margin-bottom: .6rem; }
.ppl-search .tp-q { height: 44px; border-radius: 12px; }
.ppl-filters { display: flex; gap: .35rem; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.ppl-filters::-webkit-scrollbar { display: none; }
.ppl-chip { flex-shrink: 0; display: inline-flex; align-items: center; gap: .35rem; min-height: 36px; padding: 0 .8rem; border-radius: 99px; border: 1px solid var(--line);
  background: var(--card); color: var(--ink); font-weight: 600; font-size: .84rem; }
.ppl-chip b { font-weight: 600; color: var(--muted); font-size: .78rem; }
.ppl-chip b:empty { display: none; }
.ppl-chip[aria-pressed="true"] { border-color: var(--brand-2); background: #f5f9ff; color: var(--brand); }
.ppl-chip[aria-pressed="true"] b { color: var(--brand); }
.ppl-ground { flex-shrink: 0; display: inline-flex; align-items: center; gap: .3rem; min-height: 36px; padding: 0 .3rem 0 .7rem; border-radius: 99px; border: 1px solid var(--line); background: var(--card); font-size: .84rem; font-weight: 600; }
.ppl-ground select { border: 0; background: none; font-weight: 600; color: var(--ink); max-width: 9.5rem; padding: 0 .2rem; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #94a3b8; display: inline-block; flex-shrink: 0; }
.dot.on { background: var(--free); box-shadow: 0 0 0 3px #15803d22; }

.pp-items { display: flex; flex-direction: column; gap: .45rem; }
.pp-row { display: flex; align-items: center; background: var(--card); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; }
.pp-hit { flex: 1; min-width: 0; display: flex; align-items: center; gap: .7rem; padding: .7rem .75rem; border: 0; background: none; text-align: left; color: inherit; }
.pp-hit:hover { background: #f8fafc; }
.pp-hit:focus-visible, .ppl-chip:focus-visible { outline: 3px solid #0d7bff66; outline-offset: -3px; }
.pp-av { width: 42px; height: 42px; font-size: .85rem; }
.pp-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .1rem; }
.pp-name { display: flex; align-items: center; gap: .5rem; min-width: 0; }
.pp-name strong { font-size: .97rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pp-main small { color: var(--muted); font-size: .8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pp-st { display: inline-flex; align-items: center; gap: .3rem; font-size: .75rem; font-weight: 600; color: var(--muted); flex-shrink: 0; }
.pp-st.on { color: var(--free); }

.pp-v { font-size: .75rem; font-weight: 600; padding: .12rem .5rem; border-radius: 99px; background: var(--bg); color: var(--ink); white-space: nowrap; }

.pp-v { background: #e8f2ff; color: var(--brand); }

.pp-acts { display: flex; gap: .3rem; padding-right: .6rem; flex-shrink: 0; }

.pp-row.off .pp-av { background: #e2e8f0; color: #94a3b8; }
.pp-row.off .pp-name strong { color: var(--muted); }
.pp-sk { display: flex; align-items: center; gap: .7rem; padding: .8rem .75rem; background: var(--card); border-radius: 14px; margin-bottom: .45rem; }
.pp-sk > span { flex: 1; }
.pp-empty { background: var(--card); border-radius: 16px; padding: 1.6rem 1rem; }
.pp-empty p { color: var(--muted); font-size: .88rem; max-width: 22rem; margin: .3rem auto .8rem; }
.pp-err { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .5rem; text-align: center; background: var(--card); border-radius: 14px; padding: 1rem; color: var(--muted); font-size: .88rem; }
.pp-err .bi { font-size: 1.2rem; color: var(--cancelled); }
.ppl-sec { font-weight: 600; font-size: .9rem; padding-top: .4rem; border-top: 1px solid var(--line); margin-top: .8rem; }
.ppl-sec small { color: var(--muted); font-weight: 500; }
.ppl-switch { display: flex; gap: .7rem; align-items: flex-start; padding: .7rem .8rem; border: 1px solid var(--line); border-radius: 12px; }
.ppl-switch .form-check-input { margin: .15rem 0 0; flex-shrink: 0; width: 2.4em; height: 1.3em; float: none; }
.ppl-switch label { display: flex; flex-direction: column; }
.ppl-switch label small { color: var(--muted); font-size: .8rem; }
@media (min-width: 768px) {
  .ppl-tools { flex-direction: row; align-items: center; }
  .ppl-search { flex: 1; max-width: 26rem; }
}
@media (min-width: 992px) { .pp-items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; } }
@media (min-width: 1400px) { .pp-items { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* Staff / Umpire forms: a bottom sheet on phones (sized to the form) instead of a full-screen page */
@media (max-width: 575.98px) {
  .modal-dialog.ppl-sheet { position: fixed; left: 0; right: 0; bottom: 0; margin: 0; width: 100%; max-width: none; height: auto; max-height: 92dvh; display: flex; transform: none; }
  .modal.fade .modal-dialog.ppl-sheet { transform: translateY(30px); transition: transform .2s ease-out; }
  .modal.show .modal-dialog.ppl-sheet { transform: none; }
  .modal-dialog.ppl-sheet .modal-content { height: auto; max-height: 92dvh; border-radius: 20px 20px 0 0; }
  .modal-dialog.ppl-sheet .modal-footer { padding-bottom: max(.75rem, env(safe-area-inset-bottom)); }
  .modal-dialog.ppl-sheet .modal-footer .btn { flex: 1; min-height: 46px; }
}
.ppl-add { white-space: nowrap; }
@media (max-width: 379.98px) { .ppl-page .pay-top h2 { font-size: 1.05rem; } .ppl-add { padding: .4rem .7rem; font-size: .88rem; } }

/* ---------- My Grounds (#gdPage): ground cards, today's meter, slots inside the card ---------- */
.gd-sum { margin: .1rem 0 0; font-size: .82rem; color: var(--muted); }
.gd-sum span { color: var(--free); font-weight: 600; }
.gd-items { display: flex; flex-direction: column; gap: .6rem; }
.gd-card { background: var(--card); border-radius: 16px; box-shadow: var(--shadow); padding: .85rem .85rem .7rem; position: relative; overflow: hidden; }
.gd-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--brand-2); }
.gd-card.off::before { background: #cbd5e1; }
.gd-top { display: flex; align-items: flex-start; gap: .7rem; }
.gd-ic { width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0; display: grid; place-items: center; background: #e8f2ff; color: var(--brand); font-size: 1.15rem; }
.gd-card.off .gd-ic { background: var(--bg); color: #94a3b8; }
.gd-card.off .pp-name strong { color: var(--muted); }
.gd-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .15rem; }
.gd-main small { color: var(--muted); font-size: .82rem; }
.gd-main small a { font-weight: 600; }
.gd-miss { font-style: italic; }
.gd-more { width: 40px; height: 40px; margin: -.3rem -.3rem 0 0; border: 0; border-radius: 50%; background: none; color: var(--muted); font-size: 1.2rem; flex-shrink: 0; }
.gd-more:hover { background: var(--bg); color: var(--ink); }
.gd-stats { display: flex; flex-direction: column; gap: .3rem; margin: .7rem 0 .55rem; padding: .55rem .65rem; background: var(--bg); border-radius: 12px; }
.gd-today { display: flex; align-items: center; justify-content: space-between; gap: .6rem; font-size: .86rem; }
.gd-today b { color: var(--ink); }
.gd-today.warn { color: #b45309; font-weight: 600; }
.gd-today.muted { color: var(--muted); }
.gd-bar { display: flex; gap: 3px; flex-shrink: 0; }
.gd-bar i { width: 14px; height: 8px; border-radius: 3px; background: #dbe4f0; }
.gd-bar i.on { background: var(--accent); }
.gd-meta { font-size: .78rem; color: var(--muted); }
.gd-acts { display: flex; gap: .4rem; }
.gd-btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: .35rem; min-height: 40px; border: 1px solid var(--line); border-radius: 10px; background: var(--card);
  color: var(--brand); font-weight: 600; font-size: .86rem; text-decoration: none; }
.gd-btn:hover { background: #f5f9ff; border-color: #c7dcfb; }
.gd-chev { font-size: .75rem; transition: transform .15s; }
.gd-btn[aria-expanded="true"] { background: #f5f9ff; border-color: var(--brand-2); }
.gd-btn[aria-expanded="true"] .gd-chev { transform: rotate(180deg); }
.gd-slots { margin-top: .55rem; }
.gd-sl { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.gd-sl li + li { border-top: 1px solid var(--line); }
.gd-slot { width: 100%; display: flex; align-items: center; gap: .6rem; padding: .55rem .7rem; border: 0; background: var(--card); text-align: left; color: inherit; min-height: 48px; }
.gd-slot:hover { background: #f8fafc; }
.gd-slot .bi-pencil { color: #cbd5e1; font-size: .85rem; }
.gd-time { width: 5.4rem; flex-shrink: 0; font-weight: 600; font-size: .86rem; line-height: 1.2; }
.gd-time small { display: block; font-weight: 500; color: var(--muted); font-size: .75rem; }
.gd-sname { flex: 1; min-width: 0; font-size: .86rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gd-sname em { font-style: normal; font-size: .75rem; font-weight: 600; color: var(--muted); background: var(--bg); border-radius: 99px; padding: .05rem .4rem; margin-left: .2rem; }
.gd-price { font-weight: 600; font-size: .86rem; }
.gd-slot.off .gd-time, .gd-slot.off .gd-price { color: var(--muted); }
.gd-none { color: var(--muted); font-size: .86rem; margin: .2rem 0 .4rem; }
.gd-add { margin-top: .45rem; width: 100%; min-height: 42px; border: 1px dashed #c7dcfb; border-radius: 10px; background: #f8fbff; color: var(--brand); font-weight: 600; font-size: .86rem; }
.gd-add:hover { background: #eef5ff; }
.gd-sk .gd-main { padding-top: .3rem; } .gd-sk > .sk { margin-top: .9rem; height: 2.4rem; border-radius: 12px; width: 100%; }
.gd-menu { gap: .3rem; padding-bottom: max(1rem, env(safe-area-inset-bottom)); }
.gd-mi { display: flex; align-items: center; gap: .8rem; width: 100%; padding: .7rem .75rem; border: 0; border-radius: 12px; background: none; text-align: left; color: var(--ink); text-decoration: none; min-height: 56px; }
.gd-mi:hover { background: var(--bg); color: var(--ink); }
.gd-mi > .bi { font-size: 1.2rem; color: var(--brand); width: 1.5rem; text-align: center; }
.gd-mi span { display: flex; flex-direction: column; font-weight: 600; font-size: .92rem; }
.gd-mi small { font-weight: 400; color: var(--muted); font-size: .78rem; }
.gd-mi.danger, .gd-mi.danger > .bi { color: var(--cancelled); }
.gd-more:focus-visible, .gd-btn:focus-visible, .gd-slot:focus-visible, .gd-add:focus-visible, .gd-mi:focus-visible { outline: 3px solid #0d7bff66; outline-offset: -2px; }
@media (max-width: 575.98px) {
  #gdMore .modal-dialog { position: fixed; left: 0; right: 0; bottom: 0; margin: 0; max-width: none; align-items: flex-end; min-height: 0; }
  #gdMore .modal-content { border-radius: 20px 20px 0 0; }
}
@media (min-width: 992px) { .gd-items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; align-items: start; } }

/* Home: compact open-slot chips (44px hit area), muted booked chips, weekend rows */
.dash-chip::after { content: ''; position: absolute; inset: -4px; }
.dash-chip.off { background: var(--bg); border-color: var(--line); color: var(--muted); font-weight: 500; }
.tl-open { margin-top: .5rem; padding-top: .5rem; border-top: 1px solid var(--line); }
#dNext[hidden] { display: none; }

/* Home (mockup direction): icon KPI tiles, tinted attention heading + badge icons, status pills, grouped open slots,
   compact shortcut row, next-3-days rows */
.attn-h { margin: -.8rem -.9rem .3rem; padding: .6rem .9rem; background: #fff1ef; border-radius: 16px 16px 0 0; }
.attn-ic { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: .95rem; background: var(--bg); }
.attn-danger .attn-ic { background: var(--cancelled-bg); } .attn-warning .attn-ic { background: var(--pending-bg); } .attn-info .attn-ic { background: var(--confirmed-bg); }
.tl-time { font-size: .95rem; }
.tl-body small .pill { font-size: .72rem; padding: .05rem .5rem; }
.tl-open { display: flex; align-items: center; justify-content: space-between; gap: .5rem; flex-wrap: wrap; margin-top: .5rem; padding: .5rem .6rem; border-radius: 12px; background: var(--free-bg); border: 0; }
.tl-open-l { font-size: .85rem; font-weight: 600; color: var(--free); display: inline-flex; gap: .4rem; align-items: center; }
.tl-open-c { display: flex; flex-wrap: wrap; gap: .3rem; }
.tl-open .dash-chip { background: #fff; }
.dash-links { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); }
.dash-links a { flex-direction: row; gap: .35rem; min-height: 44px; padding: .4rem .3rem; font-size: .8rem; }
.dash-links a i { font-size: 1rem; }
.nd-row { display: grid; grid-template-columns: 3.2rem minmax(0, 1fr); gap: .6rem; align-items: center; padding: .3rem 0; }
.nd-row + .nd-row { border-top: 1px solid var(--line); }
.nd-d { text-align: center; background: var(--bg); border-radius: 10px; padding: .25rem 0; font-size: .8rem; font-weight: 600; line-height: 1.15; }
.nd-d small { display: block; font-weight: 500; color: var(--muted); font-size: .75rem; }
.nd-none { color: var(--muted); font-size: .85rem; }
.nd-b .next-row { border-top: 0; min-height: 44px; padding: .2rem 0; }
.nd-b .next-when { flex-basis: 3.6rem; }
.dash-card:empty { display: none; }

/* ===== Home — proposed mockup ===== */
.topbar .bell { position: relative; color: #fff; flex-shrink: 0; }
.topbar .bell .dot { position: absolute; top: .2rem; right: .35rem; width: 9px; height: 9px; border-radius: 50%; background: #ef4444; border: 2px solid #1e8bff; }
.dash-top { display: flex; align-items: flex-start; justify-content: space-between; gap: .5rem; }
.dash-top .dash-ground { margin: 0; flex-shrink: 1; min-width: 0; }
.dash-hi strong { font-size: 1.3rem; line-height: 1.2; }
button.attn-h { width: 100%; border: 0; text-align: left; align-items: center; margin-bottom: 0; }
.attn-h h2 { color: var(--ink); } .attn-h h2 i { color: var(--cancelled); }
.attn-h > .bi { color: var(--muted); transition: transform .15s; }
.attn-h[aria-expanded="false"] > .bi { transform: rotate(-90deg); }
.attn-ic { width: 34px; height: 34px; } .attn-ic i { font-size: 1rem; }
.attn-danger .attn-ic i { color: var(--cancelled); } .attn-warning .attn-ic i { color: var(--pending); } .attn-info .attn-ic i { color: var(--confirmed); }
.tl-row { grid-template-columns: 3.7rem 14px minmax(0, 1fr) auto; }
.tl-row + .tl-row::before { left: calc(3.7rem + .5rem + 6px); }
.tl-time { font-size: .9rem; white-space: nowrap; }
.tl-row > .bi { color: var(--muted); }
.tl-open { flex-wrap: nowrap; padding: .5rem .6rem; gap: .55rem; }
.tl-open-ic { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: #fff; color: var(--free); }
.tl-open-l { flex: 1; min-width: 0; display: block; }
.tl-open-l strong { display: block; font-size: .85rem; color: var(--ink); line-height: 1.2; }
.tl-open-l small { display: block; font-size: .75rem; font-weight: 400; color: var(--muted); }
.tl-open-c { flex: none; max-width: 60%; justify-content: flex-end; }
@media (max-width: 359px) { .tl-open { flex-wrap: wrap; } .tl-open-c { max-width: 100%; justify-content: flex-start; } }
.dash-chip { padding: .25rem .6rem; min-height: 32px; font-size: .78rem; }

.dash-links { margin: 0; gap: .5rem; }
.dash-links a { background: var(--card); box-shadow: 0 1px 3px rgba(15, 23, 42, .06); border-radius: 14px; padding: .4rem .5rem; justify-content: flex-start; font-size: .78rem; min-width: 0; }
.dash-links a .go { margin-left: auto; font-size: .7rem; color: var(--muted); }
.we-free { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: .3rem; margin-top: .35rem; }
.we-free .dash-chip { padding: .25rem 0; text-align: center; border-radius: 10px; font-size: .75rem; min-width: 0; }
.we-top strong { font-size: .9rem; }
.ov { display: grid; gap: .8rem; }
.ov.has-money { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.ov .util { display: flex; align-items: baseline; gap: .4rem; flex-wrap: wrap; margin-bottom: .3rem; }
.ov .util span { font-size: .8rem; color: var(--muted); }
.ov-money { border-left: 1px solid var(--line); padding-left: .8rem; display: grid; gap: .5rem; align-content: start; min-width: 0; }
.ov-money strong { display: block; font-size: 1.15rem; line-height: 1.15; }
.ov-money small { color: var(--muted); font-size: .75rem; }
.ov-two { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; }
.ov-two .ok strong { color: var(--free); } .ov-two .due strong { color: var(--cancelled); }
button.attn-h { width: calc(100% + 1.8rem); }
@media (max-width: 359px) { .tl-body strong { white-space: normal; } }

/* Home polish: calmer New booking CTA */

/* Home: "Book a slot" card — the CTA lives with the slots it books, instead of a full-width slab that duplicates the nav's Book button */
.bk-card { padding: .7rem .75rem .6rem; }
.bk-row { display: flex; align-items: center; gap: .6rem; }
.bk-ic { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: #fff1e8; color: var(--accent); font-size: 1.15rem; }
.bk-t { flex: 1; min-width: 0; line-height: 1.25; }
.bk-t strong { display: block; font-size: .95rem; }
.bk-t small { display: block; font-size: .75rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bk-btn { flex: none; position: relative; min-height: 42px; padding: 0 .9rem; border-radius: 12px; font-weight: 600; font-size: .9rem; display: inline-flex; align-items: center; gap: .3rem; box-shadow: 0 4px 10px rgba(255, 107, 26, .3); }
.bk-btn::after { content: ''; position: absolute; inset: -2px; }
.bk-chips { display: flex; gap: .35rem; overflow-x: auto; scrollbar-width: none; margin: .6rem -.75rem 0; padding: 0 .75rem .1rem; }
.bk-chips::-webkit-scrollbar { display: none; }
.bk-chips[hidden] { display: none; }
.bk-chips .dash-chip { flex: none; white-space: nowrap; }
@media (max-width: 399px) { .bk-ic { display: none; } }
@media (max-width: 359px) { .bk-btn { padding: 0 .7rem; font-size: .85rem; } }

/* ===== Home typography pass (type only): 400 context · 500 secondary · 600 content/actions · 700 greeting, section titles, big numbers ===== */
.page-dashboard .dash-hi strong { font-size: 1.4rem; font-weight: 700; line-height: 1.2; }
.page-dashboard .dash-hi span { font-size: .875rem; font-weight: 400; line-height: 1.4; }
.page-dashboard .dash-ground { font-weight: 600; }
@media (max-width: 359px) { .page-dashboard .dash-hi strong { font-size: 1.25rem; white-space: nowrap; } } /* keeps the 👋 on the greeting line */
/* Hero: the match on now / up next (tap opens it) + one line of today's numbers */
.hn { display: flex; align-items: center; gap: .65rem; width: 100%; margin-top: .7rem; padding: .55rem .7rem; border: 0; border-radius: 12px; background: rgba(255, 255, 255, .16); color: #fff; text-align: left; min-height: 52px; }
.hn:hover, .hn:focus-visible { background: rgba(255, 255, 255, .24); }
.hn-when { flex: none; text-align: center; line-height: 1.15; padding-right: .65rem; border-right: 1px solid rgba(255, 255, 255, .28); min-width: 3.4rem; }
.hn-when small, .hn-body small { display: block; font-size: .75rem; opacity: .9; }
.hn-when strong { font-size: 1rem; font-weight: 600; white-space: nowrap; }
.hn-body { flex: 1; min-width: 0; line-height: 1.3; }
.hn-body strong { display: block; font-size: .9375rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hn > .bi { flex: none; opacity: .85; }
.hn-stats { margin: .55rem 0 0; font-size: .8125rem; opacity: .95; }
.hn-stats b { font-weight: 600; }
.page-dashboard .dash-h h2 { font-size: 1.0625rem; font-weight: 600; line-height: 1.25; }
.page-dashboard .dash-h a { font-size: .8125rem; font-weight: 500; }
.page-dashboard .attn-body strong { font-size: .9375rem; font-weight: 600; line-height: 1.3; }
.page-dashboard .attn-body small { font-size: .8125rem; font-weight: 400; line-height: 1.4; }
.page-dashboard .attn-body small b { font-weight: 600; }
.page-dashboard .attn-more summary { font-size: .875rem; font-weight: 500; }
.page-dashboard .attn-ok small { font-size: .8125rem; }
.page-dashboard .tl-time { font-size: .9375rem; font-weight: 600; }
.page-dashboard .tl-body strong { font-size: .9375rem; font-weight: 600; line-height: 1.3; }
.page-dashboard .tl-vs { font-weight: 400; }
.page-dashboard .tl-body small { font-size: .8125rem; font-weight: 400; line-height: 1.4; }
.page-dashboard .tl-body small .pill { font-size: .8125rem; font-weight: 500; }
.page-dashboard .tl-row .due, .page-dashboard .next-row .due { font-size: .8125rem; font-weight: 600; }
.page-dashboard .tl-open-l strong { font-size: .9375rem; font-weight: 600; }
.page-dashboard .tl-open-l small { font-size: .8125rem; font-weight: 400; }
.page-dashboard .dash-chip { font-size: .8125rem; font-weight: 500; line-height: 1.3; }
.page-dashboard .bk-t strong { font-size: 1.0625rem; font-weight: 600; line-height: 1.25; }
.page-dashboard .bk-t small { font-size: .8125rem; font-weight: 400; line-height: 1.35; }
.page-dashboard .bk-btn { font-size: .9rem; font-weight: 600; line-height: 1.25; }
.page-dashboard .dash-links a { font-size: .875rem; font-weight: 600; line-height: 1.3; }
@media (max-width: 359px) { .page-dashboard .dash-links a { font-size: .8125rem; padding-inline: .4rem; gap: .25rem; } .dash-links a .go { display: none; } } /* 3 tiles fit at 320px */
.page-dashboard .we-top strong { font-size: .9375rem; font-weight: 600; }
.page-dashboard .we-top span { font-size: .8125rem; font-weight: 400; }
.page-dashboard .we-free .dash-chip { font-size: .8125rem; font-weight: 500; }
.page-dashboard .nd-d { font-size: .875rem; font-weight: 600; }
.page-dashboard .nd-d small { font-size: .75rem; font-weight: 400; }
.page-dashboard .nd-none { font-size: .875rem; font-weight: 400; }
.page-dashboard .next-when { font-size: .875rem; font-weight: 600; }
.page-dashboard .next-body strong { font-size: .9375rem; font-weight: 600; }
.page-dashboard .util strong { font-size: 1.5rem; font-weight: 700; }
.page-dashboard .util span { font-size: .875rem; font-weight: 400; }
.page-dashboard .util-legend { font-size: .75rem; font-weight: 400; }
.page-dashboard .util-legend b { font-size: .9375rem; font-weight: 600; color: var(--ink); }
.page-dashboard .ov-money strong { font-size: 1rem; font-weight: 600; }
.page-dashboard .ov-money small { font-size: .75rem; font-weight: 400; }

/* ===== Calendar typography pass (type only, scoped): 400 context · 500 secondary · 600 content/actions · 700 month title + selected date ===== */
.page-calendar .cal-title { font-size: 1.3125rem; font-weight: 700; line-height: 1.22; }
.page-calendar .cal-toolbar .btn[data-nav="0"] { font-size: .9375rem; font-weight: 600; line-height: 1.25; }
.page-calendar .view-switch .btn { font-size: .9375rem; font-weight: 500; line-height: 1.25; }
.page-calendar .view-switch .btn.active { font-weight: 600; }
.page-calendar .ground-pick { font-size: .875rem; font-weight: 600; }
.page-calendar .occ { font-size: .875rem; font-weight: 500; line-height: 1.35; }
.page-calendar .occ b, .page-calendar .occ strong { font-weight: 600; }
.page-calendar .dow, .page-calendar .pm-dows { font-size: .75rem; font-weight: 600; }
.page-calendar .pd-num { font-size: 1.0625rem; font-weight: 600; line-height: 1.2; }
.page-calendar .pm-grid .pd.sel .pd-num { font-size: 1.125rem; font-weight: 700; }
.page-calendar .pm-grid .pd.today:not(.sel) .pd-num { font-size: 1.0625rem; font-weight: 700; }
.page-calendar .mday-num { font-weight: 600; }
.page-calendar .ev .t { font-weight: 600; }
.page-calendar .ag-head > strong { font-size: 1.0625rem; font-weight: 600; line-height: 1.25; }
.page-calendar .ag-need, .page-calendar .chip-due { font-size: .75rem; font-weight: 600; }
.page-calendar .ag-open { font-size: .8125rem; font-weight: 600; }
.page-calendar .ag-time { font-size: .9375rem; font-weight: 600; line-height: 1.25; }
.page-calendar .ag-time small { font-size: .75rem; font-weight: 400; }
.page-calendar .ag-kick { font-size: .75rem; font-weight: 600; letter-spacing: .03em; line-height: 1.3; }
.page-calendar .ag-status { font-size: .75rem; font-weight: 500; }
.page-calendar .ag-team { font-size: .9375rem; font-weight: 600; line-height: 1.3; }
.page-calendar .ag-vs { font-size: .8125rem; font-weight: 500; }
.page-calendar .ag-q { font-size: .8125rem; font-weight: 600; }
.page-calendar .ag-meta { font-size: .8125rem; font-weight: 400; line-height: 1.4; }
.page-calendar .ag-meta .due { font-weight: 600; }
.page-calendar .ag-find, .page-calendar .ag-actions .ag-find { font-size: .875rem; font-weight: 600; line-height: 1.25; }
.page-calendar .ag-act { font-size: .875rem; font-weight: 600; }
.page-calendar .ag-free { font-size: .875rem; font-weight: 600; line-height: 1.3; }
.page-calendar .ag-free small { font-size: .8125rem; font-weight: 500; }
.page-calendar .ag-block { font-size: .8125rem; font-weight: 500; }
.page-calendar .legend, .page-calendar .plegend, .page-calendar .tlegend { font-size: .75rem; font-weight: 400; line-height: 1.35; }
@media (max-width: 359px) { .page-calendar .ground-pick > .sm-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } } /* 320px: "Ground" stays for screen readers so the toolbar fits */
@media (max-width: 359px) { .page-calendar .view-switch .btn, .page-calendar .cal-toolbar .btn[data-nav="0"] { font-size: .875rem; padding-left: .4rem; padding-right: .4rem; } }
@media (max-width: 399px) {
  .page-calendar .ag-head > strong { font-size: 1rem; }
  .page-calendar .ag-team { font-size: .9rem; gap: .25rem; }
  .page-calendar .ag-find { padding: .4rem .55rem; }
  .page-calendar .ag-need { padding-left: .5rem; padding-right: .5rem; }
}
@media (max-width: 399px) { .page-calendar .ag-head > strong { white-space: nowrap; flex: none; } .page-calendar .ag-need { min-width: 0; overflow: hidden; text-overflow: ellipsis; } }

/* ===== Calendar: compact one-line utilisation, slim legend with an optional match-type ⓘ ===== */
.page-calendar .occ { display: block; margin: 0; }
.page-calendar .occ:not(.d-none) { display: block; }
.page-calendar .occ-text { display: flex; flex-wrap: nowrap; align-items: baseline; gap: 0 .55rem; white-space: nowrap; font-size: .8125rem; font-weight: 400; color: var(--muted); line-height: 1.35; }
.page-calendar .occ-u b { font-weight: 600; color: var(--ink); }
.page-calendar .occ-u .w { font-weight: 500; }
.page-calendar .oc::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: .3rem; vertical-align: 1px; background: var(--confirmed); }
.page-calendar .oc.f::before { background: var(--free); }
.page-calendar .oc.x::before { background: var(--block); }
.page-calendar .occ-bar { display: block; width: auto; min-width: 0; height: 4px; margin-top: .3rem; }
@media (max-width: 359px) { .page-calendar .occ-u .w { display: none; } .page-calendar .occ-text { gap: 0 .4rem; font-size: .78rem; } }
.lg-i { position: relative; border: 0; background: none; padding: 0; margin-left: .2rem; color: var(--muted); font-size: .95rem; line-height: 1; }
.lg-i::after { content: ''; position: absolute; inset: -14px; }
.lg-i[aria-expanded="true"] { color: var(--brand-2); }
.tlegend[hidden] { display: none; }
.page-calendar .plegend span { white-space: nowrap; }
@media (max-width: 359px) { .page-calendar .plegend { gap: .5rem; } .page-calendar .plegend .pip { width: 10px; } .lg-i { margin-left: 0; } }

/* ===== Bookings: compact search, calmer type, status never truncated, denser rows ===== */
.bk-page .pay-top h2 { font-size: 1.3125rem; font-weight: 700; line-height: 1.2; }
.bk-page .bl-search .tp-q { height: 44px; font-size: .9375rem; font-weight: 400; border-radius: 12px; padding-left: 2.5rem; }
.bk-page .bl-search .tp-q::placeholder { font-size: .875rem; color: #94a3b8; }
.bk-page .bl-search > .bi { font-size: 1.1rem; }
.bk-page .bl-date { font-size: .9375rem; font-weight: 600; }
.bk-page .bl-chip { font-size: .875rem; font-weight: 600; }
.bk-page .bl-sum { font-size: .8125rem; font-weight: 400; line-height: 1.4; margin: .55rem .1rem .3rem; }
.bk-page .bl-sum strong { font-weight: 600; }
.bk-page .bl-avail-l { font-size: .8125rem; font-weight: 500; }
.bk-page .bl-slot { position: relative; font-size: .8125rem; font-weight: 500; min-height: 32px; padding: .2rem .65rem; }
.bk-page .bl-slot.open b { font-weight: 600; }
.bk-page .bl-slot.booked { font-weight: 600; }
.bk-page .bl-slot::after { content: ''; position: absolute; inset: -6px -2px; }
.bk-page .bl-main { padding: .5rem 0; align-items: flex-start; }
.bk-page .bl-time { font-size: 1rem; font-weight: 600; line-height: 1.2; }
.bk-page .bl-time small { font-size: .75rem; font-weight: 400; }
.bk-page .bl-info strong { font-size: .9375rem; font-weight: 600; line-height: 1.3; white-space: normal; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.bk-page .bl-info small { font-size: .8125rem; font-weight: 400; line-height: 1.4; white-space: normal; overflow: visible; margin-top: 1px; }
.bk-page .bl-st { font-weight: 600; }
.bk-page .bl-need { font-weight: 600; white-space: nowrap; }
.bk-page .bl-chev { align-self: center; }
.bk-page .bl-pay { font-size: .8125rem; font-weight: 600; padding: .2rem .6rem; }
.bk-page .bl-pay.ok { font-weight: 500; }
@media (max-width: 767.98px) { .bk-page .bl-pay { margin-top: -.3rem; margin-bottom: .5rem; } }
.bk-page .bl-avail { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: -.5rem; padding-right: .5rem; }
.bk-page .bl-avail::-webkit-scrollbar { display: none; }
.bk-page .bl-avail > * { flex: none; white-space: nowrap; }
@media (max-width: 359px) { .bk-page .bl-date { font-size: .8125rem; } .bk-page .bl-chip { padding: 0 .5rem; font-size: .8125rem; } .bk-page .bl-nav { width: 34px; } }

/* ===== Payments: receivables action center (pending summary → who owes → remind → matches; Paid = quiet history) ===== */
.pay-page .pay-top h2 { font-size: 1.3125rem; font-weight: 700; line-height: 1.2; }

.pay-page .pay-search { margin: .6rem 0 .5rem; }
.pay-page .pay-search .tp-q { height: 44px; font-size: .9375rem; font-weight: 400; border-radius: 12px; padding-left: 2.5rem; }
.pay-page .pay-search .tp-q::placeholder { font-size: .875rem; color: #94a3b8; }
.pay-page .pay-search > .bi { font-size: 1.1rem; }
.pay-page .ctabs button { font-size: .9375rem; font-weight: 600; }
.pay-page .due-list { gap: .5rem; }
.pay-page .due-grp { padding: .65rem .8rem .55rem; }
.pay-page .dg-head { align-items: flex-start; gap: .6rem; }
.pay-page .dg-head .cav { width: 40px; height: 40px; font-size: .85rem; }
.pay-page .dg-head .min-w-0 { line-height: 1.3; }
.pay-page .dg-head strong { font-size: 1rem; font-weight: 600; }
.pay-page .dg-head small { font-size: .8125rem; font-weight: 400; }

.pay-page .dg-chev { margin-top: .2rem; }

.pay-page .cm-remind { font-size: .8125rem; font-weight: 600; min-height: 36px; padding: 0 .85rem; border-radius: 99px; }
.pay-page .dg-body { margin-top: .4rem; background: #f8fafc; border-radius: 12px; padding: .5rem .65rem .45rem; }
.pay-page .dg-h { font-size: .9375rem; font-weight: 600; padding: .1rem 0 .2rem; }
.pay-page .dg-list { margin: 0; }
.pay-page .dg-match { padding: .4rem 0; }
.pay-page .dg-when { font-size: .8125rem; font-weight: 600; }
.pay-page .dg-when small { font-weight: 400; font-size: .75rem; }
.pay-page .dg-name { font-size: .875rem; font-weight: 500; white-space: normal; overflow-wrap: anywhere; }
.pay-page .dg-due { font-size: .9375rem; font-weight: 600; }
.pay-page .dg-due small { font-size: .75rem; font-weight: 500; display: inline-block; margin-top: 2px; }
.pay-page .dg-due small.mid { color: #a16207; background: var(--pending-bg); border-radius: 99px; padding: 0 .45rem; }
.pay-page .dg-due small.late { color: var(--cancelled); background: var(--cancelled-bg); border-radius: 99px; padding: 0 .45rem; }
.pay-page .dg-rec { height: 30px; font-size: .75rem; font-weight: 600; }
.pay-page .dg-morebtn { display: block; width: 100%; border: 0; background: none; color: var(--brand); font-size: .8125rem; font-weight: 600; padding: .45rem 0 .2rem; }
.pay-page .paid-list .cm-day { font-size: .875rem; font-weight: 600; padding: .8rem 0 .25rem; }
.pay-page .paid-row { align-items: center; padding: .5rem 0; gap: .6rem; }
.pay-page .paid-ic { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--free-bg); color: var(--free); }
.pay-page .paid-row strong { font-size: .9375rem; font-weight: 600; }
.pay-page .paid-row small { font-size: .8125rem; font-weight: 400; line-height: 1.35; }
.pay-page .paid-amt { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; color: var(--ink); }
.pay-page .paid-amt b { font-size: .9375rem; font-weight: 600; }
.pay-page .paid-amt em { font-style: normal; font-size: .75rem; font-weight: 500; color: var(--free); background: var(--free-bg); border-radius: 99px; padding: 0 .5rem; white-space: nowrap; }
.pay-page .paid-amt.refund b { color: var(--cancelled); } .pay-page .paid-amt.refund em { color: var(--cancelled); background: var(--cancelled-bg); }
.pay-page .paid-chev { color: #cbd5e1; font-size: .8rem; }
.pay-page .dg-rec { width: 34px; height: 34px; padding: 0; display: grid; place-items: center; font-size: 1rem; flex: none; }
.pay-page .dg-name { overflow-wrap: break-word; word-break: normal; }
.pay-page .dg-due { display: flex; flex-direction: column; align-items: flex-end; }
.pay-page .dg-match { gap: .5rem; }
.pay-page .dg-when { flex-basis: 3.2rem; }

/* Payments: three tabs (By Team · By Customer · Paid); the pending summary is the same on every tab */

.pay-page .pay-per { display: none; justify-content: flex-end; margin: -.1rem 0 .4rem; font-size: .8125rem; color: var(--muted); }
.pay-page[data-tab="paid"] .pay-per { display: flex; }
.pay-page .pay-per select { border: 0; background: none; font: inherit; font-weight: 600; color: var(--brand); padding: 0 .2rem; }
.pay-page .pay-tabs button { font-size: .875rem; font-weight: 600; padding-left: .3rem; padding-right: .3rem; white-space: nowrap; }
.pay-page .pay-tabs button span { font-size: .75rem; }
@media (max-width: 359px) { .pay-page .pay-tabs button { font-size: .8125rem; } .pay-page .pay-tabs button span { display: none; } }
.pay-page .pay-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); } .pay-page .pay-tabs button { min-height: 42px; }

/* Payments tabs: one clean segmented control — solid brand-blue active tab, quiet inactive tabs, even widths, count chips */
.pay-page .pay-tabs { background: #e6edf7; border-radius: 12px; padding: 3px; gap: 2px; margin: .1rem 0 .7rem; }
.pay-page .pay-tabs button { display: flex; align-items: center; justify-content: center; gap: .35rem; min-height: 40px; border-radius: 10px; background: transparent; color: #475569; font-size: .875rem; font-weight: 600; box-shadow: none; transition: background .15s, color .15s; }
.pay-page .pay-tabs button span { margin: 0; min-width: 20px; text-align: center; background: #fff; color: #475569; font-size: .75rem; font-weight: 600; line-height: 1.5; padding: 0 .35rem; }
.pay-page .pay-tabs button[aria-selected="true"] { background: var(--brand-2); color: #fff; box-shadow: 0 1px 3px rgba(11, 94, 215, .35); }
.pay-page .pay-tabs button[aria-selected="true"] span { background: rgba(255, 255, 255, .25); color: #fff; }
@media (max-width: 419px) { .pay-page .pay-tabs button { font-size: .8125rem; gap: .25rem; padding-left: .2rem; padding-right: .2rem; } .pay-page .pay-tabs button span { min-width: 18px; padding: 0 .25rem; font-size: .6875rem; } }
@media (max-width: 359px) { .pay-page .pay-tabs button { font-size: .8125rem; } }

/* ===== Payments: space-efficient layout (compact summary, search on demand, sticky tabs, one-row cards, aligned columns) ===== */
.pay-page .pay-top { gap: .5rem; margin-bottom: .5rem; }
.pay-page .pay-ground { min-width: 0; }
.pay-sbtn { margin-left: auto; flex: none; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--ink); display: grid; place-items: center; font-size: 1.05rem; }
.pay-sbtn.on, .pay-sbtn[aria-expanded="true"] { border-color: #7fb6ff; color: var(--brand); background: #f5f9ff; }
.pay-sum { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: .5rem; align-items: stretch; }
.ps-main { border: 0; text-align: left; border-radius: 16px; background: var(--cancelled-bg); padding: .6rem .8rem; display: flex; flex-direction: column; justify-content: center; min-width: 0; color: var(--cancelled); }
.ps-main.ok { background: var(--free-bg); color: var(--free); }
.ps-main small { font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; opacity: .85; }
.ps-main strong { font-size: 1.375rem; font-weight: 700; line-height: 1.15; font-variant-numeric: tabular-nums; }
.ps-main span { font-size: .8125rem; font-weight: 400; color: #7f1d1d; line-height: 1.35; }
.ps-main.ok span { color: var(--free); }
.ps-side { background: var(--card); border-radius: 16px; box-shadow: 0 1px 3px rgba(15, 23, 42, .06); display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.ps-side > * { display: flex; align-items: center; justify-content: space-between; gap: .3rem; border: 0; background: none; text-align: left; padding: .45rem .7rem; color: var(--ink); text-decoration: none; min-height: 44px; flex: 1; }
.ps-side > * + * { border-top: 1px solid #f1f5f9; }
.ps-side span { min-width: 0; font-size: .8125rem; line-height: 1.25; }
.ps-side b { font-size: .9375rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.ps-side small { display: block; font-size: .75rem; color: var(--muted); font-weight: 400; }
.ps-side .bi { color: var(--muted); font-size: .8rem; flex: none; }
.pay-page .pay-search { margin: .5rem 0 0; }
.pay-page .pay-tabs { position: sticky; top: var(--tb, 0px); z-index: 30; margin: .55rem 0 .6rem; box-shadow: 0 6px 8px -6px rgba(15, 23, 42, .18); }
.pay-page .pay-per { margin-top: -.2rem; }

.pay-page .due-list { gap: .45rem; }
.pay-page .due-grp { padding: .55rem .7rem; }
.pay-page .dg-head { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: .55rem; align-items: center; cursor: pointer; width: 100%; padding: 0; }
.pay-page .dg-head:focus-visible { outline: 2px solid #7fb6ff; outline-offset: 2px; border-radius: 10px; }
.pay-page .dg-txt { min-width: 0; line-height: 1.3; }
.pay-page .dg-txt strong { display: block; font-size: 1rem; font-weight: 600; overflow-wrap: anywhere; }
.pay-page .dg-txt small { display: block; font-size: .8125rem; font-weight: 400; color: var(--muted); }
.pay-page .dg-age { font-size: .75rem; font-weight: 500; }
.pay-page .dg-age.mid { color: #a16207; font-weight: 600; }
.pay-page .dg-age.late { color: var(--cancelled); font-weight: 600; }
.pay-page .dg-age .dg-chev { font-size: .7rem; margin-left: .1rem; vertical-align: -1px; }
.pay-page .dg-side { display: flex; flex-direction: column; align-items: flex-end; gap: .3rem; }
.pay-page .dg-side strong { font-size: 1.0625rem; font-weight: 700; color: var(--cancelled); line-height: 1.15; font-variant-numeric: tabular-nums; }
.pay-page .dg-side .cm-remind { position: relative; min-height: 30px; height: 30px; padding: 0 .7rem; font-size: .8125rem; font-weight: 600; }
.pay-page .dg-side .cm-remind::after { content: ''; position: absolute; inset: -7px -4px; }
.pay-page .dg-nomob { font-size: .75rem; color: var(--muted); }
.pay-page .dg-body { margin-top: .5rem; }
.pay-page .dg-list li { display: grid; grid-template-columns: minmax(0, 1fr) 34px; gap: .4rem; align-items: center; }
.pay-page .dg-match { display: grid; grid-template-columns: 3.1rem minmax(0, 1fr) 5rem; gap: .5rem; align-items: center; width: 100%; padding: .35rem 0; }
.pay-page .dg-due { align-items: flex-end; text-align: right; font-variant-numeric: tabular-nums; }
.pay-page .dg-name { white-space: normal; }
.pay-page .dg-due small { white-space: nowrap; }

/* ===== Reports: calm, compact business-performance sections ===== */
.rp-page { max-width: 1100px; }
.rp-top { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .5rem; }
.rp-top h2 { font-size: 1.3125rem; font-weight: 700; line-height: 1.2; margin: 0; }
.rp-more { font-size: .8125rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.rp-more .bi { font-size: .7rem; }
.rp-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin-bottom: .55rem; }
.rp-pill { position: relative; display: inline-flex; align-items: center; gap: .35rem; height: 38px; padding: 0 .2rem 0 .65rem; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--brand); }
.rp-pill select { border: 0; background: transparent; font: inherit; font-size: .875rem; font-weight: 600; color: var(--ink); padding: 0 .5rem 0 0; height: 36px; max-width: 160px; text-overflow: ellipsis; }
.rp-period { margin-left: auto; font-size: .8125rem; color: var(--muted); }
.rp-custom { display: flex; gap: .5rem; margin-bottom: .55rem; } .rp-custom[hidden] { display: none; }
.rp-custom label { flex: 1; font-size: .75rem; color: var(--muted); }
.rp-grid { display: grid; gap: .6rem; margin-top: .6rem; }
@media (min-width: 992px) { .rp-grid { grid-template-columns: 1fr 1fr; align-items: start; } }
.rp-card { background: var(--card); border-radius: 16px; padding: .8rem .9rem; box-shadow: 0 1px 3px rgba(15, 23, 42, .06); min-width: 0; }
.rp-h { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; margin-bottom: .45rem; }
.rp-h h3 { font-size: 1.0625rem; font-weight: 600; margin: 0; line-height: 1.25; }
.rp-sub { font-size: .75rem; color: var(--muted); }
.rp-note { margin: .35rem 0 0; font-size: .75rem; color: var(--muted); }
.rp-k3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .4rem; }
.rp-k3 small { display: block; font-size: .75rem; font-weight: 500; color: var(--muted); }
.rp-k3 strong { display: block; font-size: 1.1875rem; font-weight: 700; line-height: 1.15; font-variant-numeric: tabular-nums; }
.g { color: var(--free); } .r { color: var(--cancelled); }
.rp-trend { margin: .3rem 0 0; font-size: .8125rem; } .rp-trend em { font-style: normal; font-weight: 600; } .rp-trend .up { color: var(--free); } .rp-trend .dn { color: var(--cancelled); }
.rp-line { margin: .5rem 0 0; font-size: .8125rem; font-weight: 400; color: var(--muted); line-height: 1.4; } .rp-line b { font-weight: 600; color: var(--ink); } .rp-line b.r { color: var(--cancelled); }
.rp-big { display: flex; align-items: baseline; gap: .5rem; } .rp-big strong { font-size: 1.375rem; font-weight: 700; color: var(--brand); } .rp-big span { font-size: .8125rem; color: var(--muted); }
.rp-bar2 { height: 8px; border-radius: 99px; background: #e2e8f0; overflow: hidden; margin-top: .35rem; } .rp-bar2 i { display: block; height: 100%; background: var(--brand-2); border-radius: 99px; } .rp-bar2.gr i { background: var(--free); }
.rp-ins { display: grid; gap: .25rem; margin-top: .5rem; } .rp-ins:empty { display: none; }
.rp-ins span { font-size: .8125rem; color: var(--muted); } .rp-ins i { color: var(--brand); margin-right: .3rem; } .rp-ins b { color: var(--ink); font-weight: 600; }
.rp-chart { width: 100%; height: auto; display: block; }
.rp-chart text { font-size: 10.5px; fill: #64748b; } .rp-chart .mx { fill: #94a3b8; }
.rp-chart .e { fill: #bfdbfe; } .rp-chart .c { fill: var(--brand-2); }
.rp-bg { cursor: pointer; outline: none; } .rp-bg:focus-visible .e, .rp-bg:hover .e { fill: #93c5fd; }
.rp-leg { display: flex; gap: .7rem; align-items: center; margin: .2rem 0 0; font-size: .75rem; color: var(--muted); }
.rp-leg i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; margin-right: -.4rem; } .rp-leg i.e { background: #bfdbfe; } .rp-leg i.c { background: var(--brand-2); }
.rp-det { margin: .4rem 0 0; font-size: .8125rem; color: var(--muted); line-height: 1.4; min-height: 1.2em; } .rp-det b { color: var(--ink); font-weight: 600; }
.rp-rank { display: grid; grid-template-columns: 3.6rem minmax(0, 1fr) auto; gap: .5rem; align-items: center; padding: .22rem 0; font-size: .8125rem; }
.rp-rank .t { font-weight: 500; color: var(--ink); white-space: nowrap; } .rp-rank .t.w { grid-column: auto; }
.rp-rank .b { height: 8px; border-radius: 99px; background: #eef2f7; overflow: hidden; } .rp-rank .b i { display: block; height: 100%; background: #93c5fd; border-radius: 99px; }
.rp-rank.top .b i { background: var(--brand-2); } .rp-rank.top .t { font-weight: 600; }
.rp-rank .v { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; min-width: 2.6rem; } .rp-rank .v small { font-weight: 400; color: var(--muted); } .rp-rank .v .m { display: block; font-size: .7rem; }
.rp-team { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: .5rem; align-items: center; padding: .38rem 0; font-size: .875rem; border-top: 1px solid #f1f5f9; } .rp-team:first-of-type { border-top: 0; }
.rp-team .n { width: 22px; height: 22px; border-radius: 50%; background: #e8f2ff; color: var(--brand); font-size: .75rem; font-weight: 600; display: grid; place-items: center; }
.rp-team .nm { font-weight: 600; overflow-wrap: anywhere; } .rp-team .v { text-align: right; font-size: .8125rem; font-weight: 500; } .rp-team .v small { display: block; color: var(--muted); font-weight: 400; }
.rp-empty { margin: .2rem 0 0; font-size: .8125rem; color: var(--muted); }
.rp-err { margin: .2rem 0 0; font-size: .8125rem; color: var(--muted); } .rp-retry { border: 0; background: none; color: var(--brand); font-weight: 600; padding: 0 .3rem; }
@media (max-width: 359px) { .rp-k3 strong { font-size: 1.0625rem; } .rp-pill select { max-width: 120px; } }
.rp-rank.wide { grid-template-columns: 5.4rem minmax(0, 1fr) auto; }

/* ===== Match earnings: compact mobile-first list ===== */
.me-page { max-width: 900px; }
.me-page .back-link { font-size: .875rem; font-weight: 600; margin-bottom: .1rem; min-height: 32px; }
.me-title { font-size: 1.3125rem; font-weight: 700; line-height: 1.2; margin: 0 0 .5rem; }
.me-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin-bottom: .5rem; }
.me-fbtn { height: 38px; padding: 0 .75rem; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font-size: .8125rem; font-weight: 600; display: inline-flex; align-items: center; gap: .35rem; }
.me-fbtn i { color: var(--brand); }
.me-fbtn.on { border-color: #7fb6ff; color: var(--brand); background: #f5f9ff; }
.me-fbtn b { background: var(--brand-2); color: #fff; border-radius: 99px; font-size: .6875rem; font-weight: 600; min-width: 18px; text-align: center; padding: 0 .3rem; line-height: 1.5; }
.me-per { margin-left: auto; font-size: .8125rem; color: var(--muted); }
.me-dates { flex-basis: 100%; display: flex; gap: .4rem; align-items: flex-end; } .me-dates[hidden] { display: none; }
.me-dates label { flex: 1; font-size: .75rem; color: var(--muted); }
.me-sum { background: var(--card); border-radius: 14px; padding: .6rem .8rem; box-shadow: 0 1px 3px rgba(15, 23, 42, .06); margin-bottom: .2rem; }
.me-s1 { display: flex; align-items: flex-end; justify-content: space-between; gap: .5rem; }
.me-s1 small { display: block; font-size: .75rem; color: var(--muted); font-weight: 500; }
.me-s1 strong { font-size: 1.375rem; font-weight: 700; line-height: 1.15; font-variant-numeric: tabular-nums; }
.me-n { font-size: .8125rem; font-weight: 500; color: var(--muted); }
.me-sum p { margin: .3rem 0 0; font-size: .8125rem; line-height: 1.45; color: var(--muted); } .me-sum p b { color: var(--ink); font-weight: 600; } .me-sum p small { font-size: .75rem; }
.me-sum .r, .me-row .r { color: var(--cancelled); } .me-sum .g { color: var(--free); font-weight: 600; }
.me-day { display: flex; justify-content: space-between; align-items: baseline; font-size: .8125rem; font-weight: 600; color: var(--ink); margin: .7rem .2rem .25rem; } .me-day span:last-child { font-weight: 500; color: var(--muted); }
.me-list { background: var(--card); border-radius: 14px; box-shadow: 0 1px 3px rgba(15, 23, 42, .06); overflow: hidden; }
.me-row { display: flex; align-items: flex-start; justify-content: space-between; gap: .6rem; width: 100%; border: 0; background: none; text-align: left; padding: .55rem .75rem; color: var(--ink); }
.me-row + .me-row { border-top: 1px solid #f1f5f9; }
.me-row:active { background: #f5f9ff; }
.me-main { flex: 1; min-width: 0; line-height: 1.3; }
.me-main strong { display: block; font-size: .9375rem; font-weight: 600; overflow-wrap: anywhere; } .me-main strong em { font-style: normal; font-weight: 400; color: var(--muted); }
.me-main > small { display: block; font-size: .8125rem; color: var(--muted); font-weight: 400; }
.me-tags { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .4rem; margin-top: .25rem; }
.me-tg { display: inline-block; height: 20px; line-height: 20px; padding: 0 .4rem; border-radius: 6px; font-size: .75rem; font-weight: 500; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.me-tg.ok { background: var(--free-bg); color: var(--free); } .me-tg.due { background: var(--cancelled-bg); color: var(--cancelled); font-weight: 600; }
.me-calc { font-size: .75rem; color: var(--muted); }
.me-earn { flex: none; text-align: right; line-height: 1.25; } .me-earn strong { display: block; font-size: 1rem; font-weight: 600; font-variant-numeric: tabular-nums; } .me-earn small { font-size: .75rem; color: var(--muted); }
.me-empty { background: var(--card); border-radius: 14px; padding: 1.1rem; text-align: center; margin-top: .6rem; } .me-empty strong { display: block; font-size: .9375rem; } .me-empty p { margin: .2rem 0 .5rem; font-size: .8125rem; color: var(--muted); }
@media (max-width: 359px) { .me-per { flex-basis: 100%; margin-left: .2rem; } }

/* booking detail: umpire name + small WhatsApp icon (44px hit area, compact look) */
.ump-r { display: flex; align-items: center; justify-content: space-between; gap: .4rem; min-width: 0; }
.ump-n { min-width: 0; overflow-wrap: anywhere; }
.ump-wa { position: relative; flex: none; width: 28px; height: 28px; border: 0; border-radius: 8px; background: #f0fdf4; color: #16a34a; display: grid; place-items: center; font-size: .95rem; }
.ump-wa::after { content: ''; position: absolute; inset: -8px -6px; }
.ump-wa:active { transform: scale(.94); }
.ump-wa.off { background: #f1f5f9; color: #94a3b8; }

/* ===== Staff & Umpires: people list — compact rows, one status dot, WhatsApp + ⋮, Add beside search ===== */
.ppl-page .pay-top h2 { font-size: 1.3125rem; font-weight: 700; line-height: 1.2; }
.ppl-page .ctabs button { font-size: .9375rem; font-weight: 600; }
.ppl-sum { margin: -.15rem .1rem .45rem; font-size: .8125rem; color: var(--muted); font-weight: 500; }
.ppl-sr { display: flex; gap: .4rem; align-items: center; } .ppl-sr .ppl-search { flex: 1; min-width: 0; }
.ppl-sr .ppl-add { flex: none; height: 44px; padding: 0 .9rem; border-radius: 12px; font-size: .875rem; font-weight: 600; display: inline-flex; align-items: center; gap: .3rem; }
.ppl-search .tp-q { font-size: .9375rem; font-weight: 400; } .ppl-search .tp-q::placeholder { font-size: .875rem; color: #94a3b8; }
.ppl-chip { min-height: 34px; font-size: .8125rem; font-weight: 600; }
.pp-hit { padding: .55rem .6rem .55rem .7rem; gap: .65rem; align-items: center; }
.pp-av { width: 40px; height: 40px; }
.pp-name strong { font-size: .9375rem; font-weight: 600; }
.pp-st { font-size: .75rem; font-weight: 500; }
.pp-main { gap: 0; line-height: 1.35; }
.pp-main small { font-size: .8125rem; font-weight: 400; }
.pp-main small.pp-gr { color: var(--ink); font-weight: 500; } .pp-gr .bi { color: var(--brand); font-size: .8rem; } .pp-gr.warn, .pp-gr.warn .bi { color: var(--cancelled); }
.pp-acts { gap: .1rem; padding-right: .3rem; align-items: center; }
.pp-more, .pp-wa { position: relative; border: 0; background: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: var(--muted); font-size: 1.1rem; }
.pp-wa { background: #f0fdf4; color: #16a34a; font-size: .98rem; } .pp-wa.off { background: #f1f5f9; color: #94a3b8; }
.pp-more::after, .pp-wa::after { content: ''; position: absolute; inset: -5px -3px; }
.pp-more:active, .pp-wa:active { transform: scale(.94); }
.pp-acc { margin: 0 0 .4rem; padding: .5rem .7rem; border-radius: 10px; background: #f8fafc; font-size: .8125rem; color: var(--muted); line-height: 1.4; } .pp-acc .bi { color: var(--brand); margin-right: .25rem; }
.ppl-sec { font-size: .8125rem; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 575.98px) { #pplMore .modal-dialog { position: fixed; left: 0; right: 0; bottom: 0; margin: 0; max-width: none; align-items: flex-end; min-height: 0; } #pplMore .modal-content { border-radius: 20px 20px 0 0; } }
.pp-main small { white-space: normal; overflow-wrap: anywhere; }

/* Staff & Umpires tabs: same segmented control as Payments — solid blue active tab, quiet inactive, count chips */
.ppl-page .ctabs { background: #e6edf7; border-radius: 12px; padding: 3px; gap: 2px; margin: .1rem 0 .6rem; }
.ppl-page .ctabs button { display: flex; align-items: center; justify-content: center; gap: .35rem; min-height: 40px; border-radius: 10px; background: transparent; color: #475569; font-size: .875rem; font-weight: 600; box-shadow: none; }
.ppl-page .ctabs button i { font-size: .95rem; }
.ppl-page .ctabs button span { margin: 0; min-width: 20px; text-align: center; background: #fff; color: #475569; font-size: .75rem; font-weight: 600; line-height: 1.5; padding: 0 .35rem; }
.ppl-page .ctabs button[aria-selected="true"] { background: var(--brand-2); color: #fff; box-shadow: 0 1px 3px rgba(11, 94, 215, .35); }
.ppl-page .ctabs button[aria-selected="true"] span { background: rgba(255, 255, 255, .25); color: #fff; }

/* Month view: blue gradient panel like the Home hero. Phone = translucent day tiles + legend inside; desktop = white day cells on the gradient */
.pmonth { background: var(--grad); border-radius: 14px; padding: .55rem .45rem .3rem; color: #fff; }
.pmonth .pm-dows { color: rgba(255, 255, 255, .85); }
.pmonth .pm-grid .pd { background: rgba(255, 255, 255, .14); color: #fff; }
.pmonth .pm-grid .pd.we { background: rgba(255, 255, 255, .22); }
.pmonth .pip.free { background: rgba(255, 255, 255, .3); }
.pmonth .pip.match { background: #fff; }
.pmonth .pip.need { background: #ffa25c; }
.pmonth .pip.block { background: rgba(15, 23, 42, .45); }
.pmonth .pm-grid .pd.sel { background: #fff; color: var(--brand); box-shadow: 0 6px 14px rgba(8, 40, 100, .3); }
.pmonth .pm-grid .pd.sel .pip.free { background: #e2e8f0; }
.pmonth .pm-grid .pd.sel .pip.match { background: var(--brand-2); }
.pmonth .pm-grid .pd.sel .pip.need { background: var(--accent); }
.pmonth .pm-grid .pd.today:not(.sel) .pd-num { background: #fff; color: var(--brand); }
.pmonth .plegend, .pmonth .tlegend, .pmonth .lg-i { color: rgba(255, 255, 255, .92); }
.pmonth .lg-i[aria-expanded="true"] { color: #fff; }
.pmonth .tlegend .mt-ic { color: inherit; }
.pmonth .pm-grid .pd.past:not(.sel) { opacity: .38; background: rgba(255, 255, 255, .08); } /* past days fade back; selected past day stays readable */
.month .mday.past { background: #e9eef5; }
.month .mday.past .mday-num { opacity: .5; }
.month .mday.past .evs { opacity: .55; }
.month { background: var(--grad); border: 0; border-radius: 14px; padding: 0 .4rem .4rem; gap: 4px; }
.month .dow { background: transparent; border: 0; color: rgba(255, 255, 255, .9); }
.month .mday { background: #fff; border: 0; border-radius: 8px; }
.month .mday.we { background: #f7faf8; }
.month .mday.other { background: #eef3fb; }

/* Super admin › Ground Owners: compact rows (list) and an owner's page (details, ground limit, grounds) */
.vo-page { max-width: 1100px; }
.vo-search { margin-bottom: .6rem; }
.vo-list { display: grid; gap: .5rem; }
@media (min-width: 992px) { .vo-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.vo-row { display: flex; align-items: center; gap: .65rem; min-width: 0; padding: .65rem .75rem; border-radius: 14px; background: var(--card); box-shadow: 0 1px 3px rgba(15, 23, 42, .06); color: var(--ink); text-decoration: none; }
.vo-row:hover { background: #f8fbff; color: var(--ink); }
.vo-row > .bi { flex: none; color: var(--muted); }
.vo-main { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; line-height: 1.3; }
.vo-main strong { max-width: 100%; font-size: .9375rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vo-main small { max-width: 100%; font-size: .8125rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vo-side { flex: none; display: flex; flex-direction: column; text-align: right; line-height: 1.25; }
.vo-side small { font-size: .75rem; color: var(--muted); }
.vo-use { font-size: .9375rem; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink); }
.vo-use.full, .vo-note.full { color: var(--pending); }
.vo-use.over, .vo-note.over { color: var(--cancelled); }
.vo-st { display: inline-flex; align-items: center; gap: .3rem; font-size: .75rem; font-weight: 500; color: var(--muted); white-space: nowrap; }
.vo-st .dot { width: 7px; height: 7px; border-radius: 50%; background: #94a3b8; }
.vo-st.on { color: var(--free); } .vo-st.on .dot { background: var(--free); }
.vo-st.wait { color: var(--pending); } .vo-st.wait .dot { background: #eab308; }
.vo-pager { display: flex; justify-content: space-between; align-items: center; margin-top: .75rem; font-size: .8125rem; color: var(--muted); }
.vo-back { display: inline-block; margin-bottom: .3rem; font-size: .875rem; font-weight: 500; text-decoration: none; }
.vo-card { margin-bottom: .65rem; padding: .8rem .9rem; border-radius: 14px; background: var(--card); box-shadow: 0 1px 3px rgba(15, 23, 42, .06); }
.vo-h { margin: 0 0 .5rem; font-size: .9375rem; font-weight: 600; }
.vo-hrow { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; }
.vo-dl { display: grid; grid-template-columns: 5.25rem minmax(0, 1fr); gap: .35rem .75rem; margin: 0; font-size: .875rem; }
.vo-dl dt { font-size: .8125rem; font-weight: 400; color: var(--muted); }
.vo-dl dd { margin: 0; overflow-wrap: anywhere; }
.vo-acts { display: flex; gap: .5rem; margin-top: .7rem; }
.vo-limit { display: grid; gap: .5rem; }
.vo-lrow { display: flex; justify-content: space-between; align-items: center; gap: .75rem; font-size: .875rem; }
.vo-lrow > span, .vo-lrow > label { color: var(--muted); margin: 0; }
.vo-lrow select { width: 5.5rem; }
@media (max-width: 991.98px) { .vo-lrow select { font-size: 16px; } } /* iOS zooms into smaller selects */
.vo-note { margin: 0; font-size: .8125rem; font-weight: 500; color: var(--free); }
.vo-warn { margin: 0; padding: .5rem .65rem; border-radius: 10px; background: var(--pending-bg); color: #854d0e; font-size: .8125rem; }
.vo-warn[hidden] { display: none; }
.vo-limit .btn { justify-self: start; }
.vo-grounds { margin: 0; padding: 0; list-style: none; }
.vo-grounds li { display: flex; justify-content: space-between; align-items: center; gap: .75rem; padding: .5rem 0; border-top: 1px solid var(--line); }
.vo-grounds li:first-child { border-top: 0; padding-top: 0; }
.vo-grounds strong { display: block; font-size: .9375rem; font-weight: 600; }
.vo-grounds small { display: block; font-size: .8125rem; color: var(--muted); }
.vo-empty { margin: 0; font-size: .8125rem; color: var(--muted); }
.vo-empty strong { display: block; font-size: .9375rem; color: var(--ink); }
.gd-lim.full { color: var(--pending); } .gd-lim.over { color: var(--cancelled); }
.ppl-add.is-off { opacity: .55; }
.vo-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0 .3rem; font-size: .75rem; color: var(--muted); }
.vo-meta .vo-note { font-size: .75rem; color: var(--muted); }
.vo-meta .vo-note.full { color: var(--pending); } .vo-meta .vo-note.over { color: var(--cancelled); }

/* Super admin › Billing: monthly platform payments. Pending rows carry the action; paid rows are quieter. */
.bill-page { max-width: 900px; }
.bill-page .pay-top { flex-wrap: wrap; gap: .5rem; }
.bill-month { flex: none; }
.bill-search { margin-bottom: .6rem; }
.bill-list { display: grid; gap: .45rem; }
.bill-row { display: flex; align-items: center; gap: .65rem; min-width: 0; padding: .6rem .7rem .6rem .8rem; border-radius: 14px; background: var(--card); box-shadow: 0 1px 3px rgba(15, 23, 42, .06); }
.bill-main { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.35; }
.bill-main strong { font-size: .9375rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bill-main strong em { font-style: normal; font-size: .6875rem; font-weight: 600; color: var(--muted); background: var(--bg); border-radius: 99px; padding: 0 .4rem; vertical-align: 1px; }
.bill-main small { font-size: .8125rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bill-pay { flex: none; min-height: 36px; font-weight: 600; }
.bill-row.paid { background: transparent; box-shadow: none; border-bottom: 1px solid var(--line); border-radius: 0; padding-left: .2rem; }
.bill-row.paid .bill-main strong { font-weight: 500; }
.bill-ok { color: var(--free) !important; }
.bill-more { position: relative; flex: none; width: 36px; height: 36px; border: 0; border-radius: 50%; background: none; color: var(--muted); }
.bill-more:hover { background: var(--bg); }
.bill-load { justify-self: center; margin-top: .3rem; }
.bill-empty { margin: .5rem 0; padding: 1rem; border-radius: 14px; background: var(--card); text-align: center; font-size: .875rem; color: var(--muted); }
.comm-btn.go { border: 0; background: var(--brand-2); color: #fff; }
.comm-btn.go:hover { background: var(--brand); }

.bill-month select { max-width: none; } /* the month name stays whole on 320px phones */

/* Ground owner's monthly platform-payment reminder under the top bar: one slim line, the text runs right → left in a loop
   (two copies, track moves −50%, so it joins seamlessly). Clipped to the banner, so the page never gets wider. */
.pay-ticker { display: flex; align-items: center; gap: .5rem; min-width: 0; overflow: hidden; padding: .3rem .75rem; background: #fff4e8; border-bottom: 1px solid #ffd9b8; color: #9a3412; font-size: .8125rem; font-weight: 500; line-height: 18px; }
.pt-ic { flex: none; font-size: .875rem; }
.pt-win { flex: 1; min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12px, #000 calc(100% - 12px), transparent); mask-image: linear-gradient(90deg, transparent, #000 12px, #000 calc(100% - 12px), transparent); }
.pt-track { display: flex; width: max-content; animation: pt-run 32s linear infinite; }
.pt-track span { padding-right: 3rem; white-space: nowrap; }
.pay-ticker:hover .pt-track, .pay-ticker.paused .pt-track { animation-play-state: paused; }
.pt-pause { position: relative; flex: none; width: 28px; height: 28px; margin: -4px -6px -4px 0; border: 0; border-radius: 50%; background: none; color: inherit; display: grid; place-items: center; font-size: .95rem; }
.pt-pause:hover, .pt-pause:focus-visible { background: rgba(154, 52, 18, .1); }
@keyframes pt-run { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .pt-win { -webkit-mask-image: none; mask-image: none; }
  .pt-track { width: auto; animation: none; }
  .pt-track span { white-space: normal; padding: 0; }
  .pt-track span + span { display: none; }
}

/* ---------- New booking, layout B2: fee + refreshment live on each team; slots and match type as chips; extras folded ---------- */
.bk-modal .bk-trow { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .35rem; min-height: 30px; }
.bk-modal .bk-trow .bk-sub { margin: 0; }

.bk-money { display: flex; flex-wrap: wrap; gap: .4rem .6rem; margin-top: .45rem; }
.bk-money.d-none { display: none; }

.bk-modal .bk-vs { margin: .55rem 0; }
.bk-modal .fee-total { margin-top: .6rem; padding-top: .5rem; border-top: 1px dashed var(--line); }
.bk-modal .fee-none { margin-top: .5rem; }
/* When: one scrolling row of time chips (taken = struck through) */
.bk-modal .bk-date { margin-bottom: .5rem; }
.bk-modal .bk-slots { display: flex; gap: .4rem; overflow-x: auto; scrollbar-width: none; padding: 2px; margin: -2px; }
.bk-modal .bk-slots::-webkit-scrollbar { display: none; }
.bk-modal .slot-card { flex: none; min-height: 36px; padding: 0 .8rem; border-radius: 99px; flex-direction: row; align-items: center; justify-content: center; gap: .3rem; }
.bk-modal .slot-card strong { font-size: .875rem; font-weight: 600; white-space: nowrap; }
.bk-modal .slot-card small { display: none; }
.bk-modal .slot-card .slot-state { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } /* read out, not shown */
.bk-modal .slot-card.taken strong, .bk-modal .slot-card.blocked strong { text-decoration: line-through; font-weight: 500; }
.bk-modal .slot-card.taken { color: var(--cancelled); }
.bk-modal .slot-card.sel { box-shadow: none; color: var(--brand); }
.bk-modal .slot-card.sel strong::before { content: '✓ '; }
/* Match type as chips */
.bk-modal .bk-types { display: flex; flex-wrap: wrap; gap: .4rem; }
.bk-modal .bk-type { flex: 1 1 auto; flex-direction: row; min-height: 34px; padding: 0 .5rem; border-radius: 99px; gap: .3rem; font-size: .8125rem; white-space: nowrap; }
.bk-modal .bk-type .mt-ic { font-size: .9rem; }
.bk-modal .btn-check:checked + .bk-type { box-shadow: none; }
/* Umpires, trophies & diesel: one folded row until needed */

/* Teams & fees, option 1: each team = one tile (name + ⋮ menu) and a 50/50 money row: Match fee | Refreshment */
.bk-modal .bk-side { min-width: 0; }
.bk-modal .bk-captain { display: flex; align-items: center; gap: .65rem; margin: 0; padding: .55rem .5rem .55rem .65rem; border-radius: 12px; border: 1px solid var(--line); background: #f8fafc; }
.bk-modal .bk-captain.d-none { display: none; }
.bk-modal .bk-captain strong { font-size: .9375rem; font-weight: 600; }
.bk-modal .bk-captain small { display: block; font-size: .8125rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bk-modal .bk-captain small a { color: inherit; text-decoration: none; }
.bk-modal #oppChosen .bk-avatar { background: #fff1e6; }
.bk-tmenu { flex: none; }
.bk-dots { position: relative; width: 36px; height: 36px; border: 0; border-radius: 50%; background: none; color: var(--muted); display: grid; place-items: center; }
.bk-dots:hover, .bk-dots[aria-expanded="true"] { background: #e2e8f0; color: var(--ink); }
.bk-tmenu .dropdown-item { display: flex; align-items: center; gap: .5rem; padding: .55rem .9rem; }
.bk-modal .bk-money { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: .5rem; margin-top: .55rem; }
.bk-modal .bk-money.d-none { display: none; }
.bk-mbox { display: flex; flex-direction: column; gap: .25rem; min-width: 0; margin: 0; }
.bk-mlab { font-size: .75rem; font-weight: 500; color: var(--muted); }
.bk-mbox .input-group { flex-wrap: nowrap; }
.bk-mbox .input-group-text { padding: 0 .55rem; font-size: .8125rem; }
.bk-mbox .form-control { min-width: 0; min-height: 40px !important; }
.bk-rtog { display: flex; align-items: center; justify-content: space-between; gap: .4rem; height: 40px; margin: 0; padding: 0 .6rem; border: 1px solid var(--line); border-radius: 10px; background: var(--card); font-size: .8125rem; color: var(--ink); cursor: pointer; white-space: nowrap; overflow: hidden; }
.bk-rtog.d-none { display: none; }
.bk-sw { flex: none; position: relative; width: 32px; height: 18px; border-radius: 99px; background: #cbd5e1; transition: background .15s; }
.bk-sw::after { content: ''; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: left .15s; }
.bk-rtog.on { border-color: #fed7aa; background: #fff7ed; color: #9a3412; }
.bk-rtog.on .bk-sw { background: var(--accent); } .bk-rtog.on .bk-sw::after { left: 16px; }
.bk-mbox .ref-cost.d-none { display: none; }
.bk-mbox .ref-cost .input-group-text { background: #fff7ed; border-color: #fed7aa; color: #9a3412; }
.bk-mbox .ref-cost .form-control { border-color: #fed7aa; }
.bk-rx { cursor: pointer; font-weight: 600; }
.bk-modal .btn-check:focus-visible + .btn-check + .bk-rtog, .bk-modal .btn-check:focus-visible + .bk-rtog { outline: 2px solid var(--brand-2); outline-offset: 2px; }
.bk-modal .fee-total small { display: block; font-size: .75rem; font-weight: 400; color: var(--muted); }
.bk-modal .bk-trow { margin-bottom: .3rem; min-height: 0; }
.bk-mbox .ref-cost { flex: none; height: 40px; } /* the old .ref-cost flex-basis (130px) would become height in this column */

/* Match (option 2): type as one segmented bar, balls as a 5-up grid of real-looking balls, streaming as a switch row */
.bk-modal .bk-types { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; padding: 3px; border-radius: 12px; background: #f1f5f9; }
.bk-modal .bk-type { min-height: 36px; padding: 0 .25rem; border: 0; border-radius: 9px; background: transparent; color: #475569; font-size: .8125rem; font-weight: 500; justify-content: center; }
.bk-modal .btn-check:checked + .bk-type { background: #fff; color: var(--brand); box-shadow: 0 1px 3px rgba(15, 23, 42, .12); }
.bk-modal .bk-label { margin: .75rem 0 .35rem; font-size: .75rem; font-weight: 500; }
.bk-modal .ball-pick { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .35rem; margin: 0; padding: 0; overflow: visible; }
.bk-modal .ball-opt { flex-direction: column; justify-content: center; gap: .3rem; min-height: 0; padding: .5rem .1rem .4rem; border-radius: 12px; text-align: center; font-size: .6875rem; line-height: 1.15; color: #475569; }
.bk-modal .ball-opt .ball { width: 30px; height: 30px; filter: drop-shadow(0 1px 1.5px rgba(15, 23, 42, .25)); }
.bk-modal .btn-check:checked + .ball-opt { box-shadow: none; font-weight: 600; color: var(--brand); }
.bk-modal .bk-stream { margin-top: .6rem; padding: .55rem .7rem; border-radius: 12px; font-size: .875rem; }

/* Match costs ledger: one line per item — icon · name/role · amount (one right-hand column) · ✕ */
.lg-row { display: flex; align-items: center; gap: .6rem; min-height: 52px; margin: 0; padding: .4rem 0; border-bottom: 1px solid #f1f5f9; }
.lg-row.d-none { display: none; }
.lg-av { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #f1f5f9; font-size: 1rem; }
.lg-t { flex: 1; min-width: 0; line-height: 1.3; }
.lg-t strong { display: block; font-size: .9375rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lg-t small { display: block; font-size: .75rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lg-amt { flex: none; width: 104px; }
.bk-modal .lg-amt.form-select, .bk-modal .lg-amt .form-control { min-height: 38px !important; font-size: .9375rem; }
.lg-amt.input-group { flex-wrap: nowrap; } .lg-amt .input-group-text { padding: 0 .5rem; }
.up-fee.d-none { display: none; }
.lg-amt.form-select:has(option[value=""]:checked) { border-color: #fdba74; background-color: #fff7ed; color: #9a3412; } /* fee still to pick */
.lg-x { position: relative; flex: none; width: 30px; height: 30px; border: 0; border-radius: 50%; background: none; color: var(--muted); display: grid; place-items: center; }
button.lg-x:hover { background: #fee2e2; color: var(--cancelled); }
.lg-ump .up-search { margin: .4rem 0 .3rem; }
.lg-add { display: flex; align-items: center; justify-content: center; gap: .35rem; width: 100%; min-height: 40px; margin: .45rem 0 .2rem; border: 1px dashed #cbd5e1; border-radius: 10px; background: none; color: var(--brand); font-size: .875rem; font-weight: 500; }
.lg-add.d-none { display: none; }
.lg-step { display: flex; align-items: center; height: 38px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.lg-step button { width: 34px; height: 100%; border: 0; background: #f8fafc; color: var(--brand); font-size: 1.1rem; font-weight: 500; }
.lg-step button:active { background: #e8f2ff; }
.lg-step output { flex: 1; text-align: center; font-weight: 600; border-left: 1px solid var(--line); border-right: 1px solid var(--line); line-height: 36px; }
.lg-total { display: flex; justify-content: space-between; align-items: baseline; gap: .75rem; margin-top: .6rem; font-size: .875rem; font-weight: 600; }
.lg-total small { display: block; font-size: .75rem; font-weight: 400; color: var(--muted); }
.lg-total strong { font-size: 1rem; }
@media (max-width: 359px) { .bk-modal .bk-type .mt-ic { display: none; } } /* 320px: the three match types fit as words */

/* ---------- Global toasts: compact, tinted by meaning, top centre under the top bar (safe area aware), max 3 stacked ---------- */
.tst-wrap { position: fixed; z-index: 1090; top: calc(env(safe-area-inset-top, 0px) + 62px); left: 50%; transform: translateX(-50%);
  width: calc(100% - 24px); max-width: 420px; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
@media (min-width: 992px) { .tst-wrap { top: 72px; max-width: 400px; } }
.tst { --c: var(--brand); --bg: #eff6ff; --bd: #bfdbfe; position: relative; overflow: hidden; display: flex; align-items: flex-start; gap: 10px;
  min-height: 48px; padding: 12px 8px 12px 14px; border: 1px solid var(--bd); border-radius: 12px; background: var(--bg); color: var(--ink);
  box-shadow: 0 8px 24px rgba(15, 23, 42, .12), 0 1px 2px rgba(15, 23, 42, .06); font-size: .875rem; font-weight: 500; line-height: 1.4;
  pointer-events: auto; animation: tst-in .22s cubic-bezier(.2, .8, .2, 1) both; }
.tst.out { animation: tst-out .18s ease-in forwards; }
.tst > .bi:first-child { flex: none; color: var(--c); font-size: 1.125rem; line-height: 1.25; }
.tst > .spinner-border { flex: none; width: 18px; height: 18px; margin-top: 1px; border-width: 2px; color: var(--c); }
.tst-m { flex: 1; min-width: 0; padding-top: 1px; overflow-wrap: anywhere; }
.tst-x { flex: none; width: 28px; height: 28px; margin: -3px 0; border: 0; border-radius: 8px; background: none; color: var(--muted); display: grid; place-items: center; font-size: .8rem; }
.tst-x:hover { background: rgba(15, 23, 42, .06); color: var(--ink); }
.tst.run::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--c); opacity: .3; transform-origin: left;
  animation: tst-bar var(--tst-ms) linear forwards; } /* quiet "time left" line */
.tst-success { --c: var(--free); --bg: #f0fdf4; --bd: #bbf7d0; }
.tst-error { --c: var(--cancelled); --bg: #fef2f2; --bd: #fecaca; }
.tst-warning { --c: #c2410c; --bg: #fff7ed; --bd: #fed7aa; }
.tst-info, .tst-loading { --c: var(--brand); --bg: #eff6ff; --bd: #bfdbfe; }
.tst-success > .bi:first-child { animation: tst-pop .28s .08s ease-out both; }
@keyframes tst-in { from { opacity: 0; transform: translateY(-6px) scale(.98); } }
@keyframes tst-out { to { opacity: 0; transform: translateY(-6px) scale(.98); } }
@keyframes tst-pop { from { transform: scale(.6); opacity: 0; } }
@keyframes tst-bar { to { transform: scaleX(0); } }
@media (prefers-reduced-motion: reduce) {
  .tst, .tst.out, .tst-success > .bi:first-child { animation-duration: .01ms; }
  .tst.run::after { display: none; }
}

/* QA-030: 44px tap areas around the small round buttons, without changing how they look */
.lg-x::after, .bk-dots::after, .bill-more::after, .pt-pause::after { content: ''; position: absolute; inset: -7px; }
.bk-dots::after, .bill-more::after { inset: -4px; }
/* QA-032: super admin Home tiles as a 2×2 grid on phones (not the sideways strip) */
@media (max-width: 575.98px) { .stats.sa-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; overflow: visible; } }
/* QA-033: toasts start below the monthly payment banner when it is showing */
body:has(.pay-ticker) .tst-wrap { top: calc(env(safe-area-inset-top, 0px) + 92px); }
@media (min-width: 992px) { body:has(.pay-ticker) .tst-wrap { top: 102px; } }
/* QA-034: keep the booking title on one line on small phones */
@media (max-width: 359.98px) { #bookingModalTitle { font-size: 1rem; white-space: nowrap; } .bk-ground select.form-select { min-width: 82px; } #bookingModal .modal-header { gap: .35rem; } #bkPitch { margin-left: 0; } }
@media (max-width: 399.98px) { /* phones: Pitch shows its icon only (it keeps its aria-label), so the ground name fits */
  #bkPitch { font-size: 0; gap: 0; } #bkPitch i { font-size: 1rem; }
  .bk-ground select { min-width: 96px; }
  .bk-tword { display: none; }
  #bookingModalTitle { flex: 0 1 auto; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; } /* "Edit booking #8558" gives way, never the ✕ */
}
