/* =========================================================================
   Inn-ovative — front desk console
   Design tokens
   ========================================================================= */
:root {
  --ink: #1F2A28;
  --ink-soft: #4A5754;
  --bg: #EEF0EA;
  --surface: #FFFFFF;
  --surface-sunken: #E4E8DF;
  --border: #D3D8CC;
  --brass: #B8863E;
  --brass-dark: #8F6A2E;   /* primary button fill: white text 4.9:1 */
  --brass-deep: #74551F;   /* primary button hover: white text 6.9:1 */
  --link: #7E5D27;         /* links: 5.3:1 on --bg, 6.0:1 on white (AA) */
  --moss: #4F7A5B;
  --amber: #C79A4B;
  --rust: #A94A3D;

  --status-ready: #4F7A5B;
  --status-cleaning: #C79A4B;
  --status-maintenance: #A94A3D;
  --status-occupied: #1F2A28;
  --status-pending-inspection: #5B7FA6;

  /* Cairo after the Latin faces: Arabic text (a hotel or guest name) in English mode uses it too (U13). */
  --font-display: 'Newsreader', 'Cairo', 'Georgia', serif;
  --font-body: 'IBM Plex Sans', 'Cairo', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;

  --radius-s: 6px;
  --radius-m: 10px;
  --radius-l: 16px;
  --shadow-card: 0 1px 2px rgba(31, 42, 40, 0.06), 0 6px 16px rgba(31, 42, 40, 0.06);
}
/* Arabic: labels and text only, the layout stays LTR (client instruction). Fraunces and
   Plex have no Arabic glyphs, so Arabic pages switch both families to Cairo. */
html[lang="ar"] {
  --font-display: 'Cairo', 'Newsreader', 'Georgia', serif;
  --font-body: 'Cairo', 'IBM Plex Sans', system-ui, sans-serif;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* =========================================================================
   Reset & base
   ========================================================================= */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  caret-color: var(--brass-dark);
}
::selection { background: rgba(184, 134, 62, 0.28); color: var(--ink); }
td, .stat-value, .key-tag-details dd { font-variant-numeric: tabular-nums; }
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 0.3em;
}
h1 { font-size: 2rem; letter-spacing: -0.01em; }
h2 { font-size: 1.4rem; }
p { margin: 0 0 0.75em; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 0.18em; }

/* --brass-dark: 3:1 or better against the page, white cards and the sunken fill */
:focus-visible {
  outline: 2px solid var(--brass-dark);
  outline-offset: 2px;
}
.topbar :focus-visible { outline-color: var(--brass); }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 0.35em;
}

/* =========================================================================
   Top bar / navigation
   ========================================================================= */
.topbar {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: var(--ink);
  color: #fff;
  padding: 0.75rem 1.5rem;
  position: relative;
}
.brand {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.01em;
  margin-right: auto;
  padding: 0.45rem 0;       /* 44px tap height without changing the bar */
  margin-block: -0.45rem;
}
.brand span { color: var(--brass); }
.brand:hover { text-decoration: none; opacity: 0.9; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: #fff;
  border-radius: 1px;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.primary-nav > a {
  color: #F1EEE4;
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.4rem 0.1rem;
  border-bottom: 2px solid transparent;
}
.primary-nav > a:hover {
  color: #fff;
  text-decoration: none;
  border-bottom-color: var(--brass);
}

.nav-dropdown { position: relative; }
.nav-dropdown-toggle {
  background: none;
  border: none;
  color: #F1EEE4;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
  padding: 0.4rem 0.1rem;
}
.nav-dropdown-toggle:hover { color: #fff; }
.nav-dropdown-toggle::after {
  content: "";
  display: inline-block;
  width: 0.36em;
  height: 0.36em;
  margin-inline-start: 0.45em;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-0.2em) rotate(45deg);
}
.nav-dropdown.open .nav-dropdown-toggle::after { transform: translateY(0.05em) rotate(-135deg); }
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 0.6rem);
  left: 0;
  min-width: 180px;
  background: var(--surface);
  color: var(--ink);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-card);
  padding: 0.4rem;
  z-index: 20;
}
.nav-dropdown.open .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a, .nav-dropdown-menu span {
  display: block;
  padding: 0.5rem 0.7rem;
  border-radius: var(--radius-s);
  font-size: 0.9rem;
  color: var(--ink);
}
.nav-dropdown-menu a:hover { background: var(--surface-sunken); text-decoration: none; }
.nav-dropdown-menu hr { border: none; border-top: 1px solid var(--border); margin: 0.3rem 0; }

.search {
  display: flex;
  gap: 0.4rem;
}
.search input {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-s);
  padding: 0.4rem 0.7rem;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.88rem;
  width: 180px;
}
.search input::placeholder { color: rgba(255,255,255,0.55); }
.search input:focus { outline: 2px solid var(--brass); background: rgba(255,255,255,0.16); }
.search button {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-s);
  padding: 0.4rem 0.7rem;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.88rem;
  cursor: pointer;
}
.search button:hover { background: rgba(255,255,255,0.2); }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .primary-nav, .search { display: none; }
  .topbar { flex-wrap: wrap; }
  .primary-nav.open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    order: 3;
    gap: 0.5rem;
    padding-top: 0.75rem;
  }
  .primary-nav.open > a, .primary-nav.open .nav-dropdown-toggle { min-height: 2.75rem; display: inline-flex; align-items: center; }
  .nav-dropdown-menu { position: static; box-shadow: none; margin-top: 0.25rem; }
}

/* =========================================================================
   Page shell
   ========================================================================= */
.page {
  max-width: 1080px;
  margin: 0 auto;
  padding: 2.25rem 1.5rem 4rem;
}

.dash-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

/* =========================================================================
   Buttons
   ========================================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius-s);
  border: 1px solid transparent;
  cursor: pointer;
  background: var(--surface);
  color: var(--ink);
}
.btn:hover { text-decoration: none; }
.btn-brass { background: var(--brass-dark); color: #fff; }
.btn-brass:hover { background: var(--brass-deep); }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--ink); }
.btn-ghost:hover { background: var(--surface-sunken); }
.btn-block { width: 100%; justify-content: center; }

/* =========================================================================
   Messages / alerts
   ========================================================================= */
.messages { list-style: none; padding: 0; margin: 0 0 1.25rem; }
.messages li {
  padding: 0.65rem 1rem;
  border-radius: var(--radius-s);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  border: 1px solid #EBC5BE;
  background: #FBEDEA;
  color: #7A3327;
}
.messages li.success { border-color: #C3DBC8; background: #EBF3EC; color: #35573F; }

/* =========================================================================
   Forms
   ========================================================================= */
.form-card {
  background: var(--surface);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-card);
  padding: 2rem;
  max-width: 460px;
}
.form-card h1 { margin-bottom: 0.25rem; }
.form-card .subtitle { color: var(--ink-soft); margin-bottom: 1.5rem; font-size: 0.92rem; }

.field { margin-bottom: 1.1rem; }
.field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 0.3rem;
}
.field input, .field select {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.62rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-s);
  background: var(--surface);
  color: var(--ink);
}
.field input[type="checkbox"], .field input[type="radio"], .aTable input[type="checkbox"] {
  width: 1.15rem;
  height: 1.15rem;
  padding: 0;
  margin: 0;
  flex: none;
  accent-color: var(--brass-dark);
}
.field label:has(> input[type="checkbox"]), .field label:has(> input[type="radio"]) {
  display: flex;
  align-items: center;
  min-height: 2.25rem;
  gap: 0.6rem;
  color: var(--ink);
  font-weight: 500;
}
.field input:focus, .field select:focus {
  outline: none;
  border-color: var(--brass-dark);
  box-shadow: 0 0 0 3px rgba(184, 134, 62, 0.15);
}
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.4rem;
}
.form-footnote {
  margin-top: 1.25rem;
  font-size: 0.87rem;
  color: var(--ink-soft);
  text-align: center;
}

/* Auth pages (login/register) */
.auth-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  padding: 1.5rem;
}
.auth-brand {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: #fff;
  text-align: center;
  margin-bottom: 1.25rem;
}

/* =========================================================================
   Dashboard — hotel grid
   ========================================================================= */
.hotel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 2.25rem;
}
.hotel-card { margin: 0; }
.hotel-card button {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.3rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  padding: 1.2rem 1.3rem;
  cursor: pointer;
  box-shadow: var(--shadow-card);
  text-align: left;
  transition: transform 0.12s ease, border-color 0.12s ease;
}
.hotel-card button:hover { transform: translateY(-2px); border-color: var(--brass); }
.hotel-card-name { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; }
.hotel-card-meta { font-size: 0.82rem; color: var(--ink-soft); }

.quick-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.action-card {
  background: var(--surface-sunken);
  border: 1px dashed var(--border);
  border-radius: var(--radius-m);
  padding: 0.85rem 1.2rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink);
}
.action-card:hover { border-color: var(--brass); text-decoration: none; background: #E9EDE1; }

.filter-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}
.filter-row label { font-size: 0.85rem; font-weight: 600; color: var(--ink-soft); }
.filter-row select {
  font-family: var(--font-body);
  font-size: 0.88rem;
  padding: 0.4rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-s);
  background: var(--surface);
  color: var(--ink);
}

/* =========================================================================
   Key rack — room cards (signature element)
   ========================================================================= */
.key-rack {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 1.5rem 1.25rem;
}
/* Room status reads at a glance from the tinted head of the tag (the pill below names it). */
.key-tag {
  --tag-tint: #E1EEE4;
  --tag-edge: var(--status-ready);
  position: relative;
  background: var(--surface);
  border-radius: var(--radius-m);
  padding: 0 1.1rem 1.1rem;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.key-tag.status-need-cleaning { --tag-tint: #FCE9D6; --tag-edge: var(--status-cleaning); }
.key-tag.status-maintenance { --tag-tint: #F6DFDA; --tag-edge: var(--status-maintenance); }
.key-tag.status-cleaned-pending-inspection { --tag-tint: #DAEBF0; --tag-edge: var(--status-pending-inspection); }
.key-tag-hole {
  position: absolute;
  top: 0.6rem;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  background: var(--bg);
  border: 2px solid var(--tag-edge);
  border-radius: 50%;
}
.key-tag-number {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 600;
  text-align: center;
  letter-spacing: 0.02em;
  background: var(--tag-tint);
  border-bottom: 1px solid var(--border);
  margin: 0 -1.1rem 0.9rem;
  padding: 1.9rem 1.1rem 0.5rem;
}
/* The whole tag opens the room page: the number's link stretches over the card,
   and the action buttons sit above it so they keep their own targets. */
.key-tag-link { color: inherit; }
.key-tag-link:hover { text-decoration: none; }
.key-tag-link::after { content: ""; position: absolute; inset: 0; }
.key-tag-link:focus-visible { outline: none; }
.key-tag:has(.key-tag-link) { cursor: pointer; transition: border-color 0.12s ease, transform 0.12s ease; }
.key-tag:has(.key-tag-link:hover) { border-color: var(--brass); transform: translateY(-2px); }
.key-tag:has(.key-tag-link:focus-visible) { outline: 2px solid var(--brass-dark); outline-offset: 2px; }
.key-tag-actions { position: relative; z-index: 1; }
.key-tag-details {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.4rem;
  margin: 0 0 1rem;
}
.key-tag-details div { display: flex; justify-content: space-between; font-size: 0.83rem; }
.key-tag-details dt { color: var(--ink-soft); margin: 0; }
.key-tag-details dd { margin: 0; font-weight: 600; }
.key-tag-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  border-top: 1px solid var(--border);
  padding-top: 0.8rem;
}
/* Two to a row; a label too long for half the card (Arabic) takes a full row instead of wrapping. */
.key-tag-actions a, .key-tag-actions button {
  flex: 1 1 calc(50% - 0.25rem);
  min-width: max-content;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 600;
  min-height: 2.25rem;
  padding: 0.4rem 0.5rem;
  border-radius: var(--radius-s);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  font-family: var(--font-body);
}
.key-tag-actions a:hover, .key-tag-actions button:hover {
  border-color: var(--brass);
  text-decoration: none;
  background: var(--surface-sunken);
}

/* =========================================================================
   Data tables (.aTable is the shared table style on every list page)
   ========================================================================= */
.aTable { background: var(--surface); border-radius: var(--radius-m); box-shadow: var(--shadow-card); overflow: hidden; }
th, td { padding: 0.7rem 1rem; border-bottom: 1px solid var(--border); text-align: left; font-size: 0.88rem; }
th { background: var(--surface-sunken); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.01em; color: var(--ink-soft); }
tr:hover td { background: var(--surface-sunken); }

@media (max-width: 700px) {
  /* QA U1: .aTable clips (overflow:hidden for its rounded corners), so on a
     phone the right-hand columns - Approve/Reject, Status - were unreachable. */
  .aTable { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
}
@media (max-width: 600px) {
  .page { padding: 1.5rem 1rem 3rem; }
}

.eyebrow.eyebrow-name { text-transform: none; letter-spacing: 0.01em; font-size: 0.85rem; }
/* The wordmark is Latin in both languages. */
html[lang="ar"] .brand, html[lang="ar"] .auth-brand { font-family: 'Newsreader', 'Georgia', serif; }

.banner-warning { background:#FBF1DC; border:1px solid var(--amber); color:var(--ink); padding:0.75rem 1rem; border-radius:var(--radius-s); margin:0 0 1.25rem; font-size:0.9rem; }
.field .banner-warning { margin:0.5rem 0 0; }
.stat-tiles { display:flex; flex-wrap:wrap; gap:0.75rem; margin:0 0 1.75rem; }
.stat-tile { background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-m); padding:0.8rem 1.1rem; display:flex; flex-direction:column; gap:0.2rem; box-shadow:var(--shadow-card); min-width:140px; }
.stat-label { font-size:0.8rem; font-weight:600; color:var(--ink-soft); }
.stat-value { font-family:var(--font-display); font-size:1.4rem; font-weight:600; }
.stat-link { justify-content:center; font-weight:600; font-size:0.9rem; }
.stat-link:hover { text-decoration:none; border-color:var(--brass); }

/* ---- status pills (semantic: success / warning / error / info / neutral) ---- */
.pill { display:inline-block; padding:0.12rem 0.6rem; border-radius:999px; font-size:0.78rem; font-weight:600; line-height:1.5; white-space:nowrap; }
.pill-success, .pill.cond-ready { background:#E1EEE4; color:#2F5C3B; }
.pill-warning, .pill.cond-need-cleaning { background:#FCE9D6; color:#9A4A0B; }
.pill-error, .pill.cond-maintenance { background:#F6DFDA; color:#8E3427; }
.pill-info, .pill.cond-cleaned-pending-inspection { background:#DAEBF0; color:#25596B; }
.pill-neutral { background:#E4E8DF; color:#4A5754; }

/* ---- friendlier empty states ---- */
.empty-state { text-align:center; color:var(--ink-soft); padding:1.75rem 1rem !important; }
.empty-state::before { content:""; display:block; width:34px; height:34px; margin:0 auto 0.6rem; border:2px dashed var(--border); border-radius:50%; }
.empty-state .btn { display:inline-block; margin-top:0.75rem; }

/* ---- booking calendar ---- */
.cal-legend { display:flex; flex-wrap:wrap; gap:0.9rem; margin:0 0 1rem; font-size:0.82rem; color:var(--ink-soft); }
.cal-legend span { display:inline-flex; align-items:center; gap:0.4rem; }
.cal-legend i { display:inline-block; width:14px; height:14px; border-radius:3px; border:1px solid var(--border); }
.cal th.weekend, .cal td.weekend { background:#F1F1EA; }
.cal th.today { background:var(--brass-dark); color:#fff; }
.cal td.today { box-shadow: inset 2px 0 0 var(--brass), inset -2px 0 0 var(--brass); }
.cal td.stay.weekend { background:#5F8B6A; }

/* ---- needs-attention panel + compact room list (permanent, not preview-only) ---- */
.attention-panel { background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-m); padding:1rem 1.25rem; margin:0 0 1.5rem; box-shadow:var(--shadow-card); }
.attention-panel h2 { margin:0 0 0.6rem; font-size:1.15rem; }
.attention-list { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:0.45rem; }
.attention-list li { display:flex; align-items:center; gap:0.7rem; font-size:0.92rem; }
.attention-list a { color:var(--ink); }
.attention-list .where { color:var(--ink-soft); font-size:0.82rem; margin-inline-start:auto; }
.room-table td, .room-table th { padding:0.5rem 0.8rem; }
.room-table .actions a { margin-inline-end:0.7rem; font-size:0.85rem; }
.room-table tr.attention td { background: #FBF3F1; }
.room-table tr.attention:hover td { background: var(--surface-sunken); }

/* QA U3: uppercase tracking does nothing for Arabic script. */
html[lang="ar"] .eyebrow { text-transform: none; letter-spacing: 0; font-size: 0.85rem; }

/* Guest requests: Approve on its own, the guest-facing reason next to Decline (QA U8). */
.request-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.8rem; }
.request-actions small { flex-basis: 100%; color: var(--ink-soft); }
.decline-group { display: inline-flex; gap: 0.4rem; align-items: center; }
.decline-group input { width: 11rem; min-height: 2.25rem; padding: 0.3rem 0.5rem; border: 1px solid var(--border); border-radius: var(--radius-s); font: inherit; font-size: 0.85rem; }
/* top/left pin it: without them an absolute box inside a scrolling table escapes the
   scroller at its static position and widens the whole page on phones. */
.visually-hidden { position: absolute !important; top: 0; left: 0; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Per-hotel section links, grouped by job with a real current-page state (QA U5). */
/* One group per row in both languages and at any width (U13 follow-up); links still wrap inside a group. */
.hotel-subnav { display: flex; flex-direction: column; gap: 0.6rem; margin: 0 0 1.5rem; }
.subnav-group { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem; }
.subnav-label { font-size: 0.78rem; font-weight: 600; color: var(--ink-soft); margin-inline-end: 0.2rem; }
.hotel-subnav a { padding: 0.35rem 0.75rem; border: 1px solid var(--border); border-radius: 999px; background: var(--surface);
  color: var(--ink); font-size: 0.88rem; font-weight: 500; min-height: 2.25rem; display: inline-flex; align-items: center; }
.hotel-subnav a:hover { border-color: var(--brass); text-decoration: none; }
.hotel-subnav a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.subnav-badge { display: inline-block; min-width: 1.4em; margin-inline-start: 0.35em; padding: 0 0.35em; border-radius: 999px;
  background: var(--rust); color: #fff; font-size: 0.75rem; font-weight: 700; line-height: 1.5; text-align: center; }

/* Room page */
.room-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; color: var(--ink-soft); margin: 0.2rem 0 0; }
.detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); gap: 1.25rem; }
.detail-grid .form-card, .detail-section.form-card, .detail-vacant { max-width: none; margin: 0; }
.detail-grid .form-card { padding: 1.5rem; }
.detail-name { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; margin: 0 0 0.9rem; }
.detail-money { border-top: 1px solid var(--border); padding-top: 0.9rem; }
.detail-note { background: var(--surface-sunken); border-radius: var(--radius-s); padding: 0.6rem 0.8rem; font-size: 0.88rem; color: var(--ink-soft); }
.detail-section { margin-top: 1.75rem; }
.detail-section.form-card { padding: 1.5rem; }

/* Property photos */
.btn-danger { color: var(--rust); }
.btn-danger:hover { border-color: var(--rust); }
.photo-upload { max-width: none; margin-bottom: 1.5rem; }
.copy-photos { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; margin-top: 1rem;
  padding-top: 1rem; border-top: 1px solid var(--border); }
.photo-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.photo-item { display: grid; grid-template-columns: minmax(0, 240px) 1fr; gap: 1.25rem; align-items: start;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-m); padding: 1rem; box-shadow: var(--shadow-card); }
.photo-item img { width: 100%; height: auto; border-radius: var(--radius-s); background: var(--surface-sunken); }
.photo-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; font-weight: 600; margin: 0 0 0.6rem; }
.photo-size { font-weight: 400; font-size: 0.82rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.photo-captions { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: 0 1rem; align-items: end; }
.photo-captions .btn { justify-self: start; margin-bottom: 1.1rem; }
.photo-actions { display: inline-flex; flex-wrap: wrap; gap: 0.5rem; margin-inline-end: 0.5rem; }
@media (max-width: 600px) { .photo-item { grid-template-columns: 1fr; } }

/* Required-field marker (QA U9); the input itself carries `required` for screen readers. */
.req { color: var(--rust); font-weight: 700; }

/* Inventory (Phase 1) */
.filter-bar { display: flex; flex-wrap: wrap; gap: 0 1rem; align-items: flex-end; margin: 0 0 1rem; }
.filter-bar .field { margin-bottom: 0.75rem; }
.filter-bar .form-actions { margin: 0 0 0.75rem; }
.use-form { display: flex; gap: 0.4rem; align-items: center; }
.use-form input[type="number"] { width: 4.5rem; min-height: 2.5rem; padding: 0.3rem 0.5rem; border: 1px solid var(--border); border-radius: var(--radius-s); font: inherit; }
.stock-forms { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 1.25rem; margin-top: 1.5rem; }
.stock-forms .form-card { margin: 0; }

/* Voided payments (QA R2) */
.payment-void td { color: var(--ink-soft); }
.void-reason { font-size: 0.8rem; color: var(--rust); }
.void-form summary { cursor: pointer; color: var(--rust); display: inline-flex; min-height: 2rem; align-items: center; margin-inline-start: 0.6rem; }
.void-form form { display: grid; gap: 0.4rem; margin-top: 0.4rem; min-width: 14rem; }
.void-form input { padding: 0.4rem 0.5rem; border: 1px solid var(--border); border-radius: var(--radius-s); font: inherit; }
.void-stamp { display: grid; gap: 0.2rem; border: 2px solid var(--rust); color: var(--rust); border-radius: var(--radius-s);
  padding: 0.5rem 0.8rem; font-weight: 700; font-size: 1.4rem; letter-spacing: 0.08em; }
.void-stamp span { font-size: 0.85rem; font-weight: 500; letter-spacing: 0; }
.confirm-card { border: 1px solid var(--amber); }

/* Guest services: added services and permissions */
.plain-fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.plain-fieldset:disabled { opacity: 0.7; }
.section-heading { font-size: 1.1rem; margin: 1.75rem 0 0.3rem; }
.add-service-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); gap: 0 1rem; align-items: end; }
.add-service-form .form-actions { margin: 0 0 1.1rem; }
.added-services { list-style: none; margin: 0.5rem 0 0; padding: 0; display: grid; gap: 0.4rem; }
.added-services li { display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.4rem 0.75rem; background: var(--surface-sunken); border-radius: var(--radius-s); }
.inline-form { display: inline; margin-inline-start: 0.4rem; }
.btn-small { padding: 0.3rem 0.6rem; font-size: 0.8rem; min-height: 2rem; }
.muted { color: var(--ink-soft); }
#services.form-card { max-width: none; }   /* six-column services table + the add form need the width */
.row-details summary { cursor: pointer; color: var(--link); min-height: 2rem; display: inline-flex; align-items: center; }
.row-details-form { display: grid; gap: 0.35rem; margin: 0.4rem 0 0.6rem; min-width: 14rem; }
.row-details-form input { padding: 0.4rem 0.5rem; border: 1px solid var(--border); border-radius: var(--radius-s); font: inherit; }
.app-footer { max-width: 1080px; margin: 0 auto; padding: 0 1.5rem 2rem; color: var(--ink-soft); font-size: 0.78rem; }
.service-edit { flex: 1; }
.service-edit summary { color: var(--ink); gap: 0.5rem; }
.added-services li { align-items: flex-start; }
.service-item-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; padding: 0.5rem 0;
  border-bottom: 1px solid var(--border); }
.service-item-form { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; flex: 1; }
.service-item-name { font-weight: 600; min-width: 8rem; }
.service-item-uses { display: inline-flex; align-items: center; gap: 0.5rem; }
.service-item-uses input { width: 6rem; padding: 0.4rem 0.5rem; border: 1px solid var(--border); border-radius: var(--radius-s); font: inherit; }
.short-stock { color: #8E3427; font-weight: 600; }

/* Inventory on phones (QA INV): cards with a big number and a - / + Use; instant filters; Manage menu */
.phone-only { display: none; }
@media (max-width: 700px) {
  .wide-only { display: none !important; }
  .phone-only { display: block; }
}
.manage-menu { position: relative; }
.manage-menu summary { list-style: none; cursor: pointer; }
.manage-menu summary::-webkit-details-marker { display: none; }
.manage-menu-items { position: absolute; right: 0; top: calc(100% + 0.3rem); z-index: 10; background: var(--surface);
  border-radius: var(--radius-m); box-shadow: var(--shadow-card); padding: 0.4rem; min-width: 12rem; }
.manage-menu-items a { display: block; padding: 0.6rem 0.8rem; border-radius: var(--radius-s); color: var(--ink); }
.manage-menu-items a:hover { background: var(--surface-sunken); text-decoration: none; }
.chips { margin: 0 0 1rem; }
.chip { display: inline-flex; align-items: center; min-height: 2.25rem; padding: 0.3rem 0.9rem; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface); color: var(--ink); font-size: 0.88rem; font-weight: 600; }
.chip:hover { border-color: var(--brass); text-decoration: none; }
.chip-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.undo-banner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 0 0 1rem;
  padding: 0.6rem 1rem; border-radius: var(--radius-s); background: #EBF3EC; border: 1px solid #C3DBC8; color: #35573F; }
.stock-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
.stock-card { background: var(--surface); border-radius: var(--radius-m); box-shadow: var(--shadow-card); padding: 0.9rem 1rem; }
.stock-card-main { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 0.2rem 0.75rem; color: var(--ink); }
.stock-card-main:hover { text-decoration: none; }
.stock-card-name { font-weight: 600; grid-column: 1 / -1; }
.stock-card-qty { font-family: var(--font-display); font-size: 1.8rem; font-weight: 600; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stock-card-qty small { font-family: var(--font-body); font-size: 0.85rem; font-weight: 400; color: var(--ink-soft); }
.stock-card .use-form { margin-top: 0.75rem; }
.stepper { min-width: 2.75rem; min-height: 2.75rem; border: 1px solid var(--border); border-radius: var(--radius-s);
  background: var(--surface); font-size: 1.2rem; font-weight: 600; color: var(--ink); cursor: pointer; }
.use-form input[type="number"] { text-align: center; }
.stock-card .use-form input[type="number"] { min-height: 2.75rem; width: 4rem; }
.stock-card .use-form .btn { min-height: 2.75rem; flex: 1; justify-content: center; }
.consumable-box { border: 1px solid var(--border); border-radius: var(--radius-m); padding: 0.75rem 1rem 0.25rem; margin: 0 0 1.1rem; }
/* The consumables panel slides open only when "Consumable" is ticked; closed, its fields
   are hidden from the keyboard and screen readers too (visibility). No JavaScript needed. */
.consumable-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.3s ease; }
.consumable-inner { min-height: 0; overflow: hidden; visibility: hidden; transition: visibility 0s linear 0.3s; }
form:has(#consumable:checked) .consumable-panel { grid-template-rows: 1fr; }
form:has(#consumable:checked) .consumable-inner { visibility: visible; transition-delay: 0s; }
form:has(#consumable:checked) .expense-category-field { display: none; }   /* the item's category is used */

/* Customer page: every room the guest is in now (QA M1) */
.current-rooms { list-style: none; margin: 0.5rem 0 0; padding: 0; display: grid; gap: 0.4rem; }
.current-rooms li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 0.75rem; }

/* =========================================================================
   The approved design (QA D1): formerly the ?preview=new stylesheet
   ========================================================================= */
.auth-shell { background: var(--bg); }
.auth-brand { display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  background: var(--ink); color: #fff; padding: 8px 1.4rem; min-height: 62px;
  border-radius: var(--radius-l) var(--radius-l) 0 0; margin: 0; }
.auth-shell .form-card { border-top-left-radius: 0; border-top-right-radius: 0; box-shadow: var(--shadow-card); }
h1 { letter-spacing: -0.015em; }

.attention-panel { background: var(--surface); border-radius: var(--radius-m); padding: 1rem 1.25rem; margin: 0 0 1.75rem; box-shadow: var(--shadow-card); }
.attention-panel h2 { margin: 0 0 0.6rem; }
.attention-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.45rem; }
.attention-list li { display: flex; align-items: center; gap: 0.7rem; }
.attention-list .where { color: var(--ink-soft); font-size: 0.82rem; margin-inline-start: auto; }
.attention-ok { color: var(--ink-soft); margin: 0; }
.hotel-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.hotel-tile { background: var(--surface); border-radius: var(--radius-m); padding: 1.1rem 1.25rem; box-shadow: var(--shadow-card);
  display: flex; flex-direction: column; gap: 0.5rem; color: var(--ink); }
.hotel-tile:hover { text-decoration: none; box-shadow: 0 2px 4px rgba(31, 42, 40, 0.08), 0 10px 24px rgba(31, 42, 40, 0.1); }
.hotel-tile-name { font-family: var(--font-display); font-size: 1.125rem; font-weight: 600; }
.hotel-tile-meta { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; }
.hotel-tile .big { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; line-height: 1; }
.hotel-tile .small { font-size: 0.75rem; color: var(--ink-soft); display: block; margin-top: 0.2rem; }
.occ-bar { height: 6px; background: var(--surface-sunken); border-radius: 999px; overflow: hidden; }
.occ-bar > span { display: block; height: 100%; background: var(--moss); }
.spark { width: 120px; height: 32px; }
.spark polyline { fill: none; stroke: var(--brass-dark); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.staff-list { margin-top: 2.5rem; }

/* Rooms: Cards | List (QA D2) */
.view-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.25rem; margin: 0 0 1rem; }
.view-switch { display: inline-flex; border: 1px solid var(--border); border-radius: var(--radius-s); overflow: hidden; background: var(--surface); }
.view-switch a { min-height: 44px; min-width: 5.5rem; display: inline-flex; align-items: center; justify-content: center;
  padding: 0 1rem; font-size: 15px; font-weight: 600; color: var(--ink); text-decoration: none; }
.view-switch a + a { border-inline-start: 1px solid var(--border); }
.view-switch a:hover { background: var(--surface-sunken); text-decoration: none; }
.view-switch a[aria-current="page"] { background: var(--ink); color: #fff; }

/* =========================================================================
   Header: wordmark and language pill, identical in both apps (QA D3, D4)
   ========================================================================= */
.topbar { min-height: 62px; padding-block: 8px; }
.brand {
  font-family: 'Newsreader', 'Georgia', serif;   /* Latin in both languages, never Cairo */
  font-optical-sizing: auto;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.2px;
  color: #fff;
}
.brand span { color: #B8863E; }
.auth-brand .brand { margin: 0; padding: 0; color: #fff; }
.auth-brand .brand > span { color: #B8863E; }
.lang-switch {
  display: inline-flex;
  margin: 0;
  border: 1px solid rgba(241, 238, 228, 0.5);
  border-radius: 999px;
  overflow: hidden;
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  font-size: 12.8px;
  font-weight: 600;
  line-height: 1;
}
.lang-option {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.6rem;
  margin: 0;
  border: 0;
  background: transparent;
  color: #F1EEE4;
  font: inherit;
  cursor: pointer;
}
button.lang-option:hover { background: rgba(241, 238, 228, 0.14); }
button.lang-option:focus-visible { outline: 2px solid var(--brass); outline-offset: -3px; }
.lang-option.is-current { background: #F1EEE4; color: var(--ink); }

/* =========================================================================
   One look per element on every page (QA D5). The same values as the guest
   app: keep this block and hotel-design-tokens.md in step.
   ========================================================================= */
:root {
  --text-body: 16px;
  --text-button: 15px;
  --text-label: 14px;
  --text-input: 16px;
  --text-pill: 12.8px;
  --title-page: 32px;
  --title-section: 22px;
  --title-card: 18px;
  --control-min: 44px;
  --input-height: 46px;
  --radius-card: var(--radius-m);    /* cards: white, no border, soft shadow */
  --radius-panel: var(--radius-l);   /* form panels */
}
body { font-size: var(--text-body); }
h1 { font-size: var(--title-page); }
h2, .attention-panel h2 { font-size: var(--title-section); }
h3, .section-heading { font-size: var(--title-card); }

.eyebrow, .eyebrow.eyebrow-name {
  font-family: var(--font-body);
  font-size: var(--text-label);
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--brass-deep);    /* 6:1 on the page background */
  margin: 0 0 0.35em;
}

.btn, .btn-small, .key-tag-actions button {
  font-family: var(--font-body);
  font-size: var(--text-button);
  font-weight: 600;
  min-height: var(--control-min);
  padding: 0 1.1rem;
  border-radius: var(--radius-s);
  justify-content: center;
  line-height: 1.2;
}
.btn-small { padding: 0 0.9rem; }
.btn-brass { background: var(--brass-dark); color: #fff; }

.field label, .filter-row label, .filter-bar label, .service-item-uses > span {
  font-size: var(--text-label);
  font-weight: 600;
  color: var(--ink-soft);
}
main input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]):not([type="submit"]):not([type="button"]),
main select:not([multiple]), main textarea:not([hidden]),
.auth-shell input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]) {
  font-family: var(--font-body);
  font-size: var(--text-input);
  line-height: 1.5;   /* Cairo's own line height would make Arabic fields taller */
  min-height: var(--input-height);
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-s);
  background: var(--surface);
  color: var(--ink);
}
main textarea { min-height: 6rem; }
main select:not([multiple]) { height: var(--input-height); padding-block: 0; }   /* browsers ignore line-height on a select */
main input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]):not([type="submit"]):not([type="button"]):focus,
main select:not([multiple]):focus, main textarea:not([hidden]):focus,
.auth-shell input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):focus {
  outline: none;
  border-color: var(--brass-dark);
  box-shadow: 0 0 0 3px rgba(184, 134, 62, 0.25);
}

.key-tag, .stat-tile, .hotel-tile, .attention-panel, .photo-item, .stock-card, .hotel-card button {
  border: 0;
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}
.form-card { border: 0; border-radius: var(--radius-panel); }

main :is(p, li, td, dd, small, label) a:not(.btn):not(.hotel-tile):not(.key-tag-link),
.messages a, .banner-warning a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.pill { font-size: var(--text-pill); font-weight: 600; border-radius: 999px; }

/* VAT: settings group, tax invoice head with the ZATCA QR code */
.vat-settings { margin: 1.5rem 0 1rem; }
.vat-settings legend { padding: 0; }
.vat-settings legend h2 { margin: 0 0 0.5rem; }
.vat-settings small { display: block; color: var(--ink-soft); margin-top: -0.5rem; }
.invoice-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.vat-qr { margin: 0; width: 132px; flex: none; }
.vat-qr svg { width: 100%; height: auto; display: block; }
.tabular { font-variant-numeric: tabular-nums; }
.field-hint { display: block; color: var(--ink-soft); margin: -0.5rem 0 1.1rem; }
/* Inventory Phase 1.5 (QA INV 5-8) */
.inventory-tools { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; width: 100%; }
.inventory-tools a { min-height: 44px; display: inline-flex; align-items: center; text-decoration: underline; text-underline-offset: 0.18em; }
.qty-input { width: 7rem; }
.count-reason { max-width: 24rem; }
.filter-bar-link { margin: 0 0 0.75rem; min-height: 46px; display: flex; align-items: center; }
@media print { .no-print, .topbar, .app-footer, .hotel-subnav { display: none !important; } body { background: #fff; } }

/* Overview month page: what's behind each number */
.stat-sub { font-size: 0.8rem; color: var(--ink-soft); }
.category-totals { list-style: none; margin: 0 0 0.75rem; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.category-totals li { display: inline-flex; gap: 0.5rem; align-items: baseline; padding: 0.35rem 0.75rem;
  background: var(--surface); border-radius: var(--radius-m); box-shadow: var(--shadow-card); font-size: 0.9rem; }

/* Hotel settings in parts (N8): a row of section links that wraps on a phone - no sideways scroll */
.settings-tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 1.25rem; }
.settings-tabs a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 1rem;
  border: 1px solid var(--border); border-radius: var(--radius-m); background: var(--surface);
  color: var(--ink); font-weight: 600; text-decoration: none; }
.settings-tabs a:hover { border-color: var(--ink-soft); }
.settings-tabs a[aria-current="page"] { background: var(--enamel, var(--ink)); border-color: var(--enamel, var(--ink));
  color: var(--enamel-ink, #fff); box-shadow: inset 0 -3px 0 var(--signal, transparent); }

/* "Back to ..." at the top of every page (the app is often full screen on a phone) */
.back-bar { margin: -0.75rem 0 0.75rem; }
.back-link { display: inline-flex; align-items: center; gap: 0.3rem; min-height: 44px; padding-inline-end: 0.5rem;
  font-weight: 600; color: var(--link); text-decoration: none; }
.back-link:hover { text-decoration: underline; text-underline-offset: 0.18em; }
.back-icon { flex: none; }
@media print { .back-bar { display: none; } }

/* Footer; the hotel line roundel is drawn by theme-line.css */
.app-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1rem; }
.line-roundel { display: none; }

/* N5 the bell: new work without a refresh */
.live { position: relative; display: flex; align-items: center; margin-inline-start: auto; }
.live[hidden] { display: none; }
.live-bell { position: relative; display: inline-flex; align-items: center; justify-content: center;
  inline-size: 44px; block-size: 44px; border: 0; border-radius: 50%; background: transparent; color: inherit; cursor: pointer; }
.live-bell:hover, .live-bell[aria-expanded="true"] { background: rgba(255, 255, 255, 0.1); }
.live-count { position: absolute; inset-block-start: 4px; inset-inline-end: 2px; min-inline-size: 20px; block-size: 20px;
  padding: 0 5px; border-radius: 10px; background: var(--signal, #F5B301); color: #15181C; font-size: 0.75rem;
  font-weight: 700; line-height: 20px; text-align: center; }
.live.ping .live-bell svg { animation: live-ring 0.9s ease-in-out 2; transform-origin: 50% 10%; }
@keyframes live-ring { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(14deg); } 75% { transform: rotate(-14deg); } }
@media (prefers-reduced-motion: reduce) { .live.ping .live-bell svg { animation: none; } }
.live-panel { position: absolute; inset-block-start: calc(100% + 6px); inset-inline-end: 0; z-index: 50;
  inline-size: min(320px, calc(100vw - 32px)); padding: 0.75rem; border: 1px solid var(--border); border-radius: var(--radius-m);
  background: var(--surface); color: var(--ink); box-shadow: var(--shadow-card); }
.live-title { margin: 0 0 0.5rem; font-weight: 700; }
.live-list { list-style: none; margin: 0 0 0.6rem; padding: 0; display: grid; gap: 0.25rem; }
.live-list a { display: flex; align-items: center; min-height: 44px; padding: 0 0.5rem; border-radius: var(--radius-s);
  color: var(--ink); text-decoration: none; }
.live-list a:hover { background: var(--surface-sunken); }
.live-service_late a { color: var(--danger, #B42318); font-weight: 600; }
.live-empty { color: var(--ink-soft); padding: 0.25rem 0.5rem; }
.live-actions { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.live-locked { margin: 0 0 0.6rem; padding: 0.5rem 0.6rem; border-radius: var(--radius-s);
  background: var(--surface-sunken); font-size: 0.85rem; }

/* N10 deposit box (check-out and the bill) */
.deposit-box { border: 1px solid var(--border); border-radius: var(--radius-m); padding: 0.75rem 1rem 0.5rem; margin: 0 0 1.1rem; }
.deposit-box legend { padding: 0 0.3rem; font-weight: 600; }
.deposit-held { margin: 0 0 0.6rem; }
.deposit-choices { display: grid; gap: 0.5rem; margin: 0 0 0.9rem; }
.deposit-choice { display: flex; align-items: flex-start; gap: 0.6rem; min-height: 48px; padding: 0.7rem 0.85rem;
  border: 1px solid var(--border); border-radius: var(--radius-m); background: var(--surface); cursor: pointer; }
.deposit-choice:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: var(--surface-sunken); }
.deposit-choice input { margin-top: 0.2rem; }
.deposit-keep { display: none; }
.deposit-box:has(input[value="keep_part"]:checked) .deposit-keep { display: block; }
.signature-lines { display: flex; gap: 2rem; margin: 2.5rem 0 1rem; }
.signature-lines span { flex: 1; border-top: 1px solid var(--ink); padding-top: 0.35rem; font-size: 0.85rem; color: var(--ink-soft); }

/* QA F10: a deactivated employee stays listed (history), greyed out */
.aTable tr.row-inactive td { color: var(--ink-soft); background: var(--surface-sunken); }
.deposit-settings .deposit-fixed-field { display: none; }
.deposit-settings:has(#deposit_default option[value="fixed"]:checked) .deposit-fixed-field { display: block; }
@media (max-width: 640px) {
  /* N5: on a phone the panel spans the screen under the header, whichever side the bell is on */
  .live-panel { position: fixed; inset-inline: 16px; inset-block-start: 70px; inline-size: auto; }
}
