/* =========================================================
   Kyleu staff admin: calm, warm and easy to scan
   ========================================================= */
:root {
  --bg: #f6f1e8;
  --card: #fffdf9;
  --ink: #2a1b12;
  --ink-2: #5d4838;
  --muted: #8a7563;
  --line: #eadfce;
  --line-2: #f2eadd;
  --side: #2a1b12;
  --side-2: #3a2a1e;
  --sun: #e8731c;
  --sun-d: #c2590f;
  --ok: #2f7a3a;   --ok-bg: #e5f2e3;
  --warn: #a65d00; --warn-bg: #fdf0d9;
  --bad: #b23a2a;  --bad-bg: #fbe5e0;
  --info: #1f6aa5; --info-bg: #e3eff8;
  --card-c: #d2601a; --eft-c: #1f78b8;
  --r: 14px; --r-sm: 9px;
  --sh: 0 1px 2px rgba(42, 27, 18, .05), 0 6px 20px -12px rgba(42, 27, 18, .25);
  --side-w: 236px;
  --font: 'Nunito Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Fraunces', Georgia, serif;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
body.lock { overflow: hidden; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--sun-d); }
h1, h2, h3, h4, h5 { margin: 0; line-height: 1.2; }
h1 { font: 700 1.75rem/1.15 var(--display); letter-spacing: -.01em; }
h2 { font: 700 1.35rem/1.2 var(--display); }
h3 { font-size: 1rem; font-weight: 800; }
h4 { font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
h5 { font-size: .8rem; font-weight: 800; margin: 16px 0 8px; }
p { margin: 0 0 .8em; }
small { font-size: .78rem; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.ok-t { color: var(--ok); } .warn-t { color: var(--warn); } .bad-t { color: var(--bad); } .info-t { color: var(--info); }
:focus-visible { outline: 3px solid #f4b740; outline-offset: 2px; border-radius: 6px; }
.ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.boot { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 12px; color: var(--muted); }

/* ---------- buttons, inputs ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 0; border-radius: 10px; background: var(--sun); color: #fff; font-weight: 800; padding: 10px 16px; font-size: .9rem; white-space: nowrap; transition: background .15s, transform .1s; text-decoration: none; }
.btn:hover { background: var(--sun-d); }
.btn:active { transform: translateY(1px); }
.btn.green { background: var(--ok); } .btn.green:hover { background: #24622d; }
.btn.blue { background: var(--eft-c); } .btn.blue:hover { background: #17619a; }
.btn.danger { background: var(--bad); }
.btn.ghost { background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn.ghost:hover { background: var(--line-2); }
.btn.danger-t { color: var(--bad); }
.btn.sm { padding: 7px 11px; font-size: .82rem; }
.btn.wide { width: 100%; padding: 13px; }
.icon-btn { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; border: 0; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); }
.icon-btn:hover { background: var(--line-2); }
.icon-btn.sm { width: 30px; height: 30px; }
.fld { display: grid; gap: 5px; margin-bottom: 12px; }
.fld > span, .fld-l { font-size: .78rem; font-weight: 800; color: var(--ink-2); }
.fld-l { display: block; margin-bottom: 6px; }
.fld input, .fld select, .fld textarea, .filters select, .ph-act select, .tbl select { width: 100%; border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 10px 12px; font-size: .92rem; }
.fld textarea { resize: vertical; line-height: 1.5; }
.fld input:focus, .fld select:focus, .fld textarea:focus { outline: 0; border-color: var(--sun); box-shadow: 0 0 0 3px rgba(232, 115, 28, .18); }
.fld.inline { display: flex; align-items: center; gap: 8px; margin: 0; font-weight: 800; }
.fld.inline input { width: 80px; text-align: right; font-weight: 800; font-size: 1.1rem; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 12px; }
.search { position: relative; display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 11px; padding: 0 12px; color: var(--muted); }
.search input { border: 0; outline: 0; background: none; padding: 10px 0; width: 100%; color: var(--ink); }
.search:focus-within { border-color: var(--sun); box-shadow: 0 0 0 3px rgba(232, 115, 28, .15); }
.search.big input { padding: 14px 0; font-size: 1rem; }
.seg { display: inline-flex; background: var(--line-2); border-radius: 11px; padding: 3px; gap: 3px; margin-bottom: 12px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 8px; font-weight: 700; font-size: .88rem; cursor: pointer; color: var(--ink-2); }
.seg input:checked + span { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.seg input:focus-visible + span { outline: 3px solid #f4b740; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; margin: 12px 0; }
.check input { margin-top: 3px; accent-color: var(--sun); width: 17px; height: 17px; }
.hint { font-size: .84rem; color: var(--ink-2); min-height: 1.2em; }
.switch { display: inline-flex; align-items: center; gap: 9px; font-size: .82rem; font-weight: 700; cursor: pointer; }
.switch input { position: absolute; opacity: 0; }
.switch span { width: 36px; height: 21px; border-radius: 20px; background: #d7c9b5; position: relative; transition: background .2s; }
.switch span::after { content: ''; position: absolute; left: 3px; top: 3px; width: 15px; height: 15px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); }
.switch input:checked + span { background: var(--ok); }
.switch input:checked + span::after { transform: translateX(15px); }
.switch input:focus-visible + span { outline: 3px solid #f4b740; }

/* ---------- pills, chips, tags ---------- */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 8px; border-radius: 30px; font-size: .76rem; font-weight: 800; white-space: nowrap; background: var(--line-2); color: var(--ink-2); }
.pill i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill .ic { width: 13px; height: 13px; }
.pill.ok { background: var(--ok-bg); color: var(--ok); }
.pill.warn { background: var(--warn-bg); color: var(--warn); }
.pill.bad { background: var(--bad-bg); color: var(--bad); }
.pill.info { background: var(--info-bg); color: var(--info); }
.pill.muted { background: #efe9df; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -4px; padding: 2px 4px; }
.chips.scroll::-webkit-scrollbar { display: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--card); border-radius: 30px; padding: 7px 13px; font-size: .84rem; font-weight: 700; color: var(--ink); text-decoration: none; white-space: nowrap; }
.chip .ic { width: 15px; height: 15px; }
.chip span { color: var(--muted); font-weight: 800; }
.chip:hover { border-color: #d8c6ad; }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip.on span { color: #f4b740; }
.tag { display: inline-block; font-size: .72rem; font-weight: 800; padding: 2px 8px; border-radius: 6px; background: var(--line-2); color: var(--ink-2); margin: 0 4px 2px 0; }
.tag.ok { background: var(--ok-bg); color: var(--ok); }
.new { font-size: .66rem; font-weight: 900; text-transform: uppercase; letter-spacing: .05em; background: var(--sun); color: #fff; padding: 1px 6px; border-radius: 5px; vertical-align: 2px; }
.count { font-size: .8rem; font-weight: 800; color: var(--muted); background: var(--line-2); border-radius: 20px; padding: 1px 9px; }

/* ---------- login ---------- */
.login { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background: radial-gradient(ellipse at top, #3b2718, #1b110b 70%); }
.login-card { width: min(410px, 100%); background: var(--card); border-radius: 20px; padding: 32px 28px; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .6); text-align: center; }
.login-card img { margin: 0 auto 14px; display: block; }
.login-card h1 { margin-bottom: 4px; }
.login-card .fld { text-align: left; }
.login-card .btn.wide { margin-top: 4px; }
.or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .8rem; margin: 18px 0 12px; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.quick { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 16px; }
.quick .chip b { margin-right: 2px; }

/* ---------- layout ---------- */
.side { position: fixed; inset: 0 auto 0 0; width: var(--side-w); background: var(--side); color: #e9dccb; display: flex; flex-direction: column; z-index: 40; padding: 18px 12px; }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 18px; text-decoration: none; color: #fff; }
.brand img { width: 40px; height: 40px; border-radius: 50%; }
.brand b { display: block; font: 700 1.2rem/1 var(--display); }
.brand small { color: #b9a58f; font-size: .74rem; }
.side nav { display: grid; gap: 2px; overflow-y: auto; }
.side nav a, .side-f a, .side-f button { display: flex; align-items: center; gap: 11px; padding: 9px 11px; border-radius: 10px; color: #e2d3c0; text-decoration: none; font-weight: 700; font-size: .9rem; background: none; border: 0; width: 100%; text-align: left; }
.side nav a:hover, .side-f a:hover, .side-f button:hover { background: var(--side-2); color: #fff; }
.side nav a.on { background: var(--sun); color: #fff; }
.side nav a em, .bottom em { margin-left: auto; font-style: normal; font-size: .72rem; font-weight: 900; background: #f4b740; color: var(--ink); border-radius: 20px; min-width: 20px; padding: 1px 6px; text-align: center; }
.side nav a.on em { background: #fff; }
.side-f { margin-top: auto; border-top: 1px solid var(--side-2); padding-top: 10px; display: grid; gap: 2px; }
.main { margin-left: var(--side-w); min-height: 100vh; }
.top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 12px; padding: 12px 28px; background: rgba(246, 241, 232, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top-search { flex: 1; max-width: 460px; }
.sugg { position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--sh); padding: 6px; z-index: 5; }
.sugg button { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 8px 10px; border-radius: 8px; color: var(--ink); }
.sugg button:hover { background: var(--line-2); }
.sugg small { display: block; color: var(--muted); }
.sugg p { padding: 8px 10px; margin: 0; }
/* the small "Saving… / Saved" note in the top bar (live-admin.js tells admin.js, which paints it) */
.save-state { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 800; color: var(--muted); padding: 4px 10px; border-radius: 20px; white-space: nowrap; }
.save-state::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); flex: none; }
.save-state.saving::before { background: var(--warn); animation: save-pulse 1s ease-in-out infinite; }
.save-state.unsaved { color: var(--warn); background: var(--warn-bg); }
.save-state.unsaved::before { background: var(--warn); }
@keyframes save-pulse { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .save-state.saving::before { animation: none; } }
.me { display: flex; align-items: center; gap: 9px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--sun); color: #fff; display: grid; place-items: center; font-weight: 900; font-size: .85rem; flex: none; }
.me-t b { display: block; font-size: .88rem; line-height: 1.1; }
.me-t small { color: var(--muted); }
.menu-btn { display: none; }
main { padding: 24px 28px 60px; max-width: 1400px; outline: 0; }
.scrim { display: none; }
.bottom { display: none; }

/* ---------- page header ---------- */
.page-h, .hello { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.page-h p, .hello p { margin: 4px 0 0; }
.ph-act { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ph-act select { width: auto; }
.filters { display: flex; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.filters .search { flex: 1; min-width: 220px; }
.filters select { width: auto; }

/* ---------- cards ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; box-shadow: var(--sh); margin-bottom: 18px; min-width: 0; }
.card.flush { padding: 0; overflow: hidden; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.card-f { display: flex; flex-wrap: wrap; gap: 8px 20px; border-top: 1px solid var(--line-2); margin-top: 12px; padding-top: 12px; font-size: .84rem; color: var(--ink-2); }
.card-f span { display: inline-flex; align-items: center; gap: 6px; }
.card-f .ic { color: var(--sun); }
.cols { display: grid; grid-template-columns: 1.35fr 1fr; gap: 18px; align-items: start; }
.cols > .card { margin-bottom: 0; }
.cols + .cols, .cols + .card, .card + .cols, .kpis + .cols { margin-top: 18px; }
.empty { color: var(--muted); text-align: center; padding: 22px 10px; margin: 0; font-size: .9rem; }
.callout { background: var(--line-2); border-radius: 10px; padding: 12px 14px; font-size: .88rem; margin: 10px 0 14px; }
.callout.warn { background: var(--warn-bg); }
.note { display: flex; gap: 8px; align-items: flex-start; background: var(--warn-bg); color: #6b3d00; border-radius: 10px; padding: 10px 12px; font-size: .86rem; margin: 12px 0 0; }
.note .ic { margin-top: 1px; }
.demo-note { display: flex; gap: 8px; align-items: flex-start; color: var(--muted); font-size: .84rem; margin-top: 8px; }
.row-btns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }

/* ---------- KPI tiles ---------- */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 18px; }
.kpi { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; box-shadow: var(--sh); color: var(--ink); position: relative; overflow: hidden; }
button.kpi:hover { border-color: #dcc7aa; transform: translateY(-1px); }
button.kpi { transition: transform .15s, border-color .15s; }
.kpi::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--line); }
.kpi.ok::before { background: var(--ok); } .kpi.warn::before { background: #e3a13a; }
.kpi-l { font-size: .78rem; font-weight: 800; color: var(--muted); }
.kpi-v { font: 700 1.6rem/1.15 var(--display); }
.kpi-v small { font: 700 .95rem var(--font); color: var(--muted); }
.kpi-s { font-size: .78rem; color: var(--ink-2); }

/* ---------- dashboard ---------- */
.tabs { display: inline-flex; background: var(--line-2); border-radius: 10px; padding: 3px; }
.tabs button { border: 0; background: none; padding: 5px 11px; border-radius: 8px; font-weight: 700; font-size: .84rem; color: var(--ink-2); }
.tabs button span { color: var(--muted); font-weight: 800; margin-left: 2px; }
.tabs button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }
.brow { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; border: 0; background: none; padding: 10px 8px; border-radius: 10px; border-bottom: 1px solid var(--line-2); color: var(--ink); }
.brow:hover { background: var(--line-2); }
.brow-st { flex: none; width: 100px; font-weight: 800; font-size: .84rem; color: var(--ink-2); }
.brow-g { flex: 1; min-width: 0; }
.brow-g b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brow-g small { color: var(--muted); }
.row-act { display: inline-flex; align-items: center; gap: 5px; background: var(--ok); color: #fff; font-weight: 800; font-size: .8rem; padding: 6px 11px; border-radius: 9px; white-space: nowrap; }
.row-act:hover { background: #24622d; }
.row-act .ic { width: 15px; height: 15px; }
.attn { list-style: none; margin: 0; padding: 0; }
.attn button { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; border: 0; background: none; padding: 10px 6px; border-radius: 10px; font-size: .88rem; color: var(--ink); border-bottom: 1px solid var(--line-2); }
.attn button:hover { background: var(--line-2); }
.attn button > span:nth-child(2) { flex: 1; }
.attn .chev { color: var(--muted); width: 16px; }
.attn-i { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; flex: none; background: var(--line-2); color: var(--ink-2); }
.attn-i .ic { width: 17px; height: 17px; }
.attn-i.bad { background: var(--bad-bg); color: var(--bad); } .attn-i.warn { background: var(--warn-bg); color: var(--warn); } .attn-i.info { background: var(--info-bg); color: var(--info); }
.feed { list-style: none; margin: 0; padding: 0; }
.feed li { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 9px 4px; border-bottom: 1px solid var(--line-2); font-size: .87rem; flex-wrap: wrap; }
.feed li[data-open] { cursor: pointer; border-radius: 8px; }
.feed li[data-open]:hover { background: var(--line-2); }
.feed small { color: var(--muted); }

/* ---------- charts ---------- */
.chart { overflow-x: auto; }
.chart svg { display: block; width: 100%; min-width: min(var(--w), 640px); height: auto; overflow: visible; }
.chart .tick line { stroke: var(--line); stroke-width: 1; }
.chart text { font: 600 11px var(--font); fill: var(--muted); }
.chart .xl.hl { fill: var(--ink); font-weight: 900; }
.chart .hit { fill: transparent; }
.chart .col:hover .hit { fill: rgba(42, 27, 18, .05); }
.tip { position: fixed; z-index: 90; pointer-events: none; background: var(--ink); color: #fff; font-size: .8rem; font-weight: 700; padding: 6px 10px; border-radius: 8px; max-width: 260px; box-shadow: 0 6px 20px rgba(0, 0, 0, .25); }
.key { display: flex; gap: 14px; font-size: .8rem; font-weight: 700; color: var(--ink-2); }
.key span, .legend span { display: inline-flex; align-items: center; gap: 6px; }
.key i { width: 12px; height: 12px; border-radius: 3px; }
.hbars { display: grid; gap: 12px; }
.hb { display: grid; grid-template-columns: 110px 1fr 90px; align-items: center; gap: 10px; font-size: .86rem; }
.hb-l { font-weight: 700; }
.hb-track { height: 14px; background: var(--line-2); border-radius: 4px; overflow: hidden; }
.hb-bar { display: block; height: 100%; background: var(--card-c); border-radius: 0 4px 4px 0; }
.hb-v { text-align: right; font-weight: 800; color: var(--ink-2); }
.tbl-view { margin-top: 10px; font-size: .86rem; }
.tbl-view summary { cursor: pointer; color: var(--sun-d); font-weight: 700; }

/* ---------- tables ---------- */
.tbl { width: 100%; border-collapse: collapse; font-size: .88rem; }
.tbl th { text-align: left; font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 11px 14px; background: #faf5ed; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 11px 14px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.tbl td small { display: block; color: var(--muted); }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr[data-open], .tbl tbody tr[data-guest] { cursor: pointer; }
.tbl tbody tr[data-open]:hover, .tbl tbody tr[data-guest]:hover { background: #fbf6ee; }
.tbl .r { text-align: right; white-space: nowrap; }
.tbl td[data-l="Dates"] { white-space: nowrap; }
.eft-amt small { white-space: nowrap; }
.eft-due .pop-line { flex-basis: 100%; }
.tbl.perm td, .tbl.perm th { text-align: center; } .tbl.perm td:first-child, .tbl.perm th:first-child { text-align: left; }
.card:not(.flush) > .tbl th { background: none; padding-inline: 6px; }
.card:not(.flush) > .tbl td { padding-inline: 6px; }
.mth { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.mth i { width: 9px; height: 9px; border-radius: 3px; background: var(--muted); }
.mth.pm-card i { background: var(--card-c); } .mth.pm-eft i { background: var(--eft-c); }

/* ---------- drawer ---------- */
#drawer { position: fixed; inset: 0; z-index: 60; }
.d-back { position: absolute; inset: 0; background: rgba(27, 17, 11, .35); opacity: 0; transition: opacity .2s; }
.d-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(520px, 100%); background: var(--bg); overflow-y: auto; transform: translateX(100%); transition: transform .25s cubic-bezier(.2, .8, .2, 1); box-shadow: -20px 0 50px -20px rgba(0, 0, 0, .35); overscroll-behavior: contain; }
#drawer.on .d-back { opacity: 1; } #drawer.on .d-panel { transform: none; }
.d-head { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 18px 20px 14px; background: var(--card); border-bottom: 1px solid var(--line); }
.d-head h2 { margin: 2px 0 8px; }
.d-body { padding: 16px 20px 40px; }
.d-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.d-sec { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; margin-bottom: 14px; }
.guest-line { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.guest-line .avatar { width: 42px; height: 42px; background: var(--ink); }
.d-sec .chips { margin: 0; }
.kv { display: grid; grid-template-columns: 90px 1fr; gap: 7px 12px; margin: 0; font-size: .9rem; }
.kv dt { color: var(--muted); font-weight: 700; }
.kv dd { margin: 0; }
.lines .ln, .cart .ln { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: .9rem; border-bottom: 1px dashed var(--line); align-items: center; }
.lines .ln.sub { color: var(--ink-2); font-size: .85rem; }
.lines .ln > span:last-child, .cart .ln > span:last-child { white-space: nowrap; }   /* an amount never breaks over two lines */
.lines .ln s, .price-pair s { color: var(--muted); }
.lines .ln.tot, .cart .ln.tot { font-weight: 900; border-bottom: 1px solid var(--line); }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: flex; gap: 12px; padding: 7px 0; font-size: .88rem; }
.timeline .dot { width: 10px; height: 10px; border-radius: 3px; margin-top: 6px; flex: none; background: var(--muted); }
.timeline .dot.pm-card { background: var(--card-c); } .timeline .dot.pm-eft { background: var(--eft-c); } .timeline .dot.pm-cash { background: var(--ok); } .timeline .dot.bad { background: var(--bad); }
.notes { list-style: none; margin: 0 0 12px; padding: 0; }
.notes li { background: #fdf8ef; border-radius: 10px; padding: 9px 12px; margin-bottom: 8px; font-size: .88rem; }
.notes p { margin: 0 0 2px; }
.note-form { display: flex; gap: 8px; }
.note-form input { flex: 1; border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; background: #fff; min-width: 0; }

/* ---------- modal ---------- */
#modal { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 16px; }
.m-back { position: absolute; inset: 0; background: rgba(27, 17, 11, .45); }
.m-card { position: relative; width: min(460px, 100%); max-height: calc(100vh - 32px); display: flex; flex-direction: column; background: var(--card); border-radius: 18px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .5); animation: pop .2s cubic-bezier(.2, .8, .2, 1); }
.m-card.wide { width: min(620px, 100%); }
@keyframes pop { from { transform: translateY(10px) scale(.98); opacity: 0; } }
.m-card header { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px 6px; }
.m-card header h3 { font: 700 1.25rem var(--display); }
.m-body { padding: 8px 20px 12px; overflow-y: auto; }
.m-card footer { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 20px 18px; border-top: 1px solid var(--line-2); }
.quote-box { background: #faf5ed; border-radius: 12px; padding: 12px 14px; display: grid; gap: 6px; }
.qb-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-weight: 700; }
.price-pair b { font: 700 1.3rem var(--display); }
.price-pair small { color: var(--muted); }
.mini-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0 4px; }
.mini-kpis div { background: #faf5ed; border-radius: 10px; padding: 10px; text-align: center; }
.mini-kpis b { display: block; font: 700 1.2rem var(--display); }
.mini-kpis span { font-size: .76rem; color: var(--muted); }
.list .brow { padding-inline: 4px; }

/* ---------- bookings / EFT ---------- */
.match { margin-bottom: 22px; }
.match [data-match-out] { margin-top: 8px; }
.eft-sec { margin-bottom: 24px; }
.eft-sec h3 { display: flex; align-items: center; gap: 8px; font: 700 1.15rem var(--display); }
.eft-sec > p { margin: 4px 0 12px; }
.eft-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 12px; }
.eft-card { background: var(--card); border: 1px solid var(--line); border-left: 4px solid #e3a13a; border-radius: var(--r); padding: 14px 16px; box-shadow: var(--sh); }
.eft-card.pop { border-left-color: var(--info); } .eft-card.over { border-left-color: var(--bad); } .eft-card.bal { border-left-color: var(--eft-c); }
.eft-top { display: flex; justify-content: space-between; gap: 12px; cursor: pointer; }
.eft-top small { display: block; color: var(--muted); }
.eft-amt { text-align: right; }
.eft-amt b { font: 700 1.3rem var(--display); }
.eft-due { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: .84rem; margin: 10px 0; font-weight: 700; color: var(--ink-2); }
.eft-due .ic { width: 15px; height: 15px; }
.eft-due span { display: inline-flex; align-items: center; gap: 4px; }
.eft-act { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- calendar ---------- */
.legend { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: .8rem; font-weight: 700; color: var(--ink-2); margin-bottom: 12px; }
.lg { width: 14px; height: 10px; border-radius: 3px; display: inline-block; }
.lg.info, .cal-bar.info { background: #cfe2f2; } .lg.ok, .cal-bar.ok { background: #cfe6cb; } .lg.warn, .cal-bar.warn { background: #f8dfae; } .lg.bad, .cal-bar.bad { background: #f5c7bd; }
.lg.block, .cal-bar.block { background: repeating-linear-gradient(135deg, #e6dccd 0 5px, #f3ece1 5px 10px); }
/* the calendar scrolls sideways (it needs both classes to win over .card.flush, which hides overflow) */
.card.flush.cal-wrap, .cal-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.cal { --cw: 46px; --nw: 130px; min-width: calc(var(--nw) + var(--days) * var(--cw)); }
.cal-row { display: grid; grid-template-columns: var(--nw) repeat(var(--days), minmax(var(--cw), 1fr)); position: relative; border-bottom: 1px solid var(--line-2); min-height: 42px; }
.cal-row > * { grid-row: 1; }
.cal-name { grid-column: 1; position: sticky; left: 0; z-index: 3; background: var(--card); padding: 6px 12px; border-right: 1px solid var(--line); display: flex; flex-direction: column; justify-content: center; font-size: .84rem; line-height: 1.2; }
.cal-name small { color: var(--muted); font-size: .72rem; }
.cal-head { position: sticky; top: 0; z-index: 4; background: #faf5ed; min-height: 48px; }
.cal-head .cal-name { background: #faf5ed; font-weight: 800; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.cal-day { display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: .72rem; color: var(--muted); border-left: 1px solid var(--line-2); }
.cal-day b { font-size: .95rem; color: var(--ink); }
.cal-day.wk { background: #f3eadc; }
.cal-day.today { background: var(--sun); color: #fff; }
.cal-day.today b { color: #fff; }
.cal-cell { border: 0; border-left: 1px solid var(--line-2); background: none; padding: 0; }
.cal-cell.wk { background: #fbf6ee; }
.cal-cell.today { background: #fdeedd; }
.cal-cell:hover { background: #f6e6d1; }
.cal-group { font-size: .72rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); padding: 10px 12px 6px; background: var(--line-2); position: sticky; left: 0; }
.cal-bar { position: relative; z-index: 1; align-self: center; height: 28px; margin: 0 calc(var(--cw) / 2 - 2px); border: 0; border-radius: 8px; color: var(--ink); font-size: .76rem; font-weight: 800; text-align: left; padding: 0 9px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; display: flex; align-items: center; box-shadow: inset 0 0 0 1px rgba(42, 27, 18, .08); }
.cal-bar span { overflow: hidden; text-overflow: ellipsis; }
.cal-bar.cut-l { margin-left: 0; border-top-left-radius: 0; border-bottom-left-radius: 0; }
.cal-bar.cut-r { margin-right: 0; border-top-right-radius: 0; border-bottom-right-radius: 0; }
.cal-bar.muted { background: #e9e2d6; color: var(--muted); }
.cal-bar.block { color: var(--ink-2); font-weight: 700; }
button.cal-bar:hover { filter: brightness(.95); }

/* ---------- inbox ---------- */
.inbox { display: grid; grid-template-columns: 360px 1fr; gap: 18px; align-items: start; }
.inbox-list { list-style: none; margin: 0; }
.inbox-list button { display: grid; gap: 2px; width: 100%; text-align: left; border: 0; border-bottom: 1px solid var(--line-2); background: none; padding: 12px 16px; color: var(--ink); }
.inbox-list button:hover { background: #fbf6ee; }
.inbox-list button.on { background: #fdf0e1; }
.inbox-list .who { display: flex; justify-content: space-between; gap: 8px; }
.inbox-list .who small { color: var(--muted); }
.inbox-list .unread .who b::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--sun); margin-right: 7px; vertical-align: 1px; }
.inbox-list .subj { font-weight: 700; font-size: .88rem; }
.inbox-list .prev { color: var(--muted); font-size: .82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inbox-read h3 { font: 700 1.3rem var(--display); margin-bottom: 4px; }
.inbox-read .msg { background: #faf5ed; border-radius: 12px; padding: 14px; margin: 14px 0; white-space: pre-wrap; }
.inbox-read .back { display: none; margin-bottom: 10px; }

/* ---------- shop ---------- */
.pos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-bottom: 16px; }
.pos-it { position: relative; display: grid; gap: 4px; text-align: left; border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 12px; color: var(--ink); min-height: 82px; }
.pos-it:hover { border-color: var(--sun); }
.pos-it.on { border-color: var(--sun); box-shadow: 0 0 0 2px rgba(232, 115, 28, .25); }
.pos-it b { font-size: .86rem; line-height: 1.25; }
.pos-it span { font-weight: 800; }
.pos-it small { color: var(--muted); font-weight: 600; }
.pos-it em { position: absolute; top: -7px; right: -7px; background: var(--sun); color: #fff; font-style: normal; font-weight: 900; font-size: .78rem; min-width: 24px; height: 24px; border-radius: 12px; display: grid; place-items: center; }
.cart .fld { margin-top: 12px; }

/* ---------- stands ---------- */
.grp { font: 700 1.15rem var(--display); margin: 22px 0 10px; }
.stand-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.stand { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: var(--sh); }
.stand img, .stand .ph { width: 100%; height: 110px; object-fit: cover; background: var(--line-2); display: block; }
.stand.closed img { filter: grayscale(1); opacity: .6; }
.stand-b { padding: 12px 14px; }
.stand-b b { display: block; }
.stand-b small { color: var(--muted); }
.stand-b p { margin: 8px 0 10px; }

/* ---------- rates ---------- */
.fee-card { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; border-left: 4px solid var(--card-c); }
.fee-card p { margin: 4px 0 0; max-width: 620px; }
.rate-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 18px; }
.rate-grid .card { margin-bottom: 0; }
.rate-grid + .card { margin-top: 18px; }
.money-in { display: inline-flex; align-items: center; gap: 3px; font-weight: 800; }
.money-in input { width: 74px; border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; text-align: right; font-weight: 800; background: #fff; }
.money-in input:focus { outline: 0; border-color: var(--sun); }
.tbl.rates td { vertical-align: middle; }

/* ---------- settings ---------- */
.prov { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0 16px; }
.prov-b { border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 12px; text-align: left; color: var(--ink); }
.prov-b:hover { border-color: var(--sun); }
.prov-b small { display: block; color: var(--sun-d); font-weight: 800; }
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 18px; }
.tpl-grid .card { margin: 0; }
.tpl { white-space: pre-wrap; font: .82rem/1.5 var(--font); background: #faf5ed; border-radius: 10px; padding: 12px; margin: 0; color: var(--ink-2); max-height: 220px; overflow: auto; }

/* ---------- toasts ---------- */
.toasts { position: fixed; z-index: 95; left: 50%; bottom: 24px; transform: translateX(-50%); display: grid; gap: 8px; width: min(420px, calc(100% - 32px)); }
.toast { display: flex; align-items: center; gap: 10px; background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 12px; font-weight: 700; font-size: .9rem; box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .5); animation: pop .25s; transition: opacity .4s, transform .4s; }
.toast .ic { color: #8fd18a; }
.toast.out { opacity: 0; transform: translateY(8px); }

/* ---------- tablet & phone ---------- */
@media (max-width: 1100px) {
  .cols { grid-template-columns: 1fr; }
  .inbox { grid-template-columns: 300px 1fr; }
}
@media (max-width: 900px) {
  .side { transform: translateX(-100%); transition: transform .25s; box-shadow: 20px 0 50px rgba(0, 0, 0, .3); }
  body.nav-open .side { transform: none; }
  body.nav-open .scrim { display: block; position: fixed; inset: 0; z-index: 35; background: rgba(27, 17, 11, .4); }
  .main { margin-left: 0; }
  .menu-btn { display: inline-grid; }
  .top { padding: 10px 16px; }
  main { padding: 18px 16px 100px; }
  .me-t { display: none; }
  .save-state { font-size: 0; gap: 0; padding: 6px; }
  .save-state.unsaved { font-size: .7rem; gap: 6px; padding: 4px 8px; }
  .bottom { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--card); border-top: 1px solid var(--line); padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); }
  .bottom a, .bottom button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; text-decoration: none; color: var(--muted); font-size: .7rem; font-weight: 800; border: 0; background: none; padding: 5px 0; position: relative; }
  .bottom a.on { color: var(--sun-d); }
  .bottom .ic { width: 22px; height: 22px; }
  .bottom em { position: absolute; top: 0; left: calc(50% + 6px); margin: 0; }
  .toasts { bottom: 84px; }
  .inbox { grid-template-columns: 1fr; }
  .inbox.reading .inbox-list { display: none; }
  .inbox:not(.reading) .inbox-read { display: none; }
  .inbox-read .back { display: inline-flex; }
}
@media (max-width: 700px) {
  h1 { font-size: 1.45rem; }
  .kpis { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kpi { padding: 12px 13px; }
  .kpi-v { font-size: 1.35rem; }
  .hello .btn, .page-h .ph-act { width: 100%; }
  .page-h .ph-act > .btn { flex: 1; }
  .card { padding: 14px; }
  .grid3 { grid-template-columns: 1fr 1fr 1fr; gap: 0 8px; }
  .brow-st { width: 74px; font-size: .78rem; }
  .brow .pill { display: none; }
  .brow .row-act { padding: 6px 9px; }
  /* tables become stacked cards */
  .tbl thead { display: none; }
  .tbl, .tbl tbody, .tbl tr, .tbl td { display: block; width: 100%; }
  .tbl tr { padding: 12px 14px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; }
  .tbl td { border: 0; padding: 0; }
  .tbl td.r { text-align: left; }
  .tbl td[data-l]::before { content: none; }
  .tbl:not(.rates):not(.perm) td[data-l="Guest"], .tbl td[data-l="From"], .tbl td[data-l="Item"] { grid-column: 1; font-size: .95rem; }
  .tbl td[data-l="Status"], .tbl td[data-l="Amount"], .tbl td[data-l="Spent"], .tbl td[data-l="EFT price"], .tbl td[data-l="Value"] { grid-column: 2; grid-row: 1; text-align: right; }
  .tbl td[data-l="Guests"], .tbl td[data-l="Balance"], .tbl td[data-l="Nights"], .tbl td[data-l="Stays"], .tbl td[data-l="Card fee"] { display: none; }
  .tbl td[data-l="Stand"] small, .tbl td[data-l="Contact"] small { display: inline; margin-left: 6px; }
  .tbl td[data-l="Total"] { grid-column: 2; text-align: right; }
  .tbl td[data-l="Card price"] { grid-column: 2; text-align: right; font-size: .8rem; }
  .tbl.perm tr { grid-template-columns: 1fr repeat(3, 60px); }
  .tbl.perm thead { display: block; }
  .tbl.perm thead tr { background: #faf5ed; }
  .tbl.perm th { padding: 0; background: none; font-size: .62rem; }
  .card:not(.flush) > .tbl tr { padding-inline: 0; }
  .rate-grid, .tpl-grid { grid-template-columns: 1fr; }
  .eft-grid { grid-template-columns: 1fr; }
  .hb { grid-template-columns: 90px 1fr 70px; }
  .d-body { padding: 14px 14px 40px; }
  .d-head { padding: 14px; }
  .kv { grid-template-columns: 74px 1fr; }
  .m-card { max-height: calc(100vh - 20px); }
  #modal { padding: 10px; align-items: end; }
  .m-card { border-radius: 18px 18px 14px 14px; }
  .prov { grid-template-columns: 1fr 1fr; }
  .cal { --cw: 40px; --nw: 96px; }
  .cal-name { padding: 6px 8px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* =========================================================
   Reports (rp-*), after MegaVolt: tiles rise in one after another,
   numbers count up and bounce, bars grow, rows slide out.
   ========================================================= */
.rp-filters { padding: 14px 16px 12px; margin-bottom: 16px; display: flex; flex-direction: column; gap: 12px; }
.rp-filters-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.rp-filters-left { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.rp-filters select { border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 9px 12px; font-weight: 700; min-width: 170px; }
.rp-cmp { display: inline-flex; align-items: center; gap: 8px; font-size: .86rem; color: var(--ink-2); font-weight: 700; cursor: pointer; user-select: none; }
.rp-cmp input:checked + span { background: var(--sun); }
.rp-cmp input:focus-visible + span { outline: 3px solid rgba(232, 115, 28, .45); outline-offset: 2px; }
.rp-range-text { font-size: .88rem; display: flex; gap: 6px; flex-wrap: wrap; }
.rp-range-text span { color: var(--muted); }
.rp-tabs { display: flex; gap: 2px; align-self: flex-start; max-width: 100%; overflow-x: auto; scrollbar-width: none; background: var(--line-2); border-radius: 11px; padding: 3px; }
.rp-tabs::-webkit-scrollbar { display: none; }
.rp-tabs button { border: 0; background: none; padding: 7px 15px; border-radius: 9px; font-weight: 800; font-size: .86rem; color: var(--ink-2); white-space: nowrap; transition: background .15s, color .15s, box-shadow .15s; }
.rp-tabs button:hover { color: var(--ink); }
.rp-tabs button.on { background: var(--card); color: var(--ink); box-shadow: 0 1px 2px rgba(42, 27, 18, .12), 0 2px 8px -4px rgba(42, 27, 18, .3); }

.rp-body { display: flex; flex-direction: column; gap: 16px; }
.rp-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.rp-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }

/* entrance: rise, fade in and settle with a small bounce (--d is each item's delay) */
.rp-in { animation: rpIn .62s cubic-bezier(.34, 1.36, .64, 1) both; animation-delay: var(--d, 0ms); }
@keyframes rpIn { from { opacity: 0; transform: translateY(16px) scale(.97); } to { opacity: 1; transform: none; } }

.rp-kpi { position: relative; overflow: hidden; padding: 16px 16px 12px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); box-shadow: var(--sh);
  display: flex; flex-direction: column; gap: 6px; min-height: 124px; transition: transform .18s ease, border-color .18s ease; }
.rp-kpi::after { content: ''; position: absolute; width: 150px; height: 150px; right: -64px; top: -76px; border-radius: 50%; background: radial-gradient(circle, rgba(232, 115, 28, .16), transparent 70%); pointer-events: none; }
.rp-kpi:hover { transform: translateY(-2px); border-color: #e2c9a6; }
.rp-kpi-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.rp-kpi-lab { font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.rp-kpi-val { font: 700 1.75rem/1.15 var(--display); letter-spacing: -.01em; font-variant-numeric: tabular-nums; transform-origin: left center; }
.rp-kpi-val.pop { animation: rpPop .42s cubic-bezier(.34, 1.8, .64, 1); }
@keyframes rpPop { 0% { transform: scale(1); } 45% { transform: scale(1.07); } 100% { transform: scale(1); } }
.rp-kpi-foot { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }
.rp-kpi-note { font-size: .8rem; color: var(--muted); }
.rp-kpi-spark { width: 104px; height: 32px; flex: none; }
.rp-spark { width: 100%; height: 100%; display: block; overflow: visible; }
.rp-spark-line { fill: none; stroke: var(--sun); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: 100; stroke-dashoffset: 100; animation: rpDraw 1.1s .3s ease forwards; }
.rp-spark-area { opacity: 0; animation: rpFade .8s .55s ease forwards; }
@keyframes rpDraw { to { stroke-dashoffset: 0; } }
@keyframes rpFade { to { opacity: 1; } }
.rp-delta { font-size: .74rem; font-weight: 800; padding: 3px 8px; border-radius: 99px; white-space: nowrap; }
.rp-delta.up { color: var(--ok); background: var(--ok-bg); }
.rp-delta.down { color: var(--bad); background: var(--bad-bg); }
.rp-delta.flat { color: var(--muted); background: var(--line-2); }

/* "Right now" strip */
.rp-now { display: grid; grid-template-columns: auto repeat(4, minmax(0, 1fr)); border-radius: var(--r); border: 1px solid var(--line); background: #fbf6ee; overflow: hidden; }
.rp-now-title { writing-mode: vertical-rl; transform: rotate(180deg); text-align: center; font-size: .68rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 10px 8px; border-left: 1px solid var(--line); }
.rp-now-item { padding: 12px 16px; border: 0; border-right: 1px solid var(--line); background: none; display: flex; flex-direction: column; align-items: flex-start; gap: 1px; text-align: left; color: var(--ink); }
button.rp-now-item:hover { background: rgba(232, 115, 28, .06); }
.rp-now-item:last-child { border-right: 0; }
.rp-now-val { font: 700 1.3rem/1.2 var(--display); font-variant-numeric: tabular-nums; }
.rp-now-val small { font: 700 .8rem var(--font); color: var(--muted); }
.rp-now-item.ok .rp-now-val { color: var(--ok); }
.rp-now-item.warn .rp-now-val { color: var(--warn); }
.rp-now-item.bad .rp-now-val { color: var(--bad); }
.rp-now-lab { font-size: .8rem; color: var(--ink-2); font-weight: 700; }
.rp-now-sub { font-size: .76rem; color: var(--muted); }

/* chart cards */
.rp-card { position: relative; padding: 16px 18px 14px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); box-shadow: var(--sh); min-width: 0; }
.rp-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.rp-card-sub { font-size: .8rem; color: var(--muted); margin-top: 2px; }
.rp-legend-inline { display: flex; gap: 14px; flex-wrap: wrap; font-size: .8rem; color: var(--ink-2); font-weight: 700; }
.rp-legend-inline span { display: inline-flex; align-items: center; }
.rp-dot { width: 10px; height: 10px; border-radius: 3px; display: inline-block; flex: none; margin-right: 6px; vertical-align: -1px; background: var(--sun); }
.rp-dot.ghost { background: transparent; border: 1.5px dashed var(--muted); }
.rp-chart { position: relative; width: 100%; }
.rp-chart svg { display: block; width: 100%; overflow: visible; }
.rp-grid { stroke: var(--line); stroke-width: 1; stroke-dasharray: 3 4; }
.rp-grid.base { stroke: #d9c7ad; stroke-dasharray: none; }
.rp-axis { fill: var(--muted); font: 600 11px var(--font); font-variant-numeric: tabular-nums; }
.rp-bar { transform-box: fill-box; transform-origin: 50% 100%; animation: rpGrow .8s cubic-bezier(.34, 1.45, .64, 1) both; }
@keyframes rpGrow { from { transform: scaleY(0); opacity: .35; } to { transform: scaleY(1); opacity: 1; } }
.rp-ghost { fill: none; stroke: var(--muted); stroke-width: 1.4; stroke-dasharray: 4 3; opacity: .6; animation: rpGhost .6s .35s both; }
@keyframes rpGhost { from { opacity: 0; } to { opacity: .6; } }
.rp-noanim .rp-bar, .rp-noanim .rp-ghost { animation: none; }
.rp-hit { fill: transparent; }
.rp-hit:hover { fill: rgba(232, 115, 28, .07); }
.tip.rich { font-weight: 600; line-height: 1.5; padding: 8px 11px; }
.tip.rich b { font-weight: 900; }
.tip.rich .rp-dot.ghost { border-color: #e9dccb; }
.rp-card .tbl-view { margin-top: 8px; }

/* ranked bars */
.rp-hbars { display: flex; flex-direction: column; gap: 11px; }
.rp-hrow { display: flex; flex-direction: column; gap: 5px; }
.rp-hlab { display: flex; justify-content: space-between; gap: 10px; font-size: .86rem; }
.rp-hname { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rp-hval { color: var(--ink-2); font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rp-htrack { height: 9px; border-radius: 99px; background: var(--line-2); overflow: hidden; }
.rp-hfill { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, rgba(232, 115, 28, .7), var(--sun)); transform-origin: left center; animation: rpGrowX .9s cubic-bezier(.34, 1.3, .64, 1) both; }
@keyframes rpGrowX { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* donut */
.rp-donut-wrap { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.rp-donut { width: 150px; height: 150px; flex: none; }
.rp-arc { animation: rpArc 1s cubic-bezier(.34, 1.5, .64, 1) both; transition: stroke-width .15s; }
.rp-arc:hover { stroke-width: 22; }
@keyframes rpArc { from { opacity: 0; stroke-width: 3; } to { opacity: 1; stroke-width: 18; } }
.rp-donut-val { fill: var(--ink); font: 700 16px var(--display); }
.rp-donut-lab { fill: var(--muted); font: 800 9.5px var(--font); text-transform: uppercase; letter-spacing: .08em; }
.rp-legend { display: flex; flex-direction: column; gap: 8px; flex: 1; min-width: 170px; }
.rp-leg { display: grid; grid-template-columns: 10px 1fr auto; align-items: center; gap: 8px; font-size: .86rem; }
.rp-leg i { width: 10px; height: 10px; border-radius: 3px; }
.rp-leg-name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rp-leg-val { color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.rp-tbl tr[data-guest] { cursor: pointer; }
/* Reports: money made, game drives, the shop filter and the most popular products */
.rp-tbl td small { display: block; font-size: .76rem; font-weight: 500; }
.rp-made tfoot td { border-top: 2px solid var(--ink); padding-top: 10px; font-size: 1rem; }
.rp-shopf { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 14px; }
.rp-shopf select.on { border-color: var(--sun); background: #fdf0e1; font-weight: 700; }
.rp-top td:first-child { width: 32px; color: var(--muted); font-weight: 800; }
.rp-tbl tr[data-guest]:hover td { background: #fbf6ee; }
.rp-empty { color: var(--muted); font-size: .88rem; padding: 22px 6px; text-align: center; margin: 0; }

/* loading shimmer */
.rp-skel { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.rp-skel-tile, .rp-skel-chart { height: 124px; border-radius: var(--r); border: 1px solid var(--line);
  background: linear-gradient(100deg, #f4ece0 30%, #fbf7f0 50%, #f4ece0 70%); background-size: 300% 100%; animation: rpShimmer 1.3s linear infinite; }
.rp-skel-chart { height: 300px; }
@keyframes rpShimmer { from { background-position: 100% 0; } to { background-position: -50% 0; } }

.rp-how { font-size: .86rem; color: var(--muted); }
.rp-how summary { cursor: pointer; font-weight: 800; color: var(--ink-2); width: fit-content; }
.rp-how ul { margin: 8px 0 0; padding-left: 18px; line-height: 1.6; max-width: 880px; }

@media (max-width: 1000px) { .rp-grid2 { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .rp-now { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rp-now-title { grid-column: 1 / -1; writing-mode: horizontal-tb; transform: none; border-left: 0; border-bottom: 1px solid var(--line); padding: 8px 14px; text-align: left; }
  .rp-now-item:nth-child(3) { border-right: 0; }
  .rp-now-item:nth-child(2), .rp-now-item:nth-child(3) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 700px) {
  .rp-filters-left { width: 100%; flex-direction: column; align-items: stretch; gap: 10px; }
  .rp-filters select { min-width: 0; width: 100%; }
  .rp-kpis, .rp-skel { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .rp-kpi { min-height: 108px; padding: 12px; }
  .rp-kpi-val { font-size: 1.3rem; }
  .rp-kpi-top { flex-wrap: wrap; align-items: flex-start; gap: 4px; }
  .rp-kpi-lab { font-size: .66rem; }
  .rp-delta { font-size: .7rem; padding: 2px 7px; }
  .rp-kpi-spark { display: none; }
  .rp-card { padding: 14px 12px 12px; }
  .rp-donut-wrap { justify-content: center; }
}

/* =========================================================
   Stands (add, copy, photos) and shop products
   ========================================================= */
.grp small { font: 800 .8rem var(--font); color: var(--muted); margin-left: 4px; }
.stand { display: flex; flex-direction: column; }
.stand-ph { position: relative; display: block; width: 100%; padding: 0; border: 0; background: var(--line-2); }
.stand-ph .ph { display: grid; place-items: center; width: 100%; height: 110px; color: var(--muted); font-size: .82rem; font-weight: 700; }
.stand-ph:hover img { filter: brightness(.92); }
.ph-n, .ph-new { position: absolute; bottom: 8px; font-size: .72rem; font-weight: 800; padding: 2px 8px; border-radius: 99px; }
.ph-n { right: 8px; background: rgba(42, 27, 18, .72); color: #fff; }
.ph-new { left: 8px; background: var(--sun); color: #fff; }
.stand-b { display: flex; flex-direction: column; flex: 1; }
.stand-act { display: flex; gap: 6px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line-2); }
.stand-act .icon-btn { margin-left: auto; color: var(--bad); }
.ph-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; margin-bottom: 4px; }
.ph-none { grid-column: 1 / -1; margin: 0; }
.ph-it { position: relative; margin: 0; border-radius: 10px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--line-2); animation: rpIn .4s cubic-bezier(.34, 1.36, .64, 1) both; }
.ph-it img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ph-b { position: absolute; border: 0; cursor: pointer; font-weight: 800; }
.ph-b.del { top: 5px; right: 5px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .92); color: var(--bad); }
.ph-b.del .ic { width: 14px; height: 14px; }
.ph-b.cov { left: 5px; bottom: 5px; font-size: .7rem; padding: 3px 8px; border-radius: 99px; background: rgba(42, 27, 18, .72); color: #fff; opacity: 0; transition: opacity .15s; }
.ph-it:hover .ph-b.cov, .ph-b.cov:focus-visible { opacity: 1; }
@media (hover: none) { .ph-b.cov { opacity: 1; } }
.ph-tag { position: absolute; left: 5px; bottom: 5px; font-size: .7rem; font-weight: 800; padding: 3px 8px; border-radius: 99px; background: var(--sun); color: #fff; }
.file-btn { position: relative; overflow: hidden; }
.file-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; font-size: 0; }
.ph-lib { margin-top: 12px; font-size: .88rem; }
.ph-lib summary { cursor: pointer; font-weight: 800; color: var(--ink-2); }
.ph-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 6px; margin-top: 10px; max-height: 260px; overflow-y: auto; padding: 2px; }
.ph-pick button { padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--line-2); position: relative; }
.ph-pick button img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ph-pick button.on { border-color: var(--sun); }
.ph-pick button.on::after { content: '✓'; position: absolute; top: 3px; right: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--sun); color: #fff; font-size: 11px; font-weight: 900; display: grid; place-items: center; }
.prod-act { white-space: nowrap; }
.prod-act .icon-btn { margin-left: 6px; color: var(--bad); vertical-align: middle; }

/* =========================================================
   Sidebar groups
   ========================================================= */
/* Each group folds open and shut (navHTML). A shut group shows the sum of its counts, so nothing waiting is missed. */
.side nav { gap: 2px; align-content: start; }
.side nav a { padding: 8px 11px; }
.nav-top { display: grid; gap: 1px; padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid var(--side-2); }
.nav-grp { border-radius: 12px; }
.nav-grp + .nav-grp { margin-top: 2px; }
.nav-h { display: flex; align-items: center; gap: 8px; width: 100%; padding: 9px 11px; border: 0; border-radius: 10px; background: none; cursor: pointer;
  font: inherit; font-size: .7rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; color: #a8917a; text-align: left; }
.nav-h:hover { color: #f1e4d3; background: rgba(255,255,255,.04); }
.nav-h:focus-visible { outline: 2px solid var(--sun); outline-offset: 1px; }
.nav-h > span { flex: 1; }
.nav-h .nav-chev { width: 14px; height: 14px; transition: transform .25s cubic-bezier(.2, .8, .2, 1); opacity: .8; }
.nav-grp.open .nav-h .nav-chev { transform: rotate(90deg); }
.nav-h .nav-sum { font-style: normal; font-size: .7rem; font-weight: 900; letter-spacing: 0; background: #f4b740; color: var(--ink); border-radius: 20px; min-width: 20px; padding: 1px 6px; text-align: center; }
.nav-grp.open .nav-h .nav-sum { display: none; }
.nav-items { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .28s cubic-bezier(.2, .8, .2, 1); }
.nav-items > div { overflow: hidden; display: grid; gap: 1px; }
.nav-grp.open .nav-items { grid-template-rows: 1fr; }
.nav-grp.open .nav-items > div { padding: 2px 0 6px; }
.nav-items a { padding-left: 14px; }
.nav-grp:not(.open) .nav-items a { visibility: hidden; }   /* shut: not reachable with the Tab key */

/* page-level tabs (same look as the Reports tabs) */
.page-tabs { margin-bottom: 16px; }
.tab-n { font-size: .74rem; font-weight: 800; color: var(--muted); margin-left: 4px; }
.page-tabs button.on .tab-n { color: var(--sun-d); }
.tag.bad { background: var(--bad-bg); color: var(--bad); }
.tag.shop { background: #f3ead9; color: #7a5a2e; }
.mth.pm-cash i { background: var(--ok); } .mth.pm-bill i { background: #8a5cb8; }
.tbl.ledger .tag { white-space: nowrap; }
.more { padding: 12px; text-align: center; border-top: 1px solid var(--line-2); }
.m-extra { display: flex; gap: 8px; justify-content: flex-start; flex-wrap: wrap; border-top: 1px solid var(--line-2); margin-top: 8px; padding-top: 12px; }
.grow { flex: 1; }

/* attachments */
.att-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.att-row .pop-other { flex: 1 1 100%; overflow-wrap: anywhere; }   /* proof of payment sent from another email address */
.att { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 7px 11px; text-align: left; color: var(--ink); max-width: 100%; }
.att:hover { border-color: var(--sun); }
.att .ic { color: var(--sun-d); }
.att span { min-width: 0; }
.att b { display: block; font-size: .82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 240px; }
.att small { color: var(--muted); font-size: .72rem; }
.att-img { display: block; max-width: 100%; max-height: 65vh; margin: 0 auto 10px; border-radius: 10px; }
.att-pdf { width: 100%; height: 65vh; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 10px; }
.att-demo { display: flex; gap: 12px; align-items: flex-start; background: #faf5ed; border-radius: 12px; padding: 18px; margin-bottom: 10px; }
.att-demo .ic { width: 30px; height: 30px; color: var(--sun-d); }
.att-demo p { margin: 4px 0 0; }

/* =========================================================
   Inbox
   ========================================================= */
.mail { display: grid; grid-template-columns: 380px 1fr; gap: 18px; align-items: start; }
.mail .card { margin-bottom: 0; }
.mail-list { position: sticky; top: 78px; max-height: calc(100vh - 100px); display: flex; flex-direction: column; }
.mail-tools { padding: 12px; border-bottom: 1px solid var(--line); display: grid; gap: 10px; }
.mail-boxes { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.mail-boxes::-webkit-scrollbar { display: none; }
.mail-boxes button { border: 0; background: none; padding: 6px 10px; border-radius: 8px; font-weight: 800; font-size: .8rem; color: var(--ink-2); white-space: nowrap; }
.mail-boxes button span { color: var(--muted); margin-left: 2px; }
.mail-boxes button:hover { background: var(--line-2); }
.mail-boxes button.on { background: var(--ink); color: #fff; }
.mail-boxes button.on span { color: #f4b740; }
.mail-list ul { list-style: none; margin: 0; padding: 0; overflow-y: auto; }
.mail-list li > button { display: flex; gap: 11px; width: 100%; text-align: left; border: 0; border-bottom: 1px solid var(--line-2); background: none; padding: 12px 14px; color: var(--ink); position: relative; }
.mail-list li > button:hover { background: #fbf6ee; }
.mail-list li > button.on { background: #fdf0e1; box-shadow: inset 3px 0 0 var(--sun); }
.mail-list li > button.unread::after { content: ''; position: absolute; left: 5px; top: 22px; width: 7px; height: 7px; border-radius: 50%; background: var(--sun); }
.mail-list .unread .mi-top b, .mail-list .unread .mi-subj { font-weight: 900; }
.av { width: 36px; height: 36px; border-radius: 50%; background: #e9dccb; color: var(--ink); display: grid; place-items: center; font-weight: 900; font-size: .8rem; flex: none; }
.av.sm { width: 28px; height: 28px; font-size: .72rem; }
.av.us { background: var(--sun); color: #fff; }
.mi { flex: 1; min-width: 0; display: grid; gap: 1px; }
.mi-top { display: flex; align-items: center; gap: 6px; }
.mi-top b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .9rem; font-weight: 700; }
.mi-top em { font-style: normal; font-size: .7rem; font-weight: 800; color: var(--muted); background: var(--line-2); border-radius: 10px; padding: 0 6px; }
.mi-top small { margin-left: auto; color: var(--muted); white-space: nowrap; }
.mi-subj { font-size: .86rem; font-weight: 600; display: flex; align-items: center; gap: 5px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.mi-subj .ic { width: 14px; height: 14px; color: var(--muted); }
.mi-prev { font-size: .8rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mi-prev i { font-style: normal; color: var(--ink-2); }
.mi-ref { justify-self: start; font-size: .68rem; font-weight: 800; color: var(--info); background: var(--info-bg); border-radius: 5px; padding: 0 6px; margin-top: 3px; }
.mail-empty { display: grid; place-items: center; gap: 8px; padding: 80px 20px; color: var(--muted); }
.mail-empty .ic { width: 40px; height: 40px; }
.th-head { display: flex; align-items: flex-start; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.th-head .back { display: none; }
.th-t { flex: 1; min-width: 0; }
.th-t h2 { font-size: 1.25rem; margin-bottom: 6px; }
.th-who { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 18px; background: #fbf6ee; border-bottom: 1px solid var(--line); }
.th-c { min-width: 0; }
.th-c b { display: block; }
.th-c small { color: var(--muted); }
.th-links { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; }
.th-links .chip { padding: 5px 10px; font-size: .78rem; }
.th-msgs { padding: 16px 18px; display: grid; gap: 12px; }
.msg { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; background: #fff; max-width: 92%; }
.msg.out { justify-self: end; background: #fdf4e8; border-color: #f1dcc0; }
.msg header { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.msg header b { font-size: .86rem; }
.msg header small { margin-left: auto; color: var(--muted); white-space: nowrap; }
.msg-b { white-space: pre-wrap; font-size: .9rem; line-height: 1.55; overflow-wrap: anywhere; }
.composer { border-top: 1px solid var(--line); padding: 14px 18px 16px; background: #fbf6ee; }
.cmp-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; font-size: .84rem; color: var(--ink-2); }
.cmp-top span { display: inline-flex; align-items: center; gap: 6px; }
.cmp-top select { border: 1px solid var(--line); border-radius: 9px; padding: 7px 10px; background: #fff; font-size: .84rem; }
.composer textarea { width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: #fff; resize: vertical; line-height: 1.5; font-size: .92rem; }
.composer textarea:focus { outline: 0; border-color: var(--sun); box-shadow: 0 0 0 3px rgba(232, 115, 28, .18); }
.cmp-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.composer .demo-note { margin: 10px 0 0; }

/* =========================================================
   Payments
   ========================================================= */
.sum-card { padding: 18px 20px; }
.sum-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.sum-grid > div { display: grid; gap: 2px; }
.sum-grid span { font-size: .74rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.sum-grid b { font: 700 1.55rem/1.15 var(--display); }
.sum-grid small { color: var(--ink-2); font-size: .78rem; }
.split { display: flex; gap: 2px; height: 12px; border-radius: 99px; overflow: hidden; background: var(--line-2); }
.split span { display: block; height: 100%; }
.split .card-s, .mth-i.pm-card { background: var(--card-c); } .split .eft-s, .mth-i.pm-eft { background: var(--eft-c); } .split .cash-s, .mth-i.pm-cash { background: var(--ok); }
.split-key { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 10px; font-size: .84rem; color: var(--ink-2); }
.split-key span { display: inline-flex; align-items: center; gap: 6px; }
.mth-i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.tbl.ledger tr.day td { background: #faf5ed; font-size: .76rem; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); padding-top: 9px; padding-bottom: 9px; }
.tbl.ledger td.amt { font-weight: 800; font-variant-numeric: tabular-nums; }
.tbl.ledger tbody tr[data-sale] { cursor: pointer; }
.tbl.ledger tbody tr[data-sale]:hover { background: #fbf6ee; }
.tbl.ledger td[data-l="Time"] { width: 64px; font-variant-numeric: tabular-nums; }
.row-btn { white-space: nowrap; }
.row-btn .btn { margin-left: 6px; }

/* =========================================================
   Shop till
   ========================================================= */
.pos-wrap { display: grid; grid-template-columns: 1fr 360px; gap: 18px; align-items: start; }
.pos-wrap .card { margin-bottom: 0; }
.pos-tools { margin-bottom: 10px; }
.pos-cat .chips { margin-bottom: 12px; }
.pos { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); margin-bottom: 0; }
.pos-it { min-height: 104px; align-content: start; padding: 13px; transition: border-color .15s, transform .1s; }
.pos-it:active { transform: scale(.98); }
.pos-it:disabled { opacity: .45; cursor: not-allowed; }
.pos-p { display: flex; flex-direction: column; font-size: 1.02rem; }
.pos-stock { position: absolute; right: 10px; bottom: 9px; font-size: .7rem; font-weight: 800; color: var(--muted); }
.pos-stock.low { color: var(--warn); }
.pos-sale { position: sticky; top: 78px; }
.sale-lines { display: grid; gap: 2px; margin-bottom: 12px; }
.sl { display: grid; grid-template-columns: 1fr auto 70px; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.sl-n b { display: block; font-size: .88rem; line-height: 1.2; }
.sl-n small { color: var(--muted); }
.sl-t { text-align: right; font-variant-numeric: tabular-nums; }
.qty { display: inline-flex; align-items: center; gap: 6px; }
.qty span { min-width: 18px; text-align: center; font-weight: 900; }
.sale-empty { display: grid; place-items: center; gap: 6px; padding: 28px 10px; color: var(--muted); text-align: center; }
.sale-empty .ic { width: 30px; height: 30px; }
.sale-empty p { margin: 0; font-size: .88rem; }
.sale-tot { background: #faf5ed; border-radius: 12px; padding: 10px 12px; display: grid; gap: 4px; margin-bottom: 12px; }
.sale-tot div { display: flex; justify-content: space-between; align-items: baseline; }
.sale-tot div:first-child b { font: 700 1.5rem var(--display); }
.pay-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pay-btns .btn { padding: 13px 10px; }
.pay-btns .btn:disabled { opacity: .45; cursor: not-allowed; }
.pay-btns .full { grid-column: 1 / -1; }
.pos-sale > .muted.small { margin: 10px 0 0; }
.today-strip { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 16px; padding: 12px 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); font-size: .88rem; }
.today-strip .ic { color: var(--sun-d); }
.today-strip .btn { margin-left: auto; }
.receipt { background: #fffefb; border: 1px dashed #d9c7ad; border-radius: 12px; padding: 14px 16px; margin-bottom: 12px; }
.rc-head { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.rc-head small { display: block; color: var(--muted); }
.receipt .ln { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px dashed var(--line); font-size: .9rem; }
.receipt .ln.tot { font-weight: 900; border-bottom: 0; }
.receipt p { margin: 8px 0 0; }

/* =========================================================
   Game drives
   ========================================================= */
.gd-day { display: grid; grid-template-columns: 120px 1fr; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.gd-day:last-child { border-bottom: 0; }
.gd-date b { display: block; }
.gd-date small { color: var(--muted); }
.gd-slots { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gd-slot { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: #fff; display: grid; gap: 5px; align-content: start; }
.gd-slot.empty { background: none; border-style: dashed; color: var(--muted); }
.gd-day.quiet .gd-slot.empty { padding-block: 6px; }
.gd-top { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.seats { height: 7px; border-radius: 99px; background: var(--line-2); overflow: hidden; }
.seats span { display: block; height: 100%; background: var(--ok); border-radius: inherit; }
.seats.over span { background: var(--bad); }
.gd-slot ul { list-style: none; margin: 4px 0 0; padding: 0; }
.gd-slot li button { border: 0; background: none; padding: 4px 0; text-align: left; font-size: .84rem; color: var(--ink); width: 100%; }
.gd-slot li button:hover { color: var(--sun-d); }
.card .brow-g[data-open] { cursor: pointer; }

/* =========================================================
   Rates & fees
   ========================================================= */
.tbl.rate-matrix td { vertical-align: middle; }
.tbl.rate-matrix th small { display: block; text-transform: none; letter-spacing: 0; font-weight: 600; }
.rate-matrix .money-in input { width: 88px; font-size: 1rem; }
.card-of { display: block; color: var(--muted); font-size: .76rem; margin-top: 3px; }
.money-in.unit input { width: 70px; }
.money-in.unit span { color: var(--muted); font-weight: 700; margin-left: 4px; }
.example { border-left: 4px solid var(--sun); }
.example h3 { display: inline-flex; align-items: center; gap: 8px; }
.example p { margin: 0; line-height: 1.8; font-size: .92rem; }
/* with prices that start on a date: one block per period, the one the table shows has the orange edge */
.ex-pers { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.ex-per { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--card); min-width: 0; }
.ex-per.on { border-color: var(--sun); box-shadow: inset 0 0 0 1px var(--sun); background: #fffaf2; }
.ex-per h4 { margin: 0 0 6px; font-size: .92rem; line-height: 1.35; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; text-transform: none; letter-spacing: 0; color: var(--ink); font-weight: 800; }
.ex-per h4 em { font-style: normal; font-size: .68rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; background: #efe6d8; color: var(--ink-2); white-space: nowrap; }
.ex-per h4 em.ex-now { background: #d9ecd0; color: #2f5d27; }
.ex-per h4 em.ex-new { background: #ffe2c2; color: #8a4208; }
.ex-per p { line-height: 1.65; font-size: .88rem; }
.ex-per small { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-size: .76rem; font-weight: 700; color: #8a4208; }
.ex-per small .ic { width: 13px; height: 13px; }
.ex-per .link-btn { margin-top: 8px; }
.link-card { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.link-card > div { display: flex; gap: 12px; align-items: flex-start; }
.link-card > div > .ic { width: 26px; height: 26px; color: var(--sun-d); margin-top: 2px; }
.link-card p { margin: 2px 0 0; }
.rules { padding: 4px 18px; }
.rule { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line-2); }
.rule:last-child { border-bottom: 0; }
.rule p { margin: 2px 0 0; max-width: 560px; }
.hol-add { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.hol-add input { border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; background: #fff; }
.hol-add input[name="n"] { flex: 1; min-width: 180px; }
.savebar { position: fixed; z-index: 50; left: calc(var(--side-w) + 24px); right: 24px; bottom: 18px; display: flex; align-items: center; gap: 10px; padding: 10px 12px 10px 18px; background: var(--ink); color: #fff; border-radius: 14px; box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .5); animation: pop .2s; }
.savebar span { display: inline-flex; align-items: center; gap: 8px; margin-right: auto; font-weight: 700; }
.savebar .btn.ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); }

/* =========================================================
   Tablet and phone
   ========================================================= */
@media (max-width: 1100px) {
  .mail { grid-template-columns: 320px 1fr; }
  .pos-wrap { grid-template-columns: 1fr 320px; }
  .sum-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .mail { grid-template-columns: 1fr; }
  .mail-list { position: static; max-height: none; }
  .mail.reading .mail-list { display: none; }
  .mail:not(.reading) .mail-read { display: none; }
  .th-head .back { display: inline-grid; }
  .pos-wrap { grid-template-columns: 1fr; }
  .pos-sale { position: static; }
  .savebar { left: 12px; right: 12px; bottom: 84px; }
}
@media (max-width: 700px) {
  .th-head, .th-who, .th-msgs, .composer { padding-inline: 14px; }
  .th-links { margin-left: 0; }
  .msg { max-width: 100%; }
  .cmp-bar .btn { flex: 1; }
  .cmp-bar .grow { display: none; }
  .sum-grid b { font-size: 1.25rem; }
  .pos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .gd-day { grid-template-columns: 1fr; gap: 8px; }
  .gd-slots { grid-template-columns: 1fr; }
  .rule { flex-direction: column; align-items: flex-start; gap: 8px; }
  .savebar span { font-size: .84rem; }
  /* ledgers: description and amount on top, the rest underneath */
  .tbl.ledger tr.day { display: flex; justify-content: space-between; padding: 8px 14px; background: #faf5ed; }
  .tbl.ledger tr.day td { background: none; padding: 0; width: auto; }
  .tbl.ledger td[data-l="Time"] { display: none; }
  .tbl.ledger td[data-l="Description"], .tbl.ledger td[data-l="Items"], .tbl.ledger td[data-l="Guest"] { grid-column: 1; grid-row: 1; }
  .tbl.ledger td[data-l="Amount"] { grid-column: 2; grid-row: 1; text-align: right; }
  .tbl.ledger td[data-l="Type"], .tbl.ledger td[data-l="Method"], .tbl.ledger td[data-l="For"], .tbl.ledger td[data-l="Paid by"], .tbl.ledger td[data-l="Stay"], .tbl.ledger td[data-l="Due"] { grid-column: 1 / -1; display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: .82rem; }
  .tbl.ledger td small { display: inline; }
  .tbl.ledger td.row-btn { grid-column: 1 / -1; text-align: left; margin-top: 6px; }
  .tbl.ledger td.row-btn .btn { margin: 0 6px 0 0; }
  .tbl.prods td[data-l="Product"] { grid-column: 1; grid-row: 1; }
  .tbl.prods td[data-l="Price"] { grid-column: 2; grid-row: 1; text-align: right; }
  .tbl.prods td[data-l="Category"], .tbl.prods td[data-l="Sold"] { display: none; }
  .tbl.prods td[data-l="In stock"], .tbl.prods td[data-l="Status"] { grid-column: auto; text-align: left; font-size: .82rem; }
  .tbl.rate-matrix td[data-l="Rate"], .tbl.rate-matrix td[data-l="Extra"] { grid-column: 1 / -1; margin-bottom: 6px; }
  .tbl.rate-matrix td.r { text-align: left; }
  .tbl.rate-matrix td[data-l="Ablution stands"]::before, .tbl.rate-matrix td[data-l="Self-sufficient stands"]::before { content: attr(data-l); display: block; font-size: .72rem; font-weight: 800; color: var(--muted); margin-bottom: 3px; }
}
.money-in.unit span { min-width: 46px; }
main:has(.savebar:not([hidden])) { padding-bottom: 120px; }
.eft-card { min-width: 0; }
.att { min-width: 0; }
.att span { min-width: 0; overflow: hidden; }
.att b { max-width: min(240px, 100%); }
@media (max-width: 700px) { .eft-grid { grid-template-columns: minmax(0, 1fr); } }
.cart-bar { display: none; }
@media (max-width: 900px) {
  .cart-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; position: fixed; left: 12px; right: 12px; bottom: 78px; z-index: 31; border: 0; border-radius: 14px; padding: 13px 16px; background: var(--ink); color: #fff; font-weight: 800; box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .5); animation: pop .2s; }
  .cart-bar span { display: inline-flex; align-items: center; gap: 8px; }
  .cart-bar span:last-child { color: #f4b740; }
  main:has(.cart-bar) { padding-bottom: 160px; }
}
.eft-due .att-row { flex: 1 1 100%; min-width: 0; margin-top: 4px; }
.att-row .att { max-width: 100%; }

/* =========================================================
   Sortable tables, pages and filters
   ========================================================= */
.tbl th.sortable { cursor: pointer; user-select: none; transition: color .15s, background .15s; }
.tbl th.sortable:hover { color: var(--ink); background: #f4ecdf; }
.tbl th.sortable::after { content: '↕'; margin-left: 5px; opacity: .3; font-size: .95em; }
.tbl th.sortable[aria-sort="ascending"], .tbl th.sortable[aria-sort="descending"] { color: var(--sun-d); }
.tbl th.sortable[aria-sort="ascending"]::after { content: '↑'; opacity: 1; }
.tbl th.sortable[aria-sort="descending"]::after { content: '↓'; opacity: 1; }
.tbl.is-sorted tr.day { display: none !important; }
.tpager, .pager { display: flex; align-items: center; justify-content: flex-end; gap: 8px; font-size: .84rem; color: var(--ink-2); font-weight: 700; }
.tpager { margin: -8px 0 18px; }
.tpager span, .pager span { margin-right: auto; }
.pager { border-top: 1px solid var(--line-2); margin-top: 10px; padding-top: 10px; }
.tpager .btn:disabled, .pager .icon-btn:disabled { opacity: .4; cursor: default; }
.sort-m { display: none; }
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.filter-row select, .fdate input, .mail-filt select, .card-h .ph-act select { border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 8px 10px; font-size: .86rem; width: auto; }
.fdate { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 800; color: var(--ink-2); }
select.on, input.on { border-color: var(--sun) !important; background: #fff7ee !important; font-weight: 700; }
.mail-filt { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.mail-filt select { min-width: 0; width: 100%; padding: 7px 8px; font-size: .8rem; }
.mail-filt select.on { border-color: var(--sun); background: #fdf0e1; font-weight: 700; }
.mail-fclear { justify-self: start; align-self: center; padding: 0 4px; display: inline-flex; align-items: center; gap: 4px; font-size: .8rem; }
.mail-fclear .ic { width: 14px; height: 14px; }
.mi-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 3px; }
.mi-tags .mi-ref { margin-top: 0; }
.mi-tag { font-size: .68rem; font-weight: 800; color: var(--warn); background: var(--warn-bg); border-radius: 5px; padding: 0 6px; }
.mail-list li.empty .link-btn { font-size: inherit; }
.card-h .ph-act .search { min-width: 180px; }
.card-h .ph-act .search input { padding: 7px 0; }
@media (max-width: 700px) {
  .sort-m { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: .82rem; font-weight: 800; color: var(--ink-2); }
  .sort-m select { flex: 1; min-width: 0; border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 8px 10px; font-size: .86rem; }
  .filter-row select { flex: 1 1 45%; min-width: 0; }
  .fdate { flex: 1 1 45%; }
  .fdate input { flex: 1; min-width: 0; }
  .tpager { flex-wrap: wrap; }
  .card-h .ph-act { width: 100%; }
  .card-h .ph-act > * { flex: 1; min-width: 0; }
}
@media (min-width: 701px) { .card.flush { overflow-x: auto; } .card.flush > .tbl { min-width: 640px; } }
.code { font-family: ui-monospace, 'SFMono-Regular', Consolas, monospace; letter-spacing: .04em; background: #f4ecdf; border-radius: 6px; padding: 1px 7px; }
.tbl.vouchers td small { margin-top: 2px; }
.credit-use { background: var(--ok-bg); border-radius: 10px; padding: 10px 12px; }
@media (max-width: 700px) {
  .tbl.vouchers td[data-l="Code"] { grid-column: 1; grid-row: 1; }
  .tbl.vouchers td[data-l="Status"] { grid-column: 2; grid-row: 1; text-align: right; }
  .tbl.vouchers td[data-l="Type"], .tbl.vouchers td[data-l="Who"], .tbl.vouchers td[data-l="Used"], .tbl.vouchers td[data-l="Valid"] { grid-column: 1 / -1; font-size: .82rem; }
  .tbl.vouchers td small { display: inline; margin-left: 6px; }
}

/* ---------- clients, edit booking, notes ---------- */
.link-btn { border: 0; background: none; padding: 0; color: var(--sun-d, #b4570f); font-weight: 800; font-size: .8rem; cursor: pointer; display: inline-flex; align-items: center; gap: 2px; text-transform: none; letter-spacing: 0; }
.link-btn .ic { width: 14px; height: 14px; }
.link-btn:hover { text-decoration: underline; }
.h4-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 6px 12px; }
.h4-btns { display: inline-flex; gap: 14px; flex-wrap: wrap; }
/* tabs on top of screens that share one item in the side menu (Payments, Website) */
.sub-tabs { display: inline-flex; flex-wrap: wrap; }
.sub-tabs .sub-n { font-style: normal; font-size: .7rem; font-weight: 900; background: #f4b740; color: var(--ink); border-radius: 20px; padding: 1px 6px; margin-left: 4px; }
/* the top search: what was found, in groups */
.qf-sec { margin: 0; padding: 9px 12px 5px; font-size: .68rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); background: var(--bg, #faf6f0); border-bottom: 1px solid var(--line-2); position: sticky; top: 0; z-index: 1; }
.qf-page .qf-ic { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: rgba(232,115,28,.12); color: var(--sun-d, #b8461a); }
.qf-page .qf-ic .ic { width: 16px; height: 16px; }
.qf-page .qf-go { margin-left: auto; width: 14px; height: 14px; color: var(--muted); }
.qf-page { flex-wrap: nowrap; }
/* a card the search jumped to lights up for a moment */
.card.spot { animation: spot 1.6s ease-out; scroll-margin-top: 84px; }
@keyframes spot { 0%, 30% { box-shadow: 0 0 0 3px rgba(232,115,28,.55); } 100% { box-shadow: 0 0 0 3px rgba(232,115,28,0); } }
/* the words of the "camp is full" message (gapWords) */
.gap-words { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 12px; }
.gap-words summary { cursor: pointer; list-style: revert; }
.gap-words summary span { display: block; margin: 2px 0 6px; }
.gap-words .fld { margin-top: 12px; }
.gap-words textarea, .gap-words input { width: 100%; }
.gap-words small { display: block; margin-top: 3px; }
/* the porta potty dialog (actPotty) and its place on the till */
.pt-chks { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 4px; }
.pt-chks .check { margin: 0; font-weight: 600; }
.pt-mode { margin-bottom: 12px; }
.pos-potty { margin-top: 8px; width: 100%; justify-content: center; }
.pos-img-ic { display: grid; place-items: center; background: var(--line-2, #f1ece4); color: var(--ink-2, #555); }
.pos-img-ic .ic { width: 26px; height: 26px; }
.pill.ret .ic { width: 12px; height: 12px; }
.ret-dot { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--ok-bg); color: var(--ok); vertical-align: -4px; }
.ret-dot .ic { width: 12px; height: 12px; }
.cl-note { display: flex; gap: 8px; align-items: flex-start; background: #fff7e3; border: 1px solid #f1dfb0; border-radius: 10px; padding: 9px 12px; font-size: .86rem; margin: 10px 0 0; }
.cl-note .ic { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--warn); }
.notes li { position: relative; padding-right: 76px; }
.note-acts { position: absolute; top: 6px; right: 6px; display: flex; gap: 4px; opacity: .55; transition: opacity .15s; }
.notes li:hover .note-acts, .note-acts:focus-within { opacity: 1; }
.note-acts .icon-btn { width: 28px; height: 28px; background: #fff; }
.note-acts .icon-btn .ic { width: 14px; height: 14px; }
.note-acts [data-note-del] { color: var(--bad); }
.m-h { margin: 4px 0 10px; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.m-h ~ .m-h { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.m-acts { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.cl-top { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.cl-kv { margin: 14px 0 6px; }
.cl-pick { margin-bottom: 14px; }
.cl-pick .search { margin-bottom: 0; }
.cl-results { border: 1px solid var(--line); border-radius: 12px; background: #fff; margin-top: 6px; overflow: hidden; box-shadow: 0 14px 30px -18px rgba(0, 0, 0, .35); }
.cl-r { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; border: 0; background: none; padding: 9px 12px; font: inherit; color: var(--ink); }
.cl-results .cl-r { border-bottom: 1px solid var(--line-2); cursor: pointer; }
.cl-results .cl-r:hover, .cl-results .cl-r:focus-visible { background: #fdf6ea; outline: 0; }
.cl-r .avatar { background: var(--ink); width: 32px; height: 32px; font-size: .78rem; }
.cl-r-g { flex: 1; min-width: 0; display: grid; }
.cl-r-g small { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cl-add { color: var(--sun-d, #b4570f); font-weight: 700; }
.cl-add .ic { width: 18px; height: 18px; }
.cl-newbtn { margin-top: 8px; }
.cl-card { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: #fff; }
.cl-card .cl-r { padding: 0; }
.cl-hist { display: flex; gap: 6px; align-items: flex-start; margin: 8px 0 0; color: var(--ink-2); }
.cl-hist .ic { width: 14px; height: 14px; flex: none; margin-top: 3px; color: var(--ok); }
.cl-new { border: 1px dashed var(--line); border-radius: 12px; padding: 12px 12px 2px; background: #fffdf9; }
.cl-new-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.cl-match { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: var(--ok-bg); color: var(--ink); border-radius: 10px; padding: 9px 12px; margin-bottom: 12px; font-size: .86rem; }
.cl-match > .ic { width: 16px; height: 16px; color: var(--ok); flex: none; }
.cl-match span { flex: 1; min-width: 180px; }
.tag .ic { width: 11px; height: 11px; vertical-align: -1px; margin-right: 3px; }
.fld input:disabled, .fld select:disabled, .fld textarea:disabled { background: #f3eee5; color: var(--muted); border-style: dashed; cursor: not-allowed; }

/* ---------- vehicles, Dinokeng codes, camp news ---------- */
.car { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--line-2); }
.car:first-of-type { border-top: 0; padding-top: 2px; }
.car-i { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--line-2); color: var(--ink-2); flex: none; }
.car-i .ic { width: 18px; height: 18px; }
.car-b { flex: 1; min-width: 0; display: grid; gap: 2px; }
.car-b small { color: var(--muted); }
.car-p { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 5px; }
.car-p .pill .ic { width: 12px; height: 12px; }
.car-a { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; align-items: center; max-width: 52%; }
.icon-btn.danger-t { color: var(--bad); }
.ind-box { display: flex; align-items: flex-start; gap: 12px; background: #fdf8ef; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin: 4px 0 14px; }
.ind-box > div { flex: 1; min-width: 0; display: grid; gap: 4px; }
.ind-box small { display: block; color: var(--ink-2); }
.ind-box .row-btns { margin: 6px 0 2px; flex-wrap: wrap; }
.ind-box-i { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 50%; }
.ind-box.ok { background: var(--ok-bg); border-color: rgba(47, 122, 58, .3); }
.ind-box.ok .ind-box-i { background: var(--ok); color: #fff; }
.ind-box.bad { background: var(--bad-bg); border: 1.5px solid var(--bad); }
.ind-box.bad > div > b { color: var(--bad); }
.ind-box.bad .ind-box-i { background: var(--bad); color: #fff; }
.ind-box.shake { animation: indShake .4s; }
@keyframes indShake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }
.ind-box .check { margin: 8px 0; }
.dgr-done { display: flex; gap: 8px; align-items: flex-start; margin: 0; }
.dgr-done > .ic { width: 16px; height: 16px; color: var(--ok); flex: none; margin-top: 3px; }
.dgr-copy { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 12px; }
.dgr-copy .chip { cursor: pointer; }
.dgr-copy .chip small { color: var(--sun-d, #b4570f); font-weight: 800; margin-left: 4px; }
.row-act small { font-weight: 700; opacity: .75; }
.news-status { display: flex; gap: 12px; align-items: flex-start; border-radius: 14px; padding: 14px 16px; margin-bottom: 16px; font-size: .9rem; border: 1px solid var(--line); background: var(--card); }
.news-status > .ic { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.news-status.fresh { background: var(--ok-bg); border-color: transparent; } .news-status.fresh > .ic { color: var(--ok); }
.news-status.quiet > .ic { color: var(--warn); }
.post-row { display: flex; gap: 12px; align-items: center; min-width: 0; }
.post-row img, .post-noimg { width: 64px; height: 46px; border-radius: 8px; object-fit: cover; flex: none; }
.post-noimg { display: grid; place-items: center; background: var(--line-2); color: var(--muted); }
.post-row > span:last-child { min-width: 0; display: grid; }
.post-row small { color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-width: 46ch; }
.post-img { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 14px; }
.post-img img { width: 100%; max-height: 220px; object-fit: cover; border-radius: 12px; }
.post-img label.btn { cursor: pointer; }
.m-acts.left { justify-content: flex-start; }
@media (max-width: 560px) { .car { flex-wrap: wrap; } .car-a { max-width: none; width: 100%; justify-content: flex-start; padding-left: 48px; } }

/* map editor in Settings */
.me-intro { margin: 0 0 12px; max-width: 70ch; }
.me-wrap { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: #f6efe3; margin-bottom: 12px; }
.me-frame { display: block; width: 100%; height: calc(100vh - 230px); min-height: 640px; border: 0; }
/* pop-ups scroll on their own, never the page behind */
html:has(body.lock) { overflow: hidden; }
.m-card { min-height: 0; max-height: calc(100dvh - 32px); }
.m-body { min-height: 0; flex: 1 1 auto; overscroll-behavior: contain; }
.d-panel { overscroll-behavior: contain; }
#modal { overflow-y: auto; overscroll-behavior: contain; }

/* Dinokeng codes, one per vehicle */
.dgr .h4-row .pill { text-transform: none; letter-spacing: 0; }
.dgr-copy { align-items: center; }
.dgr-cars { display: grid; gap: 8px; margin: 4px 0 12px; }
.dgr-car { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "tick who st" "tick code btn"; gap: 8px 10px; align-items: center; background: #fdf8ef; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.dgr-tick { grid-area: tick; align-self: start; padding-top: 2px; } .dgr-who { grid-area: who; } .dgr-st { grid-area: st; } .dgr-code { grid-area: code; } .dgr-car > .btn { grid-area: btn; }
.dgr-tick input { width: 18px; height: 18px; accent-color: var(--sun); display: block; }
.dgr-who { min-width: 0; display: grid; }
.dgr-who small { color: var(--muted); overflow-wrap: anywhere; }
.dgr-code { border: 1px solid var(--line); border-radius: 9px; padding: 7px 9px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; background: #fff; min-width: 0; width: 100%; }
.dgr-code:focus { outline: 0; border-color: var(--sun); box-shadow: 0 0 0 3px rgba(232, 115, 28, .18); }
.dgr-st .pill .ic { width: 12px; height: 12px; }
.dgr-acts { justify-content: flex-end; }

/* ---------- the send box ---------- */
.m-card.xl { width: min(880px, 100%); }
.sx-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 12px; align-items: center; }
.sx-tabs button { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 7px 12px; font-weight: 800; font-size: .82rem; cursor: pointer; color: var(--ink); max-width: 100%; }
.sx-tabs button .ic { width: 14px; height: 14px; flex: none; }
.sx-tabs button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.sx-frame { width: 100%; height: min(58vh, 560px); border: 1px solid var(--line); border-radius: 12px; background: #e9e4dc; display: block; margin-bottom: 10px; }
.sx-log { display: grid; gap: 6px; margin: 4px 0 12px; }
.sx-l { display: flex; align-items: center; gap: 8px; background: var(--ok-bg); border-radius: 10px; padding: 8px 12px; font-size: .86rem; }
.sx-l.wa { background: #e3f6ea; }
.sx-l .ic { width: 16px; height: 16px; color: var(--ok); flex: none; }
.sx-l span { flex: 1; }
.sx-l small { color: var(--muted); font-weight: 700; }
.sx-acts { position: sticky; bottom: -12px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 12px 0 4px; background: var(--card); border-top: 1px solid var(--line-2); margin-top: 6px; }
.sx-sp { flex: 1; }
.btn.wa { background: #1f9e55; border-color: #1f9e55; color: #fff; }
.btn.wa:hover { background: #17864a; }
.car-docs { margin-top: 8px; }
@media (max-width: 560px) { .sx-acts .btn { flex: 1 1 100%; justify-content: center; } .sx-sp { display: none; } }
.dgr-steps { margin: 0 0 10px; padding-left: 20px; font-size: .86rem; line-height: 1.45; display: grid; gap: 3px; }
.dgr-acts { align-items: center; }
.dgr-acts .muted { margin-right: auto; }


/* guest changes from the website, vehicles not known yet, passengers */
.callout.info { background: var(--info-bg, #e8f1fb); }
.callout.cflex { display: flex; gap: 10px; align-items: flex-start; }
.callout.cflex > .ic { flex: none; width: 18px; height: 18px; margin-top: 1px; }
.callout.req > div { flex: 1; line-height: 1.5; }
.callout.req .row-btns { margin-top: 10px; }
.veh-tbc { align-items: center; flex-wrap: wrap; }
.veh-tbc > span { flex: 1; min-width: 200px; }
.car-b small.car-pass { color: var(--ink, inherit); font-size: .8rem; }
.callout.bad { background: var(--bad-bg, #fbeceb); }
.callout.cflex > div { flex: 1; line-height: 1.5; }
.callout.cflex .row-btns { margin-top: 10px; }

/* invoices and quotes */
.inv-admin .inv { box-shadow: none; }
.inv-admin-acts { justify-content: flex-end; margin-top: 12px; }
.inv-ed-head, .inv-ed-row { display: grid; grid-template-columns: 1fr 120px 36px; gap: 8px; align-items: center; }
.inv-ed-head { font-size: .78rem; font-weight: 800; color: var(--muted); margin: 6px 0 4px; }
.inv-ed { display: grid; gap: 6px; margin-bottom: 8px; }
.inv-ed-row input { width: 100%; box-sizing: border-box; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; font: inherit; }
.inv-ed-row input[name=a] { text-align: right; }
.inv-ed-row input[readonly] { background: var(--line-2); color: var(--muted); }
.inv-ed-tot { margin: 10px 0 12px; font-size: 1.05rem; text-align: right; }

/* social media page */
.soc-steps { margin: 6px 0 0; padding-left: 20px; font-size: .86rem; display: grid; gap: 4px; }
.soc-row.off { opacity: .55; }
.soc-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; background: var(--line-2); color: var(--muted); }
.soc-ic.ig { background: #fbe7f0; color: #b1306d; } .soc-ic.fb { background: #e3edfb; color: #1b5fc1; }
.soc-ic .ic { width: 18px; height: 18px; }
.soc-acts { display: flex; gap: 4px; align-items: center; flex: none; }
.soc-acts .ic.up { transform: rotate(90deg); } .soc-acts .ic.down { transform: rotate(90deg); }
@media (max-width: 640px) { .soc-row { flex-wrap: wrap; } .soc-acts { width: 100%; justify-content: flex-end; } }

/* email signature */
.sig-prev { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px; margin-bottom: 12px; overflow-x: auto; color: #2a1b12; }
.sig-prev.sm { padding: 10px 12px; margin: 6px 0 0; transform-origin: left top; }
.sx-sig { margin-top: 4px; }
.sig-how { border-top: 1px solid var(--line); padding: 8px 0; }
.sig-how summary { cursor: pointer; font-weight: 800; }
.sig-how ol { margin: 8px 0 0; padding-left: 20px; font-size: .88rem; display: grid; gap: 4px; }

/* Dinokeng updates */
.dgr-row.off { opacity: .55; }
.dgr-th { width: 46px; height: 46px; border-radius: 8px; overflow: hidden; flex: none; display: grid; place-items: center; background: var(--line-2); color: var(--muted); }
.dgr-th img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* Settings > Quotes & invoices */
.doc-num { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 10px 12px; align-items: end; padding: 12px 0; border-top: 1px dashed var(--line); }
.doc-num > div b { display: block; }
.doc-num > div small { display: block; color: var(--muted, #7a6a5a); font-size: .8rem; }
.doc-num .fld { margin: 0; }
.doc-sep { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px dashed var(--line); }
.doc-sep > div b { display: block; }
.doc-sep > div small { display: block; color: var(--muted, #7a6a5a); font-size: .8rem; }
.doc-sep + .doc-num { border-top: 0; padding-top: 0; }
.doc-sep .switch { flex: none; }
.doc-next { grid-column: 1 / -1; margin: 0; font-size: .86rem; color: var(--muted, #7a6a5a); }
.doc-next b { color: var(--ink, #2a1b12); letter-spacing: .02em; }
@media (max-width: 640px) { .doc-num { grid-template-columns: 1fr 1fr; } .doc-num > div { grid-column: 1 / -1; } }

/* Needs attention: soft holds, right at the top */
.soft-alert { display: flex; gap: 12px; align-items: flex-start; width: 100%; text-align: left; margin: 0 0 10px; padding: 14px 16px; border: 2px solid #b23a2a; border-radius: 14px; background: #fdecea; color: #5a1a12; font: inherit; font-size: .95rem; line-height: 1.45; cursor: pointer; animation: soft-pulse 2.4s ease-in-out infinite; }
.soft-alert > .ic { width: 24px; height: 24px; flex: none; color: #b23a2a; margin-top: 1px; }
.soft-alert b { color: #7a1f14; }
.soft-alert .chev { margin-left: auto; align-self: center; width: 18px; height: 18px; color: #b23a2a; }
.soft-alert:hover { background: #fbe0dc; }
@keyframes soft-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(178,58,42,.0); } 50% { box-shadow: 0 0 0 5px rgba(178,58,42,.15); } }
@media (prefers-reduced-motion: reduce) { .soft-alert { animation: none; } }

/* ---------- the booking screen ---------- */
.d-panel { width: min(660px, 100%); }
.dh-bar { position: sticky; top: 0; z-index: 4; display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 20px; background: var(--card); border-bottom: 1px solid var(--line); min-height: 56px; }
.dh-ref { display: inline-flex; align-items: center; gap: 6px; font-size: .95rem; white-space: nowrap; }
.dh-ref b { letter-spacing: .02em; }
.dh-pills { display: inline-flex; flex-wrap: wrap; gap: 6px; margin-left: auto; }
.d-head { position: static; display: block; padding: 16px 20px 14px; background: var(--card); border-bottom: 1px solid var(--line); }
.dh-name { margin: 0 0 6px; font-family: var(--display); font-size: 1.6rem; line-height: 1.15; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.dh-name .pill { font-family: var(--font); font-size: .74rem; }
.dh-sum { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0 0 12px; color: var(--ink-2); font-size: .92rem; }
.dh-sum > span { display: inline-flex; align-items: center; gap: 6px; }
.dh-sum .ic { width: 16px; height: 16px; color: var(--sun-d); flex: none; }
.dh-money { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px 10px; padding: 12px 14px 10px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-sm); margin-bottom: 10px; }
.dh-money small { display: block; font-size: .74rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.dh-money b { font-family: var(--display); font-size: 1.25rem; }
.dh-bar-p { grid-column: 1 / -1; height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; }
.dh-bar-p i { display: block; height: 100%; background: var(--ok); border-radius: 6px; }
.dh-hold { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 10px; padding: 9px 12px; border-radius: var(--r-sm); background: var(--warn-bg); color: #6b3c00; font-size: .9rem; }
.dh-hold.bad { background: var(--bad-bg); color: #6d1d12; }
.dh-hold .ic { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.d-head .d-actions { margin: 4px 0 0; }
.d-more { position: relative; }
.d-more > summary { list-style: none; }
.d-more > summary::-webkit-details-marker { display: none; }
.d-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 6; min-width: 250px; padding: 6px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-sm); box-shadow: 0 16px 40px -16px rgba(42,27,18,.45); }
.d-menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 0; background: none; border-radius: 8px; text-align: left; font-weight: 700; }
.d-menu button:hover { background: var(--line-2); }
.d-menu button .ic { width: 18px; height: 18px; color: var(--ink-2); }
.d-menu button.danger-t, .d-menu button.danger-t .ic { color: var(--bad); }
.d-tabs { position: sticky; top: 56px; z-index: 3; display: flex; gap: 4px; padding: 8px 14px; background: var(--bg); border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.d-tabs::-webkit-scrollbar { display: none; }
.d-tabs button { flex: none; padding: 9px 14px; border: 0; border-radius: 999px; background: none; font-weight: 800; font-size: .9rem; color: var(--ink-2); white-space: nowrap; }
.d-tabs button:hover { background: var(--line-2); }
.d-tabs button.on { background: var(--ink); color: #fff; }
/* a short name for each tab on a phone, so all four fit without scrolling sideways */
.d-tabs .ts { display: none; }
@media (max-width: 640px) { .d-tabs .tl { display: none; } .d-tabs .ts { display: inline; } .d-tabs button { flex: 1 1 auto; padding: 9px 8px; } }
.d-body { padding: 14px 20px 40px; }
.d-contact { display: flex; flex-wrap: wrap; gap: 8px; }
.d-contact .chip { max-width: 100%; min-width: 0; }
.d-contact .ell { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px; }
.kv.kv2 { grid-template-columns: 110px 1fr; }
.note-li { position: relative; }
.note-form { display: flex; gap: 8px; margin: 0 0 12px; }
.note-form input { flex: 1; min-width: 0; }
.timeline li { position: relative; }
.timeline li > .icon-btn { margin-left: auto; align-self: center; }
.timeline li > .icon-btn + .icon-btn { margin-left: 2px; }
.d-body .brow-g b { white-space: normal; }   /* email subjects on a booking are shown in full */
.car-undo { justify-self: start; font-size: .82rem; margin-top: 2px; }
/* Edit booking: more stands on this booking (a group on more than one stand) */
.ex-chips { display: flex; flex-wrap: wrap; gap: 6px; max-height: 210px; overflow-y: auto; padding: 2px; }
.ex-chip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px 6px 8px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; font-size: .85rem; font-weight: 700; color: var(--ink); }
.ex-chip input { width: auto; margin: 0; accent-color: var(--sun); }
.ex-chip span { display: flex; flex-direction: column; line-height: 1.15; }
.ex-chip small { font-weight: 600; font-size: .72rem; color: var(--ok); }
.ex-chip.busy small { color: var(--bad); }
.ex-chip.busy:not(.on) { opacity: .55; cursor: not-allowed; }
.ex-chip.on { background: var(--warn-bg); box-shadow: inset 0 0 0 2px var(--sun); }
.ex-fld .hint { margin: 6px 0 0; }
.hist { list-style: none; margin: 6px 0 8px; padding: 0; display: grid; gap: 0; }
.hist li { display: grid; gap: 1px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: .88rem; overflow-wrap: anywhere; }
.hist li:last-child { border-bottom: 0; }
.hist small { font-size: .78rem; }
.note.bad-t { color: var(--bad); }
@media (max-width: 640px) {
  .dh-bar { padding: 8px 10px 8px 14px; min-height: 52px; }
  .dh-ref .muted { display: none; }
  .d-head { padding: 14px 14px 12px; }
  .dh-name { font-size: 1.35rem; }
  .dh-money { padding: 10px; }
  .dh-money b { font-size: 1.05rem; }
  .d-tabs { top: 52px; padding: 8px 10px; }
  .d-body { padding: 12px 12px 40px; }
  .d-head .d-actions .btn { flex: 1 1 auto; justify-content: center; }
  .d-menu { right: 0; left: auto; min-width: 240px; max-width: calc(100vw - 24px); }
  .kv.kv2 { grid-template-columns: 92px 1fr; }
}
.dh-hold.calm { background: var(--info-bg); color: #164d78; }
.dgr-how { margin: 0 0 10px; }
.dgr-how summary { cursor: pointer; font-weight: 800; font-size: .88rem; color: var(--sun-d); }
.dgr-how .dgr-steps { margin-top: 8px; }
/* Needs attention: a Done button on every item */
.attn li { display: flex; align-items: stretch; gap: 6px; }
.attn li > button:first-child { flex: 1; min-width: 0; }
.attn li > button.attn-x { flex: none; width: 40px; height: 40px; align-self: center; padding: 0; gap: 0; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--card); color: var(--muted); display: grid; place-items: center; }
.attn li > button.attn-x:hover { color: var(--ok); border-color: var(--ok); background: var(--ok-bg); }
.attn-x .ic { width: 18px; height: 18px; }
.legend .lg.out { background: #e6ddd0; border: 1px solid #cdbfac; }
.cal-swipe { display: none; margin: 4px 0 8px; }
@media (max-width: 760px) { .cal-swipe { display: flex; gap: 6px; align-items: center; } .cal-swipe .ic { width: 15px; height: 15px; } }
/* bookings: the extra filters fold away on phones */
.more-filters > summary { display: none; }
@media (max-width: 760px) {
  .more-filters { margin: 0 0 10px; }
  .more-filters > summary { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); font-weight: 800; font-size: .9rem; cursor: pointer; list-style: none; }
  .more-filters > summary::-webkit-details-marker { display: none; }
  .more-filters > summary .ic { width: 16px; height: 16px; }
  .more-filters[open] > summary { margin-bottom: 10px; }
}
/* edit pop-ups: Delete at the bottom, with its own "are you sure" */
.del-box { margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--line); }
.del-box > p { margin: 0 0 8px; display: flex; gap: 6px; align-items: flex-start; }
.del-box > p .ic { width: 15px; height: 15px; flex: none; margin-top: 2px; }
.del-confirm { margin-top: 4px; padding: 12px 14px; border: 1.5px solid var(--bad); border-radius: var(--r-sm); background: var(--bad-bg); }
.del-confirm p { margin: 0 0 10px; color: #6d1d12; }

/* ---------- Website wording and rate wording ---------- */
.wt-tips { display: flex; gap: 8px; align-items: flex-start; }
.wt-tips .ic { flex: none; margin-top: 2px; }
.wt-card .card-h h3 { font-size: 1rem; }
.wt-row { padding: 10px 0; border-top: 1px dashed var(--line); }
.wt-row:first-of-type { border-top: 0; padding-top: 0; }
.wt-row .fld { margin: 0; }
.wt-row textarea { resize: vertical; line-height: 1.5; }
.wt-row.changed input, .wt-row.changed textarea { border-color: var(--sun, #e8731c); background: #fffaf3; }
.wt-row .link-btn { margin-top: 6px; font-size: .82rem; display: inline-flex; gap: 5px; align-items: center; }
.wt-ch { font-style: normal; font-size: .68rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--sun-d, #b8561a); background: #fdebd6; padding: 1px 7px; border-radius: 999px; margin-left: 4px; }
.wt-set { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.wt-set .fld { margin: 0; }
.wt-set small { display: block; margin-top: 4px; font-size: .78rem; }
.rw-list { display: grid; gap: 0; }
.rw-row { display: grid; grid-template-columns: 1.1fr 1.6fr auto; gap: 10px 12px; align-items: end; padding: 10px 0; border-top: 1px dashed var(--line); }
.rw-row:first-child { border-top: 0; padding-top: 0; }
.rw-row .fld { margin: 0; }
.rw-amt { min-width: 92px; text-align: right; font-weight: 800; padding-bottom: 9px; }
.rw-amt .money-in { margin: 0; }
.rw-amt .card-of { display: none; }
@media (max-width: 720px) { .wt-set { grid-template-columns: 1fr; } .rw-row { grid-template-columns: 1fr; } .rw-amt { text-align: left; padding-bottom: 0; } }
.hero-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.hero-opt { position: relative; display: flex; flex-direction: column; border: 2px solid var(--line); border-radius: 14px; overflow: hidden; cursor: pointer; background: var(--card); transition: border-color .15s, box-shadow .15s; }
.hero-opt input[type=radio] { position: absolute; opacity: 0; }
.hero-opt img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #e9dfd0; display: block; }
.hero-opt > span { padding: 10px 12px 12px; display: block; }
.hero-opt b { display: block; }
.hero-opt small { display: block; color: var(--muted); font-size: .8rem; }
.hero-opt.on { border-color: var(--sun, #e8731c); box-shadow: 0 0 0 3px #fdebd6; }
.hero-opt:focus-within { outline: 3px solid #f4b740; outline-offset: 2px; }
.hero-up { margin-top: 8px; }
@media (max-width: 720px) { .hero-pick { grid-template-columns: 1fr; } .hero-opt { flex-direction: row; align-items: center; } .hero-opt img { width: 120px; flex: none; } }

/* ---------- the story writing tool inside a pop-up ---------- */
.m-card.xl:has(.story-host) { width: min(1040px, calc(100vw - 24px)); max-width: none; }
.story-fld { margin: 4px 0 14px; }
.story-host { border: 1px solid var(--line); border-radius: var(--r-sm, 10px); background: #fff; }
.story-host > textarea { width: 100%; border: 0; padding: 14px; font: inherit; resize: vertical; border-radius: inherit; }
.story-more { border: 1px dashed var(--line); border-radius: 12px; padding: 0 14px; margin: 0 0 14px; }
.story-more > summary { display: flex; gap: 10px; align-items: center; cursor: pointer; padding: 12px 0; list-style: none; }
.story-more > summary::-webkit-details-marker { display: none; }
.story-more > summary small { display: block; color: var(--muted); font-size: .8rem; font-weight: 500; }
.story-more[open] > summary { border-bottom: 1px dashed var(--line); margin-bottom: 12px; }
.front-check { background: #fff8e8; border: 1px solid #f1d9a0; border-radius: 12px; padding: 10px 12px; }
.pill.front { background: #fdebc8; color: #7a4a00; }
.pill.front i { background: #e8a100; }
.wk-days { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 12px; }
.wk-day { border: 1.5px solid var(--line); border-radius: 999px; padding: 7px 14px 7px 10px; margin: 0; background: var(--card); }
.wk-day.on { border-color: var(--sun, #e8731c); background: #fff4e6; font-weight: 800; }

/* the cover photo preview stays small so the story is not pushed far down */
.m-card.xl .post-img img { max-height: 170px; width: auto; max-width: 100%; }
/* the question mark above the writing tool: starts the tour */
.story-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.story-top .fld-l { margin: 0; }
.story-help { display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid var(--sun, #e8731c); background: #fff4e6; color: var(--sun-d, #b8561a); font: inherit; font-size: .84rem; font-weight: 800; border-radius: 999px; padding: 4px 14px 4px 5px; cursor: pointer; transition: background .15s, transform .15s; }
.story-help b { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--sun, #e8731c); color: #fff; font-size: .95rem; animation: story-help 2.6s ease-in-out 3; }
.story-help:hover { background: #ffe8cc; transform: translateY(-1px); }
.story-help[hidden] { display: none; }
@keyframes story-help { 0%, 100% { box-shadow: 0 0 0 0 rgba(232, 115, 28, .55); } 50% { box-shadow: 0 0 0 8px rgba(232, 115, 28, 0); } }
@media (prefers-reduced-motion: reduce) { .story-help b { animation: none; } }
/* social posts: the picture each card shows */
.soc-th { width: 64px; height: 42px; border-radius: 8px; overflow: hidden; flex: none; background: var(--line-2); }
.soc-th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.soc-pic { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 8px; }
.soc-pic > img, .soc-nopic { width: 176px; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 12px; background: var(--line-2); display: grid; place-items: center; color: var(--muted); }
.soc-pic-acts { display: flex; gap: 8px; flex-wrap: wrap; }

/* =========================================================
   Motion and feel (motion.js): steppers, rolling numbers,
   page entrances, gliding tabs, softer pop-ups and presses.
   ========================================================= */
* { scrollbar-width: thin; scrollbar-color: #d8c7b0 transparent; }
.side nav { scrollbar-color: #574233 transparent; }

/* number stepper: - [ 2 ] + */
.stp { display: flex; align-items: stretch; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: #fff; overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.stp:focus-within { border-color: var(--sun); box-shadow: 0 0 0 3px rgba(232, 115, 28, .18); }
.stp:hover:not(.off) { border-color: #dcc7aa; }
.stp:focus-within:hover { border-color: var(--sun); }
.fld .stp input, .stp input { flex: 1; min-width: 0; width: auto; height: auto; border: 0; border-radius: 0; background: none; padding: 0 2px; margin: 0; text-align: center; font-weight: 800; font-size: 1.08rem; font-variant-numeric: tabular-nums; color: var(--ink); box-shadow: none !important; outline: 0; -moz-appearance: textfield; appearance: textfield; }
.stp input::-webkit-outer-spin-button, .stp input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stp-b { flex: none; width: 42px; padding: 0; border: 0; background: none; color: var(--sun-d); display: grid; place-items: center; touch-action: manipulation; -webkit-tap-highlight-color: transparent; transition: background-color .15s, color .15s; }
.stp-dn { border-right: 1px solid var(--line-2); }
.stp-up { border-left: 1px solid var(--line-2); }
.stp-b:hover:not(:disabled) { background: #fff3e6; }
.stp-b:active:not(:disabled) { background: #ffe8d1; }
.stp-b:disabled { color: #d9cbb8; cursor: default; }
.stp-b .ic { width: 16px; height: 16px; stroke-width: 2.6; }
.stp-b.tap .ic { animation: stpTap .3s cubic-bezier(.3, 1.6, .6, 1); }
@keyframes stpTap { 40% { transform: scale(.7); } }
.stp.off { background: #faf6ef; }
.stp.off input { color: var(--muted); }
.stp.nudge { animation: stpNudge .32s; }
@keyframes stpNudge { 20% { transform: translateX(-3px); } 45% { transform: translateX(3px); } 70% { transform: translateX(-2px); } }

/* numbers roll up when they grow and down when they shrink */
[data-roll] { display: inline-block; }
.roll-up { animation: rollUp .34s cubic-bezier(.2, .9, .3, 1.25); }
.roll-dn { animation: rollDn .34s cubic-bezier(.2, .9, .3, 1.25); }
@keyframes rollUp { from { transform: translateY(62%); opacity: 0; } }
@keyframes rollDn { from { transform: translateY(-62%); opacity: 0; } }

/* a page slides in when you open it */
#view.enter > *:not(:has(.cart-bar, .savebar)) { animation: viewIn .45s cubic-bezier(.2, .8, .2, 1) backwards; }
#view.enter > :nth-child(2) { animation-delay: .04s; }
#view.enter > :nth-child(3) { animation-delay: .08s; }
#view.enter > :nth-child(4) { animation-delay: .12s; }
#view.enter > :nth-child(5) { animation-delay: .16s; }
#view.enter > :nth-child(n+6) { animation-delay: .2s; }
#view.enter .kpis > .kpi { animation: viewIn .5s cubic-bezier(.2, .8, .2, 1) backwards; }
#view.enter .kpis > .kpi:nth-child(2) { animation-delay: .05s; }
#view.enter .kpis > .kpi:nth-child(3) { animation-delay: .1s; }
#view.enter .kpis > .kpi:nth-child(4) { animation-delay: .15s; }
#view.enter .kpis > .kpi:nth-child(n+5) { animation-delay: .2s; }
@keyframes viewIn { from { opacity: 0; transform: translateY(12px); } }

/* the highlight glides from the old tab to the new one */
.tabs, .rp-tabs, .seg, .mail-boxes, .side nav { position: relative; }
.glider { position: absolute; z-index: 0; pointer-events: none; border-radius: 8px; transition: left .34s cubic-bezier(.3, 1.2, .5, 1), top .34s cubic-bezier(.3, 1.2, .5, 1), width .34s cubic-bezier(.3, 1.2, .5, 1), height .34s ease; }
.gliding > :not(.glider) { position: relative; z-index: 1; }
.tabs > .glider, .rp-tabs > .glider, .seg > .glider { background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.rp-tabs > .glider { border-radius: 9px; }
.tabs.gliding > .on, .rp-tabs.gliding > .on, .seg.gliding input:checked + span { background: transparent; box-shadow: none; }
.d-tabs > .glider { background: var(--ink); border-radius: 999px; }
.mail-boxes > .glider { background: var(--ink); }
.d-tabs.gliding > .on, .mail-boxes.gliding > .on { background: transparent; animation: inkIn .34s both; }
@keyframes inkIn { from { color: var(--ink-2); } }
.side nav > .glider { background: var(--sun); border-radius: 10px; }
.side nav.gliding > a.on { background: transparent; }

/* presses and hovers */
.btn, .icon-btn, .chip, .row-act, .tabs button, .rp-tabs button, .d-tabs button, .mail-boxes button, .seg span, .attn button, .brow, .side nav a, .tbl tbody tr, .kpi { transition: background-color .16s, color .16s, border-color .16s, box-shadow .16s, transform .14s cubic-bezier(.3, 1.4, .6, 1); }
.btn:not(.ghost):not(:disabled):hover { box-shadow: 0 8px 18px -10px rgba(42, 27, 18, .55); transform: translateY(-1px); }
.btn:not(:disabled):active, .icon-btn:not(:disabled):active, .chip:active, .row-act:active { transform: scale(.96); }
.btn:disabled, .icon-btn:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.btn.ghost:disabled { box-shadow: inset 0 0 0 1px var(--line); }
.chip.pop, .pos-it.pop { animation: chipOn .32s cubic-bezier(.3, 1.6, .6, 1); }
@keyframes chipOn { 40% { transform: scale(1.06); } }
.switch span::after { transition: transform .28s cubic-bezier(.3, 1.6, .5, 1), width .15s; }
.switch input:active + span::after { width: 19px; }
.switch input:checked:active + span::after { transform: translateX(11px); }
.pop-in { animation: badgeIn .36s cubic-bezier(.3, 1.8, .5, 1); }
@keyframes badgeIn { from { transform: scale(0); opacity: 0; } }

/* pop-ups: soft backdrop in, card fades and sinks out */
.m-back { animation: fadeIn .2s both; -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
#modal.swap .m-back { animation: none; }
#modal.swap .m-card { animation: swapIn .22s ease; }
@keyframes swapIn { from { opacity: 0; transform: scale(.985); } }
.d-back { -webkit-backdrop-filter: blur(1.5px); backdrop-filter: blur(1.5px); }
@keyframes fadeIn { from { opacity: 0; } }
.modal-ghost { position: fixed; inset: 0; z-index: 69; display: grid; place-items: center; padding: 16px; pointer-events: none; }
.modal-ghost .m-back { animation: fadeOut .2s forwards; }
.modal-ghost .m-card { animation: popOut .18s cubic-bezier(.4, 0, 1, 1) forwards; }
@keyframes fadeOut { to { opacity: 0; } }
@keyframes popOut { to { opacity: 0; transform: translateY(10px) scale(.97); } }
.toast { animation: toastIn .4s cubic-bezier(.2, 1.3, .4, 1); }
@keyframes toastIn { from { opacity: 0; transform: translateY(18px) scale(.95); } }
@keyframes sheetUp { from { transform: translateY(48px); opacity: 0; } }
@keyframes sheetDown { to { transform: translateY(60px); opacity: 0; } }
@media (max-width: 700px) {
  .m-card { animation: sheetUp .32s cubic-bezier(.2, .9, .2, 1); }
  .modal-ghost { padding: 10px; align-items: end; }
  .modal-ghost .m-card { animation: sheetDown .2s cubic-bezier(.4, 0, 1, 1) forwards; }
  .stp { height: 46px; }
  .stp-b { width: 44px; }
  .grid3 .stp-b { width: 32px; }
  .grid3 .stp-b .ic { width: 14px; height: 14px; }
}

/* small layout fixes from the walk-through */
.kpis { grid-template-columns: repeat(auto-fit, minmax(148px, 1fr)); }
.frange { display: inline-flex; align-items: center; gap: 10px; flex-wrap: nowrap; }
.mail-boxes { flex-wrap: wrap; overflow: visible; }
.cols > .card.flush > .tbl { min-width: 0; }
.card.flash { animation: flash 1.2s ease; }
@keyframes flash { 0%, 100% { box-shadow: var(--sh); } 25% { box-shadow: 0 0 0 3px rgba(232, 115, 28, .45), var(--sh); } }
@media (max-width: 700px) { .frange { display: flex; flex: 1 1 100%; } .frange .fdate { flex: 1 1 50%; } }
@media (prefers-reduced-motion: reduce) { .glider { display: none; } .m-back, .d-back { -webkit-backdrop-filter: none; backdrop-filter: none; } }
/* "/" shortcut hint in the top search */
.kbd { flex: none; display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; background: var(--bg); color: var(--muted); font: 800 .74rem var(--font); transition: opacity .15s; }
.top-search:focus-within .kbd { opacity: 0; }
@media (max-width: 900px), (hover: none) { .kbd { display: none; } }

/* product photos: the till, the products list and the product pop-up */
.pos-it .pos-img { display: grid; place-items: center; height: 82px; margin: -13px -13px 4px; border-radius: 11px 11px 0 0; overflow: hidden; background: var(--line-2); color: #c9b49a; }
.pos-it .pos-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.pos-it:hover:not(:disabled) .pos-img img { transform: scale(1.06); }
.pos-it .pos-img .ic { width: 26px; height: 26px; }
.pos-it:disabled .pos-img img { filter: grayscale(1); }
.prod-cell { display: flex; align-items: center; gap: 12px; }
.prod-thumb { flex: none; width: 46px; height: 46px; border-radius: 10px; overflow: hidden; background: var(--line-2); display: grid; place-items: center; color: #c9b49a; }
.prod-thumb img { width: 100%; height: 100%; object-fit: cover; }
.prod-thumb .ic { width: 20px; height: 20px; }
.prod-ph { display: grid; grid-template-columns: 150px 1fr; gap: 16px; align-items: start; margin: 4px 0 14px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: #fffaf3; }
.pp-cur { aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: var(--line-2); display: grid; place-items: center; color: #c9b49a; box-shadow: 0 6px 16px -10px rgba(42, 27, 18, .5); }
.pp-cur img { width: 100%; height: 100%; object-fit: cover; animation: badgeIn .35s cubic-bezier(.3, 1.4, .5, 1); }
.pp-cur .ic { width: 30px; height: 30px; }
.pp-side { display: grid; gap: 4px; min-width: 0; }
.pp-side > small { color: var(--muted); font-size: .8rem; }
.pp-side .row-btns { margin-top: 4px; }
.pp-picks { margin-top: 8px; }
.pp-picks > small { display: block; font-size: .74rem; font-weight: 800; color: var(--muted); margin-bottom: 6px; }
.pp-picks > div { display: flex; flex-wrap: wrap; gap: 6px; }
.pp-pick { width: 44px; height: 44px; padding: 0; border: 2px solid transparent; border-radius: 9px; overflow: hidden; background: var(--line-2); transition: transform .15s, border-color .15s; }
.pp-pick img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pp-pick:hover { transform: translateY(-2px); }
.pp-pick.on { border-color: var(--sun); box-shadow: 0 0 0 2px rgba(232, 115, 28, .25); }
@media (max-width: 700px) {
  .prod-ph { grid-template-columns: 1fr; }
  .pp-cur { max-width: 220px; }
  .pos-it .pos-img { height: 72px; }
  .tbl.prods .prod-thumb { width: 38px; height: 38px; }
}

/* Dinokeng vouchers: who has paid, beside each booking */
.vrow .vp { flex: none; }
.vrow .vsent { flex: none; }
.vrow .btn { flex: none; }
@media (max-width: 700px) {
  .vrow { flex-wrap: wrap; }
  .vrow .brow-g { flex: 1 1 calc(100% - 90px); }
  .brow.vrow .pill.vp, .brow.vrow .pill.vsent { display: inline-flex; }
  .vrow .vp { margin-left: 86px; }
  .vrow .vsent, .vrow .btn { margin-left: auto; }
}

/* Indemnities: the booking panel, the page filters and one signed form */
.ind-recs { display: grid; margin: 4px 0 8px; }
.ind-rec { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line-2); }
.ind-rec:last-child { border-bottom: 0; }
.ind-rec-i { width: 32px; height: 32px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--ok-bg); color: var(--ok); }
.ind-rec-b { flex: 1; min-width: 0; }
.ind-rec-b b { display: block; }
.ind-rec-b small { display: block; color: var(--muted); }
.ind-left { display: flex; gap: 6px; align-items: flex-start; color: var(--warn); margin: 6px 0 10px; }
.ind-acts-a { flex-wrap: wrap; }
.fld-inline { display: inline-flex; align-items: center; gap: 6px; font-size: .88rem; color: var(--ink-2); }
.fld-inline input { padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--card); font: inherit; color: inherit; }
.fld-inline input.on { border-color: var(--sun); background: #fff7ef; }
.ind-view .kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0 0 14px; }
.ind-view .kv dt { color: var(--muted); }
.ind-view .kv dd { margin: 0; }
.ind-sigv { display: grid; justify-items: start; gap: 4px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff; margin: 0 0 12px; }
.ind-sigv img { max-width: min(320px, 100%); height: auto; }
.ind-sigv small { color: var(--muted); border-top: 1px solid var(--line); padding-top: 4px; min-width: 220px; }
.m-card .ind-risks, .m-card .ind-status { margin-top: 12px; }

/* =========================================================
   Check-in sheet: big, plain rows for the gate; phone and tablet first
   ========================================================= */
.hello-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.gate-days { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 14px; }
.gate-days .chip { padding: 9px 16px; font-size: .9rem; }
.gate-date input { min-height: 40px; }
.gate-dayname { font-size: 1.05rem; margin-left: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.gate-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.gate-filters { align-items: center; }
.gate-filters .search { flex: 1 1 260px; }
.gate-filters .search input { font-size: 1rem; min-height: 46px; }
.gate-show { margin: 0; }
.gate-areas { align-items: center; margin-bottom: 14px; }
.gate-areas .chip { padding: 10px 16px; font-size: .92rem; }
.gate-areas select { min-height: 42px; }
.gate-quick { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.gate-list { display: grid; gap: 12px; }
.gate-card, .site-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; box-shadow: 0 1px 2px rgba(42, 27, 18, .05); }
.gate-card.done { opacity: .72; }
.gate-card.late { border-color: var(--bad); box-shadow: inset 4px 0 0 var(--bad); }
.gate-card > header, .site-card > header { display: flex; align-items: center; gap: 14px; }
.gate-st { flex: none; min-width: 92px; background: var(--ink); color: #fff; border-radius: 12px; padding: 8px 12px; text-align: center; line-height: 1.15; }
.gate-st b { display: block; font-size: 1.12rem; }
.gate-st small { display: block; font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; color: #f4b740; font-weight: 800; }
.gate-who { flex: 1; min-width: 0; }
.gate-who b { display: block; font-size: 1.14rem; line-height: 1.25; }
.gate-who small { display: block; color: var(--muted); font-size: .86rem; }
.bad-t { color: var(--bad); }
.gate-pay { flex: none; text-align: center; font-weight: 900; font-size: 1rem; padding: 8px 14px; border-radius: 12px; line-height: 1.15; }
.gate-pay small { display: block; font-size: .7rem; font-weight: 700; }
.gate-pay.ok { background: var(--ok-bg); color: var(--ok); }
.gate-pay.owes { background: #ffe45c; color: #2a1b12; box-shadow: inset 0 0 0 2px #2a1b12; }
.gate-cars { margin-top: 10px; display: grid; gap: 8px; }
.gate-car { display: flex; align-items: center; gap: 14px; padding: 10px 12px; background: #faf5ed; border-radius: 12px; }
.gate-veh { flex: 1; min-width: 0; }
.gate-veh b { display: block; }
.gate-veh small { display: block; color: var(--muted); font-size: .84rem; }
.gate-pills { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 5px; }
.gate-act { flex: none; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.gate-act .btn { min-height: 46px; padding-inline: 18px; font-size: .98rem; }
.gate-card > footer { display: flex; gap: 10px 16px; flex-wrap: wrap; align-items: center; margin-top: 10px; }
.gate-order { display: inline-flex; gap: 8px; align-items: flex-start; font-size: .88rem; background: var(--line-2); border-radius: 10px; padding: 7px 11px; max-width: 100%; }
.gate-order.todo { background: var(--warn-bg); }
.gate-order .ic { flex: none; margin-top: 2px; }
.gate-order small { display: block; color: var(--muted); }
.gate-foot-acts { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.gate-empty { padding: 34px 16px; background: var(--card); border: 1px dashed var(--line); border-radius: 16px; }
.gate-paper { margin-bottom: 12px; }
.gate-paper .btn { flex: none; }
/* a number plate, in the two parts it is read in */
.plate { display: inline-flex; align-items: stretch; border: 2px solid #1c120b; border-radius: 8px; overflow: hidden; background: #fff; font-family: 'Arial Narrow', Arial, sans-serif; font-weight: 800; letter-spacing: .04em; line-height: 1; white-space: nowrap; vertical-align: middle; }
.plate b { background: #ffd83d; color: #1c120b; padding: 5px 8px; font-size: 1.02rem; }
.plate i { font-style: normal; padding: 5px 8px; font-size: .92rem; color: #1c120b; }
.plate.big b { font-size: 1.45rem; padding: 8px 12px; }
.plate.big i { font-size: 1.15rem; padding: 8px 12px; display: flex; align-items: center; }
.plate.none { border-style: dashed; border-color: var(--line); color: var(--muted); font-weight: 700; font-size: .8rem; padding: 8px 10px; letter-spacing: 0; font-family: inherit; }
/* check-in pop-up: the shop order */
.hand-box { border: 1.5px solid var(--sun, #e8731c); background: #fff8ef; border-radius: 14px; padding: 12px 14px; margin: 12px 0; }
.hand-box > b { display: flex; gap: 7px; align-items: center; }
.hand-box p { margin: 4px 0 10px; font-size: 1.02rem; font-weight: 700; }
.hand-box p small { font-weight: 500; color: var(--muted); }
.seg.wrap { flex-wrap: wrap; }
/* site jobs */
.site-card > header { margin-bottom: 8px; }
.site-card > header .muted { flex: 1; }
.site-line { display: flex; align-items: flex-start; gap: 12px; padding: 10px 0; border-top: 1px dashed var(--line); }
.site-line > div { flex: 1; min-width: 0; }
.site-line small { display: block; color: var(--muted); font-size: .8rem; }
.site-line.done > div { text-decoration: line-through; color: var(--muted); }
.site-line.done small { text-decoration: none; }
.site-tick { flex: none; width: 26px; height: 26px; border: 2px solid var(--ink); border-radius: 7px; display: grid; place-items: center; margin-top: 1px; }
.site-line.done .site-tick { background: var(--ok); border-color: var(--ok); color: #fff; }
.site-tick .ic { width: 16px; height: 16px; }
/* typing in a paper sheet */
.paper-rows { display: grid; gap: 12px; }
.paper-row { border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px 12px; margin: 0; min-width: 0; }
.paper-row legend { padding: 0 6px; font-size: .95rem; }
.paper-row legend b { background: var(--ink); color: #fff; border-radius: 7px; padding: 2px 8px; margin-right: 4px; }
.paper-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px 12px; }
.paper-grid .fld { margin: 0; }
.paper-wide { grid-column: 1 / -1; }
.paper-checks { display: flex; gap: 8px 18px; flex-wrap: wrap; margin-top: 8px; align-items: center; }
.paper-checks .check { margin: 0; }
@media (max-width: 760px) {
  .gate-kpis { grid-template-columns: 1fr 1fr; }
  .gate-card > header { flex-wrap: wrap; gap: 10px; }
  .gate-who { flex: 1 1 60%; order: 2; }
  .gate-st { order: 1; }
  .gate-pay { order: 3; margin-left: auto; }
  .gate-card > header > .icon-btn { order: 4; }
  .gate-car { flex-wrap: wrap; }
  .gate-act { width: 100%; }
  .gate-act .btn { flex: 1; justify-content: center; }
  .gate-foot-acts { margin-left: 0; width: 100%; }
  .gate-foot-acts .btn { flex: 1; justify-content: center; }
  .paper-grid { grid-template-columns: 1fr 1fr; }
  .gate-dayname { width: 100%; margin: 0; }
}
.gate-order.note { background: #fff3b8; }
@media (max-width: 760px) { .page-h:has(+ .gate-tabs) p.muted { display: none; } .gate-kpis .kpi-s { display: none; } }

/* ---------- site jobs for workers: big ticks, stand notes, work log; roles ---------- */
.top-fill { flex: 1; }
button.site-tick { cursor: pointer; background: #fff; padding: 0; width: 34px; height: 34px; border-radius: 9px; color: #fff; transition: background .15s, border-color .15s; }
button.site-tick:hover { border-color: var(--ok); background: var(--ok-bg); }
button.site-tick:focus-visible { outline: 3px solid #f4b740; outline-offset: 2px; }
.site-line { align-items: center; }
.site-line .btn.green { min-height: 40px; padding-inline: 16px; }
.site-notes { margin-top: 10px; padding: 10px 12px; background: #fff8d9; border-radius: 12px; }
.site-notes > b { display: flex; gap: 6px; align-items: center; font-size: .82rem; margin-bottom: 4px; }
.site-notes details { margin-top: 6px; } .site-notes summary { cursor: pointer; font-size: .82rem; font-weight: 700; color: var(--muted); }
.site-note { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; margin: 0; padding: 6px 0; border-top: 1px dashed rgba(42, 27, 18, .14); }
.site-notes > .site-note:first-of-type { border-top: 0; }
.site-note span { flex: 1 1 60%; min-width: 0; }
.site-note small { color: var(--muted); font-size: .78rem; white-space: nowrap; }
.site-note .icon-btn { align-self: center; }
.site-note-st { background: var(--ink); color: #fff; border-radius: 7px; padding: 1px 8px; font-size: .78rem; }
.site-acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.site-extra { margin-top: 18px; }
.site-extra .site-note { padding: 8px 2px; }
.site-log li span b { margin-right: 4px; }
.role-info { margin: 0; display: grid; gap: 10px; }
.role-info > div { display: grid; grid-template-columns: 110px 1fr; gap: 10px; }
.role-info dt { font-weight: 800; } .role-info dd { margin: 0; color: var(--ink-2); }
.perm-key td { background: #fff8ef; font-weight: 700; }
@media (max-width: 760px) { .site-acts .btn { flex: 1; justify-content: center; } .site-line { flex-wrap: wrap; } .site-line > div { flex: 1 1 60%; } .role-info > div { grid-template-columns: 1fr; gap: 2px; } }

.site-line.done small { display: inline-block; width: 100%; text-decoration: none; }
@media (max-width: 760px) { .site-card > header .muted { order: 2; } }

/* ---------- credits: money kept from a cancelled booking (Payments > Credits, the cancel pop-up, the booking) ---------- */
.callout.ok { background: var(--ok-bg); }
.note.cr { background: var(--ok-bg); color: var(--ink); }
.cr-box .code, .note.cr .code, .callout .code { user-select: all; }
.cr-box .link-btn { vertical-align: baseline; }
.cr-msg { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 46vh; overflow-y: auto; }
.cr-opts { display: grid; gap: 8px; margin-bottom: 14px; }
.cr-opt { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; cursor: pointer; font-size: .9rem; }
.cr-opt input { margin-top: 3px; accent-color: var(--sun); width: 17px; height: 17px; flex: none; }
.cr-opt small { display: block; color: var(--muted); font-size: .82rem; margin-top: 2px; }
.cr-opt:has(input:checked) { border-color: var(--sun); background: #fff8ef; }
.cr-sub { padding: 2px 2px 0 12px; border-left: 3px solid var(--line); margin-left: 8px; }
.cr-sub .hint { margin: 0 0 6px; }
.credit-use small { display: block; margin-top: 2px; font-size: .8rem; }
.tbl.credits td { vertical-align: middle; }
.tbl.credits td[data-l="Code"] { white-space: nowrap; }
.tbl.credits td[data-l="Code"] .icon-btn { margin-left: 4px; vertical-align: middle; }
.tbl.credits td small { margin-top: 2px; }
.tbl.credits td small .link-btn { font-size: inherit; }
.tbl.credits .cr-note { font-style: italic; }
.tbl.credits tr.off td:not(.row-btn) { opacity: .6; }
.tbl.credits td.row-btn .btn { margin: 2px 0 2px 6px; }
@media (min-width: 701px) { .card.flush > .tbl.credits { min-width: 1080px; } }
@media (max-width: 700px) {
  .tbl.credits td[data-l="Amount"] { grid-column: 2; grid-row: 1; text-align: right; }
  .tbl.credits td[data-l="Code"], .tbl.credits td[data-l="Given"], .tbl.credits td[data-l="Used"], .tbl.credits td[data-l="Left"], .tbl.credits td[data-l="Use by"], .tbl.credits td[data-l="State"] { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: .84rem; text-align: left; }
  .tbl.credits td[data-l="Given"]::before { content: 'Given'; color: var(--muted); }
  .tbl.credits td[data-l="Used"]::before { content: 'Used'; color: var(--muted); }
  .tbl.credits td[data-l="Left"]::before { content: 'Left'; color: var(--muted); }
  .tbl.credits td[data-l="Use by"]::before { content: 'Use by'; color: var(--muted); }
  .tbl.credits td.row-btn .btn { margin: 0 6px 6px 0; }
}
.timeline .dot.pm-credit { background: #8a5cb8; }

/* a callout with a button at the end (thank-you, review link missing) */
.callout.cbtn { align-items: center; flex-wrap: wrap; }
.callout.cbtn > span { flex: 1; min-width: 200px; }
.th-acts { align-items: center; margin-top: 12px; }
@media (max-width: 560px) { .th-acts .btn { flex: 1 1 100%; justify-content: center; } }
/* paper indemnity forms and their scans */
.ind-rec.paper .ind-rec-i { background: var(--warn-bg); color: var(--warn); }
.ind-rec.paper.has .ind-rec-i { background: var(--ok-bg); color: var(--ok); }
.ind-rec { flex-wrap: wrap; }
.ind-rec .file-btn, .paper-row-i .file-btn, .paper-grp-h .file-btn { flex: none; }
.file-btn.busy { opacity: .55; pointer-events: none; }
.scan-who { display: grid; gap: 2px; margin: 4px 0 10px; }
.scan-view { margin: 4px 0 6px; }
.paper-grp { border: 1px solid var(--line); border-radius: 12px; padding: 4px 12px; margin-top: 10px; background: #fff; }
.paper-grp-h { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line-2); }
.paper-row-i { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line-2); }
.paper-row-i:last-child { border-bottom: 0; }
.paper-row-i > .ic { flex: none; width: 18px; height: 18px; color: var(--warn); }

/* ---------- New booking, step by step (the bar at the top, one step shown at a time) ---------- */
.nb-bar { list-style: none; display: flex; gap: 4px; margin: 0 0 14px; padding: 0; }
.nb-bar li { flex: 1; min-width: 0; }
.nb-bar button { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 4px; border: 0; border-bottom: 3px solid var(--line); background: none; padding: 2px 2px 8px; font: inherit; font-size: .74rem; font-weight: 800; color: var(--muted); cursor: pointer; }
.nb-bar button i { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--line-2); color: var(--ink-2); font-style: normal; font-size: .78rem; }
.nb-bar button i .ic { width: 13px; height: 13px; }
.nb-bar button.on { color: var(--ink); border-bottom-color: var(--sun); }
.nb-bar button.on i { background: var(--sun); color: #fff; }
.nb-bar button.done { color: var(--ok); border-bottom-color: var(--ok); }
.nb-bar button.done i { background: var(--ok-bg); color: var(--ok); }
.nb-bar button:focus-visible { outline: 3px solid #f4b740; outline-offset: 2px; border-radius: 6px; }
.nb-h { margin: 0 0 12px; font: 700 1.12rem var(--display); letter-spacing: 0; text-transform: none; color: var(--ink); display: flex; flex-direction: column; gap: 2px; }
.nb-h span { font: 800 .7rem var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.m-card.nb .m-body { min-height: min(430px, 58vh); }
.nb-foot [data-close] { margin-right: auto; }
.nb-foot .btn .ic { width: 16px; height: 16px; }
.nb-pay { margin-bottom: 10px; }
.nb-sub { margin: -2px 0 6px 8px; padding-bottom: 4px; }
.nb-sub .hint { margin: 6px 0; }
.nb-sub .check { margin: 8px 0 4px; }
.nb-sub .seg { margin: 6px 0 4px; }
.nb-sub .muted .ic { width: 14px; height: 14px; vertical-align: -2px; }
.nb-ticks .check { margin: 9px 0; }
.nb-ticks small { display: block; }
.nb-codes { margin: 0 0 6px 27px; padding: 2px 0 2px 12px; border-left: 3px solid var(--line); }
.nb-codes p { margin: 0 0 8px; }
.nb-code-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.nb-code-row .dgr-code { flex: 1 1 150px; width: auto; }
.nb-code-row .dgr-code::placeholder { text-transform: none; letter-spacing: 0; font-weight: 600; }
.nb-sum { row-gap: 10px; margin-bottom: 12px; }
.nb-sum dd { line-height: 1.5; }
.nb-sum dd .ic { width: 15px; height: 15px; vertical-align: -3px; }
@media (max-width: 480px) {
  .nb-bar button { font-size: .66rem; }
  .nb-sub, .nb-codes { margin-left: 0; }
}

/* ---------- "Where this booking is": the steps of a booking, at the top of its Overview ---------- */
.bk-prog { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; padding: 0; }
.bp-s { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: #fff; border-radius: 30px; padding: 4px 11px 4px 5px; font: inherit; font-size: .78rem; font-weight: 800; color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.bp-s i { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; font-style: normal; font-size: .7rem; background: var(--line-2); color: var(--ink-2); }
.bp-s i .ic { width: 12px; height: 12px; }
.bp-s.done { color: var(--ok); border-color: #cfe6cb; background: #f4faf2; }
.bp-s.done i { background: var(--ok); color: #fff; }
.bp-s.part { color: var(--info); border-color: #c9dff0; background: #f3f8fc; }
.bp-s.part i { background: linear-gradient(90deg, var(--info) 50%, var(--info-bg) 50%); color: transparent; }
.bp-s.todo { color: var(--warn); border-color: #f0d9ad; background: #fffaf0; }
.bp-s.todo i { background: var(--warn-bg); color: var(--warn); box-shadow: inset 0 0 0 2px currentColor; }
.bp-s.todo.later, .bp-s.na { color: var(--muted); border-color: var(--line); background: #fff; }
.bp-s.todo.later i, .bp-s.na i { background: var(--line-2); color: var(--muted); box-shadow: none; }
.bp-s.na span { text-decoration: line-through; }
.bp-s.on { box-shadow: 0 0 0 2px var(--ink); }
.bp-s:focus-visible { outline: 3px solid #f4b740; outline-offset: 2px; }
.bp-d { margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: var(--line-2); font-size: .88rem; line-height: 1.5; }
.bp-d p { margin: 0; }
.bp-d.done { background: var(--ok-bg); }
.bp-d.part { background: var(--info-bg); }
.bp-d.todo { background: var(--warn-bg); }
.bp-d.todo.later, .bp-d.na { background: var(--line-2); }
.bp-dl { display: block; font-size: .7rem; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 2px; }
.bp-d .row-btns { margin-top: 8px; }

/* "Keep the stand: do not release it" on an unpaid booking, and the tag in the bookings list */
.keep-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin: 0 0 10px; }
.keep-row .switch { position: relative; }
.keep-row small { font-size: .8rem; }
.tag-kept { display: inline-flex; align-items: center; gap: 3px; font-size: .66rem; font-weight: 900; text-transform: uppercase; letter-spacing: .05em; background: var(--info-bg); color: var(--info); padding: 1px 6px; border-radius: 5px; vertical-align: 2px; }
.tag-kept .ic { width: 10px; height: 10px; }

/* ---------- Still to do and last reminded: the bookings list, EFT payments, payments owed, indemnities, vouchers and the booking ---------- */
.chips.todo-f { align-items: center; margin-top: -6px; gap: 6px; }
.chips-l { flex: none; font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-right: 2px; }
.todo-f .chip { padding: 5px 11px; font-size: .8rem; }
.card.flush.bk-card { overflow-x: auto; }
.tbl.bk th, .tbl.bk td { padding-left: 10px; padding-right: 10px; }
.tbl.bk th:first-child, .tbl.bk td:first-child { padding-left: 14px; }
.td-todo { min-width: 150px; max-width: 230px; }
.td-todo .fin-tag, .td-todo .todo-c { margin: 0 4px 4px 0; }
.fin-tag { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px 2px 7px; border-radius: 30px; font-size: .74rem; font-weight: 800; white-space: nowrap; }
.fin-tag .ic { width: 12px; height: 12px; }
.fin-tag.ok { background: var(--ok-bg); color: var(--ok); }
.fin-tag.warn { background: var(--warn-bg); color: var(--warn); padding-left: 9px; }
.todo-c { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: 30px; border: 1px solid var(--line); background: #fff; font-size: .72rem; font-weight: 800; color: var(--ink-2); white-space: nowrap; }
.todo-c b { font-weight: 900; }
.todo-c.todo { color: var(--warn); border-color: #f0d9ad; background: #fffaf0; }
.todo-c.part { color: var(--info); border-color: #c9dff0; background: #f3f8fc; }
.td-nudge { max-width: 170px; }
.nudge-t { font-size: .84rem; }
.nudge-t.stale { color: var(--warn); font-weight: 700; }
.td-acts { white-space: nowrap; }
.td-acts .icon-btn { margin-left: 4px; }
.td-acts .icon-btn .ic { width: 16px; height: 16px; }
.d-menu.row-menu { position: fixed; right: auto; top: auto; z-index: 45; width: 300px; max-width: calc(100vw - 16px); max-height: calc(100vh - 16px); overflow-y: auto; }
.row-menu .rm-h { margin: 0 0 4px; padding: 6px 12px 8px; font-size: .72rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line-2); }
.row-menu button span { flex: 1; min-width: 0; }
.row-menu button small { display: block; font-weight: 600; color: var(--muted); }
.nudge-n { display: flex; align-items: center; gap: 5px; margin-top: 2px; font-size: .8rem; font-weight: 600; color: var(--muted); }
.nudge-n .ic { width: 13px; height: 13px; flex: none; }
.nudge-n.stale { color: var(--warn); }
.bp-d p.bp-n { margin-top: 6px; }
.bp-d .nudge-n { color: var(--ink-2); font-weight: 700; }
.eft-nudge { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: -2px 0 10px; font-size: .8rem; }
.eft-nl { font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.eft-nudge .nudge-n { margin-top: 0; }
.eft-late { font-weight: 800; color: var(--warn); }
.eft-card.stale { background: #fffaf0; }
.tbl.ledger.owed tr.stale td { background: #fffaf0; }
.attn-n { display: inline-flex; align-items: center; gap: 4px; margin-left: 4px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.attn-n .ic { width: 12px; height: 12px; }
@media (max-width: 700px) {
  .chips.todo-f { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-top: 0; margin-inline: -4px; padding: 2px 4px; }
  .chips.todo-f::-webkit-scrollbar { display: none; }
  .tbl td[data-l="Still to do"] { grid-column: 1 / -1; min-width: 0; max-width: none; margin-top: 4px; }
  .tbl td[data-l="Last reminded"] { grid-column: 1; max-width: none; font-size: .82rem; }
  .tbl td[data-l="Last reminded"] small { display: inline; margin-left: 6px; }
  .tbl td[data-l="Actions"] { grid-column: 2; text-align: right; }
  .tbl.ledger td[data-l="Last reminded"] { grid-column: 1 / -1; }
  .tbl.ledger td[data-l="Last reminded"]::before { content: 'Last reminded: '; color: var(--muted); }
}

/* =========================================================
   Settings > Staff & access: people, roles, who can do what
   ========================================================= */
.stf-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; margin-bottom: 16px; }
.stf-bar .page-tabs { margin-bottom: 0; }
.stf-intro { margin: -4px 0 14px; max-width: 760px; }
.callout > .ic, .hint > .ic { vertical-align: -4px; }
.tag.warn { background: var(--warn-bg); color: var(--warn); }
.tbl.stf td { vertical-align: middle; }
.tbl.stf select { min-width: 150px; }
.tbl.stf .stf-sum { display: block; margin-top: 4px; }
.tbl.stf tr.off td:not(.row-btn) { opacity: .6; }
.tbl.stf td.row-btn { text-align: right; }
.role-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; margin-bottom: 14px; }
.role-c { margin: 0; display: flex; flex-direction: column; }
.role-c .card-h { flex-wrap: nowrap; align-items: flex-start; margin-bottom: 6px; }
.role-c .card-h h3 { font: 700 1.15rem var(--display); overflow-wrap: anywhere; }
.role-tags { white-space: nowrap; }
.role-tags .tag { margin: 0 0 0 4px; }
.role-d { color: var(--ink-2); margin-bottom: 10px; }
.role-facts { list-style: none; margin: 0 0 12px; padding: 10px 12px; display: grid; gap: 6px; background: #faf5ed; border-radius: 10px; font-size: .84rem; font-weight: 700; }
.role-facts li { display: flex; gap: 8px; align-items: flex-start; }
.role-facts .ic { width: 15px; height: 15px; margin-top: 2px; color: var(--sun-d); }
.role-c .row-btns { margin-top: auto; }
.mx-wrap { overflow-x: auto; }
.mx { width: 100%; border-collapse: collapse; font-size: .86rem; }
.mx th, .mx td { padding: 8px 12px; border-bottom: 1px solid var(--line-2); text-align: center; }
.mx thead th { position: sticky; top: 0; background: #faf5ed; border-bottom: 1px solid var(--line); vertical-align: bottom; font-size: .8rem; min-width: 86px; }
.mx thead th small { display: block; font-weight: 600; color: var(--muted); white-space: nowrap; }
.mx th:first-child { text-align: left; position: sticky; left: 0; background: var(--card); min-width: 190px; font-weight: 700; z-index: 1; }
.mx thead th:first-child { background: #faf5ed; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); z-index: 2; }
.mx tr.mx-g th { text-align: left; background: #fff8ef; font-size: .7rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); padding-top: 10px; }
.mx td .ic { width: 17px; height: 17px; vertical-align: middle; stroke-width: 2.6; }
.mx-no { color: #cdbda6; font-weight: 900; }
.mx tbody tr:not(.mx-g):hover td, .mx tbody tr:not(.mx-g):hover th { background: #fbf6ee; }
.rl-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.rl-top p { margin: 6px 0 0; }
.rl-sum { display: flex; gap: 8px; align-items: flex-start; background: var(--ok-bg); color: #1f5a28; border-radius: 10px; padding: 10px 12px; font-size: .88rem; margin: 2px 0 14px; position: sticky; top: -8px; z-index: 2; }
.rl-sum.none { background: var(--warn-bg); color: #6b3d00; }
.rl-sum .ic { margin-top: 1px; }
.rl-groups { columns: 2; column-gap: 12px; }
.rl-g { border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 4px 12px 6px; margin-bottom: 12px; break-inside: avoid; }
.rl-g:first-child { column-span: all; background: #fff8ef; }
.rl-gh { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0 6px; border-bottom: 1px solid var(--line-2); }
.rl-gh h4 { margin: 0; color: var(--ink-2); }
.rl-row { display: flex; gap: 10px; align-items: flex-start; padding: 9px 0; border-bottom: 1px solid var(--line-2); cursor: pointer; }
.rl-row:last-child { border-bottom: 0; }
.rl-row input { flex: none; margin-top: 2px; width: 18px; height: 18px; accent-color: var(--sun); }
.rl-row input:disabled { cursor: not-allowed; }
.rl-row b { display: block; font-size: .9rem; line-height: 1.3; }
.rl-row small { display: block; color: var(--muted); line-height: 1.4; }
.rl-row em { display: block; font-style: normal; font-size: .78rem; font-weight: 700; color: var(--warn); margin-top: 3px; }
@media (max-width: 760px) {
  .rl-groups { columns: 1; }
  .stf-bar .btn { width: 100%; }
  .tbl.stf tr { grid-template-columns: 1fr; }
  .tbl.stf td[data-l="Email"] { color: var(--muted); }
  .tbl.stf td[data-l="Role"] { margin-top: 6px; }
  .tbl.stf td[data-l="Last seen"]::before { content: 'Last seen: '; color: var(--muted); }
  .tbl.stf td.row-btn { text-align: left; margin-top: 8px; }
  .tbl.stf td.row-btn .btn { margin: 0 6px 0 0; }
}

/* =========================================================
   Products > Count stock
   ========================================================= */
.tbl.cnt td { vertical-align: middle; }
.tbl.cnt .stp { width: 150px; }
.tbl.cnt tr.chg td { background: #fffaf0; }
.tbl.cnt td[data-l="Difference"] { min-width: 110px; }
.tbl.cnt td.row-btn { text-align: right; }
.cnt-d { display: inline-block; font-size: 1rem; font-weight: 900; font-variant-numeric: tabular-nums; padding: 2px 10px; border-radius: 8px; }
.cnt-d.up { background: var(--ok-bg); color: var(--ok); }
.cnt-d.dn { background: var(--bad-bg); color: var(--bad); }
.cnt-d.new { background: var(--info-bg); color: var(--info); font-size: .84rem; }
.check.cnt-start { margin: 0; align-items: center; font-weight: 700; cursor: pointer; }
.check.cnt-start input { margin-top: 0; }
.stp + .check.cnt-start { margin-top: 6px; }
.stock-last { display: flex; gap: 6px; align-items: flex-start; margin: -4px 0 10px; }
.stock-last .ic { width: 15px; height: 15px; margin-top: 2px; color: var(--sun-d); }
.stock-more { font-size: .82rem; color: var(--ink-2); margin: -4px 0 12px; }
.stock-more summary { cursor: pointer; font-weight: 800; }
.stock-more ul { margin: 6px 0 0; padding-left: 18px; display: grid; gap: 2px; }
@media (max-width: 700px) {
  .tbl.cnt tr { grid-template-columns: 1fr auto; align-items: center; gap: 8px 12px; }
  .tbl.cnt td[data-l="Product"] { grid-column: 1; grid-row: 1; }
  .tbl.cnt td[data-l="Before"] { grid-column: 2; grid-row: 1; text-align: right; font-size: .82rem; }
  .tbl.cnt td[data-l="Before"]::before { content: 'Before: '; color: var(--muted); }
  .tbl.cnt td[data-l="Count"] { grid-column: 1; }
  .tbl.cnt td[data-l="Difference"] { grid-column: 2; text-align: right; min-width: 0; }
  .tbl.cnt td.row-btn { grid-column: 1 / -1; text-align: left; }
  .tbl.cnt td.row-btn .btn { margin: 0; }
  .tbl.cnt td.row-btn:empty { display: none; }
}

/* =========================================================
   Settings > Message templates: the list and the wording editor
   ========================================================= */
.tpl-list { padding: 0; }
.tpl-row { display: grid; grid-template-columns: minmax(220px, 1.1fr) 1.4fr auto; gap: 6px 18px; align-items: center; width: 100%; text-align: left; border: 0; border-bottom: 1px solid var(--line-2); background: none; padding: 14px 16px; color: var(--ink); }
.tpl-row:last-child { border-bottom: 0; }
.tpl-row:hover { background: #fbf6ee; }
.tpl-row-t b { font-size: .95rem; }
.tpl-row-t small { display: block; color: var(--ink-2); margin-top: 2px; line-height: 1.4; }
.tpl-row-t .tag { margin: 0 0 0 4px; vertical-align: 1px; }
.tpl-row-p { color: var(--muted); font-size: .82rem; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tpl-row-go { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: .82rem; color: var(--sun-d); white-space: nowrap; }
.tpl-row-go .ic { width: 15px; height: 15px; }
.tpl-when { display: flex; gap: 6px; align-items: flex-start; margin-bottom: 12px; }
.tpl-when .ic { width: 15px; height: 15px; margin-top: 2px; }
.tpl-vars { background: #fff8ef; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px 4px; margin-bottom: 14px; }
.tpl-vars .seg { flex-wrap: wrap; margin-bottom: 6px; }
.tpl-vars .hint { margin: 0 0 8px; }
.tpl-ed { display: grid; grid-template-columns: 1.15fr 1fr; gap: 20px; align-items: start; }
.tpl-ed textarea { min-height: 300px; font-size: .9rem; }
.tpl-ph .fld-l small { font-weight: 600; }
.tpl-ph-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px; }
.tpl-ph-b { display: grid; gap: 1px; text-align: left; border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 7px 10px; color: var(--ink); }
.tpl-ph-b:hover { border-color: var(--sun); background: #fff8ef; }
.tpl-ph-b b { font-size: .82rem; color: var(--sun-d); font-family: ui-monospace, Consolas, monospace; }
.tpl-ph-b small { color: var(--ink-2); line-height: 1.3; }
.tpl-ph details { margin-top: 10px; }
.tpl-ph summary { cursor: pointer; font-weight: 800; font-size: .82rem; color: var(--ink-2); margin-bottom: 8px; }
.tpl-ed-r { position: sticky; top: 0; }
.tpl-prev { border: 1px solid var(--line); border-radius: 12px; background: #fffefb; padding: 12px 14px; margin-bottom: 12px; }
.tpl-prev > b { display: block; padding-bottom: 8px; margin-bottom: 8px; border-bottom: 1px dashed var(--line); overflow-wrap: anywhere; }
.tpl-prev .tpl { background: none; padding: 0; max-height: 360px; color: var(--ink); font-size: .86rem; overflow-wrap: anywhere; }
.tpl-ed .callout { margin: -2px 0 12px; }
.tpl-ed .callout p { margin: 6px 0 0; }
.tpl-ed .callout .link-btn { font-size: .86rem; margin-right: 10px; }
[data-tpl-isstd] .ic { width: 14px; height: 14px; vertical-align: -2px; color: var(--ok); }
[data-thanks-prev] { margin-bottom: 4px; }
@media (max-width: 860px) {
  .tpl-ed { grid-template-columns: 1fr; }
  .tpl-ed-r { position: static; }
  .tpl-row { grid-template-columns: 1fr; }
  .tpl-row-p { display: none; }
}

/* =========================================================
   Shop: typed quantities, selling to a business, owed by businesses
   ========================================================= */
.qty-in { width: 46px; height: 30px; border: 1px solid var(--line); border-radius: 8px; background: #fff; text-align: center; font-weight: 900; font-size: .95rem; font-variant-numeric: tabular-nums; padding: 0 4px; }
.qty-in:focus { outline: 0; border-color: var(--sun); box-shadow: 0 0 0 3px rgba(232, 115, 28, .18); }
.qty .icon-btn:disabled { opacity: .4; cursor: not-allowed; }
.biz-box { background: #fff8ef; border: 1px solid var(--line); border-radius: 12px; padding: 12px 12px 10px; margin: -4px 0 12px; }
.biz-box .fld { margin-bottom: 8px; }
.biz-box p { margin: 6px 0 0; }
.biz-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.biz-pick .chip { padding: 5px 11px; font-size: .8rem; }
.biz-pick .link-btn { margin-left: auto; }
.mth.pm-account i { background: #b7791f; }
.for-biz { font-weight: 800; }
.rc-for { margin: 8px 0 4px; }
.owed-biz { margin-top: 16px; }
.pos-wrap + .owed-biz, .cart-bar + .owed-biz { margin-bottom: 0; }
.owed-biz .card-h { margin-bottom: 4px; }
.ob-tot { font: 700 1.3rem var(--display); }
.ob-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line-2); }
.ob-n { flex: 1; min-width: 0; }
.ob-n b { display: block; }
.ob-n small { color: var(--muted); }
.ob-amt { font-variant-numeric: tabular-nums; white-space: nowrap; }
.ob-sales { display: grid; gap: 2px; margin-bottom: 12px; }
.ob-sales .check { margin: 0; padding: 8px 0; border-bottom: 1px dashed var(--line); align-items: flex-start; cursor: pointer; }
.ob-sales .check span { flex: 1; min-width: 0; }
.ob-sales .check > b { white-space: nowrap; font-variant-numeric: tabular-nums; }
.biz-row { border: 1px solid var(--line); border-radius: 12px; padding: 12px 12px 2px; margin-bottom: 10px; background: #fff; }
.biz-row .check { margin: 0 0 10px; }
@media (max-width: 700px) {
  .ob-row { flex-wrap: wrap; }
  .ob-row .btn { width: 100%; }
}

/* ---------- Promotions ---------- */
.promo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; margin-bottom: 6px; }
.promo-card { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.promo-card.quiet { background: #fbf7f0; box-shadow: none; }
.promo-card.quiet .promo-get { color: var(--ink-2); }
.promo-card.quiet .promo-get .ic { color: var(--muted); }
.promo-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.promo-h h3 { font: 700 1.12rem/1.25 var(--display); margin-bottom: 6px; }
.promo-h .tag { margin: 0 0 0 4px; vertical-align: middle; }
.promo-h .switch { flex: none; margin-top: 2px; }
.promo-get { display: flex; align-items: center; gap: 9px; margin: 0; font-size: 1.05rem; }
.promo-get .ic { width: 22px; height: 22px; color: var(--sun); }
.promo-blurb { margin: 0; padding: 9px 12px; background: var(--line-2); border-radius: 10px; font-size: .88rem; color: var(--ink-2); }
.promo-when { display: flex; gap: 8px; align-items: flex-start; margin: 0; font-size: .88rem; color: var(--ink-2); }
.promo-when .ic { width: 16px; height: 16px; margin-top: 2px; color: var(--muted); }
.promo-card .card-f { margin-top: auto; }
.promo-acts { margin-top: 0; }
.promo-quick-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }
.promo-q { display: flex; align-items: center; gap: 12px; text-align: left; border: 1px dashed #dcc7aa; background: #fffaf3; border-radius: 12px; padding: 12px 14px; color: var(--ink); transition: border-color .15s, background-color .15s; }
.promo-q:hover { border-color: var(--sun); border-style: solid; background: #fff3e6; }
.promo-q > .ic { width: 24px; height: 24px; color: var(--sun); }
.promo-q > .ic.add { width: 18px; height: 18px; color: var(--sun-d); margin-left: auto; }
.promo-q span { flex: 1; min-width: 0; }
.promo-q b { display: block; line-height: 1.3; }
.promo-q small { color: var(--muted); }
/* the form */
.pm-form .m-h { color: var(--ink-2); }
.pm-kinds { margin-bottom: 4px; }
.pm-sub { margin: -2px 0 6px 8px; padding-top: 6px; }
.pm-sub .fld { margin-bottom: 8px; }
.pm-num { max-width: 300px; }
.grid2 > .pm-num { max-width: none; }
.pm-sugg { margin: -6px 0 4px; font-size: .82rem; color: var(--muted); min-height: 0; }
.pm-tight { margin: -6px 0 12px; }
.pm-areas { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-bottom: 4px; }
.pm-areas .check { margin: 4px 0; }
.pm-form .switch { margin: 2px 0 12px; font-size: .9rem; }
.pm-example { border: 1px solid var(--line); }
.pm-example.ok { background: var(--ok-bg); border-color: #cfe6cb; }
.pm-example b { font-size: 1rem; line-height: 1.4; }
/* promotions on a new booking */
.nb-promos { margin-top: 12px; padding: 12px 14px 6px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.nb-promos .check { margin: 6px 0 8px; }
.nb-promos .check small { display: block; }
.nb-promos p { margin: 0 0 6px; }
.qb-row.promo { font-weight: 700; color: var(--ok); font-size: .9rem; }
.qb-row.promo .ic { width: 15px; height: 15px; vertical-align: -2px; margin-right: 6px; }
/* on the booking, and at the gate */
.promo-line { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 8px; font-size: .9rem; }
.promo-line .ic { width: 17px; height: 17px; margin-top: 2px; color: var(--sun); }
.free-box { display: flex; gap: 10px; align-items: center; background: var(--ok-bg); border-radius: 10px; padding: 10px 12px; font-size: .9rem; }
.free-box.todo { background: var(--warn-bg); }
.free-box > .ic { flex: none; }
.free-box > div { flex: 1; min-width: 0; }
.free-box small { display: block; color: var(--ink-2); }
.hand-box.free { border-color: var(--ok); background: #f3faf1; }
.hand-box.free .check { margin: 0; }
.hand-box.free .check small { display: block; }
.rp-promo-sum { margin: 0 0 12px; font-size: .95rem; }
.rp-promo-sum b { font: 700 1.3rem var(--display); margin-right: 4px; }

/* ---------- Game drives: the online switch, the set-up, the calendar ---------- */
.gd-setup-card { display: grid; grid-template-columns: 1.3fr 1fr; gap: 18px; align-items: start; }
.gd-online .switch { font-size: .95rem; margin-bottom: 6px; }
.gd-online .switch b { font-weight: 800; }
.gd-online p { margin: 0; }
.gd-online .callout { margin: 10px 0 0; }
.gd-setup { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; border-left: 1px solid var(--line); padding-left: 18px; }
.gd-setup h4 { margin-bottom: 6px; }
.gd-setup p { margin: 0 0 2px; font-size: .9rem; }
.gd-slot li { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; border-top: 1px solid var(--line-2); padding: 3px 0; }
.gd-slot li:first-child { border-top: 0; }
.gd-slot li button { width: auto; flex: 1 1 200px; }
.gd-meta { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.gd-meta .tag { margin: 0; }
.gd-ref { font-size: .78rem; font-weight: 800; color: var(--sun-d); cursor: pointer; white-space: nowrap; }
.gd-ref:hover { text-decoration: underline; }
.gd-noguide { display: flex; align-items: center; gap: 5px; font-weight: 700; }
.gd-noguide .ic { width: 14px; height: 14px; }
.gd-flagged { border-color: #efc9a0; background: #fffaf2; }
.gd-flagged .brow { flex-wrap: wrap; }
.gdc-nav { flex-wrap: nowrap; }
.gdc-month { min-width: 150px; text-align: center; font: 700 1.05rem var(--display); }
.gdc-quick { margin: 0 0 12px; }
.gdc-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.gdc-dow { font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); text-align: center; padding: 2px 0 4px; }
.gdc-day { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-height: 78px; padding: 7px 8px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); text-align: left; font-size: .76rem; line-height: 1.3; transition: border-color .15s, background-color .15s, box-shadow .15s; }
.gdc-day > b { font-size: .92rem; }
.gdc-day:not(:disabled):hover { border-color: var(--sun); box-shadow: 0 0 0 3px rgba(232, 115, 28, .14); }
.gdc-day.on { background: var(--ok-bg); border-color: #b9dab4; }
.gdc-day.on > b { color: var(--ok); }
.gdc-day.today { box-shadow: inset 0 0 0 2px var(--sun); }
.gdc-day:disabled { cursor: default; }
.gdc-day.past { background: none; border-style: dashed; color: var(--muted); opacity: .6; }
.gdc-t { display: block; color: var(--ink-2); font-weight: 700; white-space: nowrap; }
.gdc-t i { font-style: normal; font-weight: 600; }
.gdc-t.full { color: var(--bad); }
.gdc-t.lost { color: var(--warn); white-space: normal; }
.gt-row { display: grid; grid-template-columns: 1fr 140px 38px; gap: 0 10px; align-items: end; }
.gt-row .icon-btn { margin-bottom: 12px; color: var(--bad); }
.gt-form [data-gt-add] { margin-bottom: 6px; }
.gt-sub { display: block; }
.gd-pick { max-height: 300px; overflow-y: auto; margin-bottom: 10px; padding: 2px; }
.gd-pick .cr-opt.full { color: var(--muted); background: #faf6ef; }
.gd-pick .callout { margin: 0; }
.gd-other { margin-bottom: 10px; }
@media (max-width: 900px) {
  .gd-setup-card { grid-template-columns: 1fr; }
  .gd-setup { border-left: 0; border-top: 1px solid var(--line); padding: 14px 0 0; }
}
@media (max-width: 700px) {
  .promo-grid { grid-template-columns: 1fr; }
  .free-box { flex-wrap: wrap; }
  .gdc-grid { gap: 3px; }
  .gdc-day { min-height: 62px; padding: 5px 4px; font-size: .68rem; border-radius: 8px; }
  .gdc-t i { font-size: 0; }
  .gdc-t i::before { content: attr(data-s); font-size: .68rem; }
  .gdc-month { min-width: 0; flex: 1; }
  .gt-row { grid-template-columns: 1fr 110px 38px; }
}

/* ---------- the live version: the bar when the server cannot be reached, signing in again, sign-in messages ---------- */
.live-bar { position: fixed; z-index: 140; left: 0; right: 0; top: 0; padding: 9px 16px; background: #5a3b12; color: #fff; font-weight: 700; font-size: .88rem; line-height: 1.4; text-align: center; box-shadow: 0 6px 20px -8px rgba(0, 0, 0, .5); }
.live-bar[hidden] { display: none; }
.relogin { position: fixed; inset: 0; z-index: 130; display: grid; place-items: center; padding: 24px 16px; background: rgba(27, 17, 11, .82); overflow: auto; }
.login-err { color: var(--bad); background: var(--bad-bg); border-radius: 10px; padding: 9px 12px; font-weight: 700; font-size: .88rem; margin: 2px 0 12px; text-align: left; }
.login-card .login-help { margin: 12px 0 10px; }
.login-card .link-btn { display: block; margin: 12px auto 0; }
.login-card .fld small { display: block; margin-top: 4px; }
.bk-list a.link-btn { display: inline-flex; align-items: center; gap: 5px; text-decoration: none; }
.bk-list .ic { width: 15px; height: 15px; }

/* ---------- bringing in people and bookings from the previous system (Q2B): Settings > Data & privacy ---------- */
.m-card.xl.qb-form { width: min(1040px, 100%); }
.qb-how { margin: 0 0 14px; padding-left: 20px; font-size: .92rem; }
.qb-how li { margin-bottom: 4px; }
.qb-files { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; }
.qb-files li { display: flex; gap: 10px; align-items: flex-start; background: var(--ok-bg); border-radius: 10px; padding: 10px 12px; font-size: .9rem; }
.qb-files li.bad { background: var(--bad-bg); }
.qb-files li.old { background: var(--line-2); color: var(--ink-2); }
.qb-files li > .ic { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--ok); }
.qb-files li.bad > .ic { color: var(--bad); }
.qb-files li.old > .ic { color: var(--muted); }
.qb-files li > span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.qb-files small { display: block; color: var(--ink-2); font-size: .84rem; }
.qb-sum { display: grid; gap: 6px; margin-bottom: 16px; }
.qb-line { background: #faf5ed; border-radius: 10px; padding: 9px 12px; font-size: .92rem; min-width: 0; }
div.qb-line, .qb-line > summary { display: flex; gap: 10px; align-items: baseline; }
.qb-line > summary { cursor: pointer; list-style: none; }
.qb-line > summary::-webkit-details-marker { display: none; }
.qb-line > summary::after { content: 'Show'; margin-left: auto; padding-left: 8px; color: var(--sun-d); font-weight: 800; font-size: .8rem; }
.qb-line[open] > summary::after { content: 'Hide'; }
.qb-line > summary:focus-visible { outline: 3px solid #f4b740; outline-offset: 3px; border-radius: 6px; }
.qb-n { flex: none; min-width: 3.2em; text-align: right; font: 700 1.15rem var(--display); }
.qb-n.ok { color: var(--ok); }
.qb-n.bad { color: var(--bad); }
.qb-n.warn { color: var(--warn); }
.qb-det { margin-top: 10px; }
.qb-det .callout { margin-top: 0; }
.qb-scroll { max-height: 300px; overflow: auto; background: var(--card); border: 1px solid var(--line); border-radius: 10px; }
.tbl.qb-mini { font-size: .82rem; }
.tbl.qb-mini th, .tbl.qb-mini td { padding: 6px 10px; }
.qb-bar { position: sticky; top: 0; z-index: 2; display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; justify-content: space-between; background: var(--card); padding: 8px 0; }
.qb-count { margin: 0; font-size: .95rem; }
.qb-count b { font: 700 1.15rem var(--display); }
.qb-list { margin-bottom: 10px; overflow-x: auto; }
.tbl.qb td { padding: 10px 12px; }
.tbl.qb .qb-note { max-width: 200px; font-size: .82rem; color: var(--ink-2); overflow-wrap: anywhere; }
.tbl.qb .qb-stand { min-width: 220px; }
.tbl.qb td small .pill { margin-top: 3px; }
.tbl.qb td small .tag { margin: 4px 0 0; white-space: normal; }
.tbl.qb tr.qb-has select { border-color: var(--ok); background: var(--ok-bg); }
.tbl.qb tr.qb-wait select { border-color: var(--bad); }
.qb-msg { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.qb-msg:empty { display: none; }
.qb-msg .tag { margin: 0; }
.qb-msg .pill { white-space: normal; }
.qb-msg .tag { white-space: normal; }
.tbl.qb .qb-ord { margin-top: 4px; color: var(--ink-2); }
/* the stands of one reservation sit under each other and read as one */
.tbl.qb tr.qb-more td { border-bottom-color: transparent; padding-bottom: 4px; }
.tbl.qb tr.qb-sub td { padding-top: 4px; }
.tbl.qb tr.qb-sub td[data-l="Guest"] { padding-left: 28px; }
.tbl.qb tr.qb-sub td[data-l="Guest"] b { font-weight: 600; color: var(--ink-2); }
.qb-clash { margin: 0; width: 100%; font-size: .84rem; }
.qb-clash .check { margin: 8px 0 0; font-weight: 800; }
/* step 4: the amounts that may be a credit, in groups */
.qb-crg { margin: 0 0 14px; }
.qb-crg > summary { cursor: pointer; display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; padding: 8px 0; font-size: 1rem; }
.qb-crg > summary .tag { margin: 0; }
.qb-crg > summary small { flex-basis: 100%; color: var(--ink-2); font-size: .85rem; font-weight: 400; }
.qb-crg > summary:focus-visible { outline: 3px solid #f4b740; outline-offset: 3px; border-radius: 6px; }
.qb-crall { margin: 0 0 8px; }
.tbl.qb .qb-crwhy { max-width: 300px; }
.tbl.qb .qb-later { color: var(--ink-2); }
.tbl.qb .qb-later .ic { width: 13px; height: 13px; vertical-align: -2px; }
.tbl.qb tr.qb-has td[data-l="Credit"] .check { color: var(--ok); }
.qb-cramt { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; }
.qb-cramt input { width: 6.5em; text-align: right; }
.qb-cramt input.bad { border-color: var(--bad); }
.qb-prog { padding: 8px 0 4px; }
/* Erase all client data: red, and says plainly that it brings nothing in */
.erase-card { border: 2px solid var(--bad); }
.erase-card .card-h h3 { color: var(--bad); display: flex; gap: 8px; align-items: center; }
.erase-card .card-h h3 .ic { width: 20px; height: 20px; }
.erase-not { margin: 0 0 6px; color: var(--bad); font-size: 1.02rem; }
.erase-big { font-size: 1rem; }
.erase-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 12px 0; }
.erase-cols h4 { margin: 0 0 6px; font-size: .95rem; }
.erase-list { margin: 0; padding-left: 18px; font-size: .9rem; }
.erase-list li { margin-bottom: 3px; }
.erase-list.keep li::marker { color: var(--ok); }
.erase-shop { margin: 4px 0 12px; }
@media (max-width: 640px) { .erase-cols { grid-template-columns: 1fr; } }
.qb-track { height: 10px; border-radius: 10px; background: var(--line-2); overflow: hidden; margin: 8px 0; }
.qb-track i { display: block; height: 100%; background: var(--ok); border-radius: 10px; transition: width .3s; }
@media (max-width: 700px) {
  .tbl.qb tr { grid-template-columns: 1fr auto; gap: 4px 12px; }
  .tbl.qb td { padding: 0; }
  .tbl.qb tr.qb-more { border-bottom-color: transparent; padding-bottom: 4px; }
  .tbl.qb tr.qb-sub { padding-top: 4px; padding-left: 28px; }
  .tbl.qb tr.qb-sub td[data-l="Guest"] { padding-left: 0; }
  .tbl.qb td[data-l="Guest"] { grid-column: 1; }
  .tbl.qb td[data-l="Total"] { grid-column: 2; grid-row: 1; text-align: right; }
  .tbl.qb td[data-l="Dates"], .tbl.qb td[data-l="Note"], .tbl.qb td[data-l="Stand"] { grid-column: 1 / -1; max-width: none; }
  .tbl.qb td[data-l="Dates"] small { display: inline; margin-left: 6px; }
  .tbl.qb .qb-stand { min-width: 0; }
  .tbl.qb .qb-stand select { min-height: 44px; }
  .tbl.qb-mini tr { display: block; padding: 8px 10px; }
  .tbl.qb-mini td { display: inline; padding: 0; }
  .tbl.qb-mini td + td::before { content: ' · '; color: var(--muted); }
  .qb-n { min-width: 2.2em; }
  .qb-count { flex: 1 1 100%; }
}

/* ---------- Settings > Payments: card payments with Yoco ---------- */
.pay-kv { grid-template-columns: minmax(120px, 210px) 1fr; margin: 12px 0 14px; }
.pay-kv dd { overflow-wrap: anywhere; }
.pay-kv code, .pay-url code, .yc-form code { font-family: ui-monospace, Consolas, monospace; font-size: .86rem; }
.rule .switch, .rule .seg, .rule .money-in { flex: none; }
.rule .seg { margin-bottom: 0; }
.rule .callout { margin: 8px 0 0; }
.rule .pay-ex { font-weight: 700; margin-top: 6px; }
[data-pay-choices] > .callout { margin: 12px 0 2px; }
.pay-note { padding: 14px 0 6px; border-bottom: 1px solid var(--line-2); }
.pay-note textarea { min-height: 76px; }
.pay-note .tpl { margin-bottom: 12px; }
.pay-note > p { margin: 0 0 12px; }
.pay-url { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; background: var(--line-2); border-radius: 10px; padding: 10px 12px; margin: 8px 0 12px; }
.pay-url code { flex: 1; min-width: 180px; font-size: .95rem; font-weight: 700; overflow-wrap: anywhere; }
.yc-form .m-body p { line-height: 1.55; }
.yc-form .yc-links { margin: 4px 0 10px; }
.yc-list { margin: 6px 0 12px 20px; padding: 0; line-height: 1.6; font-size: .92rem; }
.m-card.nb.yc-form .m-body { min-height: min(360px, 54vh); }
@media (max-width: 700px) {
  .pay-kv { grid-template-columns: 1fr; gap: 2px 0; }
  .pay-kv dd { margin-bottom: 8px; }
  .yc-form .nb-bar span { display: none; }
}

/* quick finder: the list under a box while staff type */
.qf-list { border: 1px solid var(--line); border-radius: 12px; background: #fff; margin-top: 6px; max-height: min(420px, 60vh); overflow-y: auto; box-shadow: 0 14px 30px -18px rgba(0, 0, 0, .35); }
.qf-list.qf-float { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 20; margin: 0; }
.qf-i { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; width: 100%; min-height: 48px; text-align: left; border: 0; border-bottom: 1px solid var(--line-2); background: none; padding: 8px 12px; font: inherit; color: var(--ink); cursor: pointer; }
.qf-i:hover, .qf-i.on { background: #fdf6ea; }
.qf-i .avatar { background: var(--ink); width: 32px; height: 32px; font-size: .78rem; }
.qf-g { flex: 1; min-width: 140px; display: flex; flex-direction: column; line-height: 1.25; }
.qf-g small { color: var(--muted); font-size: .76rem; overflow-wrap: anywhere; }
.qf-ref { flex: none; font-weight: 800; font-size: .74rem; background: var(--line-2); border-radius: 6px; padding: 3px 6px; }
.qf-ret { flex: none; font-size: .7rem; }
.qf-new { color: var(--ink-2); }
.qf-more, .qf-none { margin: 0; padding: 8px 12px; font-size: .8rem; color: var(--muted); }

/* the till: whose booking */
.pos-who { margin: 10px 0 4px; }
.pos-mode { margin: 4px 0 8px; }
.pos-bk { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: #fdf6ea; border: 1px solid var(--sun); margin-bottom: 8px; }
.pos-bk-g { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pos-bk-g b { font-size: 1.02rem; }
.pos-bk-g small { color: var(--muted); }
.pay-btns.pos-or { align-items: center; margin-top: 8px; }
.bi-pos { max-height: 46vh; overflow-y: auto; margin: 8px 0; }
.bi-q { min-width: 26px; text-align: center; }

/* game drives as their own records */
.gd-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; margin-bottom: 6px; }
.gd-card { display: flex; flex-direction: column; gap: 4px; text-align: left; border: 1px solid var(--line); border-radius: 14px; background: #fff; padding: 12px; font: inherit; color: var(--ink); cursor: pointer; }
.gd-card:hover, .gd-card:focus-visible { border-color: var(--sun); }
.gd-card.st-cancelled { opacity: .65; }
.gd-c-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.gd-c-at { font-size: 1.25rem; }
.gd-past-n { white-space: normal; }
.gd-run-top { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin-bottom: 10px; }
.gd-run-btns { align-items: center; flex-wrap: wrap; }
.gd-run-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; border-bottom: 1px solid var(--line-2); padding: 2px 0; }
.gd-add { margin-top: 12px; }
.gd-add-row, .gd-fb-add { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; margin-top: 8px; }
.gd-add-row .fld { width: 90px; margin: 0; }
.gd-fb-add input { flex: 1; min-width: 160px; }
.gd-fb { margin: 4px 0; }
.mg-what { margin: 6px 0 4px 20px; padding: 0; line-height: 1.55; }
.cal-row.cal-gd { min-height: 46px; }
.cal-gdd { border-left: 1px solid var(--line-2); display: flex; flex-direction: column; gap: 2px; padding: 3px 2px; min-width: 0; }
.cal-gdd.today { background: #fdeedd; }
.cal-gdb { border: 0; border-radius: 6px; background: #dfeee0; color: var(--ink); font: inherit; font-size: .64rem; line-height: 1.15; padding: 2px 3px; display: flex; flex-direction: column; align-items: center; cursor: pointer; }
.cal-gdb.st-out { background: #fde7c8; }
.cal-gdb.st-back { background: #e4e9f5; }
.cal-gdb.st-cancelled { background: #eee; color: var(--muted); text-decoration: line-through; }
.cal-gdnew { border: 1px dashed var(--line); background: none; border-radius: 6px; color: var(--muted); padding: 0; min-height: 18px; cursor: pointer; display: grid; place-items: center; }
.cal-gdnew .ic { width: 12px; height: 12px; }
/* game viewers */
.cal-gdb.rented { background: #f6dcd8; color: #8a2f22; }
.cal-gdv { font-style: normal; font-weight: 800; font-size: .58rem; opacity: .75; }
.gd-sw { white-space: nowrap; }
/* the Calendar: a calendar for each kind of stand, each with its own dates */
.cal-card { margin-bottom: 16px; }
.cal-card-h { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line-2); }
.cal-card-h h3 { margin: 0; font-size: 1rem; }
.cal-head.cal-foot { position: static; border-top: 1px solid var(--line); border-bottom: 0; }
/* game drives: a calendar with its own look */
.cal-gdcard { border-color: #bcd2b0; background: #f8fbf4; }
.cal-gdcard .cal-card-h { background: linear-gradient(180deg, #eef5e6, #e5efda); border-bottom-color: #cddcc1; flex-wrap: wrap; }
.gdk-ic { width: 36px; height: 36px; border-radius: 50%; background: #4d6b3c; color: #fff; display: grid; place-items: center; flex: none; box-shadow: 0 2px 6px -2px rgba(46, 70, 34, .6); }
.gdk-ic .ic { width: 19px; height: 19px; }
.cal-gd-t { flex: 1 1 200px; min-width: 0; }
.cal-gd-t h3 { color: #34502a; }
.cal-gd-f { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-left: auto; }
.cal-gdcard .cal-head, .cal-gdcard .cal-head .cal-name { background: #e4edd9; }
.cal-gdcard .cal-head .cal-name { color: #4d6b3c; }
.cal-gdcard .cal-day.wk { background: #d8e5ca; }
.cal-gdcard .cal-day.today { background: #4d6b3c; }
.cal-gdcard .cal-name { background: #f8fbf4; border-right-color: #d3e0c8; }
.cal-gdcard .cal-name b { color: #34502a; }
.cal-gdcard .cal-row { border-bottom-color: #e3ebda; }
.cal-gdcard .cal-row.cal-gd { min-height: 56px; }
.cal-gdcard .cal-gdd { border-left-color: #e3ebda; padding: 4px 3px; justify-content: center; }
.cal-gdcard .cal-gdd.wk { background: #f0f5e9; }
.cal-gdcard .cal-gdd.today { background: #e3efd6; }
.gdk { width: 100%; border: 1px solid #c7d8ba; border-radius: 8px; background: #fff; color: var(--ink); font: inherit; font-size: .68rem; line-height: 1.1; padding: 4px 3px; display: flex; flex-direction: column; align-items: center; gap: 3px; cursor: pointer; transition: transform .12s, box-shadow .12s; }
.gdk:hover, .gdk:focus-visible { transform: translateY(-1px); box-shadow: 0 4px 10px -5px rgba(46, 70, 34, .5); }
.gdk b { font-weight: 800; }
.gdk.has { background: #dcefd2; border-color: #93b882; }
.gdk.full { background: #f9e3c6; border-color: #e1b47d; }
.gdk.st-out { background: #fde7c8; border-color: #e9b66f; }
.gdk.st-back { background: #e7ebf4; border-color: #c4cde2; }
.gdk.st-cancelled { background: #f2f2f0; border-style: dashed; color: var(--muted); text-decoration: line-through; }
.gdk.rented { background: #f6dcd8; border-color: #e5b0a7; color: #8a2f22; }
.gdk-bar { display: block; width: 100%; height: 3px; border-radius: 2px; background: #e5ecde; overflow: hidden; }
.gdk-bar span { display: block; height: 100%; background: #5b8a47; }
.gdk.full .gdk-bar span { background: #d08a32; }
.gdk-at, .gdk-v { font-style: normal; font-weight: 700; font-size: .58rem; opacity: .75; }
.cal-gdcard .cal-gdnew { border-color: #c7d8ba; color: #7e9a6e; min-height: 24px; opacity: .55; transition: opacity .15s, background-color .15s; }
.cal-gdcard .cal-gdnew:hover, .cal-gdcard .cal-gdnew:focus-visible { opacity: 1; background: #eef5e6; }
.cal-gd-none { display: flex; align-items: center; gap: 6px; margin: 0; padding: 10px 16px; font-size: .82rem; color: var(--ink-2); background: #f3f8ec; border-bottom: 1px solid #e3ebda; }
.cal-gd-none .ic { width: 15px; height: 15px; flex: none; }
@media (max-width: 760px) { .cal-gd-f { margin-left: 0; width: 100%; } .cal-card-h { padding: 10px 12px; } }
/* a day of the guide calendar: its drives */
.gdd-list { display: flex; flex-direction: column; gap: 8px; margin: 10px 0 4px; }
.gdd-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.gdd-row.on { background: var(--ok-bg); border-color: #b9dab4; }
.gdd-row.off { opacity: .7; }
.gdd-main { flex: 1; min-width: 0; font-size: .9rem; }
.gdd-main small { display: block; color: var(--muted); font-size: .78rem; margin-top: 2px; }
.gdd-ic { width: 36px; display: grid; place-items: center; color: var(--muted); flex: none; }
.gdd-ic .ic { width: 18px; height: 18px; }
.gdd-row .switch { flex: none; }
.m-card header.m-h-back { justify-content: flex-start; gap: 8px; }
.m-card header.m-h-back h3 { flex: 1; min-width: 0; }
.gdc-nav { flex-wrap: wrap; justify-content: flex-end; }
.gd-viewers { margin-top: 16px; }
.vw-list { display: flex; flex-direction: column; gap: 8px; }
.vw-row { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; border: 1px solid var(--line); border-radius: 14px; background: #fff; padding: 10px 12px; font: inherit; color: var(--ink); cursor: pointer; }
.vw-row:hover, .vw-row:focus-visible { border-color: var(--sun); }
.vw-row.off { opacity: .6; }
.vw-row > svg { flex: none; color: var(--muted); }
.vw-dot { display: inline-block; width: 14px; height: 14px; border-radius: 50%; flex: none; box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--line); vertical-align: -2px; margin-right: 6px; }
.vw-g, .vw-st, .vw-n { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.vw-g { flex: 1; }
.vw-st, .vw-n { align-items: flex-end; text-align: right; }
.vw-issues { display: flex; flex-direction: column; gap: 6px; margin: 6px 0; }
.vw-issue, .vw-rent { display: flex; align-items: flex-start; gap: 10px; border-bottom: 1px solid var(--line-2); padding: 6px 0; }
.vw-issue.done, .vw-rent.done { opacity: .7; }
.vw-issue > .tag { flex: none; margin-top: 2px; }
.vw-i-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.vw-i-t .link-btn { font-size: inherit; padding: 0; }
.vw-i-t > .tag { align-self: flex-start; }
.vw-add { display: flex; flex-direction: column; gap: 8px; margin: 10px 0 4px; }
.vw-add .btn { align-self: flex-start; }
.vw-done { margin: 8px 0; }
.vw-done summary { cursor: pointer; font-weight: 800; color: var(--ink-2); }
.gd-vw-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 0 0 10px; }
.vw-which { display: flex; align-items: center; margin: 0 0 8px; }
.vw-sheet .row-btns { margin-bottom: 8px; }
@media (max-width: 640px) { .vw-row { flex-wrap: wrap; position: relative; padding-right: 34px; } .vw-row > svg { position: absolute; right: 10px; top: 14px; } .vw-g { flex: 1 1 calc(100% - 40px); } .vw-st, .vw-n { align-items: flex-start; text-align: left; } .vw-issue, .vw-rent { flex-wrap: wrap; } }

/* ---------- Messages & reminders: what sends by itself, what asks first ---------- */
.tag.mode-auto { background: var(--ok-bg); color: var(--ok); }
.tag.mode-ask { background: var(--info-bg); color: var(--info); }
.tag.mode-off, .tag.mode-hand { background: var(--line-2); color: var(--muted); }
.tpl-mode { display: flex; align-items: flex-start; gap: 8px; margin: 0 0 12px; font-size: .86rem; color: var(--ink-2); }
.tpl-mode .tag { flex: none; margin-top: 1px; }
.am-card > .muted { margin: -4px 0 6px; }
.am-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px 16px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.am-row.is-off .am-t { opacity: .6; }
.am-t b { font-size: .95rem; }
.am-t small, .am-days { display: block; color: var(--muted); font-size: .82rem; margin-top: 2px; }
.am-days select { width: auto; min-width: 54px; padding: 2px 6px; margin: 0 3px; border: 1px solid var(--line); border-radius: 7px; font: inherit; font-weight: 800; color: var(--ink); text-align: center; }
.am-seg { margin: 0; }
.am-seg span { padding: 6px 11px; font-size: .82rem; }
.am-seg .am-auto input:checked + span { background: var(--ok); color: #fff; }
.am-seg .am-ask input:checked + span { background: var(--info); color: #fff; }
.am-fixed { display: inline-flex; flex-direction: column; align-items: flex-end; gap: 2px; text-align: right; }
.am-fixed small { color: var(--muted); font-size: .78rem; max-width: 200px; }
@media (max-width: 720px) { .am-row { grid-template-columns: 1fr auto; } .am-seg, .am-fixed { grid-column: 1 / -1; } .am-fixed { align-items: flex-start; text-align: left; } }

/* passengers: one row each, with Add passenger */
.pass-list { display: grid; gap: 6px; margin: 2px 0 8px; }
.pass-list:empty { display: none; }
.pass-row { display: grid; grid-template-columns: 1fr auto; gap: 6px; align-items: center; }
.car-saved { display: block; margin-top: 6px; }
.ind-back { margin: -4px 0 10px; }

/* ---------- the calendar (datepick.js): the same look as the website's ---------- */
input[type=date] { cursor: pointer; padding-right: 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e8731c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='3'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; background-size: 18px; }
input[type=date]::-webkit-calendar-picker-indicator { display: none; }
.kdp-back { position: fixed; inset: 0; z-index: 3000; background: transparent; }
.kdp-back.dim { background: rgba(20, 12, 6, .45); opacity: 0; transition: opacity .2s; }
.kdp-back.dim.in { opacity: 1; }
.kdp { position: fixed; z-index: 3001; width: 320px; max-width: calc(100vw - 16px); background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 14px 14px 12px; box-shadow: 0 24px 60px -18px rgba(20, 12, 6, .5); opacity: 0; transform: translateY(-4px) scale(.98); transition: opacity .18s, transform .18s; font-family: var(--font); }
.kdp.in { opacity: 1; transform: none; }
.kdp.sheet { left: 50% !important; top: 50% !important; width: min(380px, calc(100vw - 32px)); transform: translate(-50%, -50%) scale(.96); }
.kdp.sheet.in { transform: translate(-50%, -50%); }
.kdp-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.kdp-title { font-family: var(--display); font-size: 1.1rem; color: var(--ink); line-height: 1.25; }
.kdp-x { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--line-2); display: grid; place-items: center; cursor: pointer; color: var(--ink); }
.kdp-x svg, .kdp-nav svg { width: 16px; height: 16px; }
.kdp-nav { display: flex; align-items: center; justify-content: space-between; margin: 8px 0 4px; }
.kdp-month { font-family: var(--display); font-size: 1.05rem; color: var(--ink); }
.kdp-nav button { width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; display: grid; place-items: center; cursor: pointer; color: var(--ink); }
.kdp-nav button:disabled { opacity: .3; cursor: default; }
.kdp-wk, .kdp-grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.kdp-wk span { text-align: center; font-size: .7rem; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); padding: 4px 0 6px; }
.kdp-c { display: flex; justify-content: center; height: 42px; }
.kdp-d { position: relative; width: 38px; height: 38px; border-radius: 50%; border: 0; background: none; font: inherit; font-size: .95rem; font-weight: 800; color: var(--ink); cursor: pointer; transition: background .15s, box-shadow .15s; }
.kdp-d:hover:not([disabled]) { background: var(--line-2); }
.kdp-d:focus-visible { outline: 3px solid rgba(232, 115, 28, .45); outline-offset: 1px; }
.kdp-c.off .kdp-d { color: rgba(42, 27, 18, .25); cursor: default; }
.kdp-c.today .kdp-d::after { content: ""; position: absolute; left: 50%; bottom: 4px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--sun); }
.kdp-c.on .kdp-d { background: var(--sun); color: #fff; box-shadow: 0 8px 16px -8px rgba(232, 115, 28, .8); }
.kdp-c.on .kdp-d::after { background: #fff; }
.kdp-foot { display: flex; justify-content: space-between; gap: 8px; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line-2); }
.kdp-foot button { border: 0; background: none; font: inherit; font-weight: 800; color: var(--sun-d); cursor: pointer; padding: 6px 8px; border-radius: 8px; }
.kdp-foot button:hover:not(:disabled) { background: var(--line-2); }
.kdp-foot button:disabled { opacity: .35; cursor: default; }

/* stock counting: the switch for the whole shop, and the one per product */
.stock-sw { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; border-left: 4px solid var(--ok); }
.stock-sw.off { border-left-color: var(--muted); background: var(--line-2); }
.stock-sw-t b { display: flex; align-items: center; gap: 8px; font-size: 1rem; }
.stock-sw-t small { display: block; color: var(--muted); margin-top: 3px; max-width: 640px; }
.tbl.prods .switch { white-space: nowrap; }
.tbl.prods .switch input:disabled + span { opacity: .45; }

.ind-known { display: block; margin-top: 4px; color: var(--info); font-weight: 700; }
.kdp-my { display: flex; gap: 6px; }
.kdp-my button { display: inline-flex; align-items: center; gap: 4px; font-family: var(--display); font-size: 1rem; color: var(--ink); border: 1.5px solid var(--line); border-radius: 10px; padding: 4px 8px 4px 10px; background: #fff; cursor: pointer; }
/* the month and year buttons are not round like the arrows next to them: they size to their words */
.kdp-nav .kdp-my button { width: auto; min-width: 0; height: 36px; border-radius: 10px; display: inline-flex; white-space: nowrap; flex: none; }
.kdp-my b { font-weight: 700; }
.kdp-my button:hover, .kdp-my button[aria-expanded="true"] { border-color: var(--sun); }
.kdp-my button svg { width: 14px; height: 14px; color: var(--muted); }

/* ---------- Reports: the period button and Kyleu's own menu ---------- */
.rp-period { display: inline-flex; align-items: center; gap: 10px; min-width: 220px; padding: 8px 12px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; font: inherit; color: var(--ink); cursor: pointer; text-align: left; transition: border-color .15s, box-shadow .15s; }
.rp-period:hover, .rp-period[aria-expanded="true"] { border-color: var(--sun); box-shadow: 0 0 0 3px rgba(232, 115, 28, .14); }
.rp-period > .ic:first-child { width: 20px; height: 20px; color: var(--sun); flex: none; }
.rp-period > span { flex: 1; min-width: 0; }
.rp-period small { display: block; font-size: .68rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.rp-period b { display: block; font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rp-caret { width: 16px; height: 16px; color: var(--muted); flex: none; transition: transform .2s; }
.rp-period[aria-expanded="true"] .rp-caret { transform: rotate(180deg); }
.kmenu { position: fixed; z-index: 2900; width: 300px; max-width: calc(100vw - 16px); max-height: min(70vh, 560px); overflow-y: auto; padding: 6px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 24px 60px -18px rgba(20, 12, 6, .45); opacity: 0; transform: translateY(-4px); transition: opacity .16s, transform .16s; }
.kmenu.in { opacity: 1; transform: none; }
.kmenu-h { display: block; padding: 10px 10px 4px; font-size: .68rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.kmenu-i { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; padding: 8px 10px; border: 0; border-radius: 10px; background: none; font: inherit; color: var(--ink); text-align: left; cursor: pointer; }
.kmenu-i:hover, .kmenu-i:focus-visible { background: var(--line-2); outline: none; }
.kmenu-i b { display: block; font-size: .92rem; }
.kmenu-i small { display: block; font-size: .78rem; color: var(--muted); margin-top: 1px; }
.kmenu-i .ic { width: 18px; height: 18px; flex: none; color: var(--sun); }
.kmenu-i.on { background: rgba(232, 115, 28, .1); }
.kmenu-i.on b { color: var(--sun-d); }
/* the calendar for a period: the days between are shaded, like the stay calendar on the website */
.kdp-hint { display: block; margin-top: 2px; font-size: .82rem; color: var(--muted); min-height: 1.2em; }
.kdp.range .kdp-c { position: relative; }
.kdp.range .kdp-c::before { content: ""; position: absolute; top: 2px; bottom: 2px; left: 0; right: 0; background: rgba(232, 115, 28, .16); opacity: 0; }
.kdp.range .kdp-c.in::before { opacity: 1; }
.kdp.range .kdp-c.band.start::before { opacity: 1; left: 50%; }
.kdp.range .kdp-c.band.end::before { opacity: 1; right: 50%; }
.kdp.range .kdp-c.prev::before { background: rgba(232, 115, 28, .08); }
.kdp.range .kdp-c.start .kdp-d, .kdp.range .kdp-c.end .kdp-d { background: var(--sun); color: #fff; box-shadow: 0 8px 16px -8px rgba(232, 115, 28, .8); }
.kdp.range .kdp-c.start .kdp-d::after, .kdp.range .kdp-c.end .kdp-d::after { background: #fff; }
.kdp.range .kdp-c.prev.end .kdp-d { background: rgba(232, 115, 28, .55); }
.kdp-apply { margin-left: auto; background: var(--sun) !important; color: #fff !important; padding: 7px 14px !important; }
.kdp-apply:disabled { opacity: .4; }
.kdp-foot { flex-wrap: wrap; }
.kmenu { z-index: 3100; }
.kmenu.narrow { width: 170px; }
.kmenu.narrow .kmenu-i { padding: 6px 10px; }

/* shop variants on the till: the arrows change the colour or kind shown, and the photo with it */
.pos-it.has-pv { padding-bottom: 12px; }
.pv-nav { display: flex; align-items: center; justify-content: space-between; gap: 4px; font-weight: 800; }
.pv-nav .pv-b { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; background: #fff; color: var(--ink); flex: none; cursor: pointer; }
.pv-nav .pv-b:hover { border-color: var(--sun); color: var(--sun); }
.pv-nav .pv-b svg { width: 14px; height: 14px; }
.pv-nav .pv-n { flex: 1; text-align: center; font-size: .8rem; color: var(--ember, #c2410c); line-height: 1.15; }
.pv-nav .pv-n small { display: block; font-size: .7rem; }
.pv-list { display: grid; gap: 8px; margin-bottom: 14px; }
.pv-row { display: flex; align-items: center; gap: 8px; }
.pv-row input { flex: 1; min-width: 0; }
.pv-ph { width: 44px; height: 44px; border-radius: 10px; overflow: hidden; flex: none; background: var(--sand, #f3ead9); display: grid; place-items: center; color: var(--muted); }
.pv-ph img { width: 100%; height: 100%; object-fit: cover; }
.pv-ph svg { width: 18px; height: 18px; }
.pv-list > .btn { justify-self: start; }

/* check-out tab: guests in camp who are booked until later, to check out early */
.gate-early { margin-top: 16px; padding: 0; }
.gate-early > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 18px; }
.gate-early > summary::-webkit-details-marker { display: none; }
.gate-early > summary > span { display: flex; align-items: center; gap: 8px; }
.gate-early > summary svg { width: 18px; height: 18px; color: var(--muted); transition: transform .2s; }
.gate-early > summary > svg { transform: rotate(90deg); }
.gate-early[open] > summary > svg { transform: rotate(-90deg); }
.gate-early > p { margin: 0 18px 10px; }
.early-list { display: grid; border-top: 1px solid var(--line); }
.early-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.early-row:last-child { border-bottom: 0; }
.early-row small { display: block; color: var(--muted); }
.cal-bar.early { border-right: 3px dashed rgba(0,0,0,.35); }

/* Settings, Email sending: Microsoft 365 or a mail server */
.mail-via { margin: 4px 0 14px; }
[data-mailset] .hint { margin: 0 0 12px; }

/* variants: each with its own price, stock and place in the order */
.pos-it.is-out { opacity: .55; }
.pv-row { display: grid; gap: 8px; border: 1px solid var(--line); border-radius: 12px; padding: 10px; background: #fff; }
.pv-top { display: flex; align-items: center; gap: 8px; }
.pv-top input { flex: 1; min-width: 0; }
.pv-move { display: inline-flex; gap: 2px; }
.pv-move .icon-btn { font-weight: 900; }
.pv-move .icon-btn:disabled { opacity: .3; }
.pv-more { display: grid; grid-template-columns: 1.2fr auto .8fr .7fr; gap: 8px; align-items: end; }
.pv-more .fld { margin: 0; }
.pv-more .pv-track { margin: 0 0 10px; white-space: nowrap; }
.pv-first { display: inline-flex; align-items: center; gap: 4px; color: var(--sun); font-weight: 800; }
.pv-first svg { width: 14px; height: 14px; }
@media (max-width: 560px) { .pv-more { grid-template-columns: 1fr 1fr; } }
.tbl.prods tr.pv-sub td { padding-top: 6px; padding-bottom: 6px; background: rgba(0,0,0,.015); }
.tbl.prods tr.pv-sub td:first-child { padding-left: 34px; }
.prod-thumb.sm { width: 32px; height: 32px; }

/* ---------- the till's product boxes: the photo whole, then name, price and stock; "- 2 +" on the photo once it is in the sale ---------- */
.pos { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.pos-it { display: flex; flex-direction: column; gap: 0; padding: 0; min-height: 0; overflow: hidden; border-radius: 14px; text-align: left; cursor: pointer; }
.pos-it .pos-img { position: relative; display: grid; place-items: center; width: 100%; height: auto; aspect-ratio: 1 / 1; margin: 0; border-radius: 0; overflow: hidden; background: var(--line-2); color: #c9b49a; flex: none; }
.pos-it .pos-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pos-body { display: flex; flex-direction: column; gap: 2px; padding: 9px 11px 11px; flex: 1; min-width: 0; }
.pos-it .pos-n { font-size: .88rem; font-weight: 800; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pos-it .pos-v { font-size: .78rem; font-weight: 800; color: var(--ember, #c2410c); }
.pos-it .pos-v small { color: var(--muted); font-weight: 600; }
.pos-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 6px; margin-top: auto; padding-top: 4px; }
.pos-it .pos-p { display: flex; flex-direction: column; font-size: 1rem; font-weight: 900; line-height: 1.15; }
.pos-it .pos-p small { font-size: .7rem; font-weight: 600; }
.pos-it .pos-stock { position: static; flex: none; font-size: .7rem; font-weight: 800; color: var(--muted); background: var(--line-2); border-radius: 999px; padding: 2px 8px; }
.pos-it .pos-stock.low { color: #9a5b00; background: #fdf0d5; }
.pos-it .pos-stock.out { color: #fff; background: #b4472b; }
.pos-it.is-out { opacity: .7; }
.pos-it.is-out .pos-img img { filter: grayscale(1); }
.pos-it.on { border-color: var(--sun); box-shadow: 0 0 0 2px rgba(232, 115, 28, .3); }
/* variants: arrows and dots on the photo */
.pos-it .pv-b { position: absolute; top: 50%; width: 30px; height: 30px; margin-top: -15px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.94); color: var(--ink); box-shadow: 0 2px 8px rgba(0,0,0,.2); border: 0; cursor: pointer; transition: transform .15s; }
.pos-it .pv-b:hover { transform: scale(1.1); color: var(--sun); }
.pos-it .pv-b svg { width: 15px; height: 15px; }
.pos-it .pv-b.prev { left: 6px; } .pos-it .pv-b.next { right: 6px; }
.pv-dots { position: absolute; left: 0; right: 0; top: 8px; display: flex; justify-content: center; gap: 5px; pointer-events: none; }
.pv-dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.75); box-shadow: 0 0 0 1px rgba(0,0,0,.18); }
.pv-dots i.on { background: var(--sun); }
/* in the sale: "- 2 +" on the photo */
.pos-q { position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); display: flex; align-items: center; gap: 2px; padding: 3px; border-radius: 999px; background: #fff; box-shadow: 0 3px 12px rgba(0,0,0,.25); }
.pos-q b { min-width: 26px; text-align: center; font-size: .98rem; font-weight: 900; }
.pos-q-b { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--sun); color: #fff; cursor: pointer; transition: transform .1s; }
.pos-q-b.less { background: var(--line-2); color: var(--ink); }
.pos-q-b:hover { transform: scale(1.08); }
.pos-q-b svg { width: 14px; height: 14px; }
.pos-it-potty .pos-img { background: var(--line-2); }
@media (max-width: 600px) { .pos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .pos-body { padding: 8px 9px 9px; } }
.pos-q { color: var(--ink); }
.pos-it .pos-stock.all { color: #fff; background: var(--sun); }

/* variants: the main photo on the box, and a panel to choose from */
.pos-it.is-pick.open { border-color: var(--sun); box-shadow: 0 0 0 2px rgba(232, 115, 28, .3); }
.pos-q.pos-q-n { padding: 4px 12px; font-size: .78rem; font-weight: 700; color: var(--ink); }
.pos-q.pos-q-n b { min-width: 0; margin-right: 4px; }
.pv-choose { grid-column: 1 / -1; border: 1.5px solid var(--sun); border-radius: 14px; background: #fffaf3; padding: 12px; animation: chipOn .25s ease; }
.pv-choose header { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.pv-choose header img { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; flex: none; }
.pv-choose header div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pv-choose header small { color: var(--muted); }
.pv-opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; }
.pv-opt { display: flex; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 6px 8px 6px 6px; }
.pv-opt.on { border-color: var(--sun); box-shadow: 0 0 0 1px var(--sun); }
.pv-opt.out { opacity: .5; }
.pv-o-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; border: 0; background: none; padding: 4px; text-align: left; cursor: pointer; color: var(--ink); font: inherit; }
.pv-o-n { display: flex; flex-direction: column; min-width: 0; }
.pv-o-n b { font-size: .92rem; }
.pv-o-n small { color: var(--muted); font-size: .76rem; }
.pv-o-q { display: flex; align-items: center; gap: 4px; flex: none; }
.pv-o-q b { min-width: 18px; text-align: center; }
.pv-dot { width: 30px; height: 30px; border-radius: 50%; flex: none; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.2); display: inline-block; }
.pv-th { width: 40px; height: 40px; border-radius: 8px; overflow: hidden; flex: none; background: var(--line-2); display: grid; place-items: center; }
.pv-th img { width: 100%; height: 100%; object-fit: cover; }
.pv-color { display: none; width: 34px; height: 34px; padding: 0; border: 1px solid var(--line); border-radius: 50%; overflow: hidden; flex: none; cursor: pointer; background: none; }
.pv-list.sw .pv-color { display: block; }
.pv-color::-webkit-color-swatch-wrapper { padding: 0; } .pv-color::-webkit-color-swatch { border: 0; border-radius: 50%; }
.pv-top .pv-color { flex: 0 0 34px; width: 34px; min-width: 0; }

/* the wording editor: Insert toolbar above the message */
.tpl-ins { margin: 4px 0 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fffaf3; display: grid; gap: 8px; }
.tpl-ins .fld-l { margin: 0; }
.tpl-ins-g { display: grid; grid-template-columns: 120px 1fr; gap: 8px; align-items: start; }
.tpl-ins-g > small { color: var(--muted); font-weight: 700; padding-top: 5px; }
.tpl-ins-g > div { display: flex; flex-wrap: wrap; gap: 6px; }
.tpl-ins-b { display: inline-flex; align-items: center; gap: 5px; font: inherit; font-size: .78rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; }
.tpl-ins-b:hover { border-color: var(--sun); color: var(--sun); }
.tpl-ins-b.lk { background: #fdf0e3; border-color: #f3c9a2; color: #a34f0e; }
.tpl-ins-b svg { width: 13px; height: 13px; }
@media (max-width: 640px) { .tpl-ins-g { grid-template-columns: 1fr; } }
/* Messages & reminders: the days for "What is still to do" */
.am-list { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.am-chip { display: inline-flex; align-items: center; gap: 2px; padding: 2px 4px 2px 10px; border-radius: 999px; background: #fdf0e3; font-weight: 800; }
.am-chip button { border: 0; background: none; padding: 2px; cursor: pointer; color: var(--muted); display: grid; }
.am-chip button svg { width: 12px; height: 12px; }
.am-add { display: inline-flex; gap: 4px; align-items: center; }
.am-add input { width: 58px; padding: 4px 8px; }
.am-cover { display: flex; align-items: center; gap: 5px; color: var(--muted); }
.am-cover svg { width: 13px; height: 13px; }
.tpl-ins-more summary { cursor: pointer; font-size: .8rem; font-weight: 800; color: var(--muted); }
.tpl-ins-more[open] summary { margin-bottom: 8px; }
.tpl-ins-more .tpl-ins-g + .tpl-ins-g { margin-top: 8px; }

/* game drives: guide on the run sheet, people not staying at Kyleu, the guides list */
.gd-guide { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.gd-guide select { width: auto; padding: 4px 28px 4px 10px; }
.gd-add-k { margin: 6px 0 10px; }
.gd-walk { align-items: center; }
.gd-walk-pay { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.gd-c-hint { display: flex; align-items: center; gap: 4px; color: var(--sun); font-weight: 700; }
.gd-c-hint svg { width: 12px; height: 12px; }
.gd-guides { margin-top: 16px; }

/* check-in: quick check-in, ticking the vehicles that arrived, and the names in each vehicle */
.gate-in { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.gate-need { color: #9a5b00; font-weight: 700; font-size: .74rem; text-align: right; max-width: 190px; }
.gate-names { display: flex; flex-wrap: wrap; gap: 4px 6px; margin: 4px 0 2px; }
.gate-name { font-size: .95rem; font-weight: 700; color: var(--ink); background: #f6efe3; border-radius: 8px; padding: 2px 8px; }
.gate-name.drv { background: #fdf0e3; }
.gate-name small { font-size: .7rem; font-weight: 700; color: var(--muted); }
.gate-name.more { color: #9a5b00; background: #fdf0d5; }
.gate-ppl { font-weight: 600; color: var(--muted); font-size: .78rem; }
.gate-car.has-pick { padding-left: 4px; }
.gate-pick { display: grid; place-items: center; width: 34px; flex: none; align-self: center; }
.gate-pick input { width: 22px; height: 22px; accent-color: var(--green, #2f7a3a); cursor: pointer; }
.gate-pick.off::before { content: ''; width: 18px; height: 18px; border-radius: 5px; border: 2px dashed var(--line); }
.gate-group { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; padding: 10px 14px; margin: 6px 0 0; border-radius: 12px; background: #f3f7ef; }
.gate-group .check { margin: 0; font-weight: 700; }
.gate-group .btn:disabled { opacity: .55; }

/* Edit booking: people for only some nights */
.part-box { border: 1px dashed var(--line); border-radius: 12px; padding: 10px 12px; margin: 6px 0 12px; }
.part-box > .muted { margin: 2px 0 6px; }
.part-row { border-top: 1px solid var(--line-2); padding-top: 8px; margin-top: 8px; }
.part-foot { display: flex; gap: 10px; align-items: flex-end; }
.part-foot .fld { flex: 1; margin-bottom: 0; }
.part-box [data-part-add] { margin-top: 8px; }
.qb-row.part span:first-child { font-size: .84rem; }
/* Booking notes: who sees them and where */
.note-where { display: flex; gap: 8px; align-items: flex-start; background: #eef3f8; border: 1px solid #d6e2ee; border-radius: 10px; padding: 8px 12px; font-size: .86rem; margin: 0 0 10px; }
.note-where .ic { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--info, #2c6693); }
/* Game drive run sheet: people and price of each booking */
.gd-run-p { display: block; color: var(--muted); font-size: .84rem; }
.gd-run-ctl { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.gd-stp { display: inline-flex; align-items: center; gap: 2px; border: 1px solid var(--line); border-radius: 999px; padding: 1px; }
.gd-stp b { min-width: 20px; text-align: center; }
.dv-std { display: block; font-size: 1.1rem; padding: 9px 0; }
.dv-eff { margin-top: 6px; }
@media (max-width: 640px) { .gd-run-row { flex-wrap: wrap; } .gd-run-ctl { width: 100%; justify-content: flex-start; } .part-foot { flex-wrap: wrap; } }

/* the price of a booking, line by line */
.pe-row { flex-wrap: wrap; }
.pe-row .pe-hint { flex-basis: 100%; color: var(--muted); font-size: .78rem; margin: -2px 0 4px; }
.pe-row .pe-gap { width: 30px; flex: none; }
.pe-row input[readonly] { background: var(--line-2); color: var(--muted); }
.pe-stay input:not([readonly]) { font-weight: 700; }
/* the arrival order */
.po-list { display: grid; gap: 6px; max-height: 50vh; overflow: auto; margin: 8px 0; }
.po-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-bottom: 1px solid var(--line-2); padding: 4px 0; }
.po-row small { display: block; color: var(--muted); }
.po-row input { width: 80px; }

/* change a shop receipt */
.se-row input.se-q, .se-head span:nth-child(2) { width: 76px; flex: none; }
.se-head { display: flex; gap: 8px; }
.se-head span:first-child { flex: 1; }
.se-head span:last-child { width: 150px; }

/* =========================================================
   November 2026 refresh: calmer and tighter, like a mainstream app.
   This block comes last on purpose: it tunes what is above without changing the markup.
   ========================================================= */
:root { --r: 12px; --sh: 0 1px 2px rgba(42, 27, 18, .04), 0 2px 10px -6px rgba(42, 27, 18, .14); }
body { font-size: 14.5px; }
main { padding: 22px 28px 64px; }
h1 { font-size: 1.6rem; }
.page-h, .hello { margin-bottom: 16px; }
.page-h p, .hello p { font-size: .9rem; }
.card { padding: 16px 18px; margin-bottom: 16px; }
.card-h { margin-bottom: 10px; }
.card-h h3 { font-size: .98rem; }
.cols { gap: 16px; }
.cols + .cols, .cols + .card, .card + .cols, .kpis + .cols, .kpis + .card { margin-top: 16px; }
.count { font-size: .74rem; }

/* numbers in the app's own font with even digits (money reads like a banking app, not a book) */
.kpi-v, .dh-money b, .gate-kpis .kpi-v { font-family: var(--font); font-weight: 800; letter-spacing: -.015em; font-variant-numeric: tabular-nums; }
.kpi-v { font-size: 1.5rem; }
.kpi-v small { font-weight: 700; }
.kpis { gap: 10px; margin-bottom: 16px; }
.kpi { padding: 12px 14px 12px 16px; transition: border-color .15s, box-shadow .15s, transform .15s; }
button.kpi:hover { border-color: #dccbb2; box-shadow: 0 6px 16px -10px rgba(42, 27, 18, .4); transform: translateY(-1px); }
.kpi::before { width: 3px; }
.kpi-l { font-size: .74rem; letter-spacing: .01em; }
.tbl .r, .ln span:last-child, .lines .ln span:last-child { font-variant-numeric: tabular-nums; }

/* buttons, chips and fields: one calm height */
.btn { padding: 9px 15px; border-radius: 9px; font-size: .88rem; }
.btn.sm { padding: 6px 10px; font-size: .8rem; border-radius: 8px; gap: 5px; }
.btn.sm .ic { width: 15px; height: 15px; }
.btn.ghost { box-shadow: inset 0 0 0 1px #e3d6c3; }
.chip { padding: 6px 12px; font-size: .82rem; }
.filters { gap: 8px; }
.filters select, .ph-act select { padding: 8px 30px 8px 11px; font-size: .86rem; border-radius: 9px; }
.search { border-radius: 10px; }
.search input { padding: 9px 0; }
.pill { padding: 2px 9px 2px 7px; font-size: .73rem; font-weight: 700; }
.tag { font-weight: 700; border-radius: 5px; }

/* tables: lighter header, steady rows, names on one line */
.tbl { font-size: .86rem; }
.tbl th { font-size: .67rem; padding: 9px 12px; background: #fbf7f0; letter-spacing: .07em; }
.tbl td { padding: 10px 12px; vertical-align: middle; }
.tbl td b { font-weight: 700; }
.tbl tbody tr { transition: background .12s; }
.tbl.bk td[data-l="Guest"] { min-width: 160px; }
.tbl.bk td[data-l="Guest"] b { white-space: nowrap; }
.tbl.bk td[data-l="Guest"] small, .tbl.bk td[data-l="Stand"] small { white-space: nowrap; }
.td-todo { min-width: 170px; max-width: 280px; }
.td-todo .fin-tag, .td-todo .todo-c { display: inline-flex; margin: 0 3px 3px 0; }
.td-nudge { font-size: .8rem; max-width: 160px; }

/* the booking panel */
.dh-money b { font-size: 1.2rem; }
.d-tabs button { font-size: .86rem; }

/* ---------- Dashboard ---------- */
.attn-g { display: block !important; font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 12px 6px 4px; }
.attn-g:first-child { padding-top: 2px; }
.attn-g-bad { color: var(--bad); }
.attn button { padding: 9px 6px; font-size: .86rem; }
.attn-i { width: 30px; height: 30px; border-radius: 8px; }
.attn li > button.attn-x { width: 34px; height: 34px; }
.req-card { border-color: #efd7a8; background: linear-gradient(180deg, #fffaf0, var(--card) 60px); }
.req-list { list-style: none; margin: 0; padding: 0; }
.req-list li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line-2); }
.req-list li:first-child { border-top: 0; }
.req-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; text-align: left; border: 0; background: none; padding: 4px 6px; border-radius: 9px; color: var(--ink); }
.req-main:hover { background: var(--line-2); }
.req-t { flex: 1; min-width: 0; font-size: .88rem; }
.req-t small { display: block; color: var(--ink-2); margin-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.req-at { color: var(--muted); white-space: nowrap; }
.req-btns { display: flex; gap: 6px; flex: none; }
.soon-d { display: flex; align-items: baseline; gap: 8px; margin: 12px 0 2px; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); }
.soon-d:first-of-type { margin-top: 0; }
.soon-d small { text-transform: none; letter-spacing: 0; color: var(--muted); font-weight: 600; }
.soon-more { margin-top: 8px; }
.act-card .feed li { padding-top: 7px; padding-bottom: 7px; }
.brow { padding: 9px 8px; }
@media (max-width: 760px) {
  .req-list li { flex-wrap: wrap; }
  .req-btns { width: 100%; justify-content: flex-end; }
  .req-at { display: none; }
}

/* ---------- Check-in sheet: one clean card per party, no boxes inside boxes ---------- */
.gate-days .chip { padding: 7px 14px; font-size: .86rem; }
.gate-date input { min-height: 36px; }
.gate-filters .search input { font-size: .92rem; min-height: 40px; }
.gate-areas { margin-bottom: 12px; }
.gate-areas .chip { padding: 6px 13px; font-size: .84rem; }
.gate-areas select { min-height: 36px; }
.gate-list { gap: 10px; }
.gate-card { border-radius: 14px; padding: 12px 16px; box-shadow: var(--sh); }
.gate-card.late { border-color: var(--line); box-shadow: inset 3px 0 0 var(--bad), var(--sh); }
.gate-card > header { gap: 12px; }
.gate-st { min-width: 0; background: var(--line-2); color: var(--ink); border-radius: 9px; padding: 6px 10px; }
.gate-st b { font-size: .95rem; }
.gate-st small { font-size: .62rem; color: var(--muted); letter-spacing: .07em; }
.gate-who b { font-size: 1rem; display: inline; }
.gate-who small { font-size: .8rem; margin-top: 1px; }
.gate-pay { font-size: .78rem; font-weight: 800; padding: 4px 10px; border-radius: 999px; }
.gate-pay small { display: inline; font-size: .72rem; margin-left: 4px; }
.gate-pay.owes { background: var(--warn-bg); color: #7a3f00; box-shadow: inset 0 0 0 1px #efc98a; }
.gate-card > header .icon-btn { width: 32px; height: 32px; }
.gate-cars { margin-top: 10px; gap: 0; }
.gate-car { background: none; border-radius: 0; border-top: 1px solid var(--line-2); padding: 10px 0; gap: 12px; }
.gate-car.has-pick { padding-left: 0; }
.gate-veh b { font-size: .9rem; }
.gate-names { margin: 3px 0 1px; }
.gate-name { font-size: .82rem; font-weight: 700; background: #f5eee3; border-radius: 6px; padding: 1px 7px; }
.gate-ppl { font-size: .74rem; }
.gate-pills { gap: 5px; margin-top: 4px; }
.gate-pills .pill { font-size: .7rem; }
.gate-act .btn { min-height: 38px; padding-inline: 14px; font-size: .86rem; }
.gate-need { font-size: .7rem; font-weight: 700; }
.plate { border-width: 1.5px; border-radius: 6px; }
.plate b { padding: 4px 7px; font-size: .9rem; }
.plate i { padding: 4px 7px; font-size: .84rem; }
.plate.big b { font-size: 1.05rem; padding: 5px 9px; }
.plate.big i { font-size: .95rem; padding: 5px 9px; }
.gate-card > footer { margin-top: 2px; padding-top: 10px; border-top: 1px solid var(--line-2); gap: 8px 12px; }
.gate-order { font-size: .8rem; padding: 5px 10px; border-radius: 8px; }
.gate-foot-acts .btn.sm { padding: 5px 9px; font-size: .78rem; box-shadow: none; background: none; color: var(--ink-2); }
.gate-foot-acts .btn.sm:hover { background: var(--line-2); color: var(--ink); }
.gate-group { padding: 8px 12px; border-radius: 10px; }
.gate-empty { border-radius: 14px; padding: 28px 16px; }
@media (max-width: 760px) {
  .gate-car { flex-wrap: wrap; }
  .gate-act { width: 100%; justify-content: stretch; }
  .gate-act .btn { flex: 1; }
}

.col-stack { display: grid; gap: 16px; align-content: start; min-width: 0; }
.col-stack > .card { margin-bottom: 0; }

.tbl.bk .td-todo { min-width: 230px; max-width: 300px; }
.tbl.bk .td-nudge { display: block; max-width: none; margin-top: 2px; font-size: .74rem; color: var(--muted); }
.tbl.bk .td-nudge small { display: inline; }
.tbl.bk .td-nudge small::before { content: " · "; }
.tbl.bk .td-todo { min-width: 215px; }
.tbl.bk th, .tbl.bk td { padding-left: 9px; padding-right: 9px; }

/* the sections of a shared menu item: underlined tabs under the title (the screen's own tabs stay as a segmented control) */
.sub-tabs { display: flex; background: none; border-radius: 0; padding: 0; gap: 20px; border-bottom: 1px solid var(--line); margin: -6px 0 16px; width: 100%; }
.sub-tabs > .glider { display: none; }
.sub-tabs button { background: none !important; box-shadow: none !important; border-radius: 0; padding: 9px 1px; margin-bottom: -1px; border-bottom: 2px solid transparent; color: var(--muted); }
.sub-tabs button.on { color: var(--ink); border-bottom-color: var(--sun); }
/* every money figure in the app font with even digits */
.price-pair b, .mini-kpis b, .eft-amt b, .rp-kpi-val, .rp-now-val, .sum-grid b, .sale-tot div:first-child b, .ob-tot, .rp-promo-sum b, .qb-n, .qb-count b { font-family: var(--font); font-weight: 800; letter-spacing: -.015em; font-variant-numeric: tabular-nums; }
.rp-donut-val { font-family: var(--font); font-weight: 800; }
.tbl td[data-l="Time"] { white-space: nowrap; }

.rp-tabs { width: max-content; }
.rp-tabs.sub-tabs { width: 100%; }
@media (max-width: 760px) {
  .gate-car { align-items: flex-start; }
  .gate-act, .gate-in { width: 100%; align-items: stretch; }
  .gate-in .btn, .gate-act > .btn { width: 100%; }
  .gate-need { text-align: left; max-width: none; }
  .gate-foot-acts { margin-left: 0; width: 100%; justify-content: space-between; }
}
@media (max-width: 900px) {
  .side { box-shadow: none; transition: transform .25s, box-shadow .25s; }
  body.nav-open .side { box-shadow: 20px 0 50px rgba(0, 0, 0, .3); }
}
@media (max-width: 760px) {
  .hello h1 { font-size: 1.4rem; }
  .hello-acts a.btn.ghost[href="#/gate"] { display: none; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .kpi { padding: 9px 11px 9px 13px; }
  .kpi-v { font-size: 1.2rem; }
  .kpi-l, .kpi-s { font-size: .7rem; }
}
@media (max-width: 760px) {
  .brow { flex-wrap: wrap; gap: 4px 10px; }
  .brow-st { width: 100%; font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
  .brow-g { flex: 1 1 0; }
  .brow > .pill, .brow > .row-act { margin-left: auto; align-self: center; }
}

/* ---------- the calendar: half days, lanes for overlaps, and a card when you point at a booking ---------- */
.cal-row { grid-template-columns: var(--nw) repeat(var(--hd), minmax(calc(var(--cw) / 2), 1fr)); grid-template-rows: repeat(var(--lanes, 1), minmax(36px, auto)); min-height: 0; }
.cal-row > .cal-name, .cal-row > .cal-cell, .cal-row > .cal-gdd { grid-row: 1 / -1; }
.cal-head, .cal-row.cal-gd { grid-template-rows: auto; }
.cal-bar { height: 26px; margin: 0 2px; border-radius: 7px; padding: 0 8px; gap: 4px; font-size: .74rem; box-shadow: inset 0 0 0 1px rgba(42, 27, 18, .08), 0 1px 2px rgba(42, 27, 18, .06); transition: transform .12s, box-shadow .12s; }
.cal-bar.cut-l { margin-left: 0; } .cal-bar.cut-r { margin-right: 0; }
button.cal-bar:hover, button.cal-bar:focus-visible { transform: translateY(-1px); box-shadow: inset 0 0 0 1px rgba(42, 27, 18, .18), 0 4px 10px -4px rgba(42, 27, 18, .35); z-index: 2; }
.cal-row.multi .cal-bar { height: 22px; margin-top: 3px; margin-bottom: 3px; }
.cal-row.multi { background: #fff6f3; }
.cal-bar.clash { box-shadow: inset 0 0 0 2px var(--bad); }
.cal-bar .ic { width: 13px; height: 13px; flex: none; color: var(--bad); }
.cal-clash { display: inline-flex; align-items: center; gap: 3px; color: var(--bad); font-weight: 800; }
.cal-clash .ic { width: 12px; height: 12px; }
.cal-cell { border-left: 1px solid var(--line-2); }
.legend .lg-how { flex-basis: 100%; display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); }
.legend .lg-how .ic { width: 15px; height: 15px; color: var(--muted); }
.cal-tip { position: fixed; z-index: 3500; width: 300px; max-width: calc(100vw - 16px); background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 11px 13px; box-shadow: 0 14px 34px -12px rgba(42, 27, 18, .45); font-size: .82rem; pointer-events: none; }
.cal-tip .ct-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: .92rem; }
.cal-tip small { display: block; margin: 1px 0 7px; }
.cal-tip .ct-r { display: flex; align-items: flex-start; gap: 7px; margin-top: 4px; line-height: 1.35; }
.cal-tip .ct-r .ic { width: 15px; height: 15px; flex: none; margin-top: 1px; color: var(--muted); }
.cal-tip .ct-x { margin-top: 8px; padding-top: 7px; border-top: 1px solid var(--line-2); }
.cal-tip .ct-x .ic { color: var(--sun-d); }
/* slanted ends: arriving in the afternoon, leaving in the morning. A check-out and a check-in on the same day show as two parallel slants */
.cal-bar { border-radius: 5px; padding-left: 13px; padding-right: 11px; clip-path: polygon(9px 0, 100% 0, calc(100% - 9px) 100%, 0 100%); }
.cal-bar.cut-l { clip-path: polygon(0 0, 100% 0, calc(100% - 9px) 100%, 0 100%); padding-left: 8px; }
.cal-bar.cut-r { clip-path: polygon(9px 0, 100% 0, 100% 100%, 0 100%); }
.cal-bar.cut-l.cut-r { clip-path: none; }
.cal-bar.block { clip-path: none; border-radius: 5px; }
button.cal-bar:hover, button.cal-bar:focus-visible { filter: brightness(.96) saturate(1.15); transform: none; }
.cal-bar.clash { outline: 2px solid var(--bad); outline-offset: -2px; }

/* the product form: how the photo shows in the square shop tiles */
.pp-crop { grid-column: 1 / -1; display: grid; grid-template-columns: 180px 96px 1fr; gap: 14px; align-items: start; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
.pp-crop-full { position: relative; width: 180px; height: 130px; border-radius: 10px; background: #efe7da; overflow: hidden; cursor: grab; touch-action: none; user-select: none; }
.pp-crop-full:active { cursor: grabbing; }
.pp-crop-full.whole { cursor: default; }
.pp-crop-full img { width: 100%; height: 100%; object-fit: contain; display: block; pointer-events: none; }
.pp-crop-box { position: absolute; border: 2px solid #fff; border-radius: 4px; box-shadow: 0 0 0 999px rgba(30, 18, 10, .5), 0 0 0 1px rgba(0, 0, 0, .3); pointer-events: none; }
.pp-crop-tile span { display: block; font-size: .7rem; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 4px; }
.pp-crop-sq { width: 96px; height: 96px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--line-2); }
.pp-crop-sq img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pp-crop-t > b { display: block; margin-bottom: 3px; }
.pp-crop-t small { display: block; color: var(--ink-2); line-height: 1.45; margin-bottom: 6px; }
.pp-crop-t .check { margin: 4px 0; }
@media (max-width: 600px) { .pp-crop { grid-template-columns: 1fr 96px; } .pp-crop-full { width: 100%; } .pp-crop-t { grid-column: 1 / -1; } }

/* ---------- Dropdowns in the site's own look (every admin page) ----------
   No grey system box: the card colour, a soft border, a small brown arrow. A dropdown with a choice in it turns orange. */
select:not([multiple]):not([size]) { -webkit-appearance: none; appearance: none; background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238a7563' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 11px center / 12px; padding-right: 32px !important; cursor: pointer; color: var(--ink); }
select:not([multiple]):not([size]):hover { border-color: #d8c6ad; }
select:not([multiple]):not([size]):focus-visible { outline: 0; border-color: var(--sun); box-shadow: 0 0 0 3px rgba(232, 115, 28, .18); }
select:disabled { cursor: not-allowed; }
.am-days select { padding: 2px 20px 2px 6px !important; background-position: right 5px center; background-size: 10px; }
select[data-fk], .filter-row select, .filters select, .ph-act select { font-weight: 700; font-size: .85rem; border: 1px solid var(--line); border-radius: 10px; padding: 8px 32px 8px 12px; min-height: 38px; box-shadow: 0 1px 1px rgba(42, 27, 18, .03); }
select.on { background: #fff4e8 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23c2590f' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 11px center / 12px !important; border-color: #f0b98a !important; color: var(--sun-d); }
option { color: var(--ink); background: #fff; font-weight: 600; }

/* ---------- Bookings: one toolbar card instead of rows of buttons ---------- */
.bk-bar { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh); margin-bottom: 14px; }
.bk-tabs { display: flex; align-items: stretch; gap: 0; padding: 0 10px; border-bottom: 1px solid var(--line-2); overflow-x: auto; scrollbar-width: none; }
.bk-tabs::-webkit-scrollbar { display: none; }
.bk-tg { display: flex; flex: none; }
.bk-sep { flex: none; width: 1px; background: var(--line); margin: 13px 8px; }
.bk-tab { position: relative; flex: none; border: 0; background: none; padding: 13px 10px 12px; font-size: .86rem; font-weight: 700; color: var(--ink-2); white-space: nowrap; cursor: pointer; }
.bk-tab span { display: inline-block; min-width: 20px; margin-left: 3px; padding: 1px 6px; border-radius: 999px; background: var(--line-2); color: var(--muted); font-size: .72rem; font-weight: 800; text-align: center; font-variant-numeric: tabular-nums; }
.bk-tab:hover { color: var(--ink); }
.bk-tab::after { content: ''; position: absolute; left: 8px; right: 8px; bottom: -1px; height: 2.5px; border-radius: 3px 3px 0 0; background: transparent; transition: background-color .16s; }
.bk-tab.on { color: var(--ink); }
.bk-tab.on::after { background: var(--sun); }
.bk-tab.on span { background: #fde6d2; color: var(--sun-d); }
.bk-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 14px; }
.bk-tools .search { flex: 1 1 260px; max-width: none; margin: 0; box-shadow: none; }
.bk-tools .search input { padding: 8px 0; }
.bk-tools .more-filters { flex: 0 1 auto; margin: 0; }
.bk-tools .filter-row { margin: 0; gap: 8px; }
.frange { gap: 2px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); padding: 0 4px 0 11px; min-height: 38px; color: var(--muted); }
.frange > .ic { width: 15px; height: 15px; flex: none; }
.frange .fdate { gap: 4px; font-size: .8rem; font-weight: 700; color: var(--muted); }
.frange .fdate span { padding-left: 4px; }
.frange .fdate input, .frange .fdate input.on { border: 0 !important; background: transparent !important; padding: 7px 4px; font-size: .85rem; font-weight: 700; color: var(--ink); min-height: 0; box-shadow: none; }
.frange:hover { border-color: #d8c6ad; }
.frange:focus-within { border-color: var(--sun); box-shadow: 0 0 0 3px rgba(232, 115, 28, .18); }
.frange.on { border-color: #f0b98a; background: #fff4e8; }
.frange.on .fdate input { color: var(--sun-d); }
.bk-todo { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; padding: 9px 14px 11px; border-top: 1px solid var(--line-2); background: #fcf8f2; border-radius: 0 0 var(--r) var(--r); }
.bk-todo-l { flex: none; font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-right: 6px; }
.bk-td { display: inline-flex; align-items: center; gap: 5px; border: 1px solid transparent; background: none; border-radius: 999px; padding: 4px 10px; font-size: .8rem; font-weight: 700; color: var(--ink-2); white-space: nowrap; cursor: pointer; }
.bk-td span { min-width: 18px; padding: 0 5px; border-radius: 999px; background: var(--line-2); color: var(--muted); font-size: .7rem; font-weight: 800; text-align: center; font-variant-numeric: tabular-nums; }
.bk-td:hover { background: var(--line-2); color: var(--ink); }
.bk-td.on { background: #fff; border-color: #f0b98a; color: var(--sun-d); box-shadow: 0 1px 2px rgba(42, 27, 18, .06); }
.bk-td.on span { background: #fde6d2; color: var(--sun-d); }
.bk-td .ic { width: 14px; height: 14px; }
.bk-stale { margin-left: auto; }
.bk-td-none { font-size: .8rem; color: var(--muted); }
@media (max-width: 760px) {
  .bk-tabs { padding: 0 4px; }
  .bk-tab { padding: 12px 8px 11px; font-size: .84rem; }
  .bk-tools { padding: 10px; }
  .bk-tools .search { max-width: none; flex-basis: 100%; }
  .bk-tools .more-filters > summary { padding: 7px 12px; font-size: .84rem; }
  .bk-tools .more-filters[open] > summary { margin-bottom: 8px; }
  .bk-todo { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding: 8px 10px; }
  .bk-todo::-webkit-scrollbar { display: none; }
  .bk-stale { margin-left: 0; }
  .frange { flex: 1 1 100%; }
  .frange .fdate { flex: 1 1 50%; }
}
.bk-clear { display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; padding: 6px 8px; border-radius: 8px; font-size: .82rem; font-weight: 700; color: var(--sun-d); cursor: pointer; white-space: nowrap; }
.bk-clear .ic { width: 14px; height: 14px; }
.bk-clear:hover { background: #fff4e8; }
.frange { padding-left: 6px; }
@media (max-width: 700px) {
  .tbl.bk td[data-l="Guest"] { min-width: 0; }
  /* each booking as a tidy card: guest and status, stand and total, the dates, what is still to do, the buttons */
  .tbl.bk td[data-l="Guest"] { grid-column: 1; grid-row: 1; }
  .tbl.bk td[data-l="Status"] { grid-column: 2; grid-row: 1; justify-self: end; }
  .tbl.bk td[data-l="Stand"] { grid-column: 1; grid-row: 2; }
  .tbl.bk td[data-l="Total"] { grid-column: 2; grid-row: 2; }
  .tbl.bk td[data-l="Dates"] { grid-column: 1 / -1; grid-row: 3; white-space: normal; }
  .tbl.bk td[data-l="Still to do"] { grid-row: 4; }
  .tbl.bk td[data-l="Actions"] { grid-column: 1 / -1; grid-row: 5; }
  .tbl.bk td[data-l="Guest"] small, .tbl.bk td[data-l="Stand"] small { white-space: normal; }
  .bk-tools .more-filters { flex: 1 1 100%; min-width: 0; }
  .bk-tools .filter-row select { min-width: 0; }
  .td-todo { min-width: 0; max-width: none; }
}
@media (max-width: 760px) {
  .frange, .frange .fdate { min-width: 0; }
  .frange .fdate input { flex: 1; min-width: 0; width: 100%; padding-inline: 2px; }
}
/* "Make default": the tab Bookings opens on, at the end of the tab row */
.bk-def { flex: none; margin-left: auto; align-self: center; display: inline-flex; align-items: center; gap: 5px; border: 0; background: none; padding: 5px 9px; border-radius: 8px; font-size: .78rem; font-weight: 700; color: var(--muted); white-space: nowrap; cursor: pointer; }
.bk-def .ic { width: 14px; height: 14px; }
button.bk-def:hover { background: var(--line-2); color: var(--ink); }
.bk-def.is { cursor: default; color: var(--ok); }

/* ---------- The open dropdown list, drawn by us (see "Dropdown lists in the site's own look" in admin.js) ---------- */
.sel-menu { position: fixed; z-index: 3200; box-sizing: border-box; max-width: min(360px, calc(100vw - 16px)); overflow-y: auto; overscroll-behavior: contain; padding: 5px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 2px 6px rgba(42, 27, 18, .08), 0 16px 36px -14px rgba(42, 27, 18, .4); font-size: .87rem; animation: selIn .12s ease-out; scrollbar-width: thin; }
@keyframes selIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.sel-o { display: flex; align-items: center; gap: 8px; width: 100%; border: 0; background: none; text-align: left; padding: 7px 12px 7px 8px; border-radius: 8px; font: inherit; font-weight: 600; color: var(--ink); cursor: pointer; white-space: nowrap; }
.sel-o > i, .sel-o > .ic { flex: none; width: 15px; height: 15px; }
.sel-o > .ic { color: var(--sun); }
.sel-o span { overflow: hidden; text-overflow: ellipsis; }
.sel-o:hover, .sel-o:focus-visible { background: #fbf1e4; outline: 0; }
.sel-o.on { font-weight: 800; color: var(--sun-d); }
.sel-o:disabled { color: var(--muted); cursor: default; background: none; }
.sel-g { padding: 9px 10px 3px; font-size: .67rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.sel-g:first-child { padding-top: 4px; }
select.sel-open { border-color: var(--sun) !important; box-shadow: 0 0 0 3px rgba(232, 115, 28, .18); }
@media (prefers-reduced-motion: reduce) { .sel-menu { animation: none; } }
/* someone not staying at Kyleu on a drive: the payment buttons sit with the other controls */
.gd-walk > label { flex: 1 1 280px; min-width: 0; }
.gd-walk .gd-run-ctl { flex: 0 1 auto; flex-wrap: wrap; row-gap: 6px; }
.gd-walk .gd-walk-pay { gap: 4px; flex-wrap: nowrap; margin-right: 4px; }
.gd-walk .gd-walk-pay small { margin-right: 2px; white-space: nowrap; }
.gd-walk .gd-run-p .tag { margin-left: 4px; }
@media (max-width: 640px) { .gd-walk .gd-run-ctl { flex-wrap: wrap; } .gd-walk .gd-walk-pay { flex-wrap: wrap; } }
/* the home header choices: the option's label (radio, photo, words) and, for "Your own photo", the file button under it */
.hero-opt { cursor: default; }
.hero-opt-l { display: flex; flex-direction: column; flex: 1; cursor: pointer; }
.hero-opt-l > span { padding: 10px 12px 12px; display: block; }
.hero-opt-x { padding: 0 12px 12px; margin-top: -4px; }
.hero-opt-x .hero-up { margin-top: 0; cursor: pointer; }
.hero-up:focus-within { outline: 3px solid #f4b740; outline-offset: 2px; }
.vh-file { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; pointer-events: none; }
@media (max-width: 720px) { .hero-opt { flex-direction: column; align-items: stretch; } .hero-opt-l { flex-direction: row; align-items: center; } .hero-opt-x { padding: 0 12px 10px 132px; margin-top: 0; } }

/* "Change the receipt": four parts on a row (item, number, amount, take off). The shared invoice row has three, so the
   amount was squeezed into the narrow last column and the cross fell to the next line. On a phone the item gets its own line. */
.se-head, .inv-ed-row.se-row { display: grid; grid-template-columns: minmax(0, 1fr) 132px 112px 38px; gap: 8px; align-items: center; }
.se-head span:first-child, .se-head span:last-child { width: auto; }
.se-head span:nth-child(2) { width: auto; }
.se-row .stp { min-width: 0; height: 40px; }
.se-row .stp input, .se-row .stp input.se-q { flex: 1 1 0; width: 0; min-width: 0; text-align: center; border: 0; padding: 0 2px; }
.se-row .stp-b { width: 36px; }
.se-row input[name=a] { min-width: 0; }
@media (max-width: 560px) {
  .se-head { display: none; }
  .inv-ed-row.se-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 38px; row-gap: 6px; padding: 10px 0; border-bottom: 1px solid var(--line-2); }
  .se-row > input[name=t] { grid-column: 1 / -1; }
}

/* check-in and check-out: the order of the list (stand, plate A to Z, name, arrival time) */
.gate-sort { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; margin: -4px 0 12px; }
.gate-sort > span { display: inline-flex; align-items: center; gap: 5px; margin-right: 4px; font-size: .7rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.gate-sort > span .ic { width: 14px; height: 14px; }
.gate-sort button { border: 1px solid transparent; background: none; border-radius: 999px; padding: 5px 11px; font-size: .82rem; font-weight: 700; color: var(--ink-2); cursor: pointer; }
.gate-sort button:hover { background: var(--line-2); color: var(--ink); }
.gate-sort button.on { background: #fff; border-color: #f0b98a; color: var(--sun-d); box-shadow: 0 1px 2px rgba(42, 27, 18, .06); }
@media (max-width: 760px) { .gate-sort { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; } .gate-sort::-webkit-scrollbar { display: none; } .gate-sort button { flex: none; } }

/* the late check-in fee: a tick in the check-in form, and a bar on the gate card after the late time */
.check.late-fee { margin: 10px 0; padding: 10px 12px; border-radius: 10px; background: var(--warn-bg); box-shadow: inset 0 0 0 1px #efc98a; }
.gate-late { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 6px 0 2px; padding: 8px 10px; border-radius: 10px; background: var(--warn-bg); color: #7a3f00; font-size: .84rem; font-weight: 700; }
.gate-late .ic { width: 16px; height: 16px; }
.gate-late span { flex: 1; min-width: 160px; }
/* Rates & booking rules: the Sunday at the midweek rate */
.sun-mid .check { margin: 8px 0 4px; }
.sun-mid .sun-mid-n { margin-top: 8px; }
.sun-mid input[type=number] { width: 84px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; font: inherit; font-weight: 700; text-align: center; }
.sun-mid .rate-in { display: inline-flex; align-items: center; gap: 6px; }

/* a shop sale: its invoice and change buttons, the changes made to it, and what happened to the difference when a paid sale changes */
.rc-acts { margin-top: 12px; }
.rc-hist { margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: var(--line-2); font-size: .84rem; }
.rc-hist b { display: block; margin-bottom: 4px; }
.rc-hist ul { list-style: none; margin: 0; padding: 0; }
.rc-hist li { padding: 6px 0; border-top: 1px solid var(--line); }
.rc-hist li:first-child { border-top: 0; }
.rc-hist small { display: block; color: var(--ink-2); }
.rc-hist small.muted { color: var(--muted); }
.se-diff:not(:empty) { margin: 12px 0 4px; padding: 12px; border-radius: 12px; background: var(--warn-bg); box-shadow: inset 0 0 0 1px #efc98a; }
.se-diff .cr-opt { margin: 6px 0; }
.se-dxm { margin: 8px 0 0; max-width: 220px; }

/* gift cards (Payments, Gift cards). The card itself is drawn by ../assets/js/giftcard.js with ../assets/css/giftcard.css */
.gift-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; }
.gift-head p { margin: 0; max-width: 620px; }
.gift-list { display: grid; gap: 10px; }
.gift-row { display: grid; grid-template-columns: 172px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.gift-thumb { border: 0; padding: 0; background: none; cursor: pointer; display: block; width: 172px; border-radius: 9px; }
.gift-thumb .gc { width: 172px; }
.gift-thumb:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }
.gift-info { min-width: 0; display: grid; gap: 3px; font-size: .9rem; }
.gift-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.gift-btns { display: flex; flex-direction: column; gap: 6px; align-items: stretch; }
.gift-view { display: grid; place-items: center; padding: 18px 10px 10px; border-radius: 16px; background: linear-gradient(180deg, #1d2440, #3a2a3e); }
.gift-view .gc { width: min(520px, 100%); max-width: none; cursor: pointer; }
.gift-vbtns { justify-content: center; align-items: center; margin-top: 14px; }
.gift-make { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 22px; align-items: start; }
.gift-prev { position: sticky; top: 0; display: grid; gap: 12px; justify-items: center; padding: 20px 16px 14px; border-radius: 16px; background: linear-gradient(180deg, #1d2440, #3a2a3e); }
.gift-prev [data-gm-card] { width: 100%; }
.gift-prev .gc { max-width: none; cursor: default; }
.gift-prev .muted { color: rgba(255, 255, 255, .75); margin: 0; }
.gift-prev .code { color: #ffd27a; }
.gift-flds .seg { margin-bottom: 0; }
.gift-looks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.gift-look { position: relative; cursor: pointer; }
.gift-look input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.gift-look > span { display: grid; gap: 4px; padding: 4px; border-radius: 10px; border: 2px solid transparent; text-align: center; font-size: .7rem; font-weight: 700; color: var(--ink-2); line-height: 1.2; }
.gift-look input:checked + span { border-color: var(--sun); background: #fff6ea; }
.gift-look input:focus-visible + span { outline: 2px solid var(--sun); outline-offset: 1px; }
.gc-mini .gc-top, .gc-mini .gc-bot { display: none; }
.gift-mailcard { width: 260px; margin: 0 auto 14px; }
.gift-use { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 14px; align-items: center; margin-top: 6px; }
.gift-use p { margin: 0 0 4px; }
@media (max-width: 760px) {
  .gift-row { grid-template-columns: 120px minmax(0, 1fr); }
  .gift-thumb, .gift-thumb .gc { width: 120px; }
  .gift-btns { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; }
  .gift-make { grid-template-columns: 1fr; }
  .gift-prev { position: static; }
  .gift-looks { grid-template-columns: repeat(2, 1fr); }
  .gift-use { grid-template-columns: 1fr; }
  .gift-use .gc { width: 200px; }
}

/* Finish the Q2B import, and the "ask me afterwards" box of the import */
.qt-sec { margin: 0 0 20px; }
.qt-sec .m-h .tag { margin-left: 6px; vertical-align: middle; }
.qt-list { list-style: none; margin: 0; padding: 0; }
.qt-list li { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); }
.qt-list li:last-child { border-bottom: 0; }
.qb-laterbox { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper, #fffaf2); }
.qb-laterbox span { font-size: .92rem; line-height: 1.5; }
.qt-nostand { display: block; margin-top: 6px; font-size: .82rem; text-align: left; }

/* Rates page: prices that start on a date */
.rt-when { margin-bottom: 16px; }
.rt-when .card-h .ic { width: 17px; height: 17px; margin-right: 6px; vertical-align: -3px; }
.rt-pers { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.rt-pers button { border: 1px solid var(--line); background: #fff; color: var(--ink-2); border-radius: 999px; padding: 8px 16px; font: inherit; font-weight: 800; font-size: .88rem; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.rt-pers button:hover { border-color: var(--ink-2); }
.rt-pers button.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.rt-pers button em { font-style: normal; font-size: .68rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; padding: 2px 7px; border-radius: 999px; background: #f3eadc; color: var(--ink-2); }
.rt-pers button.on em { background: rgba(255, 255, 255, .2); color: #fff; }
.rt-say { margin: 0 0 12px; line-height: 1.55; }
.rt-forms { display: flex; flex-wrap: wrap; gap: 10px 26px; align-items: center; padding-top: 12px; border-top: 1px solid var(--line-2); }
.rt-forms .hol-add { margin: 0; align-items: center; }
.rt-forms .hol-add span { font-weight: 700; font-size: .88rem; color: var(--ink-2); }

/* Calendar: a colour for each thing staff need to tell apart, and the key that explains them */
.lg.c-wait, .cal-bar.c-wait { background: #f7e2a0; }
.lg.c-pop,  .cal-bar.c-pop  { background: #dccdf2; }
.lg.c-kept, .cal-bar.c-kept { background: #bfe3de; }
.lg.c-arr,  .cal-bar.c-arr  { background: #f4cfe0; }
.lg.c-dep,  .cal-bar.c-dep  { background: #cfe2f2; }
.lg.c-bal,  .cal-bar.c-bal  { background: #f6c592; }
.lg.c-over, .cal-bar.c-over { background: #f1a79b; }
.lg.c-paid, .cal-bar.c-paid { background: #d3e9c9; }
.lg.c-in,   .cal-bar.c-in   { background: #7fbf7a; color: #12300f; }
.lg.c-out,  .cal-bar.c-out  { background: #e6ddd0; color: var(--muted); }
.lg.c-block { background: repeating-linear-gradient(135deg, #e6dccd 0 5px, #f3ece1 5px 10px); }
/* the tick in front of the name: finalised, and still waiting for check-in (CAL_FIN). The bar's colour stays the money. */
.cal-fin { flex: none; width: 15px; height: 15px; border-radius: 50%; background: #2e6b2a; display: grid; place-items: center; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .8); }
.cal-bar .cal-fin { margin-left: -1px; }
.cal-fin .ic, .cal-bar .cal-fin .ic { width: 9px; height: 9px; color: #fff; }
.ck .lg.ck-fin { display: grid; place-items: center; }
.ck .cal-fin { width: 12px; height: 12px; box-shadow: none; }
.ck .cal-fin .ic { width: 8px; height: 8px; }
/* The colour key: a button in the calendar's header that opens a card. It unfolds from the button: the card settles down from
   the top right, then each colour slides in like a booking being drawn on the calendar. */
.cal-ph { position: relative; }
.cal-key { display: inline-flex; }
.ck-btn { display: inline-flex; align-items: center; gap: 9px; height: 38px; padding: 0 13px 0 11px; border: 0; border-radius: 10px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); font: inherit; font-weight: 800; font-size: .86rem; cursor: pointer; transition: box-shadow .2s, background .2s; }
.ck-btn:hover { box-shadow: inset 0 0 0 1px var(--ink-2); }
.cal-key.open .ck-btn { background: #fff6ea; box-shadow: inset 0 0 0 2px var(--sun); }
.ck-ico { display: grid; grid-template-columns: 8px 8px; gap: 2px; transition: transform .45s cubic-bezier(.2, .8, .2, 1), gap .3s; }
.ck-ico i { width: 8px; height: 8px; border-radius: 3px; }
.ck-ico i:nth-child(1) { background: #f0c64f; } .ck-ico i:nth-child(2) { background: #86b6df; } .ck-ico i:nth-child(3) { background: #7fbf7a; } .ck-ico i:nth-child(4) { background: #e5857a; }
.cal-key.open .ck-ico { transform: rotate(90deg); gap: 3px; }
.ck-pop { position: absolute; top: calc(100% + 10px); right: 0; z-index: 30; width: min(620px, 100%); padding: 6px 16px 14px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 24px 50px -22px rgba(42, 27, 18, .5), 0 2px 6px rgba(42, 27, 18, .06);
  opacity: 0; visibility: hidden; transform: translateY(-10px) scale(.96); transform-origin: var(--cx, calc(100% - 46px)) top; transition: opacity .2s ease, transform .34s cubic-bezier(.2, .9, .25, 1.08), visibility 0s linear .34s; }
.ck-pop::before { content: ''; position: absolute; top: -7px; left: calc(var(--cx, calc(100% - 46px)) - 6px); width: 12px; height: 12px; background: var(--card); border-left: 1px solid var(--line); border-top: 1px solid var(--line); transform: rotate(45deg); }
.cal-key.open .ck-pop { opacity: 1; visibility: visible; transform: none; transition: opacity .2s ease, transform .34s cubic-bezier(.2, .9, .25, 1.08), visibility 0s; }
.ck-pop header { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 0 8px; margin-bottom: 10px; border-bottom: 1px solid var(--line-2); }
.ck-pop header b { font-family: var(--font-display, inherit); font-size: 1.02rem; }
.ck-pop header .icon-btn { width: 30px; height: 30px; box-shadow: none; background: none; color: var(--muted); }
.ck-pop header .icon-btn:hover { background: var(--line-2); color: var(--ink); }
.ck-pop header .icon-btn .ic { width: 16px; height: 16px; }
.ck-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 11px 18px; }
.ck { display: flex; align-items: flex-start; gap: 10px; min-width: 0; opacity: 0; transform: translateY(6px); transition: opacity .15s ease, transform .15s ease; }
.cal-key.open .ck { opacity: 1; transform: none; transition: opacity .28s ease calc(70ms + var(--i, 0) * 24ms), transform .34s cubic-bezier(.2, .8, .2, 1) calc(70ms + var(--i, 0) * 24ms); }
.ck .lg { width: 30px; height: 16px; border-radius: 6px; flex: none; margin-top: 2px; transform: scaleX(.35); transform-origin: left center; transition: transform .15s ease; }
.cal-key.open .ck .lg { transform: none; transition: transform .42s cubic-bezier(.2, .8, .2, 1) calc(110ms + var(--i, 0) * 24ms); }
.ck b { display: block; font-size: .84rem; line-height: 1.25; }
.ck b em { font-style: normal; font-weight: 800; font-size: .7rem; color: var(--ink-2); background: #f3eadc; border-radius: 999px; padding: 1px 7px; margin-left: 4px; }
.ck small { display: block; font-size: .75rem; color: var(--muted); line-height: 1.3; }
.ck .ck-clash { box-shadow: inset 0 0 0 2px var(--bad); }
.ck .ck-early { border-right: 3px dashed rgba(0, 0, 0, .4); }
.ck-foot { display: flex; gap: 8px; align-items: flex-start; margin: 14px 0 0; padding-top: 11px; border-top: 1px solid var(--line-2); font-size: .78rem; color: var(--ink-2); line-height: 1.45; }
.ck-foot .ic { width: 15px; height: 15px; flex: none; margin-top: 1px; color: var(--muted); }
@media (max-width: 760px) {
  .ck-word { display: none; }
  .cal-ph .ck-btn { position: absolute; top: -4px; right: 0; height: 34px; padding: 0 10px; }   /* beside the page's title, so the row of buttons stays one row */
  .cal-ph .cal-key { width: 0; margin-left: -8px; }
  .ck-pop { left: 0; right: 0; width: auto; padding: 4px 13px 12px; max-height: max(280px, calc(100vh - 320px)); overflow-y: auto; overscroll-behavior: contain; }
  .ck-grid { grid-template-columns: 1fr 1fr; gap: 10px 12px; }
  .ck small { font-size: .72rem; }
}
@media (prefers-reduced-motion: reduce) { .ck-pop, .ck, .ck .lg, .ck-ico, .cal-key.open .ck-pop, .cal-key.open .ck, .cal-key.open .ck .lg { transition: none; } }

/* The More menu on a booking never leaves the screen. On a phone it opens under the row of buttons, as wide as that row
   (the More button can be the one on the left, and the menu used to open to the left of it, off the screen). */
.d-more > .d-menu { max-height: min(70vh, 540px); overflow-y: auto; overscroll-behavior: contain; }
@media (max-width: 640px) {
  .d-head .d-actions { position: relative; }
  .d-head .d-more { position: static; }
  .d-head .d-more > .d-menu { left: 0; right: 0; min-width: 0; max-width: none; }
}
