/* Vazirmatn (SIL OFL 1.1, fonts/OFL.txt) served from this site: no dependency on Google Fonts, cached for a year */
@font-face { font-family: "Vazirmatn"; src: url("fonts/Vazirmatn-wght.woff2") format("woff2-variations"), url("fonts/Vazirmatn-wght.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
/* BR-SETUP-011: Vazirmatn has no Georgian or Cyrillic letters. Noto Sans Georgian and Roboto's Cyrillic (Vazirmatn's Latin
   is Roboto's), both SIL OFL 1.1 (fonts/OFL-*.txt) from the @fontsource packages, cover them; by unicode-range the browser
   fetches a file only when a page shows such letters, so a Persian page loads nothing more. Prints use the same faces (ui.js). */
@font-face { font-family: "Noto Sans Georgian"; src: url("fonts/NotoSansGeorgian-georgian-wght.woff2") format("woff2-variations"), url("fonts/NotoSansGeorgian-georgian-wght.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; unicode-range: U+0589, U+10A0-10FF, U+1C90-1CBA, U+1CBD-1CBF, U+205A, U+2D00-2D2F, U+2E31; }
@font-face { font-family: "Roboto"; src: url("fonts/Roboto-cyrillic-wght.woff2") format("woff2-variations"), url("fonts/Roboto-cyrillic-wght.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Roboto"; src: url("fonts/Roboto-cyrillic-ext-wght.woff2") format("woff2-variations"), url("fonts/Roboto-cyrillic-ext-wght.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }

/* Roomexa prototype — design tokens follow the owner's mockup: navy rail, royal-blue action colour, pastel KPI tiles */
:root {
  --bg: #f4f6fb; --surface: #ffffff; --surface-2: #f8fafd; --line: #e4e9f2; --line-2: #eef1f7;
  --ink: #0f1a33; --ink-2: #3b4863; --muted: #6b7a96; --faint: #9aa6bd;
  --side: #0f1b3d; --side-2: #16244d; --side-ink: #c9d3ea; --side-active: #2563eb;
  --accent: #2563eb; --accent-ink: #ffffff; --accent-soft: #e8efff; --accent-line: #c7d7fe;
  --blue: #2563eb; --blue-bg: #dfe9ff; --blue-line: #b8cdfd;
  --green: #0f8a5f; --green-bg: #dcf5ea; --green-line: #a9e4ca;
  --amber: #b26a00; --amber-bg: #fff1d6; --amber-line: #f7d392;
  --orange: #c2410c; --orange-bg: #ffe6d9; --orange-line: #fcc3a4;
  --red: #c62a3a; --red-bg: #fde4e7; --red-line: #f8b4bd;
  --violet: #6d3fd8; --violet-bg: #ece5ff; --violet-line: #cdbcfb;
  --slate: #56637d; --slate-bg: #e8ecf3; --slate-line: #cbd3e1;
  --today: rgba(37, 99, 235, 0.07); --weekend: rgba(15, 26, 51, 0.025);
  --shadow: 0 1px 2px rgba(15, 26, 51, 0.05), 0 4px 16px rgba(15, 26, 51, 0.05);
  --shadow-lg: 0 20px 50px rgba(15, 26, 51, 0.22);
  --r: 12px; --r-sm: 8px;
  --font: "Vazirmatn", "Noto Sans Georgian", "Roboto", Sylfaen, "Segoe UI", Tahoma, system-ui, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1222; --surface: #111a2f; --surface-2: #0e1628; --line: #223053; --line-2: #1a2744;
    --ink: #e7ecf7; --ink-2: #c1cbe0; --muted: #8e9bb8; --faint: #62708f;
    --side: #080f20; --side-2: #0f1a33; --side-ink: #aeb9d4;
    --accent: #4f86ff; --accent-soft: #1a2a52; --accent-line: #2c4486;
    --blue: #7aa6ff; --blue-bg: #1b2d57; --blue-line: #2e4a8c;
    --green: #4fd3a0; --green-bg: #0f3a2c; --green-line: #1f6a50;
    --amber: #f3b64d; --amber-bg: #3d2c0b; --amber-line: #6d5117;
    --orange: #ff9a66; --orange-bg: #43220f; --orange-line: #7a3d1c;
    --red: #ff7a88; --red-bg: #45161e; --red-line: #7d2934;
    --violet: #b59bff; --violet-bg: #2b1f55; --violet-line: #4d3a92;
    --slate: #a3afc8; --slate-bg: #1f2a44; --slate-line: #35446a;
    --today: rgba(79, 134, 255, 0.12); --weekend: rgba(255, 255, 255, 0.025);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 4px 16px rgba(0, 0, 0, 0.25);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b1222; --surface: #111a2f; --surface-2: #0e1628; --line: #223053; --line-2: #1a2744;
  --ink: #e7ecf7; --ink-2: #c1cbe0; --muted: #8e9bb8; --faint: #62708f;
  --side: #080f20; --side-2: #0f1a33; --side-ink: #aeb9d4;
  --accent: #4f86ff; --accent-soft: #1a2a52; --accent-line: #2c4486;
  --blue: #7aa6ff; --blue-bg: #1b2d57; --blue-line: #2e4a8c;
  --green: #4fd3a0; --green-bg: #0f3a2c; --green-line: #1f6a50;
  --amber: #f3b64d; --amber-bg: #3d2c0b; --amber-line: #6d5117;
  --orange: #ff9a66; --orange-bg: #43220f; --orange-line: #7a3d1c;
  --red: #ff7a88; --red-bg: #45161e; --red-line: #7d2934;
  --violet: #b59bff; --violet-bg: #2b1f55; --violet-line: #4d3a92;
  --slate: #a3afc8; --slate-bg: #1f2a44; --slate-line: #35446a;
  --today: rgba(79, 134, 255, 0.12); --weekend: rgba(255, 255, 255, 0.025);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 4px 16px rgba(0, 0, 0, 0.25);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body { background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 14px; line-height: 1.6; margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
.ic { width: 18px; height: 18px; flex: none; }
[dir="rtl"] .flip { transform: scaleX(-1); }
.num, td.num, .tab-num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.nowrap { white-space: nowrap; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ---------- shell ---------- */
.app { display: flex; min-height: 100%; }
.side { width: 248px; flex: none; background: var(--side); color: var(--side-ink); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; z-index: 40; }
.brand { display: flex; align-items: center; gap: 12px; padding: 18px 18px 14px; color: #fff; }
.brand-mark { width: 40px; height: 40px; border-radius: 11px; background: linear-gradient(145deg, #d6a84f, #9a6b1f); display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 18px; }
/* BR-SETUP-009: the hotel's own logo keeps its proportions in the same 40px box */
.brand-logo { width: 40px; height: 40px; object-fit: contain; flex: none; border-radius: 8px; background: #fff; }
.logo-preview { min-width: 120px; height: 64px; display: grid; place-items: center; padding: 6px 10px; border: 1px dashed var(--line); border-radius: 10px; background: var(--surface-2, transparent); }
.logo-preview img { max-height: 52px; max-width: 200px; object-fit: contain; }
.brand b { display: block; font-size: 16px; line-height: 1.3; }
.brand small { color: var(--side-ink); font-size: 12px; }
.nav { flex: 1; overflow-y: auto; padding: 4px 10px 16px; scrollbar-width: thin; scrollbar-color: #2a3a66 transparent; }
.nav-g { margin-top: 10px; }
/* group headings sit on a slightly lighter band than their items, so sections read apart at a glance */
.nav-gh { display: flex; align-items: center; justify-content: space-between; width: 100%; background: rgba(255, 255, 255, .07); border: 0; border-radius: 8px; color: #aab6d6; font-size: 11.5px; font-weight: 700; letter-spacing: .02em; padding: 7px 10px; cursor: pointer; text-align: start; }
.nav-gh:hover { background: rgba(255, 255, 255, .11); color: #fff; }
.nav-g .nav-items { padding: 4px 0 2px; }
.nav-gh .ic { width: 14px; height: 14px; transition: transform .2s; }
.nav-g.closed .nav-gh .ic { transform: rotate(-90deg); }
[dir="rtl"] .nav-g.closed .nav-gh .ic { transform: rotate(90deg); }
.nav-g.closed .nav-items { display: none; }
.nav a { display: flex; align-items: center; gap: 11px; padding: 8px 12px; border-radius: 9px; color: var(--side-ink); text-decoration: none; font-size: 13.5px; }
.nav a:hover { background: var(--side-2); color: #fff; }
.nav a.on { background: var(--side-active); color: #fff; box-shadow: 0 6px 16px rgba(37, 99, 235, .35); }
.nav a .cnt { margin-inline-start: auto; background: rgba(255, 255, 255, .12); border-radius: 20px; padding: 0 8px; font-size: 11px; }
/* a coming module: listed but not opened yet */
.nav a.soon { opacity: .5; cursor: default; } .nav a.soon:hover { background: none; color: var(--side-ink); }
.side-foot { padding: 12px 18px; border-top: 1px solid rgba(255, 255, 255, .07); font-size: 12px; display: flex; justify-content: space-between; align-items: center; }
.side-foot .dot { width: 8px; height: 8px; border-radius: 50%; background: #34d399; display: inline-block; margin-inline-end: 6px; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; background: var(--surface); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 12px; padding: 10px 20px; }
.search { flex: 1; max-width: 520px; display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); background: var(--surface-2); border-radius: 10px; padding: 0 12px; color: var(--muted); text-align: start; position: relative; }
.search:focus-within { border-color: var(--accent-line); background: var(--surface); }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--ink); font: inherit; padding: 8px 0; outline: none; }
.search input::-webkit-search-cancel-button { display: none; }
.search .kbd { flex: none; }
.g-drop { position: absolute; top: calc(100% + 6px); inset-inline: 0; margin: 0; z-index: 60; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 6px; min-width: 320px; }
.kbd { border: 1px solid var(--line); border-radius: 6px; padding: 0 6px; font-size: 11px; color: var(--muted); background: var(--surface); direction: ltr; }
.top-actions { margin-inline-start: auto; display: flex; align-items: center; gap: 8px; }
/* a tablet in English: the search shrinks and drops its key hint so the top bar fits (found in the F&B acceptance check, scenario 19) */
@media (max-width: 900px) { .search { min-width: 0; } .search .kbd { display: none; } }
.icon-btn { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; cursor: pointer; color: var(--ink-2); position: relative; }
.icon-btn:hover { background: var(--surface-2); }
/* the menu button opens the side menu only where the menu is folded away (narrow screens) */
.icon-btn.menu-btn { display: none; }
.icon-btn .badge-dot { position: absolute; top: 7px; inset-inline-end: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--red); border: 2px solid var(--surface); }
.pill-btn { height: 38px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); padding: 0 12px; display: flex; align-items: center; gap: 6px; cursor: pointer; font-size: 13px; }
.clock { text-align: end; line-height: 1.25; padding-inline: 6px; }
.clock b { font-size: 15px; display: block; }
.clock small { color: var(--muted); font-size: 11.5px; }
.me { display: flex; align-items: center; gap: 10px; padding-inline-start: 10px; border-inline-start: 1px solid var(--line); }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-weight: 700; font-size: 13px; flex: none; }
.me b { display: block; font-size: 13px; line-height: 1.3; }
.me small { color: var(--muted); font-size: 11.5px; }
.view { padding: 20px; padding-block: 20px 40px; min-width: 0; }
/* BR-NA-007, BR-RES-032: the warnings under the top bar (due-outs before the audit, open arrivals waiting for a decision) */
.watch-slot { display: contents; }
.watch-btn.warn { color: var(--amber); background: var(--amber-bg); border-color: var(--amber-line); }
.watch-btn.err { color: var(--red); background: var(--red-bg); border-color: var(--red-line); }
.icon-btn .badge-n { position: absolute; top: -6px; inset-inline-end: -6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--red); color: #fff; font-size: 11px; font-weight: 700; line-height: 14px; text-align: center; border: 2px solid var(--surface); box-sizing: border-box; }
.watch-btn.warn .badge-n { background: var(--amber); }
.pop.watch-pop { width: min(420px, calc(100vw - 24px)); max-height: 70vh; overflow: auto; display: grid; gap: 8px; }
.pop.watch-pop a { color: inherit; font-weight: 600; }

/* ---------- page header ---------- */
.ph { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.crumbs { color: var(--muted); font-size: 12px; display: flex; gap: 6px; align-items: center; }
.ph h1 { font-size: 21px; margin: 2px 0 0; font-weight: 800; text-wrap: balance; }
.ph p { margin: 2px 0 0; color: var(--muted); font-size: 13px; max-width: 70ch; }
.ph-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- buttons, inputs ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 38px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; font-weight: 600; font-size: 13px; white-space: nowrap; text-decoration: none; }
.btn:hover { background: var(--surface-2); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); box-shadow: 0 6px 14px rgba(37, 99, 235, .25); }
.btn.primary:hover { filter: brightness(1.06); }
.btn.success { background: var(--green); border-color: var(--green); color: #fff; }
.btn.danger { background: var(--surface); color: var(--red); border-color: var(--red-line); }
.btn.danger.solid { background: var(--red); color: #fff; border-color: var(--red); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.sm { height: 30px; padding: 0 10px; font-size: 12px; border-radius: 8px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; box-shadow: none; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--surface); }
.seg button { border: 0; background: none; padding: 0 13px; height: 36px; cursor: pointer; font-size: 13px; color: var(--ink-2); }
.seg button + button { border-inline-start: 1px solid var(--line); }
.seg button.on { background: var(--accent); color: #fff; font-weight: 600; }
.inp, select.inp, textarea.inp { width: 100%; height: 38px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); padding: 0 11px; }
textarea.inp { height: auto; min-height: 80px; padding: 9px 11px; resize: vertical; }
.inp:focus { border-color: var(--accent); outline: 3px solid var(--accent-soft); }
.inp.err { border-color: var(--red); outline-color: var(--red-bg); }
.fld { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.fld > label { font-size: 12.5px; color: var(--ink-2); font-weight: 600; }
.fld > label .req { color: var(--red); }
.fld .hint { font-size: 11.5px; color: var(--muted); }
.fld .emsg { font-size: 11.5px; color: var(--red); }
.grid-form { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.grid-form .span2 { grid-column: span 2; }
.grid-form .span-all { grid-column: 1 / -1; }
.date-wrap { position: relative; }
.date-wrap .inp { padding-inline-end: 38px; }
.date-wrap .cal-btn { position: absolute; inset-inline-end: 4px; top: 4px; width: 30px; height: 30px; border: 0; background: none; color: var(--muted); cursor: pointer; border-radius: 7px; display: grid; place-items: center; }
.toggle { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; font-size: 13px; }
.toggle input { appearance: none; width: 36px; height: 20px; border-radius: 20px; background: var(--slate-line); position: relative; cursor: pointer; transition: background .2s; flex: none; }
.toggle input::after { content: ""; position: absolute; top: 2px; inset-inline-start: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: inset-inline-start .2s; }
.toggle input:checked { background: var(--accent); }
.toggle input:checked::after { inset-inline-start: 18px; }
/* multi-select as a list of checks, and a quantity list (minibar contents) */
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 4px 12px; border: 1px solid var(--line); border-radius: 9px; padding: 8px 11px; background: var(--surface); }
.checks label { display: flex; align-items: center; gap: 8px; font-size: 13px; cursor: pointer; padding: 3px 0; }
.checks label.off { color: var(--faint); cursor: not-allowed; }
.checks input { width: 16px; height: 16px; accent-color: var(--accent); }
.qtylist { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px 14px; border: 1px solid var(--line); border-radius: 9px; padding: 8px 11px; background: var(--surface); }
.qtylist label { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.qtylist label span { flex: 1; }
.qtylist input { width: 64px; height: 32px; text-align: center; }
.fld-heading { grid-column: 1 / -1; font-size: 12.5px; font-weight: 700; color: var(--muted); border-bottom: 1px solid var(--line-2); padding-bottom: 4px; margin-top: 6px; }
.fld-heading small { font-weight: 400; display: block; }

/* ---------- cards & KPI ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line-2); flex-wrap: wrap; }
.card-h h3 { margin: 0; font-size: 15px; font-weight: 700; }
.card-b { padding: 16px; }
.kpis { display: grid; grid-template-columns: repeat(7, minmax(150px, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpi { border-radius: var(--r); padding: 14px; display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); text-decoration: none; color: inherit; cursor: pointer; }
.kpi:hover { border-color: var(--accent-line); }
.kpi .kic { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.kpi .kic .ic { width: 22px; height: 22px; }
.kpi .kl { font-size: 12px; font-weight: 600; }
.kpi .kv { font-size: 24px; font-weight: 800; line-height: 1.2; font-variant-numeric: tabular-nums; }
.kpi .ks { font-size: 11.5px; color: var(--muted); }
.tone-blue .kic { background: var(--blue-bg); color: var(--blue); } .tone-blue .kl { color: var(--blue); }
.tone-green .kic { background: var(--green-bg); color: var(--green); } .tone-green .kl { color: var(--green); }
.tone-amber .kic { background: var(--amber-bg); color: var(--amber); } .tone-amber .kl { color: var(--amber); }
.tone-violet .kic { background: var(--violet-bg); color: var(--violet); } .tone-violet .kl { color: var(--violet); }
.tone-slate .kic { background: var(--slate-bg); color: var(--slate); } .tone-slate .kl { color: var(--slate); }
.tone-orange .kic { background: var(--orange-bg); color: var(--orange); } .tone-orange .kl { color: var(--orange); }
.tone-red .kic { background: var(--red-bg); color: var(--red); } .tone-red .kl { color: var(--red); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid-32 { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 16px; }
.grid-13 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.inp.sm, select.inp.sm { height: 32px; width: auto; min-width: 0; padding: 0 8px; font-size: 12.5px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.spacer { flex: 1; }

/* ---------- badges ---------- */
.b { display: inline-flex; align-items: center; gap: 5px; border-radius: 20px; padding: 1px 9px; font-size: 11.5px; font-weight: 600; border: 1px solid transparent; white-space: nowrap; line-height: 1.7; }
.b .ic { width: 13px; height: 13px; }
.b.blue { background: var(--blue-bg); color: var(--blue); } .b.green { background: var(--green-bg); color: var(--green); }
.b.amber { background: var(--amber-bg); color: var(--amber); } .b.orange { background: var(--orange-bg); color: var(--orange); }
.b.red { background: var(--red-bg); color: var(--red); } .b.violet { background: var(--violet-bg); color: var(--violet); }
.b.slate { background: var(--slate-bg); color: var(--slate); } .b.outline { background: none; border-color: var(--line); color: var(--ink-2); }
.chan { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 5px; font-size: 11px; font-weight: 800; color: #fff; flex: none; }
.chan.B { background: #003580; } .chan.S { background: #00b262; } .chan.J { background: #ff5a3c; } .chan.A { background: #f59e0b; } .chan.W { background: var(--accent); }

/* ---------- tables ---------- */
.tbl-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
.tbl th { text-align: start; font-weight: 600; color: var(--muted); font-size: 12px; padding: 10px 12px; border-bottom: 1px solid var(--line); background: var(--surface-2); white-space: nowrap; position: sticky; top: 0; }
.tbl th.sortable { cursor: pointer; }
.tbl td { padding: 10px 12px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.tbl tr.click { cursor: pointer; }
.tbl tr.click:hover td { background: var(--surface-2); }
.tbl td.num, .tbl th.num { text-align: end; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl tfoot td { font-weight: 700; background: var(--surface-2); border-top: 1px solid var(--line); }
.tbl .strong { font-weight: 700; }
.tbl-bar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 12px 16px; border-bottom: 1px solid var(--line-2); }
.tbl-bar .inp { width: auto; min-width: 150px; }
.tbl-bar .sbox { position: relative; flex: 1; min-width: 200px; max-width: 340px; }
.tbl-bar .sbox .inp { width: 100%; padding-inline-start: 34px; }
.tbl-bar .sbox .ic { position: absolute; inset-inline-start: 10px; top: 10px; color: var(--faint); }
.tbl-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 16px; color: var(--muted); font-size: 12.5px; flex-wrap: wrap; }
.empty { padding: 36px 16px; text-align: center; color: var(--muted); }
.empty .ic { width: 30px; height: 30px; color: var(--faint); display: block; margin: 0 auto 8px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line); background: var(--surface); border-radius: 20px; padding: 4px 12px; font-size: 12.5px; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.chip.on { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent); font-weight: 600; }
.chip .c { font-variant-numeric: tabular-nums; color: var(--muted); }
.menu-cell { position: relative; }

/* ---------- alerts ---------- */
.alert { display: flex; gap: 10px; align-items: flex-start; border-radius: 10px; padding: 10px 12px; font-size: 13px; border: 1px solid; }
.alert .ic { margin-top: 2px; }
.alert.warn { background: var(--amber-bg); border-color: var(--amber-line); color: var(--amber); }
.alert.err { background: var(--red-bg); border-color: var(--red-line); color: var(--red); }
.alert.info { background: var(--blue-bg); border-color: var(--blue-line); color: var(--blue); }
.alert.ok { background: var(--green-bg); border-color: var(--green-line); color: var(--green); }
.alert b { color: inherit; }
.alert .alert-body { color: var(--ink); }
.alert .alert-body b { color: inherit; }

/* ---------- rack ---------- */
.rack-tools { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.rack-shell { display: flex; gap: 12px; align-items: stretch; }
.rack-card { flex: 1; min-width: 0; padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.rack-scroll { overflow: auto; max-height: calc(100vh - 290px); min-height: 420px; position: relative; }
.rack { position: relative; min-width: max-content; }
.rk-row { display: flex; }
.rk-head { position: sticky; top: 0; z-index: 6; background: var(--surface); }
.rk-room, .rk-st { position: sticky; z-index: 4; background: var(--surface); border-bottom: 1px solid var(--line-2); display: flex; align-items: center; }
.rk-room { inset-inline-start: 0; width: 132px; padding-inline: 12px; gap: 8px; font-weight: 700; }
.rk-room small { font-weight: 400; color: var(--muted); font-size: 11px; }
.rk-st { inset-inline-start: 132px; width: 104px; padding-inline: 6px; border-inline-end: 1px solid var(--line); }
.rk-head .rk-room, .rk-head .rk-st { z-index: 7; color: var(--muted); font-size: 12px; font-weight: 600; border-bottom: 1px solid var(--line); }
.rk-days { display: flex; position: relative; }
.rk-day { flex: none; border-inline-end: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); position: relative; }
.rk-day.wk { background: var(--weekend); }
.rk-day.today { background: var(--today); }
.rk-head .rk-day { text-align: center; padding: 6px 2px; line-height: 1.25; border-bottom: 1px solid var(--line); }
.rk-head .rk-day .wd { font-size: 11.5px; color: var(--muted); }
.rk-head .rk-day .dn { font-size: 13px; font-weight: 700; }
.rk-head .rk-day.today .wd, .rk-head .rk-day.today .dn { color: var(--accent); }
.rk-head .rk-day .av { display: inline-block; margin-top: 3px; font-size: 11px; font-weight: 700; border-radius: 10px; padding: 0 7px; background: var(--green-bg); color: var(--green); }
.rk-head .rk-day .av.low { background: var(--amber-bg); color: var(--amber); }
.rk-head .rk-day .av.zero { background: var(--red-bg); color: var(--red); }
.rk-grp .rk-room, .rk-grp .rk-st { background: var(--surface-2); }
.rk-grp .rk-room { cursor: pointer; gap: 6px; width: 236px; font-size: 13px; }
.rk-grp .rk-st { display: none; }
.rk-grp .rk-day { background: var(--surface-2); text-align: center; font-size: 11.5px; color: var(--muted); display: flex; align-items: center; justify-content: center; font-variant-numeric: tabular-nums; }
.rk-grp .rk-day.zero { color: var(--red); font-weight: 700; }
.rk-grp .ic { width: 15px; height: 15px; transition: transform .2s; }
.rk-grp.closed .ic.chev { transform: rotate(-90deg); }
[dir="rtl"] .rk-grp.closed .ic.chev { transform: rotate(90deg); }
.rk-body .rk-day.drop-ok { background: var(--accent-soft); }
.rk-body .rk-day.drop-bad { background: var(--red-bg); }
.rk-body .rk-day { cursor: cell; }
.rk-unassigned .rk-room { color: var(--amber); }
.bar { position: absolute; top: 5px; height: calc(100% - 10px); border-radius: 8px; display: flex; align-items: center; gap: 6px; padding-inline: 8px; font-size: 12px; font-weight: 600; cursor: pointer; overflow: hidden; white-space: nowrap; z-index: 2; border: 1px solid; box-shadow: 0 1px 2px rgba(15, 26, 51, .06); }
.bar:hover { z-index: 3; filter: saturate(1.2) brightness(0.98); }
.bar .rn { font-weight: 400; opacity: .8; font-size: 11px; }
.bar .ic { width: 14px; height: 14px; }
.bar.confirmed { background: var(--blue-bg); color: var(--blue); border-color: var(--blue-line); }
.bar.checked_in { background: var(--green-bg); color: var(--green); border-color: var(--green-line); }
.bar.checked_out { background: var(--slate-bg); color: var(--slate); border-color: var(--slate-line); }
.bar.pending { background: repeating-linear-gradient(135deg, var(--amber-bg) 0 8px, var(--surface) 8px 12px); color: var(--amber); border: 1px dashed var(--amber); }
.bar.ooo { background: repeating-linear-gradient(135deg, var(--slate-bg) 0 6px, var(--surface-2) 6px 12px); color: var(--slate); border-color: var(--slate-line); cursor: default; }
.bar.cut-s { border-start-start-radius: 0; border-end-start-radius: 0; border-inline-start-width: 0; }
.bar.cut-e { border-start-end-radius: 0; border-end-end-radius: 0; border-inline-end-width: 0; }
.bar.sel { outline: 2px solid var(--accent); outline-offset: 1px; }
.bar .flag { margin-inline-start: auto; display: flex; gap: 4px; align-items: center; }
.bar.dragging { opacity: .45; }
.hk { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; border-radius: 6px; padding: 1px 7px; white-space: nowrap; }
.hk::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.hk.clean { color: var(--green); background: var(--green-bg); }
.hk.dirty { color: var(--orange); background: var(--orange-bg); }
.hk.cleaning { color: var(--amber); background: var(--amber-bg); }
.hk.inspect { color: var(--violet); background: var(--violet-bg); }
.hk.ooo { color: var(--slate); background: var(--slate-bg); }
.legend { display: flex; flex-wrap: wrap; gap: 14px; padding: 10px 14px; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-2); align-items: center; }
.legend .sw { width: 22px; height: 12px; border-radius: 4px; display: inline-block; border: 1px solid; vertical-align: middle; margin-inline-end: 6px; }
.legend .sep { width: 1px; height: 16px; background: var(--line); }
.rack-summary { display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 10px 14px; border-top: 1px solid var(--line-2); font-size: 12.5px; color: var(--muted); }
.rack-summary b { color: var(--ink); font-variant-numeric: tabular-nums; }

/* ---------- drawer, modal, toast, popovers ---------- */
.scrim { position: fixed; inset: 0; background: rgba(8, 14, 30, .45); z-index: 80; animation: fade .15s; }
.drawer { position: fixed; top: 0; bottom: 0; inset-inline-end: 0; width: min(580px, 100%); background: var(--surface); z-index: 90; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; animation: slideIn .2s ease-out; }
[dir="rtl"] .drawer { animation-name: slideInR; }
.drawer-h { padding: 16px 18px 12px; border-bottom: 1px solid var(--line-2); }
.drawer-b { flex: 1; overflow-y: auto; padding: 16px 18px; }
.drawer-f { padding: 12px 18px; border-top: 1px solid var(--line); display: flex; gap: 8px; flex-wrap: wrap; }
.x-btn { border: 0; background: none; color: var(--muted); cursor: pointer; width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; }
.x-btn:hover { background: var(--surface-2); }
.modal { position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; padding: 16px; pointer-events: none; }
.modal-box { pointer-events: auto; background: var(--surface); border-radius: 16px; box-shadow: var(--shadow-lg); width: min(560px, 100%); max-height: calc(100vh - 40px); display: flex; flex-direction: column; animation: pop .16s ease-out; }
.modal-box.lg { width: min(860px, 100%); }
.modal-box.xl { width: min(1080px, 100%); }
.modal-h { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--line-2); gap: 10px; }
.modal-h h3 { margin: 0; font-size: 16px; }
.modal-b { padding: 18px; overflow-y: auto; }
.modal-f { padding: 12px 18px; border-top: 1px solid var(--line); display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.toasts { position: fixed; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); inset-inline-start: 50%; transform: translateX(-50%); z-index: 120; display: flex; flex-direction: column; gap: 8px; align-items: center; }
[dir="rtl"] .toasts { transform: translateX(50%); }
.toast { background: var(--ink); color: var(--surface); padding: 10px 16px; border-radius: 10px; font-size: 13px; box-shadow: var(--shadow-lg); display: flex; gap: 9px; align-items: center; animation: pop .16s; max-width: 90vw; }
.toast.ok .ic { color: #4ade80; } .toast.err .ic { color: #fb7185; } .toast.warn .ic { color: #fbbf24; }
.pop { position: fixed; z-index: 130; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 10px; }
.cal { width: 264px; }
.cal-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; font-weight: 700; font-size: 13px; }
.cal-sel { border: 1px solid var(--line); border-radius: 7px; background: var(--surface); height: 28px; padding: 0 6px; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.cal-g { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.cal-g .wd { font-size: 11px; color: var(--muted); padding: 4px 0; }
.cal-g button { border: 0; background: none; height: 32px; border-radius: 8px; cursor: pointer; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.cal-g .wd.wk, .cal-g button.wk { color: var(--violet); }
.cal-g button.wk { background: var(--violet-bg); }
.cal-g button:hover { background: var(--surface-2); }
.cal-g button.today { color: var(--accent); font-weight: 800; }
.cal-g button.sel { background: var(--accent); color: #fff; }
.menu { min-width: 190px; padding: 6px; }
.menu button { display: flex; width: 100%; align-items: center; gap: 9px; border: 0; background: none; padding: 8px 10px; border-radius: 8px; cursor: pointer; text-align: start; font-size: 13px; }
.menu button:hover { background: var(--surface-2); }
.menu button.danger { color: var(--red); }
.menu hr { border: 0; border-top: 1px solid var(--line-2); margin: 4px 0; }
.cmd { width: min(620px, 100%); }
.cmd .inp { height: 46px; font-size: 15px; }
.cmd-list { max-height: 50vh; overflow-y: auto; margin-top: 8px; }
.cmd-item { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 9px; cursor: pointer; }
.cmd-item.on, .cmd-item:hover { background: var(--accent-soft); }
.cmd-item small { color: var(--muted); margin-inline-start: auto; }
.cmd-sec { font-size: 11px; color: var(--muted); padding: 8px 10px 4px; font-weight: 600; }

@keyframes fade { from { opacity: 0 } }
@keyframes pop { from { opacity: 0; transform: scale(.97) } }
@keyframes slideIn { from { transform: translateX(30px); opacity: 0 } }
@keyframes slideInR { from { transform: translateX(-30px); opacity: 0 } }

/* ---------- detail lists, tabs ---------- */
.dl { display: grid; grid-template-columns: minmax(96px, auto) 1fr; gap: 8px 14px; font-size: 13px; margin: 0; }
.dl dt { color: var(--muted); }
.dl dd { margin: 0; font-weight: 600; min-width: 0; }
/* scroll sideways only when the tabs really do not fit; never a vertical scrollbar (its arrows looked like reorder handles) */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 14px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { border: 0; background: none; padding: 9px 13px; cursor: pointer; font-size: 13px; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs button.on { color: var(--accent); border-bottom-color: var(--accent); font-weight: 700; }
.tabs .c { background: var(--surface-2); border-radius: 10px; padding: 0 6px; font-size: 11px; margin-inline-start: 4px; }
.sec-t { font-size: 12px; font-weight: 700; color: var(--muted); margin: 16px 0 8px; letter-spacing: .02em; }
.money-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 13px; border-bottom: 1px dashed var(--line-2); }
.money-row:last-child { border-bottom: 0; }
.money-row b { font-variant-numeric: tabular-nums; }
.money-row.total { font-size: 15px; font-weight: 800; border-top: 1px solid var(--line); border-bottom: 0; padding-top: 10px; }
.progress { height: 8px; background: var(--line-2); border-radius: 10px; overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--accent); border-radius: 10px; }
.progress.green i { background: var(--green); } .progress.amber i { background: var(--amber); } .progress.red i { background: var(--red); }
/* hotel choice: the hotel's logo in place of the building icon once it has loaded */
.hotel-ic img { display: none; } .hotel-ic.has-logo { background: var(--surface); border: 1px solid var(--line-2); overflow: hidden; }
.hotel-ic.has-logo img { display: block; width: 100%; height: 100%; object-fit: contain; } .hotel-ic.has-logo .ic { display: none; }
/* report charts: the hover box over a bar or point */
.rpt-chart .card-b { position: relative; }
.rpt-chart [data-tip] { cursor: pointer; } .rpt-chart rect[data-tip]:hover { opacity: .8; }
.chart-tip { position: absolute; z-index: 5; pointer-events: none; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow-lg); padding: 6px 12px; font-size: 13px; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
/* checklist run: compact summary and item tiles */
.cl-head { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.cl-head > span { display: inline-flex; align-items: center; gap: 6px; }
.cl-prog { flex: 1; min-width: 160px; } .cl-prog .progress { flex: 1; } .cl-prog b { color: var(--ink); }
.cl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px; }
.cl-item { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border: 1px solid var(--line-2); border-radius: 8px; font-size: 12.5px; line-height: 1.5; }
.cl-item .ic { flex: none; width: 15px; height: 15px; }
.cl-item.ok .ic { color: var(--green); } .cl-item.no { background: var(--red-bg); border-color: transparent; } .cl-item.no .ic { color: var(--red); }
.tbl.compact td { padding: 6px 10px; font-size: 12.5px; }
.list-item { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.list-item:last-child { border-bottom: 0; }
.list-item .grow { flex: 1; min-width: 0; }
.list-item .t { font-weight: 600; font-size: 13.5px; }
.list-item .s { color: var(--muted); font-size: 12px; }
.pill-num { font-variant-numeric: tabular-nums; font-weight: 800; }

/* ---------- room tiles, housekeeping board ---------- */
.floor { margin-bottom: 18px; }
.floor h4 { margin: 0 0 8px; font-size: 13px; color: var(--muted); display: flex; gap: 8px; align-items: center; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.tile { border: 1px solid var(--line); border-radius: 10px; padding: 9px 10px; background: var(--surface); cursor: pointer; display: flex; flex-direction: column; gap: 4px; border-inline-start: 4px solid var(--slate-line); text-align: start; }
.tile:hover { box-shadow: var(--shadow); }
.tile .no { font-weight: 800; font-size: 15px; display: flex; justify-content: space-between; align-items: center; }
.tile .ty { font-size: 11.5px; color: var(--muted); }
.tile.occ { border-inline-start-color: var(--green); }
.tile.vac { border-inline-start-color: var(--blue); }
.tile.oos { border-inline-start-color: var(--slate); background: repeating-linear-gradient(135deg, var(--surface) 0 8px, var(--surface-2) 8px 14px); }
.board { display: grid; grid-template-columns: repeat(4, minmax(220px, 1fr)); gap: 12px; overflow-x: auto; }
.col { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r); padding: 10px; min-height: 200px; }
.col h4 { margin: 2px 4px 10px; font-size: 13px; display: flex; justify-content: space-between; }
.task { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 9px 10px; margin-bottom: 8px; font-size: 12.5px; }
.task .tt { display: flex; justify-content: space-between; font-weight: 700; font-size: 14px; }

/* ---------- rate calendar ---------- */
.rc td, .rc th { text-align: center; padding: 6px 4px; min-width: 64px; }
.rc td:first-child, .rc th:first-child { text-align: start; position: sticky; inset-inline-start: 0; background: var(--surface); z-index: 1; min-width: 130px; padding-inline: 12px; }
.rc .cell { border-radius: 8px; padding: 5px 2px; cursor: pointer; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; border: 1px solid transparent; }
.rc .cell:hover { border-color: var(--accent-line); }
.rc .cell.wk { background: var(--violet-bg); color: var(--violet); }
.rc .cell.stop { background: var(--red-bg); color: var(--red); text-decoration: line-through; }
.rc .cell.none { background: repeating-linear-gradient(135deg, var(--red-bg) 0 5px, var(--surface) 5px 10px); color: var(--red); }
.rc .cell small { display: block; font-weight: 500; font-size: 10.5px; opacity: .85; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 150px; padding-top: 10px; }
.bars .bcol { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; height: 100%; justify-content: flex-end; }
.bars .bv { width: 100%; max-width: 26px; background: var(--accent); border-radius: 5px 5px 2px 2px; opacity: .9; }
.bars .bv.wk { background: var(--violet); }
.bars .bl { font-size: 10.5px; color: var(--muted); white-space: nowrap; }
.bars .bn { font-size: 10.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.perm td { text-align: center; }
.perm td:first-child { text-align: start; }
.perm input { width: 16px; height: 16px; accent-color: var(--accent); }
.steps { display: flex; flex-direction: column; gap: 10px; }
.step { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border: 1px solid var(--line); border-radius: 10px; }
.step .dot { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--muted); flex: none; font-weight: 700; font-size: 12px; }
.step.done .dot { background: var(--green-bg); color: var(--green); }
.step.run .dot { background: var(--accent-soft); color: var(--accent); }
.step.warn .dot { background: var(--amber-bg); color: var(--amber); }
.step.info .dot { background: var(--blue-bg); color: var(--blue); }
.upl { border: 1.5px dashed var(--line); border-radius: 10px; padding: 14px; text-align: center; color: var(--muted); font-size: 12px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.upl:hover { border-color: var(--accent); color: var(--accent); }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.stepper button { border: 0; background: var(--surface-2); width: 32px; height: 32px; cursor: pointer; font-size: 16px; }
.stepper span { min-width: 36px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }

/* ---------- responsive ---------- */
@media (max-width: 1400px) { .kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 1100px) {
  .grid-32, .grid-3, .grid-13 { grid-template-columns: 1fr; } .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .side { position: fixed; inset-inline-start: 0; transform: translateX(-100%); transition: transform .2s; box-shadow: var(--shadow-lg); }
  [dir="rtl"] .side { transform: translateX(100%); }
  .side.open { transform: none !important; }
  .icon-btn.menu-btn { display: grid; }
  .clock { display: none; }
}
@media (max-width: 760px) {
  .grid-2 { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .top { padding: 8px 12px; gap: 8px; }
  .search .kbd { display: none; }
  .search { flex: 1; min-width: 0; }
  .me div, .hide-sm { display: none; }
  .view { padding: 14px 16px; padding-block: 14px 32px; }
  .rk-room { width: 84px; padding-inline: 8px; }
  .rk-st { inset-inline-start: 84px; width: 30px; padding-inline: 4px; }
  .rk-st .hk { font-size: 0; padding: 4px; }
  .rk-grp .rk-room { width: 114px; }
  .grid-form .span2 { grid-column: auto; }
  .board { grid-template-columns: repeat(4, 240px); }
  .rack-scroll { max-height: none; }
}
/* drag-to-book preview on the rack */
.bar.pick { background: var(--accent-soft); color: var(--accent); border: 1.5px dashed var(--accent); justify-content: center; pointer-events: none; z-index: 4; }
.rk-body .rk-days { user-select: none; }
/* password show/hide */
.pw-wrap { position: relative; }
.pw-wrap .inp { padding-right: 40px; }
.pw-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 8px; background: none; color: var(--muted); cursor: pointer; }
.pw-eye:hover, .pw-eye[aria-pressed="true"] { color: var(--accent); background: var(--accent-soft); }
.pw-eye .ic { width: 18px; height: 18px; }

/* ---------- info icon: page and field guidance moved out of the way (shown on hover or focus) ---------- */
.info-i { display: inline-grid; place-items: center; width: 22px; height: 22px; border: 0; border-radius: 50%; background: none; color: var(--faint); cursor: help; vertical-align: middle; padding: 0; flex: none; }
.info-i:hover, .info-i:focus-visible { color: var(--accent); background: var(--accent-soft); }
.info-i .ic { width: 17px; height: 17px; }
.ph h1 .info-i { margin-inline-start: 6px; }
.pop.tip { max-width: min(360px, calc(100vw - 24px)); font-size: 12.5px; line-height: 1.8; color: var(--ink-2); padding: 10px 12px; pointer-events: none; white-space: pre-line; }
/* a number in a right-to-left list keeps its own direction but lines up with the other values */
.ltr-num { direction: ltr; unicode-bidi: isolate; display: inline-block; }

/* ---------- rack hover card ---------- */
.pop.rk-card { width: 260px; padding: 12px 14px; pointer-events: none; border-radius: 14px; }
.rk-card .rc-row { display: flex; align-items: center; gap: 9px; font-size: 12.5px; color: var(--ink-2); padding: 3px 0; }
.rk-card .rc-row .ic { color: var(--faint); width: 16px; height: 16px; }
.rk-card .rc-name { font-size: 15px; font-weight: 800; color: var(--ink); }
.rk-card .rc-row .ltr-num { font-variant-numeric: tabular-nums; }
.rk-card .rc-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.rk-card .rc-badges .b { font-size: 12px; padding: 3px 10px; }
.rk-card::after { content: ""; position: absolute; left: var(--arrow, 50%); width: 12px; height: 12px; background: var(--surface); border: 1px solid var(--line); transform: translateX(-50%) rotate(45deg); }
.rk-card.up::after { bottom: -7px; border-top: 0; border-left: 0; }
.rk-card.down::after { top: -7px; border-bottom: 0; border-right: 0; }
.rack-go { display: inline-flex; align-items: center; gap: 6px; }
.rack-go .date-wrap { width: 150px; }

/* ---------- top bar: business date vs calendar date ---------- */
.clock .bd-late { color: var(--amber); font-weight: 700; }
.audit-late { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; }
.audit-late .btn { margin-inline-start: auto; }

/* ---------- housekeeping: the board gets the room, the workload list stays narrow ---------- */
.hk-layout { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 16px; align-items: start; }
.hk-layout .board { grid-template-columns: repeat(4, minmax(180px, 1fr)); }
@media (max-width: 1100px) { .hk-layout { grid-template-columns: 1fr; } }

/* ---------- sign-in (owner's design of 2026-10-18, second version): photo panel on the left, form on the right ---------- */
.login { --rx-ink: #23163a; --rx-amber: #eb9a3c; --rx-plum: #2b1846; min-height: 100vh; display: grid; grid-template-columns: minmax(400px, 1fr) minmax(0, 1.45fr); background: #fbf8f3; color: var(--rx-ink); }
/* the text sits over the left part of the photo, which the plum veil darkens; the window and the bed stay bright */
.login-art { position: relative; overflow: hidden; color: #fff; padding: 64px 0 64px 7%;
  background: linear-gradient(90deg, rgba(43, 24, 70, .97) 0%, rgba(43, 24, 70, .9) 27%, rgba(43, 24, 70, .55) 43%, rgba(43, 24, 70, .12) 60%, rgba(43, 24, 70, 0) 74%),
    linear-gradient(0deg, rgba(43, 24, 70, .35), rgba(43, 24, 70, 0) 30%), url("img/login-room.webp") 55% 60% / cover no-repeat, var(--rx-plum); }
/* laid out left to right on purpose (logo and icons on the left edge, Persian text right-aligned inside), as in the design */
.login-art .art-inner { width: min(400px, 46%); min-height: 100%; margin-right: auto; display: flex; flex-direction: column; justify-content: space-between; direction: ltr; }
.login-art .art-logo { width: 210px; max-width: 100%; height: auto; display: block; }
.login-art .art-body { margin: 40px 0; }
.login-art h2 { font-size: clamp(28px, 2.3vw, 38px); line-height: 1.55; margin: 0; font-weight: 800; text-shadow: 0 2px 22px rgba(0, 0, 0, .3); }
.login-art h2 em { font-style: normal; color: var(--rx-amber); }
.login-art .sub { margin-top: 10px; font-size: 14.5px; color: rgba(255, 255, 255, .8); letter-spacing: .01em; direction: ltr; text-align: left; }
.login-art .feats { list-style: none; margin: 40px 0 0; padding: 0; display: flex; flex-direction: column; gap: 22px; }
.login-art .feats li { display: flex; align-items: center; gap: 22px; }
.login-art .feats .fi { width: 60px; height: 60px; border-radius: 50%; flex: none; display: grid; place-items: center; background: rgba(255, 255, 255, .12); backdrop-filter: blur(6px); }
.login-art .feats .fi .ic { width: 24px; height: 24px; stroke-width: 1.7; }
.login-art .feats b { display: block; font-size: 16px; font-weight: 700; }
.login-art .feats small { display: block; font-size: 12.5px; color: rgba(255, 255, 255, .72); margin-top: 3px; }
[dir="rtl"] .login-art h2, [dir="rtl"] .login-art .feats .ft { direction: rtl; text-align: right; }
[dir="rtl"] .login-art .feats .ft { flex: 1; }

.login-side { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 24px 72px; overflow: hidden;
  background: radial-gradient(ellipse 60% 40% at 92% 6%, rgba(239, 226, 205, .7), transparent 70%), radial-gradient(ellipse 50% 35% at 4% 96%, rgba(240, 229, 212, .75), transparent 70%), #fbf8f3; }
.login-side .wrap { width: min(430px, 100%); text-align: center; }
.login-side .logo { width: 250px; max-width: 70%; height: auto; display: block; margin: 0 auto 30px; }
.login-side h1 { font-size: 24px; font-weight: 800; margin: 0; }
.login-side .welcome { color: #6f6681; font-size: 13.5px; margin: 8px 0 28px; }
.login-card { background: #fff; border-radius: 20px; box-shadow: 0 18px 50px rgba(43, 24, 70, .08), 0 1px 2px rgba(43, 24, 70, .05); padding: 30px 30px 26px; text-align: start; }
.login-card .lf { position: relative; margin-bottom: 16px; }
.login-card .lf > .ic { position: absolute; inset-inline-start: 16px; top: 50%; transform: translateY(-50%); color: #8b839b; pointer-events: none; z-index: 1; }
.login-card .lf .inp { height: 52px; border-radius: 12px; background: #f5f3f8; border: 1px solid #efecf4; padding-inline: 48px; font-size: 14.5px; color: var(--rx-ink); }
.login-card .lf .inp:focus { background: #fff; border-color: #e3c49c; outline: 3px solid rgba(235, 154, 60, .18); }
[dir="rtl"] .login-card .pw-eye { right: auto; left: 8px; }
.login-card .pw-eye:hover, .login-card .pw-eye[aria-pressed="true"] { color: var(--rx-amber); background: rgba(235, 154, 60, .12); }
.login-card .remember { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; color: #554b66; cursor: pointer; margin: 2px 0 18px; }
.login-card .remember input { width: 20px; height: 20px; accent-color: var(--rx-amber); margin: 0; cursor: pointer; }
.login-card .lerr { color: #c62a3a; font-size: 12.5px; min-height: 18px; margin-bottom: 4px; }
.login-card .lerr:empty { min-height: 0; }
.login-card .go { width: 100%; height: 52px; border-radius: 12px; border: 0; background: var(--rx-amber); color: #fff; font-weight: 800; font-size: 15px; display: flex; align-items: center; justify-content: center; gap: 10px; cursor: pointer; box-shadow: 0 12px 24px rgba(235, 154, 60, .32); }
.login-card .go:hover { filter: brightness(1.04); }
.login-card .go[disabled] { opacity: .65; cursor: progress; }
.login-card .or { display: flex; align-items: center; gap: 14px; color: #8b839b; font-size: 12.5px; margin: 22px 0 18px; }
.login-card .or::before, .login-card .or::after { content: ""; flex: 1; height: 1px; background: #ece8f2; }
.login-card .lang-btn { display: flex; align-items: center; gap: 10px; margin: 0 auto; height: 48px; padding: 0 18px; border: 1px solid #e7e2ee; border-radius: 12px; background: #fff; color: var(--rx-ink); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.login-card .lang-btn:hover { border-color: #d9d1e4; background: #fcfbfd; }
.login-card .lang-btn .ic { color: #6f6681; }
.login-side .copy { position: absolute; bottom: 24px; inset-inline: 0; text-align: center; color: #9a92a8; font-size: 12px; }
@media (max-width: 900px) {
  .login { grid-template-columns: 1fr; }
  .login-art { display: none; }
  .login-side { min-height: 100vh; padding: 32px 16px 72px; }
}
/* BR-MSG-004: one SMS event per block on the settings page */
.sms-ev { display: grid; gap: 6px; padding: 10px 0; border-top: 1px solid var(--line-2); }
.sms-ev:first-of-type { border-top: 0; }
/* BR-GST-006: a small preview of an identity document */
.doc-thumb { width: 40px; height: 40px; flex: none; border-radius: 8px; border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; color: var(--muted); }
.doc-thumb img { width: 100%; height: 100%; object-fit: cover; }
/* ADR-010 stage 2, BR-FNB-018…021: the menu — an item's picture, and the option groups editor of the item form */
.menu-thumb { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; border: 1px solid var(--line); background: var(--surface-2); display: block; }
.menu-thumb.none { display: grid; place-items: center; color: var(--faint); }
.menu-prev { height: 96px; min-width: 128px; }
.menu-prev img { max-height: 84px; max-width: 220px; object-fit: contain; }
.ic.flip-v { transform: rotate(180deg); }
.opt-group { display: flex; flex-direction: column; gap: 8px; border: 1px solid var(--line); border-radius: 10px; padding: 10px; background: var(--surface-2); }
.opt-head { display: grid; grid-template-columns: minmax(0, 1fr) 140px auto auto; gap: 8px; align-items: center; }
.opt-row { display: grid; grid-template-columns: minmax(0, 1fr) 150px auto; gap: 8px; align-items: center; }
@media (max-width: 640px) { .opt-head { grid-template-columns: 1fr 1fr; } .opt-head .inp:first-child { grid-column: 1 / -1; } }

/* ADR-010 stage 3, BR-FNB-029…053: the floor, the order screen (tablet first: targets of at least 44 px), the bookings and the board */
.fnb-touch { min-height: 44px; }
.btn.fnb-touch { height: 44px; font-size: 14px; padding: 0 18px; }
.fnb-stepper { display: inline-flex; align-items: center; gap: 4px; }
.fnb-stepper .btn { width: 44px; height: 44px; padding: 0; font-size: 20px; line-height: 1; border-radius: 10px; }
.fnb-stepper output { min-width: 34px; text-align: center; font-weight: 700; font-size: 16px; font-variant-numeric: tabular-nums; }
.fnb-stepper.sm .btn { width: 36px; height: 36px; font-size: 18px; }
.chip.fnb-touch { min-height: 44px; padding: 0 16px; font-size: 14px; }
.fnb-legend { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.fnb-legend .b { font-size: 12px; padding: 4px 10px; }
.fnb-zone { margin-bottom: 20px; }
.fnb-zone > h3 { font-size: 13px; color: var(--muted); font-weight: 700; margin: 0 0 8px; }
.fnb-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 10px; }
.fnb-tile { position: relative; display: flex; flex-direction: column; gap: 5px; min-height: 112px; padding: 10px 12px; text-align: start; border-radius: 12px; border: 1px solid var(--line); border-inline-start: 6px solid var(--slate); background: var(--surface); color: var(--ink); cursor: pointer; font: inherit; }
.fnb-tile:hover { box-shadow: var(--shadow); }
.fnb-tile:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.fnb-tile .fnb-tile-code { font-size: 20px; font-weight: 800; }
.fnb-tile .fnb-tile-sub { font-size: 12.5px; font-variant-numeric: tabular-nums; }
.fnb-tile.free { background: var(--green-bg); border-color: var(--green-line); border-inline-start-color: var(--green); }
.fnb-tile.booked { background: var(--blue-bg); border-color: var(--blue-line); border-inline-start-color: var(--blue); }
.fnb-tile.occupied { background: var(--amber-bg); border-color: var(--amber-line); border-inline-start-color: var(--amber); }
.fnb-tile.serving { background: var(--orange-bg); border-color: var(--orange-line); border-inline-start-color: var(--orange); }
.fnb-tile.awaiting_payment { background: var(--violet-bg); border-color: var(--violet-line); border-inline-start-color: var(--violet); }
.fnb-tile.out_of_service { background: var(--slate-bg); border-color: var(--slate-line); border-inline-start-color: var(--red); opacity: .8; }
.fnb-tile.cleaning { background: var(--slate-bg); border-color: var(--slate-line); border-style: dashed; border-inline-start-color: var(--slate); }
.fnb-ord { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(330px, 1fr); gap: 14px; align-items: start; }
.fnb-ord-side { position: sticky; top: 8px; }
.fnb-ord .fnb-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.fnb-item { display: flex; flex-direction: column; justify-content: space-between; gap: 6px; min-height: 84px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-align: start; cursor: pointer; font: inherit; }
.fnb-item:hover { border-color: var(--accent-line); background: var(--accent-soft); }
.fnb-item .nm { font-weight: 700; font-size: 14px; }
.fnb-item .pr { color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.fnb-item.off { opacity: .5; cursor: not-allowed; background: var(--surface-2); }
.fnb-item .menu-thumb { width: 100%; height: 56px; }
.fnb-groups { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 8px; }
.fnb-groups .chip { flex: none; }
.fnb-ln { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 6px 8px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line-2); min-height: 56px; }
.fnb-ln > :first-child { grid-column: 1 / -1; }
.fnb-ln > .amt { grid-column: 3; justify-self: end; display: inline-flex; align-items: center; gap: 4px; }
.fnb-ln:last-child { border-bottom: 0; }
.fnb-ln .fnb-ln-sub { font-size: 12px; color: var(--muted); }
.fnb-ln .fnb-ln-note { color: var(--ink-2); font-style: italic; cursor: pointer; }
.fnb-ln.cancelled { opacity: .55; }
.fnb-ln.cancelled .fnb-ln-name { text-decoration: line-through; }
.fnb-ln .amt { min-width: 84px; text-align: end; font-weight: 700; font-variant-numeric: tabular-nums; }
.fnb-ord-total { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; margin: 0; padding: 12px 0 0; font-size: 13px; }
.fnb-ord-total dd { margin: 0; text-align: end; font-variant-numeric: tabular-nums; }
.fnb-ord-total .grand { font-size: 17px; font-weight: 800; color: var(--ink); }
.fnb-ord-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.fnb-ord-actions .wide { grid-column: 1 / -1; }
/* a long caption (an invoice number, say) wraps inside its cell instead of pushing the page sideways */
.fnb-ord-actions > .btn { min-width: 0; height: auto; min-height: 44px; padding-block: 6px; white-space: normal; line-height: 1.35; text-align: center; }
.fnb-opt-pick { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.fnb-opt-pick label.fnb-opt { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.fnb-opt-pick label.fnb-opt:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.fnb-stay-list { display: flex; flex-direction: column; gap: 6px; max-height: 240px; overflow-y: auto; margin-top: 8px; }
.fnb-stay-row { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); text-align: start; cursor: pointer; font: inherit; color: var(--ink); }
.fnb-stay-row.on { border-color: var(--accent); background: var(--accent-soft); }
.fnb-board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: start; }
.fnb-board-col > h3 { display: flex; justify-content: space-between; align-items: center; margin: 0 0 8px; font-size: 14px; }
.fnb-board-card { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); padding: 12px; margin-bottom: 10px; display: flex; flex-direction: column; gap: 6px; }
.fnb-board-card.late { border-color: var(--red-line); background: var(--red-bg); }
.fnb-board-card ul { margin: 0; padding-inline-start: 18px; font-size: 13px; }
.fnb-board-card li.new { color: var(--muted); }
.fnb-board-card li.gone { text-decoration: line-through; color: var(--faint); }
.fnb-bk-time { font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fnb-search { position: relative; }
.fnb-search .inp { width: 100%; padding-inline-start: 38px; }
.fnb-search .ic { position: absolute; inset-inline-start: 12px; top: 50%; transform: translateY(-50%); color: var(--faint); }
@media (max-width: 760px) { .fnb-ord { grid-template-columns: 1fr; } .fnb-ord-side { position: static; } }
@media (max-width: 900px) { .fnb-board { grid-template-columns: 1fr; } }
