/* Hotspring PMS
   Palette from the place itself: wet stone, steam, mineral water, sulphur.
   One typeface family: IBM Plex Sans for reading, its Condensed cut wherever space is tight
   (calendar bars, room tiles, dense column heads). */
@font-face { font-family: "Plex"; font-weight: 400; font-display: swap; src: url("/vendor/fonts/plex-sans-400.woff2") format("woff2"); }
@font-face { font-family: "Plex"; font-weight: 500; font-display: swap; src: url("/vendor/fonts/plex-sans-500.woff2") format("woff2"); }
@font-face { font-family: "Plex"; font-weight: 600; font-display: swap; src: url("/vendor/fonts/plex-sans-600.woff2") format("woff2"); }
@font-face { font-family: "Plex Cond"; font-weight: 500; font-display: swap; src: url("/vendor/fonts/plex-cond-500.woff2") format("woff2"); }
@font-face { font-family: "Plex Cond"; font-weight: 600; font-display: swap; src: url("/vendor/fonts/plex-cond-600.woff2") format("woff2"); }

:root {
  --ink: #1f2a2e; --ink-2: #47545a; --ink-3: #6e7b80;
  --steam: #f3f6f5; --surface: #ffffff; --line: #d5dedb; --line-2: #e7ecea;
  --mineral: #0e7c73; --mineral-dark: #0a5f58; --mineral-tint: #dff0ed;
  --sulphur: #c98a12; --sulphur-dark: #8f6208; --sulphur-tint: #fbf1da;
  --slate: #3d5a80; --slate-tint: #e3eaf3;
  --red: #b3261e; --red-tint: #fbe6e4;
  --grey: #8a9693; --grey-tint: #edf0ef;
  --rail: #1f2a2e; --rail-2: #2a383d; --rail-ink: #c5d0cd;
  --r: 4px;
  --sans: "Plex", "Segoe UI", system-ui, -apple-system, sans-serif;
  --cond: "Plex Cond", "Plex", "Arial Narrow", sans-serif;
  --shadow: 0 8px 28px rgba(31, 42, 46, .22);
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; font: 13px/1.45 var(--sans); color: var(--ink); background: var(--steam); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 19px; font-weight: 600; letter-spacing: -.005em; }
h2 { font-size: 15px; font-weight: 600; }
h3 { font-size: 13px; font-weight: 600; }
a { color: var(--mineral-dark); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--mineral); outline-offset: 1px; }
.boot { padding: 40px; color: var(--ink-3); }
.num { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.muted { color: var(--ink-3); } .small { font-size: 12px; } .nowrap { white-space: nowrap; }
.cond { font-family: var(--cond); }
.row { display: flex; gap: 8px; align-items: center; } .row.wrap { flex-wrap: wrap; } .row.top { align-items: flex-start; }
.grow { flex: 1 1 auto; min-width: 0; } .right { margin-left: auto; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.neg { color: var(--red); } .pos { color: var(--mineral-dark); }

/* ---------- shell */
.shell { display: grid; grid-template-columns: 196px 1fr; height: 100vh; }
.rail { background: var(--rail); color: var(--rail-ink); display: flex; flex-direction: column; overflow-y: auto; }
.rail .brand { padding: 14px 16px 10px; color: #fff; font-weight: 600; font-size: 15px; line-height: 1.2; }
.rail .brand span { display: block; font-weight: 400; font-size: 12px; color: var(--rail-ink); margin-top: 2px; }
.rail nav { padding: 4px 8px 16px; }
.rail .group { margin-top: 12px; padding: 0 8px 3px; font-size: 11.5px; color: #8ea09c; }
.rail a { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: var(--r); color: var(--rail-ink); text-decoration: none; }
.rail a:hover { background: var(--rail-2); color: #fff; }
.rail a.on { background: var(--mineral); color: #fff; font-weight: 500; }
.rail a .count { margin-left: auto; font: 600 11px var(--cond); background: var(--sulphur); color: #1f2a2e; border-radius: 8px; padding: 0 6px; }
.rail .foot { margin-top: auto; padding: 10px 16px 14px; border-top: 1px solid var(--rail-2); font-size: 12px; }
.rail .foot button { background: none; border: 0; color: var(--rail-ink); padding: 0; cursor: pointer; text-decoration: underline; }
.main { display: flex; flex-direction: column; min-width: 0; height: 100vh; }
.strip { display: flex; align-items: center; gap: 18px; padding: 0 16px; height: 46px; background: var(--surface); border-bottom: 1px solid var(--line); flex: 0 0 auto; }
.strip .bd { font-weight: 600; font-size: 14px; } .strip .bd small { font-weight: 400; color: var(--ink-3); font-size: 12px; margin-right: 6px; }
.strip .fact { color: var(--ink-2); } .strip .fact b { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.strip .search { margin-left: auto; position: relative; }
.strip .search input { width: 250px; }
.page { flex: 1 1 auto; min-height: 0; overflow: auto; padding: 16px; }
.page.flush { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.pagehead { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.pagehead .sub { color: var(--ink-3); }

/* ---------- controls */
.btn { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); cursor: pointer; font-weight: 500; white-space: nowrap; text-decoration: none; color: var(--ink); }
.btn:hover { border-color: var(--ink-3); }
.btn.primary { background: var(--mineral); border-color: var(--mineral); color: #fff; } .btn.primary:hover { background: var(--mineral-dark); }
.btn.warn { background: var(--sulphur); border-color: var(--sulphur); color: #1f2a2e; }
.btn.danger { color: var(--red); border-color: #e3b5b1; } .btn.danger:hover { background: var(--red-tint); }
.btn.quiet { border-color: transparent; background: transparent; } .btn.quiet:hover { background: var(--grey-tint); }
.btn.sm { height: 24px; padding: 0 8px; font-size: 12px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--surface); }
.seg button { border: 0; background: none; height: 28px; padding: 0 10px; cursor: pointer; border-right: 1px solid var(--line); }
.seg button:last-child { border-right: 0; } .seg button.on { background: var(--ink); color: #fff; }
input[type=text], input[type=password], input[type=number], input[type=date], input[type=email], input[type=search], input[type=time], select, textarea {
  height: 30px; padding: 0 8px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); min-width: 0; }
textarea { height: auto; padding: 6px 8px; resize: vertical; line-height: 1.4; }
input:disabled, select:disabled { background: var(--grey-tint); color: var(--ink-3); }
input[type=number] { text-align: right; font-variant-numeric: tabular-nums; }
label.chk { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.field { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.field > span { font-size: 12px; color: var(--ink-2); }
.field input, .field select, .field textarea { width: 100%; }
.field .hint { font-size: 11.5px; color: var(--ink-3); }
.form { display: grid; grid-template-columns: repeat(12, 1fr); gap: 10px 12px; }
.c2 { grid-column: span 2; } .c3 { grid-column: span 3; } .c4 { grid-column: span 4; } .c5 { grid-column: span 5; } .c6 { grid-column: span 6; } .c8 { grid-column: span 8; } .c9 { grid-column: span 9; } .c12 { grid-column: span 12; }

/* ---------- surfaces */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.panel > header { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-bottom: 1px solid var(--line-2); }
.panel > .body { padding: 12px; }
.cols { display: grid; gap: 12px; } .cols.two { grid-template-columns: 1fr 1fr; } .cols.three { grid-template-columns: repeat(3, 1fr); } .cols.side { grid-template-columns: 1fr 320px; }
.notice { padding: 8px 12px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); }
.notice.warn { background: var(--sulphur-tint); border-color: #ecd49a; } .notice.error { background: var(--red-tint); border-color: #e9bab5; color: #7d1a14; }
.notice.ok { background: var(--mineral-tint); border-color: #b7dcd6; } .notice.info { background: var(--slate-tint); border-color: #c5d2e3; }
.empty { padding: 28px 16px; text-align: center; color: var(--ink-3); }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; } .kv dt { color: var(--ink-3); } .kv dd { margin: 0; }

/* ---------- tables */
.tblwrap { overflow: auto; }
table.tbl { width: 100%; border-collapse: collapse; background: var(--surface); }
.tbl th { position: sticky; top: 0; z-index: 1; background: #f8faf9; text-align: left; font: 500 12px var(--cond); color: var(--ink-2); padding: 7px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 6px 8px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.tbl tr.click { cursor: pointer; } .tbl tr.click:hover td { background: #f4f8f7; }
.tbl tr.heading td { background: #f8faf9; font-weight: 600; } .tbl tr.total td { font-weight: 600; border-top: 1px solid var(--ink-3); background: #fbfcfc; }
.tbl tr.sub td { color: var(--ink-2); } .tbl tr.voided td { color: var(--ink-3); text-decoration: line-through; }
.tbl th.num, .tbl td.num { text-align: right; }
.tbl td.wrap { white-space: normal; max-width: 340px; }

/* ---------- status tags */
.tag { display: inline-block; font: 600 11.5px/18px var(--cond); padding: 0 6px; border-radius: 3px; background: var(--grey-tint); color: var(--ink-2); white-space: nowrap; }
.tag.reserved { background: var(--slate-tint); color: #2b4160; } .tag.inhouse { background: var(--mineral-tint); color: var(--mineral-dark); }
.tag.dueout, .tag.warn, .tag.pending, .tag.processing, .tag.in_progress, .tag.retry, .tag.warning { background: var(--sulphur-tint); color: var(--sulphur-dark); }
.tag.cancelled, .tag.noshow, .tag.error, .tag.failed, .tag.void, .tag.overbooked { background: var(--red-tint); color: var(--red); }
.tag.ok, .tag.done, .tag.paid, .tag.resolved, .tag.posted, .tag.completed { background: var(--mineral-tint); color: var(--mineral-dark); }
.tag.open { background: var(--slate-tint); color: #2b4160; }
.hk { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 3px; font: 600 11px var(--cond); color: #fff; }
.hk.clean { background: var(--mineral); } .hk.inspected { background: #175e9b; } .hk.dirty { background: var(--red); } .hk.pickup { background: var(--sulphur); color: #1f2a2e; } .hk.ooo, .hk.oos { background: var(--ink); }

/* ---------- tabs */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.tabs button { border: 0; background: none; padding: 8px 12px; cursor: pointer; color: var(--ink-2); border-bottom: 2px solid transparent; margin-bottom: -1px; font-weight: 500; }
.tabs button.on { color: var(--ink); border-bottom-color: var(--mineral); }
.tabs button .n { font: 600 11px var(--cond); background: var(--grey-tint); border-radius: 8px; padding: 0 6px; margin-left: 5px; }

/* ---------- overlays */
.scrim { position: fixed; inset: 0; background: rgba(31, 42, 46, .38); z-index: 50; display: flex; align-items: flex-start; justify-content: center; padding: 6vh 16px; overflow: auto; }
.scrim.drawer { justify-content: flex-end; padding: 0; align-items: stretch; }
.modal { background: var(--surface); border-radius: 6px; box-shadow: var(--shadow); width: 560px; max-width: 100%; display: flex; flex-direction: column; }
.modal.wide { width: 860px; } .modal.xl { width: 1080px; } .modal.narrow { width: 420px; }
.modal > header { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line-2); }
.modal > header h2 { flex: 1; } .modal > .body { padding: 16px; } .modal > footer { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--line-2); }
.drawerbox { background: var(--surface); width: 780px; max-width: 100vw; height: 100vh; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.drawerbox > header { padding: 14px 18px 10px; border-bottom: 1px solid var(--line); }
.drawerbox > .body { flex: 1; overflow: auto; padding: 14px 18px 24px; }
.x { border: 0; background: none; font-size: 20px; line-height: 1; cursor: pointer; color: var(--ink-3); padding: 2px 6px; }
.toasts { position: fixed; right: 16px; bottom: 16px; z-index: 90; display: flex; flex-direction: column; gap: 8px; max-width: 420px; }
.toast { background: var(--ink); color: #fff; padding: 10px 14px; border-radius: var(--r); box-shadow: var(--shadow); }
.toast.error { background: var(--red); } .toast.ok { background: var(--mineral-dark); }
.drop { position: absolute; z-index: 30; top: 100%; left: 0; right: 0; margin-top: 2px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); max-height: 320px; overflow: auto; }
.drop > div { padding: 7px 10px; cursor: pointer; border-bottom: 1px solid var(--line-2); } .drop > div:hover { background: var(--mineral-tint); }

/* ---------- sign in */
.signin { min-height: 100vh; display: grid; grid-template-columns: minmax(320px, 440px) 1fr; }
.signin .formside { background: var(--surface); padding: 12vh 44px 40px; display: flex; flex-direction: column; gap: 14px; }
.signin .formside h1 { font-size: 24px; } .signin .formside p { color: var(--ink-2); }
.signin .water { background: var(--rail); position: relative; overflow: hidden; }
.signin .water svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.signin .water .cap { position: absolute; left: 44px; bottom: 40px; color: var(--rail-ink); max-width: 420px; font-size: 14px; line-height: 1.5; }
.signin .water .cap b { color: #fff; font-weight: 600; font-size: 20px; display: block; margin-bottom: 6px; }
@media (max-width: 760px) { .signin { grid-template-columns: 1fr; } .signin .water { display: none; } }

/* ---------- calendar (tape chart) */
.calbar { display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: var(--surface); border-bottom: 1px solid var(--line); flex: 0 0 auto; flex-wrap: wrap; }
.calbar .legend { display: flex; gap: 10px; margin-left: auto; font-size: 12px; color: var(--ink-2); align-items: center; }
.calbar .legend i { display: inline-block; width: 16px; height: 10px; border-radius: 2px; margin-right: 4px; vertical-align: -1px; }
.cal { flex: 1 1 auto; min-height: 0; overflow: auto; background: var(--surface); position: relative; user-select: none; }
.cal .head { position: sticky; top: 0; z-index: 6; display: flex; background: #f8faf9; border-bottom: 1px solid var(--line); }
.cal .corner { position: sticky; left: 0; z-index: 7; flex: 0 0 var(--lw); width: var(--lw); background: #f8faf9; border-right: 1px solid var(--line); padding: 6px 10px; display: flex; flex-direction: column; justify-content: flex-end; font: 500 12px var(--cond); color: var(--ink-2); }
.cal .day { flex: 0 0 var(--cw); width: var(--cw); text-align: center; padding: 5px 0 4px; border-right: 1px solid var(--line-2); font-family: var(--cond); line-height: 1.25; }
.cal .day .dw { font-size: 11.5px; color: var(--ink-3); } .cal .day .dn { font-size: 15px; font-weight: 600; } .cal .day .oc { font-size: 11.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.cal .day.we { background: #eef3f1; } .cal .day.today { background: var(--mineral); color: #fff; } .cal .day.today .dw, .cal .day.today .oc { color: #d6efeb; }
.cal .day .mon { font-size: 11px; color: var(--ink-3); height: 14px; } .cal .day.today .mon { color: #d6efeb; }
.cal .grp { display: flex; position: sticky; top: var(--hh); z-index: 4; background: #eef3f1; border-bottom: 1px solid var(--line); height: 26px; }
.cal .grp .name { position: sticky; left: 0; z-index: 5; flex: 0 0 var(--lw); width: var(--lw); background: #eef3f1; border-right: 1px solid var(--line); padding: 0 10px; display: flex; align-items: center; gap: 6px; font-weight: 600; cursor: pointer; white-space: nowrap; overflow: hidden; }
.cal .grp .av { flex: 0 0 var(--cw); width: var(--cw); text-align: center; font: 600 12px/26px var(--cond); color: var(--ink-2); border-right: 1px solid #dfe7e4; font-variant-numeric: tabular-nums; }
.cal .grp .av.zero { color: var(--red); background: var(--red-tint); } .cal .grp .av.low { color: var(--sulphur-dark); }
.cal .r { display: flex; height: 30px; border-bottom: 1px solid var(--line-2); position: relative; }
.cal .r .rm { position: sticky; left: 0; z-index: 3; flex: 0 0 var(--lw); width: var(--lw); background: var(--surface); border-right: 1px solid var(--line); padding: 0 8px 0 10px; display: flex; align-items: center; gap: 7px; }
.cal .r .rm b { font: 600 13px var(--cond); width: 38px; } .cal .r .rm span { font: 500 11.5px var(--cond); color: var(--ink-3); }
.cal .r.un .rm { color: var(--sulphur-dark); font: 600 12px var(--cond); background: var(--sulphur-tint); }
.cal .r .lane { position: relative; flex: 0 0 auto; height: 100%;
  background-image: linear-gradient(to right, var(--line-2) 1px, transparent 1px); background-size: var(--cw) 100%; }
.cal .r.un .lane { background-color: #fdf8ea; }
.cal .r.target .lane { background-color: var(--mineral-tint); }
.cal .wecol { position: absolute; top: 0; bottom: 0; width: var(--cw); background: rgba(31, 42, 46, .035); pointer-events: none; }
.cal .todaycol { position: absolute; top: 0; bottom: 0; width: var(--cw); background: rgba(14, 124, 115, .09); border-left: 2px solid var(--mineral); pointer-events: none; z-index: 1; }
.bar { position: absolute; top: 4px; height: 22px; border-radius: 3px; padding: 0 6px; font: 500 12.5px/22px var(--cond); color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; z-index: 2; background: var(--slate); }
.bar.inhouse { background: var(--mineral); } .bar.dueout { background: var(--sulphur); color: #1f2a2e; } .bar.checkedout { background: #b6c0bd; color: #2d383c; }
.bar.over { box-shadow: inset 0 0 0 2px var(--red); } .bar.clipl { border-top-left-radius: 0; border-bottom-left-radius: 0; } .bar.clipr { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.bar.dayuse { padding: 0 4px; font-size: 11px; } .bar.dragging { opacity: .55; }
.bar small { font-weight: 600; opacity: .85; margin-left: 5px; font-size: 11px; }
.bar.blk { background: repeating-linear-gradient(135deg, #5b676b, #5b676b 5px, #6f7b7f 5px, #6f7b7f 10px); color: #fff; cursor: default; font-size: 11.5px; }
.bar.blk.oos { background: repeating-linear-gradient(135deg, #9aa5a2, #9aa5a2 5px, #b3bcba 5px, #b3bcba 10px); color: #1f2a2e; }
.sel { position: absolute; top: 3px; height: 24px; background: rgba(14, 124, 115, .28); border: 1px dashed var(--mineral-dark); border-radius: 3px; pointer-events: none; z-index: 2; }

/* ---------- housekeeping board */
.floor { margin-bottom: 14px; } .floor h3 { margin-bottom: 6px; color: var(--ink-2); }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 6px; }
.tile { border: 1px solid var(--line); border-left: 5px solid var(--grey); border-radius: var(--r); background: var(--surface); padding: 5px 7px 6px; cursor: pointer; min-height: 62px; position: relative; }
.tile.clean { border-left-color: var(--mineral); } .tile.inspected { border-left-color: #175e9b; } .tile.dirty { border-left-color: var(--red); } .tile.pickup { border-left-color: var(--sulphur); }
.tile.blocked { background: #eef0f0; border-left-color: var(--ink); }
.tile.picked { outline: 2px solid var(--ink); outline-offset: 0; }
.tile .no { font: 600 15px var(--cond); } .tile .ty { font: 500 11px var(--cond); color: var(--ink-3); margin-left: 4px; }
.tile .st { font: 500 11.5px var(--cond); color: var(--ink-2); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile .occ { position: absolute; top: 6px; right: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--ink); }
.tile .occ.vacant { background: none; border: 1.5px solid var(--grey); }

/* ---------- rates grid */
.rg { border-collapse: collapse; background: var(--surface); }
.rg th, .rg td { border: 1px solid var(--line-2); padding: 0; height: 26px; text-align: center; font-family: var(--cond); font-variant-numeric: tabular-nums; }
.rg thead th { position: sticky; top: 0; background: #f8faf9; z-index: 3; padding: 4px 0; min-width: 62px; font-weight: 500; }
.rg th.lbl { position: sticky; left: 0; z-index: 2; background: var(--surface); text-align: left; padding: 0 10px; min-width: 210px; font: 500 12.5px var(--sans); white-space: nowrap; }
.rg thead th.lbl { z-index: 4; background: #f8faf9; }
.rg tr.type th.lbl, .rg tr.type td { background: #eef3f1; font-weight: 600; }
.rg td.zero { color: var(--red); background: var(--red-tint); } .rg td.we, .rg th.we { background-color: #f4f7f6; }
.rg td.cell { cursor: text; } .rg td.cell:hover { background: var(--mineral-tint); }
.rg td.ovr { font-weight: 600; color: var(--mineral-dark); } .rg td.dirty { background: var(--sulphur-tint) !important; font-weight: 600; }
.rg td.stop { background: var(--red-tint); color: var(--red); font-weight: 600; }
.rg td input { width: 100%; height: 25px; border: 0; border-radius: 0; text-align: center; padding: 0; font: 600 13px var(--cond); background: #fff; }
.rg td .mini { display: block; font-size: 10.5px; line-height: 11px; color: var(--ink-3); }

/* ---------- misc */
.statrow { display: flex; gap: 0; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); margin-bottom: 12px; overflow: hidden; flex-wrap: wrap; }
.stat { padding: 10px 16px; border-right: 1px solid var(--line-2); min-width: 120px; }
.stat b { display: block; font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.2; } .stat span { color: var(--ink-3); font-size: 12px; }
.stat.act { cursor: pointer; } .stat.act:hover { background: #f4f8f7; }
.bars14 { display: flex; align-items: flex-end; gap: 4px; height: 96px; padding-top: 6px; }
.bars14 .b { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; font: 500 11px var(--cond); color: var(--ink-3); gap: 2px; }
.bars14 .b i { display: block; width: 100%; background: var(--mineral); border-radius: 2px 2px 0 0; min-height: 2px; } .bars14 .b.we i { background: var(--mineral-dark); }
.steps { counter-reset: st; display: flex; flex-direction: column; gap: 12px; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.step > header { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--line-2); }
.step > header::before { counter-increment: st; content: counter(st); display: inline-flex; width: 22px; height: 22px; align-items: center; justify-content: center; border-radius: 50%; background: var(--ink); color: #fff; font: 600 12px var(--cond); }
.step.done > header::before { background: var(--mineral); } .step > .body { padding: 12px; }
.check li { list-style: none; padding: 6px 0 6px 26px; position: relative; border-bottom: 1px solid var(--line-2); } .check { margin: 0; padding: 0; }
.check li::before { content: ""; position: absolute; left: 4px; top: 10px; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--sulphur); }
.check li.ok::before { background: var(--mineral); border-color: var(--mineral); }
pre.code { background: var(--rail); color: #e6efed; padding: 10px 12px; border-radius: var(--r); overflow: auto; font: 12px/1.5 ui-monospace, Consolas, monospace; margin: 0; white-space: pre-wrap; word-break: break-all; }

@media (max-width: 1100px) { .cols.two, .cols.three, .cols.side { grid-template-columns: 1fr; } .strip .fact { display: none; } }
@media (prefers-reduced-motion: no-preference) { .drawerbox { animation: slide .16s ease-out; } @keyframes slide { from { transform: translateX(24px); opacity: .6; } } }
@media print {
  .rail, .strip, .noprint, .toasts, .tabs { display: none !important; }
  .shell { display: block; height: auto; } .main, .page { height: auto; overflow: visible; display: block; } body { background: #fff; font-size: 11px; }
  .tbl th { position: static; } .panel { border: 0; }
}

/* ---------- added with the remaining screens */
button.tile { display: block; width: 100%; text-align: left; font: inherit; color: inherit; }
.pickbar { position: sticky; top: -16px; z-index: 5; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 12px; margin-bottom: 12px; background: var(--ink); color: #fff; border-radius: var(--r); }
.pickbar .muted { color: #b9c6c3; } .pickbar .btn.quiet { color: #fff; } .pickbar .btn.quiet:hover { background: #33444a; }
.rg th .mini { display: block; font-size: 10.5px; line-height: 11px; color: var(--ink-3); font-weight: 400; }
.rg thead th { font-size: 12.5px; }
.replayout { display: grid; grid-template-columns: 236px 1fr; gap: 12px; align-items: start; }
.replist { padding: 4px 0 10px; }
.replist h3 { padding: 10px 12px 3px; font-size: 12px; font-weight: 500; color: var(--ink-3); }
.replist a { display: block; padding: 5px 12px; color: var(--ink); text-decoration: none; }
.replist a:hover { background: #f4f8f7; } .replist a.on { background: var(--mineral-tint); font-weight: 500; }
.printonly { display: none; }
@media (max-width: 1100px) { .replayout { grid-template-columns: 1fr; } }
@media print { .printonly { display: block; } .replayout { display: block; } .report > header { border: 0; padding-left: 0; } .tblwrap { overflow: visible; } }
.tbl tr.picked td { background: var(--mineral-tint); }
input:not([type]) { height: 30px; padding: 0 8px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); min-width: 0; }
.tbl td { white-space: nowrap; } .tbl td.wrap { white-space: normal; min-width: 150px; }
.tbl tr.sub td:first-child { padding-left: 22px; }
.rg { width: 100%; }
.cal .r.un.sum { cursor: pointer; } .cal .r.un.sum:hover .lane { background-color: #fbf1da; }
.uncount { position: absolute; top: 0; width: var(--cw); text-align: center; font: 600 12px/30px var(--cond); color: var(--sulphur-dark); }
.menubtn { display: none; }
@media (max-width: 1100px) {
  .shell { grid-template-columns: 1fr; }
  .rail { position: fixed; inset: 0 auto 0 0; width: 228px; z-index: 40; transform: translateX(-102%); transition: transform .14s ease-out; }
  .shell.menu .rail { transform: none; box-shadow: var(--shadow); }
  .menubtn { display: inline-flex; }
  .shell.menu::after { content: ""; position: fixed; inset: 0; background: rgba(31, 42, 46, .38); z-index: 39; }
}
@media (max-width: 700px) {
  .form { grid-template-columns: 1fr; } .form > * { grid-column: auto; }
  .page { padding: 12px; } .strip { gap: 10px; padding: 0 10px; } .strip .search input { width: 150px; } .strip .bd small { display: none; }
  .drawerbox { width: 100vw; } .scrim { padding: 12px 8px; } .calbar .legend { display: none; }
}
@media (prefers-reduced-motion: reduce) { .rail { transition: none; } }
.pickbar .pending { flex-basis: 100%; margin: 0; padding: 0 0 2px; list-style: none; font-size: 12.5px; color: #dfe8e6; } .pickbar .pending li { padding: 1px 0; } .pickbar .pending .x { color: #dfe8e6; font-size: 15px; }

/* ---------------------------------------------------------------- housekeeping: statuses in progress */
.tile.cleaning { border-left-color: #b8872b; background: #fdf8ed; } .tile.inspecting { border-left-color: #175e9b; background: #f1f6fb; }
.tile .st.tiny { font: 500 10.5px/14px var(--cond); color: var(--ink-3); }
.tag.clean { background: var(--mineral-tint); color: var(--mineral-dark); } .tag.inspected { background: var(--slate-tint); color: #175e9b; }
.tag.dirty { background: var(--red-tint); color: var(--red); } .tag.pickup { background: var(--sulphur-tint); color: var(--sulphur-dark); }
.tag.cleaning { background: #fdf2dc; color: #8a6414; } .tag.inspecting { background: #e8f0f9; color: #175e9b; }
.hk.cleaning { background: #b8872b; } .hk.inspecting { background: #4d8dc4; }
.statrow.plain { border: 0; background: none; margin: 10px 0 0; } .statrow.plain .stat { padding: 0 16px 0 0; border-right: 0; }
.chip { display: inline-flex; align-items: center; gap: 2px; font: 600 12px/20px var(--cond); background: var(--grey-tint); border-radius: 3px; padding: 0 4px 0 6px; margin-right: 4px; }
.chip .x { border: 0; background: none; cursor: pointer; font-size: 15px; line-height: 1; color: var(--ink-3); padding: 0 2px; }
.chip .x:hover { color: var(--red); }
.tbl tr.off td { opacity: .55; } .tbl tr.on td { background: var(--mineral-tint); }

/* the attendant's phone view */
.page.phone { max-width: 620px; }
.roomcards { display: grid; gap: 10px; }
.roomcard { border: 1px solid var(--line); border-left: 5px solid var(--grey); border-radius: var(--r); background: var(--surface); padding: 10px 12px 12px; }
.roomcard.dirty { border-left-color: var(--red); } .roomcard.pickup { border-left-color: var(--sulphur); }
.roomcard.cleaning { border-left-color: #b8872b; } .roomcard.clean { border-left-color: var(--mineral); }
.roomcard.inspecting { border-left-color: #4d8dc4; } .roomcard.inspected { border-left-color: #175e9b; }
.roomcard header { display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.roomcard header b.cond { font-size: 22px; } .roomcard .meta { color: var(--ink-2); font-size: 12.5px; margin-bottom: 10px; }
.roomcard .row .btn { min-height: 38px; }
.checkitems { display: grid; gap: 6px; }
.checkitem { border: 1px solid var(--line); border-radius: var(--r); padding: 7px 9px; background: var(--surface); }
.checkitem.pass { background: var(--mineral-tint); border-color: #b7dcd6; } .checkitem.fail { background: var(--red-tint); border-color: #e9bab5; }
.checkitem .seg button { min-width: 54px; min-height: 30px; }
.phoneshell { grid-template-columns: 1fr; } .phoneshell .strip { padding: 0 12px; }

/* printable door cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.cards .card { border: 1px solid var(--line); border-radius: var(--r); padding: 12px; display: flex; gap: 12px; align-items: center; background: #fff; break-inside: avoid; }
.cards .card .qr { flex: none; line-height: 0; } .cards .card b.cond { display: block; font-size: 30px; line-height: 1.1; }
.cards .card span { display: block; font-size: 12px; color: var(--ink-2); } .cards .card span.small { font-size: 11px; line-height: 1.25; margin-top: 2px; }
@media print { .cards { grid-template-columns: repeat(3, 1fr); } .cards .card { border-color: #999; } }
