/* Burdekin Bowl Workforce. Palette and type taken from the Burdekin Bowl logo: red, black, white, and the fuse spark. */
@font-face { font-family: 'Bungee'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/bungee-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(fonts/archivo-latin-wght-normal.woff2) format('woff2'); }
@font-face { font-family: 'Archivo'; font-style: italic; font-weight: 100 900; font-display: swap; src: url(fonts/archivo-latin-wght-italic.woff2) format('woff2'); }

:root {
  /* Burdekin Bowl - taken from the logo */
  --red: #d7262e;
  --red-dark: #8f1d22;
  --navy: #1b1b1d;      /* ball black (kept as --navy so shared rules pick it up) */
  --blue: #3c3c40;
  --sky: #f68b1f;       /* focus ring: fuse orange */
  --gold: #ffcc29;      /* spark yellow */
  --orange: #f68b1f;
  --yellow: #ffe066;
  --paper: #f4f4f5;
  --surface: #ffffff;
  --ink: #1b1b1d;
  --ink-2: #55575d;
  --ink-3: #868891;
  --line: #dcdce0;
  --line-2: #ececef;
  --act: var(--red);
  --act-ink: #ffffff;
  --ok: #1d7a46;
  --warn: #9a5b00;
  --bad: #b3261e;
  --warn-bg: #fff4d1;
  --bad-bg: #fdeceb;
  --ok-bg: #e4f3ea;
  --radius-s: 6px;
  --radius-m: 12px;
  --font: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Bungee', 'Archivo', system-ui, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 15px; line-height: 1.45; }
body { min-height: 100vh; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 2px; }
.num, td.num, .time { font-variant-numeric: tabular-nums; }

h1, h2, h3 { margin: 0; line-height: 1.15; }
h1 { font-family: var(--display); }
h2, h3 { font-family: var(--font); letter-spacing: -0.01em; }
h1 { font-size: 1.8rem; font-weight: 400; color: var(--red); text-shadow: .05em .05em 0 var(--ink); letter-spacing: .01em; }
h2 { font-size: 1.15rem; font-weight: 700; }
h3 { font-size: 1rem; font-weight: 700; }
p { margin: 0 0 .6em; max-width: 68ch; }
.muted { color: var(--ink-2); }
.faint { color: var(--ink-3); font-size: .875rem; }

/* ---------- App shell ---------- */
.shell { display: grid; grid-template-columns: 220px 1fr; min-height: 100vh; }
.side { background: var(--surface); color: var(--ink); border-right: 1px solid var(--line); padding: 20px 14px; display: flex; flex-direction: column; gap: 2px; position: sticky; top: 0; height: 100vh; }
.brand { display: flex; align-items: center; gap: 10px; padding: 0 6px 18px; }
.brand img { width: 100%; max-width: 188px; height: auto; display: block; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .brand img, :root:not([data-theme="light"]) .kiosk-logo, :root:not([data-theme="light"]) .staff-top img { background: #fff; border-radius: 8px; padding: 6px; } }

.nav a { display: flex; justify-content: space-between; align-items: center; padding: 9px 12px; border-radius: var(--radius-s); text-decoration: none; color: var(--ink-2); font-weight: 600; }
.nav a:hover { background: var(--paper); color: var(--navy); }
.nav a.on { background: color-mix(in srgb, var(--red) 9%, var(--surface)); color: var(--red-dark); box-shadow: inset 4px 0 0 var(--red); }
.nav .count { background: var(--gold); color: #2a1d00; font-size: .75rem; font-weight: 700; padding: 0 7px; border-radius: 10px; }
.side-foot { margin-top: auto; padding: 10px; font-size: .85rem; color: var(--ink-3); }
.side-foot button { background: none; border: 0; color: var(--ink-2); padding: 0; text-decoration: underline; cursor: pointer; }
.main { padding: 28px 32px 60px; min-width: 0; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.page-head .sub { color: var(--ink-2); margin-top: 4px; }
.toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* ---------- Controls ---------- */
.btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--surface); padding: 8px 14px; border-radius: var(--radius-s); cursor: pointer; font-weight: 600; text-decoration: none; white-space: nowrap; }
.btn:hover { border-color: var(--ink-3); }
.btn.primary { background: var(--act); color: var(--act-ink); border-color: var(--act); }
.btn.primary:hover { filter: brightness(1.12); }
.btn.danger { color: var(--bad); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.small { padding: 4px 10px; font-size: .85rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.icon-btn { border: 1px solid var(--line); background: var(--surface); width: 34px; height: 34px; border-radius: var(--radius-s); cursor: pointer; display: inline-grid; place-items: center; font-weight: 700; }
label.f { display: grid; gap: 4px; font-weight: 600; font-size: .875rem; }
label.f .hint { font-weight: 400; color: var(--ink-3); }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=time], input[type=datetime-local], input:not([type]), select, textarea {
  border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius-s); padding: 8px 10px; width: 100%; min-width: 0;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--sky); outline-offset: -1px; border-color: transparent; }
.check { display: flex; gap: 8px; align-items: center; font-weight: 500; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.stack { display: grid; gap: 12px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }

/* ---------- Panels & tables ---------- */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); }
.panel-h { padding: 14px 18px; border-bottom: 1px solid var(--line-2); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.panel-b { padding: 16px 18px; }
.cols { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; align-items: start; }
table.t { width: 100%; border-collapse: collapse; }
table.t th { text-align: left; font-size: .8rem; font-weight: 600; color: var(--ink-3); padding: 10px 14px; border-bottom: 1px solid var(--line); }
table.t td { padding: 10px 14px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
table.t tr:last-child td { border-bottom: 0; }
table.t td.num, table.t th.num { text-align: right; }
table.t tr.click { cursor: pointer; }
table.t tr.click:hover td { background: var(--paper); }
.empty { padding: 28px 18px; color: var(--ink-2); text-align: center; }

.tag { display: inline-block; font-size: .75rem; font-weight: 600; padding: 1px 8px; border-radius: 10px; background: var(--line-2); color: var(--ink-2); white-space: nowrap; }
.tag.warn { background: var(--warn-bg); color: var(--warn); }
.tag.bad { background: var(--bad-bg); color: var(--bad); }
.tag.ok { background: var(--ok-bg); color: var(--ok); }
.dot { width: 10px; height: 10px; border-radius: 2px; display: inline-block; flex: none; }

/* Today figures: plain, typographic */
.figures { display: flex; gap: 0; border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--surface); margin-bottom: 20px; flex-wrap: wrap; }
.figure { padding: 16px 22px; border-right: 1px solid var(--line-2); flex: 1; min-width: 150px; text-decoration: none; }
.figure:last-child { border-right: 0; }
.figure b { display: block; font-family: var(--display); color: var(--ink); font-size: 2rem; font-weight: 400; font-variant-numeric: tabular-nums; line-height: 1.1; }
.figure span { color: var(--ink-2); font-size: .875rem; }
.figure.alert b { color: var(--bad); }

/* ---------- Roster: colour-coded strips per work area on a week grid ---------- */
.roster-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); }
.roster { display: grid; grid-template-columns: 180px repeat(7, minmax(128px, 1fr)); min-width: 1080px; }
.roster .hd { padding: 10px 10px; font-weight: 700; font-size: .85rem; border-bottom: 1px solid var(--line); background: var(--paper); position: sticky; top: 0; }
.roster .hd.today { box-shadow: inset 0 -3px 0 var(--red); color: var(--red-dark); }
.roster .hd .faint { font-weight: 500; }
.roster .who { padding: 10px; border-bottom: 1px solid var(--line-2); border-right: 1px solid var(--line); font-weight: 600; font-size: .9rem; }
.roster .who .faint { display: block; font-weight: 400; font-size: .78rem; }
.roster .cell { border-bottom: 1px solid var(--line-2); border-right: 1px solid var(--line-2); padding: 5px; min-height: 58px; display: flex; flex-direction: column; gap: 4px; cursor: copy; position: relative; }
.roster .cell:hover { background: var(--paper); }
.roster .cell.off { background: repeating-linear-gradient(-45deg, transparent 0 6px, var(--line-2) 6px 7px); }
.roster .cell .leave { font-size: .72rem; font-weight: 600; color: var(--ink-2); }
.tape { --c: var(--act); display: block; text-align: left; border: 0; border-left: 5px solid var(--c); background: color-mix(in srgb, var(--c) 13%, var(--surface)); padding: 4px 7px; border-radius: 0 var(--radius-s) var(--radius-s) 0; cursor: pointer; font-size: .8rem; line-height: 1.3; width: 100%; }
.tape .time { font-weight: 700; }
.tape .site { display: block; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tape.draft { background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--c) 10%, var(--surface)) 0 8px, var(--surface) 8px 14px); border-left-style: dashed; }
.tape .warn-mark { color: var(--orange); font-weight: 800; float: right; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: .82rem; color: var(--ink-2); margin-top: 12px; align-items: center; }
.legend span { display: inline-flex; gap: 6px; align-items: center; }

/* ---------- Timesheets ---------- */
.ts-row td { border-bottom: 1px solid var(--line-2); }
.ts-detail td { background: var(--paper); padding: 14px 18px; }
.ts-detail .split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.ts-detail .split > :last-child { max-width: 560px; }
.ts-detail .scroll { overflow-x: auto; }
.entries td { padding: 6px 8px; white-space: nowrap; }
.entries td.site { white-space: normal; min-width: 120px; }
.entries input { padding: 4px 6px; }
.flags .tag { margin-right: 4px; }
.entries .paid { font-size: .8rem; font-weight: 700; color: var(--red-dark); }

/* ---------- Modal ---------- */
.overlay { position: fixed; inset: 0; background: rgba(15,26,31,.45); display: grid; place-items: center; padding: 16px; z-index: 50; }
.modal { background: var(--surface); border-radius: var(--radius-m); width: min(520px, 100%); max-height: 92vh; overflow: auto; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.modal-h { padding: 16px 20px; border-bottom: 1px solid var(--line-2); display: flex; justify-content: space-between; align-items: center; }
.modal-b { padding: 18px 20px; display: grid; gap: 14px; }
.modal-f { padding: 14px 20px; border-top: 1px solid var(--line-2); display: flex; gap: 8px; justify-content: flex-end; }
.modal-f .left { margin-right: auto; }

/* Toast */
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--ink); color: var(--paper); padding: 10px 18px; border-radius: var(--radius-s); z-index: 60; font-weight: 600; max-width: 90vw; }
.toast.bad { background: var(--bad); color: #fff; }
.notice { border-left: 4px solid var(--gold); background: var(--warn-bg); padding: 10px 14px; border-radius: 0 var(--radius-s) var(--radius-s) 0; margin-bottom: 16px; }
.notice.bad { border-color: var(--bad); background: var(--bad-bg); }
.notice.ok { border-color: var(--ok); background: var(--ok-bg); }

/* ---------- Login ---------- */
.login { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.login-card { width: min(400px, 100%); }
.login-card .brand { justify-content: center; padding: 0 0 18px; }
.login-card .brand img { max-width: 340px; }
.tabs { display: flex; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.tabs button { flex: 1; background: none; border: 0; padding: 10px; font-weight: 600; color: var(--ink-2); cursor: pointer; border-bottom: 3px solid transparent; }
.tabs button.on { color: var(--red-dark); border-color: var(--red); }

/* ---------- Staff mobile ---------- */
.staff { max-width: 520px; margin: 0 auto; padding: 18px 16px 90px; }
.staff-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.staff-top img { height: 38px; width: auto; display: block; }
.staff-hi { font-family: var(--display); color: var(--red); font-size: 1.1rem; }
.punch-zone { text-align: center; padding: 26px 0 30px; }
.punch { position: relative; width: 230px; height: 230px; border-radius: 50%; border: 0; cursor: pointer; display: inline-grid; place-items: center; align-content: center; gap: 6px;
  background: radial-gradient(circle at 34% 28%, #6a6a70, #2a2a2e 45%, #111113 75%); color: #fff; font-family: var(--display); font-weight: 400; font-size: 1.7rem;
  box-shadow: 0 0 0 8px var(--gold), 0 0 0 14px color-mix(in srgb, var(--orange) 35%, transparent), 0 12px 24px rgba(0,0,0,.25); }
/* three finger holes, like the ball in the logo */
.punch::before { content: ''; position: absolute; top: 34px; right: 62px; width: 14px; height: 20px; border-radius: 50%; background: #8d8d94; transform: rotate(-20deg);
  box-shadow: 22px 12px 0 #8d8d94, 6px 34px 0 #8d8d94; opacity: .55; }
.punch.out { background: radial-gradient(circle at 34% 28%, #f0545a, var(--red) 45%, var(--red-dark) 80%);
  box-shadow: 0 0 0 8px var(--ink), 0 0 0 14px rgba(27,27,29,.18), 0 12px 24px rgba(0,0,0,.25); }
.punch.out::before { background: #5a1013; }
.punch .lbl { display: block; position: relative; }
.punch small { position: relative; font-family: var(--font); font-size: .9rem; font-weight: 600; opacity: .92; }
.punch:active { transform: scale(.97); }
.punch[disabled] { opacity: .6; }
.elapsed { font-family: var(--display); color: var(--ink); font-size: 2.4rem; font-weight: 400; font-variant-numeric: tabular-nums; margin-top: 22px; }
.shift-list { display: grid; gap: 8px; }
.shift-card { --c: var(--act); background: var(--surface); border: 1px solid var(--line); border-left: 6px solid var(--c); border-radius: 0 var(--radius-m) var(--radius-m) 0; padding: 12px 14px; }
.shift-card .when { font-weight: 700; }
.tabbar { position: fixed; bottom: 0; left: 0; right: 0; background: var(--surface); border-top: 1px solid var(--line); display: flex; justify-content: center; padding-bottom: env(safe-area-inset-bottom); }
.tabbar a { flex: 1; max-width: 130px; text-align: center; padding: 12px 4px; text-decoration: none; font-weight: 600; font-size: .85rem; color: var(--ink-2); border-top: 3px solid transparent; }
.tabbar a.on { color: var(--red-dark); border-color: var(--red); }

/* ---------- Kiosk ---------- */
.kiosk { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: var(--surface); color: var(--ink); }
.kiosk-logo { width: 300px; height: auto; display: block; margin: 0 auto 10px; }
.kiosk-card { width: min(380px, 100%); text-align: center; }
.kiosk .display { font-size: 2.2rem; letter-spacing: .4em; min-height: 3rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 18px 0; }
.keypad button { height: 70px; border-radius: var(--radius-m); border: 0; background: var(--ink); color: #fff; font-family: var(--display); font-size: 1.6rem; font-weight: 400; cursor: pointer; }
.keypad button:active { background: var(--blue); }
.keypad button.go { background: var(--red); color: #fff; }
.keypad button.clr { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.kiosk input, .kiosk select { text-align: center; font-size: 1.2rem; }
.kiosk .clock { font-family: var(--display); color: var(--ink); font-size: 2.8rem; font-weight: 400; font-variant-numeric: tabular-nums; }
.kiosk .display { color: var(--navy); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; padding: 10px 12px; align-items: center; }
  .brand { padding: 4px 8px; }
  .nav { display: flex; flex-wrap: wrap; gap: 2px; width: 100%; }
  .nav a { padding: 6px 9px; font-size: .88rem; }
  .side-foot { display: none; }
  .main { padding: 18px 16px 60px; }
  .cols, .ts-detail .split, .grid3 { grid-template-columns: 1fr; }
}
@media (max-width: 520px) { .grid2 { grid-template-columns: 1fr; } .figure { min-width: 50%; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ---------- Reports ---------- */
.report-controls { margin-bottom: 20px; }
.report-controls .f { min-width: 150px; }
.report-block { margin-bottom: 20px; }
.print-head, .print-only { display: none; }
a.plain { text-decoration: none; }
a.plain:hover { text-decoration: underline; }
.total-row td { border-top: 2px solid var(--navy); background: var(--paper); }
.person-h { align-items: flex-start; }
.person-total { text-align: right; }
.person-total b { display: block; font-family: var(--display); color: var(--ink); font-size: 1.4rem; font-weight: 400; line-height: 1.1; }
.person-total span { color: var(--ink-2); font-size: .9rem; }
.rep-entries td { white-space: nowrap; }
.rep-entries tr.not-counted td { color: var(--warn); }
.person-foot { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 24px; padding: 14px 18px 18px; border-top: 1px solid var(--line-2); align-items: end; }
.breakdown td, .breakdown th { padding: 6px 10px; }
.signoff { display: grid; gap: 26px; padding-bottom: 6px; }
.signoff div { font-size: .82rem; color: var(--ink-3); }
.signoff span { display: block; border-bottom: 1px solid var(--ink-3); height: 30px; margin-bottom: 4px; }
.report-note { margin-top: 8px; }

@media print {
  @page { size: A4 landscape; margin: 10mm 12mm; }
  html, body { background: #fff !important; font-size: 10.5pt; }
  .side, .no-print, .toast, .nav, .tabbar { display: none !important; }
  .shell { display: block; }
  .main { padding: 0; }
  .print-head { display: flex; align-items: center; gap: 18px; padding-bottom: 10px; margin-bottom: 14px; border-bottom: 3px solid var(--red); }
  .print-head img { width: 220px; height: auto; }
  .print-head h1 { font-size: 1.5rem; }
  .panel { border-color: #c9d3dc; break-inside: auto; }
  .person { break-before: page; }
  .person-band { display: flex !important; align-items: center; justify-content: space-between; padding: 8px 18px; border-bottom: 3px solid var(--red); font-weight: 600; color: var(--ink); }
  .person-band img { width: 150px; height: auto; }
  .person-h, .person-foot, .total-row { break-inside: avoid; }
  table.t th, table.t td { padding: 5px 8px; }
  .tag { border: 1px solid currentColor; background: none !important; }
  a { text-decoration: none; color: inherit; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
@media (max-width: 900px) { .person-foot { grid-template-columns: 1fr; } }

/* ---------- Timesheets: time bars ---------- */
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: var(--radius-s); overflow: hidden; background: var(--surface); }
.seg button { border: 0; background: none; padding: 8px 14px; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.seg button + button { border-left: 1px solid var(--line); }
.seg button.on { background: var(--act); color: var(--act-ink); }
.daystrip { display: flex; align-items: center; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }
.dayb { display: grid; gap: 2px; justify-items: center; min-width: 74px; padding: 7px 8px; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--surface); text-decoration: none; color: var(--ink); }
.dayb:hover { border-color: var(--ink-3); }
.dayb.on { border-color: var(--act); box-shadow: inset 0 -3px 0 var(--act); font-weight: 700; }
.dayb .dn { font-size: .85rem; white-space: nowrap; }
.dayb .dc { display: flex; gap: 4px; font-style: normal; }
.dayb i { font-style: normal; font-size: .72rem; font-weight: 700; min-width: 18px; padding: 0 5px; border-radius: 9px; text-align: center; }
.dot-warn { background: var(--warn-bg); color: var(--warn); }
.dot-bad { background: var(--bad-bg); color: var(--bad); }
.dot-ok { background: var(--ok-bg); color: var(--ok); }
.dot-none { color: var(--ink-3); }
.dot-live { background: var(--line-2); color: var(--ink-2); }
.daysum { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 14px; color: var(--ink-2); }
.daysum b { color: var(--ink); }
.daysum .warn-t, .daysum .warn-t b { color: var(--warn); }
.daysum .bad-t, .daysum .bad-t b { color: var(--bad); }
.tl { padding: 4px 0; }
.tl-row { display: grid; grid-template-columns: 190px minmax(0, 1fr) 70px 120px; gap: 14px; align-items: center; padding: 10px 16px; border-bottom: 1px solid var(--line-2); }
.tl-row:last-child { border-bottom: 0; }
.tl-head { padding-top: 8px; padding-bottom: 6px; position: sticky; top: 0; background: var(--surface); z-index: 3; }
.tl-axis { position: relative; height: 16px; font-size: .72rem; color: var(--ink-3); }
.tl-axis span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.tl-who { min-width: 0; font-size: .9rem; }
.tl-who .faint { font-size: .78rem; }
.ex-t { font-size: .78rem; font-weight: 600; color: var(--warn); }
.tl-act { text-align: right; }
.tl-act .tick { font-style: normal; }
.btn.warnbtn { border-color: var(--warn); color: var(--warn); }
.tl-track { position: relative; height: 40px; border-radius: var(--radius-s);
  background: repeating-linear-gradient(90deg, var(--line-2) 0 1px, transparent 1px calc(100% / var(--ticks))), var(--paper); }
.ros { position: absolute; top: 3px; bottom: 3px; border: 2px dashed var(--ink-3); border-radius: var(--radius-s); background: color-mix(in srgb, var(--surface) 55%, transparent); }
.ros.noshow { border-color: var(--bad); background: var(--bad-bg); cursor: pointer; display: grid; place-items: center; }
.ros.notin { border-color: var(--bad); display: grid; place-items: center; }
.ros.notin span { font-size: .75rem; font-weight: 700; color: var(--bad); white-space: nowrap; overflow: hidden; }
.ros.noshow span { font-size: .75rem; font-weight: 700; color: var(--bad); white-space: nowrap; overflow: hidden; }
.bar { position: absolute; top: 11px; height: 18px; border-radius: 4px; cursor: pointer; color: #fff; display: flex; align-items: center; justify-content: center; overflow: visible; z-index: 2; touch-action: none; }
.bar .bl { font-size: .7rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 9px; pointer-events: none; }
.bar.wait { background: var(--blue); }
.bar.look { background: #e08a00; }
.bar.ok { background: var(--ok); }
.bar.bad { background: var(--bad); }
.bar.live { background: repeating-linear-gradient(135deg, var(--blue) 0 6px, color-mix(in srgb, var(--blue) 70%, #fff) 6px 12px); }
.bar:focus-visible { outline: 2px solid var(--sky); outline-offset: 2px; }
.bar .h { position: absolute; top: -5px; bottom: -5px; width: 12px; cursor: ew-resize; touch-action: none; }
.bar .h::after { content: ''; position: absolute; top: 5px; bottom: 5px; left: 4px; width: 4px; border-radius: 2px; background: #fff; opacity: 0; transition: opacity .1s; }
.bar:hover .h::after, .bar .h:active::after { opacity: .9; }
.bar .h-s { left: -4px; }
.bar .h-e { right: -4px; }
.nowline { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--bad); z-index: 1; }
.dragtip { position: absolute; top: -26px; transform: translateX(-50%); background: var(--ink); color: var(--paper); font-size: .75rem; font-weight: 700; padding: 2px 7px; border-radius: 4px; white-space: nowrap; z-index: 5; pointer-events: none; }
.legend .lg { display: inline-block; width: 22px; height: 10px; border-radius: 3px; vertical-align: middle; }
.legend .ros-lg { border: 2px dashed var(--ink-3); height: 12px; }
.lg.wait { background: var(--blue); } .lg.look { background: #e08a00; } .lg.ok { background: var(--ok); } .lg.bad { background: var(--bad); }
.lg.live { background: repeating-linear-gradient(135deg, var(--blue) 0 4px, color-mix(in srgb, var(--blue) 70%, #fff) 4px 8px); }
.toast { display: flex; align-items: center; gap: 14px; }
.toast-act { background: none; border: 0; color: var(--gold); font-weight: 800; cursor: pointer; padding: 0; text-decoration: underline; }
@media (max-width: 900px) {
  .tl-row { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 10px; }
  .tl-row .tl-track { grid-column: 1 / -1; grid-row: 2; }
  .tl-head { display: none; }
  .tl-row > .num { grid-row: 1; grid-column: 2; }
  .tl-act { grid-column: 1 / -1; text-align: left; }
}

/* ---------- Added in 1.1: change log, kiosk tablets, managers ---------- */
.modal.wide { width: min(760px, 100%); }
.notice.warn { border-color: #e08a00; }
.dim { opacity: .55; }
.kiosk .ok-t { color: var(--ok); }
.kiosk .bad-t { color: var(--bad); }
.filters .panel-b { align-items: flex-end; }
.filters .f { min-width: 140px; }
.t.log td { vertical-align: top; }
.t.log details { margin-top: 6px; }
.t.log summary { cursor: pointer; color: var(--ink-2); font-size: .85rem; }
.t.diff td { padding: 4px 8px; font-size: .85rem; word-break: break-word; }
.tabs.tabs-left { justify-content: flex-start; }
.tabs .tab-auto { flex: 0 1 auto; padding: 10px 18px; }
.kmsg { min-height: 3em; font-size: 1.15rem; font-weight: 700; }
.fieldbox { border: 1px solid var(--line); border-radius: var(--radius-s); padding: 12px 14px; margin: 0; }
.legend-b { font-weight: 700; padding: 0 6px; }
.h-sub { font-family: var(--font); font-style: normal; font-weight: 500; }
.list-tight { margin: 6px 0 0; padding-left: 18px; }
.bg-line { background: var(--line); }
.bg-hatch { background: repeating-linear-gradient(135deg, var(--ink-3) 0 2px, transparent 2px 4px); }
.login-foot { margin-top: 14px; text-align: center; }

/* Utilities (kept last so they win over component spacing) */
.m0, .notice.m0 { margin: 0; }
.mt4 { margin-top: 4px; } .mt6 { margin-top: 6px; } .mt8 { margin-top: 8px; } .mt10 { margin-top: 10px; } .mt12 { margin-top: 12px; } .mt20 { margin-top: 20px; }
.mt10-only { margin: 10px 0 0; } .mtn6 { margin-top: -6px; }
.mb8 { margin-bottom: 8px; } .mb10 { margin-bottom: 10px; } .mb12 { margin-bottom: 12px; } .mb16 { margin-bottom: 16px; } .mb20 { margin-bottom: 20px; }
.mv20-10 { margin: 20px 0 10px; }
.notice.notice-row { margin: 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.jc { justify-content: center; }
.grow { flex: 1; } .center { text-align: center; }
.row .grow-auto, input.grow-auto { width: auto; flex: 1; }
.nowrap { white-space: nowrap; }
.gap6 { gap: 6px; } .align-end { align-items: flex-end; gap: 14px; }
.wrap { flex-wrap: wrap; }
input.w90r { width: 90px; text-align: right; }
.w110 { width: 110px; } .minw200 { min-width: 200px; }
input.maxw220 { max-width: 220px; } input.maxw120 { max-width: 120px; }
[hidden] { display: none !important; }
