/* Self-hosted fonts (latin subset, variable woff2 from Google Fonts; SIL OFL 1.1, see fonts/OFL-*.txt).
   Same faces as the former Google Fonts CSS, so weights render as before (e.g. Roboto 600 -> 700 face). */
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/static/fonts/cormorant-garamond-latin.woff2) format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 500; font-display: swap;
  src: url(/static/fonts/cormorant-garamond-latin.woff2) format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 600; font-display: swap;
  src: url(/static/fonts/cormorant-garamond-latin.woff2) format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 700; font-display: swap;
  src: url(/static/fonts/cormorant-garamond-latin.woff2) format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 500; font-display: swap;
  src: url(/static/fonts/cormorant-garamond-italic-latin.woff2) format('woff2'); }
@font-face { font-family: 'Roboto'; font-style: normal; font-weight: 400; font-stretch: 100%; font-display: swap;
  src: url(/static/fonts/roboto-latin.woff2) format('woff2'); }
@font-face { font-family: 'Roboto'; font-style: normal; font-weight: 500; font-stretch: 100%; font-display: swap;
  src: url(/static/fonts/roboto-latin.woff2) format('woff2'); }
@font-face { font-family: 'Roboto'; font-style: normal; font-weight: 700; font-stretch: 100%; font-display: swap;
  src: url(/static/fonts/roboto-latin.woff2) format('woff2'); }

:root {
  /* Huisstijl Hoi Tin (hoitin.nl + logo): cream, brown, gold accent */
  --bg: #fdf8e5; --card: #fffdf6; --panel: #f4e5d5; --ink: #3b2215; --brown: #552d19; --brown-d: #371d10;
  --muted: #725d4d; --faint: #b0a191; --line: #e3d4c4; --line-soft: #ece7d4;
  --gold: #cda10c; --gold-text: #7d5f0e; --gold-soft: #f6ecc8;
  --jade: #2e7d5b; --jade-d: #256b4c; --jade-bg: #e3f0e8; --jade-text: #1e5a40;
  --red: #a72b1d; --red-bg: #f9e6e1; --amber: #cda10c; --amber-bg: #fbf0cf; --amber-text: #6b4f00;
  --teal: #2f5d6e; --teal-bg: #e2edf0;
  --serif: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
  --sans: Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --shadow: 0 1px 2px rgba(55,29,16,.06), 0 4px 14px rgba(55,29,16,.06);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--ink);
  font-family: var(--sans);
  -webkit-user-select: none; user-select: none; }
button { font: inherit; border: none; cursor: pointer; border-radius: 14px; touch-action: manipulation; }
button:active { transform: scale(.97); }
.hidden { display: none !important; }
.muted { color: var(--muted); }

/* ---------- kiosk ---------- */
/* Sizes scale with the screen (vw/dvh + clamp): landscape = clock left, pad right; portrait = clock on top, pad fills the rest. */
.screen { position: fixed; inset: 0; display: flex;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); }
.home-left { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 40px; min-width: 0; }
.logo { display: block; height: clamp(150px, 28vh, 250px); width: auto; flex: none; }
.bigclock { font-family: var(--serif); color: var(--brown); font-size: clamp(64px, min(14vw, 22vh), 190px); font-weight: 500; letter-spacing: .01em; font-variant-numeric: lining-nums tabular-nums; line-height: 1; margin: 2.5vh 0 1.2vh; }
.date { font-family: var(--serif); font-size: clamp(19px, 2.9vmin, 29px); font-weight: 500; font-style: italic; color: var(--muted); }
.date::before, .date::after { content: ''; display: inline-block; width: 1.6em; height: 1px; background: var(--gold); vertical-align: middle; margin: 0 .7em; opacity: .8; }
.offline { margin-top: 18px; color: var(--red); font-size: 22px; font-weight: 600; }
.home-right { width: clamp(360px, 42vw, 540px); display: flex; flex-direction: column; justify-content: center; align-items: center;
  background: var(--card); border-left: 1px solid var(--line); box-shadow: inset 3px 0 0 -2px var(--gold); padding: 24px; overflow-y: auto; }
.pad-title { font-family: var(--serif); color: var(--brown); font-size: clamp(24px, 3.6vmin, 36px); font-weight: 600; margin-bottom: 2vh; }
.dots { display: flex; gap: 22px; margin-bottom: 10px; }
.dot { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--faint); transition: background .12s, border-color .12s; }
.dot.on { background: var(--brown); border-color: var(--brown); box-shadow: 0 0 0 3px var(--gold-soft); }
.pad-err { min-height: 30px; color: var(--red); font-size: 20px; font-weight: 600; text-align: center; }
.shake { animation: shake .45s; }
@keyframes shake { 0%,100% { transform: translateX(0) } 20%,60% { transform: translateX(-14px) } 40%,80% { transform: translateX(14px) } }
.pad { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: clamp(64px, 11.5dvh, 120px); gap: clamp(10px, 1.6vmin, 18px);
  width: 100%; max-width: 420px; flex: none; }
.key { font-size: clamp(30px, 4.6vmin, 48px); background: var(--panel); color: var(--brown); font-weight: 400; font-variant-numeric: lining-nums;
  border: 1px solid #ead8c4; box-shadow: 0 1px 0 rgba(255,255,255,.7) inset, 0 2px 0 #e0cdb8; }
.key:active { background: #ead6c0; box-shadow: none; }
.key.ghost { background: transparent; border: none; box-shadow: none; pointer-events: none; }
.corner-btn { position: fixed; left: calc(18px + env(safe-area-inset-left)); bottom: calc(16px + env(safe-area-inset-bottom));
  background: transparent; color: var(--muted); font-size: 18px; min-height: 56px; padding: 16px 22px; border: 1px solid var(--line); letter-spacing: .02em; }
.pad-cancel { margin-top: 18px; background: transparent; color: var(--muted); font-size: 20px; min-height: 56px; padding: 16px 28px; }

.center { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 24px; text-align: center; min-width: 0; }
.hoi { font-family: var(--serif); color: var(--brown); font-size: clamp(42px, 8vmin, 82px); font-weight: 600; line-height: 1.05; margin-bottom: 8px; }
.hoi-clock { font-size: clamp(20px, 3vmin, 28px); color: var(--muted); font-variant-numeric: tabular-nums; margin-bottom: 3vh; }
.bigbtns { display: flex; gap: clamp(16px, 3vw, 36px); }
.bigbtn { width: clamp(240px, 34vw, 440px); height: clamp(140px, 28dvh, 280px); font-size: clamp(30px, 5vmin, 52px); font-weight: 500; letter-spacing: .02em; color: #fff;
  box-shadow: 0 0 0 1px rgba(0,0,0,.08) inset, 0 6px 18px rgba(55,29,16,.18); }
.bigbtn.in { background: var(--jade); } .bigbtn.in:active { background: var(--jade-d); }
.bigbtn.out { background: var(--brown); } .bigbtn.out:active { background: var(--brown-d); }
.bigbtn.hint { box-shadow: 0 0 0 6px var(--bg), 0 0 0 11px var(--gold), 0 6px 18px rgba(55,29,16,.18); }
.bigbtn:disabled { opacity: .6; }
.cancel { margin-top: 3.5vh; font-size: 24px; min-height: 64px; padding: 18px 56px; background: var(--panel); color: var(--brown); border: 1px solid var(--line); }
.msg { min-height: 64px; margin-bottom: 18px; font-size: clamp(19px, 2.8vmin, 26px); font-weight: 600; background: var(--amber-bg);
  color: var(--amber-text); border: 1px solid #e8d38a; border-radius: 14px; padding: 16px 26px; max-width: 720px; }
.msg:empty { background: transparent; border-color: transparent; }
.countdown { position: fixed; left: 0; bottom: 0; height: calc(8px + env(safe-area-inset-bottom)); background: var(--gold); width: 100%; }
.countdown.run { animation: cd 15s linear forwards; }
@keyframes cd { from { width: 100% } to { width: 0 } }
.result-icon { width: clamp(100px, 16vmin, 160px); height: clamp(100px, 16vmin, 160px); border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: clamp(60px, 10vmin, 100px); color: #fff; margin-bottom: 28px; flex: none; }
.result-icon { box-shadow: 0 0 0 8px var(--bg), 0 0 0 9px var(--gold); }
.result-icon.in { background: var(--jade); } .result-icon.out { background: var(--brown); } .result-icon.err { background: var(--red); }
.result-text { font-family: var(--serif); color: var(--brown); font-size: clamp(32px, 6vmin, 60px); font-weight: 600; line-height: 1.15; font-variant-numeric: lining-nums; max-width: 860px; }

/* portrait (iPad upright, phone): clock on top, the pad panel takes the rest of the height */
@media (orientation: portrait) {
  #home { flex-direction: column; }
  .home-left { flex: none; padding: max(4vh, 24px) 24px 3vh; }
  .bigclock { font-size: clamp(72px, 21vw, 200px); }
  .logo { height: clamp(52px, 7vh, 100px); }
  .home-left { padding-top: max(3vh, 16px); }
  .bigclock { margin-top: 1.5vh; }
  .date { font-size: clamp(17px, 2.6vmin, 26px); }
  .pad-title { font-size: clamp(22px, 3.2vmin, 32px); }
  .home-right { flex: 1; width: auto; border-left: none; border-top: 1px solid var(--line); box-shadow: inset 0 3px 0 -2px var(--gold);
    padding: 3vh 24px calc(88px + env(safe-area-inset-bottom)); justify-content: safe center; }
  .pad { max-width: 600px; grid-auto-rows: clamp(68px, 11dvh, 140px); }
  .key { font-size: clamp(32px, 5.5vmin, 52px); }
  .bigbtns { flex-direction: column; width: min(100%, 640px); }
  .bigbtn { width: 100%; height: clamp(120px, 24dvh, 300px); }
  .cancel { width: min(100%, 640px); }
}
/* short landscape (phone on its side): tighten everything so the pad still fits */
@media (orientation: landscape) and (max-height: 520px) {
  .home-left { padding: 16px; }
  .logo { height: 26vh; }
  .home-right { padding: 10px 16px; justify-content: flex-start; }
  .pad-title { font-size: 21px; margin-bottom: 6px; }
  .dots { gap: 14px; margin-bottom: 4px; }
  .dot { width: 18px; height: 18px; }
  .pad-err { min-height: 22px; font-size: 16px; }
  .pad { grid-auto-rows: max(48px, calc((100dvh - 120px) / 4 - 8px)); gap: 8px; max-width: 360px; }
  .key { font-size: 28px; }
  .center { padding: 12px 16px; }
  .hoi { font-size: 36px; margin-bottom: 0; }
  .hoi-clock { font-size: 18px; margin-bottom: 8px; }
  .msg { min-height: 0; padding: 8px 16px; margin-bottom: 8px; font-size: 17px; }
  .msg:empty { padding: 0; margin: 0; }
  .bigbtn { height: clamp(100px, 40dvh, 160px); font-size: 30px; }
  .cancel { margin-top: 10px; min-height: 52px; padding: 10px 40px; font-size: 20px; }
  .pad-cancel { position: fixed; left: calc(18px + env(safe-area-inset-left)); bottom: calc(16px + env(safe-area-inset-bottom));
    margin: 0; border: 1px solid var(--line); font-size: 18px; padding: 16px 22px; }
}

/* ---------- beheer ---------- */
.mgr { position: fixed; inset: 0; display: flex; flex-direction: column; }
.mgr { background: var(--bg); }
.mgr-head { display: flex; align-items: center; gap: 14px; background: var(--card); box-shadow: 0 1px 0 var(--line), 0 3px 0 -1px var(--gold-soft);
  padding: calc(16px + env(safe-area-inset-top)) calc(24px + env(safe-area-inset-right)) 16px calc(24px + env(safe-area-inset-left));
  border-bottom: 1px solid var(--line); flex: none; }
.head-logo { height: 52px; width: auto; flex: none; margin: -4px 2px -4px 0; }
.mgr-head h1 { font-family: var(--serif); color: var(--brown); font-size: 32px; font-weight: 600; line-height: 1.1; margin: 0; flex: 1; }
.mgr-body { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding: 22px calc(24px + env(safe-area-inset-right)) calc(60px + env(safe-area-inset-bottom)) calc(24px + env(safe-area-inset-left)); }
.btn { min-height: 52px; padding: 14px 22px; font-size: 18px; font-weight: 500; background: var(--panel); color: var(--brown); border: 1px solid #e6d3bf; }
.btn.primary { background: var(--brown); border-color: var(--brown); color: #fff; }
.btn.primary:active { background: var(--brown-d); }
.btn.green { background: var(--jade); border-color: var(--jade); color: #fff; }
.btn.danger { background: var(--red-bg); border-color: #efc9c0; color: var(--red); }
.btn:focus-visible, .tile:focus-visible, .tile-big:focus-visible, .key:focus-visible, .bigbtn:focus-visible, .month-btn:focus-visible, .tag:focus-visible {
  outline: 3px solid var(--gold); outline-offset: 2px; }
.btn.sm { min-height: 48px; padding: 10px 16px; font-size: 16px; }
.btn:disabled { opacity: .45; }
.warn { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: var(--amber-bg);
  border: 2px solid var(--amber); color: var(--amber-text); font-size: 20px; font-weight: 600; padding: 16px 20px; margin-bottom: 12px; }
.ok-bar { background: var(--jade-bg); color: var(--jade-text); border: 1px solid #c5dfd0; padding: 14px 20px; border-radius: 14px; font-size: 18px; margin-bottom: 12px; }
.tile-big { width: 100%; background: var(--brown) linear-gradient(135deg, #5f3420 0%, var(--brown) 55%, #42220f 100%); color: #fff;
  box-shadow: inset 0 0 0 1px rgba(205,161,12,.55), inset 0 0 0 6px var(--brown), inset 0 0 0 7px rgba(205,161,12,.35), var(--shadow);
  font-family: var(--serif); font-size: 40px; font-weight: 600; padding: 34px; margin: 10px 0 18px; text-align: left; }
.tile-big small { display: block; font-family: var(--sans); font-size: 17px; font-weight: 400; color: #ecdcae; margin-top: 6px; }
.tile-big .badge.green { vertical-align: middle; font-family: var(--sans); background: var(--gold); color: var(--brown-d); }
.tiles { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 18px; }   /* wide: all tiles on one row */
.tile { background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow);
  font-family: var(--serif); font-size: 31px; font-weight: 600; padding: 34px; text-align: left; color: var(--brown);
  display: flex; flex-direction: column; justify-content: flex-start; }   /* titles line up when a subtitle wraps */
.tile::before { content: ''; display: block; width: 40px; height: 2px; background: var(--gold); margin-bottom: 14px; }
.tile small { display: block; font-family: var(--sans); font-size: 16px; font-weight: 400; color: var(--muted); margin-top: 6px; }
.card { background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: 14px; padding: 16px 18px; margin-bottom: 16px;
  overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: 18px; font-variant-numeric: tabular-nums; }
th { text-align: left; font-size: 13px; color: var(--muted); font-weight: 500; text-transform: uppercase; letter-spacing: .06em; padding: 8px 10px; border-bottom: 1px solid var(--gold); }
td { padding: 10px 10px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
td.act { text-align: right; white-space: nowrap; }
tr.inactive td { color: #8f7d6c; }
tr.group td { padding: 18px 10px 6px; font: 500 13px var(--sans); text-transform: uppercase; letter-spacing: .06em;
  color: var(--muted); }   /* Medewerkers: Klokt niet in / Niet actief */
tr.open td { background: var(--amber-bg); }
tr.total td { font-weight: 700; color: var(--brown); border-top: 2px solid var(--brown); }
tr.detail > td { background: #faf2e2; padding: 8px 14px 16px; }
table.sub { font-size: 16px; background: var(--card); border-radius: 10px; }
table.sub td { padding: 6px 10px; }
.corr-btn { white-space: nowrap; background: var(--gold-soft); color: var(--brown); border: 1px solid #e6d28f; font-weight: 600; padding: 8px 12px; border-radius: 8px; font-size: 18px; font-variant-numeric: tabular-nums; }
.pin { font-family: ui-monospace, Menlo, monospace; font-size: 22px; letter-spacing: 3px; color: var(--brown); -webkit-user-select: text; user-select: text; }
.badge { display: inline-block; white-space: nowrap; font-size: 13px; font-weight: 700; padding: 3px 8px; border-radius: 8px; background: var(--panel); color: var(--muted); letter-spacing: .02em; }
.badge.amber { background: var(--amber-bg); color: var(--amber-text); box-shadow: inset 0 0 0 1px var(--gold); }
.badge.green { background: var(--jade-bg); color: var(--jade-text); box-shadow: inset 0 0 0 1px #b9d8c6; }
.badge.blue { background: var(--teal-bg); color: var(--teal); }
s { color: #9a8877; margin-right: 6px; }
input, select { font: inherit; font-size: 18px; min-height: 48px; padding: 10px 12px; border: 2px solid var(--line); border-radius: 10px;
  background: #fff; color: var(--ink); -webkit-user-select: text; user-select: text; }
input:focus, select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
input.bad { border-color: var(--red); background: var(--red-bg); }
input.time { width: 96px; }
input[type=checkbox] { min-height: 0; width: 22px; height: 22px; padding: 0; accent-color: var(--gold); }
.pin-field { display: flex; flex-direction: column; gap: 6px; max-width: 320px; margin-top: 12px; font-size: 17px; }
.pin-field input { letter-spacing: .3em; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row.end { justify-content: flex-end; }
.row.fields { align-items: flex-end; }      /* labelled inputs with a button: the button lines up with the inputs */
.field { display: flex; flex-direction: column; gap: 6px; flex: 2 1 240px; min-width: 0; font-size: 17px; }
.field.code { flex: 1 1 120px; }
.field input { width: 100%; }
.pair { display: inline-flex; align-items: center; gap: 8px; }
/* yes/no toggle switch (beheer.js sw): track 46×28 in a 46×44 tap area, thumb 22 slides 18 px */
.sw { position: relative; flex: none; width: 46px; height: 44px; padding: 0; border-radius: 14px; background: none; vertical-align: middle; }
.sw::before { content: ''; position: absolute; left: 0; top: 8px; width: 46px; height: 28px; border-radius: 14px; background: var(--line);
  transition: background .16s, box-shadow .16s; }
.sw::after { content: ''; position: absolute; left: 3px; top: 11px; width: 22px; height: 22px; border-radius: 50%; background: var(--card);
  box-shadow: 0 1px 2px rgba(55,29,16,.25); transition: background .16s, transform .16s ease-out; }
.sw[aria-checked=true]::before { background: var(--jade); }
.sw[aria-checked=true]::after { transform: translateX(18px); }
.sw:focus-visible { outline: none; }
.sw:focus-visible::before { box-shadow: 0 0 0 2px var(--card), 0 0 0 5px var(--gold); }   /* 3 px gold, 2 px off the track */
.sw:disabled { opacity: .45; cursor: default; }
@media (prefers-reduced-motion: reduce) { .sw::before, .sw::after { transition: none; } }
.sw-row { display: inline-flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 17px; color: var(--ink); cursor: pointer; }
th.c, td.sw-cell { text-align: center; }
td.sw-cell { padding-top: 0; padding-bottom: 0; }
.staff-head { margin-bottom: 4px; }
.staff-new { margin-bottom: 8px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.staff-new-btns { display: flex; gap: 12px; }
/* tap-to-cycle time (beheer.js cycleTime): fixed width so the row does not jump; "leeg" is dashed and muted */
.cycle { display: inline-flex; align-items: center; gap: 8px; }
.cycle-btn { min-width: 104px; font-variant-numeric: lining-nums tabular-nums; }
.cycle-btn.empty { background: var(--card); border: 2px dashed var(--faint); color: var(--muted); }
.notice { background: var(--jade-bg); color: var(--jade-text); border: 1px solid #c5dfd0; padding: 14px 18px; border-radius: 12px; font-size: 20px; margin-bottom: 16px; }
.notice.info { background: var(--gold-soft); color: var(--amber-text); border-color: #e6d28f; }
.notice.err { background: var(--red-bg); color: #82200f; border-color: #efc9c0; }
.steps { display: flex; gap: 8px; margin-bottom: 18px; }
.step { flex: 1; padding: 10px 14px; border-radius: 10px; background: var(--panel); color: var(--muted); font-weight: 500; font-size: 16px; }
.step.cur { background: var(--brown); color: #fff; box-shadow: inset 0 -3px 0 var(--gold); }
.grid input { width: 60px; text-align: center; padding: 8px 2px; font-size: 16px; }
.grid th, .grid td { padding: 8px 4px; }
.grid th { text-align: center; background: var(--card); }
.grid th:first-child, .grid td:first-child { position: sticky; left: 0; z-index: 1; background: var(--card); min-width: 110px; text-align: left; }
.grid input.from-rooster { background: var(--line-soft); border-color: var(--line-soft); }   /* definitive rooster value, not typed */
.grid input.from-rooster::placeholder { color: var(--muted); opacity: 1; }
.grid .no-rooster { background: var(--amber-bg); }                 /* day without a definitive rooster */
.notice.amber { background: var(--amber-bg); color: var(--amber-text); border-color: var(--amber); }
.weekend { color: var(--red); }
h2 { font-family: var(--serif); color: var(--brown); font-size: 27px; font-weight: 600; line-height: 1.15; margin: 4px 0 14px; }
#toast { position: fixed; left: 50%; bottom: calc(30px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: var(--brown-d); color: #fdf8e5; box-shadow: 0 8px 24px rgba(55,29,16,.3), inset 0 -2px 0 var(--gold); padding: 16px 28px;
  border-radius: 14px; font-size: 20px; opacity: 0; pointer-events: none; transition: opacity .25s; z-index: 30; max-width: 90vw; }   /* above dialogs: errors from the paste dialog */
#toast.show { opacity: 1; }
@media (max-width: 760px) { #toast { width: max-content; max-width: calc(100vw - 24px); padding: 12px 18px; font-size: 16px; } }   /* left: 50% alone would wrap it at half the width */
/* in-app confirm dialog */
.ask { position: fixed; inset: 0; background: rgba(55,29,16,.45); display: flex; align-items: center; justify-content: center; z-index: 20; padding: 16px; }
.ask-box { background: var(--card); border-radius: 18px; padding: 26px 26px 20px; width: 100%; max-width: 440px; border-top: 3px solid var(--gold); box-shadow: 0 20px 50px rgba(55,29,16,.3); }
.ask-box p { margin: 0 0 22px; font-size: 20px; line-height: 1.4; color: var(--ink); }
.ask-btns { display: flex; gap: 12px; justify-content: flex-end; flex-wrap: wrap; }
.btn.red { background: var(--red); border-color: var(--red); color: #fff; }
/* per-medewerker pagina */
.name-btn { background: none; padding: 8px 0; font-size: 18px; font-weight: 700; color: var(--brown); text-align: left; text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; }
.person { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 18px; align-items: start; }
.profile { overflow: visible; }
.profile .prof-sw { display: flex; flex-wrap: wrap; gap: 4px 28px; margin: 14px 0 8px; }
.profile .chip.lv { min-height: 48px; }                /* as in Roosterinstellingen */
.profile .prof-acts { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line-soft); }
.profile .prof-acts > :last-child { margin-left: auto; }
.months { display: flex; flex-direction: column; gap: 8px; position: sticky; top: 0; }
.month-btn { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; text-align: left; background: var(--card);
  border: 1px solid var(--line); padding: 12px 14px; font-size: 17px; color: var(--brown); }
.month-btn .num { font-variant-numeric: tabular-nums; }
.month-btn small { grid-column: 1 / -1; color: var(--muted); font-size: 14px; font-weight: 600; }
.month-btn.cur { background: var(--brown); border-color: var(--brown); color: #fff; box-shadow: inset 4px 0 0 var(--gold); }
.month-btn.cur small { color: #ecdcae; }
s.orig { display: block; margin: 2px 0 0; font-size: 14px; opacity: .8; }
.tag { margin-left: 8px; padding: 8px 12px; min-height: 40px; border-radius: 8px; font-size: 14px; font-weight: 700; }
.tag.orange { background: var(--amber-bg); color: var(--amber-text); border: 1px solid var(--amber); }
.tag.blue { background: var(--teal-bg); color: var(--teal); border: 1px solid #bcd3db; }
.tag.grey { background: var(--panel); color: var(--muted); border: 1px solid var(--line); }
tr.deleted td:not(.act) { color: #9a8877; }
tr.deleted td:not(.act) .day, tr.deleted td:nth-child(n+2):not(.act) { text-decoration: line-through; }
tr.has-hist td { border-bottom: none; }
tr.hist-row > td { padding-top: 0; }
.hist { border-left: 4px solid var(--gold); background: #fbf4e2; border-radius: 0 8px 8px 0; padding: 10px 14px;
  font-size: 15px; line-height: 1.7; }
.hist .when { display: inline-block; min-width: 110px; color: var(--muted); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.pill { background: var(--panel); color: var(--muted); font-size: 14px; font-weight: 600; padding: 6px 12px; border-radius: 999px; }
.add-form { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.day, tr:not(.hist-row):not(.detail) > td:first-child:not([colspan]) { white-space: nowrap; }
/* tablet upright: two tile columns (an odd last tile spans both), and the home view fills the height:
   the big tile and the tiles grow into the free space, Eerdere maanden stays at its own size */
@media (orientation: portrait) and (min-width: 761px) {
  .tiles { grid-auto-flow: row; grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; }
  .tiles > .tile:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .tile-big { padding: 4vh 34px; font-size: 38px; }
  .tile { padding: 3vh 34px; font-size: 28px; justify-content: center; }
  .mgr-body.is-home { display: flex; flex-direction: column; padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
  .mgr-body.is-home > :last-child { margin-bottom: 0; }
  .mgr-body.is-home > * { flex: none; }
  .mgr-body.is-home > .tile-big { flex: 1 1 auto; }
  .mgr-body.is-home > .tiles { flex: 2 1 auto; }
}

/* narrow tablet (iPad upright): slimmer cells and month column so tables fit without sideways scrolling */
@media (min-width: 761px) and (max-width: 1000px) {
  th, td { padding-left: 6px; padding-right: 6px; }
  .person { grid-template-columns: 180px minmax(0, 1fr); }
}
/* phone: person page month list becomes a horizontal strip on top */
@media (max-width: 760px) {
  .person { grid-template-columns: 1fr; gap: 12px; }
  .profile .prof-sw { flex-direction: column; }
  .profile .prof-sw .sw-row { display: flex; }          /* label left, switch right, as in the stacked lists */
  .profile .row.fields > .btn { flex: 1 1 100%; }
  .profile .chip.extra { margin-left: 0; }
  .months { position: static; flex-direction: row; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 4px; scroll-snap-type: x proximity; }
  .month-btn { flex: none; min-width: 132px; scroll-snap-align: start; }
}
/* phone: compact header, one column, tables marked .stack become one block per row */
@media (max-width: 760px) {
  .mgr-head { flex-wrap: wrap; gap: 8px 10px;
    padding: calc(10px + env(safe-area-inset-top)) calc(12px + env(safe-area-inset-right)) 10px calc(12px + env(safe-area-inset-left)); }
  .head-logo { order: -2; height: 40px; margin: 0; }
  .mgr-head h1 { order: -1; flex-basis: calc(100% - 50px); font-size: 27px; }
  .mgr-head .btn { min-height: 44px; padding: 8px 14px; font-size: 16px; }
  .mgr-head [data-act=logout] { margin-left: auto; }
  .mgr-body { padding: 14px calc(12px + env(safe-area-inset-right)) calc(60px + env(safe-area-inset-bottom)) calc(12px + env(safe-area-inset-left)); }
  .card { padding: 12px; }
  .btn { min-height: 48px; padding: 12px 16px; font-size: 17px; }
  .btn.sm { min-height: 44px; padding: 8px 12px; }
  .tile-big { font-size: 30px; padding: 24px 22px; }
  .tiles { grid-auto-flow: row; grid-template-columns: 1fr; gap: 12px; }
  .tile { font-size: 26px; padding: 22px; }
  .warn, .notice { font-size: 17px; }
  .steps { gap: 6px; }
  .step { font-size: 13px; padding: 8px 10px; }
  h2 { font-size: 24px; }
  .row > select, .row > input:not(.time) { flex: 1 1 140px; min-width: 0; }
  .row > label { min-width: 96px; }
  .row > label + select { flex-basis: calc(100% - 120px); }
  .pair:has(input[type=date]) { flex-basis: 100%; }
  .name-btn { min-height: 44px; }
  .tag { min-height: 44px; }

  table.stack, table.stack tbody { display: block; }
  table.stack tr:has(> th) { display: none; }
  /* row = line 1: cells up to .lead; line 2: the other cells; line 3: buttons (tr::before is an invisible line break) */
  table.stack tr { display: flex; flex-wrap: wrap; align-items: center; gap: 0 18px; padding: 8px 0; border-bottom: 1px solid var(--line); }
  table.stack tr::before { content: ''; flex-basis: 100%; order: 1; }
  table.stack td { display: block; padding: 4px 0; border: none; }
  table.stack td.lead { flex: 1 1 auto; }
  table.stack td.lead ~ td { order: 2; }
  table.stack td[colspan] { flex: 1 1 100%; }
  table.stack td:empty { display: none; }
  table.stack td.num { text-align: left; }
  table.stack td[data-label]::before { content: attr(data-label); margin-right: 6px; font: 500 12px var(--sans);
    letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
  table.stack td.act { order: 3; flex: 1 1 100%; display: flex; flex-wrap: wrap; gap: 8px; white-space: normal; }
  table.stack.person-shifts td.act { order: 2; flex: none; margin-left: auto; }
  table.stack.log td.what { flex: 1 1 100%; }   /* Logboek: when + who, then what on its own line, then the device */
  /* yes/no switch: label left, switch right, one line each */
  table.stack td.sw-cell { flex: 1 1 100%; display: flex; align-items: center; justify-content: space-between; padding: 0; }
  table.stack td.sw-cell:empty { display: none; }
  .staff-new .sw-row { display: flex; flex: 1 1 100%; }
  .staff-new-btns { flex: 1 1 100%; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; }
  /* Medewerkers: the row buttons stay on one line, equal width; a long label wraps inside its button */
  table.stack.staff td.act { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; }
  table.stack.staff td.act .btn { padding: 6px 4px; font-size: 15px; line-height: 1.15; }
  table.stack tr.open { background: var(--amber-bg); padding-left: 10px; padding-right: 10px; border-radius: 10px; }
  table.stack tr.open td { background: none; }
  table.stack tr.has-hist { border-bottom: none; padding-bottom: 4px; }
  table.stack tr.hist-row { padding-top: 0; }
  table.stack tr.group { padding: 18px 0 8px; }
  table.stack tr.group td { padding: 0; }
  table.stack tr.group::before, table.stack tr.hist-row::before, table.stack tr.total::before,
  table.stack tr.open:not(.editing):has(td[colspan])::before { display: none; }
  table.stack tr.total { border-top: 2px solid var(--brown); border-bottom: none; }
  table.stack tr.total td { border: none; font-weight: 700; }
  table.stack tr.total td[colspan] { flex: 1 1 auto; }

  /* wide number tables stay tables: scroll inside the card, name column sticks */
  .card:has(> table.overview) { padding: 8px; }
  table.overview { font-size: 15px; }
  table.overview th { font-size: 12px; text-transform: none; letter-spacing: 0; }
  table.overview th, table.overview td { padding: 8px 4px; }
  table.overview .corr-btn { font-size: 16px; padding: 10px 8px; min-height: 44px; }
  table.overview tr:not(.detail) > :first-child { position: sticky; left: 0; z-index: 1; background: var(--card); }
  table.overview tr.open > td:first-child { background: var(--amber-bg); }
  .grid th:first-child, .grid td:first-child { min-width: 86px; }
}
@media (max-width: 380px) { table.overview th, table.overview td { padding-left: 2px; padding-right: 2px; } }
/* Apparaten: pairing QR + link */
.pairing { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.pairing p { margin: 0 0 10px; font-size: 17px; }
.pairing > div:last-child { flex: 1 1 260px; min-width: 0; }
.pair-code { font-family: ui-monospace, Menlo, monospace; font-size: 44px; letter-spacing: 6px; color: var(--brown); margin: 6px 0 14px; -webkit-user-select: text; user-select: text; }
.qr { flex: none; background: #fff; line-height: 0; }
.qr svg { width: 220px; height: 220px; }
.link { font-family: ui-monospace, Menlo, monospace; font-size: 15px; word-break: break-all; -webkit-user-select: text; user-select: text;
  background: var(--panel); color: var(--brown); border-radius: 8px; padding: 10px 12px; }
/* ---------- rooster (rooster.js) ---------- */
.tile { position: relative; }
/* landscape tablet / laptop: six tiles fit on one row only from ~1640 px ("Medewerkers" overflows below), so 3 + 3 */
@media (orientation: landscape) and (min-width: 761px) and (max-width: 1639px) {
  .tiles { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { min-height: 40px; padding: 6px 12px; font-size: 15px; font-weight: 500; border-radius: 10px; background: transparent; color: var(--faint); border: 1px solid var(--line); }
.chip.on { background: var(--gold-soft); border-color: #dcc58a; color: var(--brown-d); font-weight: 600; }
.chip.extra { margin-left: 14px; }                    /* Bakkerij: a skill, not one of the six positions */
/* a position chip with its level (kan het / goed / beste) on a 2nd line that is always there: never resizes */
.chip.lv { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; min-width: 76px; padding: 4px 10px; line-height: 1.2; }
.chip .lvl { display: block; height: 1.2em; font-size: 12px; font-weight: 500; color: var(--brown); }
table.rs-staff .chip { min-height: 48px; }
.chip:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.chip:disabled { opacity: .45; cursor: default; }     /* Roosterinstellingen: Op rooster off, until the next visit */
table.rs-staff td { padding-top: 8px; padding-bottom: 8px; }
table.rs-staff td.sw-cell { padding: 0 14px; }
table.rs-staff tr.group td { padding-top: 18px; padding-bottom: 6px; }
table.rs-staff tr.rs-off .lead b { color: #8f7d6c; }
table.rs-staff td.lead { height: 57px; }              /* a row keeps its height when Op rooster hides its chips */
.rs-tpls { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.rs-tpl { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: #fff; }
.rs-tpl-head { display: flex; gap: 8px; align-items: center; margin-bottom: 4px; }
.rs-tpl-head input { flex: 1; min-width: 0; font-weight: 600; color: var(--brown); }
.rs-tpl table { font-size: 16px; }
.rs-tpl th, .rs-tpl td { padding: 3px 6px; }
.rs-tpl tr.total td { border-top-width: 1px; }
.rs-tpl input.n { width: 56px; min-height: 40px; padding: 6px 2px; text-align: center; font-size: 16px; }
.rs-sums { display: flex; flex-direction: column; gap: 3px; margin-top: 8px; font-size: 14px; color: var(--muted); }
.rs-sums span { padding: 2px 6px; border-radius: 6px; }
.rs-sums .off { background: var(--amber-bg); color: var(--amber-text); box-shadow: inset 0 0 0 1px var(--gold); }
.rs-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.rs-day { display: flex; flex-direction: column; gap: 8px; min-width: 0; background: var(--panel); border-radius: 12px; padding: 10px 8px; }
.rs-day > b { font-family: var(--serif); color: var(--brown); font-size: 22px; text-align: center; }
.rs-day label, .rs-lbl { display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.rs-day select { width: 100%; min-width: 0; min-height: 44px; padding: 8px 4px; font-size: 15px; }
.rs-step { display: flex; align-items: center; justify-content: space-between; gap: 4px; }
.rs-step b { font-size: 20px; color: var(--brown); font-variant-numeric: tabular-nums; }
.rs-step .btn { min-width: 44px; padding: 8px 0; background: var(--card); }
@media (max-width: 1000px) { .rs-week { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  table.stack.rs-staff tr.group td { padding: 0; }   /* same heading spacing as Medewerkers */
  table.stack.rs-staff td.sw-cell { padding: 0; }
  table.stack.rs-staff td.lead { height: auto; }
  table.stack.rs-staff td.sw-cell::before { font: 400 17px var(--sans); text-transform: none; letter-spacing: 0; color: var(--ink); }
  table.stack.rs-staff tr.rs-off td.sw-cell[data-label="Fulltime"]::before { opacity: .45; }   /* dims with its switch */
  table.rs-staff td.rs-chips { flex: 1 1 100%; padding-top: 6px; }
  table.rs-staff .chips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  table.rs-staff .chip.extra { margin-left: 0; }
  .rs-week { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Rooster period page: stepper + period switcher and popovers (rooster.js), availability grid (rooster-grid.js rg*) */
.rg-top { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-bottom: 16px; }
.rg-steps { flex: 1 1 520px; margin: 0; }
.rg-steps .step { min-height: 44px; text-align: left; border-radius: 10px; }
.rg-steps .step:disabled { opacity: .55; cursor: default; transform: none; }
.rg-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-left: auto; }
.rg-period { font-family: var(--serif); color: var(--brown); font-size: 24px; font-weight: 600; min-width: 200px; text-align: center; white-space: nowrap; }
.rg-setup { margin-left: 10px; }
/* separate borders + no card padding: cells own their borders, so the sticky name column hides what scrolls under it */
.rg-card { padding: 0; }
table.rg { table-layout: fixed; min-width: calc(150px + 14 * 56px); font-size: 15px; border-collapse: separate; border-spacing: 0; }
.rg th, .rg td { padding: 0; border: 0; border-right: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); text-transform: none; letter-spacing: 0; }
.rg tr > :last-child { border-right: 0; }
.rg .rg-name { width: 150px; position: sticky; left: 0; z-index: 2; background: var(--card); text-align: left; box-shadow: 1px 0 0 var(--line); }
.rg .wk { border-left: 2px solid var(--brown); }
.rg thead th { border-bottom: 2px solid var(--gold); vertical-align: top; background: var(--card); }
.rg-day { text-align: center; padding: 4px 2px 6px !important; }
.rg-day.busy { background: var(--amber-bg) !important; }
.rg-day button { display: block; width: 100%; background: none; padding: 0; color: inherit; border-radius: 6px; font-size: 12px; }
.rg-date { padding: 2px 0 4px !important; color: var(--muted); font-weight: 500; }
.rg-date span { display: block; text-transform: uppercase; letter-spacing: .06em; }
.rg-date b { display: block; font-family: var(--serif); font-size: 24px; line-height: 1; color: var(--brown); font-weight: 600; }
.rg-day.weekend .rg-date b, .rg-day.weekend .rg-date span { color: var(--red); }
.rg .rg-busy { width: auto; margin: 0 auto 3px; padding: 2px 8px; min-height: 26px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--faint); font-weight: 600; }
.rg .rg-busy.on { background: var(--gold); border-color: var(--gold); color: var(--brown-d); }
.rg-shut { margin-top: 2px; padding: 2px 0 !important; font-weight: 700; color: var(--red) !important; background: var(--red-bg) !important; }
.rg-note { margin-top: 2px; padding: 2px 3px !important; font-style: italic; color: var(--brown) !important; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rg-note.empty { color: var(--faint) !important; font-style: normal; visibility: hidden; }
@media (hover: hover) { .rg-day:hover .rg-note.empty { visibility: visible; } .rg-day button:hover { background: var(--panel); } .rg td.rg-c:hover { filter: brightness(.95); } }
.rg-who { display: block; width: 100%; background: none; text-align: left; padding: 6px 10px; border-radius: 0; color: var(--brown); font-weight: 700; font-size: 16px; line-height: 1.2;
  overflow: hidden; text-overflow: ellipsis; }
.rg-who small { display: block; font-size: 12px; font-weight: 400; color: var(--muted); }
.rg tr.first-pt > * { border-top: 2px solid var(--line); }
.rg tbody tr:last-child > * { border-bottom: 0; }
.rg td.rg-c { height: 46px; text-align: center; font-weight: 700; font-size: 16px; color: var(--brown); background: #fff; cursor: pointer; touch-action: manipulation; }
.rg td.kH { background: var(--brown); color: #fff; }
.rg td.kD { background: var(--gold-soft); color: var(--gold-text); }
.rg td.kA { background: var(--teal-bg); color: var(--teal); }
.rg td.kX { background: var(--jade-bg); color: var(--jade-text); font-size: 12px; line-height: 1.15; }
.rg td.editing { background: #fff; color: var(--muted); outline: 2px dashed var(--gold); outline-offset: -4px; }
.rg td.shut:not(.kH):not(.kD):not(.kA):not(.kX) { background: repeating-linear-gradient(135deg, #f8ece8 0 5px, #fff 5px 10px); }
.rg td.sel { box-shadow: inset 0 0 0 3px var(--gold); }
.rg tr.open > *, .rg tr.open td.rg-c { background: #f1eee8; }
.rg tr.open .rg-who { color: var(--muted); }
.rg tr.open .rg-who small { font-style: italic; }
.rg tr.werkt_niet td.rg-c:not(.kH):not(.kD):not(.kA):not(.kX) { background: repeating-linear-gradient(135deg, #f3ebe2 0 6px, #fff 6px 12px); }
.rg tfoot th, .rg tfoot td { border-top: 2px solid var(--brown); }
.rg tfoot tr + tr > * { border-top: 0; }
.rg tfoot tr:last-child > * { border-bottom: 0; }
.rg tfoot .rg-name { padding: 6px 10px; font-weight: 700; color: var(--brown); font-size: 15px; }
.rg tfoot .rg-name small { display: block; font-weight: 400; font-size: 11px; color: var(--muted); }
.rg-cov { text-align: center; font-weight: 700; color: var(--jade-text); padding: 6px 0 !important; }
.rg-cov span { font-weight: 400; color: var(--muted); }
.rg-cov.short { background: var(--amber-bg); color: var(--amber-text); box-shadow: inset 0 0 0 1px var(--gold); }
.rg-cov.shut { color: var(--faint); font-weight: 500; font-size: 12px; }
.rg-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 12px 14px; font-size: 14px; color: var(--muted); border-top: 1px solid var(--line); }
.rg-legend span { display: inline-flex; align-items: center; gap: 6px; }
.rg-legend i { display: inline-grid; place-items: center; min-width: 30px; height: 26px; padding: 0 6px; border-radius: 6px; font-style: normal; font-weight: 700; font-size: 13px; }
.rg-legend .kH { background: var(--brown); color: #fff; } .rg-legend .kD { background: var(--gold-soft); color: var(--gold-text); }
.rg-legend .kA { background: var(--teal-bg); color: var(--teal); } .rg-legend .kX { background: var(--jade-bg); color: var(--jade-text); font-size: 11px; }
.rg-pop { position: fixed; z-index: 15; display: flex; flex-direction: column; gap: 12px; min-width: 230px; max-width: calc(100vw - 16px);
  background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: 14px; padding: 14px; box-shadow: 0 14px 36px rgba(55,29,16,.22); }
.rg-pop-head { font-family: var(--serif); font-size: 22px; color: var(--brown); }
.rg-pop .chip { align-self: flex-start; }
.rg-pop .chip:not(.on) { color: var(--muted); }       /* a lone quiet chip must not read as disabled */
.rg-pop-line { display: flex; align-items: center; justify-content: space-between; gap: 14px; font-size: 15px; color: var(--muted); }
.rg-pop-line .rs-step b { min-width: 44px; text-align: center; }
.rg-pop-line .rs-step b.none { font-size: 14px; font-weight: 500; color: var(--faint); }
.rg-note-in { width: 260px; max-width: 100%; }
/* Beschikbaarheid plakken: menu item, dialog (on .ask), the review bar above the grid, changed cells in gold */
.rg-pop .rg-paste-item { align-self: stretch; margin-top: 2px; background: var(--card); }
.rg-paste .ask-box { max-width: 520px; display: flex; flex-direction: column; gap: 14px; animation: rg-rise .18s ease-out; }
.rg-paste-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.rg-paste-head b { font-family: var(--serif); font-size: 27px; font-weight: 600; line-height: 1.1; color: var(--brown); }
.rg-paste-head span { font-size: 15px; color: var(--muted); white-space: nowrap; }
.rg-paste textarea { display: block; width: 100%; min-height: 190px; max-height: 50vh; resize: vertical; font: inherit; font-size: 17px; line-height: 1.45;
  padding: 12px 14px; border: 2px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); -webkit-user-select: text; user-select: text;
  transition: color .2s, background .2s; }
.rg-paste textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
.rg-paste textarea::placeholder { color: var(--faint); }
.rg-paste.busy textarea { color: var(--muted); background: var(--bg); }
.rg-paste [data-act=rgPasteRead] { min-width: 7.8em; }   /* fits "Lezen…" + spinner: Annuleren stays put */
.rg-paste .btn.busy:disabled { opacity: 1; cursor: progress; }
.rg-paste .btn.busy::after { content: ''; display: inline-block; width: 15px; height: 15px; margin: 0 0 0 10px; vertical-align: -2px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.35); border-top-color: var(--gold); animation: rg-spin .8s linear infinite; }
.rg-paste-bar { position: sticky; top: -6px; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-bottom: 12px;
  padding: 10px 10px 10px 18px; background: var(--gold-soft); border: 1px solid #dcc58a; border-radius: 12px; box-shadow: var(--shadow); animation: rg-rise .2s ease-out; }
.rg-paste-bar::before { content: ''; position: absolute; left: -2px; right: -2px; bottom: calc(100% + 1px); height: 16px; background: var(--bg); }   /* rows scroll away under it, not above it */
.rg-paste-bar p { flex: 1 1 280px; min-width: 0; margin: 0; font-size: 16px; line-height: 1.4; color: var(--brown-d); }
.rg-paste-bar b { margin-right: 12px; font-family: var(--serif); font-size: 22px; font-weight: 600; color: var(--brown); }
.rg-paste-btns { display: flex; gap: 8px; margin-left: auto; }
.rg td.pasted { outline: 2px solid var(--gold); outline-offset: -3px; }
.rg td.pasted.sel { outline-color: var(--brown); }
.rg .rg-who.pasted { box-shadow: inset 3px 0 0 var(--gold); }
@keyframes rg-rise { from { opacity: 0; transform: translateY(6px); } }
@keyframes rg-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .rg-paste .ask-box, .rg-paste-bar { animation: none; } .rg-paste .btn.busy::after { animation-duration: 2.4s; } }
@media (max-width: 760px) {
  .rg-paste .ask-box { padding: 20px 16px 16px; }
  .rg-paste textarea { min-height: 160px; }
  .rg-paste .ask-btns { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
  .rg-paste-bar { padding: 10px 12px; }
  .rg-paste-btns { flex: 1 1 100%; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6px; }
}
.rg-anders { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; }
.rg-anders label { display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
@media (max-width: 1000px) {
  table.rg { min-width: calc(118px + 14 * 54px); }
  .rg .rg-name { width: 118px; }
}
@media (max-width: 760px) {
  .rg-top { gap: 10px; }
  .rg-steps { flex-basis: 100%; gap: 6px; }
  .rg-steps .step { padding: 8px 6px; font-size: 13px; text-align: center; }
  .rg-nav { width: 100%; margin-left: 0; gap: 6px; }
  .rg-period { flex: 1; min-width: 0; font-size: 20px; }
  .rg-setup { margin-left: 0; width: 100%; }
  table.rg { min-width: calc(92px + 14 * 50px); }
  .rg .rg-name { width: 92px; }
  .rg-who { padding: 6px 8px; font-size: 15px; }
  .rg-who small { font-size: 11px; }
}
/* Rooster step ② Voorstel (rooster-board.js bd*): toolbar, board, per-person view, fairness column, name picker */
.bd-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 14px; }
.bd-seg { display: inline-flex; gap: 3px; padding: 3px; border-radius: 12px; background: var(--panel); }
.bd-seg button { min-height: 44px; padding: 5px 14px; border-radius: 9px; background: none; color: var(--muted); font-size: 15px; font-weight: 500; line-height: 1.15; }
.bd-seg button small { display: block; font-size: 11px; font-weight: 400; }
.bd-seg button.on { background: var(--card); color: var(--brown); font-weight: 700; box-shadow: 0 1px 3px rgba(55,29,16,.16); }
.bd-gap { flex: 1; }
.bd-tools .btn.busy { opacity: .6; pointer-events: none; }
.bd-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 16px; align-items: start; }
.bd-wrap.solo { grid-template-columns: minmax(0, 1fr); }
.bd-card { padding: 0; }
table.bd { table-layout: fixed; min-width: calc(98px + 7 * 92px); font-size: 14px; border-collapse: separate; border-spacing: 0; }
.bd th, .bd td { padding: 0; border: 0; border-right: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); text-transform: none; letter-spacing: 0; vertical-align: top; }
.bd tr > :last-child { border-right: 0; }
.bd tbody tr:last-child > * { border-bottom: 0; }
.bd .bd-lab { width: 98px; position: sticky; left: 0; z-index: 2; background: var(--card); box-shadow: 1px 0 0 var(--line);
  padding: 8px; font-size: 13px; font-weight: 500; color: var(--muted); text-align: left; vertical-align: middle; overflow: hidden; text-overflow: ellipsis; }
.bd thead th { background: var(--card); border-bottom: 2px solid var(--gold); }
.bd-day { padding: 6px 3px !important; text-align: center; color: var(--muted); font-size: 12px; font-weight: 500; }
.bd-day > span { display: block; text-transform: uppercase; letter-spacing: .06em; }
.bd-day > b { display: block; font-family: var(--serif); font-size: 24px; line-height: 1; color: var(--brown); font-weight: 600; }
.bd-day.weekend > span, .bd-day.weekend > b { color: var(--red); }
.bd-day.busy { background: var(--amber-bg) !important; }
.bd-busy { display: inline-block; margin-top: 3px; padding: 1px 8px; border-radius: 999px; background: var(--gold); color: var(--brown-d); font-style: normal; font-weight: 700; font-size: 11px; }
.bd-note { display: block; margin-top: 3px; font-size: 12px; color: var(--brown); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bd-warn { display: block; margin-top: 3px; font-size: 12px; font-weight: 600; line-height: 1.2; }
.bd-warn.red { color: var(--red); }
.bd-warn.orange { color: var(--amber-text); }
.bd tr.bd-part > * { background: var(--panel); border-top: 2px solid var(--line); }
.bd tr.bd-part .bd-lab { background: var(--panel); color: var(--brown); font-weight: 700; font-size: 14px; }
.bd-sum { text-align: center; vertical-align: middle !important; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.bd-sum.short { color: var(--red); font-weight: 700; }
.bd-sum.shut { color: var(--red); font-weight: 700; }
.bd-cell { padding: 3px !important; }
.bd-cell.shut { background: repeating-linear-gradient(135deg, #f8ece8 0 5px, #fff 5px 10px); }
.bd tr.bd-kit > * { border-top: 2px solid var(--line); }
.bd-chip { display: flex; flex-wrap: wrap; align-items: center; gap: 1px 4px; width: 100%; min-height: 40px; margin: 0 0 3px; padding: 4px 7px;
  border-radius: 10px; background: #fff; border: 1px solid var(--line); color: var(--brown); font-size: 14px; font-weight: 600; line-height: 1.15;
  text-align: left; -webkit-touch-callout: none; }
.bd-chip:last-child { margin-bottom: 0; }
.bd-chip .bd-n { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bd-chip small { font-size: 11px; font-weight: 500; color: var(--muted); }
.bd-chip svg { flex: none; width: 11px; height: 11px; color: var(--gold-text); }
.bd-chip.fixed { border-color: #dcc58a; }
.bd-open { font-style: normal; font-size: 10px; font-weight: 700; padding: 1px 4px; border-radius: 5px; background: var(--teal-bg); color: var(--teal); }
.bd-chip.empty { justify-content: center; background: transparent; border-style: dashed; color: var(--faint); }
.bd-chip.red { background: var(--red-bg); border: 1px solid #e3a99f; color: var(--red); }
.bd-why { font-size: 11px; font-weight: 600; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.bd-chip.orange { background: var(--amber-bg); border-color: var(--amber); color: var(--amber-text); }
.bd-chip.kit { background: var(--panel); border-color: #e6d3bf; }
.bd-addk { display: block; width: 100%; min-height: 40px; border-radius: 10px; border: 1px dashed var(--line); background: none; color: var(--muted); font-size: 13px; font-weight: 600; }
@media (hover: hover) { .bd-chip:hover, .bd-addk:hover { filter: brightness(.96); } }
.bd-chip.lifted { opacity: .35; }
.bd-chip.armed { transform: scale(1.04); box-shadow: 0 6px 16px rgba(55,29,16,.22); }
.bd-chip.drop { box-shadow: 0 0 0 3px var(--gold); }
.bd-ghost { position: fixed; z-index: 30; margin: 0; pointer-events: none; opacity: .95; transform: rotate(-2deg); box-shadow: 0 10px 26px rgba(55,29,16,.3); }
.bd-pp td { height: 46px; padding: 4px 2px !important; text-align: center; vertical-align: middle !important; }
.bd-pp th.bd-lab { color: var(--brown); font-weight: 700; font-size: 15px; }
.bd-pp td b { display: block; font-size: 14px; color: var(--brown); font-variant-numeric: tabular-nums; }
.bd-pp td small { display: block; font-size: 11px; color: var(--muted); }
.bd-pp td.k { background: var(--panel); }
.bd-pp tr.first-pt > * { border-top: 2px solid var(--line); }
.bd-pp tr.inactive th { color: var(--faint); }
.bd-fair { padding: 12px 14px; }
.bd-fair h2 { margin: 0 0 4px; font-size: 22px; }
.bd-f { padding: 8px 0; border-bottom: 1px solid var(--line-soft); break-inside: avoid; }
.bd-f:last-child { border-bottom: 0; }
.bd-f.first-pt { border-top: 2px solid var(--line); }
.bd-f.idle { opacity: .5; }
.bd-f-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.bd-f-top b { font-size: 15px; color: var(--brown); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bd-fs { font-size: 12px; color: var(--muted); white-space: nowrap; }
.bd-fs.none { color: var(--faint); }
.bd-f-txt .nw { white-space: nowrap; }
.bd-f-txt { margin-top: 2px; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.bd-meter { height: 4px; margin-top: 5px; border-radius: 2px; background: var(--line-soft); overflow: hidden; }
.bd-meter i { display: block; height: 100%; background: var(--jade); }
.rg-pop.bd-pop { width: 300px; }
.bd-pop .rg-pop-head { font-size: 20px; }
.bd-list { display: flex; flex-direction: column; gap: 4px; max-height: min(46vh, 400px); overflow-y: auto; margin: -4px -6px; padding: 4px 6px; }
.bd-cand { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex: none; min-height: 44px; padding: 8px 12px;
  border-radius: 10px; background: #fff; border: 1px solid var(--line); color: var(--brown); font-size: 15px; text-align: left; }
.bd-cand b { font-weight: 600; }
.bd-cand small { font-size: 12px; color: var(--muted); text-align: right; }
.bd-cand.off { background: var(--bg); color: var(--faint); }
.bd-cand.off b { font-weight: 500; }
.bd-cand.cur { border-color: var(--brown); box-shadow: inset 0 0 0 1px var(--brown); }
.bd-cand.auto { justify-content: center; background: var(--panel); font-weight: 600; }
.bd-why-box { padding: 8px 10px; border-radius: 10px; font-size: 14px; font-weight: 600; }
.bd-why-box.red { background: var(--red-bg); color: var(--red); }
.bd-why-box.orange { background: var(--amber-bg); color: var(--amber-text); }
.bd-why-box small { display: block; margin-top: 3px; font-weight: 400; color: var(--ink); }
.bd-pop .bd-k-who { width: 100%; }
@media (max-width: 1100px) {
  .bd-wrap { grid-template-columns: minmax(0, 1fr); }
  .bd-fair-list { columns: 230px; column-gap: 22px; }
}
@media (max-width: 760px) {
  .bd-tools { gap: 8px; }
  .bd-gap { display: none; }
  .bd-seg { flex: 1 1 160px; }
  .bd-seg button { flex: 1; padding: 5px 8px; }
  .bd-tools .btn { flex: 1 1 auto; }
  .bd-tools [data-act=bdCopyKitchen] { order: 1; flex-basis: 100%; }
  table.bd { min-width: calc(74px + 7 * 88px); }
  .bd .bd-lab { width: 74px; padding: 6px; font-size: 11px; }
  .bd-pp th.bd-lab { font-size: 13px; }
}
/* Rooster step ③ Definitief (rooster-image.js im*): state + button, the two week images, share buttons */
.im-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-bottom: 16px; }
.im-bar:empty { display: none; }
.im-state { display: inline-flex; align-items: center; gap: 10px; font-size: 17px; color: var(--muted); }
.im-state b { font-size: 20px; color: var(--brown); }
.im-state::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--faint); box-shadow: 0 0 0 4px var(--line-soft); }
.im-state.on::before { background: var(--jade); box-shadow: 0 0 0 4px var(--jade-bg); }
.im-bar .btn.busy { opacity: .6; pointer-events: none; }
.im-share { margin-left: auto; }
.im-weeks { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 16px; align-items: start; }
.im-week { margin: 0; overflow: hidden; }
.im-week-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; min-height: 48px; margin-bottom: 12px; }
.im-title { display: flex; align-items: baseline; gap: 10px; margin-right: auto; }
.im-title h2 { margin: 0; }
.im-title small { font-size: 15px; color: var(--muted); }
.im-changed { font-size: 15px; font-weight: 600; color: var(--red); }
.im-frame { overflow: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: zoom-in; }
.im-frame canvas { display: block; width: 100%; height: auto; }
.im-frame:not(.loading) canvas { animation: im-in .35s ease-out; }
.im-frame.zoom { cursor: zoom-out; }
.im-frame.zoom canvas { width: 1031px; max-width: none; }
.im-frame.loading { aspect-ratio: 1031 / 1150; cursor: default;
  background: linear-gradient(100deg, #fff 35%, var(--line-soft) 50%, #fff 65%) 0 0 / 300% 100%; animation: im-shimmer 1.3s linear infinite; }
.im-frame.loading canvas { visibility: hidden; }
.im-frame.failed { cursor: default; }
.im-frame.failed canvas { display: none; }
.im-fail { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; min-height: 260px; padding: 20px;
  font-size: 17px; color: var(--muted); text-align: center; }
.im-empty { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.im-empty p { margin: 0; font-size: 18px; }
@keyframes im-in { from { opacity: 0; transform: translateY(4px); } }
@keyframes im-shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }
@media (prefers-reduced-motion: reduce) { .im-frame canvas, .im-frame.loading { animation: none !important; } }
@media (max-width: 760px) {
  .im-bar .btn { flex: 1 1 100%; }
  .im-title small { font-size: 14px; }
}

/* ---------- staff page (my.hoitininklok.nl, my.html) ---------- */
/* Phone first: the PIN screen fits 375x667 without scrolling; the app scrolls the page, tab bar fixed at the bottom. */
.my-lang { display: flex; gap: 4px; flex: none; }
.my-lang button { min-width: 44px; min-height: 44px; padding: 0 10px; background: transparent; color: var(--muted);
  border: 1px solid var(--line); border-radius: 10px; font-size: 15px; font-weight: 500; }
.my-lang button[aria-pressed="true"] { background: var(--brown); border-color: var(--brown); color: #fff; }
.my-pin { position: fixed; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: safe center;
  overflow-y: auto; padding: calc(64px + env(safe-area-inset-top)) calc(16px + env(safe-area-inset-right))
  calc(16px + env(safe-area-inset-bottom)) calc(16px + env(safe-area-inset-left)); }
.my-pin .my-lang { position: absolute; top: calc(12px + env(safe-area-inset-top)); right: calc(16px + env(safe-area-inset-right)); }
.my-pin .logo { height: clamp(90px, 17dvh, 160px); margin-bottom: 2dvh; }
.my-pin .pad-title { font-size: 26px; margin-bottom: 12px; text-align: center; }
.my-pin .dots { gap: 18px; }
.my-pin .dot { width: 20px; height: 20px; }
.my-pin .pad-err { min-height: 26px; font-size: 17px; margin-bottom: 4px; }
.my-pin .pad { max-width: 300px; grid-auto-rows: clamp(56px, 9.5dvh, 76px); gap: 12px; }
.my-pin .key { font-size: 30px; }
.my-app { min-height: 100%; padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
.my-head { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 8px; background: var(--card);
  border-bottom: 1px solid var(--line); box-shadow: 0 3px 0 -1px var(--gold-soft);
  padding: calc(10px + env(safe-area-inset-top)) calc(16px + env(safe-area-inset-right)) 10px calc(16px + env(safe-area-inset-left)); }
.my-name { flex: 1; min-width: 0; font-family: var(--serif); color: var(--brown); font-size: 26px; font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.my-out { flex: none; min-height: 44px; padding: 0 12px; background: transparent; color: var(--muted); border: 1px solid var(--line);
  border-radius: 10px; font-size: 15px; }
#tab { max-width: 760px; margin: 0 auto;
  padding: 16px calc(16px + env(safe-area-inset-right)) 24px calc(16px + env(safe-area-inset-left)); }
.my-tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; display: flex; background: var(--card); border-top: 1px solid var(--line);
  padding: 0 env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); }
.my-tabs button { flex: 1; min-width: 0; min-height: 56px; padding: 0 4px; background: transparent; color: var(--muted); border-radius: 0;
  font-size: 15px; font-weight: 500; box-shadow: inset 0 3px 0 transparent; }
.my-tabs button[aria-current="page"] { color: var(--brown); font-weight: 700; box-shadow: inset 0 3px 0 var(--gold); }
.my-tabs button:active { transform: none; background: var(--panel); }
body.my #toast { bottom: calc(76px + env(safe-area-inset-bottom)); }
/* Staff page tab Availability (my-avail.js av*): one card per period; days as a 5-way choice, same colours as the ① grid */
.av-card { overflow-x: visible; }
.av-head { margin: 0 0 12px; font-family: var(--serif); color: var(--brown); font-size: 24px; font-weight: 600; line-height: 1.15; }
.av-head small { display: block; margin-top: 2px; font-family: var(--sans); font-size: 15px; font-weight: 500; color: var(--muted); }
.av-closed { margin: 0 0 12px; padding: 12px 14px; border-radius: 12px; background: var(--amber-bg); color: var(--amber-text); font-size: 17px; font-weight: 600; }
.av-card > .av-closed:only-child { margin: 0; }
.av-paste { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.av-paste textarea { display: block; width: 100%; min-height: 84px; resize: vertical; font: inherit; font-size: 17px; line-height: 1.4;
  padding: 10px 12px; border: 2px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); -webkit-user-select: text; user-select: text; }
.av-paste textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
.av-paste textarea::placeholder { color: var(--faint); }
.av-paste.busy textarea { color: var(--muted); background: var(--bg); }
.av-paste .btn { align-self: flex-end; min-width: 7.5em; }
.av-paste .btn.busy:disabled { opacity: 1; cursor: progress; }
.av-paste .btn.busy::after { content: ''; display: inline-block; width: 15px; height: 15px; margin: 0 0 0 10px; vertical-align: -2px; border-radius: 50%;
  border: 2px solid var(--line); border-top-color: var(--gold); animation: rg-spin .8s linear infinite; }
.av-note { margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--gold-soft); color: var(--brown-d); font-size: 16px; line-height: 1.4; }
.av-days, .av-list { display: flex; flex-direction: column; }
.av-day { padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.av-day.wk, .av-ro.wk { border-top: 2px solid var(--brown); }
.av-date { margin-bottom: 6px; font-weight: 700; color: var(--brown); font-size: 16px; }
.av-seg { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 3px; padding: 3px; border-radius: 12px; background: var(--panel); }
.av-seg button { min-width: 0; min-height: 44px; padding: 4px 2px; border-radius: 9px; background: none; color: var(--muted);
  font-size: 14px; font-weight: 500; line-height: 1.15; overflow-wrap: anywhere; }
.av-seg button.on { box-shadow: 0 1px 3px rgba(55,29,16,.16); font-weight: 700; }
.av-seg button:focus-visible { outline: 3px solid var(--gold); outline-offset: 1px; }
.av-seg .kH, .av-ro b.kH { background: var(--brown); color: #fff; }
.av-seg .kD, .av-ro b.kD { background: var(--gold-soft); color: var(--gold-text); }
.av-seg .kA, .av-ro b.kA { background: var(--teal-bg); color: var(--teal); }
.av-seg .kX, .av-ro b.kX { background: var(--jade-bg); color: var(--jade-text); }
.av-seg .kNone { background: var(--card); color: var(--brown); }
.av-times { display: flex; gap: 10px; margin-top: 8px; }
.av-times label { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: var(--muted);
  text-transform: uppercase; letter-spacing: .05em; }
.av-times input { width: 100%; min-width: 0; min-height: 44px; padding: 6px 8px; font-size: 17px; background: #fff; }
.av-times.bad input { border-color: var(--red); background: var(--red-bg); }
.av-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 6px 0;
  border-bottom: 1px solid var(--line-soft); font-size: 17px; }
.av-line > b { color: var(--brown); font-variant-numeric: tabular-nums; }
.av-step { flex: none; gap: 6px; }
.av-step b { min-width: 52px; text-align: center; }
.av-step b.none { font-size: 15px; font-weight: 500; color: var(--faint); }
.av-step .btn:disabled { opacity: .35; }
.av-save { width: 100%; margin-top: 16px; }
.av-ro { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 40px; padding: 4px 0;
  border-bottom: 1px solid var(--line-soft); font-size: 16px; }
.av-ro b { padding: 3px 10px; border-radius: 8px; font-size: 15px; }
.av-ro b.kNone { color: var(--faint); font-weight: 500; }
.av-card.shut .av-line .sw:disabled { opacity: .6; }
/* Staff page tab Rooster (my-rooster.js ro*): per week a card; the table scrolls inside it, the name column stays */
.ro-card { overflow-x: visible; }
.ro-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 12px; margin-bottom: 12px; }
.ro-title { margin: 0; font-family: var(--serif); color: var(--brown); font-size: 24px; font-weight: 600; line-height: 1.15; }
.ro-changed { font-size: 15px; font-weight: 600; color: var(--red); }
.ro-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
  border: 1px solid var(--line); border-radius: 10px; }
.ro-table { width: max-content; min-width: 100%; border-collapse: separate; border-spacing: 0; font-size: 15px; }
.ro-table th, .ro-table td { padding: 6px 8px; text-align: center; white-space: nowrap; border-bottom: 1px solid var(--line-soft); }
.ro-table thead th { vertical-align: bottom; font-size: 13px; font-weight: 700; color: var(--brown); text-transform: none;
  letter-spacing: 0; border-bottom: 1px solid var(--gold); }
.ro-table small { display: block; font-size: 11px; font-weight: 500; line-height: 1.25; color: var(--muted); }
.ro-table thead small { max-width: 9em; margin: 0 auto; white-space: normal; color: var(--gold-text); }
.ro-table .ro-name { position: sticky; left: 0; z-index: 1; min-width: 72px; max-width: 120px; overflow: hidden; text-overflow: ellipsis;
  text-align: left; background: var(--card); color: var(--brown); font-size: 15px; font-weight: 600; text-transform: none;
  letter-spacing: 0; border-right: 1px solid var(--line); }
.ro-table tr.me td, .ro-table tr.me .ro-name { background: var(--gold-soft); }
.ro-table tr.me .ro-name { box-shadow: inset 3px 0 0 var(--gold); }
.ro-table td.bold .ro-t { font-weight: 700; }
.ro-table td.off { color: var(--faint); }
.ro-table td.changed, .ro-table td.changed small { color: var(--red); }
.ro-table td.changed .ro-t { font-weight: 700; }
.ro-table tr.ro-gap td { height: 10px; padding: 0; background: var(--panel); }
.ro-table tbody tr:last-child td, .ro-table tbody tr:last-child .ro-name { border-bottom: none; }
.ro-dl { width: 100%; margin-top: 12px; }
/* Staff page tab Hours (my.js ho*): month chips, then one card: the total and one line per shift */
.ho-months { margin-bottom: 12px; }
.ho-total { margin: 0 0 8px; font-family: var(--serif); color: var(--brown); font-size: 24px; font-weight: 600; line-height: 1.15; }
.ho-total small { font-family: var(--sans); font-size: 15px; font-weight: 500; color: var(--muted); }
.ho-list { margin: 0; padding: 0; list-style: none; }
.ho-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto 3.5em; align-items: center; gap: 12px; min-height: 44px;
  padding: 6px 0; border-bottom: 1px solid var(--line-soft); font-size: 17px; font-variant-numeric: tabular-nums; }
.ho-list li:last-child { border-bottom: 0; }
.ho-time { color: var(--muted); }
.ho-list b { text-align: right; color: var(--brown); }
.ho-card > .muted { margin: 0; }
