:root {
  color-scheme: light;
  --bg: #f5f2ed;
  --panel: #faf9f6;
  --panel-low: #fff8f6;
  --panel-high: #fff1ec;
  --panel-highest: #ffdbce;
  --sidebar: #fff1ec;
  --field: #efebe9;
  --text: #2b160f;
  --muted: #504441;
  --line: #e6e0d4;
  --accent: #442a22;
  --accent-soft: #5d4037;
  --accent-contrast: #faf9f6;
  --gold: #fed65b;
  --gold-ink: #241a00;
  --danger: #ba1a1a;
  --danger-soft: #ffdad6;
  --success: #58724a;
  --success-soft: #edf4e8;
  --info: #735c00;
  --info-soft: #ffe088;
  --room-occupied: #d9c4b1;
  --room-clean: #c8d4ce;
  --room-dirty: #d8b4b4;
  --room-blocked: #c0c0c0;
  --room-king: #ffdbce;
  --room-double: #c8d4ce;
  --room-suite: #fed65b;
  --shadow-warm: rgba(93, 64, 55, 0.08);
}
:root.dark-mode {
  color-scheme: dark;
  --bg: #181412;
  --panel: #241e1b;
  --panel-low: #201a18;
  --panel-high: #332822;
  --panel-highest: #583c32;
  --sidebar: #211a17;
  --field: #302723;
  --text: #f3e9e2;
  --muted: #cbbdb5;
  --line: #4d4039;
  --accent: #ffe2d6;
  --accent-soft: #d7b4a4;
  --accent-contrast: #261b17;
  --gold: #ffd970;
  --gold-ink: #302500;
  --danger: #ffb4ab;
  --danger-soft: #5d2525;
  --success: #b9d4a9;
  --success-soft: #283b2a;
  --info: #ffe08a;
  --info-soft: #574600;
  --room-occupied: #705c4c;
  --room-clean: #50655c;
  --room-dirty: #704c4c;
  --room-blocked: #555555;
  --room-king: #70483c;
  --room-double: #50655c;
  --room-suite: #816d25;
  --shadow-warm: rgba(0, 0, 0, .28);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Hanken Grotesk", Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  min-height: 100vh;
}
body,
.panel,
.mobile-topbar,
.view-tabs,
button,
input,
select,
textarea {
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}
.mobile-topbar {
  background: rgba(255, 248, 246, .96);
  border-bottom: 1px solid var(--line);
  padding: 0 34px;
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  min-height: 72px;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 2px 16px rgba(93, 64, 55, .06);
  backdrop-filter: blur(10px);
}
.header-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.header-logo {
  width: 86px;
  height: 58px;
  object-fit: contain;
  flex: 0 0 auto;
}
.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}
h1 {
  font-family: "Literata", Georgia, serif;
  font-size: 24px;
  line-height: 1.22;
  letter-spacing: 0;
  margin: 0 0 4px;
}
main {
  padding: 104px 40px 56px;
  max-width: 1280px;
  margin: 0 auto 0 264px;
}
.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background: var(--accent-soft);
  color: var(--panel-highest);
  font-family: "Literata", Georgia, serif;
  font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(255, 248, 246, .18);
}
.muted { color: var(--muted); }
.grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 4px 20px var(--shadow-warm);
}
.view-tabs {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: fixed;
  left: 0;
  top: 72px;
  bottom: 0;
  width: 264px;
  z-index: 40;
  overflow-y: auto;
  background: var(--sidebar);
  border-right: 1px solid var(--line);
  box-shadow: 6px 0 22px rgba(93, 64, 55, .06);
  padding: 24px 16px;
}
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.sidebar-brand strong,
.sidebar-brand span {
  display: block;
}
.sidebar-brand strong {
  font-family: "Literata", Georgia, serif;
  color: var(--accent);
  font-size: 20px;
  line-height: 1.2;
}
.sidebar-brand span {
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}
.view-tabs button {
  width: 100%;
  justify-content: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}
.view-tabs button .material-symbols-outlined {
  font-size: 22px;
}
.view-tabs button.active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--gold-ink);
  transform: scale(.98);
}
.view-tabs button:hover {
  background: var(--panel-high);
}
.view-tabs button.active:hover {
  background: var(--gold);
}
.nav-new-reservation {
  margin-bottom: 14px;
  background: var(--accent) !important;
  border-color: var(--accent) !important;
  color: var(--accent-contrast) !important;
  justify-content: center !important;
  box-shadow: 0 12px 26px var(--shadow-warm) !important;
}
.page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: end;
  margin-bottom: 28px;
}
.page-hero h2 {
  font-family: "Literata", Georgia, serif;
  font-size: clamp(28px, 3.2vw, 36px);
  line-height: 1.12;
  color: var(--accent);
  margin: 0;
}
.page-hero p {
  color: var(--muted);
  font-size: 18px;
  margin: 8px 0 0;
}
.eyebrow {
  color: var(--gold-ink);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.hero-actions button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.view-panel.hidden {
  display: none;
}
.metric {
  font-family: "Literata", Georgia, serif;
  font-size: 38px;
  line-height: 1;
  font-weight: 700;
  margin-top: 12px;
  color: var(--accent);
}
.grid > .panel {
  min-height: 128px;
  position: relative;
  overflow: hidden;
}
.grid > .panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, rgba(254, 214, 91, .14), transparent 48%);
  opacity: 0;
  transition: opacity .18s ease;
  pointer-events: none;
}
.grid > .panel:hover::after {
  opacity: 1;
}
.grid > .panel:nth-child(2) {
  border-top: 4px solid var(--gold);
}
.limit-list {
  display: grid;
  gap: 4px;
  margin-top: 8px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
}
.limit-list span {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px solid #f1ded8;
  padding-bottom: 3px;
}
.bot-status {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
}
.bot-status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.bot-status-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}
.bot-status-card .bot-status {
  min-height: 118px;
}
.status-row {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 8px;
}
.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #827470;
  display: inline-block;
}
.status-dot.open {
  background: #442a22;
}
.status-dot.qr,
.status-dot.close {
  background: #ba1a1a;
}
.qr-box {
  display: grid;
  gap: 8px;
  justify-items: center;
  min-width: 210px;
}
.qr-box img {
  width: 210px;
  height: 210px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff8f6;
  padding: 8px;
}
.hidden {
  display: none !important;
}
.toolbar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.global-search-panel {
  margin-top: 0;
  background:
    linear-gradient(135deg, rgba(254, 214, 91, .12), transparent 34%),
    var(--panel);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.global-search-panel.search-panel-active {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(254, 214, 91, .2), 0 8px 28px var(--shadow-warm);
  transform: translateY(-2px);
}
.search-controls {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.search-controls input {
  min-width: min(520px, 70vw);
}
.search-results {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
.search-grid,
.today-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.search-card,
.today-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel-low);
  padding: 16px;
  min-width: 0;
  box-shadow: 0 6px 18px var(--shadow-warm);
}
.search-card h3,
.today-card h3 {
  font-family: "Literata", Georgia, serif;
  letter-spacing: 0;
  margin: 0 0 8px;
  font-size: 16px;
}
.mini-list {
  display: grid;
  gap: 8px;
}
.mini-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff1ec;
  padding: 9px;
}
.search-result-button {
  width: 100%;
  text-align: left;
  font-weight: 400;
  color: var(--text);
}
.search-result-button:hover {
  border-color: var(--accent);
  background: #fff1ec;
}
button {
  border: 1px solid var(--line);
  background: var(--panel-low);
  border-radius: 6px;
  padding: 9px 12px;
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(255, 248, 246, .35);
}
button:hover {
  border-color: var(--accent-soft);
  background: var(--panel-high);
}
button:disabled {
  cursor: wait;
  opacity: .65;
}
button.is-loading .material-symbols-outlined {
  animation: spinIcon .9s linear infinite;
}
@keyframes spinIcon {
  to { transform: rotate(360deg); }
}
button.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-contrast);
  box-shadow: 0 10px 24px var(--shadow-warm), inset 0 0 0 1px rgba(255, 248, 246, .18);
}
button.danger {
  color: var(--danger);
}
button.compact {
  padding: 6px 8px;
  font-size: 12px;
}
.help-button {
  border-radius: 999px;
  width: 26px;
  height: 26px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  border-color: #d4c3be;
  color: #5d4037;
  background: #fff1ec;
  margin-left: 6px;
  vertical-align: middle;
}
.help-button:hover {
  background: #ffe088;
}
input,
select,
textarea {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 9px 10px;
  min-width: 220px;
  max-width: 100%;
  background: var(--field);
  color: var(--text);
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(93, 64, 55, .12);
  outline: none;
}
.file-input {
  display: none;
}
.file-dropzone {
  border: 1px dashed #d4c3be;
  border-radius: 8px;
  background: #fff8f6;
  padding: 10px 12px;
  min-height: 48px;
  min-width: 250px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.file-dropzone:hover,
.file-dropzone:focus-within,
.file-dropzone.active {
  border-color: var(--accent);
  background: #fff1ec;
  box-shadow: 0 0 0 3px rgba(93, 64, 55, .12);
  outline: none;
}
.file-dropzone.dragging {
  border-color: var(--accent);
  background: #ffdbce;
}
.file-badge {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #fff8f6;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .02em;
}
.file-copy {
  min-width: 0;
}
.file-copy strong,
.file-copy span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.file-copy span {
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}
.file-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: stretch;
}
.table-wrap {
  width: 100%;
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
th, td {
  border-bottom: 1px solid var(--line);
  padding: 10px 8px;
  text-align: left;
  vertical-align: top;
}
th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.pill {
  display: inline-block;
  border-radius: 999px;
  padding: 3px 8px;
  background: var(--panel-high);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}
.pill.cancelada {
  background: var(--danger-soft);
  color: #93000a;
}
.bar {
  height: 8px;
  background: #d4c3be;
  border-radius: 999px;
  overflow: hidden;
  margin-top: 4px;
  min-width: 120px;
}
.bar span {
  display: block;
  height: 100%;
  background: var(--accent);
}
.occupancy-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}
.occupancy-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fff8f6;
  min-width: 0;
}
.occupancy-types {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}
.occupancy-type {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 7px;
  min-width: 0;
  background: #fff1ec;
}
.occupancy-type span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}
.occupancy-type strong {
  font-size: 12px;
}
.occupancy-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.occupancy-date strong {
  display: block;
  font-size: 15px;
}
.occupancy-ring {
  --pct: 0;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background:
    conic-gradient(var(--accent) calc(var(--pct) * 1%), #d4c3be 0);
}
.occupancy-ring span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff8f6;
  font-size: 12px;
  font-weight: 800;
}
.rack-dashboard {
  display: grid;
  grid-template-columns: 1.25fr 1.35fr repeat(4, minmax(0, 1fr));
  gap: 10px;
  align-items: stretch;
}
.rack-meta-card,
.rack-kpi-card,
.rack-pie-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fff8f6;
  min-width: 0;
}
.rack-kpi-card strong {
  display: block;
  font-size: 26px;
  margin-top: 4px;
}
.rack-type-line {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  margin-top: 6px;
}
.rack-pie-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}
.rack-pie {
  --occupied: 0deg;
  --available: 0deg;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    conic-gradient(
      var(--room-occupied) 0deg var(--occupied),
      var(--room-clean) var(--occupied) calc(var(--occupied) + var(--available)),
      var(--room-blocked) calc(var(--occupied) + var(--available)) 360deg
    );
}
.rack-pie span {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #fff8f6;
  font-weight: 800;
  font-size: 13px;
}
.rack-pie-legend {
  display: grid;
  gap: 6px;
  font-size: 12px;
}
.rack-pie-legend div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.rack-pie-legend i {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  display: inline-block;
  margin-right: 6px;
}
.rack-pie-legend strong {
  font-size: 13px;
}
.rack-pie-occupied { background: var(--room-occupied); border: 1px solid rgba(68, 42, 34, .2); }
.rack-pie-available { background: var(--room-clean); border: 1px solid rgba(68, 42, 34, .12); }
.rack-pie-blocked { background: var(--room-blocked); border: 1px solid rgba(68, 42, 34, .18); }
.rack-room-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 8px;
  margin-top: 12px;
}
.rack-room {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 6px;
  background: #fff8f6;
  text-align: left;
  min-width: 0;
}
.rack-room strong {
  display: block;
  font-size: 15px;
}
.rack-room span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 2px;
}
.rack-room .rack-room-guest,
.floor-room .rack-room-guest {
  color: var(--text);
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rack-room.occupied {
  background: var(--room-occupied);
  border-color: rgba(68, 42, 34, .2);
}
.rack-room.available {
  background: #faf9f6;
  border-color: rgba(68, 42, 34, .14);
}
.rack-room.available-type-king {
  background: var(--room-king);
  border-color: rgba(68, 42, 34, .16);
}
.rack-room.available-type-double {
  background: var(--room-double);
  border-color: rgba(68, 42, 34, .14);
}
.rack-room.available-type-suite {
  background: var(--room-suite);
  border-color: rgba(68, 42, 34, .18);
}
.rack-room.blocked {
  background: var(--room-blocked);
  border-color: rgba(68, 42, 34, .18);
}
textarea {
  width: 100%;
  min-height: 220px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px;
  font-family: Consolas, monospace;
  white-space: pre-wrap;
}
.rack-controls {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.date-controls {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
}
label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}
.calendar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 14px 0 10px;
}
.calendar-title {
  font-weight: 700;
  text-transform: capitalize;
}
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}
.weekday {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
}
.day {
  min-height: 92px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff8f6;
  padding: 7px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 4px;
  text-align: left;
  cursor: pointer;
}
.day.empty {
  background: transparent;
  border-color: transparent;
}
.day.closed {
  background: #ffdad6;
  border-color: #ffdad6;
}
.day.today {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}
.day-number {
  font-weight: 700;
}
.day-meta {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
}
.day-breakdown {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}
.day-pie {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background:
    conic-gradient(
      #442a22 0 var(--arrivals, 0deg),
      #735c00 var(--arrivals, 0deg) calc(var(--arrivals, 0deg) + var(--continuing, 0deg)),
      #d4c3be 0 360deg
    );
  border: 1px solid #d4c3be;
  box-shadow: inset 0 0 0 7px #fff8f6;
  flex: 0 0 auto;
}
.day-pie-legend {
  display: grid;
  gap: 2px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.2;
}
.day-pie-legend i {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  margin-right: 4px;
  vertical-align: -1px;
}
.day-pie-arrivals { background: #442a22; }
.day-pie-continuing { background: #735c00; }
.day-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.day-view {
  border-color: #d4c3be;
  padding: 3px 6px;
  min-width: auto;
  font-size: 11px;
  line-height: 1.1;
}
.day-view.has-reservations {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff8f6;
}
.day.closed .day-meta {
  color: #93000a;
  font-weight: 700;
}
.day.in-range {
  background: #edf4e8;
  border-color: #a8be9b;
}
.day.selected {
  background: #ffdbce;
  border-color: var(--accent);
  box-shadow: inset 0 0 0 2px var(--accent);
}
.selection-summary {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}
.day-summary-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin-top: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff1ec;
}
.summary-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.chip {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff8f6;
  padding: 4px 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.alert-list,
.arrival-list,
.quote-list {
  display: grid;
  gap: 10px;
}
.alert-item {
  border: 1px solid #ffdad6;
  border-radius: 8px;
  background: #fff7f7;
  padding: 10px 12px;
}
.arrival-item,
.quote-item,
.quote-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff8f6;
  padding: 12px;
}
.arrival-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  text-align: left;
  color: var(--text);
  font-weight: 400;
}
.arrival-item:hover {
  border-color: var(--accent);
}
.arrival-item.arrived,
.day-reservation-item.arrived {
  background: #edf4e8;
  border-color: #a8be9b;
}
.arrival-item.pending,
.day-reservation-item.pending {
  background: #ffe088;
  border-color: #735c00;
  box-shadow: inset 4px 0 0 #735c00;
}
.arrival-item.delayed,
.day-reservation-item.delayed {
  background: #ffdad6;
  border-color: #e7bdb1;
}
.checkin-layout {
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  gap: 20px;
  margin-top: 20px;
  padding: 6px;
}
.checkin-list-panel,
.checkin-form-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff8f6;
  padding: 20px;
}
.checkin-list-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}
.checkin-reservation-list {
  display: grid;
  gap: 8px;
  max-height: 580px;
  overflow: auto;
  padding-right: 4px;
}
.checkin-reservation-item {
  display: grid;
  gap: 4px;
  width: 100%;
  text-align: left;
  background: #fff;
  color: var(--text);
}
.checkin-reservation-item span {
  color: var(--muted);
  font-size: 13px;
}
.checkin-reservation-item.selected {
  border-color: var(--accent);
  box-shadow: inset 4px 0 0 var(--accent);
  background: #fff1ec;
}
.checkin-form-grid {
  margin-top: 16px;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.checkin-form-grid input,
.checkin-form-grid select,
.checkin-form-grid textarea {
  width: 100%;
  min-width: 0;
}
.rack-type-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 -2px;
}
.rack-type-legend span {
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid var(--line);
}
.rack-type-legend .king { background: #ffdbce; border-color: #d4ada1; }
.rack-type-legend .double { background: #ffe088; border-color: #e9c349; }
.rack-type-legend .suite { background: #ffe088; border-color: #fed65b; }
.report-toolbar {
  display: flex;
  gap: 10px;
  align-items: end;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.report-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.report-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff8f6;
  padding: 16px;
  min-width: 0;
  overflow: hidden;
}
.report-card.wide {
  grid-column: 1 / -1;
}
.report-card h3 {
  margin: 0 0 4px;
  font-size: 16px;
}
.report-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  font-size: 13px;
}
.report-table th,
.report-table td {
  border-bottom: 1px solid var(--line);
  padding: 7px 6px;
  text-align: left;
  vertical-align: top;
}
.report-table th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}
.report-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.report-kpi {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff1ec;
  padding: 14px 14px 14px 54px;
  min-height: 104px;
  overflow: hidden;
}
.report-kpi strong {
  display: block;
  font-size: 28px;
  margin-top: 4px;
  color: var(--accent);
}
.report-kpi small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
  margin-top: 4px;
}
.report-kpi-icon {
  position: absolute;
  left: 12px;
  top: 14px;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--gold);
  color: var(--gold-ink);
}
.report-kpi-icon .material-symbols-outlined {
  font-size: 20px;
}
.report-occupancy-chart {
  align-items: end;
  background: linear-gradient(180deg, #fff8f6, #fff1ec);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 5px;
  grid-auto-flow: column;
  grid-auto-columns: minmax(18px, 1fr);
  height: 190px;
  margin-top: 12px;
  overflow-x: auto;
  padding: 14px 12px 10px;
}
.report-day-bar {
  align-items: center;
  display: grid;
  gap: 6px;
  grid-template-rows: 1fr auto;
  height: 100%;
  min-width: 18px;
}
.report-day-track {
  align-items: end;
  background: rgba(68, 42, 34, .08);
  border-radius: 999px;
  display: flex;
  height: 100%;
  overflow: hidden;
  width: 100%;
}
.report-day-track span {
  background: linear-gradient(180deg, var(--gold), var(--accent-soft));
  border-radius: 999px;
  display: block;
  min-height: 3px;
  width: 100%;
}
.report-day-bar strong {
  color: var(--muted);
  font-size: 10px;
  text-align: center;
}
.report-ranking,
.report-source-bars {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}
.report-rank-row,
.report-source-row {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(92px, .35fr) minmax(0, 1fr) auto;
}
.report-source-row {
  grid-template-columns: minmax(120px, .45fr) minmax(0, 1fr);
}
.report-rank-row span,
.report-source-row span {
  color: var(--muted);
  display: block;
  font-size: 12px;
}
.report-progress {
  background: rgba(68, 42, 34, .08);
  border-radius: 999px;
  height: 12px;
  overflow: hidden;
}
.report-progress span {
  background: linear-gradient(90deg, var(--gold), var(--accent-soft));
  border-radius: 999px;
  display: block;
  height: 100%;
  min-width: 4px;
}
.report-service-cards,
.report-event-summary {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  margin-top: 12px;
}
.report-service-card,
.report-event-summary div {
  background: #faf9f6;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}
.report-service-card.urgent {
  background: #fff1ec;
  border-color: #d8b4b4;
}
.report-service-card strong,
.report-service-card span,
.report-service-card small,
.report-event-summary span,
.report-event-summary strong {
  display: block;
}
.report-service-card span,
.report-service-card small,
.report-event-summary span {
  color: var(--muted);
  font-size: 12px;
}
.report-service-card b,
.report-event-summary strong {
  color: var(--accent);
  font-size: 20px;
}
.room-event-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
}
.room-event-form .wide {
  grid-column: span 2;
}
.note-row {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) auto;
  gap: 8px;
  margin-top: 8px;
}
.note-row input {
  min-width: 0;
  width: 100%;
}
.quote-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr);
  gap: 16px;
  align-items: start;
}
.quote-workspace {
  background:
    linear-gradient(180deg, rgba(115, 92, 0, .12), transparent 190px),
    #fffdf9;
  border-color: #e9c349;
}
.quote-hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border: 1px solid #e9c349;
  border-radius: 8px;
  background: #fff7ea;
  margin-bottom: 14px;
}
.quote-hero-panel strong {
  display: block;
  color: #442a22;
  font-size: 22px;
}
.quote-hero-panel span {
  color: #93000a;
  font-weight: 800;
}
.quote-save-card {
  position: sticky;
  top: 96px;
  border: 1px solid #e9c349;
  background: #fffdf9;
}
.quote-save-card .primary {
  width: 100%;
  margin-top: 12px;
  background: #5d4037;
  border-color: #5d4037;
}
.quote-fieldset {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}
.quote-fieldset-title {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  color: #442a22;
  font-weight: 800;
  margin: 14px 0 8px;
}
.quote-presets {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.quote-presets button {
  border-color: #e9c349;
  background: #fff7ea;
  color: #442a22;
}
.quote-menu-picker {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 8px;
  align-items: end;
  padding: 12px;
  border: 1px solid #d4c3be;
  border-radius: 8px;
  background: #fffaf2;
  margin: 10px 0;
}
.quote-menu-preview {
  grid-column: 1 / -1;
  color: #775c4e;
  font-size: 13px;
  line-height: 1.4;
}
.quote-menu-modifiers {
  grid-column: 1 / -1;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.quote-menu-modifiers label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #d4c3be;
  border-radius: 999px;
  padding: 6px 10px;
  background: #fff8f6;
  color: #442a22;
  font-weight: 700;
}
.quote-menu-modifiers input {
  min-width: 0;
}
.quote-template-toggle {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.quote-template-option {
  border: 1px solid #e9c349;
  border-radius: 8px;
  padding: 10px;
  background: #fff8f6;
}
.quote-template-option input {
  min-width: 0;
  margin-right: 6px;
}
.quote-menu-editor {
  margin-top: 12px;
  border: 1px solid #d4c3be;
  border-radius: 8px;
  background: #fffdf9;
  padding: 12px;
}
.quote-menu-editor-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}
.quote-menu-row {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) 96px minmax(220px, 1.35fr) auto;
  gap: 8px;
  align-items: center;
  margin-top: 8px;
}
.quote-menu-row input {
  min-width: 0;
  width: 100%;
}
.quote-menu-status {
  color: #775c4e;
  font-size: 13px;
  margin-top: 8px;
}
.event-board {
  margin-top: 16px;
}
.event-calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(120px, 1fr));
  gap: 8px;
  margin: 12px 0 18px;
}
.event-day {
  background: #fff8f6;
  border: 1px solid var(--line);
  border-radius: 12px;
  min-height: 106px;
  padding: 9px;
}
.event-day.today {
  outline: 2px solid var(--primary);
}
.event-day.empty {
  background: transparent;
  border-color: transparent;
}
.event-date-label {
  font-weight: 800;
  margin-bottom: 6px;
}
.event-pill {
  border-radius: 10px;
  border: 1px solid var(--line);
  padding: 6px;
  margin-top: 5px;
  font-size: 12px;
  background: #fff1ec;
  cursor: pointer;
}
.event-pill.cotizacion {
  background: #fff7ed;
  border-color: #ffdbce;
}
.event-pill.apartado {
  background: #fff1ec;
  border-color: #e9c349;
}
.event-pill.pago_completo {
  background: #edf4e8;
  border-color: #a8be9b;
}
.payment-bar {
  background: #d4c3be;
  border-radius: 999px;
  height: 8px;
  overflow: hidden;
  margin-top: 5px;
}
.payment-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #442a22, #58724a);
}
.event-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}
.event-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff8f6;
  padding: 12px;
  cursor: pointer;
}
.event-card:hover,
.event-pill:hover {
  box-shadow: 0 8px 24px rgba(93, 64, 55, .10);
}
.event-alert {
  border: 1px solid #ffdbce;
  background: #fff7ed;
  border-radius: 12px;
  padding: 10px 12px;
}
.event-alert.danger {
  border-color: #ffdad6;
  background: #ffdad6;
}
.availability-ok {
  color: #58724a;
  font-weight: 700;
}
.availability-bad {
  color: #ba1a1a;
  font-weight: 700;
}
.event-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.event-detail-box {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  background: #fff1ec;
}
.event-detail-box span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 4px;
}
.voucher-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}
.voucher-item {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  background: #fff8f6;
}
.floor-map {
  margin-top: 14px;
  display: grid;
  gap: 12px;
}
.floor-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff8f6;
  padding: 12px;
}
.floor-rooms {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(62px, 1fr));
  gap: 8px;
  margin-top: 10px;
}
.floor-room {
  border: 1px solid var(--line);
  border-radius: 10px;
  min-height: 54px;
  padding: 7px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-size: 12px;
}
.floor-room strong {
  font-size: 15px;
}
.floor-room .rack-room-guest {
  font-size: 10px;
}
.rack-guest-summary { margin-bottom: 18px; }
.rack-guest-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.rack-guest-kpis div { padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel-high); }
.rack-guest-kpis span, .rack-guest-kpis strong { display: block; }
.rack-guest-kpis span { color: var(--muted); font-size: 12px; }
.rack-guest-kpis .rack-guest-notes { grid-column: 1 / -1; overflow-wrap: anywhere; }
.rack-movement-form { border-top: 1px solid var(--line); padding-top: 16px; }
.rack-movement-form > strong { display: block; margin-bottom: 12px; }
.rack-guest-actions { margin-top: 12px; }
@media (max-width: 640px) { .rack-guest-kpis { grid-template-columns: 1fr; } }
.floor-room.occupied { background: var(--room-occupied); border-color: rgba(68, 42, 34, .2); }
.floor-room.clean { background: var(--room-clean); border-color: rgba(68, 42, 34, .12); }
.floor-room.dirty { background: var(--room-dirty); border-color: rgba(68, 42, 34, .2); }
.floor-room.blocked { background: var(--room-blocked); border-color: rgba(68, 42, 34, .18); }
.event-card-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}
.voucher-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 10px;
}
.voucher-row input[type="file"] {
  max-width: 260px;
}
.quote-catalog-app-modal {
  width: min(900px, 100%);
}
.quote-catalog-app-modal .quote-menu-editor {
  margin-top: 0;
}
.quote-section {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(132px, .65fr) minmax(126px, .55fr) minmax(140px, .7fr) auto;
  gap: 8px;
  align-items: end;
  margin-top: 10px;
  border-color: #e9c349;
  background: #fffdf9;
}
.quote-section textarea {
  grid-column: 1 / -1;
  min-height: 72px;
}
.quote-total {
  font-size: 28px;
  font-weight: 800;
  margin-top: 8px;
  color: #93000a;
}
.quote-subtotal-line {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px solid #d4c3be;
  color: #775c4e;
  font-weight: 700;
}
.quote-item {
  border-color: #d4c3be;
  background: #fffdf9;
}
.app-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: rgba(43, 22, 15, .42);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.app-modal {
  width: min(980px, 100%);
  max-height: min(760px, 92vh);
  overflow: auto;
  background: #fff8f6;
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(93, 64, 55, .18);
  border: 1px solid var(--line);
}
.app-modal-head {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #fff8f6;
  border-bottom: 1px solid var(--line);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.app-modal-body {
  padding: 16px;
}
.help-content {
  white-space: pre-line;
  color: var(--muted);
  line-height: 1.45;
  font-size: 15px;
}
.confirm-app-modal {
  width: min(460px, 100%);
}
.reservation-edit-app-modal {
  width: min(760px, 100%);
}
.confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
}
.app-modal-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.app-modal-kpi {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #fff1ec;
}
.app-modal-kpi strong {
  display: block;
  font-size: 20px;
  margin-top: 4px;
}
.app-modal-day-breakdown {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff1ec;
  padding: 10px;
  margin-bottom: 14px;
}
.app-modal-day-breakdown .day-pie {
  width: 72px;
  height: 72px;
  box-shadow: inset 0 0 0 18px #fff8f6;
}
.day-reservation-list {
  display: grid;
  gap: 10px;
}
.day-reservation-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  display: grid;
  gap: 10px;
}
.day-reservation-head,
.day-reservation-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.day-reservation-details {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.day-reservation-details div {
  min-width: 0;
}
.day-reservation-details strong,
.day-reservation-details span {
  display: block;
  overflow-wrap: anywhere;
}
.reservation-edit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.reservation-edit-grid label {
  display: grid;
  gap: 5px;
  font-weight: 700;
  font-size: 13px;
}
.reservation-edit-grid .wide {
  grid-column: span 2;
}
.preassign-toolbar {
  align-items: end;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(180px, 240px) 1fr auto auto;
}
.preassign-kpis {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 14px 0;
}
.preassign-kpi,
.preassign-side-card {
  background: #fff1ec;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}
.preassign-kpi strong {
  display: block;
  font-size: 22px;
  margin-top: 4px;
}
.preassign-layout {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr) 360px;
}
.preassign-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
}
.preassign-room {
  background: #fff8f6;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  min-height: 94px;
  padding: 8px;
  text-align: left;
}
.preassign-room:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 16px rgba(93, 64, 55, 0.08);
}
.preassign-room strong,
.preassign-room span {
  display: block;
}
.preassign-room .guest {
  font-size: 12px;
  margin-top: 5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.preassign-room.available {
  background: #faf9f6;
  border-color: rgba(68, 42, 34, .14);
}
.preassign-room.assigned {
  background: var(--room-clean);
  border-color: rgba(68, 42, 34, .18);
}
.preassign-room.continued {
  background: #ffe088;
  border-color: var(--gold);
}
.preassign-room.occupied {
  background: var(--room-occupied);
  border-color: rgba(68, 42, 34, .2);
}
.preassign-room.blocked {
  background: var(--room-blocked);
  border-color: rgba(68, 42, 34, .18);
}
.preassign-room.dirty {
  background: var(--room-dirty);
  border-color: rgba(68, 42, 34, .2);
}
.preassign-app-modal-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
}
.preassign-candidate-list {
  display: grid;
  gap: 8px;
  max-height: 420px;
  overflow: auto;
}
.preassign-candidate {
  background: #fff8f6;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  padding: 10px;
}
.preassign-candidate.selected {
  border-color: var(--accent);
  box-shadow: inset 3px 0 0 var(--accent);
}
.preassign-candidate.assigned {
  opacity: 0.62;
}
.preassign-form {
  display: grid;
  gap: 10px;
}
.preassign-form-row {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.preassign-side-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}
.preassign-mini-row {
  border-bottom: 1px solid var(--line);
  padding: 8px 0;
}
.preassign-mini-row:last-child {
  border-bottom: 0;
}
.preassign-conflict-row {
  border-left: 3px solid #735c00;
  padding-left: 8px;
}
body.app-modal-open {
  overflow: hidden;
}
@media (max-width: 900px) {
  .mobile-topbar {
    display: flex;
    height: auto;
    min-height: 72px;
    padding: 14px 20px;
    align-items: center;
  }
  main {
    margin-left: 0;
    padding: 96px 20px 40px;
    max-width: none;
  }
  .view-tabs {
    position: sticky;
    top: 72px;
    z-index: 25;
    width: auto;
    margin: 0 -20px 18px;
    padding: 8px 20px;
    flex-direction: row;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 8px 22px rgba(93, 64, 55, .08);
  }
  .sidebar-brand,
  .nav-new-reservation {
    display: none !important;
  }
  .view-tabs button {
    width: auto;
    min-width: max-content;
    min-height: 40px;
    padding: 8px 12px;
  }
  .view-tabs button.active {
    transform: none;
  }
  .view-tabs button .material-symbols-outlined {
    font-size: 20px;
  }
  .page-hero {
    grid-template-columns: 1fr;
    align-items: start;
    margin-bottom: 18px;
  }
  .page-hero h2 {
    font-size: 30px;
  }
  .page-hero p {
    font-size: 16px;
  }
  .grid { grid-template-columns: 1fr; }
  .bot-status-grid { grid-template-columns: 1fr; }
  .day-reservation-details,
  .reservation-edit-grid,
  .preassign-toolbar,
  .preassign-layout,
  .checkin-layout,
  .preassign-app-modal-grid,
  .preassign-form-row {
    grid-template-columns: 1fr;
  }
  .preassign-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .reservation-edit-grid .wide {
    grid-column: auto;
  }
  .bot-status {
    grid-template-columns: 1fr;
  }
  .qr-box {
    justify-items: start;
  }
  table { font-size: 13px; }
  h1 { font-size: 20px; }
  .toolbar {
    align-items: stretch;
    flex-direction: column;
  }
  .toolbar > div {
    width: 100%;
  }
  .rack-controls {
    display: grid;
    grid-template-columns: 1fr;
  }
  .occupancy-list {
    grid-template-columns: 1fr;
  }
  .quote-layout,
  .quote-section,
  .quote-menu-row,
  .arrival-item,
  .note-row {
    grid-template-columns: 1fr;
  }
  .rack-dashboard {
    grid-template-columns: 1fr;
  }
  .date-controls {
    grid-template-columns: 1fr;
  }
  .calendar-grid {
    gap: 4px;
  }
  .day {
    min-height: 76px;
    padding: 5px;
  }
  .weekday,
  .day-meta {
    font-size: 11px;
  }
  input,
  select,
  button {
    width: 100%;
    min-width: 0;
  }
  .view-tabs button {
    width: auto;
    min-width: max-content;
  }
  .hero-actions button,
  .header-actions button {
    width: auto;
  }
  .day-view {
    width: auto;
  }
  .day-summary-card,
  .app-modal-head {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
  .app-modal-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .report-kpis,
  .report-grid,
  .report-service-cards,
  .report-event-summary {
    grid-template-columns: 1fr;
  }
  .report-rank-row,
  .report-source-row {
    grid-template-columns: 1fr;
  }
  .report-occupancy-chart {
    height: 150px;
  }
  textarea {
    min-height: 280px;
  }
  th, td {
    padding: 9px 6px;
  }
}

/* Pantallas compactas: evita cortes horizontales y deja los controles al alcance. */
@media (max-width: 640px) {
  .mobile-topbar {
    min-height: 64px;
    padding: 8px 14px;
    gap: 9px;
  }
  .header-brand {
    gap: 8px;
    flex: 1 1 auto;
  }
  .header-logo {
    width: 56px;
    height: 42px;
  }
  .mobile-topbar h1 {
    font-size: 17px;
    margin: 0;
  }
  .mobile-topbar .muted {
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 190px;
  }
  .header-actions {
    gap: 6px;
  }
  .header-actions button span:not(.material-symbols-outlined) {
    display: none;
  }
  .theme-toggle {
    width: 42px !important;
    min-width: 42px !important;
    height: 42px;
    padding: 0;
  }
  main {
    padding: 82px 14px 30px;
  }
  .view-tabs {
    top: 64px;
    margin: 0 -14px 14px;
    padding: 7px 14px;
    scrollbar-width: thin;
  }
  .view-tabs button {
    min-height: 38px;
    padding: 7px 10px;
    gap: 6px;
    font-size: 13px;
  }
  .view-tabs button .material-symbols-outlined {
    font-size: 18px;
  }
  .page-hero h2 {
    font-size: 26px;
  }
  .page-hero p {
    font-size: 14px;
  }
  .hero-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }
  .hero-actions button,
  .hero-actions button.primary {
    width: 100%;
    justify-content: center;
    padding: 9px 6px;
    font-size: 12px;
  }
  .hero-actions button span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .panel {
    padding: 16px;
    margin-bottom: 16px;
  }
  .metric {
    font-size: 32px;
  }
  .table-wrap {
    margin: 0 -4px;
    width: calc(100% + 8px);
  }
  .table-wrap table {
    min-width: 620px;
  }
  .app-modal-backdrop {
    align-items: flex-end;
    padding: 0;
  }
  .app-modal {
    width: 100%;
    max-height: 88vh;
    border-radius: 14px 14px 0 0;
  }
  .app-modal-head,
  .app-modal-body {
    padding: 13px 14px;
  }
  .app-modal-kpis,
  .preassign-kpis {
    grid-template-columns: 1fr;
  }
}

/* Colores que originalmente eran fijos y necesitan acompañar el tema. */
:root.dark-mode .mobile-topbar { background: rgba(33, 26, 23, .96); }
:root.dark-mode .app-modal,
:root.dark-mode .app-modal-head,
:root.dark-mode .preassign-room,
:root.dark-mode .preassign-candidate,
:root.dark-mode .file-dropzone,
:root.dark-mode .quote-item { background: var(--panel-low); }
:root.dark-mode .preassign-room.available { background: var(--panel); }
:root.dark-mode .help-button { background: var(--panel-high); border-color: var(--line); color: var(--text); }
:root.dark-mode .bar { background: #5b4b43; }
:root.dark-mode .pill.cancelada { color: #ffb4ab; }
:root.dark-mode .file-dropzone:hover,
:root.dark-mode .file-dropzone:focus-within,
:root.dark-mode .file-dropzone.active { background: var(--panel-high); }
