/* =========================================
   PMS — base styles
   Brand color: #F89E3D
   Fonts: Manrope (headings, numbers), Roboto (text)
   ========================================= */

:root {
  --brand: #F89E3D;
  --brand-dark: #D9761A;
  --brand-soft: #FEF3E7;

  --bg: #F2F0EB;          /* warm off-white page background */
  --surface: #FFFFFF;
  --text: #1A1C20;
  --muted: #6F6C66;
  --border: #E7E3DB;

  --green: #2E9E6A;
  --green-soft: #E6F5EE;
  --red: #D9534F;
  --red-soft: #FCEBEA;
  --blue: #3B7DD8;
  --blue-soft: #E8F0FB;
  --gray: #9AA1AD;
  --gray-soft: #F1EFEA;
  --teal: #1F9AA6;
  --teal-soft: #E4F5F6;
  --purple: #7A5BC7;
  --purple-soft: #F1ECFA;

  --radius: 20px;
  --shadow: 0 1px 2px rgba(40, 32, 20, .04);

  --font-head: "Manrope", system-ui, sans-serif;
  --font-body: "Roboto", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; }

svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.muted { color: var(--muted); }
[hidden] { display: none !important; }

/* ================= HEADER ================= */

.header {
  position: sticky;
  top: 12px;
  z-index: 10;
  width: calc(100% - 56px);
  max-width: 1384px;
  margin: 12px auto 0;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: 0 6px 20px rgba(40, 32, 20, .05);
}

.topbar {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
}

/* Logo */
.logo { display: flex; align-items: center; gap: 10px; }
.logo-img { display: block; width: auto; height: 26px; }

/* Date & time */
.datetime {
  display: flex; align-items: center; gap: 10px;
  padding-left: 20px;
  border-left: 1px solid var(--border);
}
.cal {
  width: 38px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  text-align: center;
  font-family: var(--font-head);
  line-height: 1;
}
.cal-month {
  display: block;
  background: var(--brand);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .6px;
  padding: 3px 0;
}
.cal-day { display: block; font-size: 15px; font-weight: 700; padding: 4px 0; }
.datetime-text { display: flex; flex-direction: column; line-height: 1.3; }
.dt-date { font-size: 13px; font-weight: 500; }
.dt-time { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* Property dropdown */
.property { position: relative; }
.property-btn {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  column-gap: 10px;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  text-align: left;
  transition: border-color .15s;
}
.property-btn:hover { border-color: var(--brand); }
.property-label { grid-column: 1; font-size: 11px; color: var(--muted); }
.property-name {
  grid-column: 1;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
}
.property-btn .chev { grid-column: 2; grid-row: 1 / 3; color: var(--muted); }

.property-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 220px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(20, 24, 35, .1);
  padding: 6px;
}
.property.open .property-menu { display: block; }
.property-menu button {
  width: 100%;
  text-align: left;
  padding: 9px 10px;
  border-radius: 7px;
}
.property-menu button:hover { background: var(--bg); }
.property-menu button.active { color: var(--brand-dark); font-weight: 500; background: var(--brand-soft); }

/* Search */
.search {
  flex: 1;
  max-width: 460px;
  display: flex; align-items: center; gap: 8px;
  padding: 0 16px;
  height: 42px;
  background: var(--bg);
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--muted);
  transition: border-color .15s, background .15s;
}
.search:focus-within { border-color: var(--brand); background: var(--surface); }
.search input {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  color: var(--text);
}

/* User */
.user { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-weight: 700;
  display: grid; place-items: center;
}
.user-name { font-weight: 500; }

/* Navigation */
.nav {
  display: flex;
  gap: 2px;
  padding: 8px 10px;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav::-webkit-scrollbar { display: none; }

.nav-item {
  display: flex; align-items: center; gap: 7px;
  padding: 8px 11px;
  white-space: nowrap;
  color: var(--muted);
  font-weight: 500;
  border-radius: 999px;
  transition: color .15s, background .15s;
}
.nav-item:hover { color: var(--text); background: var(--bg); }
.nav-item.active { color: var(--brand-dark); background: var(--brand-soft); }

.nav-item.open { color: var(--text); background: var(--bg); }

/* dropdown under a main menu item (placed by script.js) */
.nav-menu {
  position: fixed;
  z-index: 25;
  min-width: 220px;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(40, 32, 20, .12);
}
.nav-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  font-weight: 500;
}
.nav-menu a:hover { background: var(--brand-soft); color: var(--brand-dark); }
a.btn { display: inline-flex; align-items: center; }

/* small arrow for items that will open a menu */
.nav-item.has-menu::after {
  content: "";
  width: 5px; height: 5px;
  margin-left: 2px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  opacity: .6;
}

/* ================= PAGE ================= */

.page {
  max-width: 1440px;
  margin: 0 auto;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
}
h1 {
  font-family: var(--font-head);
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 6px;
}

/* small uppercase label above titles and numbers */
.eyebrow,
.kpi-label,
.money-label,
.fact-label {
  display: block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow { margin-bottom: 8px; }
h2 {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
}
.page-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* Buttons */
.btn {
  height: 42px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 500;
  transition: background .15s, border-color .15s;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-ghost { border: 1px solid var(--border); background: var(--surface); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand-dark); }

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
}

/* accent card: solid brand color for the key number (used once per page) */
.card-accent {
  background: #FAD2A6;
  border-color: #F6C28B;
  box-shadow: 0 8px 20px rgba(248, 158, 61, .16);
}
.card-accent .kpi-label { color: #8A4A0E; }
.card-accent .kpi-value { color: #1A1C20; }
.card-accent .kpi-note { color: #6E4520; }
.card-accent .bar { background: rgba(255, 255, 255, .65); }
.card-accent .bar span { background: var(--brand-dark); }
/* small section titles inside cards (Options, Add-ons, Guest…) */
.card h3 {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 12px;
}

.card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.link { color: var(--brand-dark); font-weight: 500; font-size: 13px; }
.link:hover { text-decoration: underline; }

/* Overview row: occupancy + strip */
.overview {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 2fr;
  gap: 20px;
}
.kpi { display: flex; flex-direction: column; gap: 6px; justify-content: center; }

.kpi-value {
  font-family: var(--font-head);
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-top: 4px;
}
.kpi-note { color: var(--muted); font-size: 12px; }
.kpi .bar { margin: 6px 0 2px; }

/* Stats strip */
.strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 1fr;
  padding: 0;
  overflow: hidden;
}
.strip-item:nth-child(4n + 1)::before { display: none; }
.strip-item {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 14px;
  align-content: center;
  align-items: center;
  padding: 16px 18px;
  position: relative;
  transition: background .15s;
}
/* line between the two rows */
.strip-item:nth-child(n + 5)::after {
  content: "";
  position: absolute;
  left: 18px; right: 18px; top: 0;
  border-top: 1px solid var(--border);
}
.strip-item:hover { background: var(--bg); }
.strip-item + .strip-item::before {
  content: "";
  position: absolute;
  left: 0; top: 16px; bottom: 16px;
  border-left: 1px solid var(--border);
}
.strip-label {
  font-size: 13px;
  font-weight: 500;
  color: #4A4741;
  white-space: nowrap;
}
.strip-value {
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.ico {
  width: 46px; height: 46px;
  border-radius: 50%;
  display: grid; place-items: center;
}
.ico svg { width: 22px; height: 22px; }
.ico-brand  { background: var(--brand-soft); color: var(--brand-dark); }
.ico-green  { background: var(--green-soft); color: var(--green); }
.ico-red    { background: var(--red-soft); color: var(--red); }
.ico-blue   { background: var(--blue-soft); color: var(--blue); }
.ico-gray   { background: var(--gray-soft); color: var(--gray); }
.ico-slate  { background: var(--gray-soft); color: #5B6475; }
.ico-purple { background: var(--purple-soft); color: var(--purple); }
.ico-teal   { background: var(--teal-soft); color: var(--teal); }
/* "2/3": done out of total, total in gray */
.strip-value .of { color: var(--gray); font-weight: 700; }

/* icon on the left, number above label on the right */
.ico { grid-row: 1 / 3; grid-column: 1; }
.strip-value { grid-row: 1; grid-column: 2; }
.strip-label { grid-row: 2; grid-column: 2; }

/* Progress bar */
.bar {
  height: 6px;
  background: var(--gray-soft);
  border-radius: 99px;
  overflow: hidden;
}
.bar span {
  display: block;
  height: 100%;
  min-width: 4px;
  background: var(--brand);
  border-radius: 99px;
}

/* Rows of cards */
.grid-3 {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  gap: 20px;
}
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.small { font-size: 12px; }

/* Housekeeping */
.hk-bar {
  display: flex;
  height: 10px;
  border-radius: 99px;
  overflow: hidden;
  gap: 2px;
  margin-bottom: 18px;
}
.hk-clean { background: var(--green); }
.hk-dirty { background: var(--red); }
.hk-ooo { background: var(--gray); }
.hk-occ { background: var(--blue); }

.hk-ready {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  line-height: 1.4;
}
.hk-ready-num {
  font-family: var(--font-head);
  font-size: 32px;
  font-weight: 800;
  color: var(--red);
}
.warn { color: var(--red); font-size: 12px; }
.ok-text { color: var(--green); font-size: 12px; }

.hk-list { display: flex; flex-direction: column; gap: 12px; }
.hk-list li { display: flex; align-items: center; gap: 10px; }
.hk-list b { margin-left: auto; font-family: var(--font-head); font-size: 16px; }
.dot { width: 9px; height: 9px; border-radius: 50%; }
.dot-clean { background: var(--green); }
.dot-dirty { background: var(--red); }
.dot-ooo { background: var(--gray); }
.dot-green { background: var(--green); }
.dot-red   { background: var(--red); }
.dot-blue  { background: var(--blue); }
.dot-gray  { background: var(--gray); }
.dot-brand { background: var(--brand); }

/* Needs attention */
.count {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  margin-left: 6px;
  border-radius: 99px;
  background: var(--brand);
  color: #fff;
  font-size: 12px;
  vertical-align: 1px;
}
.attn { display: flex; flex-direction: column; }
.attn li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-top: 1px solid var(--border);
}
.attn li:first-child { border-top: 0; padding-top: 0; }
.attn p { flex: 1; }
.attn b { font-weight: 500; }
.attn .link { white-space: nowrap; }

/* 7-day forecast */
.fc {
  display: flex;
  gap: 10px;
  height: 170px;
}
.fc-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
}
.fc-bar {
  width: 100%;
  max-width: 34px;
  min-height: 4px;
  background: #F9D2AB;
  border-radius: 6px 6px 3px 3px;
}
.fc-col.today .fc-bar { background: var(--brand); }
.fc-val { font-size: 12px; font-weight: 500; }
.fc-day { font-size: 12px; color: var(--muted); }
.fc-col.today .fc-day { color: var(--brand-dark); font-weight: 500; }
.fc-foot {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
}
.fc-foot b { color: var(--text); font-weight: 500; }

/* Recent activity */
.feed { display: flex; flex-direction: column; }
.feed li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--border);
}
.feed li:first-child { border-top: 0; padding-top: 0; }
.feed-time {
  width: 40px;
  color: var(--muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.feed b { font-weight: 500; }

/* Room types */
.types { display: flex; flex-direction: column; gap: 12px; }
.types li {
  display: grid;
  grid-template-columns: 48px 1fr 28px 44px;
  align-items: center;
  gap: 12px;
}
.type-code { font-weight: 500; }
.type-num { font-family: var(--font-head); font-weight: 700; text-align: right; }
.type-rate { color: var(--muted); text-align: right; font-size: 13px; }

/* Tabs */
.tabs {
  display: flex;
  gap: 4px;
  background: var(--bg);
  padding: 4px;
  border-radius: 999px;
}
.tab {
  padding: 7px 16px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 500;
  font-size: 13px;
}
.tab span {
  margin-left: 4px;
  font-size: 12px;
  color: var(--gray);
}
.tab.active { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.tab.active span { color: var(--brand); }

/* Today / Tomorrow toggle on the dashboard */
#daySwitch {
  display: grid;
  grid-template-columns: 1fr 1fr;   /* both buttons always the same width */
  height: 42px;
  align-items: center;
  background: #E8E5DE;
  border: 1px solid #DFDBD2;
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}
#daySwitch .tab {
  min-width: 96px;
  height: 32px;
  padding: 0 16px;
  text-align: center;
  font-size: 14px;
  transition: background .15s, color .15s;
}
#daySwitch .tab:hover:not(.active) { color: var(--text); }
#daySwitch .tab.active {
  background: var(--surface);
  color: var(--brand-dark);
  box-shadow: 0 1px 3px rgba(20, 24, 35, .12);
}

/* Table */
.table-wrap { overflow-x: auto; margin: 0 -20px -20px; }
.table-wrap:has(+ :not([hidden])) { margin-bottom: 0; }
.table-wrap + .hint-line { margin-top: 12px; }
.table { width: 100%; border-collapse: collapse; min-width: 1040px; }
.table th {
  text-align: left;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  padding: 10px 20px;
  background: #FAF8F4;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.table td {
  padding: 13px 20px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: #FCFCFD; }
.table .right { text-align: right; }
.table .id { color: var(--brand-dark); font-weight: 500; }
.table .guest { font-weight: 500; }

/* Status badges */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 500;
}
.badge-in { background: var(--green-soft); color: var(--green); }
.badge-due { background: var(--brand-soft); color: var(--brand-dark); }
.badge-arr { background: var(--blue-soft); color: var(--blue); }
.badge-out { background: var(--gray-soft); color: var(--muted); }

/* Guest tags */
.tag {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 500;
  vertical-align: 1px;
}
.tag-vip    { background: var(--brand-soft); color: var(--brand-dark); }
.tag-group  { background: var(--purple-soft); color: var(--purple); }
.tag-req    { background: var(--blue-soft); color: var(--blue); }
.tag-repeat { background: var(--teal-soft); color: var(--teal); }

/* Balance */
.table .paid { color: var(--muted); }
.table .due { color: var(--red); font-weight: 500; }

/* Small table buttons */
.actions { display: flex; gap: 6px; justify-content: flex-end; }
.btn-sm {
  height: 32px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  font-size: 13px;
  font-weight: 500;
  transition: border-color .15s, background .15s;
}
.btn-sm:hover { border-color: var(--brand); color: var(--brand-dark); }
a.btn-sm { display: inline-flex; align-items: center; }
.btn-sm-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-sm-primary:hover { background: var(--brand-dark); color: #fff; }

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 20px);
  background: var(--text);
  color: #fff;
  padding: 11px 18px;
  border-radius: 14px;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .2s;
  z-index: 20;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ================= SEARCH PAGE ================= */

.big-search {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 58px;
  padding: 0 6px 0 22px;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  transition: border-color .15s, box-shadow .15s;
}
.big-search:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-soft);
}
.big-search svg { width: 20px; height: 20px; }
.big-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  font: inherit;
  font-size: 16px;
  color: var(--text);
  background: transparent;
}
.big-search .btn { height: 44px; }

.hint { margin: 10px 2px 0; color: var(--muted); font-size: 12px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chip {
  height: 32px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 99px;
  background: var(--surface);
  font-size: 13px;
  font-weight: 500;
  color: #4A4741;
  transition: border-color .15s, background .15s, color .15s;
}
.chip:hover { border-color: var(--brand); }
.chip.active { background: var(--brand-soft); border-color: var(--brand); color: var(--brand-dark); }

.filters-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  color: var(--brand-dark);
  font-weight: 500;
  font-size: 13px;
}
.filters-toggle svg { width: 16px; height: 16px; transition: transform .15s; }
.filters-toggle.open svg { transform: rotate(180deg); }

.filters {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 16px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.filters[hidden] { display: none; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field span { font-size: 12px; font-weight: 500; color: #4A4741; }
.field input,
.field select {
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  font: inherit;
  color: var(--text);
  outline: 0;
  transition: border-color .15s;
}
.field input:focus,
.field select:focus { border-color: var(--brand); }

.filters-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* Results */
.results tbody tr { cursor: pointer; }
.results .sub { display: block; font-size: 12px; color: var(--muted); font-weight: 400; }
.card-num { color: var(--muted); font-variant-numeric: tabular-nums; }
mark { background: #FDE3C8; color: inherit; border-radius: 3px; padding: 0 1px; }
.badge-cxl { background: var(--red-soft); color: var(--red); }

.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 40px 20px 48px;
  color: var(--muted);
}
.empty b { color: var(--text); font-weight: 500; }
.empty[hidden] { display: none; }

/* ================= RESERVATION PAGE ================= */

.back {
  align-self: flex-start;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: -6px;
}
.back:hover { color: var(--brand-dark); }

.empty-page { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 32px; }
.empty-page .btn { display: inline-flex; align-items: center; }

/* Header card */
.res-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px 24px;
  padding: 24px;
}
.res-name-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.res-name-row h1 { margin: 0; }
.room-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.01em;
  white-space: nowrap;
  flex-shrink: 0;
}
.room-chip svg { width: 18px; height: 18px; stroke-width: 2; }
.room-chip.held { background: var(--brand-soft); color: var(--brand-dark); border: 1.5px dashed var(--brand); }
.room-chip-note { font-family: var(--font-body); font-size: 12px; font-weight: 500; opacity: .85; }
.room-chip.no-room { background: var(--red-soft); color: var(--red); font-size: 14px; font-weight: 700; cursor: pointer; }
.room-chip.no-room:hover { background: #F8DCDA; }
.res-name-row .tag { margin-left: 0; }
.res-meta { margin-top: 6px; color: var(--muted); }
.res-meta b { color: var(--text); font-weight: 500; }

.res-actions { display: flex; align-items: flex-start; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }

.more { position: relative; }
.more-btn { display: inline-flex; align-items: center; gap: 6px; }
.more-btn svg { width: 16px; height: 16px; }
.more-menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  min-width: 240px;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(20, 24, 35, .1);
  z-index: 5;
}
.more.open .more-menu { display: block; }
.more-menu button { width: 100%; text-align: left; padding: 9px 10px; border-radius: 7px; }
.more-menu button:hover { background: var(--bg); }
.more-menu .danger { color: var(--red); }
.more-menu .sep { border-top: 1px solid var(--border); margin: 6px 4px; }

.res-facts {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border);
  padding-top: 18px;
}
.fact { display: flex; flex-direction: column; gap: 3px; padding-right: 16px; }
.fact + .fact { padding-left: 18px; border-left: 1px solid var(--border); }
.fact-value { font-family: var(--font-head); font-weight: 700; font-size: 17px; letter-spacing: -0.01em; margin-top: 2px; }
.fact-sub { font-size: 13px; color: #4A4741; }
.warn-text { color: var(--red); }

/* Money strip */
.money {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 0;
  overflow: hidden;
}
.money-item { display: flex; flex-direction: column; gap: 4px; padding: 18px 24px; }
.money-item + .money-item { border-left: 1px solid var(--border); }
.money-value { font-family: var(--font-head); font-size: 30px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
.money-sub { font-size: 12px; color: var(--muted); }
.money-balance.ok { background: var(--green-soft); }
.money-balance.ok .money-value, .money-balance.ok .money-sub { color: var(--green); }
.money-balance.due { background: var(--red-soft); }
.money-balance.due .money-value, .money-balance.due .money-sub { color: var(--red); }

/* Body: main + side */
.res-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 20px;
  align-items: start;
}
.res-main { min-width: 0; }
.res-tabs { display: inline-flex; flex-wrap: wrap; margin-bottom: 22px; max-width: 100%; }
.res-panel h3 {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 12px;
}

/* Overview */
.ov-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-bottom: 22px; }
.kv {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.kv:last-child { border-bottom: 0; }
.kv dt { color: var(--muted); font-size: 13px; }
.kv dd { word-break: break-word; }
.kv .tag { margin-left: 4px; }

.request {
  background: var(--blue-soft);
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 22px;
}
.request-label { display: block; font-size: 12px; font-weight: 500; color: var(--blue); margin-bottom: 2px; }

.prefs { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; position: relative; }   /* keeps the hidden checkbox inside (no page overflow) */
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.slider {
  position: relative;
  width: 36px; height: 20px;
  border-radius: 99px;
  background: #D5D9E0;
  transition: background .15s;
  flex-shrink: 0;
}
.slider::after {
  content: "";
  position: absolute;
  top: 2px; left: 2px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .2);
  transition: transform .15s;
}
.switch input:checked + .slider { background: var(--brand); }
.switch input:checked + .slider::after { transform: translateX(16px); }
.switch input:focus-visible + .slider { outline: 2px solid var(--brand); outline-offset: 2px; }

/* Folio */
.panel-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.table-wrap.flush { margin: 0 -20px -20px; }
/* something under the table (a note, a legend): keep it below, not under the table */
.table-wrap.flush:has(+ :not([hidden])) { margin-bottom: 0; }
.folio { min-width: 760px; }
.folio .pay { color: var(--green); }
.folio tfoot td { padding: 10px 20px; border-bottom: 0; color: var(--muted); }
.folio tfoot tr:first-child td { border-top: 1px solid var(--border); }
.folio tfoot .total td {
  color: var(--text);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 16px;
  background: var(--bg);
}
.empty-line { padding: 16px 0; }

/* Notes */
.note-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  font: inherit;
  resize: vertical;
  outline: 0;
}
.note-form textarea:focus { border-color: var(--brand); }
.note-form-row { display: flex; justify-content: space-between; gap: 10px; margin: 10px 0 18px; }
.note-form input {
  flex: 1;
  max-width: 260px;
  height: 42px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  font: inherit;
  outline: 0;
}
.note-form input:focus { border-color: var(--brand); }
.note-author { font-weight: 500; }
.note-error { margin: -8px 0 16px; }
.notes { display: flex; flex-direction: column; gap: 10px; }
.note { padding: 12px 14px; border: 1px solid var(--border); border-radius: 14px; }
.note-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.note-head .tag { margin-left: 0; }

/* Documents */
.docs { display: flex; flex-direction: column; }
.doc {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-top: 1px solid var(--border);
}
.doc:first-child { border-top: 0; padding-top: 0; }
.doc-icon {
  width: 38px; height: 38px;
  border-radius: 12px;
  background: var(--bg);
  color: var(--muted);
  display: grid; place-items: center;
}
.doc-text { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.doc-text b { font-weight: 500; }
.doc-actions { display: flex; gap: 6px; min-width: 130px; justify-content: flex-end; }

/* History */
.history { display: flex; flex-direction: column; position: relative; }
.history li {
  display: grid;
  grid-template-columns: 14px 1fr auto;
  gap: 12px;
  padding: 10px 0;
  position: relative;
}
.history li::before {
  content: "";
  position: absolute;
  left: 4px; top: 24px; bottom: -10px;
  border-left: 2px solid var(--border);
}
.history li:last-child::before { display: none; }
.h-dot { width: 10px; height: 10px; margin-top: 5px; border-radius: 50%; background: var(--brand); }
.history b { font-weight: 500; display: block; }
.h-time { font-size: 12px; color: var(--muted); white-space: nowrap; }

/* Side cards */
.res-side { display: flex; flex-direction: column; gap: 20px; }
.side-card h2 { margin-bottom: 14px; }
.pay-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  margin-bottom: 12px;
}
.pay-card b { display: block; font-weight: 500; font-variant-numeric: tabular-nums; }
.pay-brand {
  width: 46px; height: 30px;
  border-radius: 6px;
  background: var(--text);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .5px;
  display: grid; place-items: center;
}
.btn-sm.full { width: 100%; height: 36px; }
.policy div { padding: 8px 0; border-top: 1px solid var(--border); }
.policy div:first-child { border-top: 0; padding-top: 0; }
.policy dt { font-size: 12px; color: var(--muted); }
.guest-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.guest-stats div { background: var(--bg); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; }
.guest-stats b { font-family: var(--font-head); font-size: 18px; font-weight: 800; }

/* ================= RESERVATION PAGE · PART 2 ================= */

/* Banners above the reservation */
.banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border-radius: 16px;
  border: 1px solid;
}
.banner-warn { background: var(--red-soft); border-color: #F3CFCD; color: #8E2F2C; }
.banner-info { background: var(--brand-soft); border-color: #F6D3AE; color: #8A4D12; }
.banner b { font-weight: 500; }
.money-balance.credit { background: var(--blue-soft); }
.money-balance.credit .money-value, .money-balance.credit .money-sub { color: var(--blue); }

/* Shared bits */
.sub-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.sub-head h3 { margin-bottom: 0; }
.mt { margin-top: 26px; }
.center { text-align: center; }
.hint-line { margin: 10px 0 0; color: var(--muted); font-size: 12px; }
.table .sub { display: block; font-size: 12px; color: var(--muted); font-weight: 400; }
.table-wrap.flush-x { margin: 0 -22px; }
.table.mini { min-width: 520px; }
.table.mini td, .table.mini th { padding: 10px 22px; }
.pay-brand.sm { width: 40px; height: 26px; font-size: 9px; }
.side-note { margin: -4px 0 12px; }

/* Room tab */
.room-now {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  margin-bottom: 24px;
}
.room-no {
  min-width: 72px;
  height: 64px;
  padding: 0 12px;
  border-radius: 14px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-family: var(--font-head);
  font-size: 26px;
  font-weight: 800;
  display: grid;
  place-items: center;
}
.room-now.no-room .room-no { background: var(--bg); color: var(--gray); }
.room-info { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.room-info b { font-weight: 500; font-size: 15px; }
.room-buttons { display: flex; gap: 8px; flex-wrap: wrap; }
.room-grid { display: grid; grid-template-columns: 280px 1fr; gap: 28px; }
.items { display: flex; flex-direction: column; }
.item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.item-row:last-child { border-bottom: 0; }
.stepper { display: flex; align-items: center; gap: 10px; }
.stepper button {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border);
  font-size: 16px;
  line-height: 1;
}
.stepper button:hover { border-color: var(--brand); color: var(--brand-dark); }
.stepper b { min-width: 14px; text-align: center; font-weight: 500; }

/* Folio tab */
.sum-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.sum {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px;
  border-radius: 14px;
  background: var(--bg);
}
.sum b { font-family: var(--font-head); font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.sum-total { background: linear-gradient(135deg, #FFF1E2 0%, #FCDDBE 100%); }
.sum-total .fact-label { color: #A8601C; }
.sum-total .muted { color: #8A6A4C; }
.folio-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.folio-bar .panel-actions { margin-bottom: 0; }
.folio-bar + .table-wrap, .hint-line + .table-wrap { margin-top: 16px; }

/* Notes */
.note-system { background: #FAF8F4; }
.request-top { display: flex; justify-content: space-between; align-items: center; }
.request-top .link { font-weight: 500; }

/* Emails tab */
.email-to {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  margin-bottom: 16px;
}
.email-to > div { display: flex; flex-direction: column; gap: 3px; }
.email-to b { font-weight: 500; }
.email-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.action-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(40, 32, 20, .06);
  text-align: left;
  cursor: pointer;
  transition: border-color .15s, background .15s, box-shadow .15s, transform .15s;
}
.action-card:hover {
  border-color: var(--brand);
  box-shadow: 0 6px 16px rgba(248, 158, 61, .15);
  transform: translateY(-1px);
}
.action-card:active { transform: translateY(0); }
.action-card:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.action-ico {
  width: 40px; height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand-dark);
  display: grid; place-items: center;
}
.action-text { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.action-text b { font-weight: 500; }
.action-go {
  width: 32px; height: 32px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: grid; place-items: center;
  transition: background .15s;
}
.action-go svg { width: 16px; height: 16px; stroke-width: 2.2; }
.action-card:hover .action-go { background: var(--brand-dark); }

/* ================= MODAL ================= */
.no-scroll { overflow: hidden; }
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(27, 26, 23, .4);
  backdrop-filter: blur(2px);
}
.modal-backdrop[hidden] { display: none; }
.modal {
  width: 100%;
  max-width: 520px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  background: var(--surface);
  border-radius: 22px;
  box-shadow: 0 20px 50px rgba(27, 26, 23, .2);
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px 0;
}
.modal-head h2 { font-size: 18px; }
.modal-x { width: 32px; height: 32px; border-radius: 50%; font-size: 22px; color: var(--muted); }
.modal-x:hover { background: var(--bg); color: var(--text); }
.modal-body { display: flex; flex-direction: column; gap: 14px; padding: 16px 22px; }
.modal-text { color: #4A4741; }
.modal-text b { color: var(--text); font-weight: 500; }
.modal-error { margin: 0 22px; padding: 10px 12px; border-radius: 12px; background: var(--red-soft); color: var(--red); font-size: 13px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 22px 20px; }
.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover { background: #C04440; }

.field textarea {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  font: inherit;
  resize: vertical;
  outline: 0;
}
.field textarea:focus { border-color: var(--brand); }
.field input:disabled { background: var(--bg); color: var(--muted); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field-row > .field { min-width: 0; }
.field-row input, .field-row select { width: 100%; min-width: 0; }
.field-label { font-size: 12px; font-weight: 500; color: #4A4741; margin-bottom: -6px; }

.radio-list { display: flex; flex-direction: column; gap: 8px; }
.radio {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.radio:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.radio input { margin-top: 3px; accent-color: var(--brand); }
.radio > span { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.radio b { font-weight: 500; }
.inline-input {
  height: 34px;
  margin-top: 6px;
  max-width: 160px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font: inherit;
  outline: 0;
}
.inline-input:focus { border-color: var(--brand); }
.checks { display: flex; flex-wrap: wrap; gap: 10px 20px; }
.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: var(--brand); }

.rates-list { display: flex; flex-direction: column; gap: 8px; }
.rate-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.rate-row input {
  width: 130px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  font: inherit;
  text-align: right;
}
.rate-row input:disabled { background: var(--bg); color: var(--muted); }

/* ================= PAYMENTS ================= */
.pay-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.row-actions { display: inline-flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }

/* segmented choice (Pay with / Operation) */
.seg {
  display: flex;
  gap: 3px;
  padding: 3px;
  background: var(--bg);
  border-radius: 16px;
}
.seg label { position: relative; cursor: pointer; flex: 1; min-width: 0; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 9px 6px;
  line-height: 1.2;
  border-radius: 13px;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  transition: background .15s, color .15s;
}
.seg label:hover span { color: var(--text); }
.seg input:checked + span { background: var(--surface); color: var(--brand-dark); box-shadow: 0 1px 3px rgba(40, 32, 20, .12); }
.seg input:disabled + span { opacity: .4; cursor: not-allowed; }
.seg input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 1px; }
.seg + .hint-line { margin-top: 8px; }

.pay-block { display: flex; flex-direction: column; gap: 12px; }
.field-row.three { grid-template-columns: 2fr 1fr 1fr; }

.terminal-wait {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 14px;
  background: var(--brand-soft);
  color: #8A4D12;
  font-weight: 500;
}
.spinner {
  width: 20px; height: 20px;
  flex-shrink: 0;
  border: 2.5px solid rgba(248, 158, 61, .3);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ================= NEW RESERVATION ================= */
.nr-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 20px;
  align-items: start;
}
.nr-main { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.nr-side { position: sticky; top: 150px; }

.step {
  display: inline-grid;
  place-items: center;
  width: 24px; height: 24px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 12px;
  vertical-align: 1px;
}

.nr-grid { display: grid; gap: 14px; }
.nr-grid.two { grid-template-columns: 1fr 1fr; }
.nr-grid.inner { gap: 12px; }
.nr-grid .full { grid-column: 1 / -1; }
.stay-grid { grid-template-columns: 1.3fr 1.3fr .7fr 1fr 1fr; align-items: end; }
.plan-grid { grid-template-columns: 1fr 1.4fr; align-items: end; margin-top: 14px; }
.plan-grid .hint-line { margin: 0 0 12px; }
.field input[type=date] { font-family: var(--font-body); }

.stepper.big { height: 40px; justify-content: space-between; padding: 0 4px; border: 1px solid var(--border); border-radius: 999px; }
.stepper.big button { width: 30px; height: 30px; }

/* availability table */
.avail tr.picked td { background: var(--brand-soft); }
.avail tr.dim td { color: var(--gray); }
.avail td b { font-weight: 500; }
.btn-sm:disabled { opacity: .45; cursor: not-allowed; border-color: var(--border); color: var(--muted); }

.cal-details, .more-fields { margin-top: 14px; }
.cal-details summary, .more-fields summary {
  cursor: pointer;
  color: var(--brand-dark);
  font-weight: 500;
  font-size: 13px;
  list-style: none;
}
.cal-details summary::before, .more-fields summary::before { content: "+ "; }
.cal-details[open] summary::before, .more-fields[open] summary::before { content: "− "; }
.cal-details .table-wrap, .more-fields .nr-grid { margin-top: 12px; }
.table.cal { min-width: 680px; }
.table.cal td, .table.cal th { padding: 8px 6px; }
.table.cal td:first-child, .table.cal th:first-child { padding-left: 22px; }
.c-low { color: var(--brand-dark); font-weight: 500; }
.c-zero { color: var(--red); font-weight: 500; }
.c-stay { background: #FFF7EE; }

/* options */
.opt-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 28px; }
.opt-list { display: flex; flex-direction: column; gap: 12px; }

/* summary */
.nr-summary { display: flex; flex-direction: column; gap: 14px; }
.sum-head { display: flex; flex-direction: column; gap: 3px; }
.sum-head b { font-weight: 500; font-size: 15px; }
.sum-empty { padding: 12px 14px; border-radius: 14px; background: var(--bg); display: flex; flex-direction: column; gap: 4px; }
.sum-empty b { font-weight: 500; }
.sum-nights { width: 100%; border-collapse: collapse; font-size: 13px; }
.sum-nights td { padding: 6px 0; border-bottom: 1px dashed var(--border); color: #4A4741; }
.override { margin-top: -4px; }
.override-input {
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  font: inherit;
  outline: 0;
}
.override-input:focus { border-color: var(--brand); }
.sum-lines div { display: flex; justify-content: space-between; padding: 6px 0; color: #4A4741; }
.sum-lines .sum-grand {
  margin-top: 6px;
  padding: 12px 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, #FFF1E2 0%, #FCDDBE 100%);
  color: var(--text);
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 800;
}
.btn.full { width: 100%; justify-content: center; }
.center-link { align-self: center; }
.sum-errors ul { margin: 6px 0 0 18px; list-style: disc; }
.sum-errors { margin: 0; }
.warn.small { font-size: 12px; }

/* ================= RESERVATION LISTS ================= */
.nav-menu-sep { display: block; height: 1px; margin: 6px 8px; background: var(--border); }

.list-toolbar { display: flex; flex-direction: column; gap: 14px; }
.list-tabs { display: flex; flex-wrap: wrap; align-self: flex-start; max-width: 100%; }
.list-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.date-nav { display: flex; align-items: center; gap: 6px; }
.date-nav input {
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font: inherit;
  background: var(--surface);
}
.icon-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: grid; place-items: center;
  color: var(--muted);
}
.icon-btn:hover { border-color: var(--brand); color: var(--brand-dark); }
.list-select {
  height: 40px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  font: inherit;
}
.list-search {
  flex: 1;
  min-width: 200px;
  display: flex; align-items: center; gap: 8px;
  height: 40px;
  padding: 0 14px;
  background: var(--bg);
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--muted);
}
.list-search:focus-within { border-color: var(--brand); background: var(--surface); }
.list-search input { flex: 1; border: 0; outline: 0; background: transparent; font: inherit; color: var(--text); }

.list-stats .ico svg { width: 10px; height: 10px; fill: currentColor; }
.list-stats .strip-item { cursor: default; }
.chip-n { margin-left: 4px; color: var(--gray); font-size: 12px; }
.chip.active .chip-n { color: var(--brand-dark); }
.chips + .muted { margin-left: auto; }
.list-table { min-width: 1000px; }
.list-table tbody tr { cursor: pointer; }
.room-no-cell { font-family: var(--font-head); font-weight: 800; font-size: 15px; }

@media print {
  .header, .list-toolbar, .page-actions, .row-actions, .toast, .nav-menu { display: none !important; }
  body { background: #fff; }
  .card { box-shadow: none; border-color: #ddd; }
}

/* ================= SELECTS ================= */
/* own arrow with room on the right, same look on every browser */
.list-select,
.field select,
.note-form select,
.big-select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 40px !important;
  background-color: var(--surface);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236F6C66' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  cursor: pointer;
}
.list-select:focus, .field select:focus { border-color: var(--brand); outline: 0; }
.field select:disabled { background-color: var(--bg); color: var(--muted); cursor: not-allowed; }

/* ================= ROOM LIST ================= */
.nav-menu-soon {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--gray);
  font-weight: 500;
  cursor: default;
}
.nav-menu-soon em {
  font-style: normal;
  font-size: 11px;
  padding: 1px 8px;
  border-radius: 99px;
  background: var(--gray-soft);
  color: var(--muted);
}

.view-seg { width: 180px; }
.legend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; font-size: 12px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend-sep { width: 1px; height: 14px; background: var(--border); }
.lg { width: 14px; height: 14px; border-radius: 4px; border: 2px solid; }
.lg-occ { border-color: var(--blue); background: var(--blue-soft); }
.lg-due { border-color: var(--brand); background: var(--brand-soft); }
.lg-arr { border-color: var(--green); background: var(--green-soft); }
.lg-held { border-color: var(--brand); border-style: dashed; background: #fff; }
.lg-vac { border-color: var(--border); background: #fff; }
.lg-ooo { border-color: var(--gray); background: repeating-linear-gradient(45deg, var(--gray-soft) 0 3px, #fff 3px 6px); }

.hk-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.hk-clean { background: var(--green); }
.hk-inspected { background: var(--teal); }
.hk-dirty { background: var(--red); }
.hk-label { display: inline-flex; align-items: center; gap: 8px; }

#roomsGrid { display: flex; flex-direction: column; gap: 20px; }
.room-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 10px; }
.room-tile {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-height: 84px;
  padding: 10px 12px;
  border: 1.5px solid var(--border);
  border-left-width: 5px;
  border-radius: 14px;
  background: var(--surface);
  text-align: left;
  transition: transform .12s, box-shadow .12s;
}
.room-tile:hover { transform: translateY(-1px); box-shadow: 0 6px 14px rgba(40, 32, 20, .08); }
.tile-top { display: flex; align-items: center; justify-content: space-between; }
.tile-top b { font-family: var(--font-head); font-size: 18px; font-weight: 800; }
.tile-type { font-size: 11px; color: var(--muted); letter-spacing: .04em; }
.tile-line { font-size: 12px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fo-occupied { border-color: #CFE0F6; border-left-color: var(--blue); background: #F7FAFE; }
.fo-dueout { border-color: #F6D3AE; border-left-color: var(--brand); background: var(--brand-soft); }
.fo-arriving { border-color: #CDEBDD; border-left-color: var(--green); background: #F4FBF7; }
.fo-held { border-style: dashed; border-color: var(--brand); border-left-style: solid; }
.fo-vacant .tile-line { color: var(--muted); font-weight: 400; }
.fo-ooo { border-left-color: var(--gray); background: repeating-linear-gradient(45deg, #F6F5F2 0 6px, #fff 6px 12px); }
.fo-ooo .tile-line { color: var(--muted); }

.rooms-table { min-width: 920px; }
.rooms-table tbody tr { cursor: pointer; }
.ooo-box { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--gray-soft); }
.ooo-box b { font-weight: 500; }
.ooo-form { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.ooo-form .field-row { width: 100%; }
.empty-card { text-align: center; color: var(--muted); padding: 40px; }

/* ================= ROOM INVENTORY ================= */
.page-wide { max-width: 1600px; }
.days-seg { width: 270px; }
.lg-inv-in { border-color: var(--blue); background: #DCE8FA; }
.lg-inv-conf { border-color: var(--brand); background: #FCE3C8; }
.lg-inv-out { border-color: var(--gray); background: var(--gray-soft); }

.inv-card { padding: 0; overflow: hidden; }
.inv-scroll { overflow: auto; max-height: calc(100vh - 300px); min-height: 360px; }
.inv { --label-w: 190px; min-width: max-content; }
.inv-type .inv-label .muted { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inv-row {
  display: grid;
  grid-template-columns: var(--cols);
  position: relative;
  border-bottom: 1px solid var(--border);
}
.inv-row > * { grid-row: 1; }
.inv-label {
  position: sticky;
  left: 0;
  z-index: 3;
  grid-column: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  background: var(--surface);
  border-right: 1px solid var(--border);
  min-height: 40px;
}
.inv-label b { font-family: var(--font-head); font-weight: 800; }
.inv-cell {
  min-height: 40px;
  border-right: 1px solid #F1EEE8;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 12px;
}
.inv-cell.wkend { background: #FBFAF7; }
.inv-cell.today { background: #FFF5EA; }
.inv-cell.past { background: repeating-linear-gradient(135deg, #FAF9F6 0 6px, #F6F4EF 6px 7px); }

/* header with days */
.inv-head { position: sticky; top: 0; z-index: 5; background: var(--surface); }
.inv-head .inv-label { z-index: 6; font-size: 12px; color: var(--muted); font-weight: 500; }
.inv-head .inv-cell { flex-direction: column; gap: 0; min-height: 52px; line-height: 1.15; }
.hd-dow { font-size: 11px; color: var(--muted); }
.hd-day { font-family: var(--font-head); font-size: 15px; }
.hd-mon { font-size: 10px; color: var(--brand-dark); font-weight: 600; text-transform: uppercase; }
.inv-head .today .hd-day { color: #fff; background: var(--brand); border-radius: 99px; padding: 0 7px; }

.inv-total .inv-cell { flex-direction: column; gap: 0; line-height: 1.15; }
.inv-total .inv-cell b { font-family: var(--font-head); font-size: 14px; }
.inv-total .occ { font-size: 10px; color: var(--muted); }
.inv-total .inv-label { flex-direction: column; align-items: flex-start; justify-content: center; gap: 0; }

/* room type rows */
.inv-type { background: #FAF8F4; cursor: pointer; }
.inv-type .inv-label { background: #FAF8F4; }
.inv-type .inv-cell { font-family: var(--font-head); font-weight: 700; font-size: 13px; background: transparent; }
.inv-type .inv-cell span { font-family: var(--font-body); font-weight: 400; font-size: 11px; color: var(--gray); }
.inv-type .inv-cell.low { color: var(--brand-dark); }
.inv-type .inv-cell.zero { color: var(--red); background: var(--red-soft); }
.caret svg { width: 14px; height: 14px; transition: transform .15s; }
.caret.open svg { transform: rotate(90deg); }

/* room rows: empty future days can be clicked */
.inv-room .inv-cell[data-room]:not(.past) { cursor: pointer; }
.inv-room .inv-cell[data-room]:not(.past):hover { background: var(--brand-soft); }
.inv-room .inv-cell[data-room]:not(.past):hover::after { content: "+"; color: var(--brand-dark); font-weight: 700; }
.row-hit .inv-label { background: var(--brand-soft); }
.inv-unassigned .inv-label { background: var(--red-soft); }

/* booking bars */
.inv-bar {
  z-index: 2;
  align-self: center;
  margin: 0 3px;
  height: 30px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  border-radius: 9px;
  border: 1.5px solid;
  font-size: 12px;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  transition: box-shadow .12s, transform .12s;
}
.inv-bar:hover { box-shadow: 0 4px 12px rgba(40, 32, 20, .15); transform: translateY(-1px); }
.inv-bar b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.inv-bar span { color: inherit; opacity: .7; font-size: 11px; }
.inv-bar.cut-l { border-top-left-radius: 0; border-bottom-left-radius: 0; margin-left: 0; border-left-style: dashed; }
.inv-bar.cut-r { border-top-right-radius: 0; border-bottom-right-radius: 0; margin-right: 0; border-right-style: dashed; }
.st-in { background: #DCE8FA; border-color: var(--blue); color: #1E4C8F; }
.st-conf { background: #FCE3C8; border-color: var(--brand); color: #8A4D12; }
.st-out { background: var(--gray-soft); border-color: #D5D2CB; color: var(--muted); }
.st-ooo { background: repeating-linear-gradient(45deg, #EFEDE8 0 6px, #F8F7F4 6px 12px); border-color: var(--gray); color: var(--muted); cursor: pointer; }
.st-ooo:hover { box-shadow: none; transform: none; }
.inv-bar .bal { position: absolute; top: 4px; right: 4px; width: 7px; height: 7px; border-radius: 50%; background: var(--red); }
.inv-bar.dim { opacity: .3; }
.inv-bar.hit { box-shadow: 0 0 0 3px rgba(248, 158, 61, .45); }

/* ----- inventory: drag and drop ----- */
.inv-bar { user-select: none; -webkit-user-select: none; -webkit-user-drag: none; }
.inv-bar.movable { cursor: grab; }
.inv.dragging, .inv.dragging .inv-bar { cursor: grabbing; }
.inv-bar.dragging-src { opacity: .35; }
.inv-ghost {
  position: fixed;
  z-index: 60;
  pointer-events: none;
  margin: 0;
  opacity: .95;
  box-shadow: 0 10px 24px rgba(40, 32, 20, .25);
  transform: rotate(-1deg);
}
.inv-ghost span { opacity: 1; font-weight: 600; }
.inv-row.drop-ok > .inv-cell, .inv-row.drop-ok > .inv-label { background: var(--green-soft); }
.inv-row.drop-bad > .inv-cell, .inv-row.drop-bad > .inv-label { background: var(--red-soft); }

.undo-bar {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 10px 10px 18px;
  border-radius: 999px;
  background: var(--text);
  color: #fff;
  font-size: 13px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .2);
}
.undo-bar button {
  height: 32px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-weight: 600;
}

/* ================= HOUSEKEEPING ================= */
.hk-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.hk-main { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.hk-side { position: sticky; top: 150px; }

.bulk-bar {
  position: sticky;
  top: 140px;
  z-index: 4;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 16px;
  background: var(--text);
  color: #fff;
}
.bulk-bar b { font-weight: 500; margin-right: 6px; }
.bulk-bar .list-select { height: 34px; color: var(--text); }
.bulk-bar .link { color: #FFD3A8; }

.hk-table { min-width: 820px; }
.check-col { width: 44px; }
.check-col input { width: 16px; height: 16px; accent-color: var(--brand); }
.hk-table tr.selected td { background: var(--brand-soft); }
.rush {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 8px;
  border-radius: 99px;
  background: var(--brand);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  vertical-align: 2px;
}

.svc { display: inline-block; padding: 3px 10px; border-radius: 99px; font-size: 12px; font-weight: 500; }
.svc-dep { background: var(--red-soft); color: var(--red); }
.svc-stay { background: var(--blue-soft); color: var(--blue); }
.svc-insp { background: var(--teal-soft); color: var(--teal); }
.svc-ooo { background: var(--gray-soft); color: var(--muted); }
.svc-done { background: var(--green-soft); color: var(--green); }

.hk-switch { display: inline-flex; padding: 3px; gap: 2px; border-radius: 999px; background: var(--bg); }
.hk-switch button { height: 28px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 500; color: var(--muted); }
.hk-switch button:hover { color: var(--text); }
.hk-switch button.on { color: #fff; }
.hk-switch .st-dirty { background: var(--red); }
.hk-switch .st-clean { background: var(--green); }
.hk-switch .st-inspected { background: var(--teal); }

.who-wrap { display: inline-flex; align-items: center; gap: 8px; }
.who-dot { width: 10px; height: 10px; border-radius: 50%; }
.who-select {
  height: 34px;
  padding: 0 34px 0 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font: inherit;
  font-size: 13px;
  -webkit-appearance: none;
  appearance: none;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236F6C66' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center;
  cursor: pointer;
}

/* housekeepers panel */
.team { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.mate { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 14px; cursor: pointer; border: 1px solid transparent; }
.mate:hover { background: var(--bg); }
.mate.active { border-color: var(--brand); background: var(--brand-soft); }
.avatar-sm {
  width: 34px; height: 34px;
  flex-shrink: 0;
  border-radius: 50%;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: grid; place-items: center;
}
.mate-text { flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.mate-text b { font-weight: 500; }
.mate-text .bar { height: 4px; }
.mate-x { width: 26px; height: 26px; border-radius: 50%; color: var(--gray); font-size: 18px; }
.mate-x:hover { background: var(--red-soft); color: var(--red); }
.team-add { display: flex; gap: 8px; }
.team-add input {
  flex: 1;
  min-width: 0;
  height: 34px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font: inherit;
  outline: 0;
}
.team-add input:focus { border-color: var(--brand); }

/* worksheets */
.sheets { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.sheet-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.sheet-head h2 { margin-bottom: 2px; }
.sheet-list { display: flex; flex-direction: column; }
.sheet-list li { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 9px 0; border-top: 1px solid var(--border); }
.sheet-list li:first-child { border-top: 0; }
.sheet-list b { font-family: var(--font-head); font-weight: 800; min-width: 36px; }
.sheet-list .rush { margin-left: 0; }
.sheet-guest { width: 100%; padding-left: 26px; }
.sheet-list li.is-done b, .sheet-list li.is-done .sheet-guest { color: var(--gray); text-decoration: line-through; }

@media print {
  .hk-side, .list-toolbar, .bulk-bar, #hkStats, #roomsCard { display: none !important; }
  .hk-layout { display: block; }
  .sheets { display: block !important; }
  .sheet { break-inside: avoid; margin-bottom: 16px; }
}

/* ================= MAINTENANCE ================= */
.wo-table { min-width: 960px; }
.wo-table tbody tr { cursor: pointer; }
.wo-status { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; font-size: 13px; }
.wo-status::before, .wo-dot { content: ""; width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.st-open::before, .wo-dot.st-open { background: var(--brand); }
.st-prog::before, .wo-dot.st-prog { background: var(--blue); }
.st-hold::before, .wo-dot.st-hold { background: var(--gray); }
.st-done::before, .wo-dot.st-done { background: var(--green); }

.wo-board { display: grid; grid-template-columns: repeat(4, minmax(220px, 1fr)); gap: 16px; overflow-x: auto; }
.wo-col { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 20px; background: #EAE7E0; min-height: 200px; }
.wo-col-head { display: flex; align-items: center; gap: 8px; padding: 2px 4px 6px; }
.wo-col-head b { font-family: var(--font-head); }
.wo-none { padding: 8px 4px; }
.wo-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--surface);
  border-left: 4px solid var(--gray);
  text-align: left;
  box-shadow: var(--shadow);
  transition: transform .12s, box-shadow .12s;
}
.wo-card:hover { transform: translateY(-1px); box-shadow: 0 6px 14px rgba(40, 32, 20, .1); }
.wo-card.prio-urgent { border-left-color: var(--red); }
.wo-card.prio-high { border-left-color: var(--brand); }
.wo-card.prio-normal { border-left-color: var(--blue); }
.wo-card-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.wo-card-top b { font-family: var(--font-head); }
.wo-card-text { font-size: 13px; }

.wo-log { display: flex; flex-direction: column; gap: 8px; max-height: 180px; overflow-y: auto; }
.wo-log li { padding: 8px 12px; border-radius: 12px; background: var(--bg); }
.wo-log b { font-weight: 500; }
.wo-add-note { display: flex; gap: 8px; }
.wo-add-note input {
  flex: 1;
  min-width: 0;
  height: 36px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font: inherit;
  outline: 0;
}
.wo-add-note input:focus { border-color: var(--brand); }
.danger-text { color: var(--red); border-color: #F3CFCD; }
.danger-text:hover { background: var(--red-soft); border-color: var(--red); color: var(--red); }

.wo-mini { display: flex; flex-direction: column; }
.wo-mini li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 0; border-top: 1px solid var(--border); }
.wo-mini li:first-child { border-top: 0; }

/* ================= LOST & FOUND ================= */
.lf-table { min-width: 980px; }
.lf-table tbody tr { cursor: pointer; }
.brand-text { color: var(--brand-dark); font-weight: 500; }
.guest-guess { padding: 10px 14px; border-radius: 14px; background: var(--blue-soft); }
.guest-guess b { font-weight: 500; }
.lf-seg span { font-size: 12px; padding: 8px 4px; }
.lf-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.lf-ship { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: var(--bg); }
.lf-ship .field-row { width: 100%; }
.modal .kv dd .list-select { height: 34px; }

/* ================= ROOM TYPES ================= */
.rt-table { min-width: 900px; }
.rt-table tbody tr { cursor: pointer; }
.rt-table tr.inactive td { opacity: .55; }
.sort-col { width: 56px; }
.sort-btn {
  display: block;
  width: 26px; height: 18px;
  margin: 1px 0;
  border-radius: 6px;
  font-size: 9px;
  color: var(--muted);
}
.sort-btn:hover:not(:disabled) { background: var(--brand-soft); color: var(--brand-dark); }
.sort-btn:disabled { opacity: .25; cursor: default; }
.rt-code {
  display: inline-block;
  min-width: 52px;
  padding: 2px 8px;
  margin-right: 6px;
  border-radius: 8px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-family: var(--font-head);
  font-size: 13px;
  text-align: center;
}

.modal.modal-wide { max-width: 760px; }
.form-h {
  margin: 8px 0 -2px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
}
.modal-body > .form-h:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.field-row.three-even { grid-template-columns: 1fr 1.6fr 1.4fr; }
.field-row.four { grid-template-columns: repeat(4, 1fr); }
.amenity-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 16px; }
.room-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.room-chip-sm {
  padding: 3px 9px;
  border-radius: 99px;
  background: var(--bg);
  font-size: 12px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.room-chip-sm.ooo { background: var(--gray-soft); color: var(--gray); text-decoration: line-through; }

/* ================= NUMBER BLOCKS (list pages) ================= */
/* each number sits in its own tinted block, no icon circles */
.list-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 0;
  background: none;
  border: 0;
  box-shadow: none;
  overflow: visible;
}
.list-stats .strip-item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  padding: 14px 18px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
}
.list-stats .strip-item::before, .list-stats .strip-item::after { display: none; }
.list-stats .strip-value { font-size: 30px; line-height: 1.1; }
.list-stats .strip-label { font-size: 13px; font-weight: 500; }

.tone-ico-brand  { background: var(--brand-soft) !important; border-color: #F6D9B8 !important; }
.tone-ico-brand .strip-value { color: var(--brand-dark); }
.tone-ico-blue   { background: var(--blue-soft) !important; border-color: #D3E2F6 !important; }
.tone-ico-blue .strip-value { color: #2F66B5; }
.tone-ico-green  { background: var(--green-soft) !important; border-color: #CDEBDD !important; }
.tone-ico-green .strip-value { color: #237F55; }
.tone-ico-red    { background: var(--red-soft) !important; border-color: #F3D2D0 !important; }
.tone-ico-red .strip-value { color: #B8403C; }
.tone-ico-teal   { background: var(--teal-soft) !important; border-color: #CDEBEE !important; }
.tone-ico-teal .strip-value { color: #187A84; }
.tone-ico-purple { background: var(--purple-soft) !important; border-color: #E2D9F4 !important; }
.tone-ico-purple .strip-value { color: #6449A8; }
.tone-ico-gray, .tone-ico-slate { background: #ECEAE4 !important; border-color: #E2DFD8 !important; }

/* dashboard: the same blocks are links */
.dash-stats .strip-item { transition: transform .12s, box-shadow .12s; }
.dash-stats a.strip-item:hover { transform: translateY(-1px); box-shadow: 0 6px 14px rgba(40, 32, 20, .08); }
.dash-stats .strip-value small, .dash-stats .strip-value .of { font-size: inherit; }

/* ================= RESPONSIVE ================= */

@media (max-width: 1100px) {
  .user-name { display: none; }
  .hk-layout { grid-template-columns: minmax(0, 1fr); }
  .hk-side { position: static; order: -1; }
  .nr-layout { grid-template-columns: minmax(0, 1fr); }
  .nr-side { position: static; }
  .stay-grid { grid-template-columns: 1fr 1fr 1fr; }
  .res-body { grid-template-columns: minmax(0, 1fr); }
  .res-side { display: grid; grid-template-columns: repeat(3, 1fr); }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-3 > .card:first-child { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .overview { grid-template-columns: 1fr; }
  .room-grid { grid-template-columns: 1fr; }
  .res-head { grid-template-columns: 1fr; }
  .res-actions { justify-content: flex-start; }
  .res-facts { grid-template-columns: 1fr 1fr; row-gap: 16px; }
  .fact:nth-child(3) { padding-left: 0; border-left: 0; }
  .res-side { grid-template-columns: 1fr; }
  .filters { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .header { width: calc(100% - 24px); top: 8px; margin-top: 8px; border-radius: 18px; }
  .topbar { flex-wrap: wrap; padding: 12px 14px; gap: 12px; }
  .datetime { padding-left: 12px; }
  .datetime-text { display: none; }
  .logo .logo-img { height: 19px; }
  .search { order: 5; flex-basis: 100%; max-width: none; }
  .nav { padding: 0 8px; }
  .page { padding: 20px 16px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .list-stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .list-stats .strip-item { padding: 12px 14px; }
  .list-stats .strip-value { font-size: 24px; }
  .field-row.three-even, .field-row.four { grid-template-columns: 1fr 1fr; }
  .amenity-grid { grid-template-columns: 1fr 1fr; }
  .wo-board { grid-template-columns: repeat(4, 80%); }
  .inv { --label-w: 84px; }
  .inv-label .muted { display: none; }
  .days-seg { width: 100%; }
  .inv-scroll { max-height: calc(100vh - 220px); }
  .room-tiles { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .view-seg { width: 100%; }
  .legend-sep { display: none; }
  .list-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .list-tabs .tab { white-space: nowrap; }
  .date-nav { width: 100%; }
  .date-nav input { flex: 1; min-width: 0; }
  .list-select, .list-search { width: 100%; }
  .stay-grid, .plan-grid, .nr-grid.two, .opt-grid { grid-template-columns: 1fr 1fr; }
  .nr-grid.two > .field, .plan-grid > * { grid-column: 1 / -1; }
  .nr-grid.two.inner > .field { grid-column: auto; }
  .stay-grid .field:nth-child(3) { grid-column: 1 / -1; }
  .opt-grid { grid-template-columns: 1fr; }
  .res-tabs { display: flex; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .res-tabs .tab { white-space: nowrap; }
  .banner { flex-direction: column; align-items: flex-start; }
  .room-now { flex-wrap: wrap; }
  .room-grid { grid-template-columns: 1fr; }
  .sum-grid { grid-template-columns: 1fr 1fr; }
  .email-actions, .pay-actions { grid-template-columns: 1fr; }
  .field-row.three { grid-template-columns: 1.4fr 1fr 1fr; }
  .seg span { font-size: 12px; padding: 8px 4px; }
  .field-row { grid-template-columns: 1fr; }
  .table-wrap.flush-x { margin: 0 -22px; }
  .money { grid-template-columns: 1fr; }
  .money-item + .money-item { border-left: 0; border-top: 1px solid var(--border); }
  .ov-grid { grid-template-columns: 1fr; }
  .res-head { padding: 20px; }
  .doc { flex-wrap: wrap; }
  .doc-actions { min-width: 0; }
  .filters { grid-template-columns: 1fr 1fr; }
  .big-search { padding-left: 14px; }
  .big-search input { font-size: 15px; }
  .page-actions { width: 100%; }
  .page-actions .btn { flex: 1; }
  #daySwitch { width: 100%; }
  #daySwitch .tab { flex: 1; }
  .strip { grid-template-columns: repeat(2, 1fr); }
  .strip-item + .strip-item::before,
  .strip-item:nth-child(n + 5)::after { display: none; }
  .strip-item { padding: 14px; }
  .kpi-value { font-size: 36px; }
}

/* ================= HOUSE ACCOUNTS ================= */
.ha-table { min-width: 960px; }
.ha-table tbody tr { cursor: pointer; }
.ha-folio { min-width: 860px; }
.ha-folio .row-actions { justify-content: flex-end; }
.ha-folio .tax-line td { color: var(--muted); font-size: 13px; padding-top: 4px; }
.ha-folio tr:has(+ .tax-line) td { border-bottom-color: transparent; }
.line-off td { color: var(--gray); }
.line-off .ln-text,
.line-off td:nth-child(6) { text-decoration: line-through; }
.line-off .pay { color: var(--gray); }

@media print {
  .res-actions, .back, .banner, .res-side .history, .ha-folio th:last-child { display: none !important; }
  .res-body { grid-template-columns: 1fr; }
  .money-balance.due, .money-balance.ok { background: none; }
}

/* ================= COMPANY ACCOUNTS ================= */
.ca-table { min-width: 1000px; }
.ca-table tbody tr { cursor: pointer; }
.ca-inv { min-width: 900px; }
.ca-pay { min-width: 640px; }
.ca-inv .row-actions { justify-content: flex-end; flex-wrap: nowrap; }

/* aging: bar + five columns */
.aging .card-head { margin-bottom: 14px; }
.aging-bar { display: flex; gap: 3px; height: 10px; border-radius: 99px; overflow: hidden; background: var(--bg); margin-bottom: 16px; }
.aging-bar span { display: block; min-width: 6px; }
.aging-bar .aging-empty { flex: 1; background: var(--bg); }
.aging-grid { display: grid; grid-template-columns: repeat(5, 1fr); }
.aging-item { display: grid; grid-template-columns: 10px 1fr; column-gap: 8px; row-gap: 2px; align-items: center; padding: 0 14px; }
.aging-item:first-child { padding-left: 0; }
.aging-item + .aging-item { border-left: 1px solid var(--border); }
.aging-item b, .aging-item .small { grid-column: 2; }
.aging-item b { font-family: var(--font-head); font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.aging-label { font-size: 13px; font-weight: 500; }
.aging-label .muted { font-weight: 400; }
.aging-dot { width: 10px; height: 10px; border-radius: 50%; }
.aging-0 { background: var(--green); }
.aging-1 { background: var(--brand); }
.aging-2 { background: #E0662A; }
.aging-3 { background: var(--red); }
.aging-4 { background: #8E2F2C; }

/* credit used */
.credit { display: flex; flex-direction: column; gap: 4px; min-width: 130px; }
.credit-track { height: 6px; border-radius: 99px; background: var(--bg); overflow: hidden; }
.credit-track span { display: block; height: 100%; border-radius: 99px; background: var(--green); }
.credit-track span.high { background: var(--brand); }
.credit-track span.over { background: var(--red); }
.money-sub .credit { margin-top: 4px; }
.money-sub .credit .sub { display: none; }

/* receive payment: invoices to pay */
.apply-list { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; margin-bottom: 10px; }
.apply-row { display: grid; grid-template-columns: 20px 1fr auto 90px; gap: 12px; align-items: center; padding: 10px 14px; cursor: pointer; }
.apply-row + .apply-row { border-top: 1px solid var(--border); }
.apply-row input { accent-color: var(--brand); width: 16px; height: 16px; }
.apply-due { color: var(--muted); font-size: 13px; }
.apply-pay { text-align: right; color: var(--gray); font-weight: 500; }
.apply-pay.on { color: var(--green); }

@media (max-width: 760px) {
  .aging-grid { grid-template-columns: 1fr 1fr; row-gap: 14px; }
  .aging-item { padding: 0; }
  .aging-item + .aging-item { border-left: 0; }
  .apply-row { grid-template-columns: 20px 1fr auto; }
  .apply-due { display: none; }
}
.apply-main .sub { display: block; margin-top: 2px; }
.apply-list + .btn-sm { align-self: flex-start; justify-self: start; width: auto; }

/* ================= DEPOSITS ================= */
.dep-table { min-width: 1040px; }
.dep-table th, .dep-table td { padding-left: 12px; padding-right: 12px; }
.dep-table th:first-child, .dep-table td:first-child { padding-left: 20px; }
.dep-table th:last-child, .dep-table td:last-child { padding-right: 20px; }
.dep-table .row-actions { flex-wrap: nowrap; }
.pay-text { color: var(--green); }
.dep-rules { min-width: 560px; }
.dep-rules .list-select { width: 100%; min-width: 170px; }
.policy dd .link { display: block; margin-top: 2px; }

/* number blocks on phones: long labels wrap instead of pushing the page wider */
@media (max-width: 760px) {
  .list-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .list-stats .strip-item { min-width: 0; }
  .list-stats .strip-label { white-space: normal; }
}

/* ================= CASHIER ================= */
.shift-card { padding: 18px 24px; }
.shift-title { display: flex; align-items: center; gap: 14px; }
.shift-title h2 { margin: 0 0 2px; }
.shift-title p { margin: 0; }
.shift-live { width: 12px; height: 12px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px var(--green-soft); flex-shrink: 0; }

.shift-open-card { display: grid; grid-template-columns: 1fr 360px; gap: 28px; align-items: start; padding: 24px; }
.shift-open-card h2 { margin: 6px 0 8px; font-size: 22px; }
.shift-open-card p { margin: 0 0 8px; }
.shift-open-form { display: flex; flex-direction: column; gap: 12px; }
.shift-open-form .btn { justify-content: center; }

.cash-table { min-width: 760px; }
.shifts-table { min-width: 1000px; }

.drawer { display: flex; flex-direction: column; margin-bottom: 14px; }
.drawer-line { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.drawer-line span { color: var(--muted); }
.drawer-line b { font-weight: 500; white-space: nowrap; }
.drawer-line.total { border-bottom: 0; padding-top: 10px; }
.drawer-line.total span { color: var(--text); font-weight: 500; }
.drawer-line.total b { font-family: var(--font-head); font-size: 18px; font-weight: 800; }
.drawer-line.ok b { color: var(--green); }
.drawer-line.bad b { color: var(--red); }
.h-dot-out { background: var(--gray); }

.close-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.count-list { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.count-row { display: grid; grid-template-columns: 1fr 90px 90px; gap: 10px; align-items: center; padding: 8px 12px; }
.count-row + .count-row { border-top: 1px solid var(--border); }
.count-row span { font-size: 14px; }
.count-row input { height: 36px; padding: 0 10px; border: 1px solid var(--border); border-radius: 10px; font: inherit; text-align: right; outline: 0; width: 100%; }
.count-row input:focus { border-color: var(--brand); }
.count-row b { text-align: right; font-weight: 500; }
.close-side { display: flex; flex-direction: column; gap: 4px; }

.report-meta { margin: 0 0 14px; color: var(--muted); }
.report-meta b { color: var(--text); font-weight: 500; }
.report-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

@media (max-width: 760px) {
  .shift-open-card, .close-grid, .report-grid { grid-template-columns: 1fr; }
  .shift-card { padding: 16px; }
}

@media print {
  body.print-report > *:not(.modal-backdrop) { display: none !important; }
  body.print-report .modal-backdrop { position: static; background: none; padding: 0; }
  body.print-report .modal { box-shadow: none; max-width: none; border: 0; }
  body.print-report .modal-foot, body.print-report .modal-x { display: none !important; }
}

/* ================= TRANSACTIONS ================= */
.tx-dates { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.seg.seg-inline { display: inline-grid; grid-auto-flow: column; grid-auto-columns: auto; margin: 0; }
.seg.seg-inline span { padding: 9px 16px; }
.tx-custom { display: flex; gap: 10px; }
.tx-custom .field { margin: 0; min-width: 160px; }
.tx-table { min-width: 980px; }
.tx-table tbody tr { cursor: pointer; }
.tx-table tfoot td { padding: 8px 20px; border-bottom: 0; color: var(--muted); }
.tx-table tfoot tr:first-child td { border-top: 1px solid var(--border); }
.tx-table tfoot .total td { color: var(--text); font-family: var(--font-head); font-weight: 800; font-size: 16px; background: var(--bg); }
@media (max-width: 760px) {
  .seg.seg-inline { display: grid; grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); width: 100%; }
  .seg.seg-inline span { padding: 9px 6px; }
  .tx-custom { width: 100%; }
  .tx-custom .field { flex: 1; min-width: 0; }
}
@media print {
  .tx-dates, #txChips { display: none !important; }
  .tx-table { min-width: 0; }
}

/* ================= RATE PLANS ================= */
.rp-head { flex-wrap: wrap; gap: 12px; }
.rp-table { min-width: 1180px; }
.rp-table tbody tr, .price-table tbody tr { cursor: pointer; }
.rp-table tr.inactive td { opacity: .55; }
.rp-code {
  display: inline-block; min-width: 44px; padding: 2px 8px; margin-right: 4px; border-radius: 8px;
  font-family: var(--font-head); font-size: 12px; font-weight: 800; letter-spacing: .02em; text-align: center;
}
.rp-base { background: var(--brand); color: #fff; }
.rp-derived { background: var(--brand-soft); color: var(--brand-dark); }
.rp-fixed { background: var(--blue-soft); color: #2F66B5; }
.rp-comp { background: var(--gray-soft); color: var(--muted); }
.ch-pills { display: flex; flex-wrap: wrap; gap: 4px; min-width: 150px; max-width: 220px; }
.ch-pill { padding: 2px 7px; border-radius: 99px; font-size: 11px; font-weight: 500; background: var(--bg); color: var(--gray); text-decoration: line-through; }
.ch-pill.on { background: var(--green-soft); color: var(--green); text-decoration: none; }
.price-table { min-width: 760px; }
.price-table td b { font-family: var(--font-head); font-weight: 700; }
.rp-foot { padding: 14px 0 0; margin: 0; }
.day-nav { display: inline-flex; align-items: center; gap: 10px; }
.day-nav b { min-width: 110px; text-align: center; font-weight: 500; }

.check-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 16px; margin-bottom: 8px; }
.fixed-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 14px; }
.rp-name { grid-column: span 2; }
.rp-preview { margin-top: 10px; }
.rp-prices { display: flex; flex-wrap: wrap; gap: 8px; }
.rp-prices div { display: flex; flex-direction: column; padding: 8px 14px; border-radius: 12px; background: var(--brand-soft); min-width: 84px; }
.rp-prices b { font-family: var(--font-head); font-size: 17px; font-weight: 800; color: var(--brand-dark); }

/* policies and packages */
.pol-table { min-width: 880px; }
.pkg-table { min-width: 760px; }
.pol-table tbody tr, .pkg-table tbody tr { cursor: pointer; }
.used-by { display: flex; flex-wrap: wrap; gap: 4px; }

@media (max-width: 760px) {
  .check-grid { grid-template-columns: 1fr; }
  .fixed-grid { grid-template-columns: 1fr 1fr; }
  .rp-name { grid-column: auto; }
}
.rp-table { min-width: 1080px; }
.rp-table td:nth-child(2) { max-width: 300px; }
.rp-table td:nth-child(5) { max-width: 230px; }
.rp-table td .sub { white-space: normal; }
.btn:disabled, .btn-sm:disabled { opacity: .45; cursor: not-allowed; }

/* ================= RATE CALENDAR ================= */
.rc-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.rc-controls .list-select { max-width: 280px; }
.rc-note { margin: 0 0 14px; }
.rc-wrap { overflow-x: auto; }
.table-wrap.rc-wrap { margin-bottom: 0; }   /* the legend sits under the grid, not over it */
.rc-grid { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 13px; }
.rc-grid th, .rc-grid td { border-bottom: 1px solid var(--border); text-align: center; padding: 0; height: 34px; min-width: 64px; }
.rc-grid .rc-first {
  position: sticky; left: 0; z-index: 1; background: var(--surface);
  text-align: left; padding: 6px 14px 6px 20px; min-width: 190px; border-right: 1px solid var(--border); white-space: nowrap;
}
.rc-grid thead th { background: var(--bg); padding: 6px 0; font-size: 11px; font-weight: 500; color: var(--muted); }
.rc-grid thead .rc-first { background: var(--bg); font-size: 13px; color: var(--text); }
.rc-day b { display: block; font-family: var(--font-head); font-size: 16px; font-weight: 800; color: var(--text); line-height: 1.2; }
.rc-day span { display: block; font-size: 10px; }
.rc-day.we { background: #F6EFE4 !important; }
.rc-day.today b { color: var(--brand-dark); }
.rc-day.today { box-shadow: inset 0 -3px 0 var(--brand); }
.rc-occ td { font-size: 12px; }
.occ { display: inline-block; padding: 2px 6px; border-radius: 6px; font-weight: 500; }
.occ.lo { color: var(--muted); }
.occ.mid { background: var(--brand-soft); color: var(--brand-dark); }
.occ.hi { background: var(--green-soft); color: var(--green); }
.rc-price td { border-top: 2px solid var(--border); height: 44px; }
.rc-price .rc-first { border-top: 2px solid var(--border); }
.rc-price .rc-first .sub { display: block; font-size: 11px; color: var(--muted); }
.price-btn {
  width: calc(100% - 6px); height: 34px; border-radius: 8px; font-family: var(--font-head); font-weight: 700; font-size: 14px; color: var(--text);
}
.price-btn:hover { background: var(--brand-soft); color: var(--brand-dark); }
.rc-cell.own .price-btn { background: #FFF7EE; }
.rc-cell.up .price-btn { color: var(--green); }
.rc-cell.down .price-btn { color: var(--red); }
.price-ro { font-family: var(--font-head); font-weight: 700; }
.price-input { width: 60px; height: 32px; border: 2px solid var(--brand); border-radius: 8px; text-align: center; font: inherit; font-weight: 700; outline: 0; }
.rc-avail td { font-size: 12px; color: var(--muted); height: 26px; }
.rc-avail .rc-first, .rc-restr .rc-first { font-size: 12px; color: var(--muted); padding-left: 32px; }
.rc-avail td.low { color: var(--brand-dark); font-weight: 500; }
.rc-avail td.zero { color: var(--red); font-weight: 700; }
.rc-restr td { height: 30px; }
.restr-btn { width: calc(100% - 6px); min-height: 24px; border-radius: 6px; display: inline-flex; flex-wrap: wrap; gap: 2px; justify-content: center; align-items: center; padding: 2px; }
.restr-btn.empty { color: transparent; }
.restr-btn:hover { background: var(--bg); color: var(--muted); }
.rs { display: inline-block; padding: 1px 5px; border-radius: 5px; font-size: 10px; font-weight: 700; background: var(--purple-soft); color: var(--purple); white-space: nowrap; }
.rs-stop { background: var(--red-soft); color: var(--red); }
.rc-legend { display: flex; flex-wrap: wrap; gap: 8px 20px; padding-top: 14px; font-size: 12px; color: var(--muted); align-items: center; }
.rc-legend > span { display: inline-flex; align-items: center; gap: 6px; }
.lg { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.lg-up { background: var(--green); }
.lg-down { background: var(--red); }
.log-table { min-width: 700px; }

.dow-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.dow { position: relative; cursor: pointer; }
.dow input { position: absolute; opacity: 0; }
.dow span { display: inline-block; padding: 7px 12px; border-radius: 99px; border: 1px solid var(--border); font-size: 13px; color: var(--muted); }
.dow input:checked + span { background: var(--brand-soft); border-color: #F6D3AE; color: var(--brand-dark); font-weight: 500; }
.dow input:focus-visible + span { outline: 2px solid var(--brand); }
.field-row.four { grid-template-columns: repeat(4, 1fr); }
.field .list-select { width: 100%; }

@media (max-width: 760px) {
  .rc-grid .rc-first { min-width: 120px; padding-left: 12px; }
  .rc-avail .rc-first, .rc-restr .rc-first { padding-left: 16px; }
  .rc-price .rc-first .sub, .rc-price .rc-first .muted { display: none; }
  .rc-controls .list-select { max-width: 100%; width: 100%; }
}

/* ================= NIGHT AUDIT ================= */
.page-tabs { margin: 4px 0 16px; }
.audit-day { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 24px; }
.audit-day h2 { margin: 4px 0 4px; font-size: 22px; }
.audit-day p { margin: 0; }
.audit-day.closed { background: var(--green-soft); border-color: #CDEBDC; }
.audit-badge { font-size: 13px; padding: 6px 12px; }
.chk-group { margin-bottom: 18px; }
.chk-group-head {
  display: flex; align-items: center; gap: 8px; margin-bottom: 8px;
  font-family: var(--font-head); font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted);
}
.chk { padding: 14px 16px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); }
.chk + .chk { margin-top: 8px; }
.chk-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.lv-block { background: var(--red); }
.lv-audit { background: var(--brand); }
.lv-info { background: #8FA3BF; }
.lv-ok { background: var(--green); }
.chk-title { display: flex; align-items: center; gap: 8px; }
.chk-title b { font-weight: 500; font-size: 15px; }
.chk-n { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px; display: inline-grid; place-items: center; font-size: 12px; font-weight: 700; }
.lv-block-n { background: var(--red-soft); color: var(--red); }
.lv-audit-n { background: var(--brand-soft); color: var(--brand-dark); }
.lv-info-n { background: var(--bg); color: var(--muted); }
.chk-link { margin-left: auto; }
.chk-hint { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.chk-rows { margin-top: 10px; border-top: 1px solid var(--border); }
.chk-row { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 7px 0; font-size: 13px; border-bottom: 1px solid var(--border); }
.chk-row:last-child { border-bottom: 0; padding-bottom: 0; }
.chk-who { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chk-detail { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chk-val { text-align: right; font-weight: 500; white-space: nowrap; }
.chk .room-chips { margin-top: 10px; }
.chk-clear { padding: 14px 16px; border-radius: 16px; background: var(--green-soft); }
.chk-clear-head { display: flex; align-items: center; gap: 8px; font-family: var(--font-head); font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--green); margin-bottom: 8px; }
.chk-clear-list { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: #2C6B4E; }
@media (max-width: 760px) {
  .chk-row { grid-template-columns: minmax(0, 1fr) auto; gap: 1px 12px; }
  .chk-detail { grid-column: 1; grid-row: 2; }
  .chk-val { grid-row: 1 / span 2; grid-column: 2; }
}
.audit-steps { display: flex; flex-direction: column; gap: 8px; margin: 12px 0; }
.step { display: grid; grid-template-columns: 18px 1fr; gap: 4px 10px; align-items: center; font-size: 14px; }
.step .step-res { grid-column: 2; }
.step-ok { color: var(--green); font-weight: 800; }
.btn.full { width: 100%; justify-content: center; }
.audit-done { padding: 24px; }
.audit-done-head { display: flex; gap: 16px; align-items: center; margin-bottom: 18px; }
.audit-done-head h2 { margin: 0 0 2px; }
.audit-done-head p { margin: 0; }
.done-mark { width: 44px; height: 44px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; font-size: 22px; font-weight: 800; flex-shrink: 0; }
.done-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.done-grid div { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; background: var(--bg); border-radius: 14px; }
.done-grid b { font-family: var(--font-head); font-size: 22px; font-weight: 800; }
.done-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.audit-table { min-width: 980px; }

/* ================= REPORTS ================= */
.rep-actions { align-items: flex-end; }
.rep-date { display: flex; flex-direction: column; gap: 2px; }
.rep-date input { height: 42px; padding: 0 12px; border: 1px solid var(--border); border-radius: 999px; font: inherit; background: var(--surface); }
.rep-two { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; align-items: start; }
.rep-two .rep-sec { margin: 0; }
.rep-table { min-width: 520px; }
.rep-table td, .rep-table th { padding-top: 8px; padding-bottom: 8px; }
.rep-group td { background: var(--bg); font-family: var(--font-head); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.rep-total td { font-weight: 700; background: var(--brand-soft); }
.rep-no { display: inline-grid; place-items: center; width: 24px; height: 24px; margin-right: 10px; border-radius: 8px; background: var(--brand-soft); color: var(--brand-dark); font-size: 12px; }
.rep-no:empty { display: none; }
.rep-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; }
.rep-cols h3 { font-family: var(--font-head); font-size: 14px; margin: 0 0 8px; }
.rep-cols .table-wrap.flush { margin: 0; }
.rep-note { margin-top: 8px; }

@media (max-width: 1100px) {
  .rep-two, .rep-cols { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .audit-day { flex-direction: column; align-items: flex-start; }
  .done-grid { grid-template-columns: 1fr 1fr; }
  .rep-actions { width: 100%; }
  .rep-date { flex: 1 1 100%; }
}
@media print {
  .page-tabs, .rep-actions, .rep-note { display: none !important; }
  .rep-sec { break-inside: avoid; }
  .rep-two { grid-template-columns: 1fr; }
  .rep-table { min-width: 0; }
}
.rep-two > *, .rep-cols > * { min-width: 0; }

/* audit steps and warning */
.audit-warn {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  max-width: 1440px; margin: 12px auto 0; padding: 10px 16px; border-radius: 14px;
  background: var(--red-soft); border: 1px solid #F3CFCD; color: #8E2F2C; font-size: 14px;
  width: calc(100% - 48px);
}
.audit-warn b { font-weight: 500; }
.audit-stepper { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; padding: 0; overflow: hidden; }
.astep { display: flex; gap: 10px; align-items: flex-start; padding: 16px 18px; border-left: 1px solid var(--border); }
.astep:first-child { border-left: 0; }
.astep div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.astep b { font-weight: 500; font-size: 14px; }
.astep-ico { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 13px; flex-shrink: 0; }
.astep.ok .astep-ico { background: var(--green-soft); color: var(--green); }
.astep.bad .astep-ico { background: var(--red); color: #fff; }
.astep.warn .astep-ico { background: var(--brand-soft); color: var(--brand-dark); }
.astep.wait .astep-ico { background: var(--bg); color: var(--muted); }
.astep.bad { background: #FFF8F7; }
.warn-check { color: var(--brand-dark); }
@media (max-width: 1100px) {
  .audit-stepper { grid-template-columns: 1fr; }
  .astep { border-left: 0; border-top: 1px solid var(--border); padding: 12px 16px; }
  .astep:first-child { border-top: 0; }
}
@media (max-width: 760px) { .audit-warn { width: calc(100% - 32px); } }

/* run the audit card */
.run-opts { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 14px; margin-bottom: 14px; }
.run-opt { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; cursor: pointer; }
.run-opt + .run-opt { border-top: 1px solid var(--border); }
.run-opt-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.run-opt-text b { font-weight: 500; font-size: 14px; }
.run-opt-text span { font-size: 12px; color: var(--muted); }
.run-opt .switch { flex-shrink: 0; }
.run-early { padding: 12px 14px; border-radius: 14px; background: var(--brand-soft); margin-bottom: 14px; }
.run-early p { margin: 0 0 8px; font-size: 13px; color: #8A4D12; line-height: 1.4; }
.run-early b { font-weight: 500; }
.run-early .check { font-size: 13px; font-weight: 500; color: var(--brand-dark); }
.run-always { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.run-always li { display: flex; gap: 8px; align-items: baseline; }
.run-always li::before { content: "✓"; color: var(--green); font-weight: 800; }
.run-block { padding: 12px 14px; border-radius: 14px; background: var(--red-soft); margin-bottom: 12px; font-size: 13px; color: #8E2F2C; }
.run-block b { font-weight: 500; }
.run-block ul { margin: 6px 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 3px; }
.run-block .link { color: #8E2F2C; text-decoration: underline; }
.chk-link { white-space: nowrap; flex-shrink: 0; }
.chk-title b { min-width: 0; }

/* ================= REPORTS CENTER ================= */
.rpt-bar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px; }
.rpt-date { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); }
.rpt-date input { height: 40px; padding: 0 12px; border: 1px solid var(--border); border-radius: 999px; font: inherit; color: var(--text); background: var(--surface); }
.rpt-period { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.rpt-period b { font-family: var(--font-head); font-weight: 700; }
.rpt-search { width: 100%; max-width: none; margin: 0 0 16px; background: var(--surface); }
.rpt-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: start; }
.rpt-cat { padding: 18px 8px 10px; margin: 0; }
.rpt-cat-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 0 12px 8px; border-bottom: 1px solid var(--border); margin-bottom: 4px; }
.rpt-cat-head h2 { font-size: 16px; margin: 0; }
.rpt-cat ul { list-style: none; margin: 0; padding: 0; }
.rpt-cat li a { display: flex; flex-direction: column; gap: 1px; padding: 8px 12px; border-radius: 10px; }
.rpt-cat li a b { font-weight: 500; font-size: 14px; color: var(--text); }
.rpt-cat li a span { font-size: 12px; color: var(--muted); }
.rpt-cat li a:hover { background: var(--brand-soft); }
.rpt-cat li a:hover b { color: var(--brand-dark); }
.rpt-table { min-width: 760px; }
.rpt-table tfoot td { border-bottom: 0; }
@media (max-width: 1200px) { .rpt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .rpt-grid { grid-template-columns: 1fr; }
  .rpt-period { margin-left: 0; align-items: flex-start; }
  .rpt-date { flex: 1 1 140px; }
}
@media print { .rpt-bar { display: none !important; } .rpt-table { min-width: 0; } }
.rpt-search { flex: none; height: 46px; padding: 0 16px; border: 1px solid var(--border); border-radius: 999px; display: flex; align-items: center; gap: 10px; }
.rpt-search svg { width: 18px; height: 18px; flex-shrink: 0; }
@media (max-width: 760px) { #periodSeg { grid-template-columns: 1fr 1fr; } }

/* hotel statistics book */
.hs-table { min-width: 680px; }
.hs-table th:first-child, .hs-table td:first-child { width: 34%; }
.hs-table .hs-day { background: #FFF8F0; font-weight: 700; }
.hs-table thead .hs-day { color: var(--brand-dark); }
.hs-table tr.hs-bold td { font-weight: 700; }
.rep-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rep-cols-3 .rep-table { min-width: 0; }
@media (max-width: 1100px) { .rep-cols-3 { grid-template-columns: 1fr; } }

/* ================= INVENTORY · AVAILABILITY ================= */
.av-grid td { vertical-align: middle; }
.av-grid .av-sub { font-size: 12px; color: var(--muted); padding-left: 44px; }
.av-main td { border-top: 2px solid var(--border); height: 52px; }
.av-main .rc-first { border-top: 2px solid var(--border); }
.av-main .rc-first .sub { display: block; font-size: 11px; color: var(--muted); }
.av-hotel td, .av-hotel .rc-first { background: #FCFAF7; }
.av-hotel .rc-first { padding-left: 20px; }
.av-toggle { display: flex; align-items: center; gap: 8px; text-align: left; width: 100%; padding: 0; color: inherit; font: inherit; }
.av-toggle .caret { display: inline-flex; width: 18px; height: 18px; align-items: center; justify-content: center; border-radius: 5px; color: var(--muted); }
.av-toggle:hover .caret { background: var(--bg); color: var(--text); }
.av-toggle svg { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.av-main .rc-first:has(.av-toggle) { padding-left: 14px; }

.av-num { display: block; font-family: var(--font-head); font-weight: 800; font-size: 16px; line-height: 1.15; color: var(--text); }
.av-of { display: block; font-size: 10.5px; color: var(--muted); line-height: 1.3; white-space: nowrap; }
.av-hotel .av-num { font-size: 17px; }
.av-cell { width: calc(100% - 6px); min-height: 44px; border-radius: 8px; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; padding: 3px 2px; }
.av-cell:hover { background: var(--brand-soft); }
.av-cell.low, .av-num.low { color: var(--brand-dark); }
.av-cell.low { background: #FFF4E8; }
.av-cell.low .av-num { color: var(--brand-dark); }
.av-cell.zero { background: var(--red-soft); }
.av-cell.zero .av-num, .av-num.zero { color: var(--red); }
.av-cell.over { background: var(--red); }
.av-cell.over .av-num, .av-cell.over .av-of { color: #fff; }
.av-num.over { color: var(--red); }
.av-cell .rs { font-size: 9.5px; padding: 0 4px; }

.av-line td { font-size: 12px; color: var(--muted); height: 28px; }
.av-line td:not(.rc-first) { font-variant-numeric: tabular-nums; }
.av-strong td { color: var(--text); font-weight: 500; }
.av-zero { color: #C9C2B8; }
.av-block { color: var(--blue); font-weight: 500; }
.av-link { color: var(--red); font-weight: 500; text-decoration: none; }
.av-link:hover { text-decoration: underline; }
.av-edit { width: calc(100% - 6px); height: 24px; border-radius: 6px; font: inherit; color: var(--text); font-weight: 500; border: 1px dashed transparent; }
.av-editable td:not(.rc-first) .av-edit:hover { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-dark); }
.av-edit.own { background: #FFF7EE; color: var(--brand-dark); }
.av-input { width: 52px; height: 26px; }

.av-key { font-family: var(--font-head); font-weight: 800; color: var(--text); }
.av-key-sub { font-weight: 400; font-size: 11px; color: var(--muted); }
.lg-low { background: #F8C58F; }
.lg-zero { background: #F3B3AC; }
.lg-over { background: var(--red); }
.av-formula { margin: 10px 0 0; font-size: 12px; color: var(--muted); }

/* one night dialog */
.av-night { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.av-night > * { min-width: 0; }
.av-sum { display: flex; flex-direction: column; }
.av-sum-row { display: grid; grid-template-columns: 18px 1fr auto; align-items: center; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.av-sum-row .sub { display: block; font-size: 11.5px; color: var(--muted); }
.av-sum-row b { font-family: var(--font-head); font-size: 15px; text-align: right; }
.av-sign { color: var(--muted); font-weight: 700; text-align: center; }
.av-sum-row.total { background: var(--bg); border-radius: 8px; border-bottom: 0; margin: 4px 0; padding: 8px 8px 8px 0; }
.av-sum-row.big b { font-size: 20px; }
.av-sum-row.big.low b { color: var(--brand-dark); }
.av-sum-row.big.zero b, .av-sum-row.big.over b { color: var(--red); }
.av-mini { width: 64px; height: 32px; border: 1px solid var(--border); border-radius: 8px; text-align: right; padding: 0 8px; font: inherit; font-weight: 700; }
.av-mini:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.av-sum .hint-line { margin: 8px 0 0; }
.av-sum .field { margin-top: 12px; }
.av-stays .form-h:first-child { margin-top: 0; }
.av-list { list-style: none; margin: 0 0 12px; padding: 0; max-height: 320px; overflow-y: auto; }
.av-list li { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.av-list li a { color: var(--text); text-decoration: none; }
.av-list li a:hover b { color: var(--brand-dark); }
.av-list .sub { grid-column: 1; font-size: 11.5px; color: var(--muted); }
.av-list .badge { grid-column: 2; grid-row: 1 / span 2; align-self: center; }

@media (max-width: 760px) {
  .av-night { grid-template-columns: 1fr; }
  .av-grid .av-sub { padding-left: 16px; }
  .av-main .rc-first .muted.small { display: none; }
}

/* ================= INVENTORY · GROUP BLOCKS ================= */
.bl-table { min-width: 860px; }
.bl-table tbody tr { cursor: pointer; }
.bl-table tbody tr:hover td { background: #FCFAF7; }
.bl-types { display: flex; flex-wrap: wrap; gap: 4px; }
.bl-type { display: inline-block; padding: 2px 7px; border-radius: 6px; background: var(--blue-soft); color: var(--blue); font-size: 12px; font-weight: 500; white-space: nowrap; }
.bl-pick { min-width: 150px; }
.bl-bar { height: 6px; border-radius: 99px; background: var(--bg); overflow: hidden; margin: 4px 0 4px; }
.bl-bar i { display: block; height: 100%; border-radius: 99px; background: var(--green); }
.bl-money { grid-template-columns: repeat(4, 1fr); }
.bl-cut { font-size: 22px; }
.bl-grid .bl-sum { background: #FCFAF7; border-left: 1px solid var(--border); min-width: 70px; }
.bl-grid thead .bl-sum { font-size: 12px; color: var(--text); font-weight: 500; }
.bl-num { font-family: var(--font-head); font-weight: 800; font-size: 15px; }
.av-edit.bl-num { height: 32px; }
.bl-grid .av-main td { height: 46px; }
.bl-grid .bl-input { width: 52px; }
.bl-rooms { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; margin-bottom: 12px; }
.bl-room { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px 8px 14px; border: 1px solid var(--border); border-radius: 10px; font-size: 13px; }
.bl-room .sub { display: block; font-size: 11.5px; color: var(--muted); }
.bl-room input { width: 64px; height: 34px; border: 1px solid var(--border); border-radius: 8px; text-align: right; padding: 0 8px; font: inherit; font-weight: 700; }
.bl-room input:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.av-sub-link { color: inherit; text-decoration: none; border-bottom: 1px dashed currentColor; }
.av-sub-link:hover { color: var(--brand-dark); }
.block-text { color: var(--blue); }
@media (max-width: 760px) {
  .bl-money { grid-template-columns: 1fr 1fr; }
  .bl-money .money-item:nth-child(3) { border-left: 0; }
  .bl-money .money-item:nth-child(n+3) { border-top: 1px solid var(--border); }
}

/* ================= INVENTORY · CHANNEL ALLOCATION ================= */
.ch-types { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.ch-types .chip-n { font-weight: 400; }
.ch-name { display: inline-flex; align-items: center; gap: 8px; }
.ch-dot { width: 10px; height: 10px; border-radius: 3px; display: inline-block; flex: none; background: var(--muted); }
.ch-web { background: var(--brand); }
.ch-bk { background: #2D5BA8; }
.ch-ex { background: #E9B21E; }
.ch-ab { background: #E0565B; }
.ch-other { background: #B9B0A4; }
.ch-grid .av-main .rc-first .sub { padding-left: 18px; }
.ch-cell.own { box-shadow: inset 0 0 0 1.5px var(--brand); background: #FFF7EE; }
.ch-cell.closed { background: #FBF1F0; }
.ch-cell.closed .av-num { color: #C9A9A6; }
.ch-cell.zero .av-num { color: var(--red); }
.ch-lg-own { background: #FFF7EE; box-shadow: inset 0 0 0 1.5px var(--brand); }

.ch-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.ch-facts > div { background: var(--bg); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.ch-facts b { font-family: var(--font-head); font-size: 20px; }
.ch-options { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.ch-opt { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; cursor: pointer; }
.ch-opt:has(input[type=radio]:checked) { border-color: var(--brand); background: #FFF9F2; }
.ch-opt input[type=radio] { accent-color: var(--brand); width: 16px; height: 16px; flex: none; }
.ch-opt > span { flex: 1; min-width: 0; }
.ch-opt .sub { display: block; font-size: 12px; color: var(--muted); }
.ch-opt .av-mini { flex: none; }

.ch-rules { min-width: 640px; }
.ch-rules td { vertical-align: middle; }
.ch-rules .list-select { min-width: 190px; }
.ch-val { display: inline-flex; align-items: center; gap: 6px; }
.ch-val .av-mini:disabled { background: var(--bg); color: var(--muted); }

.ch-insights { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 18px; }
.ch-insights > div { border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ch-insights b { font-family: var(--font-head); font-size: 20px; font-weight: 800; }
.ch-insights .sub { font-size: 12px; color: var(--muted); }
.ch-table { min-width: 1000px; }
.ch-share { min-width: 120px; }
.ch-share .bl-bar i { background: var(--brand); }
@media (max-width: 760px) {
  .ch-insights { grid-template-columns: 1fr 1fr; }
  .ch-facts b { font-size: 17px; }
}

/* ================= CONFIGURATION · CHANNELS ================= */
.more-menu a { display: block; padding: 9px 10px; border-radius: 7px; color: inherit; text-decoration: none; }
.more-menu a:hover { background: var(--bg); }
.tag-blue { background: var(--blue-soft); color: var(--blue); margin-left: 0; }
.tag-green { background: var(--green-soft); color: var(--green); margin-left: 0; }
.tag-red { background: var(--red-soft); color: var(--red); margin-left: 0; }
.banner-ok { background: var(--green-soft); border-color: #CDE7D4; color: #1F6B3A; }
.tab .tab-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); margin-left: 6px; vertical-align: middle; }
.tab .tab-n { display: inline-block; min-width: 18px; padding: 0 5px; border-radius: 99px; background: var(--red); color: #fff; font-size: 11px; line-height: 18px; text-align: center; }
.ch-ag { background: #6E3FB5; }
.ch-dot-lg { width: 14px; height: 14px; border-radius: 4px; }
.rs-map { background: var(--gray-soft); color: var(--muted); }
.ch-setup { margin-left: 6px; font-size: 11px; color: var(--muted); text-decoration: none; border: 1px solid var(--border); border-radius: 5px; padding: 0 5px; }
.ch-setup:hover { color: var(--brand-dark); border-color: var(--brand); }

.cm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.cm-card { display: flex; flex-direction: column; gap: 14px; margin: 0; cursor: pointer; transition: box-shadow .15s, border-color .15s; }
.cm-card:hover { border-color: #EBD9C5; box-shadow: 0 6px 18px rgba(60, 40, 20, .07); }
.cm-card.off, .cm-web { cursor: default; }
.cm-card.off:hover, .cm-web:hover { box-shadow: none; border-color: var(--border); }
.cm-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cm-card-head .ch-name b { font-family: var(--font-head); font-size: 17px; }
.cm-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; }
.cm-facts dt { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.cm-facts dd { margin: 2px 0 0; font-weight: 500; }
.cm-prog { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 6px 12px; font-size: 13px; color: var(--muted); }
.cm-prog b { color: var(--text); font-weight: 500; }
.cm-prog .bl-bar { margin: 0; }
.cm-warn, .cm-note, .cm-ok { margin: 0; font-size: 12.5px; padding: 8px 10px; border-radius: 8px; }
.cm-warn { background: var(--red-soft); color: #8E2F2C; }
.cm-note { background: var(--brand-soft); color: #8A4D12; }
.cm-ok { background: var(--green-soft); color: #1F6B3A; }
.cm-off { margin: 0; flex: 1; }
.cm-btn { margin-top: auto; align-self: flex-start; }

.cm-problems { border-color: #F3CFCD; background: #FFFBFA; }
.cm-problems h2 { font-size: 16px; margin: 0 0 8px; color: #8E2F2C; }
.cm-problems ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; }
.cm-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 0 0 12px; }
.cm-table { min-width: 760px; }
.cm-table td { vertical-align: middle; }
.cm-arrow { color: var(--muted); width: 24px; text-align: center; }
.cm-sel { width: 100%; max-width: 300px; }
.cm-sel.empty { border-color: #F2C9A0; background-color: #FFF9F2; color: var(--brand-dark); }
.cm-group td { background: var(--bg); padding-top: 10px; padding-bottom: 10px; }
.cm-group .cm-chip { margin-left: 8px; }
.cm-rate { padding-left: 28px !important; }
.cm-table tr.dim td:not(.cm-group td) { opacity: .55; }
.cm-chip { display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: 12px; font-weight: 500; white-space: nowrap; }
.cm-chip.ok { background: var(--green-soft); color: var(--green); }
.cm-chip.no { background: var(--brand-soft); color: var(--brand-dark); }
.cm-chip.warn { background: #FFF4D6; color: #8A6512; }
.cm-switch { gap: 8px; }
.cm-table tr.flash td { animation: cmFlash 2.4s ease-out; }
@keyframes cmFlash { 0%, 40% { background: #FFE9CF; } 100% { background: transparent; } }

.cm-conn .field small { display: block; margin-top: 4px; font-size: 12px; }
.cm-switches { display: flex; flex-direction: column; gap: 12px; margin: 8px 0 14px; }
.cm-actions { display: flex; justify-content: flex-end; }
.cm-log { min-width: 700px; }
.cm-log tr.cm-err td { background: #FFF7F6; }
.cm-steps { margin: 0 0 16px; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
@media (max-width: 760px) {
  .cm-toolbar { flex-direction: column; align-items: flex-start; }
}
.cm-table th:first-child, .cm-table td:first-child:not([colspan]) { width: 36%; }
.cm-table th:nth-child(2) { width: 36px; }
.cm-table th:nth-child(3) { width: 30%; }

/* ================= INVENTORY · ITEMS ================= */
.it-today { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.it-today > .card { margin: 0; min-width: 0; }
.it-task .card-head { margin-bottom: 2px; }
.it-task h2 .chip-n { font-family: var(--font-body); font-size: 12px; font-weight: 500; color: var(--muted); background: var(--bg); border-radius: 99px; padding: 1px 8px; margin-left: 6px; vertical-align: middle; }
.it-hint { margin: 0 0 10px; }
.it-tasks { list-style: none; margin: 0; padding: 0; }
.it-tasks li { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--border); }
.it-tasks .sub { display: block; font-size: 12px; color: var(--muted); }
.it-tasks a { color: inherit; }
.it-ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-family: var(--font-head); font-weight: 800; background: var(--brand-soft); color: var(--brand-dark); }
.it-parking { background: var(--blue-soft); color: var(--blue); }
.it-inroom { background: var(--green-soft); color: var(--green); }
.it-equipment { background: var(--purple-soft); color: var(--purple); }
.it-empty { margin: 4px 0 0; padding: 14px; background: var(--bg); border-radius: 10px; text-align: center; }
.it-table { min-width: 880px; }
.it-acts { white-space: nowrap; }
.it-manage { min-width: 760px; }
.it-manage input[type=text] { width: 100%; min-width: 160px; height: 34px; border: 1px solid var(--border); border-radius: 8px; padding: 0 10px; font: inherit; }
.it-manage input[type=text]:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.it-manage td { vertical-align: middle; }
.it-manage .list-select { min-width: 110px; }
.it-manage + .btn-sm, .table-wrap + #mgAdd { margin-top: 10px; }
.res-items { list-style: none; margin: 0; padding: 0; }
.res-items li { display: flex; flex-direction: column; padding: 7px 0; border-top: 1px solid var(--border); }
.res-items li:first-child { border-top: 0; }
.addon-left { margin-left: 2px; }
@media (max-width: 860px) {
  .it-today { grid-template-columns: 1fr; }
}

/* ================= REVENUE MANAGEMENT · FORECAST ================= */
.fc-kpis { display: grid; grid-template-columns: repeat(5, 1fr); padding: 0; overflow: hidden; }
.fc-kpi { display: flex; flex-direction: column; gap: 4px; padding: 18px 22px; min-width: 0; }
.fc-kpi + .fc-kpi { border-left: 1px solid var(--border); }
.fc-kpi b { font-family: var(--font-head); font-size: 24px; font-weight: 800; line-height: 1.15; }
.fc-sub { font-size: 12px; color: var(--muted); }
.fc-sub.fc-up { color: var(--green); }
.fc-sub.fc-down { color: var(--red); }

.fc-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12px; color: var(--muted); }
.fc-legend span { display: inline-flex; align-items: center; gap: 6px; }
.fc-sw { display: inline-block; width: 11px; height: 11px; border-radius: 3px; flex: none; }
.fc-sw.fc-otb { background: var(--brand); }
.fc-sw.fc-grp { background: #5B8DEF; }
.fc-sw.fc-pick { background: #F8C58F; }
.fc-sw.fc-bud { height: 0; border-top: 2px dashed var(--text); border-radius: 0; width: 14px; }

.fc-chart { position: relative; }
.fc-chart { min-height: 200px; }
.fc-chart svg { display: block; width: 100%; height: auto; stroke: none; fill: none; }   /* not an icon: undo the 18px icon size */
.fc-chart .fc-otb { fill: var(--brand); }
.fc-chart .fc-grp { fill: #5B8DEF; }
.fc-chart .fc-pick { fill: #F8C58F; }
.fc-chart .fc-we { fill: #F6EFE4; opacity: .55; }
.fc-chart .fc-grid { stroke: var(--border); stroke-width: 1; vector-effect: non-scaling-stroke; }
.fc-chart .fc-ax { fill: var(--muted); font-size: 11px; font-family: var(--font-body); }
.fc-chart .fc-ax-m { fill: var(--text); font-weight: 500; }
.fc-chart .fc-budget { fill: none; stroke: var(--text); stroke-width: 1.5; stroke-dasharray: 5 4; vector-effect: non-scaling-stroke; opacity: .7; }
.fc-chart .fc-hit { fill: transparent; cursor: pointer; }
.fc-chart .fc-bar.on .fc-hit { fill: rgba(248, 158, 61, .08); }
.fc-tip { position: absolute; z-index: 5; min-width: 190px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 8px 24px rgba(40, 30, 20, .12); padding: 10px 12px; font-size: 12.5px; pointer-events: none; }
.fc-tip > b { display: block; margin-bottom: 6px; font-size: 13px; }
.fc-tip div { display: flex; align-items: center; gap: 6px; padding: 2px 0; color: var(--muted); }
.fc-tip div span { margin-left: auto; color: var(--text); font-weight: 500; font-variant-numeric: tabular-nums; }
.fc-tip .fc-tip-total { border-top: 1px solid var(--border); margin-top: 4px; padding-top: 5px; color: var(--text); font-weight: 500; }

.fc-two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.fc-two > .card { margin: 0; min-width: 0; }
.fc-watch { list-style: none; margin: 0; padding: 0; }
.fc-watch li { display: grid; grid-template-columns: 12px 1fr auto; gap: 12px; align-items: center; padding: 11px 0; border-top: 1px solid var(--border); }
.fc-watch li:first-child { border-top: 0; padding-top: 2px; }
.fc-watch .sub { display: block; font-size: 12px; color: var(--muted); }
.fc-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--muted); }
.fc-hot .fc-dot { background: var(--red); }
.fc-cold .fc-dot { background: #5B8DEF; }
.fc-grp .fc-dot { background: var(--brand); }
.fc-types { min-width: 520px; }
.fc-occ-cell { min-width: 120px; }
.fc-occ-cell .bl-bar i { background: var(--brand); }
.fc-bud-bar i { background: var(--green) !important; }
.fc-months { min-width: 980px; }
.fc-table { min-width: 1080px; }
.fc-table tbody tr[data-night] { cursor: pointer; }
.fc-table tbody tr[data-night]:hover td { background: #FCFAF7; }
.fc-we-row td:first-child { box-shadow: inset 3px 0 0 #F0DFC8; }
.fc-up { color: var(--green); font-weight: 500; }
.fc-pill { display: inline-block; min-width: 46px; padding: 2px 7px; border-radius: 6px; background: var(--bg); font-weight: 500; text-align: center; }
.fc-pill.hot { background: var(--red-soft); color: var(--red); }
.fc-pill.cold { background: var(--blue-soft); color: var(--blue); }
.fc-facts { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) {
  .fc-kpis { grid-template-columns: repeat(3, 1fr); }
  .fc-kpi:nth-child(4) { border-left: 0; }
  .fc-kpi:nth-child(n+4) { border-top: 1px solid var(--border); }
}
@media (max-width: 760px) {
  .fc-kpis { grid-template-columns: 1fr 1fr; }
  .fc-kpi { padding: 14px 16px; }
  .fc-kpi b { font-size: 20px; }
  .fc-kpi:nth-child(4) { border-left: 1px solid var(--border); }
  .fc-kpi:nth-child(odd) { border-left: 0; }
  .fc-kpi:nth-child(n+3) { border-top: 1px solid var(--border); }
  .fc-kpi:last-child { grid-column: 1 / -1; }
  .fc-two { grid-template-columns: 1fr; }

  .fc-facts { grid-template-columns: 1fr 1fr; }
}

/* ================= REVENUE MANAGEMENT · PRICE RECOMMENDATIONS ================= */
.pr-toolbar .chips { margin-top: 0; }
.pr-bulk { position: sticky; top: 8px; z-index: 6; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 14px; margin-bottom: 12px; border-radius: 12px; background: var(--text); color: #fff; box-shadow: 0 8px 20px rgba(30, 20, 10, .18); }
.pr-bulk b { margin-right: auto; font-weight: 500; }
.pr-bulk .btn-sm:not(.btn-sm-primary) { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }
.pr-table { min-width: 1080px; }
.pr-table td { vertical-align: middle; }
.pr-table tr.pr-first td { border-top: 2px solid var(--border); }
.pr-table tr.picked td:not(.pr-night) { background: #FFF9F2; }
.pr-check { width: 34px; text-align: center; }
.pr-check input { width: 16px; height: 16px; accent-color: var(--brand); }
.pr-night { vertical-align: top !important; padding-top: 14px !important; background: #FCFAF7; border-right: 1px solid var(--border); min-width: 130px; }
.pr-night.we b { color: var(--brand-dark); }
.pr-demand { min-width: 120px; }
.pr-demand .bl-bar i { background: var(--brand); }
.pr-demand .bl-bar i.hot { background: var(--red); }
.pr-demand .bl-bar i.cold { background: #5B8DEF; }
.pr-rec { font-family: var(--font-head); font-size: 15px; }
.pr-up { color: var(--green) !important; font-weight: 500; }
.pr-down { color: var(--red) !important; font-weight: 500; }
.pr-why { display: flex; flex-wrap: wrap; gap: 4px; max-width: 360px; }
.pr-chip { display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: 12px; background: var(--bg); color: var(--muted); }
.pr-chip.up { background: var(--green-soft); color: #1F6B3A; }
.pr-chip.down { background: var(--blue-soft); color: var(--blue); }
.pr-chip b { font-weight: 700; }
.pr-acts { white-space: nowrap; }
.pr-rules { display: flex; flex-direction: column; gap: 8px; margin-bottom: 6px; }
.pr-rule { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 14px; padding: 8px 12px; border: 1px solid var(--border); border-radius: 10px; }
.pr-rule .av-mini { width: 70px; }
.pr-auto { margin-top: 14px; }

/* ================= REVENUE MANAGEMENT · PICKUP & PACE ================= */
.fc-sw.pk-gain, .fc-chart .pk-gain { background: #3FA36B; fill: #3FA36B; }
.fc-sw.pk-lost, .fc-chart .pk-lost { background: #E0565B; fill: #E0565B; }
.fc-chart .pk-zero { stroke: #CFC8BC; }
.pk-src { min-width: 460px; }
.pk-src tbody tr { cursor: pointer; }
.pk-src tbody tr:hover td, .pk-src tr.pk-on td { background: #FFF9F2; }
.pk-src .bl-bar i { background: #3FA36B; }
.pk-clear { margin-top: 10px; }
.pk-tip { margin: 10px 0 0; }
.pk-feed { list-style: none; margin: 0; padding: 0; }
.pk-feed li { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; padding: 9px 0; border-top: 1px solid var(--border); }
.pk-feed li:first-child { border-top: 0; padding-top: 2px; }
.pk-feed a { color: inherit; text-decoration: none; }
.pk-feed a:hover b { color: var(--brand-dark); }
.pk-feed .sub { display: block; font-size: 12px; color: var(--muted); }
.pk-sign { font-family: var(--font-head); font-weight: 800; text-align: center; border-radius: 8px; padding: 6px 0; font-size: 13px; }
.pk-k-new .pk-sign { background: var(--green-soft); color: var(--green); }
.pk-k-cxl .pk-sign { background: var(--red-soft); color: var(--red); }
.pk-k-cxl .pk-amt { color: var(--muted); text-decoration: line-through; font-weight: 500; }
.pk-table { min-width: 1060px; }
.pk-table tbody tr { cursor: pointer; }
.pk-table tbody tr:hover td { background: #FCFAF7; }
.pk-pace { display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: 12px; font-weight: 500; white-space: nowrap; }
.pk-pace.ahead { background: var(--green-soft); color: var(--green); }
.pk-pace.on { background: var(--bg); color: var(--muted); }
.pk-pace.behind { background: var(--red-soft); color: var(--red); }
.pk-new { display: inline-block; font-size: 10px; font-weight: 700; text-transform: uppercase; color: var(--green); background: var(--green-soft); border-radius: 4px; padding: 0 4px; }

/* ================= REVENUE MANAGEMENT · BUDGET & GOALS ================= */
.fc-sw.bg-act, .fc-chart .bg-actual { background: var(--brand); fill: var(--brand); }
.fc-sw.bg-bud { background: transparent; border: 1.5px solid #8C8476; }
.fc-chart .bg-budget { fill: #F1EEE8; stroke: #8C8476; stroke-width: 1.5; }
.bg-goal { display: flex; flex-direction: column; gap: 12px; }
.bg-goal-head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.bg-goal-head > div { display: flex; flex-direction: column; gap: 2px; }
.bg-goal-head b { font-family: var(--font-head); font-size: 24px; font-weight: 800; }
.bg-goal-now { text-align: right; align-items: flex-end; }
.bg-track { position: relative; height: 14px; border-radius: 99px; background: var(--bg); overflow: visible; }
.bg-track i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 99px; }
.bg-track .bg-fc { background: #F8C58F; }
.bg-track .bg-done { background: var(--brand); }
.bg-mark { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--text); border-radius: 2px; }
.bg-need { margin: 0; font-size: 14px; }
.bg-need .link { margin-left: 6px; }
.bg-save { display: flex; align-items: center; gap: 8px; }
.bg-table { min-width: 1120px; }
.bg-table td { vertical-align: middle; }
.bg-table tr.bg-now td { background: #FFF9F2; }
.bg-table tr.bg-past td { color: var(--muted); }
.bg-in { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); }
.bg-in input { width: 64px; height: 32px; border: 1px solid var(--border); border-radius: 8px; padding: 0 8px; font: inherit; font-weight: 500; color: var(--text); text-align: right; background: var(--surface); }
.bg-in input:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
@media (max-width: 760px) {
  .bg-goal-now { text-align: left; align-items: flex-start; }
}

/* ================= CONFIGURATION · PROPERTY DETAILS ================= */
.pd-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; padding-bottom: 80px; }
.pd-main > .card, .pd-side > .card { margin: 0 0 20px; }
.pd-side { position: sticky; top: 16px; }
.pd-layout .field small { display: block; margin-top: 4px; font-size: 12px; }
.pd-layout .field input:disabled { background: var(--bg); color: var(--muted); }
.pd-addr { grid-template-columns: 2fr 1fr 1fr; }
.pd-bad { border-color: var(--red) !important; box-shadow: 0 0 0 3px var(--red-soft) !important; }
.pd-stars { display: flex; flex-wrap: wrap; gap: 4px; }
.pd-star { position: relative; cursor: pointer; }
.pd-star input { position: absolute; opacity: 0; }
.pd-star span { display: inline-block; padding: 7px 10px; border: 1px solid var(--border); border-radius: 8px; font-size: 12.5px; color: var(--muted); letter-spacing: 1px; }
.pd-star input:checked + span { background: var(--brand-soft); border-color: #F6D3AE; color: var(--brand-dark); font-weight: 500; }
.pd-star input:focus-visible + span { outline: 2px solid var(--brand); }
.pd-logo { height: 120px; border: 1px dashed var(--border); border-radius: 12px; display: grid; place-items: center; background: var(--bg); margin-bottom: 12px; overflow: hidden; }
.pd-logo img { max-width: 80%; max-height: 90px; object-fit: contain; }
.pd-logo-empty { width: 64px; height: 64px; border-radius: 16px; background: var(--brand); color: #fff; display: grid; place-items: center; font-family: var(--font-head); font-weight: 800; font-size: 28px; }
.pd-logo-actions { display: flex; gap: 8px; margin-bottom: 8px; }
.pd-upload { cursor: pointer; display: inline-flex; align-items: center; }
.pd-doc { border: 1px solid var(--border); border-radius: 10px; padding: 14px; font-size: 12.5px; background: #fff; }
.pd-doc-head { display: flex; gap: 12px; align-items: flex-start; padding-bottom: 10px; border-bottom: 2px solid var(--brand); margin-bottom: 10px; }
.pd-doc-head img { max-width: 70px; max-height: 44px; object-fit: contain; }
.pd-doc-head .pd-doc-mark { flex: none; width: 40px; height: 40px; border-radius: 10px; background: var(--brand); color: #fff; display: grid; place-items: center; font-family: var(--font-head); font-weight: 800; font-size: 18px; }
.pd-doc-head b { display: block; font-family: var(--font-head); font-size: 15px; }
.pd-doc-head span { display: block; color: var(--muted); font-size: 11.5px; }
.pd-doc-head .pd-doc-stars { display: inline; color: var(--brand); margin-left: 6px; letter-spacing: 1px; }
.pd-doc-times { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 10px; }
.pd-doc-times > div { background: var(--bg); border-radius: 8px; padding: 6px 8px; }
.pd-doc-times span { display: block; font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.pd-doc-times b { font-size: 12px; font-weight: 500; }
.pd-doc p { margin: 4px 0; color: #3d3a36; }
.pd-doc .pd-doc-legal { margin-top: 10px; font-size: 11px; color: var(--muted); }
.pd-bar { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 30; display: flex; align-items: center; gap: 10px; padding: 10px 12px 10px 18px; background: var(--text); color: #fff; border-radius: 14px; box-shadow: 0 12px 30px rgba(30, 20, 10, .25); width: max-content; max-width: calc(100% - 32px); }
.pd-bar[hidden] { display: none; }
.pd-bar span { margin-right: 8px; font-size: 14px; }
.pd-bar .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }
@media (max-width: 1000px) {
  .pd-layout { grid-template-columns: 1fr; }
  .pd-side { position: static; }
}
@media (max-width: 760px) {
  .pd-addr { grid-template-columns: 1fr; }
  .pd-bar { flex-wrap: wrap; justify-content: flex-end; }
  .pd-bar span { width: 100%; }
}

/* ================= CONFIGURATION · TAXES & FEES ================= */
.tx-layout .pd-main > .card { margin-bottom: 16px; }
.tx-card { padding: 20px 22px; }
.tx-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.tx-head h2 { margin: 0 0 2px; }
.tx-head .muted { display: block; }
.tx-sum { font-family: var(--font-head); font-weight: 800; font-size: 20px; color: var(--brand-dark); background: var(--brand-soft); border-radius: 10px; padding: 4px 12px; white-space: nowrap; }
.tx-parts { display: flex; flex-direction: column; gap: 8px; }
.tx-part { display: grid; grid-template-columns: minmax(0, 1fr) 110px 32px; gap: 8px; align-items: center; }
.tx-name { width: 100%; height: 38px; border: 1px solid var(--border); border-radius: 9px; padding: 0 12px; font: inherit; color: var(--text); background: var(--surface); }
.tx-pct { display: flex; align-items: center; height: 38px; border: 1px solid var(--border); border-radius: 9px; background: var(--surface); padding: 0 10px; gap: 4px; }
.tx-pct input { width: 100%; min-width: 0; border: 0; outline: 0; font: inherit; font-weight: 500; text-align: right; background: transparent; color: var(--text); padding: 0; }
.tx-pct i { font-style: normal; color: var(--muted); font-size: 13px; }
.tx-name:focus, .tx-pct:focus-within, .tx-ex-in input:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.tx-x { width: 32px; height: 32px; border-radius: 8px; font-size: 18px; line-height: 1; color: var(--muted); }
.tx-x:hover:not(:disabled) { background: var(--red-soft); color: var(--red); }
.tx-x:disabled { opacity: .3; cursor: default; }
.tx-add { margin-top: 10px; font-size: 13px; font-weight: 500; color: var(--brand-dark); padding: 4px 0; }
.tx-add:hover { text-decoration: underline; }
.tx-set { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 0; border-top: 1px solid var(--border); }
.tx-head + .tx-set { border-top: 0; padding-top: 0; }
.tx-set b { display: block; font-weight: 500; }
.tx-ctrl { display: flex; gap: 8px; flex: none; }
.tx-ctrl .tx-pct { width: 130px; }
.tx-feename { width: 170px; }
.tx-money input { text-align: left; }
.tx-foot { margin: 12px 0 0; }
.tx-ex-in { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.tx-ex-in label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); }
.tx-ex-in input { width: 100%; height: 36px; border: 1px solid var(--border); border-radius: 9px; padding: 0 10px; font: inherit; font-weight: 500; color: var(--text); min-width: 0; }
.tx-line { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 13.5px; }
.tx-line span { color: var(--muted); }
.tx-line.total { border-bottom: 0; background: var(--brand-soft); border-radius: 9px; padding: 9px 12px; margin-top: 8px; }
.tx-line.total span { color: var(--text); font-weight: 500; }
.tx-line.total b { font-family: var(--font-head); font-size: 16px; color: var(--brand-dark); }
.tx-warn { margin: 0 6px; }
@media (max-width: 760px) {
  .tx-card { padding: 16px; }
  .tx-part { grid-template-columns: minmax(0, 1fr) 92px 32px; }
  .tx-set { flex-direction: column; align-items: stretch; gap: 8px; }
  .tx-ctrl { width: 100%; }
  .tx-feename { flex: 1; width: auto; min-width: 0; }
  .tx-ctrl .tx-pct { width: 120px; }
}

/* ================= CONFIGURATION · USERS & ROLES ================= */
.us-table { min-width: 860px; }
.us-table td { vertical-align: middle; }
.us-user { display: flex; align-items: center; gap: 12px; }
.us-user .sub { display: block; }
.us-av { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-head); font-weight: 800; font-size: 13px; background: var(--brand-soft); color: var(--brand-dark); }
.us-gm { background: #E6EEFD; color: #2F5BB7; }
.us-desk { background: var(--green-soft); color: var(--green); }
.us-night { background: #ECE7FB; color: #5B3FB0; }
.us-hk { background: #E3F4F4; color: #1F7A7A; }
.us-acct { background: #FDF3D9; color: #8A6512; }
.us-rm { background: #FCE7EA; color: #B23A4C; }
.us-me { display: inline-block; font-size: 10.5px; font-weight: 700; text-transform: uppercase; color: var(--brand-dark); background: var(--brand-soft); border-radius: 4px; padding: 0 5px; margin-left: 4px; }
.us-role { font-weight: 500; }
.us-off td { opacity: .55; }
.us-acts { white-space: nowrap; }
.us-acts .more { display: inline-block; position: relative; }
.us-acts .more-btn { min-width: 32px; }
.us-acts .more-menu { right: 0; left: auto; text-align: left; min-width: 200px; }
.us-note { display: block; padding: 8px 10px; font-size: 12px; color: var(--muted); }
.rl-table { min-width: 980px; }
.rl-table th { vertical-align: bottom; }
.rl-table th .sub { display: block; font-weight: 400; }
.rl-table td { vertical-align: middle; }
.rl-table td:first-child { min-width: 210px; }
.rl-lv { display: inline-block; min-width: 54px; padding: 4px 8px; border-radius: 7px; font-size: 12px; font-weight: 500; text-align: center; border: 1px solid transparent; }
.rl-lv.edit { background: var(--green-soft); color: var(--green); }
.rl-lv.view { background: var(--blue-soft); color: var(--blue); }
.rl-lv.none { background: var(--bg); color: #B5AEA3; }
button.rl-lv:hover { border-color: var(--brand); }
.rl-lv.locked, .rl-check.locked { opacity: .75; }
.rl-check { width: 26px; height: 26px; border-radius: 7px; border: 1.5px solid var(--border); display: inline-grid; place-items: center; font-size: 14px; font-weight: 700; color: #fff; background: var(--surface); }
.rl-check.on { background: var(--brand); border-color: var(--brand); }
button.rl-check:hover { border-color: var(--brand); }
.rl-sep td { background: var(--bg); font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; padding-top: 8px; padding-bottom: 8px; }
.rl-actions td { border-bottom: 0; }
.no-access { max-width: 520px; margin: 40px auto; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 36px 28px; }
.no-access h1 { margin: 0; }
.no-access p { margin: 0 0 8px; }
.no-access-ico { font-size: 34px; }
.nav-menu.um-menu { min-width: 260px; }
.um-head { padding: 8px 10px 6px; }
.um-head b { display: block; }
.um-head span { font-size: 12px; color: var(--muted); }
.um-label { display: block; padding: 4px 10px; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.nav-menu.um-menu a em { font-style: normal; font-size: 11.5px; color: var(--muted); margin-left: 8px; float: right; }
.list-toolbar > .chips:first-child { margin-top: 0; }
.us-card { padding-top: 0; overflow: hidden; }
.topbar .search[hidden], .nav .nav-item[hidden] { display: none; }

/* =========================================
   AUDIT LIST (audits.html)
   ========================================= */
.au-next { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px; padding: 22px 24px; }
.au-next h2 { margin: 4px 0; font-size: 22px; }
.au-next p { margin: 0; }
.au-next p b { font-weight: 500; color: var(--text); }
.au-next.late { border-color: #F3CFCD; }
.au-next.closed { grid-template-columns: minmax(0, 1fr) auto; background: var(--green-soft); border-color: #CDEBDC; }
.au-badge { font-size: 13px; padding: 6px 12px; }
.au-facts { display: flex; gap: 8px; }
.au-fact { display: flex; flex-direction: column; min-width: 128px; padding: 10px 14px; border-radius: 12px; background: var(--bg); }
.au-fact span { font-size: 12px; color: var(--muted); }
.au-fact b { font-family: "Manrope", sans-serif; font-size: 20px; font-weight: 700; line-height: 1.3; }
.au-fact small { font-size: 12px; color: var(--muted); }
.au-fact.ok b { color: var(--green); }
.au-fact.warn b { color: var(--brand-dark); }
.au-fact.bad { background: var(--red-soft); }
.au-fact.bad b, .au-fact.bad small { color: var(--red); }

.au-card { padding-top: 0; padding-bottom: 0; overflow: hidden; }
.au-card .empty { margin: 20px 0; }
.au-table { min-width: 1060px; }
.au-table td { vertical-align: middle; }
.au-exp-col { width: 36px; padding-right: 0 !important; }
.au-row { cursor: pointer; }
.au-row:hover td { background: var(--bg); }
.au-row.open td { background: var(--brand-soft); border-bottom-color: transparent; }
.au-exp { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; color: var(--muted); }
.au-exp:hover { background: var(--card); color: var(--text); }
.au-exp svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s; }
.au-row.open .au-exp svg { transform: rotate(90deg); }
.au-acts { justify-content: flex-end; flex-wrap: nowrap; }
.au-acts .more-menu { right: 0; left: auto; text-align: left; min-width: 190px; }
.au-detail td { background: var(--brand-soft); padding: 4px 16px 18px !important; }
.au-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.au-box { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px; }
.au-box h3 { margin: 0 0 8px; font-size: 14px; font-weight: 600; }
.au-line { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; font-size: 13px; }
.au-line span { color: var(--muted); }
.au-line b { font-weight: 500; text-align: right; }
.au-line.total { margin-top: 4px; padding-top: 8px; border-top: 1px solid var(--border); }
.au-line.total span { color: var(--text); }
.au-line.total b { font-weight: 700; }
.au-did { margin: 8px 0 0; font-size: 13px; display: flex; flex-direction: column; gap: 2px; }
.au-m-sub { margin: 0 0 12px; }
.au-checks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; margin-top: 6px; }

@media (max-width: 1180px) {
  .au-next { grid-template-columns: 1fr; gap: 16px; }
  .au-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .au-facts { flex-direction: column; }
  .au-fact { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 0 8px; }
  .au-fact b { font-size: 16px; }
  .au-fact small { flex-basis: 100%; }
  .au-next.closed { grid-template-columns: 1fr; }
  .au-grid { grid-template-columns: 1fr; position: sticky; left: 0; width: calc(100vw - 66px); }
  .au-checks { grid-template-columns: 1fr; }
}
/* the last rows open their menu upwards (the table scrolls sideways and would cut it) */
.au-table tbody:has(tr:nth-child(4)) tr:nth-last-child(-n+2) .more-menu { top: auto; bottom: calc(100% + 4px); }
/* wide screens: the table fits, so the menu may go past the card */
@media (min-width: 1200px) {
  .au-card, .au-card .table-wrap { overflow: visible; }
  .au-table tbody tr:last-child td:first-child { border-bottom-left-radius: 16px; }
  .au-table tbody tr:last-child td:last-child { border-bottom-right-radius: 16px; }
}

/* =========================================
   GUESTS (guests.html)
   ========================================= */
.gu-card { padding-top: 0; overflow: hidden; }
.gu-card .empty { margin: 20px 0; }
.gu-table { min-width: 900px; }
.gu-table tbody tr { cursor: pointer; }
.gu-table tbody tr:hover td { background: #FCFAF7; }
.gu-who { display: flex; align-items: center; gap: 12px; }
.gu-name { color: var(--text); font-weight: 500; text-decoration: none; }
.gu-name:hover { color: var(--brand-dark); }
.gu-av.vip { background: var(--brand); color: #fff; }
.gu-av.bl { background: var(--red-soft); color: var(--red); }
.gu-tag-bl { background: var(--red-soft); color: var(--red); }
.gu-warn { color: var(--red) !important; }
.gu-count { margin: 12px 0 16px; }

.gu-bl-banner, .gu-dup-banner { margin-bottom: 16px; }
.gu-dup-banner { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; background: var(--blue-soft); border-color: #D3E2F6; color: #24508F; }
.gu-head-main { display: flex; align-items: center; gap: 16px; min-width: 0; }
.gu-av-lg { width: 56px; height: 56px; font-size: 19px; }
.gu-kpis { margin-bottom: 16px; }
.gu-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.gu-layout > .card, .gu-side > .card { margin: 0; }
.gu-side { display: flex; flex-direction: column; gap: 16px; }
.gu-stays { padding-bottom: 8px; overflow: hidden; }
.gu-stay-table { min-width: 560px; }
.gu-old td { background: #FCFAF7; }
.gu-side-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.gu-side-head h2 { margin: 0; }
.gu-kv { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.gu-kv div { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 8px; font-size: 13.5px; }
.gu-kv dt { color: var(--muted); }
.gu-kv dd { margin: 0; overflow-wrap: anywhere; }
.gu-prefs { margin: 0; white-space: pre-line; }
.gu-notes { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.gu-notes li { background: var(--bg); border-radius: 12px; padding: 10px 12px; }
.gu-notes p { margin: 0 0 4px; font-size: 13.5px; }
.gu-note-form { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.gu-note-form textarea { width: 100%; border: 1px solid var(--border); border-radius: 10px; padding: 8px 10px; font: inherit; font-size: 13.5px; resize: vertical; background: var(--surface); color: var(--text); }
.gu-checks { display: flex; flex-direction: column; gap: 8px; justify-content: flex-end; padding-bottom: 4px; }

.gu-m-sub { margin: 0 0 12px; }
.gu-m-h { font-size: 13px; font-weight: 600; margin: 14px 0 8px; }
.gu-m-search { width: 100%; max-width: none; }
.gu-picks { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.gu-pick { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 12px; cursor: pointer; }
.gu-pick:hover { background: var(--bg); }
.gu-pick:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.gu-pick input { accent-color: var(--brand); }
.gu-pick .sub { display: block; font-size: 12px; color: var(--muted); }
.gu-notdup { margin-top: 12px; }

/* reservation page: guest card */
.gu-res-flags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.gu-res-flags .tag { margin-left: 0; }
.gu-res-prefs { margin: 0 0 12px; font-size: 13px; }
.gu-res-bl { margin: 0 0 12px; padding: 8px 10px; border-radius: 10px; background: var(--red-soft); color: #8E2F2C; font-size: 13px; }
/* new reservation: found guest */
.gu-found { display: flex; align-items: center; gap: 12px; padding: 10px 12px; margin-bottom: 14px; border-radius: 12px; background: var(--blue-soft); color: #24508F; font-size: 13.5px; flex-wrap: wrap; }
.gu-found.bl { background: var(--red-soft); color: #8E2F2C; }
.gu-found .grow { flex: 1; min-width: 200px; }
.gu-found[hidden] { display: none; }

@media (max-width: 1100px) {
  .gu-layout { grid-template-columns: 1fr; }
  .gu-kpis { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
  .gu-kpis { grid-template-columns: 1fr 1fr; }
  .gu-kpis .fc-kpi + .fc-kpi { border-left: 0; }
  .gu-head .res-actions { justify-content: flex-start; }
  .gu-av-lg { width: 44px; height: 44px; font-size: 16px; }
}

/* =========================================
   SPLIT FOLIO (reservation → Folio)
   ========================================= */
.fw-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin-bottom: 18px; }
.fw-card { display: flex; flex-direction: column; gap: 12px; padding: 14px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); min-width: 0; }
.fw-card.on { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.fw-card-top { display: flex; align-items: center; gap: 10px; text-align: left; min-width: 0; padding: 0; background: none; border: 0; cursor: pointer; color: inherit; font: inherit; }
.fw-who { min-width: 0; }
.fw-who b { display: block; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fw-who .sub { display: block; font-size: 12px; color: var(--muted); }
.fw-letter, .fw-tag { display: inline-grid; place-items: center; flex: none; font-family: var(--font-head); font-weight: 800; border-radius: 9px; }
.fw-letter { width: 34px; height: 34px; font-size: 15px; }
.fw-tag { min-width: 24px; height: 22px; padding: 0 6px; font-size: 12px; border-radius: 6px; }
.fw-A { background: var(--brand-soft); color: var(--brand-dark); }
.fw-B { background: var(--blue-soft); color: #2F66B5; }
.fw-C { background: var(--purple-soft); color: var(--purple); }
.fw-D { background: var(--teal-soft); color: var(--teal); }
.fw-nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.fw-nums div { display: flex; flex-direction: column; min-width: 0; }
.fw-nums span { font-size: 11.5px; color: var(--muted); }
.fw-nums b { font-weight: 500; font-size: 14px; font-variant-numeric: tabular-nums; }
.fw-nums b.due { color: var(--red); }
.fw-acts { display: flex; gap: 6px; flex-wrap: wrap; }
.fw-add { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 120px; border: 1.5px dashed var(--border); border-radius: 16px; background: none; color: var(--muted); font: inherit; font-weight: 500; cursor: pointer; }
.fw-add:hover { border-color: var(--brand); color: var(--brand-dark); }
.fw-add b { font-size: 18px; }

.fw-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; margin-top: 16px; }
.fw-tabs { margin: 0; flex-wrap: wrap; }
.fw-move { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 6px 8px 6px 12px; border-radius: 12px; background: var(--brand-soft); font-size: 13px; }
.fw-move b { font-weight: 600; }
.fw-bar + .table-wrap { margin-top: 12px; }
.fw-table { min-width: 860px; }
.fw-pick-col { width: 36px; padding-right: 0 !important; }
.fw-pick { width: 16px; height: 16px; accent-color: var(--brand); cursor: pointer; }
.fw-table tr.fw-picked td { background: var(--brand-soft); }
.fw-part { display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 6px; background: var(--bg); color: var(--muted); font-size: 11px; }
.fw-m-sub { margin: 0 0 12px; }
.fw-routes { flex-direction: column; align-items: flex-start; gap: 8px; margin: 6px 0 4px; }
.fw-remove { margin-top: 14px; color: var(--red); }

@media (max-width: 760px) {
  .fw-cards { grid-template-columns: 1fr; }
  .fw-add { min-height: 52px; }
  .fw-bar { flex-direction: column; align-items: stretch; }
}

/* =========================================
   SHIFT LOG (logbook.html)
   ========================================= */
.lg-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
.lg-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.lg-main > .card, .lg-side > .card { margin: 0; }
.lg-side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 16px; }
.lg-compose textarea { width: 100%; border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; font: inherit; resize: vertical; background: var(--surface); color: var(--text); min-height: 64px; }
.lg-compose textarea:focus, .lg-small:focus { outline: 2px solid var(--brand-soft); border-color: var(--brand); }
.lg-opts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 10px; }
.lg-opts .list-select { width: auto; }
.lg-small { width: 120px; height: 38px; border: 1px solid var(--border); border-radius: 9px; padding: 0 10px; font: inherit; background: var(--surface); color: var(--text); }
.lg-due { display: inline-flex; gap: 6px; }
.lg-due[hidden] { display: none; }
.lg-due input { height: 38px; border: 1px solid var(--border); border-radius: 9px; padding: 0 8px; font: inherit; background: var(--surface); color: var(--text); }
.lg-post { margin-left: auto; }
.lg-err { margin: 10px 0 0; padding: 8px 12px; border-radius: 10px; background: var(--red-soft); color: var(--red); font-size: 13px; }
.lg-err[hidden] { display: none; }
.lg-toolbar { margin: 0; }

.lg-shift { padding-bottom: 6px; }
.lg-shift-head { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 16px; flex-wrap: wrap; margin-bottom: 6px; }
.lg-shift-head h2 { margin: 0; font-size: 16px; }
.lg-entry { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; padding: 14px 0; border-top: 1px solid var(--border); position: relative; }
.lg-shift-head + .lg-entry { border-top: 0; }
.lg-entry.unread::before { content: ""; position: absolute; left: -24px; top: 14px; bottom: 14px; width: 3px; border-radius: 3px; background: var(--brand); }
.lg-av { width: 36px; height: 36px; font-size: 12px; }
.lg-entry.imp .lg-av { background: var(--red-soft); color: var(--red); }
.lg-head { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; }
.lg-head b { font-weight: 500; }
.lg-head .tag { margin-left: 0; }
.lg-tag-imp { background: var(--red-soft); color: var(--red); }
.lg-tag-pin { background: var(--gray-soft); color: var(--muted); }
.lg-tag-sec { background: var(--gray-soft); color: var(--text); }
.lg-new { font-size: 11px; font-weight: 600; color: var(--brand-dark); text-transform: uppercase; letter-spacing: .04em; }
.lg-more { margin-left: auto; }
.lg-more .more-menu { min-width: 180px; }
.lg-more .more-btn { padding: 2px 8px; }
.lg-text { margin: 6px 0 0; white-space: pre-line; overflow-wrap: anywhere; }
.lg-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.lg-chip { display: inline-block; padding: 2px 9px; border-radius: 999px; background: var(--bg); font-size: 12.5px; color: var(--text); text-decoration: none; }
a.lg-chip:hover { color: var(--brand-dark); }
.lg-task { display: flex; align-items: center; justify-content: space-between; gap: 8px 12px; flex-wrap: wrap; margin-top: 10px; padding: 8px 10px 8px 12px; border-radius: 10px; background: var(--brand-soft); font-size: 13px; }
.lg-task b { font-weight: 500; }
.lg-task.late { background: var(--red-soft); color: #8E2F2C; }
.lg-task.done { background: var(--green-soft); color: var(--green); }
.lg-replies { list-style: none; margin: 10px 0 0; padding: 0 0 0 12px; border-left: 2px solid var(--border); display: flex; flex-direction: column; gap: 8px; }
.lg-replies b { font-weight: 500; font-size: 13px; }
.lg-replies p { margin: 2px 0 0; font-size: 13.5px; }
.lg-reply { display: flex; gap: 8px; align-items: center; margin-top: 10px; flex-wrap: wrap; }
.lg-reply input { flex: 1; min-width: 180px; height: 34px; border: 1px solid var(--border); border-radius: 9px; padding: 0 10px; font: inherit; background: var(--surface); color: var(--text); }
.lg-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; }

.lg-todos, .lg-pins { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.lg-todos li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 8px; align-items: start; }
.lg-todos p, .lg-pins p { margin: 0 0 2px; font-size: 13.5px; }
.lg-todos li.late p { color: #8E2F2C; }
.lg-check input { width: 16px; height: 16px; margin-top: 2px; accent-color: var(--brand); cursor: pointer; }
.lg-pins li { padding: 10px 12px; border-radius: 12px; background: var(--bg); }
.lg-m-due[hidden] { display: none; }

@media (max-width: 1100px) {
  .lg-layout { grid-template-columns: 1fr; }
  .lg-side { position: static; order: -1; }
}
@media (max-width: 760px) {
  .lg-opts .list-select, .lg-small { flex: 1 1 calc(50% - 6px); width: auto; min-width: 0; }
  .lg-post { width: 100%; margin-left: 0; }
  .lg-entry.unread::before { left: -14px; }
}

/* =========================================
   CONFIGURATION → LISTS (config-lists.html)
   ========================================= */
.ls-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 16px; align-items: start; padding-bottom: 80px; }
.ls-layout > .card { margin: 0; }
.ls-nav { display: flex; flex-direction: column; gap: 2px; padding: 8px; position: sticky; top: 16px; }
.ls-nav-item { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 10px; text-align: left; font: inherit; font-size: 14px; color: var(--text); background: none; border: 0; cursor: pointer; }
.ls-nav-item span { font-size: 12px; color: var(--muted); }
.ls-nav-item:hover { background: var(--bg); }
.ls-nav-item.active { background: var(--brand-soft); color: var(--brand-dark); font-weight: 500; }
.ls-card { min-width: 0; }
.ls-head { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 16px; flex-wrap: wrap; margin-bottom: 16px; }
.ls-head h2 { margin: 0; }
.ls-rows { display: flex; flex-direction: column; gap: 8px; max-width: 520px; }
.ls-row { display: grid; grid-template-columns: minmax(0, 1fr) 96px 32px; gap: 8px; align-items: center; }
.ls-row input, .ls-in { height: 38px; border: 1px solid var(--border); border-radius: 9px; padding: 0 10px; font: inherit; background: var(--surface); color: var(--text); min-width: 0; width: 100%; }
.ls-row input[readonly] { background: var(--bg); color: var(--muted); }
.ls-use { text-align: right; }
.ls-note { margin: 12px 0 0; max-width: 620px; }
.ls-gap { margin-top: 22px; }
.ls-fixed { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.ls-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--bg); font-size: 13px; }
.ls-chip small { color: var(--muted); font-size: 11px; }
.ls-items-wrap { margin: 0 -24px; }
.ls-items { min-width: 820px; }
.ls-items td { vertical-align: middle; }
.ls-items .ls-in { width: 100%; min-width: 150px; }
.ls-items .ls-code { width: 76px; min-width: 0; text-transform: uppercase; }
.ls-items .sub { display: block; font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.ls-price { width: 110px; margin-left: auto; }
.ls-cb { width: 16px; height: 16px; accent-color: var(--brand); }
.ls-off td { opacity: .55; }
.ls-off td:nth-last-child(2) { opacity: 1; }
.ls-pay { display: flex; flex-direction: column; max-width: 560px; margin-top: 6px; }
.ls-pay-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--border); }
.ls-pay-row:first-child { border-top: 0; padding-top: 4px; }
.ls-pay-row b { display: block; font-weight: 500; }
.ls-keep .tx-pct { max-width: 140px; }

@media (max-width: 900px) {
  .ls-layout { grid-template-columns: 1fr; }
  .ls-nav { position: static; flex-direction: row; overflow-x: auto; scrollbar-width: none; }
  .ls-nav::-webkit-scrollbar { display: none; }
  .ls-nav-item { flex: none; white-space: nowrap; }
}
@media (max-width: 760px) {
  .ls-items-wrap { margin: 0 -16px; }
  .ls-row { grid-template-columns: minmax(0, 1fr) 70px 32px; }
}

/* =========================================
   Sign in (login.html)
   ========================================= */
.si-body { background: var(--bg); min-height: 100vh; }
.si { display: grid; grid-template-columns: minmax(360px, 44%) 1fr; min-height: 100vh; }
.si-brand {
  position: relative; overflow: hidden;
  background: linear-gradient(150deg, #FBB25C 0%, var(--brand) 45%, #D96F12 100%);
  color: #fff; padding: 40px 48px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
}
.si-brand::before, .si-brand::after {
  content: ""; position: absolute; border-radius: 50%; pointer-events: none;
  border: 1px solid rgba(255,255,255,.22);
}
.si-brand::before { width: 520px; height: 520px; right: -220px; bottom: -180px; }
.si-brand::after { width: 340px; height: 340px; right: -130px; bottom: -90px; background: rgba(255,255,255,.06); }
/* the logo is orange like the panel, so it sits on a white plate */
.si-logo { position: relative; align-self: flex-start; background: #fff; border-radius: 16px; padding: 14px 18px; }
.si-logo .logo-img { height: 32px; }
.si-pitch { position: relative; max-width: 420px; }
.si-pitch h2 { font-family: var(--font-head); font-weight: 800; font-size: 38px; line-height: 1.12; letter-spacing: -.5px; margin-bottom: 26px; }
.si-pitch ul { list-style: none; display: grid; gap: 12px; }
.si-pitch li { display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 500; }
.si-pitch li::before {
  content: ""; width: 22px; height: 22px; border-radius: 50%; flex: none;
  background: rgba(255,255,255,.22) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.si-brand-foot { position: relative; font-size: 13px; opacity: .85; }

.si-main { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 24px 24px; gap: 28px; }
.si-box {
  width: 100%; max-width: 420px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 24px;
  box-shadow: 0 12px 40px rgba(40, 32, 20, .07); padding: 36px 36px 30px;
}
.si-box h1 { font-family: var(--font-head); font-weight: 800; font-size: 28px; letter-spacing: -.3px; }
.si-sub { color: var(--muted); margin: 6px 0 22px; line-height: 1.5; }
.si-prop { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px; padding: 6px 14px 6px 6px; border: 1px solid var(--border); border-radius: 999px; background: var(--bg); }
.si-prop span, .si-prop img { width: 28px; height: 28px; border-radius: 50%; }
.si-prop span { background: var(--brand); color: #fff; display: grid; place-items: center; font: 800 11px var(--font-head); }
.si-prop img { object-fit: cover; background: #fff; }
.si-prop b { font-size: 13px; font-weight: 500; }

.si-form { display: grid; gap: 16px; }
.si-field input { height: 46px; font-size: 15px; border-radius: 14px; }
.si-field input[readonly] { background: var(--bg); color: var(--muted); }
.si-pw { position: relative; display: flex; }
.si-pw input { flex: 1; min-width: 0; padding-right: 48px; }
.si-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: var(--muted); background: none; }
.si-eye:hover { background: var(--bg); color: var(--text); }
.si-eye svg { width: 18px; height: 18px; }
.si-eye.on { color: var(--brand-dark); }
.si-caps { margin-top: -8px; font-size: 12px; color: #9A5B12; }
.si-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; }
.si-row a, .si-back { color: var(--brand-dark); font-weight: 500; }
.si-row a:hover, .si-back:hover { text-decoration: underline; }
.si-check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.si-check input { width: 17px; height: 17px; accent-color: var(--brand); }
.si-submit { width: 100%; height: 48px; font-size: 15px; font-weight: 600; display: flex; align-items: center; justify-content: center; }
.si-submit:disabled { opacity: .55; cursor: not-allowed; }
.si-submit.is-busy::before { content: ""; width: 16px; height: 16px; margin-right: 10px; border: 2px solid rgba(255,255,255,.45); border-top-color: #fff; border-radius: 50%; animation: si-spin .7s linear infinite; }
@keyframes si-spin { to { transform: rotate(360deg); } }
.si-err { padding: 10px 14px; border-radius: 12px; background: var(--red-soft); color: #A8332F; font-size: 13px; line-height: 1.45; }
.si-note { padding: 10px 14px; border-radius: 12px; font-size: 13px; margin: -6px 0 18px; }
.si-info { background: var(--blue-soft); color: #2A5FA8; }
.si-ok { background: var(--green-soft); color: #1F7550; }
.si-err.si-note, .si-note.si-err { background: var(--red-soft); color: #A8332F; }
.si-back { display: inline-block; margin-top: 18px; font-size: 13px; }
.si-box > .btn + .si-back { display: block; text-align: center; }
.si-big-ico { width: 56px; height: 56px; border-radius: 18px; background: var(--brand-soft); display: grid; place-items: center; font-size: 26px; margin-bottom: 18px; }
.si-box > .si-submit { margin-top: 4px; }

.si-rules { list-style: none; display: grid; gap: 6px; font-size: 13px; color: var(--muted); margin-top: -4px; }
.si-rules li { display: flex; align-items: center; gap: 8px; }
.si-rules li::before { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--border); flex: none; box-sizing: border-box; }
.si-rules li.ok { color: #1F7550; }
.si-rules li.ok::before { border: 0; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 10px no-repeat; }

.si-demo { margin-top: 22px; border-top: 1px dashed var(--border); padding-top: 14px; font-size: 13px; }
.si-demo summary { cursor: pointer; color: var(--muted); font-weight: 500; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.si-demo summary::-webkit-details-marker { display: none; }
.si-demo summary::after { content: "▾"; margin-left: auto; }
.si-demo[open] summary::after { content: "▴"; }
.si-demo summary span { font-weight: 400; font-family: ui-monospace, Menlo, monospace; font-size: 12px; background: var(--bg); padding: 1px 8px; border-radius: 6px; }
.si-demo-list { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 12px; }
.si-demo-list button { display: grid; grid-template-columns: 28px 1fr; column-gap: 8px; align-items: center; text-align: left; padding: 6px 8px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); }
.si-demo-list button:hover { border-color: var(--brand); }
.si-demo-list .us-av { grid-row: span 2; width: 28px; height: 28px; font-size: 10px; }
.si-demo-list b { font-size: 12px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.si-demo-list em { font-style: normal; font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.si-foot { display: flex; gap: 18px; font-size: 12px; color: var(--muted); }
.si-foot a:hover { color: var(--text); }

@media (max-width: 900px) {
  .si { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .si-brand { padding: 18px 20px; gap: 0; }
  .si-brand::before, .si-brand::after, .si-pitch, .si-brand-foot { display: none; }
  .si-main { justify-content: flex-start; padding: 24px 16px 20px; }
}
@media (max-width: 480px) {
  .si-box { padding: 26px 20px 22px; border-radius: 20px; }
  .si-box h1 { font-size: 24px; }
  .si-demo-list { grid-template-columns: 1fr; }
}
.um-head span { display: block; }
.um-head span + span { margin-top: 2px; }
.nav-menu.um-menu a.um-out { color: #A8332F; }
.nav-menu.um-menu a.um-out:hover { background: var(--red-soft); }

/* Dashboard: live blocks */
a.fc-col { color: inherit; text-decoration: none; }
a.fc-col:hover .fc-bar { filter: brightness(.95); }
.feed p a { color: var(--brand-dark); font-weight: 500; }
.feed p a:hover { text-decoration: underline; }
.table td.dash-empty { text-align: center; padding: 22px 12px; }

/* Edit reservation (reservation page) */
.ed-price { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ed-price[hidden] { display: none; }
.ed-price .radio small { font-size: 12px; }
.ed-preview { background: var(--bg); border-radius: 14px; padding: 12px 14px; display: grid; gap: 6px; font-size: 13px; }
.ed-preview:empty { display: none; }
.ed-row { display: flex; justify-content: space-between; gap: 12px; }
.ed-row span { color: var(--muted); }
.ed-row b { font-weight: 500; text-align: right; }
.ed-row em { font-style: normal; font-weight: 600; margin-left: 6px; }
.ed-up { color: var(--brand-dark); }
.ed-down { color: var(--green); }
.ed-warn { color: #9A5B12; padding-left: 18px; position: relative; }
.ed-warn::before { content: "!"; position: absolute; left: 0; top: 1px; width: 13px; height: 13px; border-radius: 50%; background: #F6C28B; color: #fff; font: 700 9px/13px var(--font-head); text-align: center; }
.ed-over[hidden] { display: none; }
.field small { font-size: 11.5px; line-height: 1.35; }
@media (max-width: 640px) {
  .ed-price { grid-template-columns: 1fr; }
  .modal .field-row.four { grid-template-columns: 1fr 1fr; }
}

/* =========================================
   Documents (document.html): invoice, folio, registration card
   ========================================= */
.dc-body { background: var(--bg); }
.dc-bar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 12px 24px; background: rgba(242, 240, 235, .92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.dc-back { font-weight: 500; color: var(--text); }
.dc-back:hover { color: var(--brand-dark); }
.dc-acts { display: flex; gap: 8px; margin-left: auto; }
.dc-acts .btn { height: 38px; padding: 0 18px; }
.dc-wins label span { white-space: nowrap; }
.dc-wrap { padding: 28px 16px 60px; display: flex; justify-content: center; }
.dc-page {
  width: 100%; max-width: 8.5in; min-height: 10in;
  background: #fff; color: #1F1D1A; border-radius: 6px;
  box-shadow: 0 10px 40px rgba(40, 32, 20, .10), 0 1px 2px rgba(40, 32, 20, .06);
  padding: 0.6in 0.65in; font-size: 12.5px; line-height: 1.45;
}
.dc-missing { min-height: 0; text-align: center; }
.dc-missing h1 { font-family: var(--font-head); font-size: 22px; margin-bottom: 6px; }
.dc-muted { color: #807B73; }
.dc-head { display: flex; justify-content: space-between; gap: 24px; padding-bottom: 20px; border-bottom: 2px solid var(--brand); margin-bottom: 22px; }
.dc-hotel { display: flex; gap: 14px; }
.dc-hotel > div { display: flex; flex-direction: column; gap: 1px; color: #5E5A54; font-size: 11.5px; }
.dc-hotel b { font-family: var(--font-head); font-size: 17px; font-weight: 800; color: #1F1D1A; margin-bottom: 2px; }
.dc-logo { width: 54px; height: 54px; border-radius: 14px; object-fit: contain; flex: none; }
.dc-logo-txt { background: var(--brand); color: #fff; display: grid; place-items: center; font: 800 19px var(--font-head); }
.dc-title { text-align: right; }
.dc-title h1 { font-family: var(--font-head); font-weight: 800; font-size: 26px; letter-spacing: -.3px; color: var(--brand-dark); margin-bottom: 8px; }
.dc-title dl { display: grid; gap: 2px; font-size: 11.5px; }
.dc-title dl div { display: flex; justify-content: flex-end; gap: 10px; }
.dc-title dt { color: #807B73; }
.dc-title dd { font-weight: 500; min-width: 100px; }
.dc-two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 18px; }
.dc-box { border: 1px solid #ECE8E1; border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.dc-box h3, .dc-h { font-family: var(--font-head); font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #807B73; margin-bottom: 6px; }
.dc-box b { font-weight: 500; font-size: 13.5px; }
.dc-kv { display: grid; gap: 3px; }
.dc-kv div { display: grid; grid-template-columns: 80px 1fr; gap: 8px; }
.dc-kv dt { color: #807B73; }
.dc-info { background: #FBF6EF; border-radius: 8px; padding: 9px 12px; margin-bottom: 14px; color: #6B5233; font-size: 12px; }
.dc-table { width: 100%; border-collapse: collapse; margin-bottom: 14px; }
.dc-table th { text-align: left; font-size: 10.5px; font-weight: 500; letter-spacing: .05em; text-transform: uppercase; color: #807B73; padding: 8px 8px; border-bottom: 1px solid #DDD8CF; }
.dc-table td { padding: 7px 8px; border-bottom: 1px solid #F1EEE8; vertical-align: top; }
.dc-table td:first-child { white-space: nowrap; color: #5E5A54; width: 70px; }
.dc-table .r { text-align: right; white-space: nowrap; width: 100px; }
.dc-table tr.dc-tax td { color: #807B73; font-size: 11.5px; padding-top: 3px; }
.dc-table tr.dc-tax td:nth-child(2) { padding-left: 20px; }
.dc-note { display: block; color: #807B73; font-size: 11px; }
.dc-empty { text-align: center; padding: 20px !important; }
.dc-totals { margin-left: auto; width: 290px; display: grid; gap: 5px; }
.dc-totals > div { display: flex; justify-content: space-between; gap: 12px; }
.dc-totals b { font-weight: 500; }
.dc-totals .dc-sub { font-size: 11.5px; color: #807B73; }
.dc-grand { margin-top: 4px; padding: 10px 12px; border-radius: 8px; background: #F4F2EE; font-size: 14px; }
.dc-grand b { font-family: var(--font-head); font-weight: 800; }
.dc-grand.due { background: var(--brand-soft); color: var(--brand-dark); }
.dc-paid { margin-top: 16px; text-align: right; color: #1F7550; font-weight: 500; }
.dc-foot { margin-top: 36px; padding-top: 12px; border-top: 1px solid #ECE8E1; color: #807B73; font-size: 11px; text-align: center; }
.dc-h { margin: 18px 0 8px; }
.dc-head + .dc-h { margin-top: 0; }
.dc-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 22px; row-gap: 4px; }
.dc-field { display: flex; flex-direction: column; border-bottom: 1px solid #DDD8CF; padding: 5px 0 4px; min-height: 40px; }
.dc-field span { font-size: 10px; color: #807B73; text-transform: uppercase; letter-spacing: .05em; }
.dc-field b { font-weight: 500; font-size: 12.5px; }
.dc-rules { padding-left: 18px; display: grid; gap: 4px; color: #4A4741; font-size: 11.5px; }
.dc-sign { display: grid; grid-template-columns: 2fr 1fr; gap: 28px; margin-top: 34px; align-items: end; }
.dc-sign-box { position: relative; height: 92px; border-bottom: 1.5px solid #1F1D1A; display: flex; align-items: flex-end; }
.dc-sign-box img { position: absolute; left: 0; bottom: 4px; height: 86px; max-width: 100%; object-fit: contain; object-position: left bottom; }
.dc-sign-box span, .dc-sign-date span { position: absolute; bottom: -20px; left: 0; font-size: 10.5px; color: #807B73; }
.dc-sign-date { position: relative; border-bottom: 1.5px solid #1F1D1A; padding-bottom: 4px; }
.dc-sign-date b { font-weight: 500; }
.dc-signed { margin-top: 30px; font-size: 11px; }
.sg-pad { width: 100%; aspect-ratio: 1200 / 380; border: 1.5px dashed var(--border); border-radius: 14px; background: #fff; touch-action: none; cursor: crosshair; }
.dc-exporting .dc-page { box-shadow: none; border-radius: 0; }

@media (max-width: 720px) {
  .dc-bar { padding: 10px 16px; }
  .dc-acts { width: 100%; margin-left: 0; }
  .dc-acts .btn { flex: 1; padding: 0 10px; }
  .dc-wins { width: 100%; overflow-x: auto; }
  .dc-wrap { padding: 16px 8px 40px; }
  .dc-page { padding: 22px 18px; min-height: 0; font-size: 12px; }
  .dc-head { flex-direction: column; }
  .dc-title { text-align: left; }
  .dc-title dl div { justify-content: flex-start; }
  .dc-two, .dc-grid { grid-template-columns: 1fr; }
  .dc-totals { width: 100%; }
  .dc-table .r { width: auto; }
  .dc-sign { grid-template-columns: 1fr; gap: 34px; }
}
@media print {
  @page { size: letter; margin: 12mm; }
  .dc-body { background: #fff; }
  .dc-bar, .toast, .modal-backdrop { display: none !important; }
  .dc-wrap { padding: 0; display: block; }
  .dc-page { box-shadow: none; border-radius: 0; padding: 0; max-width: none; min-height: 0; }
  .dc-table tr, .dc-sign, .dc-totals { break-inside: avoid; }
}

/* Direct bill & check out */
.dbc-list { display: grid; gap: 6px; margin-top: -6px; }
.dbc-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; cursor: pointer; }
.dbc-row:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.dbc-row input { accent-color: var(--brand); width: 16px; height: 16px; }
.dbc-row span { flex: 1; }
.dbc-row b { font-weight: 500; }
.dbc-sum { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; padding: 10px 12px; background: var(--bg); border-radius: 12px; font-size: 13px; }
.dbc-sum span { color: var(--muted); }
.dbc-sum small { flex-basis: 100%; }

/* Rights: view-only pages, locked buttons, signed-in name fields */
.ro-bar { display: flex; align-items: center; gap: 10px; max-width: 1440px; width: calc(100% - 48px); margin: 12px auto 0; padding: 10px 16px; border-radius: 14px; background: var(--blue-soft); color: #2A5FA8; font-size: 13px; }
.ro-bar b { font-weight: 600; }
.ro-ico { font-size: 15px; }
.ro-lock, .ro-lock-g { opacity: .45; cursor: not-allowed !important; filter: grayscale(.4); }
.ro-note { font-size: 12.5px; color: var(--muted); background: var(--bg); border-radius: 10px; padding: 8px 10px; margin-bottom: 10px; }
.field input[readonly], #noteBy[readonly], #agent[readonly] { background: var(--bg); color: var(--muted); }
@media (max-width: 760px) { .ro-bar { margin: 10px 16px 0; width: calc(100% - 32px); } }
.ro-field { cursor: not-allowed; }

/* Folio: correct a charge (void / adjustment) */
.folio .fo-act { width: 1%; text-align: right; white-space: nowrap; }
.btn-xs { height: 26px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); font-size: 12px; color: var(--muted); }
.btn-xs:hover { border-color: var(--brand); color: var(--brand-dark); }
.folio tr .btn-xs { opacity: 0; transition: opacity .15s; }
.folio tr:hover .btn-xs, .folio tr .btn-xs:focus { opacity: 1; }
@media (hover: none) { .folio tr .btn-xs { opacity: 1; } }
.fo-void td { color: var(--muted); }
.fo-void s { text-decoration-thickness: 1px; }
.fo-adj td:nth-child(n) { background: #FBFAF7; }
.fo-line { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; padding: 12px 14px; background: var(--bg); border-radius: 12px; }
.fo-line > div { display: flex; flex-direction: column; gap: 2px; }
.fo-line b { font-weight: 500; }
.radio.is-off { opacity: .55; cursor: not-allowed; }

/* Rates tab (reservation): nights, each tax, status, Post now */
.rt-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.rt-head > div:first-child { display: flex; flex-direction: column; gap: 2px; }
.rt-head b { font-weight: 500; font-size: 15px; }
.rt-table th .sub { display: block; font-weight: 400; color: var(--muted); font-size: 11px; text-transform: none; letter-spacing: 0; }
.rt-table td .sub { display: block; font-size: 11.5px; color: var(--muted); }
.rt-table th, .rt-table td { white-space: nowrap; }
.rt-table .rt-adj { color: var(--green); }
.rt-table tr.rt-pending td { color: #5E5A54; }
.rt-table tr .btn-xs { opacity: 1; }
.rt-table tfoot td { font-weight: 600; }
.dc-tx { padding-left: 12px; }

/* Payments: one "Take payment" button, ways to pay as tiles */
.pay-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 14px 16px; border: 1px solid var(--border); border-radius: 16px; background: var(--bg); }
.pay-top > div { display: flex; flex-direction: column; gap: 2px; }
.pay-top b { font-weight: 500; font-size: 15px; }
.pay-how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: -6px; }
.pay-way { display: flex; align-items: flex-start; gap: 8px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; cursor: pointer; background: var(--surface); }
.pay-way[hidden] { display: none; }
.pay-way:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.pay-way input { margin-top: 2px; accent-color: var(--brand); }
.pay-way span { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.pay-way b { font-weight: 500; font-size: 13.5px; }
.pay-way small { font-size: 11.5px; color: var(--muted); }
@media (max-width: 560px) { .pay-how { grid-template-columns: 1fr 1fr; } .pay-top .btn { width: 100%; } }

/* Rates tab: header in the brand orange */
.rt-table thead th { background: var(--brand); color: #fff; border-bottom-color: var(--brand); }
.rt-table thead th:first-child { border-top-left-radius: 12px; }
.rt-table thead th:last-child { border-top-right-radius: 12px; }
.rt-table thead th .sub { color: rgba(255, 255, 255, .8); }

/* Folio: tax lines sit under their charge on a light orange band */
.folio tr.fo-tax td { background: #FFF6EC; color: #8A6A4A; font-size: 12.5px; padding-top: 7px; padding-bottom: 7px; border-top: 0; }
.folio tr.fo-tax td.fo-desc { padding-left: 28px; position: relative; }
.folio tr.fo-tax td.fo-desc::before { content: "↳"; position: absolute; left: 12px; color: #D9A574; }
.folio tr.fo-tax .badge { opacity: .75; }
.folio tr.fo-tax td.right { color: #8A6A4A; }

/* =========================================
   Reservation header, design C: solid orange band + fact tiles
   ========================================= */
.res-head.rh { display: block; padding: 0; border-color: #F6C28B; }
.rh-band {
  display: flex; justify-content: space-between; align-items: center; gap: 18px 24px; flex-wrap: wrap;
  background: var(--brand); color: #fff; padding: 22px 24px;
  border-radius: calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0;
}
.rh-no { display: block; font-family: var(--font-head); font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #fff; }
.rh .res-name-row { margin-top: 4px; }
.rh .res-name-row h1 { color: #fff; }
.rh-meta { margin-top: 6px; font-size: 14px; color: rgba(255, 255, 255, .9); }
.rh-meta b { font-weight: 600; color: #fff; }
/* room and status stand out: solid white */
.rh .room-chip { background: #fff; color: var(--brand-dark); box-shadow: 0 2px 8px rgba(120, 60, 0, .15); }
.rh .room-chip.held { background: #fff; color: var(--brand-dark); border: 1.5px dashed var(--brand-dark); }
.rh .room-chip.no-room { background: #fff; color: var(--red); }
.rh .room-chip.no-room:hover { background: #FFF1F0; }
.rh .res-name-row .badge { background: #fff; height: 32px; padding: 0 14px; display: inline-flex; align-items: center; font-size: 14px; font-weight: 700; border-radius: 999px; box-shadow: 0 2px 8px rgba(120, 60, 0, .15); }
.rh .res-name-row .badge-out { color: #6F6C66; }
/* tags (VIP, Group…) quieter than room and status */
.rh .res-name-row .tag { background: rgba(255, 255, 255, .2); color: #fff; border: 1px solid rgba(255, 255, 255, .45); }
/* buttons on orange */
.rh-band .btn-primary { background: #fff; color: var(--brand-dark); font-weight: 600; }
.rh-band .btn-primary:hover { background: #FFF3E6; }
.rh-band .btn-ghost { background: transparent; border-color: rgba(255, 255, 255, .7); color: #fff; }
.rh-band .btn-ghost:hover { background: rgba(255, 255, 255, .14); border-color: #fff; color: #fff; }
.rh-band .more-menu { color: var(--text); }
/* fact tiles */
.rh-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding: 16px; }
.rh-fact { display: flex; gap: 12px; align-items: center; background: var(--bg); border-radius: 16px; padding: 14px; min-width: 0; }
.rh-fact > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rh-fact b { font-family: var(--font-head); font-weight: 700; font-size: 16px; letter-spacing: -.01em; }
.rh-sub { font-size: 13px; color: #4A4741; }
.rh-ico { width: 38px; height: 38px; border-radius: 12px; background: var(--brand-soft); color: var(--brand-dark); display: grid; place-items: center; flex: none; }
.rh-ico svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 900px) {
  .rh-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rh .res-actions { justify-content: flex-start; }
}
@media (max-width: 520px) {
  .rh-band { padding: 18px; }
  .rh-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 12px; gap: 8px; }
  .rh-fact { padding: 12px; }
  .rh-ico { display: none; }
  .rh-fact b { font-size: 15px; }
}
@media print {
  .rh-band { background: #fff; color: var(--text); border-bottom: 2px solid var(--brand); }
  .rh .res-name-row h1, .rh-no, .rh-meta, .rh-meta b { color: var(--text); }
}

/* Account settings */
.ac-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
.ac-main, .ac-side { display: grid; gap: 18px; }
.ac-card h2 { font-family: var(--font-head); font-size: 17px; font-weight: 700; margin-bottom: 12px; }
.ac-form { display: grid; gap: 14px; }
.ac-form h2 { margin-bottom: -2px; }
.ac-actions { display: flex; justify-content: flex-end; }
.ac-who { display: flex; align-items: center; gap: 14px; padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--border); }
.ac-who > div { display: flex; flex-direction: column; gap: 2px; }
.ac-who b { font-family: var(--font-head); font-size: 20px; font-weight: 800; }
.ac-av { width: 56px; height: 56px; font-size: 19px; }
.ac-role { display: flex; flex-direction: column; gap: 2px; margin-bottom: 12px; }
.ac-role b { font-weight: 500; font-size: 15px; }
.ac-rights { list-style: none; display: grid; gap: 6px; margin-bottom: 12px; font-size: 13px; }
.ac-rights li { display: flex; justify-content: space-between; gap: 10px; }
.ac-lv { font-weight: 500; padding: 1px 8px; border-radius: 999px; font-size: 12px; }
.ac-lv.lv-2 { background: var(--green-soft); color: var(--green); }
.ac-lv.lv-1 { background: var(--blue-soft); color: var(--blue); }
.ac-lv.lv-0 { background: var(--gray-soft); color: var(--muted); }
.ac-extra { display: grid; gap: 4px; font-size: 12.5px; color: var(--muted); margin-bottom: 12px; }
.ac-extra .on { color: var(--green); }
.ac-kv { list-style: none; display: grid; gap: 8px; font-size: 13px; margin-bottom: 14px; }
.ac-kv li { display: flex; justify-content: space-between; gap: 10px; }
.ac-kv span { color: var(--muted); }
.ac-kv b { font-weight: 500; text-align: right; }
.ac-out { width: 100%; color: #A8332F; }
@media (max-width: 960px) { .ac-grid { grid-template-columns: 1fr; } }
.hk-insp { background: var(--teal); }
.dot-teal { background: var(--teal); }
.hk-list .muted.small { margin-left: 2px; }
.pd-inspect { display: grid; gap: 6px; margin: 4px 0 14px; }

/* Groups: rooming list, group bill, room lock */
.lock-ico { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; vertical-align: -2px; margin-left: 4px; }
.room-chip .lock-ico { width: 16px; height: 16px; margin-left: 2px; }
.btn-sm .lock-ico { margin: 0 4px 0 0; }
.btn-sm.lock-on, .btn-xs.lock-on { border-color: var(--brand); color: var(--brand-dark); background: var(--brand-soft); }
.badge-group { background: var(--purple-soft); color: var(--purple); }
.banner.fo-group { margin: 10px 0 12px; padding: 10px 14px; border-radius: 12px; font-size: 13px; }
.bl-tabs { margin-bottom: 14px; }
.bl-tools { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.bl-rooming td .lock-ico { color: var(--brand-dark); }
.bl-acts { white-space: nowrap; }
.bl-acts .btn-xs + .btn-xs { margin-left: 4px; }
.bl-route { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: flex-end; padding: 14px; background: var(--bg); border-radius: 14px; }
.bl-route .field { min-width: 240px; }
.bl-checks { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 6px; }
.bl-billsum { display: grid; grid-template-columns: repeat(3, 1fr) auto; gap: 12px; align-items: center; margin: 14px 0; }
.bl-billsum > div:not(.bl-billacts) { background: var(--bg); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.bl-billsum b { font-family: var(--font-head); font-size: 20px; }
.bl-billsum .due { background: var(--brand-soft); }
.bl-billsum .due b { color: var(--brand-dark); }
.bl-billacts { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.bl-h { font-family: var(--font-head); font-size: 14px; margin: 16px 0 8px; }
.bl-pays { list-style: none; display: grid; gap: 6px; }
.bl-pays li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 12px; background: var(--bg); border-radius: 10px; font-size: 13px; }
.dc-group td .dc-note { display: inline; margin-left: 6px; }
@media (max-width: 760px) { .bl-billsum { grid-template-columns: 1fr 1fr; } .bl-billacts { grid-column: 1 / -1; justify-content: flex-start; } }
.btn.au-done { opacity: .5; cursor: not-allowed; }

/* Configuration → Rooms */
.rc-types { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.rc-type { display: flex; align-items: baseline; gap: 8px; padding: 8px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); font-size: 13px; }
.rc-type b { font-family: var(--font-head); font-size: 17px; }
.rc-type span { color: var(--muted); }
.rc-type.on, .rc-type:hover { border-color: var(--brand); background: var(--brand-soft); }
.rc-bar { margin-bottom: 8px; }
.rc-table tr.rc-floor td { background: var(--bg); font-family: var(--font-head); font-weight: 700; font-size: 12.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); padding-top: 9px; padding-bottom: 9px; }
.rc-no { font-family: var(--font-head); font-size: 16px; }
.rc-sel { height: 34px; border: 1px solid var(--border); border-radius: 10px; padding: 0 8px; background: var(--surface); font: inherit; font-size: 13px; max-width: 230px; }
.rc-feat { display: inline-block; padding: 2px 8px; margin: 2px 4px 2px 0; border-radius: 999px; background: var(--bg); font-size: 12px; color: #4A4741; }
.rc-off td { opacity: .55; }
.rc-acts { white-space: nowrap; }
.rc-acts .btn-xs + .btn-xs { margin-left: 4px; }
.rc-del:hover { border-color: var(--red); color: var(--red); }
.rc-feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px 14px; margin-top: -6px; }
@media (max-width: 640px) { .rc-feats { grid-template-columns: 1fr 1fr; } }


/* =========================================
   Dashboard · new design (dashboard-preview.html, class .dash2)
   Calm white cards, one "today at a glance" card, numbers first, color only as accents.
   ========================================= */
@property --p { syntax: "<number>"; inherits: false; initial-value: 0; }
.dash2 { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.dash2 .card { border-radius: 22px; box-shadow: 0 1px 2px rgba(40, 32, 20, .04), 0 8px 24px rgba(40, 32, 20, .04); }
.dash2 .card-head h2 { font-size: 16px; }
.d2-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.d2-head h1 { font-size: 36px; letter-spacing: -.6px; }
.d2-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.d2-seg { background: var(--surface); border: 1px solid var(--border); }

/* today at a glance */
.d2-glance { display: grid; grid-template-columns: minmax(280px, 360px) 1fr; gap: 0; padding: 0; overflow: hidden; }
.d2-occ { display: flex; align-items: center; gap: 22px; padding: 26px 28px; background: linear-gradient(180deg, #FFF8F0, #FFF3E6); border-right: 1px solid var(--border); }
.d2-ring { --p: 0; width: 120px; height: 120px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: conic-gradient(var(--brand) calc(var(--p) * 1%), #F6E3CF 0); transition: --p .8s ease; }
.d2-ring > div { width: 92px; height: 92px; border-radius: 50%; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; box-shadow: inset 0 0 0 1px rgba(248, 158, 61, .12); }
.d2-ring b { font-family: var(--font-head); font-weight: 800; font-size: 22px; letter-spacing: -.4px; }
.d2-ring span { font-size: 11px; color: var(--muted); }
.d2-occ-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; }
.d2-label { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 500; color: var(--muted); letter-spacing: .02em; }
.d2-big { font-family: var(--font-head); font-weight: 800; font-size: 32px; letter-spacing: -.6px; line-height: 1.1; }
.d2-big small, .d2-stat b small { font-size: .55em; color: var(--muted); font-weight: 700; letter-spacing: 0; }
.d2-thin { height: 6px; margin-top: 8px; background: #F6E3CF; }
.d2-thin span { background: var(--brand); }
.d2-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.d2-stat { display: flex; flex-direction: column; gap: 4px; padding: 18px 22px; border-left: 1px solid var(--border); border-top: 1px solid var(--border); transition: background .15s; }
.d2-stat:nth-child(-n+3) { border-top: 0; }
.d2-stat:nth-child(3n+1) { border-left: 0; }
.d2-stat:hover { background: #FCFBF8; }
.d2-stat b { font-family: var(--font-head); font-weight: 800; font-size: 28px; letter-spacing: -.5px; line-height: 1.1; color: var(--text); }
.d2-sub { font-size: 12.5px; color: var(--muted); }
.d2-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c); display: inline-block; }

/* three cards */
.d2-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: stretch; }
.d2-card { padding: 22px; }
.d2-todo { gap: 0; }
.d2-todo li { padding: 12px 0; border-bottom: 1px solid #F1EEE8; align-items: center; }
.d2-todo li:last-child { border-bottom: 0; }
.d2-todo .dot { width: 10px; height: 10px; box-shadow: 0 0 0 4px rgba(0, 0, 0, .03); }
.d2-todo .link { font-size: 12.5px; padding: 4px 10px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-dark); white-space: nowrap; }
.d2-todo .link:hover { background: #FDE6CC; text-decoration: none; }
.d2-fc { height: 160px; }
.d2-fc .fc-bar { border-radius: 8px 8px 4px 4px; background: #F9DDBF; max-width: 30px; }
.d2-fc .fc-col.today .fc-bar { background: var(--brand); }
.d2-fc .fc-col:hover .fc-bar { background: #F5BE85; }
.d2-fc .fc-col.today:hover .fc-bar { background: var(--brand-dark); }
.d2-hk-top { margin-bottom: 14px; }
.d2-hkbar { height: 12px; border-radius: 999px; gap: 3px; margin-bottom: 16px; }
.d2-hkbar span { border-radius: 999px; }
.d2-hklist { gap: 10px; }

/* guests table + side cards */
.d2-grid2 { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 18px; align-items: start; }
.d2-res .card-head { flex-wrap: wrap; gap: 10px; }
.d2-table th { background: transparent; }
.d2-table tbody tr:hover td { background: #FCFBF8; }
.d2-table td.guest { font-weight: 500; }
.d2-side { display: grid; gap: 18px; }
.d2-types li { padding: 6px 0; }
.d2-types .bar { height: 6px; }
.d2-feed li { padding: 8px 0; border-bottom: 1px solid #F1EEE8; }
.d2-feed li:last-child { border-bottom: 0; }

@media (max-width: 1200px) {
  .d2-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .d2-grid > .d2-card:first-child { grid-column: 1 / -1; }
  .d2-grid2 { grid-template-columns: minmax(0, 1fr); }
  .d2-side { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .d2-glance { grid-template-columns: minmax(0, 1fr); }
  .d2-occ { border-right: 0; border-bottom: 1px solid var(--border); padding: 20px; }
  .d2-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .d2-stat:nth-child(-n+3) { border-top: 1px solid var(--border); }
  .d2-stat:nth-child(-n+2) { border-top: 0; }
  .d2-stat:nth-child(3n+1) { border-left: 1px solid var(--border); }
  .d2-stat:nth-child(2n+1) { border-left: 0; }
  .d2-grid, .d2-side { grid-template-columns: minmax(0, 1fr); }
  .d2-head h1 { font-size: 30px; }
}

/* Bulk update: price per room type */
.pt-box { border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px; background: var(--bg); display: grid; gap: 10px; }
.pt-box[hidden] { display: none; }
.pt-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.pt-all { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.pt-all input { width: 110px; height: 34px; border: 1px solid var(--border); border-radius: 10px; padding: 0 10px; font: inherit; }
.pt-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 14px; }
.pt-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 8px 10px; }
.pt-row[hidden] { display: none; }
.pt-row span { font-size: 13px; min-width: 0; }
.pt-row b { font-family: var(--font-head); }
.pt-row small { display: block; font-size: 11.5px; }
.pt-row input { width: 110px; height: 36px; border: 1px solid var(--border); border-radius: 10px; padding: 0 10px; font: inherit; text-align: right; }
.pt-row input:focus, .pt-all input:focus { border-color: var(--brand); outline: 0; }
@media (max-width: 640px) { .pt-grid { grid-template-columns: 1fr; } }


/* Close shift: count as one amount or by bills */
.count-mode { margin: 6px 0 12px; }
.count-total input { height: 52px; font-size: 20px; font-family: var(--font-head); font-weight: 700; }

/* ============ Properties & onboarding ============ */
.ob-hotels, .ob-add, .ob-review, .ob-done { margin-bottom: 18px; }
.ob-hotels .card-head { margin-bottom: 8px; }
.ob-current td { background: #FFFBF6; }
.ob-actions { text-align: right; white-space: nowrap; }
.ob-actions .btn-sm + .btn-sm { margin-left: 6px; }
.property-menu .property-add { border-top: 1px solid var(--border); margin-top: 4px; padding-top: 4px; }
.property-menu .property-add a { display: block; padding: 9px 10px; border-radius: 7px; color: var(--brand-dark); font-weight: 500; font-size: 14px; }
.property-menu .property-add a:hover { background: var(--brand-soft); }

.ob-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }
.ob-step { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 14px; background: var(--gray-soft); }
.ob-step i { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 700; font-size: 13px; background: var(--surface); color: var(--muted); border: 1px solid var(--border); }
.ob-step b { display: block; font-family: var(--font-head); font-size: 14px; }
.ob-step span { font-size: 12.5px; color: var(--muted); }
.ob-step.on { background: var(--brand-soft); }
.ob-step.on i { background: var(--brand); border-color: var(--brand); color: #fff; }
.ob-step.done i { background: var(--green); border-color: var(--green); color: #fff; }

.ob-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 14px; }
.ob-box, .ob-drop { position: relative; border-radius: 16px; padding: 20px; }
.ob-box { border: 1px solid var(--border); }
.ob-box h3 { margin: 0 0 4px; font-size: 16px; }
.ob-box p { font-size: 13.5px; margin-bottom: 12px; }
.ob-n { position: absolute; top: 16px; right: 18px; font-family: var(--font-head); font-weight: 800; font-size: 13px; color: var(--brand-dark); background: var(--brand-soft); width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; }
.ob-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; padding: 0; list-style: none; }
.ob-tabs li { font-size: 12.5px; padding: 4px 10px; border-radius: 99px; background: var(--gray-soft); }
.ob-drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; min-height: 210px; border: 2px dashed #E6C9A5; background: #FFFBF6; cursor: pointer; transition: background .15s, border-color .15s; }
.ob-drop:hover, .ob-drop.over { border-color: var(--brand); background: var(--brand-soft); }
.ob-drop svg { width: 38px; height: 38px; fill: none; stroke: var(--brand); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 4px; }
.ob-drop b { font-family: var(--font-head); font-size: 16px; }
.ob-drop span { font-size: 13px; }
.ob-drop u { color: var(--brand-dark); }

.ob-review .card-head h2 { font-size: 22px; }
.ob-head-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.ob-head-btns .btn[disabled] { opacity: .45; cursor: not-allowed; }
.ob-tiles { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
.ob-tile { border-radius: 14px; background: var(--brand-soft); padding: 12px; }
.ob-tile b { display: block; font-family: var(--font-head); font-size: 24px; font-weight: 800; color: var(--brand-dark); line-height: 1.1; }
.ob-tile span { font-size: 12px; color: var(--muted); }
.ob-tile-off { background: var(--gray-soft); }
.ob-tile-off b { color: var(--muted); }
.ob-prob { border-radius: 12px; padding: 10px 14px; margin-bottom: 8px; font-size: 13.5px; }
.ob-prob b { font-family: var(--font-head); }
.ob-prob ul { margin: 4px 0 0; padding-left: 18px; }
.ob-prob li { margin: 2px 0; }
.ob-err { background: var(--red-soft); color: #8E2B28; }
.ob-warn { background: #FFF4E0; color: #7A5212; }
.ob-info { background: var(--blue-soft); color: #23518F; }
.ob-ok, .ob-bad { margin: 6px 0 14px; font-size: 14px; font-weight: 500; }
.ob-ok { color: var(--green); }
.ob-bad { color: var(--red); }
.ob-review details { border-top: 1px solid var(--border); padding: 12px 0 4px; }
.ob-review summary { cursor: pointer; font-family: var(--font-head); font-weight: 700; font-size: 15px; margin-bottom: 10px; }
.ob-review details .table-wrap { margin: 0 0 8px; }
.ob-kv { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 18px; margin-bottom: 8px; }
.ob-kv div span { display: block; font-size: 12px; color: var(--muted); }
.ob-kv div b { font-weight: 500; font-size: 14px; overflow-wrap: anywhere; }
.ob-floors { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.ob-floor { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 8px; align-items: start; }
.ob-floor > span { font-size: 12.5px; color: var(--muted); padding-top: 6px; }
.ob-floor > div { display: flex; flex-wrap: wrap; gap: 5px; }
.ob-floor em { font-style: normal; font-weight: 600; font-size: 13px; padding: 4px 8px; border-radius: 8px; background: var(--gray-soft); }
.ob-floor em small { font-weight: 400; color: var(--muted); margin-left: 4px; font-size: 11px; }
.ob-floor em.off { opacity: .45; text-decoration: line-through; }
.ob-floor em.bad { background: var(--red-soft); color: #8E2B28; }
.ob-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 8px; }
.ob-cols h4 { font-size: 13px; color: var(--muted); font-weight: 500; margin: 0 0 4px; }
.ob-cols .table td { padding: 7px 4px; }

.ob-done { text-align: center; padding: 34px 22px; }
.ob-done-icon { width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 10px; display: grid; place-items: center; background: var(--green-soft); color: var(--green); font-size: 26px; font-weight: 800; }
.ob-done h2 { font-size: 22px; margin-bottom: 4px; }
.ob-next { max-width: 520px; margin: 16px auto; text-align: left; background: var(--gray-soft); border-radius: 14px; padding: 14px 18px; font-size: 14px; }
.ob-next ol { margin: 6px 0 0; padding-left: 18px; }
.ob-done .ob-head-btns { justify-content: center; }

@media (max-width: 900px) {
  .ob-steps, .ob-grid { grid-template-columns: minmax(0, 1fr); }
  .ob-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ob-kv, .ob-cols { grid-template-columns: minmax(0, 1fr); }
}

/* Configuration → Rooms: the toolbar is a column, so the search keeps its own height */
.rc-bar .list-search { flex: none; align-self: stretch; min-height: 40px; }
