/* Operator pages: one dark theme for every /admin page (Ivo, 13 Oct). The other admin stylesheets use these variables. */
:root {
  color-scheme: dark;
  --bg: #0f1115; --panel: #171a21; --panel2: #1f232c; --line: #2a2f3a; --line2: #3a4150;
  --ink: #d7dce5; --ink2: #9aa4b5; --muted: #7d8799;
  --accent: #4c8dff; --accent-bg: #1b2a44; --ok: #3fb950; --ok-bg: #12301c; --bad: #f85149; --bad-bg: #3a1618; --warn: #d29922; --warn-bg: #352a10;
}
[hidden] { display: none !important; }
body { font: 14px/1.4 system-ui, sans-serif; margin: 0; padding: 0 16px 16px; background: var(--bg); color: var(--ink); }
a { color: #7aa7ff; }
h1 { font-size: 16px; margin: 0; }
section { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 12px; margin-bottom: 12px; }
h2 { font-size: 14px; margin: 0 0 8px; color: var(--ink2); }
h2.spaced { margin-top: 10px; }
button { font: inherit; padding: 6px 12px; margin: 0 6px 6px 0; border-radius: 6px; border: 1px solid var(--line2); background: var(--panel2); color: var(--ink); cursor: pointer; }
button:hover:not(:disabled) { border-color: var(--ink2); }
button:disabled { opacity: .45; cursor: default; }
button.primary { background: #1f6feb; color: #fff; border-color: #1f6feb; }
table { border-collapse: collapse; width: 100%; font-size: 12px; }
td, th { text-align: left; padding: 4px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--ink2); }
pre { margin: 0; font-size: 12px; white-space: pre-wrap; }
code { background: var(--panel2); padding: 0 4px; border-radius: 4px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 12px; }
input, textarea, select { font: inherit; width: 100%; box-sizing: border-box; margin-bottom: 6px; background: var(--bg); color: var(--ink); border: 1px solid var(--line2); border-radius: 6px; padding: 5px 7px; }
input[type=checkbox], input[type=radio], input[type=file] { border: 0; padding: 0; background: none; }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
input.inline { width: auto; }
input.zone { width: 220px; }
.row { margin: 6px 0; }
.day { margin-right: 6px; }
label { display: block; margin-bottom: 6px; }
.bk-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.bk-preview { margin-top: 6px; background: #1B1B1A; color: #EDEDEA; border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; min-height: 64px; }
.bk-preview .pv { display: flex; align-items: center; gap: 12px; }
.bk-preview .lg { width: 36px; height: 36px; border-radius: 8px; background: #EDEDEA; color: #171717; display: grid; place-items: center; font-weight: 700; font-size: 13px; object-fit: cover; }
.bk-preview .sm { font-size: 12px; color: #8C8C87; }
.bk-preview .hid { color: #A6A6A1; font-size: 13px; }
.thumb { border-radius: 6px; vertical-align: middle; }
.muted { color: var(--muted); font-size: 12px; }
.av-warn { background: var(--warn-bg); color: var(--warn); padding: 8px 10px; border-radius: 6px; }
.av-scope { max-width: 72ch; line-height: 1.5; }
input.mid { width: 260px; display: inline-block; }
input.dt { width: 210px; display: inline-block; }
.sw { font-weight: 600; }
select.mid-sel { width: 220px; display: inline-block; }
.preview { white-space: pre-wrap; margin: 6px 0; }
.hscroll { overflow-x: auto; max-height: 420px; overflow-y: auto; }
#trDays td, #trDays th { white-space: nowrap; }
#trDays button { margin: 0; }

/* the tab bar shared by every operator page */
.top { position: sticky; top: 0; z-index: 10; background: var(--bg); margin: 0 -16px 12px; padding: 10px 16px 0; border-bottom: 1px solid var(--line); }
.top-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.air { font-size: 12px; font-weight: 600; padding: 1px 9px; border-radius: 999px; background: var(--panel2); color: var(--ink2); }
.air.on { background: var(--bad-bg); color: #ff7b72; }
.tabs { display: flex; gap: 2px; overflow-x: auto; white-space: nowrap; scrollbar-width: thin; }
.tabs a { padding: 7px 12px; color: var(--ink2); text-decoration: none; border-bottom: 2px solid transparent; font-weight: 500; }
.tabs a:hover { color: var(--ink); }
.tabs a.on { color: var(--ink); border-bottom-color: var(--accent); }
.tab-note { margin: -4px 0 12px; }
@media (max-width: 640px) { body { padding: 0 8px 8px; } .top { margin: 0 -8px 10px; padding: 8px 8px 0; } }
input.narrow { width: 5em; display: inline-block; }
label.day { display: inline-block; }
#controls label { display: inline-block; margin-right: 10px; }
#controls input, #controls select { width: auto; display: inline-block; }

/* TTR-009: Back to room and Sign out for named staff */
.staff-nav { margin-left: auto; display: inline-flex; gap: 10px; align-items: center; }
