:root {
  --blue: #1454ff;
  --blue-soft: #e8efff;
  --text: #282b31;
  --muted: #8e929b;
  --line: #e8ebf0;
  --bg: #f1f3f7;
  --panel: #ffffff;
  --green: #55c91f;
  --red: #ff333d;
  --yellow: #ffc914;
  --orange: #ffbd72;
  --pink: #ff777d;
  --purple: #8d73ff;
  --shadow: 0 1px 2px rgba(18, 26, 39, 0.05);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  overflow-x: hidden;
}

button {
  font: inherit;
}

.hidden {
  display: none !important;
}

.app-shell {
  min-width: 0;
  transform-origin: top left;
  width: 100%;
}

.auth-hidden {
  display: none;
}

.login-gate {
  align-items: center;
  background:
    linear-gradient(90deg, rgba(20, 84, 255, 0.08), rgba(255, 201, 20, 0.12)),
    var(--bg);
  display: none;
  min-height: 100vh;
  padding: 42px;
}

.login-gate.active {
  display: grid;
  gap: 34px;
  grid-template-columns: minmax(360px, 1fr) minmax(360px, 460px);
}

.login-gate-brand {
  align-items: center;
  display: flex;
  gap: 18px;
  max-width: 620px;
}

.login-gate-brand .brand-mark {
  height: 58px;
  width: 58px;
}

.login-gate-brand strong {
  display: block;
  font-size: 38px;
  letter-spacing: 0;
}

.login-gate-brand span {
  color: #5d6470;
  display: block;
  font-size: 17px;
  font-weight: 800;
  margin-top: 10px;
}

.login-gate-panel {
  background: var(--panel);
  border: 1px solid #dfe4ec;
  box-shadow: 0 10px 30px rgba(18, 26, 39, 0.08);
  display: grid;
  gap: 18px;
  padding: 28px;
}

.login-gate-head h1 {
  font-size: 28px;
  margin: 8px 0 0;
}

.login-gate-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.login-gate-actions button {
  min-width: 132px;
}

.auth-mode-badge {
  background: #e8f8e2;
  border-radius: 4px;
  color: #2e8810;
  font-size: 13px;
  font-weight: 800;
  padding: 5px 10px;
  white-space: nowrap;
}

.topbar {
  align-items: center;
  background: var(--panel);
  box-shadow: var(--shadow);
  display: grid;
  gap: 14px;
  grid-template-columns: auto 1fr auto;
  min-height: 64px;
  padding: 0 18px;
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand,
.nav-tabs,
.top-actions {
  align-items: center;
  display: flex;
}

.brand {
  gap: 10px;
}

.brand-mark {
  align-items: center;
  background: var(--blue);
  border-radius: 14px 14px 10px 10px;
  color: white;
  display: flex;
  font-size: 20px;
  font-weight: 900;
  height: 34px;
  justify-content: center;
  transform: rotate(-45deg);
  width: 34px;
}

.brand-mark::first-letter {
  transform: rotate(45deg);
}

.brand-name {
  font-size: 17px;
  font-weight: 700;
  white-space: nowrap;
}

.badge {
  background: #fff5dc;
  border-radius: 4px;
  color: #ffa400;
  font-weight: 700;
  padding: 5px 12px;
}

.icon-button,
.text-button,
.ghost-action,
.primary-action,
.nav-tab,
.segmented button,
.order-action {
  border: 0;
  cursor: pointer;
}

.icon-button {
  background: transparent;
  color: #343840;
  font-size: 18px;
  height: 34px;
  width: 34px;
}

.nav-tabs {
  gap: clamp(10px, 1.4vw, 20px);
  justify-content: center;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-tabs::-webkit-scrollbar {
  display: none;
}

.nav-tab {
  align-items: center;
  background: transparent;
  color: #20242b;
  display: flex;
  font-size: 16px;
  font-weight: 700;
  height: 64px;
  padding: 0 4px;
  position: relative;
}

.nav-tab.active {
  color: var(--blue);
}

.nav-tab.active::after {
  background: var(--blue);
  bottom: 0;
  content: "";
  height: 5px;
  left: 0;
  position: absolute;
  right: 0;
}

.ai-tab {
  background: linear-gradient(135deg, #7c55ff, #ff7a45);
  background-clip: text;
  color: transparent;
}

.notify::before {
  background: red;
  border-radius: 50%;
  content: "";
  height: 9px;
  position: absolute;
  right: -9px;
  top: 18px;
  width: 9px;
}

.top-actions {
  gap: 8px;
}

.primary-action,
.ghost-action {
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  height: 38px;
  padding: 0 14px;
  white-space: nowrap;
}

.primary-action {
  background: var(--blue);
  color: white;
}

.ghost-action {
  background: #eef1f6;
  color: #4a4f59;
}

.workspace {
  overflow-x: hidden;
  padding: 16px;
  width: 100%;
}

.page {
  display: none;
}

.page.active {
  display: block;
}

.panel {
  background: var(--panel);
  box-shadow: var(--shadow);
}

.quick-panel,
.overview-panel,
.chart-card {
  padding: 20px;
}

.section-title-row,
.page-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: 20px;
}

h2 {
  font-size: 18px;
}

.text-button {
  background: transparent;
  color: #6c7078;
  font-size: 14px;
}

.quick-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(104px, 1fr));
  margin-top: 18px;
}

.quick-item {
  align-items: center;
  background: #f1f3f7;
  border: 0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 86px;
  justify-content: center;
  position: relative;
}

.quick-item.disabled {
  background: white;
  border-left: 1px solid #d8dce4;
  color: #8b9099;
}

.quick-icon {
  align-items: center;
  border-radius: 10px;
  color: white;
  display: flex;
  font-size: 18px;
  font-weight: 900;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.quick-label {
  font-size: 14px;
  font-weight: 700;
}

.quick-sub {
  color: #a3a7af;
  font-size: 15px;
  font-weight: 700;
}

.kpi-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  margin: 16px 0;
}

.kpi-card {
  background: white;
  min-height: 82px;
  padding: 12px 14px;
}

.kpi-card .label {
  color: #969aa2;
  font-size: 14px;
  font-weight: 700;
}

.kpi-card strong {
  display: block;
  font-size: 24px;
  margin-top: 10px;
}

.overview-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  margin-top: 18px;
}

.revenue-card {
  background: #f1f3f7;
  padding: 18px;
}

.revenue-card strong {
  display: block;
  font-size: 24px;
  margin: 14px 0 16px;
}

.compare-block,
.metric-column {
  display: grid;
  gap: 28px;
}

.metric-pair {
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr 1fr;
}

.metric h3 {
  color: #9a9ea6;
  font-size: 14px;
  margin: 0 0 12px;
}

.metric strong {
  display: block;
  font-size: 20px;
  margin-bottom: 12px;
}

.muted {
  color: var(--muted);
  font-weight: 700;
}

.delta {
  align-items: center;
  display: inline-flex;
  font-weight: 700;
  gap: 6px;
  margin-left: 8px;
}

.delta.up {
  color: var(--red);
}

.delta.down {
  color: var(--green);
}

.divided {
  border-left: 1px solid #d9dde4;
  padding-left: 46px;
}

.chart-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin-top: 18px;
}

.help {
  border: 1px solid #aeb3bc;
  border-radius: 50%;
  color: #9aa0aa;
  display: inline-flex;
  font-size: 16px;
  height: 22px;
  justify-content: center;
  vertical-align: middle;
  width: 22px;
}

.donut-row {
  align-items: center;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(150px, 190px) minmax(0, 1fr);
  margin-top: 22px;
  min-height: 190px;
}

.donut {
  align-items: center;
  border-radius: 50%;
  display: flex;
  height: 156px;
  justify-content: center;
  position: relative;
  width: 156px;
}

.donut::after {
  background: white;
  border-radius: 50%;
  content: "";
  height: 88px;
  position: absolute;
  width: 88px;
}

.donut span {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
  position: relative;
  text-align: center;
  z-index: 1;
}

.donut.blue {
  background: conic-gradient(var(--blue) 0 100%);
}

.donut.mixed {
  background: conic-gradient(var(--blue) 0 25%, var(--yellow) 25% 50%, var(--orange) 50% 75%, var(--pink) 75% 100%);
}

.legend {
  display: grid;
  gap: 12px;
}

.legend-row {
  align-items: center;
  display: grid;
  font-size: 14px;
  gap: 12px;
  grid-template-columns: 26px 1fr auto;
}

.swatch {
  border-radius: 999px;
  height: 12px;
  width: 26px;
}

.page-header {
  background: white;
  margin-bottom: 22px;
  padding: 22px 26px;
}

.eyebrow {
  color: var(--blue);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
  margin-bottom: 6px;
}

.segmented {
  background: #eef1f6;
  border-radius: 8px;
  display: flex;
  padding: 4px;
}

.segmented button {
  background: transparent;
  border-radius: 6px;
  color: #6d727c;
  font-weight: 800;
  height: 36px;
  padding: 0 14px;
}

.segmented button.active {
  background: white;
  color: var(--blue);
  box-shadow: var(--shadow);
}

.room-summary,
.channel-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-bottom: 22px;
}

.stay-layout {
  background: white;
  display: grid;
  grid-template-columns: minmax(136px, 158px) minmax(0, 1fr);
  min-height: calc(100vh - 76px);
  min-width: 0;
  overflow: hidden;
}

.stay-layout.stay-collapsed {
  grid-template-columns: 48px minmax(0, 1fr);
}

.stay-layout.stay-collapsed .stay-side-item {
  display: none;
}

.stay-layout.stay-collapsed .collapse-button {
  justify-content: center;
  padding: 0;
}

.stay-sidebar {
  background: white;
  border-right: 1px solid #e3e6ec;
  min-width: 0;
  padding: 16px 0;
}

.stay-side-item {
  align-items: center;
  background: transparent;
  border: 0;
  color: #30343b;
  cursor: pointer;
  display: flex;
  font-size: 14px;
  font-weight: 800;
  height: 42px;
  justify-content: space-between;
  gap: 8px;
  padding: 0 14px 0 18px;
  text-align: left;
  width: 100%;
}

.stay-side-item.active {
  background: #eef2ff;
  color: var(--blue);
}

.stay-main {
  background: #f7f8fb;
  overflow: hidden;
  min-width: 0;
}

.stay-toolbar {
  align-items: center;
  background: #f7f8fb;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  min-height: 62px;
  justify-content: space-between;
  padding: 12px 16px;
}

.stay-view-tabs {
  border: 1px solid #d7dce5;
  border-radius: 4px;
  display: flex;
  overflow: hidden;
}

.stay-view-tabs button {
  background: white;
  border: 0;
  border-right: 1px solid #d7dce5;
  color: #282c33;
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
  height: 34px;
  min-width: 60px;
}

.stay-view-tabs button:last-child {
  border-right: 0;
}

.stay-view-tabs button.active {
  border: 1px solid var(--blue);
  color: var(--blue);
  margin: -1px;
}

.stay-actions {
  align-items: center;
  display: flex;
  flex: 1 1 560px;
  gap: 8px;
  justify-content: flex-end;
  min-width: 0;
}

.stay-search {
  align-items: center;
  background: white;
  border: 1px solid #d9dde5;
  border-radius: 4px;
  color: #c0c4cc;
  display: flex;
  gap: 10px;
  flex: 1 1 260px;
  height: 34px;
  max-width: 480px;
  min-width: 220px;
  padding: 0 10px;
}

.stay-search input {
  border: 0;
  color: #30343b;
  font-size: 13px;
  font-weight: 700;
  outline: 0;
  width: 100%;
}

.stay-actions button {
  background: white;
  border: 1px solid #d9dde5;
  border-radius: 4px;
  color: #30343b;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  height: 34px;
  padding: 0 12px;
  white-space: nowrap;
}

.stay-batch-panel {
  display: none;
  margin: 0 20px 14px;
}

.stay-batch-panel.active {
  background: #fff;
  border: 1px solid #d5dbe6;
  display: grid;
  gap: 12px;
  padding: 14px;
}

.stay-batch-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.stay-batch-head strong {
  color: #20242b;
  font-size: 18px;
}

.stay-batch-head button {
  background: transparent;
  border: 0;
  color: var(--blue);
  cursor: pointer;
  font-size: 14px;
  font-weight: 900;
}

.stay-batch-grid {
  align-items: end;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(126px, 1fr));
}

.stay-batch-grid.price-tool {
  grid-template-columns: repeat(auto-fit, minmax(126px, 1fr));
}

.stay-batch-grid label {
  display: grid;
  gap: 5px;
}

.stay-batch-grid label span {
  color: #69717d;
  font-size: 12px;
  font-weight: 900;
}

.stay-batch-grid input,
.stay-batch-grid select {
  border: 1px solid #d9dde5;
  color: #282c33;
  font-size: 13px;
  font-weight: 800;
  height: 34px;
  padding: 0 8px;
}

.stay-batch-grid button {
  height: 34px;
  white-space: nowrap;
}

.calendar-board {
  background: white;
  border: 1px solid #d5dbe6;
  margin: 0 16px 24px;
  max-width: calc(100% - 32px);
  min-width: 0;
  overflow: auto;
}

.single-head {
  align-items: center;
  display: flex;
  gap: 14px;
  min-height: 66px;
  padding: 0 18px;
}

.single-head strong {
  color: #20242b;
  font-size: 18px;
}

.single-head span {
  color: #69717d;
  font-size: 14px;
  font-weight: 900;
}

.single-summary {
  align-items: center;
  display: flex;
  gap: 12px;
  min-height: 46px;
  padding: 0 18px;
}

.single-summary span {
  background: #f7f8fb;
  color: #59616d;
  font-size: 14px;
  font-weight: 900;
  padding: 7px 10px;
}

.single-summary strong {
  color: var(--blue);
}

.single-room-grid,
.channel-room-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  padding: 16px;
}

.single-day-report {
  border-bottom: 1px solid #d5dbe6;
  padding: 16px;
}

.single-day-report-head {
  align-items: center;
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

.single-day-report-head strong {
  color: #20242b;
  font-size: 18px;
}

.single-day-report-head span {
  color: #69717d;
  font-size: 13px;
  font-weight: 800;
}

.single-day-table-wrap {
  overflow: auto;
}

.single-day-table {
  border-collapse: collapse;
  min-width: 1480px;
  width: 100%;
}

.single-day-table th,
.single-day-table td {
  border: 1px solid #dce1e9;
  color: #30343b;
  font-size: 13px;
  font-weight: 850;
  padding: 10px 9px;
  text-align: center;
  white-space: nowrap;
}

.single-day-table th {
  background: #f5f7fb;
  color: #69717d;
}

.single-day-table td:first-child,
.single-day-table th:first-child {
  text-align: left;
}

.single-day-table tr.summary td {
  background: #eef4ff;
  color: #1358e8;
}

.single-room-card,
.channel-room-card {
  border: 1px solid #e0e4eb;
  display: grid;
  gap: 10px;
  min-height: 170px;
  padding: 14px;
}

.single-room-card.occupied {
  border-color: #add8f5;
}

.single-room-card.dirty {
  background: #fff8e8;
}

.single-room-card.maintenance,
.single-room-card.disabled {
  background: #f1f3f6;
}

.single-room-top,
.channel-room-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.single-room-top strong,
.channel-room-head strong {
  color: #20242b;
  font-size: 18px;
}

.single-room-top span {
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
}

.single-room-type {
  color: #59616d;
  font-size: 14px;
  font-weight: 900;
}

.single-room-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.single-room-tags span {
  background: #f7f8fb;
  color: #59616d;
  font-size: 12px;
  font-weight: 900;
  padding: 4px 7px;
}

.single-room-guest {
  background: #eef2ff;
  display: grid;
  gap: 4px;
  padding: 10px;
}

.single-room-guest b {
  color: #20242b;
}

.single-room-guest span,
.single-room-empty,
.channel-room-row em {
  color: #69717d;
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
}

.single-room-guest em {
  color: #c72938;
  font-size: 13px;
  font-style: normal;
  font-weight: 900;
}

.channel-room-row {
  align-items: center;
  border-top: 1px solid #e5e8ee;
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr 60px 1fr;
  min-height: 34px;
}

.channel-room-row span,
.channel-room-row strong {
  color: #20242b;
  font-size: 13px;
  font-weight: 900;
}

.calendar-head,
.calendar-subhead,
.calendar-row {
  display: grid;
  grid-template-columns: 120px 108px repeat(var(--stay-date-count, 8), 118px);
  min-width: var(--stay-grid-min-width, 1172px);
}

.calendar-head > div,
.calendar-subhead > div,
.calendar-cell,
.room-type-cell,
.room-number-cell {
  border-right: 1px solid #d5dbe6;
  border-bottom: 1px solid #d5dbe6;
}

.date-master {
  align-items: center;
  display: grid;
  grid-column: 1 / span 2;
  grid-template-columns: 1fr 34px 34px;
  min-height: 66px;
  padding: 8px 14px;
}

.date-master strong {
  font-size: 16px;
}

.date-master span {
  color: #9298a2;
  font-size: 15px;
  font-weight: 800;
}

.date-cell {
  align-items: center;
  display: grid;
  justify-items: center;
  min-height: 66px;
  padding: 6px;
}

.date-cell .remain-badge {
  background: #e9f0ff;
  border: 1px solid #c9d8ff;
  border-radius: 3px;
  color: var(--blue);
  font-size: 17px;
  font-weight: 900;
  line-height: 20px;
  min-width: 28px;
  text-align: center;
}

.date-cell .date-label {
  color: #30343b;
  font-size: 19px;
  font-weight: 900;
}

.date-cell.today .date-label,
.date-cell.weekend .date-label {
  color: #ff593e;
}

.date-cell.today .date-label {
  color: var(--blue);
}

.date-cell .rest,
.date-cell .work {
  background: #fff0e4;
  border-radius: 3px;
  color: #ff9b54;
  font-size: 17px;
  font-weight: 900;
  margin-left: 6px;
  padding: 1px 4px;
}

.date-cell .work {
  background: #efefef;
  color: #9b9b9b;
}

.calendar-subhead > div {
  align-items: center;
  background: white;
  color: #30343b;
  display: flex;
  font-size: 18px;
  font-weight: 800;
  justify-content: center;
  min-height: 46px;
}

.calendar-subhead .remaining.zero {
  color: #ff2d3e;
}

.calendar-row {
  min-height: 72px;
}

.calendar-empty {
  align-items: center;
  background: #f7f8fb;
  color: #69717d;
  display: grid;
  font-size: 15px;
  font-weight: 800;
  gap: 6px;
  min-height: 160px;
  padding: 24px;
}

.calendar-empty strong {
  color: #20242b;
  font-size: 20px;
}

.room-type-cell {
  align-items: center;
  color: #30343b;
  display: flex;
  font-size: 18px;
  font-weight: 800;
  justify-content: center;
  line-height: 1.35;
  padding: 8px;
  text-align: center;
}

.room-number-cell {
  align-items: center;
  background: #cfcfcf;
  color: #33363c;
  display: flex;
  font-size: 20px;
  font-weight: 900;
  justify-content: center;
  margin: 3px;
  position: relative;
}

.room-number-cell::after {
  bottom: 5px;
  color: #30343b;
  content: "⌁";
  font-size: 22px;
  position: absolute;
  right: 8px;
}

.calendar-cell {
  background: white;
  min-height: 72px;
  padding: 3px;
  position: relative;
}

.stay-booking {
  background: #add8f5;
  border-left: 6px solid #1977dd;
  border-radius: 3px;
  color: #262a31;
  height: 62px;
  overflow: hidden;
  padding: 7px 8px;
  position: relative;
}

.stay-booking.gray {
  background: #c9c9c9;
}

.stay-booking.orange {
  background: #ffd1ad;
}

.stay-booking.purple {
  background: #c9addf;
}

.stay-booking strong {
  display: block;
  font-size: 18px;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stay-booking span {
  display: block;
  font-size: 15px;
  font-weight: 800;
  margin-top: 4px;
}

.debt-mark {
  background: #ff2538;
  border-radius: 3px;
  color: white;
  font-size: 15px;
  font-weight: 900;
  padding: 1px 4px;
  position: absolute;
  right: 5px;
  top: 5px;
}

.summary-card,
.channel-card,
.simple-card {
  background: white;
  min-width: 0;
  padding: 18px;
}

.summary-card strong {
  display: block;
  font-size: 28px;
  margin-top: 10px;
}

.room-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(126px, 1fr));
}

.room-card {
  background: white;
  border-top: 4px solid var(--blue);
  min-height: 108px;
  padding: 14px;
}

.room-card.occupied {
  border-color: var(--green);
}

.room-card.dirty {
  border-color: var(--orange);
}

.room-card.maintenance {
  border-color: var(--red);
}

.room-card h3 {
  font-size: 16px;
  margin: 0;
}

.room-card p {
  color: #7d838d;
  font-size: 14px;
  font-weight: 700;
  margin-top: 8px;
}

.price-line {
  display: flex;
  font-weight: 900;
  justify-content: space-between;
  margin-top: 14px;
}

.channel-card {
  min-height: 190px;
}

.channel-template-summary p {
  color: var(--muted);
  margin: 6px 0 12px;
}

.template-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.template-chip-list span {
  background: var(--blue-soft);
  border-radius: 6px;
  color: var(--blue);
  font-size: 12px;
  padding: 5px 8px;
}

.channel-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.channel-name {
  font-size: 18px;
  font-weight: 900;
}

.status-pill,
.order-status {
  border-radius: 999px;
  display: inline-flex;
  font-size: 13px;
  font-weight: 900;
  padding: 5px 10px;
}

.status-pill.connected,
.order-status.confirmed,
.order-status.checkedIn {
  background: #e7f8df;
  color: #328a0d;
}

.status-pill.warning,
.order-status.pending {
  background: #fff3cf;
  color: #9a6b00;
}

.order-status.abnormal {
  background: #ffe2e4;
  color: #cc1622;
}

.order-status.checkedOut {
  background: #e8ecf3;
  color: #59606b;
}

.order-status.canceled {
  background: #f1f1f1;
  color: #8a8f98;
}

.channel-metrics {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.channel-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.channel-log-card {
  grid-column: span 1;
}

.inventory-warning-card .mini-log-list .full strong {
  color: #c72938;
}

.inventory-warning-card .mini-log-list .low strong {
  color: #bd7b00;
}

.mini-log-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.mini-log-list div {
  background: #f7f8fb;
  color: #3b4049;
  font-size: 14px;
  font-weight: 800;
  padding: 10px;
}

.mini-log-list span {
  color: #8b909a;
  display: block;
  font-size: 12px;
  margin-top: 4px;
}

.meter {
  background: #eef1f6;
  border-radius: 999px;
  height: 8px;
  overflow: hidden;
}

.meter span {
  background: var(--blue);
  display: block;
  height: 100%;
}

.table-wrap {
  background: white;
  max-width: 100%;
  overflow-x: auto;
}

table {
  border-collapse: collapse;
  min-width: 980px;
  width: 100%;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 12px 14px;
  text-align: left;
}

th {
  color: #8c919a;
  font-size: 14px;
}

td {
  font-weight: 700;
}

.order-sub {
  color: #9298a2;
  display: block;
  font-size: 13px;
  margin-top: 4px;
}

.order-filter-panel {
  background: #fff;
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
  padding: 14px;
}

.order-search-field {
  align-items: center;
  background: #f4f6fb;
  display: flex;
  gap: 8px;
  padding: 0 12px;
}

.order-search-field span {
  color: #7b8491;
  font-weight: 900;
}

.order-search-field input {
  background: transparent;
  border: 0;
  color: #2b3038;
  flex: 1;
  font-size: 14px;
  font-weight: 800;
  height: 38px;
  outline: 0;
}

.order-filter-grid {
  align-items: end;
  display: grid;
  gap: 10px;
  grid-template-columns: 1.15fr repeat(6, 1fr) auto;
}

.order-filter-grid label {
  display: grid;
  gap: 5px;
}

.order-filter-grid label span {
  color: #6a7280;
  font-size: 12px;
  font-weight: 900;
}

.order-filter-grid input,
.order-filter-grid select {
  background: #fff;
  border: 1px solid #d9dde5;
  color: #2b3038;
  font-size: 13px;
  font-weight: 800;
  height: 34px;
  padding: 0 8px;
}

.order-filter-grid button {
  height: 34px;
  white-space: nowrap;
}

.order-filter-summary {
  color: #5f6875;
  font-size: 13px;
  font-weight: 900;
}

.order-actions {
  display: flex;
  gap: 8px;
}

.order-detail-panel {
  background: white;
  margin-top: 18px;
  padding: 20px;
}

.order-detail-tabs {
  border-bottom: 1px solid #dfe3ea;
  display: flex;
  gap: 18px;
  margin: 8px 0 16px;
}

.order-detail-tabs button {
  background: transparent;
  border: 0;
  color: #5f6875;
  cursor: pointer;
  font-size: 14px;
  font-weight: 900;
  padding: 10px 0;
}

.order-detail-tabs button.active {
  box-shadow: inset 0 -3px 0 var(--blue);
  color: var(--blue);
}

.order-summary-strip {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 14px;
}

.order-summary-strip div {
  background: #f7f9fc;
  padding: 12px;
}

.order-summary-strip span,
.channel-order-fields dt,
.payment-ledger span {
  color: #69717d;
  font-size: 12px;
  font-weight: 900;
}

.order-summary-strip strong {
  color: #20242b;
  display: block;
  font-size: 18px;
  margin-top: 4px;
}

.order-detail-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, 1fr);
}

.order-detail-grid label {
  display: grid;
  gap: 6px;
}

.order-detail-grid label.wide {
  grid-column: span 2;
}

.order-detail-grid span {
  color: #69717d;
  font-size: 13px;
  font-weight: 900;
}

.order-detail-grid input {
  border: 1px solid #d9dde5;
  border-radius: 4px;
  color: #282c33;
  font-size: 14px;
  font-weight: 800;
  height: 34px;
  padding: 0 8px;
}

.order-detail-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 12px;
}

.order-log-mini {
  border-top: 1px solid #e5e8ee;
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
}

.order-log-mini div {
  display: grid;
  gap: 4px;
}

.order-log-mini strong {
  color: #20242b;
  font-size: 13px;
}

.order-log-mini span {
  color: #69717d;
  font-size: 13px;
  font-weight: 800;
}

.order-bill-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 12px;
}

.order-bill-tabs span {
  background: #f4f6fa;
  border: 1px solid #dce1ea;
  color: #5f6875;
  font-size: 13px;
  font-weight: 900;
  padding: 8px 18px;
}

.order-bill-tabs span.active {
  background: #fff;
  color: var(--blue);
}

.detail-table {
  border-collapse: collapse;
  font-size: 13px;
  width: 100%;
}

.detail-table th,
.detail-table td {
  border-bottom: 1px solid #e5e8ee;
  color: #2a2f36;
  padding: 10px;
  text-align: left;
}

.detail-table th {
  background: #f4f6fa;
  color: #606a78;
  font-weight: 900;
}

.detail-table.compact td span {
  color: #89909b;
  display: block;
  font-size: 12px;
  margin-top: 3px;
}

.payment-ledger {
  border-top: 1px solid #e5e8ee;
  display: grid;
  gap: 6px;
  margin-top: 14px;
  padding-top: 12px;
}

.payment-ledger strong {
  color: #20242b;
  font-size: 14px;
}

.channel-order-card {
  display: grid;
  gap: 14px;
}

.channel-order-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.channel-order-fields {
  display: grid;
  gap: 10px 16px;
  grid-template-columns: 120px 1fr;
  margin: 0;
}

.channel-order-fields dd {
  color: #252a31;
  font-size: 13px;
  font-weight: 800;
  margin: 0;
}

.order-log-timeline {
  display: grid;
  gap: 12px;
}

.order-log-timeline div {
  border-left: 3px solid var(--blue);
  padding-left: 12px;
}

.order-log-timeline strong {
  color: #20242b;
  display: block;
  font-size: 14px;
}

.order-log-timeline span {
  color: #69717d;
  display: block;
  font-size: 12px;
  font-weight: 900;
  margin-top: 2px;
}

.order-log-timeline p {
  color: #39404a;
  font-size: 13px;
  font-weight: 800;
  margin: 6px 0 0;
}

.order-action {
  background: #eef1f6;
  border-radius: 6px;
  color: #3f4652;
  font-size: 13px;
  font-weight: 900;
  height: 32px;
  padding: 0 10px;
}

.order-action.primary {
  background: var(--blue);
  color: white;
}

.simple-page {
  display: none;
}

.simple-page.active {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.customers-page.active {
  background: #eef0f4;
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
  padding: 18px 20px 28px;
}

.customers-toolbar {
  align-items: center;
  background: white;
  display: flex;
  justify-content: space-between;
  padding: 22px 24px;
}

.customers-toolbar h1 {
  font-size: 26px;
}

.customer-filters {
  display: grid;
  gap: 10px;
  grid-template-columns: 320px 140px 140px auto;
}

.customer-filters input,
.customer-filters select,
.customer-row input {
  border: 1px solid #d9dde5;
  border-radius: 4px;
  color: #2d333d;
  font-size: 14px;
  font-weight: 800;
  height: 36px;
  padding: 0 10px;
}

.customer-summary-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
}

.customer-summary-grid article {
  background: white;
  padding: 20px;
}

.customer-summary-grid span,
.customer-row span {
  color: #6d7480;
  display: block;
  font-size: 13px;
  font-weight: 800;
}

.customer-summary-grid strong {
  display: block;
  font-size: 28px;
  margin-top: 8px;
}

.customer-list {
  display: grid;
  gap: 10px;
}

.customer-row {
  align-items: center;
  background: white;
  display: grid;
  gap: 14px;
  grid-template-columns: 1.3fr 1fr 120px 170px 1fr 96px;
  min-height: 78px;
  padding: 14px 18px;
}

.customer-row strong {
  color: #202630;
  display: block;
  font-size: 16px;
  margin-top: 5px;
}

.simple-card h2 {
  font-size: 22px;
  margin-bottom: 12px;
}

.simple-card p,
.simple-card li {
  color: #666c76;
  font-weight: 700;
  line-height: 1.8;
}

.stats-layout {
  background: #eef0f4;
  display: grid;
  grid-template-columns: minmax(148px, 168px) minmax(0, 1fr);
  min-height: calc(100vh - 96px);
  overflow: hidden;
}

.stats-layout.stats-collapsed {
  grid-template-columns: 48px minmax(0, 1fr);
}

.stats-layout.stats-collapsed .sidebar-group,
.stats-layout.stats-collapsed .sidebar-title,
.stats-layout.stats-collapsed .sidebar-item {
  display: none;
}

.stats-layout.stats-collapsed .collapse-button {
  justify-content: center;
  padding: 0;
}

.stats-sidebar {
  background: white;
  border-right: 1px solid #e3e6ec;
  color: #2d3138;
  min-width: 0;
  padding: 18px 0;
}

.collapse-button {
  align-items: center;
  background: white;
  border: 0;
  color: #343942;
  cursor: pointer;
  display: flex;
  font-size: 14px;
  font-weight: 700;
  justify-content: space-between;
  margin-bottom: 16px;
  padding: 0 16px;
  width: 100%;
}

.sidebar-group {
  margin-bottom: 16px;
}

.sidebar-title {
  align-items: center;
  color: #373b43;
  display: flex;
  font-size: 14px;
  font-weight: 800;
  justify-content: space-between;
  padding: 10px 16px;
}

.sidebar-item {
  background: transparent;
  border: 0;
  color: #31353d;
  cursor: pointer;
  display: block;
  font-size: 14px;
  font-weight: 700;
  height: 40px;
  padding: 0 0 0 24px;
  text-align: left;
  width: 100%;
}

.sidebar-item.active {
  background: #eef2ff;
  color: var(--blue);
}

.stats-main {
  min-width: 0;
  overflow: hidden;
}

.stats-tabs {
  align-items: end;
  background: #f7f8fb;
  border-bottom: 2px solid #dfe3ea;
  display: flex;
  height: 46px;
  gap: 22px;
  overflow-x: auto;
  padding-left: 20px;
  scrollbar-width: none;
}

.stats-tabs::-webkit-scrollbar {
  display: none;
}

.stats-tabs button {
  background: transparent;
  border: 0;
  color: #30343b;
  cursor: pointer;
  font-size: 15px;
  font-weight: 800;
  height: 46px;
  padding: 0;
  position: relative;
}

.stats-tabs button.active {
  color: var(--blue);
}

.stats-tabs button.active::after {
  background: var(--blue);
  bottom: -2px;
  content: "";
  height: 3px;
  left: 0;
  position: absolute;
  right: 0;
}

.stats-filter-row {
  padding: 16px 20px 14px;
}

.date-filter {
  background: white;
  border: 1px solid #d9dde5;
  border-radius: 4px;
  display: inline-grid;
  grid-template-columns: 126px 148px 34px 148px;
  height: 34px;
  max-width: 100%;
  overflow: hidden;
}

.date-filter button,
.date-filter label,
.date-filter span {
  align-items: center;
  border: 0;
  border-right: 1px solid #d9dde5;
  display: flex;
  font-size: 14px;
  font-weight: 700;
  justify-content: center;
}

.date-filter button {
  background: white;
  color: #2b3038;
  cursor: pointer;
  justify-content: space-between;
  padding: 0 12px;
}

.date-filter input {
  border: 0;
  color: #666b74;
  font-size: 14px;
  font-weight: 700;
  outline: 0;
  width: 126px;
}

.date-filter label:last-child {
  border-right: 0;
}

.stats-section {
  min-width: 0;
  padding: 0 20px 26px;
}

.stats-section-head {
  align-items: center;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: space-between;
  margin: 8px 0 16px;
}

.stats-section-head > div:first-child {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  min-width: 0;
}

.stats-section-head h1 {
  font-size: 18px;
}

.stats-help {
  background: transparent;
  border: 0;
  color: #767c86;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.stats-period {
  color: #6b7079;
  flex: 1 1 360px;
  font-size: 13px;
  font-weight: 800;
  min-width: 260px;
  text-align: right;
}

.revenue-summary-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  min-width: 0;
}

.revenue-summary-card {
  background: white;
  border-radius: 4px;
  min-height: 138px;
  min-width: 0;
  padding: 16px;
}

.revenue-summary-card.primary {
  background: #6f82a3;
  color: white;
}

.revenue-card-top {
  align-items: center;
  color: #8d929b;
  display: flex;
  font-size: 13px;
  font-weight: 800;
  justify-content: space-between;
}

.primary .revenue-card-top {
  color: white;
}

.revenue-summary-card strong {
  display: block;
  font-size: 24px;
  margin: 10px 0 14px;
  overflow-wrap: anywhere;
}

.summary-divider {
  border-top: 1px solid #e3e6ec;
  margin-bottom: 12px;
}

.primary .summary-divider {
  border-color: rgba(255, 255, 255, 0.55);
}

.summary-compare {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr 1fr;
}

.summary-compare .caption {
  color: #2f333b;
  font-size: 12px;
  font-weight: 800;
}

.primary .summary-compare .caption {
  color: white;
}

.summary-compare .amount {
  font-size: 12px;
  font-weight: 800;
  margin: 6px 0 4px;
}

.compare-pill {
  background: #e7f8d8;
  border-radius: 3px;
  color: #52b91c;
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  padding: 2px 8px;
}

.compare-pill.empty {
  background: #ffe4e8;
  color: #f16e78;
  min-width: 22px;
  justify-content: center;
}

.stats-bottom-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  margin-top: 24px;
  min-width: 0;
}

.stats-white-panel {
  background: white;
  border-radius: 4px;
  min-height: 220px;
  min-width: 0;
  padding: 18px;
}

.stats-white-panel h2 {
  font-size: 16px;
}

.stats-distribution {
  align-items: center;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(120px, 140px) minmax(0, 1fr);
  margin-top: 18px;
  min-width: 0;
}

.mini-donut {
  align-items: center;
  background: conic-gradient(#6f82a3 0 100%);
  border-radius: 50%;
  display: flex;
  height: 118px;
  justify-content: center;
  position: relative;
  width: 118px;
}

.mini-donut::after {
  background: white;
  border-radius: 50%;
  content: "";
  height: 58px;
  position: absolute;
  width: 58px;
}

.mini-donut span {
  font-size: 12px;
  font-weight: 900;
  position: relative;
  text-align: center;
  z-index: 1;
}

.stats-distribution-list {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.stats-distribution-row {
  align-items: center;
  display: grid;
  font-size: 13px;
  font-weight: 800;
  gap: 10px;
  grid-template-columns: 18px 1fr auto;
}

.bar-chart {
  align-items: end;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(7, 1fr);
  height: 142px;
  margin-top: 22px;
  min-width: 0;
}

.bar-item {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  justify-content: end;
}

.bar {
  background: #6f82a3;
  border-radius: 4px 4px 0 0;
  min-height: 8px;
  width: 24px;
}

.bar-item span {
  color: #7c828c;
  font-size: 12px;
  font-weight: 800;
}

.stats-inline-chart {
  align-items: end;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(42px, 1fr));
  height: 120px;
  margin-bottom: 18px;
  width: 100%;
}

.stats-detail-panel {
  min-width: 0;
}

.stats-detail-head {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  margin-bottom: 14px;
  min-width: 0;
}

.stats-detail-head strong {
  font-size: 15px;
  min-width: 0;
}

.stats-detail-head button {
  background: white;
  border: 1px solid #d8dde8;
  border-radius: 4px;
  color: #2f3540;
  cursor: pointer;
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 800;
  padding: 8px 12px;
  white-space: nowrap;
}

.stats-table-scroll {
  max-height: 260px;
  overflow: auto;
  width: 100%;
}

.stats-detail-table {
  border-collapse: collapse;
  min-width: 100%;
}

.stats-detail-table th,
.stats-detail-table td {
  border-bottom: 1px solid #e5e8ef;
  font-size: 14px;
  font-weight: 800;
  padding: 10px 12px;
  text-align: left;
  white-space: nowrap;
}

.stats-detail-table th {
  background: #f1f4f9;
  color: #5d6572;
  position: sticky;
  top: 0;
}

.stats-metric-grid,
.report-card-grid {
  display: grid;
  gap: 14px;
  grid-column: 1 / -1;
  grid-template-columns: repeat(2, minmax(160px, 1fr));
}

.stats-metric-grid div {
  background: #eef3ff;
  border-radius: 4px;
  display: grid;
  gap: 8px;
  padding: 18px;
}

.stats-metric-grid span,
.stats-metric-grid em {
  color: #68707d;
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
}

.stats-metric-grid strong {
  color: #202630;
  font-size: 24px;
}

.report-card {
  align-items: center;
  background: white;
  border: 1px solid #e1e5ed;
  border-radius: 4px;
  color: #2d333d;
  cursor: pointer;
  display: grid;
  gap: 10px;
  justify-items: center;
  min-height: 116px;
  padding: 18px;
}

.report-card span {
  align-items: center;
  background: #43b35d;
  border-radius: 8px;
  color: white;
  display: inline-flex;
  font-size: 22px;
  height: 44px;
  justify-content: center;
  width: 44px;
}

.report-card strong {
  font-size: 15px;
}

.settings-layout {
  background: #eef0f4;
  min-height: calc(100vh - 120px);
  overflow-x: hidden;
  padding: 18px 20px 28px;
}

.settings-header {
  align-items: center;
  background: white;
  display: flex;
  justify-content: space-between;
  margin-bottom: 18px;
  padding: 22px 24px;
}

.settings-alert {
  background: #fff8e6;
  border: 1px solid #ffe0a3;
  color: #8a5b00;
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 18px;
  padding: 14px 18px;
}

.roomtype-config {
  display: grid;
  gap: 18px;
}

.empty-setup-card {
  color: #69717d;
  display: grid;
  font-size: 15px;
  font-weight: 800;
  gap: 8px;
}

.empty-setup-card strong {
  color: #20242b;
  font-size: 20px;
}

.roomtype-card {
  background: white;
  max-width: 100%;
  overflow-x: auto;
  padding: 18px;
}

.roomtype-meta {
  align-items: center;
  display: grid;
  gap: 14px;
  grid-template-columns: 68px 1fr;
  margin-bottom: 16px;
}

.roomtype-meta strong {
  color: #20242b;
  display: block;
  font-size: 16px;
}

.roomtype-meta span {
  color: #68717e;
  display: block;
  font-size: 13px;
  font-weight: 900;
  margin-top: 4px;
}

.roomtype-image {
  align-items: center;
  background: #f1f4f8;
  color: #88909b;
  display: flex;
  font-size: 13px;
  font-weight: 900;
  height: 58px;
  justify-content: center;
  overflow: hidden;
  width: 58px;
}

.roomtype-image img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.roomtype-head {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
  margin-bottom: 16px;
  min-width: 720px;
}

.config-field {
  display: grid;
  gap: 6px;
}

.config-field span {
  color: #7e8490;
  font-size: 13px;
  font-weight: 900;
}

.config-field input {
  border: 1px solid #d9dde5;
  border-radius: 4px;
  color: #282c33;
  font-size: 14px;
  font-weight: 800;
  height: 34px;
  padding: 0 10px;
}

.inventory-state {
  background: #eef2ff;
  color: var(--blue);
  font-size: 16px;
  font-weight: 900;
  padding: 11px 12px;
  text-align: center;
}

.mapping-table {
  border: 1px solid #e0e4eb;
  display: grid;
  grid-template-columns: 140px 1fr 120px 110px 150px;
  min-width: 680px;
}

.mapping-table > div {
  align-items: center;
  border-bottom: 1px solid #e0e4eb;
  border-right: 1px solid #e0e4eb;
  display: flex;
  font-size: 15px;
  font-weight: 800;
  min-height: 44px;
  padding: 8px 10px;
}

.mapping-table > div:nth-child(5n) {
  border-right: 0;
}

.mapping-table .table-head {
  background: #f7f8fb;
  color: #7e8490;
  font-size: 13px;
}

.mapping-table input {
  border: 1px solid #d9dde5;
  border-radius: 4px;
  font-weight: 800;
  height: 30px;
  padding: 0 8px;
  width: 100%;
}

.mapping-table input[type="checkbox"] {
  height: 18px;
  width: 18px;
}

.sync-ok {
  color: #40a80f;
}

.sync-paused {
  color: #bd7b00;
}

.settings-two-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr 1fr;
  margin: 18px 0;
}

.settings-card {
  background: white;
  max-width: 100%;
  overflow-x: auto;
  padding: 18px;
}

.settings-card-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
}

.settings-card h2 {
  font-size: 17px;
}

.setup-card {
  margin-bottom: 18px;
}

.setup-card.setup-active {
  border-left: 4px solid #40a80f;
}

.setup-progress {
  background: #e9edf5;
  height: 8px;
  margin-bottom: 16px;
  overflow: hidden;
}

.setup-progress span {
  background: var(--blue);
  display: block;
  height: 100%;
  transition: width 0.2s ease;
  width: 0;
}

.setup-wizard {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}

.setup-stepper {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.setup-stepper button {
  align-items: center;
  background: #f7f8fb;
  border: 1px solid #e0e4eb;
  color: #59616d;
  cursor: pointer;
  display: flex;
  font-size: 13px;
  font-weight: 900;
  gap: 6px;
  min-height: 38px;
  padding: 0 8px;
}

.setup-stepper button span {
  align-items: center;
  background: #dce2ec;
  color: #59616d;
  display: inline-flex;
  height: 20px;
  justify-content: center;
  min-width: 20px;
}

.setup-stepper button.done span {
  background: #dff3d7;
  color: #2f7c12;
}

.setup-stepper button.active {
  background: #eef2ff;
  border-color: var(--blue);
  color: var(--blue);
}

.setup-stepper button.active span {
  background: var(--blue);
  color: white;
}

.setup-wizard-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.setup-wizard-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.setup-guide {
  align-items: center;
  background: #f7f8fb;
  border: 1px solid #e0e4eb;
  display: grid;
  gap: 12px;
  grid-template-columns: 1.35fr 1fr auto;
  padding: 14px;
}

.setup-guide strong {
  color: #20242b;
  font-size: 17px;
}

.setup-guide p {
  color: #69717d;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.5;
  margin-top: 4px;
}

.setup-guide-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.setup-guide-checks span {
  background: white;
  border: 1px solid #e0e4eb;
  color: #59616d;
  font-size: 12px;
  font-weight: 900;
  padding: 5px 8px;
}

.setup-guide button {
  background: var(--blue);
  border: 0;
  color: white;
  cursor: pointer;
  font-size: 14px;
  font-weight: 900;
  min-height: 34px;
  padding: 0 12px;
}

.setup-guide button.done {
  background: #40a80f;
}

.setup-guide em {
  color: #bd7b00;
  font-size: 13px;
  font-style: normal;
  font-weight: 900;
  grid-column: 1 / -1;
}

.setup-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 0.9fr 1.6fr;
}

.setup-checklist {
  display: grid;
  gap: 8px;
}

.setup-step {
  align-items: center;
  background: #f7f8fb;
  color: #69717d;
  display: flex;
  font-size: 14px;
  font-weight: 900;
  gap: 10px;
  min-height: 40px;
  padding: 0 12px;
}

.setup-step span {
  color: #9aa2af;
  font-size: 16px;
}

.setup-step.done {
  background: #edf8e9;
  color: #2f7c12;
}

.setup-step.done span {
  color: #40a80f;
}

.hotel-profile {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, 1fr);
}

.hotel-profile .config-field:first-child {
  grid-column: span 2;
}

.setup-hidden {
  display: none !important;
}

.setup-finish {
  display: grid;
  gap: 14px;
}

.setup-finish-state {
  background: #fff8e8;
  color: #8a5b00;
  display: grid;
  gap: 6px;
  padding: 14px;
}

.setup-finish-state.done {
  background: #edf8e9;
  color: #2f7c12;
}

.setup-finish-state strong {
  color: #20242b;
  font-size: 18px;
}

.setup-finish-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(5, 1fr);
}

.setup-finish-grid div {
  align-items: center;
  background: #f7f8fb;
  color: #69717d;
  display: flex;
  font-size: 14px;
  font-weight: 900;
  gap: 8px;
  min-height: 38px;
  padding: 0 10px;
}

.setup-finish-grid div.done {
  background: #edf8e9;
  color: #2f7c12;
}

.setup-enable-row {
  display: flex;
  justify-content: flex-end;
}

.setup-quality {
  display: grid;
  gap: 8px;
}

.setup-quality > strong {
  color: #20242b;
  font-size: 16px;
}

.setup-quality div {
  align-items: start;
  background: #fff8e8;
  border: 1px solid #ffe0a3;
  color: #5d4300;
  display: grid;
  gap: 10px;
  grid-template-columns: 70px 1fr;
  padding: 10px 12px;
}

.setup-quality div.critical {
  background: #fff3f4;
  border-color: #ffd1d5;
  color: #99212c;
}

.setup-quality div.done {
  background: #edf8e9;
  border-color: #cfecc5;
  color: #2f7c12;
}

.setup-quality span {
  font-size: 13px;
  font-weight: 900;
}

.setup-quality p {
  color: inherit;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
}

.setup-quality b {
  color: #20242b;
  display: block;
  margin-bottom: 3px;
}

.setup-enable-row button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.setup-blockers {
  display: grid;
  gap: 8px;
}

.setup-blockers button {
  background: #fff8e8;
  border: 1px solid #ffe0a3;
  color: #8a5b00;
  cursor: pointer;
  font-size: 14px;
  font-weight: 900;
  min-height: 36px;
  padding: 0 12px;
  text-align: left;
}

.channel-config-head,
.channel-config-row {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr 120px 100px 100px 90px;
  min-width: 620px;
}

.channel-config-head {
  background: #f7f8fb;
  color: #7e8490;
  font-size: 13px;
  font-weight: 900;
  min-height: 38px;
  padding: 0 12px;
}

.channel-settings {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.channel-template-group {
  background: #eef3ff;
  border-left: 3px solid var(--blue);
  color: #24407d;
  font-size: 14px;
  font-weight: 900;
  margin-top: 10px;
  padding: 8px 10px;
}

.channel-config-row {
  border-bottom: 1px solid #e5e8ee;
  min-height: 42px;
  padding: 6px 0;
}

.channel-config-row input {
  border: 1px solid #d9dde5;
  border-radius: 4px;
  color: #282c33;
  font-size: 14px;
  font-weight: 800;
  height: 32px;
  padding: 0 8px;
}

.channel-config-row label {
  align-items: center;
  display: flex;
  font-size: 14px;
  font-weight: 900;
  gap: 6px;
}

.channel-config-row input[type="checkbox"] {
  height: 16px;
  width: 16px;
}

.channel-config-row span {
  color: var(--blue);
  font-size: 14px;
  font-weight: 900;
}

.channel-category {
  color: #76808f;
  display: block;
  font-size: 13px;
  font-weight: 800;
  margin-top: 4px;
}

.ota-config-list {
  display: grid;
  gap: 8px;
}

.ota-config-row {
  align-items: center;
  border-bottom: 1px solid #e5e8ee;
  display: grid;
  gap: 10px;
  grid-template-columns: 90px 110px 1fr 1fr 1.4fr 150px 92px;
  min-height: 46px;
  min-width: 920px;
  padding: 8px 0;
}

.ota-config-row:last-child {
  border-bottom: 0;
}

.ota-config-row strong,
.ota-config-row span,
.ota-config-row label {
  font-size: 13px;
  font-weight: 900;
}

.ota-config-row span {
  color: var(--blue);
}

.ota-config-row input {
  border: 1px solid #d9dde5;
  border-radius: 4px;
  color: #282c33;
  font-size: 13px;
  font-weight: 800;
  height: 32px;
  min-width: 0;
  padding: 0 8px;
}

.ota-config-row label {
  align-items: center;
  color: #515965;
  display: flex;
  gap: 6px;
}

.ota-config-row input[type="checkbox"] {
  height: 16px;
  width: 16px;
}

.inline-actions {
  display: flex;
  gap: 8px;
}

.file-action {
  align-items: center;
  cursor: pointer;
  display: inline-flex;
}

.hidden-file-input {
  display: none;
}

.danger-action {
  border-color: #ffd1d5;
  color: #c72938;
}

.danger-action:hover {
  background: #fff3f4;
}

.room-manager {
  display: grid;
  gap: 8px;
}

.room-closure-panel {
  background: #f7f8fb;
  display: grid;
  gap: 10px;
  margin: 12px 0;
  padding: 12px;
}

.room-closure-form {
  display: grid;
  gap: 8px;
  grid-template-columns: 130px 110px 130px 130px 1fr auto;
  min-width: 760px;
}

.room-closure-form input,
.room-closure-form select {
  border: 1px solid #d9dde5;
  border-radius: 4px;
  color: #282c33;
  font-size: 14px;
  font-weight: 800;
  height: 34px;
  padding: 0 8px;
}

.room-closure-list {
  display: grid;
  gap: 8px;
}

.room-closure-row {
  align-items: center;
  background: white;
  display: grid;
  gap: 10px;
  grid-template-columns: 140px 180px 1fr auto;
  min-height: 36px;
  min-width: 620px;
  padding: 8px 10px;
}

.room-closure-row strong,
.room-closure-row span {
  color: #59616d;
  font-size: 13px;
  font-weight: 900;
}

.room-closure-row strong {
  color: #20242b;
}

.room-manage-row {
  align-items: center;
  border-bottom: 1px solid #e5e8ee;
  display: grid;
  gap: 10px;
  grid-template-columns: 90px 1fr 115px 95px 80px 90px 1fr 70px;
  min-width: 900px;
  padding: 8px 0;
}

.room-manage-row input,
.room-manage-row select {
  border: 1px solid #d9dde5;
  border-radius: 4px;
  color: #282c33;
  font-size: 14px;
  font-weight: 800;
  height: 32px;
  padding: 0 8px;
}

.room-manage-row span {
  color: var(--blue);
  font-size: 14px;
  font-weight: 900;
}

.finance-summary {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, 1fr);
}

.finance-item {
  background: #f7f8fb;
  display: grid;
  gap: 8px;
  padding: 14px;
}

.finance-item span {
  color: #7e8490;
  font-size: 13px;
  font-weight: 900;
}

.finance-item strong {
  font-size: 22px;
}

.finance-import-summary {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.finance-import-row {
  align-items: center;
  background: #f7f8fb;
  color: #515965;
  display: grid;
  font-size: 13px;
  font-weight: 800;
  gap: 10px;
  grid-template-columns: 120px 120px 1fr 120px 90px;
  min-height: 36px;
  min-width: 620px;
  padding: 8px 12px;
}

.finance-import-row strong {
  color: #20242b;
}

.finance-import-preview-head {
  align-items: center;
  background: #eef2ff;
  color: var(--blue);
  display: flex;
  font-size: 13px;
  font-weight: 900;
  justify-content: space-between;
  padding: 10px 12px;
}

.finance-import-preview-row {
  align-items: center;
  background: #f7f8fb;
  color: #515965;
  display: grid;
  font-size: 13px;
  font-weight: 800;
  gap: 10px;
  grid-template-columns: 110px 110px 1fr 120px 150px;
  min-height: 36px;
  min-width: 650px;
  padding: 8px 12px;
}

.finance-import-preview-row.difference {
  background: #fff8e8;
}

.finance-import-preview-row.skipped {
  background: #fff3f4;
}

.finance-import-preview-row strong {
  color: #20242b;
}

.finance-import-preview-row em {
  color: #59616d;
  font-style: normal;
  font-weight: 900;
}

.finance-import-preview-row.difference em {
  color: #bd7b00;
}

.finance-import-preview-row.skipped em {
  color: #c72938;
}

.room-import-preview {
  display: grid;
  gap: 8px;
}

.room-import-preview-head {
  align-items: center;
  background: #eef2ff;
  color: var(--blue);
  display: flex;
  font-size: 13px;
  font-weight: 900;
  justify-content: space-between;
  padding: 10px 12px;
}

.room-import-preview-row {
  align-items: center;
  background: #f7f8fb;
  display: grid;
  gap: 10px;
  grid-template-columns: 90px 1fr 90px 110px 150px;
  min-height: 36px;
  padding: 8px 12px;
}

.room-import-preview-row.skipped {
  background: #fff3f4;
}

.room-import-preview-row strong {
  color: #20242b;
}

.room-import-preview-row span,
.room-import-preview-row em {
  color: #59616d;
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
}

.room-import-preview-row.skipped em {
  color: #c72938;
}

.audit-list {
  display: grid;
  gap: 10px;
}

.audit-row {
  background: #f7f8fb;
  display: grid;
  gap: 5px;
  padding: 12px;
}

.audit-row strong {
  color: var(--blue);
}

.audit-row span {
  color: #5f6672;
  font-size: 13px;
  font-weight: 800;
}

.approval-list,
.settlement-list {
  display: grid;
  gap: 10px;
}

.approval-row,
.settlement-row {
  align-items: center;
  background: #f7f8fb;
  display: grid;
  gap: 10px;
  padding: 12px;
}

.approval-row {
  grid-template-columns: 150px 1fr 80px auto;
}

.settlement-row {
  grid-template-columns: 90px 100px 1fr 1fr 1fr 80px auto;
}

.approval-row strong,
.settlement-row strong {
  color: #20242b;
}

.approval-row span,
.settlement-row span,
.empty-note {
  color: #626975;
  font-size: 13px;
  font-weight: 800;
}

.settlement-ok {
  color: #40a80f !important;
}

.settlement-diff {
  color: #bd7b00 !important;
}

.empty-note {
  background: #f7f8fb;
  padding: 14px;
}

.login-panel {
  display: grid;
  gap: 14px;
}

.login-panel select,
.login-panel input {
  border: 1px solid #d9dde5;
  border-radius: 4px;
  color: #282c33;
  font-size: 15px;
  font-weight: 800;
  height: 36px;
  padding: 0 8px;
}

.login-panel .primary-action {
  width: 120px;
}

.permission-summary {
  background: #f7f8fb;
  color: #4e5560;
  display: grid;
  font-size: 14px;
  font-weight: 800;
  gap: 8px;
  padding: 14px;
}

.server-sync-panel {
  background: #f7f8fb;
  display: grid;
  gap: 12px;
  margin-bottom: 12px;
  padding: 14px;
}

.server-sync-panel > div {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.server-sync-panel strong {
  color: #20242b;
  font-size: 15px;
}

.server-sync-panel span {
  color: #69717d;
  font-size: 13px;
  font-weight: 900;
}

.server-sync-panel .sync-ok,
.server-sync-panel .sync-paused {
  font-size: 13px;
}

.backup-text {
  border: 1px solid #d9dde5;
  border-radius: 4px;
  color: #282c33;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  font-weight: 700;
  height: 150px;
  padding: 10px;
  resize: vertical;
  width: 100%;
}

.compact-textarea {
  height: 86px;
  margin-bottom: 12px;
}

.config-row {
  align-items: center;
  border-bottom: 1px solid #e5e8ee;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, 1fr) 110px 90px;
  padding: 10px 0;
}

.config-row:last-child {
  border-bottom: 0;
}

.config-row input {
  border: 1px solid #d9dde5;
  border-radius: 4px;
  color: #282c33;
  font-size: 14px;
  font-weight: 800;
  height: 32px;
  padding: 0 8px;
}

.config-row label {
  align-items: center;
  display: flex;
  font-size: 14px;
  font-weight: 900;
  gap: 6px;
}

.config-row input[type="checkbox"] {
  height: 16px;
  width: 16px;
}

.log-list {
  border-top: 1px solid #e5e8ee;
}

.log-filter-row {
  display: grid;
  gap: 8px;
  grid-template-columns: 120px 180px;
}

.log-filter-row select,
.log-filter-row input {
  border: 1px solid #d9dde5;
  border-radius: 4px;
  color: #282c33;
  font-size: 13px;
  font-weight: 800;
  height: 32px;
  padding: 0 8px;
}

.log-row {
  align-items: center;
  border-bottom: 1px solid #e5e8ee;
  color: #555b66;
  display: grid;
  font-size: 14px;
  font-weight: 800;
  gap: 12px;
  grid-template-columns: 180px 90px 1fr;
  min-height: 38px;
}

.log-row strong {
  color: #20242b;
}

.toast {
  background: #20242b;
  border-radius: 8px;
  bottom: 24px;
  color: white;
  font-weight: 800;
  left: 50%;
  opacity: 0;
  padding: 12px 18px;
  pointer-events: none;
  position: fixed;
  transform: translate(-50%, 16px);
  transition: 0.2s ease;
  z-index: 20;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 900px) {
  .login-gate {
    padding: 22px;
  }

  .login-gate.active {
    grid-template-columns: 1fr;
  }

  .login-gate-brand strong {
    font-size: 28px;
  }

  .login-gate-panel {
    max-width: 100%;
    padding: 22px;
  }

  .login-gate-actions button {
    flex: 1 1 160px;
  }

  .app-shell {
    min-width: 0;
  }

  .topbar {
    align-items: center;
    grid-template-columns: 1fr;
    height: auto;
    padding: 10px 14px;
  }

  .nav-tabs {
    justify-content: flex-start;
    overflow-x: auto;
    width: 100%;
  }

  .nav-tab {
    flex: 0 0 auto;
    font-size: 15px;
    height: 42px;
  }

  .workspace {
    padding: 12px;
  }

  .quick-grid,
  .kpi-grid,
  .overview-grid,
  .chart-grid,
  .room-summary,
  .stats-grid,
  .channel-grid,
  .room-grid,
  .simple-page.active {
    grid-template-columns: unset;
  }

  .quick-grid {
    grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  }

  .kpi-grid {
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  }

  .overview-grid {
    grid-template-columns: 1fr;
  }

  .chart-grid {
    grid-template-columns: 1fr;
  }

  .room-summary,
  .channel-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }

  .room-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }

  .simple-page.active {
    grid-template-columns: 1fr;
  }

  .donut-row {
    grid-template-columns: 1fr;
  }

  .metric-pair {
    grid-template-columns: 1fr;
  }

  .divided {
    border-left: 0;
    padding-left: 0;
  }

  .stay-layout,
  .stay-layout.stay-collapsed {
    grid-template-columns: 1fr;
  }

  .stay-sidebar {
    border-right: 0;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 10px;
  }

  .stay-layout.stay-collapsed .stay-side-item,
  .stay-side-item {
    border: 1px solid #dfe3ea;
    border-radius: 4px;
    display: flex;
    flex: 0 0 auto;
    height: 34px;
    padding: 0 12px;
    white-space: nowrap;
    width: auto;
  }

  .stay-actions {
    flex-basis: 100%;
    justify-content: flex-start;
  }

  .stay-search {
    max-width: none;
  }

  .calendar-board {
    margin: 0 12px 18px;
    max-width: calc(100% - 24px);
  }

  .stats-layout {
    grid-template-columns: 1fr;
  }

  .stats-layout.stats-collapsed {
    grid-template-columns: 1fr;
  }

  .stats-sidebar {
    border-right: 0;
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 10px;
  }

  .collapse-button,
  .sidebar-title {
    display: none;
  }

  .stats-layout.stats-collapsed .sidebar-group {
    display: flex;
  }

  .stats-layout.stats-collapsed .sidebar-item {
    display: block;
  }

  .sidebar-group {
    display: flex;
    flex: 0 0 auto;
    gap: 8px;
    margin-bottom: 0;
  }

  .sidebar-item {
    border: 1px solid #dfe3ea;
    border-radius: 4px;
    height: 34px;
    padding: 0 12px;
    white-space: nowrap;
    width: auto;
  }

  .stats-section,
  .stats-filter-row {
    padding-left: 12px;
    padding-right: 12px;
  }

  .date-filter {
    display: flex;
    height: auto;
    overflow-x: auto;
    width: 100%;
  }

  .date-filter button,
  .date-filter label,
  .date-filter span {
    flex: 0 0 auto;
    height: 34px;
  }

  .stats-period {
    flex-basis: 100%;
    min-width: 0;
    text-align: left;
  }

  .stats-bottom-grid {
    grid-template-columns: 1fr;
  }

  .stats-distribution {
    grid-template-columns: 1fr;
  }

  .settings-layout,
  .customers-page.active {
    padding: 12px;
  }

  .settings-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
}
