:root {
  --bg: #f4f6f6;
  --surface: #ffffff;
  --ink: #15201d;
  --muted: #5b6662;
  --line: #dce1de;
  --accent: #0e5f8a;       /* Blueshade blue */
  --accent-soft: #dcecf5;
  --free: #3c8a5a;
  --free-soft: #e1f1e7;
  --allocated: #b7791f;
  --allocated-soft: #f8ecd0;
  --occupied: #b4423a;
  --occupied-soft: #f6dedb;
  --env: #7a3e00;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 "Segoe UI", system-ui, -apple-system, sans-serif; }
a { color: var(--accent); }
h1 { font-size: 1.6rem; margin: 0; }
h1 small { font-weight: 400; color: var(--muted); font-size: 1rem; margin-left: .5rem; }
h2 { margin: 0 0 1rem; font-size: 1.2rem; }
code { background: #eef2f2; padding: 1px 5px; border-radius: 4px; }
.muted { color: var(--muted); } .small { font-size: .85rem; }

.env-banner { background: #fff1d6; color: var(--env); text-align: center; font-size: .8rem; padding: 3px; letter-spacing: .04em; border-bottom: 1px solid #ecd49a; }
.topbar { display: flex; align-items: center; gap: 1.5rem; padding: .6rem 1.5rem; background: var(--accent); color: #fff; flex-wrap: wrap; }
.topbar a { color: #fff; text-decoration: none; }
.brand { font-weight: 700; font-size: 1.15rem; } .brand span { font-weight: 300; }
.nav { display: flex; gap: 1.1rem; } .nav a { opacity: .9; } .nav a:hover { opacity: 1; text-decoration: underline; }
.hotel-actions { align-self: stretch; align-items: center; gap: .35rem; }
.action-group { position: relative; }
.action-group summary { list-style: none; cursor: pointer; padding: .45rem .65rem; border-radius: 4px; }
.action-group summary::-webkit-details-marker { display: none; }
.action-group summary::after { content: "▾"; margin-left: .4rem; font-size: .75em; }
.action-group[open] summary, .action-group summary:hover { background: rgba(255,255,255,.14); }
.action-menu { position: absolute; z-index: 5; top: calc(100% + .25rem); left: 0; min-width: 210px; padding: .35rem 0; background: var(--surface); border: 1px solid var(--line); border-radius: 4px; box-shadow: 0 8px 20px rgba(0,0,0,.16); }
.action-menu a { display: block; padding: .5rem .8rem; color: var(--ink); white-space: nowrap; }
.action-menu a:hover { background: var(--accent-soft); text-decoration: none; }
.who { margin-left: auto; display: flex; gap: 1rem; align-items: center; font-size: .9rem; }
.who small { opacity: .8; }
.settings-link { display: inline-flex; width: 2rem; height: 2rem; align-items: center; justify-content: center; border-radius: 4px; }
.settings-link:hover { background: rgba(255,255,255,.14); }
.settings-link svg { width: 1.25rem; height: 1.25rem; fill: currentColor; }
.page { max-width: 1200px; margin: 1.5rem auto; padding: 0 1.5rem 3rem; }
.page-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.actions, .datebar { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }

button, .btn { font: inherit; padding: .4rem .8rem; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 6px; cursor: pointer; text-decoration: none; display: inline-block; }
button:hover, .btn:hover { border-color: var(--accent); }
button.primary, .btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
button.danger { color: var(--occupied); border-color: #e4b7b3; }
button.link { background: none; border: none; color: #fff; padding: 0; text-decoration: underline; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid #f5a623; outline-offset: 2px; }
form.inline { display: inline-flex; gap: .4rem; align-items: center; }

input, select, textarea { font: inherit; padding: .45rem .6rem; border: 1px solid #b9c3c0; border-radius: 6px; background: #fff; color: var(--ink); width: 100%; }
.datebar input, .datebar select, form.inline input { width: auto; }
label { display: block; margin: .9rem 0 .25rem; font-weight: 600; font-size: .9rem; }
label small { font-weight: 400; color: var(--muted); }
.error { color: var(--occupied); font-size: .85rem; display: block; }
.notice { padding: .6rem .9rem; border-radius: 6px; margin-bottom: 1rem; }
.notice.ok { background: var(--free-soft); border: 1px solid #b8dcc6; }
.notice.bad { background: var(--occupied-soft); border: 1px solid #e4b7b3; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 1.4rem; }
.card.narrow { max-width: 520px; }
.form { max-width: 640px; }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-actions { margin-top: 1.4rem; display: flex; gap: .6rem; }
fieldset { border: 1px solid var(--line); border-radius: 8px; margin: 1rem 0 0; padding: 0 1rem 1rem; }
legend { padding: 0 .4rem; font-weight: 600; }

.login { display: grid; grid-template-columns: 1fr 380px; gap: 3rem; align-items: center; max-width: 900px; margin: 4rem auto; }
.login-brand h1 { font-size: 2.4rem; color: var(--accent); } .login-brand h1 span { font-weight: 300; }
.login-brand p { color: var(--muted); font-size: 1.1rem; }
.login-card button { margin-top: 1.4rem; width: 100%; padding: .6rem; }
@media (max-width: 800px) { .login { grid-template-columns: 1fr; margin: 2rem auto; } }
@media (max-width: 800px) {
  .hotel-actions { order: 3; width: 100%; overflow-x: auto; }
  .action-menu { position: fixed; top: auto; }
  .who { gap: .6rem; }
}

.tiles { display: flex; gap: 1rem; margin-bottom: .6rem; flex-wrap: wrap; }
.planner { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; overflow-x: auto; margin-bottom: 2rem; }
.planner-inner { min-width: calc(180px + var(--days) * 58px); }
.planner-head, .planner-row { display: grid; grid-template-columns: 180px 1fr; border-bottom: 1px solid #edf0ef; }
.planner-row:last-child { border-bottom: none; }
.planner-head { background: #fafbfb; border-bottom: 1px solid var(--line); }
.planner-label { padding: .4rem .8rem; border-right: 1px solid var(--line); line-height: 1.25; }
.planner-label small { display: block; color: var(--muted); font-size: .75rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.planner-head .planner-label { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); align-self: center; }
.planner-track { position: relative; min-height: 2.6rem; }
.planner-head .planner-track { min-height: 2.4rem; }
.planner-day { position: absolute; top: 0; bottom: 0; text-align: center; font-size: .8rem; padding-top: .3rem; border-left: 1px solid var(--line); }
.planner-day span { display: block; font-size: .68rem; text-transform: uppercase; color: var(--muted); }
.planner-day.today { background: var(--accent-soft); font-weight: 600; }
.planner-line { position: absolute; top: 0; bottom: 0; width: 1px; background: #edf0ef; }
.planner-now { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--accent); z-index: 2; }
.pbar { position: absolute; top: 5px; bottom: 5px; z-index: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; padding: 0 .5rem; border-radius: 4px; font-size: .8rem; line-height: 2.1rem; text-decoration: none; border: 1px solid transparent; }
.pbar:hover, .pbar:focus-visible { filter: brightness(.94); z-index: 3; outline-offset: 0; }
.pbar.allocated { background: var(--allocated-soft); border-color: var(--allocated); color: #5e3d08; }
.pbar.occupied { background: var(--occupied); color: #fff; }
.pbar.occupied.overstay { background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.18) 0 6px, transparent 6px 12px); }
.pbar.completed { background: var(--free-soft); border-color: #b8dcc6; color: #1f5a37; }
.planner-key { margin: 1.2rem 0 .5rem; }
.booking-list { list-style: none; margin: 0 0 .8rem; padding: 0; }
.booking-list li { padding: .35rem 0; border-bottom: 1px solid #edf0ef; }
.booking-list li:last-child { border-bottom: none; }
.detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: .35rem 1.2rem; margin: 0; }
.facts dt { color: var(--muted); font-size: .9rem; } .facts dd { margin: 0; }
.action-menu .menu-heading { display: block; padding: .45rem .8rem .2rem; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.dash { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1rem; }
.section-gap { margin-top: 2rem; }
.card.form { margin-top: 1.5rem; }
.form input[type="color"] { padding: .15rem; height: 2.4rem; }
.tile { background: var(--surface); border: 1px solid var(--line); border-left-width: 5px; border-radius: 8px; padding: .5rem 1.1rem; min-width: 140px; }
.tile strong { font-size: 1.6rem; margin-right: .5rem; }
.tile.free { border-left-color: var(--free); } .tile.allocated { border-left-color: var(--allocated); } .tile.occupied { border-left-color: var(--occupied); }

.pill { display: inline-block; padding: 1px 10px; border-radius: 999px; font-size: .8rem; font-weight: 600; }
.pill.free, .pill.completed { background: var(--free-soft); color: #1f5a37; }
.pill.allocated { background: var(--allocated-soft); color: #7b4f0b; }
.pill.occupied { background: var(--occupied-soft); color: #7e231c; }
.pill.cancelled { background: #e8ecec; color: #50605c; }

.grid { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; overflow-x: auto; }
.grid-head, .grid-row { display: grid; grid-template-columns: 190px 110px minmax(220px, 1fr) minmax(300px, 1.3fr); gap: 1rem; padding: .55rem 1rem; align-items: center; min-width: 900px; }
.grid-head { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); border-bottom: 1px solid var(--line); }
.grid-row { border-bottom: 1px solid #edf0ef; } .grid-row:last-child { border-bottom: none; }
.col-unit small { display: block; color: var(--muted); font-size: .8rem; }
.col-note { font-size: .9rem; }
.hours { position: relative; height: 1rem; } .hours span { position: absolute; transform: translateX(-30%); }
.track { position: relative; height: 22px; background: #eef2f1; border-radius: 4px; overflow: hidden; }
.seg { position: absolute; top: 0; bottom: 0; display: block; }
.seg:hover { filter: brightness(.9); }
.seg.allocated { background: #f1d9a3; opacity: .85; }
.seg.occupied { background: var(--occupied); top: 5px; bottom: 5px; border-radius: 3px; }
.now { position: absolute; top: -2px; bottom: -2px; width: 2px; background: var(--accent); }

.table { width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; border-collapse: separate; border-spacing: 0; overflow: hidden; }
.table th { text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: .6rem .8rem; border-bottom: 1px solid var(--line); background: #fafbfb; }
.table td { padding: .55rem .8rem; border-bottom: 1px solid #edf0ef; vertical-align: middle; }
.table tr:last-child td { border-bottom: none; }
.row-actions { white-space: nowrap; display: flex; gap: .4rem; }

/* =====================================================================================================
   Brand type and the dashboard pieces the layout uses (gold shield, Jost)
   ===================================================================================================== */
@font-face { font-family: "Jost"; font-style: normal; font-weight: 300 700; font-display: swap; src: url("../fonts/jost-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215; }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 300 700; font-display: swap; src: url("../fonts/jost-latin-ext.woff2") format("woff2"); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../fonts/source-serif-4-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215; }
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../fonts/source-serif-4-latin-ext.woff2") format("woff2"); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root { --gold: #b08a3e; --gold-soft: #f4ead6; --display: "Jost", "Segoe UI", system-ui, sans-serif; --waiting: #6a4fb0; --waiting-soft: #ebe5f7; }
h1, h2, h3, .brand, .nav, .action-group summary, .kpi .value, .tabs a { font-family: var(--display); }
h1 { font-weight: 500; letter-spacing: -.01em; }
h2 { font-weight: 500; }
h3 { font-size: 1rem; font-weight: 600; margin: 1rem 0 .5rem; }
.brand { display: inline-flex; align-items: center; gap: .5rem; }
.brand img { display: block; }
.brand-word { font-weight: 500; letter-spacing: .02em; }
.brand-pms { font-weight: 300; color: var(--gold-soft); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.site-footer { max-width: 1200px; margin: 0 auto; padding: 1rem 1.5rem 2rem; display: flex; justify-content: space-between; gap: 1rem; color: var(--muted); font-size: .8rem; border-top: 1px solid var(--line); }

.welcome { display: flex; justify-content: space-between; align-items: center; gap: 2rem; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 1.5rem 1.8rem; margin-bottom: 1rem; flex-wrap: wrap; }
.welcome h1 { font-size: 1.9rem; margin: .2rem 0 .4rem; }
.welcome p { margin: 0 0 1rem; color: var(--muted); }
.eyebrow { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--gold); font-weight: 600; }
.quick { display: flex; gap: .5rem; flex-wrap: wrap; }
.ring { --pct: 0; width: 132px; height: 132px; border-radius: 50%; display: grid; place-items: center; flex: none;
        background: conic-gradient(var(--gold) calc(var(--pct) * 1%), #e7ebe9 0); }
.ring > div { width: 104px; height: 104px; border-radius: 50%; background: var(--surface); display: grid; place-content: center; text-align: center; color: var(--muted); font-size: .8rem; }
.ring strong { display: block; font-family: var(--display); font-size: 1.7rem; color: var(--ink); font-weight: 500; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .8rem; margin-bottom: 1rem; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: .8rem 1rem; }
.kpi .label { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.kpi .value { font-size: 1.7rem; font-weight: 500; line-height: 1.25; font-variant-numeric: tabular-nums; }
.kpi .value.small-value { font-size: 1.15rem; padding-top: .2rem; }
.kpi .sub { font-size: .8rem; color: var(--muted); }
.kpi.alert { border-color: #e4b7b3; background: var(--occupied-soft); }
.kpis.compact .kpi { padding: .6rem .9rem; }
.kpis.compact .kpi .value { font-size: 1.3rem; }
.statbar { display: flex; height: 14px; border-radius: 7px; overflow: hidden; background: #e7ebe9; margin-bottom: .6rem; }
.statbar i { display: block; height: 100%; }
.statbar i.occupied { background: var(--occupied); } .statbar i.allocated { background: var(--gold); } .statbar i.free { background: var(--free); }
.legend { display: flex; gap: 1rem; flex-wrap: wrap; font-size: .85rem; color: var(--muted); margin-bottom: 1rem; }
.legend i, .chip i { display: inline-block; width: .7rem; height: .7rem; border-radius: 3px; margin-right: .35rem; vertical-align: -1px; }
.chips { display: flex; gap: .5rem; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: .15rem; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: .15rem .65rem; font-size: .85rem; }
.chip strong { margin-left: .35rem; }
.chip.small { font-size: .75rem; padding: 0 .5rem; margin-left: .4rem; }

/* =====================================================================================================
   Hotel operations (phase 1): reservations, availability, billing, housekeeping, reports, setup
   ===================================================================================================== */
.section-gap-sm { margin-top: 1rem; }
.lede { max-width: 70ch; color: var(--ink); }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table th.num { text-align: right; }
.owed { color: var(--occupied); font-weight: 600; }
.table-wrap { overflow-x: auto; }
.table.plain { border: none; border-radius: 0; background: transparent; }
.table.plain th { background: transparent; }
.table tr.group th { background: #f3f6f5; color: var(--ink); font-size: .8rem; }
.table tr.subtotal td, .table tfoot th, .table tfoot td { font-weight: 600; border-top: 1px solid var(--line); }
.table tr.voided td { color: #8d9895; text-decoration: line-through; text-decoration-color: rgba(0,0,0,.25); }
.table tr.voided td .small { text-decoration: none; }
.table tr.chosen td { background: var(--gold-soft); }
.table tr.unavailable td { color: #8d9895; }
.table.narrow { max-width: 420px; }

.pill.waiting { background: var(--waiting-soft); color: var(--waiting); }
.pill.noshow { background: #efe3e1; color: #6e2c26; }
.hk-dot { display: inline-block; width: .6rem; height: .6rem; border-radius: 50%; margin-left: .35rem; }

.searchbar { display: flex; gap: .8rem; flex-wrap: wrap; align-items: flex-end; padding: 1rem 1.2rem; }
.searchbar > div { min-width: 130px; flex: 1 1 130px; }
.searchbar label { margin-top: 0; }
.searchbar-go { flex: 0 0 auto !important; min-width: 0 !important; }
.searchbar .check { align-self: center; flex: 0 0 auto; }
.search { min-width: 260px; }
.inline-label { margin: 0; font-weight: 600; font-size: .9rem; }
select.auto, input.auto { width: auto; }
.num-sm { width: 5.5rem !important; } .num-md { width: 7.5rem !important; }
form.inline.grow { display: flex; width: 100%; }
form.inline.grow input[name="name"] { flex: 1; }
.inline.wrap, .row-actions.wrap { flex-wrap: wrap; }
.form.wide { max-width: none; }
.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 1rem; }
.three { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0 1rem; }
label.check, .check label { display: flex; align-items: center; gap: .45rem; font-weight: 400; margin: .8rem 0 0; }
label.check input, .check input, .checks input, .segmented input { width: auto; }
.checks { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; }
.checks label { display: flex; align-items: center; gap: .35rem; font-weight: 400; margin: .6rem 0 0; }
.segmented { display: inline-flex; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; margin-top: .4rem; }
.segmented label { margin: 0; padding: .35rem .8rem; font-weight: 400; display: flex; gap: .35rem; align-items: center; border-right: 1px solid var(--line); cursor: pointer; }
.segmented label:last-child { border-right: none; }
.segmented label:has(input:checked) { background: var(--accent-soft); }
button[disabled] { opacity: .5; cursor: not-allowed; }

.tabs { display: flex; gap: .2rem; border-bottom: 1px solid var(--line); flex-wrap: wrap; margin-bottom: 1rem; }
.tabs a { padding: .5rem .9rem; text-decoration: none; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a:hover { color: var(--ink); }
.tabs a.active { color: var(--ink); border-bottom-color: var(--gold); font-weight: 500; }
.page-head.sub { margin-bottom: .5rem; }
.page-head.sub h2 { margin: 0; }

.nightly { display: flex; flex-wrap: wrap; gap: .4rem; margin: .4rem 0 .8rem; }
.nightly span { border: 1px solid var(--line); border-radius: 6px; padding: .25rem .6rem; font-variant-numeric: tabular-nums; background: #fafbfb; }
.nightly span small { display: block; font-size: .7rem; color: var(--muted); }
.nightly span.posted { background: var(--free-soft); border-color: #b8dcc6; }

.table.avail th, .table.avail td { text-align: center; padding: .45rem .4rem; }
.table.avail th:first-child, .table.avail tbody th, .table.avail tfoot th { text-align: left; white-space: nowrap; padding-left: .8rem; }
.table.avail tbody th small { display: block; color: var(--muted); font-weight: 400; font-size: .75rem; }
.table.avail th.day { font-weight: 500; font-size: .8rem; min-width: 3.2rem; }
.table.avail th.day span { display: block; font-size: .68rem; text-transform: uppercase; color: var(--muted); }
.table.avail th.weekend { background: #f1f3ee; }
.table.avail th.today { background: var(--gold-soft); }
.table.avail td.cell { font-variant-numeric: tabular-nums; font-weight: 600; }
.table.avail td.cell a { text-decoration: none; display: block; }
.table.avail td.last { background: var(--allocated-soft); }
.table.avail td.none { background: var(--occupied-soft); color: #7e231c; }
.table.avail td.over { background: var(--occupied); color: #fff; }
.table.avail td.changed { background: var(--accent-soft); }
.table.avail tfoot td { font-weight: 400; color: var(--muted); font-size: .85rem; }
.table.avail tfoot tr:first-child td { color: var(--ink); font-weight: 600; }
.flag { display: block; font-size: .62rem; font-weight: 700; color: var(--occupied); }
.band { display: inline-block; padding: 0 .45rem; border-radius: 4px; font-weight: 600; font-size: .8rem; }
.band.quiet { background: #e8ecec; color: #50605c; }
.band.steady { background: var(--free-soft); color: #1f5a37; }
.band.busy { background: var(--allocated-soft); color: #7b4f0b; }
.band.full { background: var(--occupied); color: #fff; }

.inline-menu { display: inline-block; position: relative; }
.inline-menu summary { cursor: pointer; color: var(--accent); font-size: .85rem; list-style: none; }
.inline-menu summary::-webkit-details-marker { display: none; }
.inline-menu[open] form { position: absolute; right: 0; z-index: 4; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: .5rem; box-shadow: 0 6px 18px rgba(0,0,0,.14); }
.inline-menu input { width: 14rem; }

.trend { display: inline-block; width: 0; height: 0; margin-right: .35rem; vertical-align: 1px; border-left: 5px solid transparent; border-right: 5px solid transparent; }
.trend.up { border-bottom: 7px solid var(--free); }
.trend.down { border-top: 7px solid var(--occupied); }
.trend.flat { width: 8px; height: 2px; background: var(--muted); border: none; vertical-align: 3px; }

.hk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .8rem; }
.hk-card { background: var(--surface); border: 1px solid var(--line); border-top: 5px solid var(--hk); border-radius: 8px; padding: .7rem .9rem; display: flex; flex-direction: column; gap: .5rem; }
.hk-card header { display: flex; align-items: baseline; gap: .5rem; }
.hk-card .room { font-family: var(--display); font-size: 1.35rem; font-weight: 500; }
.hk-card .hk-status { margin-left: auto; font-size: .75rem; font-weight: 700; letter-spacing: .04em; }
.hk-card.offsale { background: repeating-linear-gradient(135deg, #fff 0 10px, #f4f5f4 10px 20px); }
.hk-body { display: flex; flex-direction: column; gap: .25rem; }
.hk-actions { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: auto; }
.hk-actions button { font-size: .75rem; padding: .25rem .55rem; }
.tray { margin-bottom: 2rem; border-left: 4px solid var(--waiting); }

.invoice { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 2rem 2.2rem; max-width: 860px; }
.invoice-head { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; border-bottom: 2px solid var(--gold); padding-bottom: 1rem; margin-bottom: 1rem; }
.invoice-head h2 { margin: .4rem 0 0; font-family: "Source Serif 4", Georgia, serif; font-size: 1.5rem; font-weight: 600; }
.invoice-to { margin: 1rem 0 1.4rem; }

@media print {
  .topbar, .env-banner, .site-footer, .no-print, .notice { display: none !important; }
  body { background: #fff; }
  .page { margin: 0; padding: 0; max-width: none; }
  .invoice, .card, .table, .kpi { border-color: #ccc; box-shadow: none; }
}

/* ---- Demo environment: banner and sign-in shortcuts ---- */
.env-banner.demo { background: var(--gold-soft); color: #5c4718; border-bottom-color: #e3cf9f; }
.demo-card { grid-column: 2; padding: 1.1rem 1.2rem; }
.demo-card h2 { margin: 0 0 .3rem; font-size: 1.05rem; }
.demo-card code { background: var(--gold-soft); padding: 0 .3rem; border-radius: 4px; }
.demo-accounts { list-style: none; margin: .6rem 0 0; padding: 0; display: grid; gap: .4rem; }
.demo-fill { width: 100%; text-align: left; display: flex; flex-direction: column; gap: .05rem; padding: .45rem .7rem; }
.demo-fill span { font-size: .78rem; color: var(--muted); }
.demo-fill:hover, .demo-fill:focus-visible { border-color: var(--gold); background: #fffaf0; }
@media (max-width: 800px) { .demo-card { grid-column: 1; } }

/* =====================================================================================================
   HPMS: settings menu, roles, hotel details, weather, payment devices, Back of House, stock
   ===================================================================================================== */
.prewrap { white-space: pre-wrap; overflow-wrap: anywhere; }
.plain-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.small-heading { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; margin: 0 0 .6rem; }
.split { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 1.2rem; align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.head-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.row-muted td { color: #8d9895; }
.muted-card { background: #f7f8f8; }
.inline-form { display: flex; gap: .5rem; flex-wrap: wrap; align-items: flex-end; }
.inline-form > div { flex: 1 1 160px; }
.inline-form label { margin-top: 0; }
.inline-form.compact { gap: .3rem; align-items: center; flex-wrap: nowrap; }
.inline-form.compact input, .inline-form.compact select { padding: .25rem .4rem; font-size: .85rem; }
.inline-form.compact button { padding: .25rem .6rem; font-size: .85rem; }
form.inline.role-form select { width: auto; max-width: 14rem; }
form.inline.reset input { width: 11rem; }
.filters { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; margin-bottom: 1rem; }
.filters select, .filters input:not([type="checkbox"]) { width: auto; }
.filters label { margin: 0; }
details.help { margin: .6rem 0 1rem; }
details.help summary { cursor: pointer; color: var(--accent); }
details.help > div, details.help > ul, details.help > p { margin-top: .5rem; }

/* settings cog and hotel switcher */
.who .switch-link { font-size: .85rem; padding: .2rem .55rem; border: 1px solid rgba(255,255,255,.35); border-radius: 4px; }
.who .switch-link:hover { background: rgba(255,255,255,.14); }
.settings-group summary.settings-link { padding: 0; display: inline-flex; width: 2.1rem; height: 2.1rem; border-radius: 50%; }
.settings-group summary.settings-link::after { content: none; }
.settings-group summary.settings-link svg { width: 1.3rem; height: 1.3rem; transition: transform .25s ease; }
.settings-group[open] summary.settings-link svg { transform: rotate(60deg); }
.action-menu.align-right { left: auto; right: 0; }
@media (prefers-reduced-motion: reduce) { .settings-group summary.settings-link svg { transition: none; } }

/* hotel chooser */
.hotel-choices { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .8rem; }
.hotel-choices form { margin: 0; }
.hotel-choice { width: 100%; text-align: left; display: flex; flex-direction: column; gap: .2rem; padding: 1rem 1.1rem; border-radius: 10px; }
.hotel-choice strong { font-family: var(--display); font-weight: 500; font-size: 1.1rem; }
.hotel-choice span { color: var(--muted); font-size: .85rem; }
.hotel-choice.current { border-color: var(--accent); background: var(--accent-soft); opacity: 1; cursor: default; }

/* roles */
.role-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .8rem; margin-bottom: 1.5rem; }
.role-card h3 { margin-top: 0; }
.role-card p { margin: .2rem 0 .6rem; color: var(--muted); font-size: .9rem; }
.perm-list { margin: 0; padding-left: 1.1rem; font-size: .85rem; }
.perm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: .1rem 1.2rem; }
.perm-grid label { display: flex; gap: .45rem; align-items: flex-start; font-weight: 400; margin: .5rem 0 0; }
.perm-grid input { width: auto; margin-top: .25rem; }

/* hotel header on invoices and reports */
.hotel-header { display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.hotel-name { display: block; font-family: "Source Serif 4", Georgia, serif; font-size: 1.4rem; font-weight: 600; }
.hotel-header address { font-style: normal; margin: .2rem 0; line-height: 1.4; }
.hotel-contact, .hotel-tax { display: flex; gap: .3rem 1rem; flex-wrap: wrap; font-size: .85rem; color: var(--muted); }
.hotel-doc { text-align: right; display: flex; flex-direction: column; }
.hotel-doc strong { font-family: var(--display); font-weight: 500; font-size: 1.1rem; }
.hotel-doc span { color: var(--muted); font-size: .9rem; }
.invoice-head .hotel-header { flex: 1 1 320px; }
.report-hotel { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: .9rem 1.2rem; margin-bottom: 1rem; }
.hotel-footer { margin-top: 1.6rem; padding-top: .8rem; border-top: 1px solid var(--line); font-size: .9rem; }
.hotel-footer p { margin: .2rem 0; }
.invoice-preview { padding: 1.2rem; }
.invoice-footer { margin-top: 1rem; padding-top: .6rem; border-top: 1px solid var(--line); white-space: pre-wrap; font-size: .9rem; }

/* weather */
.weather { display: flex; flex-direction: column; gap: .8rem; }
.weather-now { display: flex; gap: .9rem; align-items: center; }
.wx-icon { width: 3rem; height: 3rem; flex: none; fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.wx-icon.small { width: 1.6rem; height: 1.6rem; }
.wx-temp { font-family: var(--display); font-size: 2rem; font-weight: 500; line-height: 1; font-variant-numeric: tabular-nums; }
.wx-sum { font-weight: 600; }
.wx-days { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.wx-days li { border: 1px solid var(--line); border-radius: 8px; padding: .45rem .5rem; display: flex; flex-direction: column; align-items: center; gap: .15rem; font-size: .85rem; font-variant-numeric: tabular-nums; }
.wx-day { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }

/* payment devices */
.provider-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: .8rem; margin-bottom: 1.5rem; }
.provider-card h3 { margin-top: 0; display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }

/* Back of House */
.report-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .8rem; }
.report-tile { display: flex; flex-direction: column; gap: .3rem; text-decoration: none; color: var(--ink); }
.report-tile strong { font-family: var(--display); font-weight: 500; font-size: 1.1rem; color: var(--accent); }
.report-tile span { color: var(--muted); font-size: .9rem; }
.report-tile:hover { border-color: var(--accent); }
.notes-body { min-height: 8rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.notes-card .prewrap { max-height: 14rem; overflow-y: auto; margin-bottom: .4rem; }
textarea.notes { min-height: 16rem; font-family: inherit; line-height: 1.5; }

/* housekeeping assignment */
.hk-assign { display: flex; gap: .3rem; }
.hk-assign select { padding: .2rem .35rem; font-size: .8rem; }
.hk-assign button { font-size: .75rem; padding: .2rem .55rem; }

@media print {
  .report-hotel { border: none; padding: 0; }
}
