:root {
  --blue: #1f5eff;
  --blue-strong: #174ad4;
  --blue-soft: #edf3ff;
  --text: #182132;
  --muted: #778294;
  --line: #dfe5ee;
  --bg: #f4f6f9;
  --panel: #ffffff;
  --green: #2ea77d;
  --red: #eb4d5c;
  --yellow: #f2b84b;
  --orange: #efad67;
  --pink: #e77c85;
  --purple: #7a6bd0;
  --rail: #17304a;
  --rail-deep: #12283e;
  --surface-muted: #f7f9fc;
  --shadow: 0 1px 2px rgba(18, 32, 51, 0.05);
}

/* Statistics decision workspace */
#page-stats {
  --stats-border: #dfe4ec;
  --stats-ink: #202735;
  --stats-muted: #697386;
  --stats-panel: #ffffff;
  --stats-blue: #1f5eff;
}

#page-stats .stats-layout {
  background: #f3f5f8;
  grid-template-columns: 176px minmax(0, 1fr);
}

#page-stats .stats-sidebar {
  border-color: var(--stats-border);
  padding: 14px 10px;
}

#page-stats .collapse-button {
  color: var(--stats-muted);
  font-size: 12px;
  margin-bottom: 10px;
  padding: 0 8px;
}

#page-stats .sidebar-title {
  color: #8a93a3;
  font-size: 11px;
  padding: 10px 10px 7px;
}

#page-stats .sidebar-item {
  align-items: center;
  border-left: 3px solid transparent;
  border-radius: 4px;
  display: flex;
  gap: 9px;
  height: 38px;
  padding: 0 10px;
}

#page-stats .sidebar-item svg {
  height: 16px;
  width: 16px;
}

#page-stats .sidebar-item.active {
  background: #eef3ff;
  border-left-color: var(--stats-blue);
}

#page-stats .stats-main {
  overflow-x: hidden;
}

#page-stats .stats-filter-row {
  align-items: center;
  background: var(--stats-panel);
  border-bottom: 1px solid var(--stats-border);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px 18px;
}

#page-stats .stats-preset-buttons,
#page-stats .stats-segments {
  align-items: center;
  border: 1px solid #d6dce6;
  border-radius: 4px;
  display: inline-flex;
  overflow: hidden;
}

#page-stats .stats-preset-buttons button,
#page-stats .stats-segments button {
  background: white;
  border: 0;
  border-right: 1px solid #d6dce6;
  color: #596275;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  height: 32px;
  padding: 0 12px;
  white-space: nowrap;
}

#page-stats .stats-preset-buttons button:last-child,
#page-stats .stats-segments button:last-child {
  border-right: 0;
}

#page-stats .stats-preset-buttons button.active,
#page-stats .stats-segments button.active {
  background: #edf3ff;
  color: var(--stats-blue);
}

#page-stats .date-filter {
  flex: 0 1 auto;
  grid-template-columns: 100px 132px 28px 132px;
  height: 34px;
}

#page-stats .date-filter input {
  font-size: 12px;
  width: 112px;
}

#page-stats .date-filter select,
#page-stats .date-filter span {
  font-size: 12px;
}

#page-stats .stats-comparison {
  background: white;
  border: 1px solid #d6dce6;
  border-radius: 4px;
  color: #4d5768;
  font-size: 12px;
  font-weight: 800;
  height: 34px;
  padding: 0 10px;
}

#page-stats .stats-filter-actions {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

#page-stats .stats-filter-actions button {
  align-items: center;
  display: inline-flex;
  font-size: 12px;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
}

#page-stats .stats-filter-actions svg {
  height: 15px;
  width: 15px;
}

#page-stats .stats-section {
  padding: 18px 18px 30px;
}

#page-stats .stats-section-head {
  margin: 0 0 14px;
}

#page-stats .stats-section-head h1 {
  color: var(--stats-ink);
  font-size: 20px;
  line-height: 1.25;
}

#page-stats .stats-section-head p,
#page-stats .stats-panel-head p {
  color: var(--stats-muted);
  font-size: 12px;
  font-weight: 700;
  margin: 4px 0 0;
}

#page-stats .stats-period {
  font-size: 12px;
}

#page-stats .revenue-summary-grid {
  background: var(--stats-border);
  border: 1px solid var(--stats-border);
  gap: 1px;
  grid-template-columns: repeat(6, minmax(120px, 1fr));
  overflow: hidden;
}

#page-stats .stats-kpi-card {
  background: white;
  display: flex;
  flex-direction: column;
  min-height: 116px;
  min-width: 0;
  padding: 14px;
}

#page-stats .stats-kpi-card.unavailable {
  background: #f8f9fb;
}

#page-stats .stats-kpi-head {
  align-items: center;
  color: var(--stats-muted);
  display: flex;
  font-size: 12px;
  font-weight: 800;
  gap: 6px;
  justify-content: space-between;
}

#page-stats .stats-kpi-card > strong {
  color: var(--stats-ink);
  display: block;
  font-size: 23px;
  line-height: 1.1;
  margin: 13px 0 10px;
  overflow-wrap: anywhere;
}

#page-stats .stats-kpi-card.unavailable > strong {
  color: #98a0ad;
}

#page-stats .stats-kpi-meta {
  align-items: flex-end;
  color: #8a93a3;
  display: flex;
  font-size: 11px;
  font-weight: 700;
  gap: 6px;
  justify-content: space-between;
  margin-top: auto;
  min-width: 0;
}

#page-stats .stats-kpi-meta > span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#page-stats .stats-kpi-delta {
  color: #526072;
  flex: 0 0 auto;
  white-space: nowrap;
}

#page-stats .stats-kpi-delta.up {
  color: #167a57;
}

#page-stats .stats-kpi-delta.down {
  color: #c14c4c;
}

#page-stats .stats-quality-badge {
  background: #edf0f4;
  border-radius: 3px;
  color: #788292;
  font-size: 10px;
  padding: 3px 5px;
}

#page-stats .stats-decision-grid,
#page-stats .stats-analytics-grid {
  align-items: start;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, 0.75fr);
  margin-top: 14px;
}

#page-stats .stats-analytics-grid {
  grid-template-columns: minmax(0, 1.45fr) minmax(340px, 0.85fr);
}

#page-stats .stats-white-panel {
  border: 1px solid var(--stats-border);
  border-radius: 6px;
  min-height: 0;
  padding: 16px;
}

#page-stats .stats-panel-head {
  align-items: flex-start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

#page-stats .stats-panel-head h2 {
  color: var(--stats-ink);
  font-size: 15px;
  line-height: 1.3;
}

#page-stats .stats-distribution {
  display: block;
  margin-top: 14px;
}

#page-stats .stats-demand-strip {
  display: grid;
  gap: 8px;
  grid-auto-columns: 108px;
  grid-auto-flow: column;
  overflow-x: auto;
  padding: 1px 1px 8px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}

#page-stats .stats-demand-day {
  background: #f6f8fb;
  border: 1px solid #e0e5ed;
  border-radius: 5px;
  color: var(--stats-ink);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  min-height: 118px;
  padding: 11px;
  scroll-snap-align: start;
  text-align: left;
}

#page-stats .stats-demand-day:hover,
#page-stats .stats-demand-day:focus-visible {
  border-color: var(--stats-blue);
  outline: 2px solid rgba(31, 94, 255, 0.14);
}

#page-stats .stats-demand-day.warm {
  background: #fff8e8;
  border-color: #efd9a0;
}

#page-stats .stats-demand-day.hot {
  background: #fff0ee;
  border-color: #efb7ad;
}

#page-stats .stats-demand-day span,
#page-stats .stats-demand-day em,
#page-stats .stats-demand-day small {
  color: var(--stats-muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
}

#page-stats .stats-demand-day strong {
  font-size: 24px;
  line-height: 1;
  margin: 12px 0 9px;
}

#page-stats .stats-demand-day small {
  margin-top: 5px;
}

#page-stats #statsAttentionList {
  display: grid;
  gap: 0;
  margin-top: 10px;
}

#page-stats .stats-attention-row {
  align-items: center;
  border-top: 1px solid #e8ebf0;
  display: grid;
  gap: 9px;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  min-height: 58px;
  padding: 9px 0;
}

#page-stats .stats-attention-row:first-child {
  border-top: 0;
}

#page-stats .stats-attention-icon {
  align-items: center;
  background: #edf3ff;
  border-radius: 4px;
  color: var(--stats-blue);
  display: flex;
  height: 28px;
  justify-content: center;
  width: 28px;
}

#page-stats .stats-attention-row.warning .stats-attention-icon {
  background: #fff3dc;
  color: #a96800;
}

#page-stats .stats-attention-row.risk .stats-attention-icon {
  background: #ffeded;
  color: #bd4040;
}

#page-stats .stats-attention-row.data .stats-attention-icon {
  background: #eef0f4;
  color: #6f7888;
}

#page-stats .stats-attention-icon svg {
  height: 15px;
  width: 15px;
}

#page-stats .stats-attention-row strong {
  color: var(--stats-ink);
  display: block;
  font-size: 12px;
}

#page-stats .stats-attention-row p {
  color: var(--stats-muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
  margin: 3px 0 0;
}

#page-stats .stats-attention-row button,
#page-stats .stats-text-action {
  background: transparent;
  border: 0;
  color: var(--stats-blue);
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

#page-stats .stats-empty-success {
  align-items: center;
  color: #24805f;
  display: flex;
  font-size: 12px;
  font-weight: 800;
  gap: 8px;
  min-height: 90px;
  justify-content: center;
}

#page-stats .stats-empty-success svg {
  height: 17px;
  width: 17px;
}

#page-stats .stats-operations-chart {
  min-height: 280px;
  overflow: hidden;
  padding-top: 8px;
}

#page-stats .stats-operations-chart svg {
  display: block;
  height: 250px;
  overflow: visible;
  width: 100%;
}

#page-stats .stats-chart-legend {
  color: var(--stats-muted);
  display: flex;
  font-size: 11px;
  font-weight: 800;
  gap: 18px;
  justify-content: flex-end;
}

#page-stats .stats-chart-legend span::before {
  content: "";
  display: inline-block;
  margin-right: 6px;
  vertical-align: middle;
}

#page-stats .stats-chart-legend .bar-key::before {
  background: #b8c8ef;
  border-radius: 2px;
  height: 9px;
  width: 9px;
}

#page-stats .stats-chart-legend .line-key::before {
  border-top: 2px solid var(--stats-blue);
  height: 1px;
  width: 14px;
}

#page-stats .stats-chart-grid line {
  stroke: #e7eaf0;
  stroke-width: 1;
}

#page-stats .stats-chart-bar {
  fill: #bdcae8;
}

#page-stats .stats-chart-line {
  fill: none;
  stroke: var(--stats-blue);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.5;
}

#page-stats .stats-chart-dot {
  fill: white;
  stroke: var(--stats-blue);
  stroke-width: 2;
}

#page-stats .stats-chart-labels text {
  fill: #808999;
  font-size: 11px;
  font-weight: 700;
}

#page-stats .stats-channel-table {
  margin-top: 10px;
  min-width: 0;
}

#page-stats .stats-roomtype-table {
  margin-top: 10px;
  min-width: 0;
}

#page-stats .stats-channel-table-head,
#page-stats .stats-channel-table > div:not(.stats-channel-table-head) {
  align-items: center;
  border-bottom: 1px solid #e8ebf0;
  display: grid;
  font-size: 11px;
  gap: 8px;
  grid-template-columns: minmax(86px, 1.2fr) repeat(4, minmax(52px, 0.75fr));
  min-height: 40px;
}

#page-stats .stats-roomtype-table-head,
#page-stats .stats-roomtype-table > div:not(.stats-roomtype-table-head) {
  align-items: center;
  border-bottom: 1px solid #e8ebf0;
  display: grid;
  font-size: 11px;
  gap: 8px;
  grid-template-columns: minmax(118px, 1.35fr) repeat(5, minmax(58px, 0.72fr));
  min-height: 40px;
}

#page-stats .stats-roomtype-table-head {
  color: #8992a1;
  font-weight: 800;
}

#page-stats .stats-roomtype-table > div:not(.stats-roomtype-table-head) {
  color: #4e5869;
  font-weight: 700;
}

#page-stats .stats-roomtype-table strong {
  color: var(--stats-ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#page-stats .stats-channel-table-head {
  color: #8992a1;
  font-weight: 800;
}

#page-stats .stats-channel-table > div:not(.stats-channel-table-head) {
  color: #4e5869;
  font-weight: 700;
}

#page-stats .stats-channel-table strong {
  color: var(--stats-ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#page-stats .stats-channel-overview {
  align-items: center;
  display: grid;
  gap: 26px;
  grid-template-columns: 132px minmax(0, 1fr);
}

#page-stats .stats-channel-donut {
  align-items: center;
  border-radius: 50%;
  display: flex;
  height: 126px;
  justify-content: center;
  position: relative;
  width: 126px;
}

#page-stats .stats-channel-donut::after {
  background: white;
  border-radius: 50%;
  content: "";
  height: 72px;
  position: absolute;
  width: 72px;
}

#page-stats .stats-channel-donut span {
  font-size: 11px;
  font-weight: 900;
  position: relative;
  text-align: center;
  z-index: 1;
}

#page-stats .stats-channel-bars,
#page-stats .stats-method-list {
  display: grid;
  gap: 10px;
}

#page-stats .stats-channel-bars > div,
#page-stats .stats-method-list > div {
  align-items: center;
  display: grid;
  font-size: 11px;
  font-weight: 800;
  gap: 10px;
  grid-template-columns: 120px minmax(100px, 1fr) 54px;
}

#page-stats .stats-channel-bars > div > span::before {
  background: var(--stats-row-color);
  border-radius: 2px;
  content: "";
  display: inline-block;
  height: 8px;
  margin-right: 7px;
  width: 8px;
}

#page-stats .stats-channel-bars > div > div,
#page-stats .stats-method-list > div > div {
  background: #edf0f4;
  border-radius: 2px;
  height: 6px;
  overflow: hidden;
}

#page-stats .stats-channel-bars i,
#page-stats .stats-method-list i {
  background: var(--stats-blue);
  display: block;
  height: 100%;
}

#page-stats .stats-finance-summary {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 10px;
}

#page-stats .stats-finance-summary div {
  background: #f6f8fb;
  min-height: 76px;
  padding: 12px;
}

#page-stats .stats-finance-summary span {
  color: var(--stats-muted);
  display: block;
  font-size: 11px;
  font-weight: 800;
}

#page-stats .stats-finance-summary strong {
  display: block;
  font-size: 18px;
  margin-top: 8px;
  overflow-wrap: anywhere;
}

#page-stats .stats-unavailable-note {
  background: #f6f8fb;
  border: 1px dashed #d6dce6;
  border-radius: 4px;
  display: grid;
  gap: 6px;
  min-height: 98px;
  padding: 18px;
}

#page-stats .stats-unavailable-note strong {
  color: var(--stats-ink);
  font-size: 13px;
}

#page-stats .stats-unavailable-note span {
  color: var(--stats-muted);
  font-size: 12px;
  font-weight: 700;
}

#page-stats .stats-data-note {
  align-items: flex-start;
  background: #eef2f7;
  border: 1px solid #dde3eb;
  border-radius: 4px;
  color: #5f6979;
  display: flex;
  font-size: 11px;
  font-weight: 700;
  gap: 8px;
  line-height: 1.5;
  margin-top: 14px;
  padding: 10px 12px;
}

#page-stats .stats-data-note svg {
  flex: 0 0 auto;
  height: 15px;
  margin-top: 1px;
  width: 15px;
}

@media (max-width: 1180px) {
  #page-stats .revenue-summary-grid {
    grid-template-columns: repeat(3, minmax(150px, 1fr));
  }

  #page-stats .stats-decision-grid,
  #page-stats .stats-analytics-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  #page-stats .stats-layout,
  #page-stats .stats-layout.stats-collapsed {
    grid-template-columns: 1fr;
  }

  #page-stats .stats-sidebar {
    border-bottom: 1px solid var(--stats-border);
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 8px 10px;
  }

  #page-stats .stats-sidebar .sidebar-group {
    display: flex;
    gap: 6px;
  }

  #page-stats .stats-sidebar .sidebar-item,
  #page-stats .stats-layout.stats-collapsed .sidebar-item {
    border: 1px solid #d9dfe8;
    display: flex;
    flex: 0 0 auto;
    height: 34px;
    padding: 0 10px;
    width: auto;
  }

  #page-stats .stats-sidebar .sidebar-item.active {
    border-color: #a8bfff;
  }

  #page-stats .stats-filter-row {
    display: grid;
    gap: 8px;
    grid-template-columns: 1fr;
    padding: 10px 12px;
  }

  #page-stats .stats-preset-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    width: 100%;
  }

  #page-stats .stats-preset-buttons button {
    padding: 0 6px;
  }

  #page-stats .date-filter {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: auto;
    width: 100%;
  }

  #page-stats .date-filter select {
    border-bottom: 1px solid #d9dde5;
    grid-column: 1 / -1;
    height: 34px;
  }

  #page-stats .date-filter label {
    border-right: 1px solid #d9dde5;
    height: 34px;
  }

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

  #page-stats .date-filter > span {
    display: none;
  }

  #page-stats .date-filter input {
    width: calc(100% - 16px);
  }

  #page-stats .stats-comparison {
    width: 100%;
  }

  #page-stats .stats-filter-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-left: 0;
  }

  #page-stats .stats-filter-actions button {
    justify-content: center;
  }

  #page-stats .stats-section {
    padding: 14px 12px 24px;
  }

  #page-stats .stats-section-head {
    align-items: flex-start;
  }

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

  #page-stats .revenue-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #page-stats .stats-kpi-card {
    min-height: 108px;
    padding: 12px;
  }

  #page-stats .stats-kpi-card > strong {
    font-size: 20px;
  }

  #page-stats .stats-kpi-meta {
    align-items: flex-start;
    flex-direction: column;
  }

  #page-stats .stats-kpi-meta > span:first-child {
    max-width: 100%;
  }

  #page-stats .stats-decision-grid,
  #page-stats .stats-analytics-grid {
    gap: 10px;
    grid-template-columns: 1fr;
    margin-top: 10px;
  }

  #page-stats .stats-white-panel {
    padding: 13px;
  }

  #page-stats .stats-panel-head {
    align-items: flex-start;
    flex-direction: column;
  }

  #page-stats .stats-channel-overview {
    grid-template-columns: 1fr;
  }

  #page-stats .stats-channel-donut {
    justify-self: center;
  }

  #page-stats .stats-channel-bars > div,
  #page-stats .stats-method-list > div {
    grid-template-columns: 96px minmax(70px, 1fr) 52px;
  }

  #page-stats .stats-channel-table {
    overflow-x: auto;
  }

  #page-stats .stats-roomtype-table {
    overflow-x: auto;
  }

  #page-stats .stats-channel-table-head,
  #page-stats .stats-channel-table > div:not(.stats-channel-table-head) {
    min-width: 560px;
  }


  #page-stats .stats-roomtype-table-head,
  #page-stats .stats-roomtype-table > div:not(.stats-roomtype-table-head) {
    min-width: 680px;
  }

  #page-stats .stats-operations-chart {
    min-height: 230px;
    overflow-x: auto;
  }

  #page-stats .stats-operations-chart svg {
    height: 210px;
    min-width: 620px;
  }
}

* {
  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;
}

.sr-only {
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.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;
  flex: 0 0 auto;
  font-size: 15px;
  font-weight: 700;
  height: 64px;
  padding: 0 4px;
  position: relative;
  white-space: nowrap;
}

.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(188px, 216px) 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: #fff;
  border-right: 1px solid #e3e6ec;
  min-width: 0;
  padding: 24px 0;
}

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

.stay-side-item.active {
  background: #f2f6ff;
  color: var(--blue);
  box-shadow: inset 4px 0 0 var(--blue);
}

.stay-main {
  background: #f7f8fb;
  container-name: stay-main;
  container-type: inline-size;
  overflow: hidden;
  min-width: 0;
}

.stay-toolbar {
  align-items: center;
  background: #f4f6fa;
  border-bottom: 1px solid #e0e5ee;
  display: grid;
  gap: 12px;
  grid-template-columns: auto minmax(220px, 1fr) auto;
  min-height: 74px;
  padding: 16px 18px 14px;
}

.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: 16px;
  font-weight: 900;
  height: 42px;
  min-width: 72px;
}

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

.stay-view-tabs button.active {
  background: #f7faff;
  box-shadow: inset 0 0 0 1px var(--blue);
  color: var(--blue);
  position: relative;
  z-index: 1;
}

.stay-search {
  align-items: center;
  background: white;
  border: 1px solid #d9dde5;
  border-radius: 4px;
  color: #c0c4cc;
  display: flex;
  height: 42px;
  min-width: 0;
  padding: 0 12px;
  width: 100%;
}

.stay-search input {
  background: transparent;
  border: 0;
  color: #30343b;
  font-size: 15px;
  font-weight: 700;
  min-width: 0;
  outline: 0;
  text-overflow: ellipsis;
  width: 100%;
}

.stay-command-menu summary {
  display: none;
}

.stay-command-list-wide {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.stay-command-menu {
  display: none;
  position: relative;
}

.stay-command-list button {
  background: white;
  border: 1px solid #d9dde5;
  border-radius: 4px;
  color: #30343b;
  cursor: pointer;
  font-size: 15px;
  font-weight: 800;
  height: 42px;
  padding: 0 16px;
  white-space: nowrap;
}

.stay-command-list button.active {
  background: #eef3ff;
  border-color: var(--blue);
  color: var(--blue);
}

.stay-view-tabs button:focus-visible,
.stay-search:focus-within,
.stay-command-menu summary:focus-visible,
.stay-command-list button:focus-visible {
  outline: 2px solid rgba(20, 84, 255, 0.45);
  outline-offset: 2px;
}

@container stay-main (max-width: 1100px) {
  .stay-toolbar {
    align-items: start;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .stay-view-tabs {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
  }

  .stay-search {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .stay-command-menu {
    display: block;
    grid-column: 2;
    grid-row: 1;
  }

  .stay-command-list-wide {
    display: none;
  }

  .stay-command-menu summary {
    align-items: center;
    background: white;
    border: 1px solid #d9dde5;
    border-radius: 4px;
    color: #30343b;
    cursor: pointer;
    display: flex;
    font-size: 14px;
    font-weight: 800;
    height: 42px;
    padding: 0 12px;
    white-space: nowrap;
  }

  .stay-command-menu:not([open]) > .stay-command-list {
    display: none;
  }

  .stay-command-menu[open] > .stay-command-list {
    align-items: stretch;
    background: white;
    border: 1px solid #d9dde5;
    box-shadow: 0 8px 20px rgba(18, 26, 39, 0.12);
    display: grid;
    gap: 6px;
    min-width: 166px;
    padding: 8px;
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    z-index: 12;
  }

  .stay-command-list button {
    height: 36px;
    padding: 0 12px;
    text-align: left;
    width: 100%;
  }
}

@container stay-main (max-width: 620px) {
  .stay-view-tabs {
    grid-column: 1 / -1;
    width: 100%;
  }

  .stay-view-tabs button {
    flex: 1 1 0;
    min-width: 0;
  }

  .stay-search {
    grid-column: 1;
  }

  .stay-command-menu {
    grid-column: 2;
    grid-row: 2;
  }
}

.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 18px 24px;
  max-width: calc(100% - 32px);
  min-width: 0;
  overflow: auto;
  position: relative;
}

.calendar-board.single-view .calendar-head,
.calendar-board.single-view .calendar-subhead,
.calendar-board.channel-view .calendar-head,
.calendar-board.channel-view .calendar-subhead {
  display: block;
  grid-template-columns: none;
  min-width: 900px;
}

.calendar-board.single-view .calendar-body,
.calendar-board.channel-view .calendar-body {
  min-width: 900px;
}

.calendar-board.single-view .calendar-head > div,
.calendar-board.single-view .calendar-subhead > div,
.calendar-board.channel-view .calendar-head > div,
.calendar-board.channel-view .calendar-subhead > div {
  border-right: 0;
}

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

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

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

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

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

.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: 132px 110px repeat(var(--stay-date-count, 8), var(--stay-date-width, 132px));
  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: 72px;
  padding: 8px 14px;
}

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

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

.date-cell {
  align-items: center;
  display: grid;
  justify-items: center;
  min-height: 72px;
  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: 84px;
  position: relative;
}

.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: 17px;
  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: 19px;
  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: 84px;
  overflow: visible;
  padding: 3px;
  position: relative;
}

.stay-booking {
  background: #add8f5;
  border-left: 6px solid #1977dd;
  border-radius: 3px;
  border-right: 0;
  border-top: 0;
  border-bottom: 0;
  color: #262a31;
  cursor: pointer;
  display: block;
  font: inherit;
  height: 72px;
  overflow: hidden;
  padding: 7px 8px;
  position: absolute;
  text-align: left;
  top: 5px;
  width: var(--booking-width, calc(var(--stay-date-width, 132px) - 8px));
  z-index: 2;
}

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

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

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

.stay-booking.clipped-start {
  border-left-style: dashed;
}

.stay-booking.clipped-end::after {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.45));
  bottom: 0;
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  width: 22px;
}

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

.stay-booking span {
  display: block;
  font-size: 14px;
  font-weight: 800;
  margin-top: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.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;
  white-space: nowrap;
  word-break: keep-all;
}

.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;
}

#page-orders .table-wrap {
  position: relative;
}

#page-orders .table-wrap table {
  min-width: 1520px;
  table-layout: fixed;
}

#page-orders th,
#page-orders td {
  font-size: 13px;
  line-height: 1.45;
  overflow-wrap: anywhere;
  word-break: keep-all;
}

#page-orders th:nth-child(1),
#page-orders td:nth-child(1) {
  width: 270px;
}

#page-orders th:nth-child(2),
#page-orders td:nth-child(2) {
  width: 88px;
}

#page-orders th:nth-child(3),
#page-orders td:nth-child(3) {
  width: 150px;
}

#page-orders th:nth-child(4),
#page-orders td:nth-child(4) {
  width: 150px;
}

#page-orders th:nth-child(5),
#page-orders td:nth-child(5) {
  width: 150px;
}

#page-orders th:nth-child(6),
#page-orders td:nth-child(6) {
  width: 110px;
}

#page-orders th:nth-child(7),
#page-orders td:nth-child(7) {
  width: 220px;
}

#page-orders th:nth-child(8),
#page-orders td:nth-child(8) {
  width: 96px;
}

#page-orders th:nth-child(9),
#page-orders td:nth-child(9) {
  width: 286px;
}

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

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

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;
  min-width: 264px;
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
}

.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-stay-amount-editor {
  border: 1px solid #dfe4ec;
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding: 12px;
}

.order-stay-amount-head,
.order-stay-amount-editor label {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) 148px;
}

.order-stay-amount-head span,
.order-stay-amount-editor label span {
  color: #69717d;
  font-size: 12px;
  font-weight: 800;
}

.order-stay-amount-editor input {
  border: 1px solid #d9dde5;
  border-radius: 4px;
  height: 34px;
  padding: 0 8px;
  width: 100%;
}

.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;
  cursor: pointer;
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 900;
  height: 32px;
  line-height: 1;
  min-width: 44px;
  padding: 0 10px;
  white-space: nowrap;
  word-break: keep-all;
}

.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-x: auto;
  overflow-y: visible;
}

.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 select,
.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,
.date-filter select {
  background: white;
  color: #2b3038;
  cursor: pointer;
  justify-content: space-between;
  outline: 0;
  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(210px, 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(340px, 1fr));
  margin-top: 24px;
  min-width: 0;
}

.stats-white-panel {
  background: white;
  border-radius: 4px;
  min-height: 220px;
  min-width: 0;
  overflow: hidden;
  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;
  min-width: 0;
  word-break: keep-all;
}

.stats-distribution-row > span:nth-child(2) {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.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;
  min-width: 0;
  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: max(100%, 720px);
  table-layout: auto;
}

.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;
}

.mapping-platform-fields {
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
}

.mapping-platform-fields > input:first-child {
  grid-column: 1 / -1;
}

.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: start;
  background: #f8f9fb;
  border: 1px solid #e1e5ec;
  border-radius: 6px;
  display: grid;
  gap: 14px;
  grid-template-columns: 150px minmax(0, 1fr) 260px;
  min-width: 0;
  padding: 14px;
}

.ota-config-row:last-child {
  border-bottom: 1px solid #e1e5ec;
}

.ota-config-title,
.ota-config-actions {
  display: grid;
  gap: 8px;
}

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

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

.ota-config-fields {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(160px, 1fr));
}

.ota-config-fields label {
  display: grid;
  gap: 5px;
}

.ota-config-fields label > span,
.ota-config-actions small {
  color: #737b88;
  font-size: 12px;
  font-weight: 800;
}

.ota-config-row input,
.ota-config-row select {
  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-actions > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.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;
}

.user-config-row,
.user-create-row {
  align-items: center;
  border-bottom: 1px solid #e5e8ee;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(110px, 1fr) 130px minmax(110px, 1fr) minmax(180px, 1.4fr) 82px;
  padding: 10px 0;
}

.user-create-row {
  background: #f7f9fd;
  border: 1px solid #dce3ef;
  grid-template-columns: minmax(110px, 1fr) 130px minmax(180px, 1.4fr) 82px auto;
  margin-bottom: 10px;
  padding: 12px;
}

.user-config-row input,
.user-config-row select,
.user-create-row input,
.user-create-row select {
  border: 1px solid #d9dde5;
  border-radius: 4px;
  color: #282c33;
  font-size: 14px;
  font-weight: 700;
  height: 34px;
  min-width: 0;
  padding: 0 8px;
}

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

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

.user-role-summary {
  color: #6b7280;
  font-size: 13px;
  font-weight: 700;
}

.user-role-readonly {
  align-items: center;
  background: #eef3ff;
  border: 1px solid #cddafe;
  border-radius: 4px;
  color: #174fc8;
  display: inline-flex;
  font-size: 13px;
  font-weight: 800;
  height: 34px;
  padding: 0 10px;
}

@media (max-width: 900px) {
  .user-config-row,
  .user-create-row {
    grid-template-columns: 1fr 1fr;
  }
}

.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;
    grid-template-rows: auto minmax(0, 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;
  }

  .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;
  }
}

/* 2026 premium ledger redesign: selected Product Design direction 2. */
body {
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.45;
}

button,
input,
select,
textarea {
  letter-spacing: 0;
}

button {
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid rgba(31, 94, 255, 0.35);
  outline-offset: 1px;
}

.topbar {
  border-bottom: 1px solid var(--line);
  box-shadow: none;
  gap: 18px;
  min-height: 56px;
  padding: 0 20px;
}

.brand {
  gap: 9px;
}

.brand-mark,
.login-gate-brand .brand-mark {
  background: none;
  border-radius: 9px;
  display: block;
  height: 36px;
  object-fit: cover;
  transform: none;
  width: 36px;
}

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

.brand-name {
  color: #111a28;
  font-size: 18px;
  font-weight: 750;
}

.badge {
  background: #f1f3f6;
  color: #748093;
  font-size: 12px;
  padding: 4px 10px;
}

.nav-tabs {
  gap: clamp(14px, 2vw, 28px);
}

.nav-tab {
  color: #273142;
  font-size: 14px;
  font-weight: 700;
  height: 56px;
  padding: 0 2px;
}

.nav-tab.active::after {
  height: 3px;
}

.ai-tab {
  background: none;
  color: #8d58c9;
}

.notify::before {
  height: 7px;
  right: -7px;
  top: 14px;
  width: 7px;
}

.icon-button {
  align-items: center;
  display: inline-flex;
  justify-content: center;
}

.icon-button svg {
  height: 17px;
  width: 17px;
}

.workspace {
  padding: 14px 16px;
}

#page-stay.active,
#page-stats.active {
  margin: -14px -16px;
}

.panel,
.page-header,
.order-filter-panel,
.settings-card,
.stats-white-panel,
.summary-card,
.channel-card,
.simple-card,
.customer-card,
.roomtype-card {
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: none;
}

.page-header {
  margin-bottom: 14px;
  padding: 16px 18px;
}

.primary-action,
.ghost-action {
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
  height: 36px;
  padding: 0 13px;
}

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

.primary-action:hover {
  background: var(--blue-strong);
}

.ghost-action {
  background: #f5f7fa;
  border: 1px solid var(--line);
  color: #465166;
}

.ghost-action:hover {
  background: #eef2f7;
  border-color: #ccd5e2;
}

input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
select,
textarea {
  border-color: #d7dee8;
  border-radius: 4px;
  color: #263143;
  font-size: 13px;
}

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

.quick-grid {
  gap: 8px;
  margin-top: 14px;
}

.quick-item {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 5px;
  flex-direction: row;
  gap: 10px;
  height: 58px;
  justify-content: flex-start;
  padding: 0 12px;
}

.quick-item:hover {
  background: var(--surface-muted);
  border-color: #cbd6e5;
}

.quick-icon {
  align-items: center;
  background: color-mix(in srgb, var(--quick-color) 12%, white);
  border-radius: 5px;
  color: var(--quick-color);
  display: flex;
  height: 30px;
  justify-content: center;
  width: 30px;
}

.quick-icon svg {
  height: 17px;
  width: 17px;
}

.quick-label {
  color: #263143;
  font-size: 13px;
}

.kpi-grid {
  gap: 8px;
  margin: 12px 0;
}

.kpi-card {
  border: 1px solid var(--line);
  border-radius: 5px;
  min-height: 70px;
  padding: 10px 12px;
}

.kpi-card strong {
  font-size: 21px;
  margin-top: 7px;
}

.overview-grid {
  gap: 14px;
  margin-top: 14px;
}

.revenue-card {
  background: var(--surface-muted);
  border-radius: 4px;
  padding: 15px;
}

.chart-grid {
  gap: 12px;
  margin-top: 12px;
}

.stay-layout {
  background: #fff;
  grid-template-columns: 64px minmax(144px, 156px) minmax(0, 1fr);
  min-height: calc(100vh - 56px);
}

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

.stay-rail {
  align-items: stretch;
  background: var(--rail);
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 56px);
  padding: 10px 6px;
}

.stay-rail-item {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 5px;
  color: #c8d5e4;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  font-size: 11px;
  font-weight: 700;
  gap: 5px;
  height: 58px;
  justify-content: center;
  margin-bottom: 4px;
  padding: 0;
}

.stay-rail-item svg {
  height: 19px;
  width: 19px;
}

.stay-rail-item:hover,
.stay-rail-item.active {
  background: #fff;
  color: var(--blue);
}

.stay-sidebar {
  background: #fff;
  border-right: 1px solid var(--line);
  padding: 0 10px 16px;
}

.stay-sidebar-head {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  height: 56px;
  justify-content: space-between;
  margin: 0 -10px 8px;
  padding: 0 11px 0 14px;
}

.stay-sidebar-head strong {
  color: #283449;
  font-size: 13px;
  white-space: nowrap;
}

.stay-sidebar-head .collapse-button {
  align-items: center;
  background: transparent;
  border: 0;
  color: #6c788a;
  cursor: pointer;
  display: inline-flex;
  height: 30px;
  justify-content: center;
  padding: 0;
  width: 30px;
}

.stay-sidebar-head .collapse-button svg {
  height: 17px;
  width: 17px;
}

.stay-side-group-title {
  color: #344054;
  font-size: 12px;
  font-weight: 800;
  padding: 12px 10px 5px;
}

.stay-side-item {
  border-radius: 4px;
  color: #536074;
  font-size: 12px;
  font-weight: 700;
  height: 38px;
  padding: 0 10px;
}

.stay-side-item > span {
  align-items: center;
  display: inline-flex;
  gap: 8px;
}

.stay-side-item svg {
  height: 15px;
  width: 15px;
}

.stay-side-item.active {
  background: var(--blue-soft);
  box-shadow: none;
  color: var(--blue);
}

.stay-layout.stay-collapsed .stay-sidebar-head {
  justify-content: center;
}

.stay-layout.stay-collapsed .stay-sidebar-head strong,
.stay-layout.stay-collapsed .stay-side-group-title {
  display: none;
}

.stay-main {
  background: #fff;
}

.stay-toolbar {
  background: #fff;
  border-bottom: 1px solid var(--line);
  gap: 10px;
  grid-template-columns: auto minmax(260px, 1fr) auto;
  min-height: 56px;
  padding: 9px 14px;
}

.stay-view-tabs {
  border-color: #d7dee8;
}

.stay-view-tabs button {
  color: #344054;
  font-size: 13px;
  font-weight: 700;
  height: 36px;
  min-width: 68px;
}

.stay-view-tabs button.active {
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--blue);
}

.stay-search {
  border-color: #d7dee8;
  height: 36px;
  padding: 0 11px;
}

.stay-search > svg {
  color: #a2adbc;
  flex: 0 0 auto;
  height: 16px;
  margin-right: 7px;
  width: 16px;
}

.stay-search input {
  font-size: 13px;
  font-weight: 600;
}

.stay-command-list button,
.stay-command-menu summary {
  border-color: #d7dee8;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  height: 36px;
  padding: 0 12px;
}

.stay-batch-panel {
  margin: 10px 14px;
}

.stay-batch-panel.active {
  border-color: var(--line);
  border-radius: 5px;
  padding: 12px;
}

.calendar-board {
  border-color: var(--line);
  border-left: 0;
  border-right: 0;
  border-radius: 0;
  height: calc(100vh - 168px);
  margin: 0;
  max-width: 100%;
  min-height: 510px;
  overscroll-behavior: contain;
  scrollbar-color: #c7d0dd transparent;
}

.calendar-head,
.calendar-subhead,
.calendar-row {
  grid-template-columns: 124px 88px repeat(var(--stay-date-count, 8), var(--stay-date-width, 112px));
  min-width: var(--stay-grid-min-width, 1108px);
}

.calendar-head {
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 8;
}

.calendar-subhead {
  background: #fff;
  position: sticky;
  top: 62px;
  z-index: 7;
}

.calendar-head > div,
.calendar-subhead > div,
.calendar-cell,
.room-type-cell,
.room-number-cell {
  border-color: #e0e6ef;
}

.date-master {
  align-items: center;
  background: #fff;
  display: flex;
  gap: 6px;
  grid-column: 1 / span 2;
  justify-content: space-between;
  min-height: 62px;
  padding: 6px 10px;
  position: sticky;
  left: 0;
  z-index: 10;
}

.date-master strong {
  color: #263143;
  font-size: 13px;
}

.date-master span {
  font-size: 11px;
}

.stay-date-navigation {
  align-items: center;
  display: flex;
  gap: 3px;
}

.stay-date-navigation button {
  align-items: center;
  background: #fff;
  border: 1px solid #d7dee8;
  border-radius: 4px;
  color: #4a5669;
  cursor: pointer;
  display: inline-flex;
  font-size: 11px;
  font-weight: 700;
  height: 28px;
  justify-content: center;
  min-width: 28px;
  padding: 0 7px;
}

.stay-date-navigation button:hover {
  background: var(--blue-soft);
  border-color: #b8c9f5;
  color: var(--blue);
}

.stay-date-navigation svg {
  height: 14px;
  width: 14px;
}

.date-cell {
  min-height: 62px;
  padding: 5px 4px;
}

.date-cell .remain-badge {
  background: transparent;
  border: 0;
  color: #7a8494;
  font-size: 11px;
  line-height: 15px;
  min-width: 0;
}

.date-cell .date-label {
  color: #253044;
  font-size: 13px;
}

.date-cell.today {
  background: #f3f7ff;
}

.date-cell .rest,
.date-cell .work {
  background: transparent;
  color: #9aa4b2;
  font-size: 11px;
  margin-left: 3px;
  padding: 0;
}

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

.date-cell.weekend:not(.today) .date-label {
  color: #e56555;
}

.calendar-subhead > div {
  color: #667085;
  font-size: 11px;
  font-weight: 700;
  min-height: 32px;
}

.calendar-subhead > div:first-child,
.calendar-subhead > div:nth-child(2) {
  background: #f8fafc;
  position: sticky;
  z-index: 9;
}

.calendar-subhead > div:first-child {
  left: 0;
}

.calendar-subhead > div:nth-child(2) {
  left: 124px;
}

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

.room-type-cell {
  align-items: center;
  background: #fff;
  color: #344054;
  font-size: 12px;
  font-weight: 750;
  justify-content: flex-start;
  line-height: 1.25;
  overflow: hidden;
  padding: 5px 8px;
  position: sticky;
  left: 0;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  z-index: 4;
}

.room-number-cell {
  align-items: center;
  background: #fff;
  color: #344054;
  font-size: 13px;
  font-weight: 750;
  justify-content: space-between;
  margin: 0;
  padding: 0 10px;
  position: sticky;
  left: 124px;
  z-index: 4;
}

.room-number-cell::after {
  content: none;
}

.room-number-cell svg {
  color: #6c788a;
  height: 14px;
  width: 14px;
}

.calendar-cell {
  min-height: 46px;
  padding: 3px;
}

.calendar-row:nth-child(even) .calendar-cell,
.calendar-row:nth-child(even) .room-type-cell,
.calendar-row:nth-child(even) .room-number-cell {
  background: #fcfdff;
}

.stay-booking {
  background: #cfe6fb;
  border-left: 4px solid #3b8eea;
  border-radius: 3px;
  height: 38px;
  padding: 4px 6px;
  top: 3px;
}

.stay-booking.gray {
  background: #e5e8ed;
  border-left-color: #8c96a5;
}

.stay-booking.orange {
  background: #fde4ca;
  border-left-color: #d79a3a;
}

.stay-booking.purple {
  background: #e8def7;
  border-left-color: #8668c5;
}

.stay-booking strong {
  font-size: 11px;
  line-height: 1.15;
  padding-right: 18px;
}

.stay-booking span {
  font-size: 10px;
  line-height: 1.15;
  margin-top: 3px;
}

.debt-mark {
  font-size: 9px;
  padding: 1px 3px;
  right: 4px;
  top: 4px;
}

.stay-pagination {
  align-items: center;
  background: #fff;
  border-top: 1px solid var(--line);
  color: #667085;
  display: none;
  font-size: 12px;
  justify-content: space-between;
  min-height: 44px;
  padding: 6px 14px;
}

.stay-pagination.active {
  display: flex;
}

.stay-page-controls {
  align-items: center;
  display: flex;
  gap: 6px;
}

.stay-page-controls button {
  align-items: center;
  background: #fff;
  border: 1px solid #d7dee8;
  border-radius: 4px;
  color: #536074;
  cursor: pointer;
  display: inline-flex;
  height: 28px;
  justify-content: center;
  width: 28px;
}

.stay-page-controls button:disabled {
  color: #c3cbd6;
  cursor: not-allowed;
}

.stay-page-controls svg {
  height: 14px;
  width: 14px;
}

.stay-page-controls strong {
  color: #344054;
  font-size: 12px;
}

.stay-refresh-note::before {
  background: var(--green);
  border-radius: 50%;
  content: "";
  display: inline-block;
  height: 6px;
  margin-right: 6px;
  width: 6px;
}

.order-filter-panel,
.customers-toolbar,
.settings-header {
  border-color: var(--line);
}

.table-wrap,
.stats-detail-table-wrap,
.single-day-table-wrap {
  border: 1px solid var(--line);
  border-radius: 5px;
}

table th,
table td {
  border-color: var(--line);
  font-size: 12px;
  padding: 9px 10px;
}

table th {
  background: #f7f9fc;
  color: #667085;
}

.stats-layout {
  min-height: calc(100vh - 56px);
}

.stats-tabs button {
  font-size: 14px;
  height: 48px;
}

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

.revenue-summary-grid {
  gap: 10px;
}

.revenue-summary-card {
  border: 1px solid var(--line);
  border-radius: 5px;
  min-height: 118px;
  padding: 16px;
}

.settings-layout,
.customers-page.active {
  max-width: 1600px;
  padding: 18px;
}

.settings-card {
  margin-bottom: 12px;
  padding: 16px;
}

.settings-header {
  margin-bottom: 12px;
}

.settings-alert {
  border-radius: 4px;
  margin-bottom: 12px;
}

.login-gate {
  background: #f3f6fb;
  padding: 36px;
}

.login-gate.active {
  gap: 48px;
  grid-template-columns: minmax(320px, 1fr) minmax(340px, 420px);
}

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

.login-gate-panel {
  border-radius: 7px;
  box-shadow: 0 18px 40px rgba(25, 45, 73, 0.09);
  gap: 16px;
  padding: 26px;
}

.stay-booking.is-draggable {
  cursor: grab;
}

.stay-booking.is-draggable:active {
  cursor: grabbing;
}

.stay-booking.dragging {
  opacity: 0.42;
}

.stay-drag-ghost {
  box-shadow: 0 10px 24px rgba(31, 54, 88, 0.2);
  opacity: 0.92 !important;
  pointer-events: none;
  position: fixed !important;
  transform: rotate(1deg);
  z-index: 120;
}

.stay-drag-active,
.stay-drag-active * {
  cursor: grabbing !important;
  user-select: none !important;
}

.calendar-board.drag-scroll-up::before,
.calendar-board.drag-scroll-down::after {
  content: "";
  display: block;
  height: 24px;
  left: 0;
  pointer-events: none;
  position: sticky;
  width: 100%;
  z-index: 18;
}

.calendar-board.drag-scroll-up::before {
  background: linear-gradient(to bottom, rgba(20, 84, 255, 0.16), rgba(20, 84, 255, 0));
  margin-bottom: -24px;
  top: 94px;
}

.calendar-board.drag-scroll-down::after {
  background: linear-gradient(to top, rgba(20, 84, 255, 0.16), rgba(20, 84, 255, 0));
  bottom: 0;
  margin-top: -24px;
}

.calendar-cell.drop-target {
  background: #eaf2ff !important;
  box-shadow: inset 0 0 0 2px var(--blue);
}

.calendar-cell.drop-target::after {
  color: var(--blue);
  content: "换到这里";
  font-size: 10px;
  font-weight: 750;
  inset: 0;
  position: absolute;
  align-items: center;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.calendar-cell.closed-cell,
.calendar-cell.unavailable-cell {
  background-image: repeating-linear-gradient(135deg, transparent 0 7px, rgba(120, 132, 150, 0.06) 7px 9px);
}

.calendar-cell.held-cell {
  background: #fff8e7;
  background-image: repeating-linear-gradient(135deg, transparent 0 7px, rgba(191, 137, 0, 0.07) 7px 9px);
}

.calendar-cell.mutation-pending {
  cursor: wait;
  overflow: hidden;
}

.calendar-cell.mutation-pending::after {
  align-items: center;
  background: rgba(241, 246, 255, 0.92);
  color: #1658c9;
  content: attr(data-mutation-label);
  display: flex;
  font-size: 11px;
  font-weight: 750;
  inset: 0;
  justify-content: center;
  pointer-events: none;
  position: absolute;
  z-index: 4;
}

.calendar-cell-state {
  align-items: center;
  background: #f4f6f9;
  border: 1px solid #d8dee8;
  border-radius: 3px;
  color: #7a8494;
  display: inline-flex;
  font-size: 10px;
  font-weight: 750;
  height: 22px;
  justify-content: center;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 22px;
}

.calendar-cell-state.held {
  background: #fff3cf;
  border-color: #e7c86f;
  color: #8a6400;
}

.stay-drawer-backdrop {
  background: rgba(24, 33, 47, 0.2);
  inset: 0;
  position: fixed;
  z-index: 80;
}

.stay-order-drawer {
  background: #fff;
  bottom: 0;
  box-shadow: -18px 0 44px rgba(25, 38, 58, 0.14);
  display: flex;
  flex-direction: column;
  max-width: 100vw;
  position: fixed;
  right: 0;
  top: 0;
  transform: translateX(104%);
  transition: transform 180ms ease;
  width: min(760px, calc(100vw - 280px));
  z-index: 81;
}

.stay-order-drawer.active {
  transform: translateX(0);
}

.stay-drawer-header {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex: 0 0 58px;
  justify-content: space-between;
  padding: 0 22px;
}

.stay-drawer-header > div {
  align-items: stretch;
  display: flex;
  height: 100%;
  gap: 28px;
}

.stay-drawer-header [role="tab"] {
  background: transparent;
  border: 0;
  border-bottom: 3px solid transparent;
  color: #4b5565;
  cursor: pointer;
  font-size: 15px;
  font-weight: 750;
  padding: 0 2px;
}

.stay-drawer-header [role="tab"].active {
  border-bottom-color: var(--blue);
  color: var(--blue);
}

.stay-drawer-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 22px 24px 92px;
}

.stay-drawer-identity {
  align-items: flex-start;
  display: flex;
  justify-content: space-between;
}

.stay-drawer-identity > div {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.stay-drawer-identity h2 {
  font-size: 20px;
  line-height: 1.3;
  margin: 0;
}

.stay-channel-pill {
  align-items: center;
  border: 1px solid #d9dfe8;
  border-radius: 4px;
  color: #2f6dcc;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 700;
  gap: 7px;
  min-height: 32px;
  padding: 0 10px;
}

.stay-channel-pill svg {
  fill: #2f7de1;
  height: 9px;
  width: 9px;
}

.stay-drawer-metrics {
  border-bottom: 1px dashed #dce2ea;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 22px;
  padding-bottom: 22px;
}

.stay-drawer-metrics div {
  min-width: 0;
}

.stay-drawer-metrics span,
.stay-drawer-metrics strong {
  display: block;
}

.stay-drawer-metrics span {
  color: #6d7685;
  font-size: 13px;
  margin-bottom: 8px;
}

.stay-drawer-metrics strong {
  color: #1557c0;
  font-size: 21px;
}

.stay-drawer-metrics .danger {
  text-align: right;
}

.stay-drawer-metrics .danger strong {
  color: #e53d3d;
}

.stay-drawer-section {
  border-bottom: 1px dashed #dce2ea;
  padding: 22px 0;
}

.stay-drawer-section-head {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 12px;
}

.stay-drawer-section-head strong {
  font-size: 14px;
}

.stay-drawer-section-head span {
  color: #5d6674;
  font-size: 13px;
}

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

.stay-room-lines article {
  align-items: center;
  border: 1px solid #dfe4eb;
  border-radius: 4px;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1.45fr) minmax(100px, 0.8fr) auto auto;
  min-height: 68px;
  padding: 10px 12px;
}

.stay-room-lines article > div strong,
.stay-room-lines article > div span {
  display: block;
}

.stay-room-lines article > div span,
.stay-room-lines article > span {
  color: #7a8494;
  font-size: 12px;
  margin-top: 5px;
}

.stay-drawer-ledger > button {
  align-items: center;
  background: #fff;
  border: 0;
  border-bottom: 1px solid #edf0f4;
  color: #2f3744;
  cursor: pointer;
  display: flex;
  font-size: 13px;
  justify-content: space-between;
  min-height: 56px;
  padding: 0 6px;
  text-align: left;
  width: 100%;
}

.stay-drawer-ledger > button span,
.stay-drawer-ledger > button strong {
  align-items: center;
  display: inline-flex;
  gap: 6px;
}

.stay-drawer-ledger > button strong {
  color: var(--blue);
}

.stay-drawer-ledger svg {
  height: 15px;
  width: 15px;
}

.stay-drawer-composer {
  background: #f7f9fc;
  border: 1px solid #e0e6ef;
  border-radius: 5px;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 10px;
  padding: 12px;
}

.stay-drawer-composer label,
.stay-cell-reservation label {
  display: grid;
  gap: 5px;
}

.stay-drawer-composer label.wide {
  grid-column: 1 / -1;
}

.stay-drawer-composer label span,
.stay-cell-reservation label span {
  color: #667085;
  font-size: 11px;
  font-weight: 700;
}

.stay-drawer-composer input,
.stay-drawer-composer select,
.stay-cell-reservation input,
.stay-cell-reservation select {
  background: #fff;
  border: 1px solid #d5dce6;
  border-radius: 4px;
  color: #273142;
  font: inherit;
  height: 36px;
  min-width: 0;
  padding: 0 9px;
  width: 100%;
}

.stay-drawer-composer > div {
  display: flex;
  gap: 8px;
  grid-column: 1 / -1;
  justify-content: flex-end;
}

.stay-drawer-facts {
  padding: 22px 0;
}

.stay-drawer-facts dl {
  display: grid;
  gap: 12px 14px;
  grid-template-columns: 92px minmax(0, 1fr);
  margin: 0;
}

.stay-drawer-facts dt {
  color: #6d7685;
  font-size: 13px;
}

.stay-drawer-facts dd {
  color: #303846;
  font-size: 13px;
  margin: 0;
  overflow-wrap: anywhere;
}

.stay-drawer-mini-list {
  border-top: 1px solid #edf0f4;
  display: grid;
  gap: 7px;
  margin-top: 16px;
  padding-top: 14px;
}

.stay-drawer-mini-list span {
  color: #596273;
  font-size: 12px;
}

.stay-drawer-footer {
  align-items: center;
  background: #fff;
  border-top: 1px solid var(--line);
  bottom: 0;
  display: flex;
  gap: 10px;
  min-height: 68px;
  padding: 10px 24px;
  position: absolute;
  width: 100%;
}

.stay-drawer-footer > button {
  align-items: center;
  display: inline-flex;
  gap: 6px;
  height: 40px;
}

.stay-drawer-footer > .primary-action {
  margin-left: auto;
}

.stay-drawer-more {
  position: relative;
}

.stay-drawer-more summary {
  align-items: center;
  border: 1px solid #d5dce6;
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  font-size: 13px;
  font-weight: 700;
  gap: 6px;
  height: 40px;
  list-style: none;
  padding: 0 12px;
}

.stay-drawer-more summary::-webkit-details-marker {
  display: none;
}

.stay-drawer-more summary svg {
  height: 14px;
  width: 14px;
}

.stay-drawer-more > div {
  background: #fff;
  border: 1px solid #d8dee8;
  border-radius: 4px;
  bottom: 46px;
  box-shadow: 0 10px 28px rgba(30, 43, 62, 0.14);
  display: grid;
  left: 0;
  min-width: 160px;
  padding: 5px;
  position: absolute;
}

.stay-drawer-more > div button {
  background: #fff;
  border: 0;
  border-radius: 3px;
  cursor: pointer;
  font-size: 12px;
  padding: 9px 10px;
  text-align: left;
}

.stay-drawer-more > div button:hover {
  background: #f1f5fb;
}

.stay-cell-popover {
  background: #fff;
  border: 1px solid #dce2ea;
  border-radius: 5px;
  box-shadow: 0 14px 38px rgba(25, 38, 58, 0.2);
  max-height: calc(100vh - 16px);
  overflow-y: auto;
  padding: 12px;
  position: fixed;
  z-index: 90;
}

.stay-cell-popover-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.stay-cell-popover-head strong {
  color: #2f3743;
  font-size: 15px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stay-cell-date {
  color: #7a8494;
  font-size: 12px;
  margin-bottom: 12px;
}

.stay-cell-primary {
  background: #1658c9;
  border: 0;
  border-radius: 3px;
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 750;
  height: 42px;
  width: 100%;
}

.stay-cell-primary:disabled,
.stay-cell-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.stay-cell-actions {
  display: grid;
  gap: 7px;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 8px;
}

.stay-cell-actions.compact {
  grid-template-columns: repeat(2, 1fr);
}

.stay-cell-actions button,
.stay-cell-back {
  background: #fff;
  border: 1px solid #d8dee8;
  border-radius: 3px;
  color: #404957;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  height: 36px;
}

.stay-cell-reservation {
  display: grid;
  gap: 9px;
}

.stay-cell-form-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stay-cell-form-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 2px;
}

.stay-cell-log-list {
  display: grid;
  gap: 8px;
  margin: 10px 0;
  max-height: 230px;
  overflow-y: auto;
}

.stay-cell-log-list > div:not(.empty-note) {
  border-bottom: 1px solid #edf0f4;
  display: grid;
  gap: 3px;
  padding-bottom: 7px;
}

.stay-cell-log-list strong {
  font-size: 12px;
}

.stay-cell-log-list span {
  color: #697386;
  font-size: 11px;
  overflow-wrap: anywhere;
}

.stay-cell-back {
  width: 100%;
}

@media print {
  body > *:not(.stay-order-drawer) {
    display: none !important;
  }

  .stay-order-drawer {
    box-shadow: none;
    position: static;
    transform: none;
    width: 100%;
  }

  .stay-drawer-header [data-close-stay-drawer],
  .stay-drawer-footer {
    display: none !important;
  }
}

@media (max-width: 1180px) and (min-width: 901px) {
  .nav-tabs {
    gap: 10px;
    justify-content: flex-start;
  }

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

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

  .stay-rail-item {
    height: 54px;
  }

  .ota-config-row {
    grid-template-columns: 130px minmax(0, 1fr);
  }

  .ota-config-actions {
    grid-column: 1 / -1;
  }
}

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

  .login-gate.active {
    align-content: center;
    gap: 24px;
    grid-template-columns: minmax(0, 1fr);
  }

  .login-gate-brand,
  .login-gate-panel {
    min-width: 0;
    width: 100%;
  }

  .login-gate-panel {
    padding: 22px;
  }

  .stay-order-drawer {
    width: 100vw;
  }

  .stay-drawer-scroll {
    padding: 18px 16px 88px;
  }

  .stay-drawer-header,
  .stay-drawer-footer {
    padding-left: 14px;
    padding-right: 14px;
  }

  .stay-room-lines article {
    align-items: start;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .stay-room-lines article > span {
    grid-column: 1 / 2;
  }

  .stay-drawer-section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .stay-drawer-metrics strong {
    font-size: 17px;
  }

  .stay-drawer-composer,
  .stay-cell-form-grid {
    grid-template-columns: 1fr;
  }

  .topbar {
    gap: 4px;
    grid-template-columns: 1fr;
    padding: 8px 12px 0;
  }

  .brand-mark {
    height: 32px;
    width: 32px;
  }

  .nav-tab {
    height: 40px;
  }

  #page-stay.active,
  #page-stats.active {
    margin: -12px;
  }

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

  .stay-rail {
    display: none;
  }

  .stay-sidebar-head,
  .stay-side-group-title {
    display: none;
  }

  .stay-sidebar {
    padding: 8px 10px;
  }

  .stay-side-item {
    height: 34px;
  }

  .stay-toolbar {
    min-height: 0;
    padding: 10px;
  }

  .calendar-board {
    height: calc(100vh - 224px);
    margin: 0;
    max-width: 100%;
    min-height: 480px;
  }

  .stay-pagination {
    gap: 8px;
    overflow-x: auto;
    padding: 6px 10px;
    white-space: nowrap;
  }

  .stay-refresh-note {
    display: none;
  }

  .ota-config-row,
  .ota-config-fields {
    grid-template-columns: 1fr;
  }
}

/* Finance and daily operations */
.settings-shortcut {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 4px;
  color: #566176;
  height: 34px;
  width: 34px;
}

.settings-shortcut:hover,
.settings-shortcut.active {
  background: #eef3ff;
  border-color: #d7e1f5;
  color: var(--blue);
}

.operations-page-head {
  align-items: flex-end;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 12px;
  padding: 16px 18px;
}

.operations-page-head h1 {
  font-size: 22px;
  margin: 4px 0 0;
}

.operations-page-actions {
  align-items: flex-end;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.operations-page-actions label,
.operations-form label,
.meter-reading label,
.consumable-entry label,
.operations-textarea-label {
  color: #667184;
  display: flex;
  flex-direction: column;
  font-size: 11px;
  font-weight: 750;
  gap: 5px;
}

.operations-page-actions input {
  height: 34px;
}

.operations-page-actions .ghost-action {
  align-items: center;
  display: inline-flex;
  gap: 6px;
}

.operations-page-actions svg,
.operations-form-actions svg,
.operation-submit-bar svg {
  height: 15px;
  width: 15px;
}

.finance-kpi-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(7, minmax(118px, 1fr));
  margin-bottom: 8px;
}

.finance-kpi-grid article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 5px;
  display: flex;
  flex-direction: column;
  min-height: 104px;
  min-width: 0;
  padding: 13px;
}

.finance-kpi-grid span {
  color: #6e788a;
  font-size: 12px;
  font-weight: 750;
}

.finance-kpi-grid strong {
  color: #182132;
  font-size: 19px;
  line-height: 1.2;
  margin: 12px 0 9px;
  overflow-wrap: anywhere;
}

.finance-kpi-grid small {
  color: #8a93a3;
  font-size: 10px;
  line-height: 1.4;
  margin-top: auto;
}

.finance-data-boundary {
  align-items: center;
  background: #edf6f2;
  border: 1px solid #d2e8df;
  border-radius: 5px;
  color: #336a59;
  display: flex;
  flex-wrap: wrap;
  font-size: 11px;
  font-weight: 700;
  gap: 8px 18px;
  margin-bottom: 12px;
  padding: 9px 12px;
}

.finance-operations-layout {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(320px, 0.88fr) minmax(480px, 1.4fr);
  margin-bottom: 12px;
  min-width: 0;
}

.operations-section {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  min-width: 0;
  padding: 16px;
}

.operations-section-head {
  align-items: flex-start;
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
}

.operations-section-head h2 {
  color: #202a3a;
  font-size: 16px;
  margin: 0;
}

.operations-section-head p {
  color: #7a8496;
  font-size: 11px;
  line-height: 1.5;
  margin: 4px 0 0;
}

.operations-form {
  display: grid;
  gap: 11px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.operations-form input,
.operations-form select {
  height: 36px;
  min-width: 0;
  width: 100%;
}

.operations-form-wide {
  grid-column: 1 / -1;
}

.operations-form-actions {
  align-items: center;
  display: flex;
  justify-content: flex-end;
}

.operations-form-actions button {
  align-items: center;
  display: inline-flex;
  gap: 6px;
}

.finance-ledger-table {
  min-width: 0;
  overflow-x: auto;
}

.finance-ledger-head,
.finance-ledger-row {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: 96px 58px minmax(110px, 1fr) 92px 104px 42px;
  min-width: 590px;
  padding: 9px 10px;
}

.finance-ledger-head {
  background: #f4f6f9;
  color: #687386;
  font-size: 11px;
  font-weight: 800;
}

.finance-ledger-row {
  border-bottom: 1px solid #edf0f4;
  color: #445064;
  font-size: 12px;
}

.finance-ledger-row > strong {
  color: #202938;
  text-align: right;
}

.finance-ledger-row .income {
  color: #16805f;
  font-weight: 800;
}

.finance-ledger-row .expense {
  color: #d14d5c;
  font-weight: 800;
}

.danger-icon {
  background: transparent;
  border: 0;
  color: #c15360;
  height: 30px;
  width: 30px;
}

.fixed-cost-section {
  margin-bottom: 18px;
}

.fixed-cost-form {
  align-items: end;
  grid-template-columns: repeat(7, minmax(100px, 1fr));
}

.fixed-cost-list {
  border-top: 1px solid #edf0f4;
  margin-top: 14px;
}

.fixed-cost-row {
  align-items: center;
  border-bottom: 1px solid #edf0f4;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(180px, 1fr) 150px 64px 36px;
  padding: 11px 2px;
}

.fixed-cost-row > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.fixed-cost-row span {
  color: #7b8596;
  font-size: 11px;
}

.fixed-cost-row > strong {
  font-size: 13px;
}

.status-toggle {
  background: #f1f3f6;
  border: 1px solid #d9dfe8;
  border-radius: 4px;
  color: #6c7688;
  font-size: 11px;
  font-weight: 800;
  height: 30px;
}

.status-toggle.on {
  background: #eaf7f1;
  border-color: #cae8dc;
  color: #18805f;
}

.operation-status {
  background: #f1f3f6;
  border: 1px solid #dce1e8;
  border-radius: 4px;
  color: #667184;
  display: inline-flex;
  font-size: 11px;
  font-weight: 800;
  padding: 7px 9px;
}

.operation-status.status-submitted {
  background: #fff5de;
  border-color: #f1dfb0;
  color: #996715;
}

.operation-status.status-confirmed {
  background: #eaf7f1;
  border-color: #cae8dc;
  color: #18805f;
}

.operations-report-layout {
  grid-template-columns: minmax(360px, 1fr) minmax(420px, 1fr);
}

.operation-room-checklist {
  display: grid;
  gap: 7px;
  grid-template-columns: repeat(auto-fill, minmax(106px, 1fr));
  max-height: 260px;
  overflow: auto;
}

.operation-room-checklist label {
  background: #f7f8fa;
  border: 1px solid #e0e5ed;
  border-radius: 4px;
  cursor: pointer;
  display: grid;
  gap: 2px;
  grid-template-columns: 18px minmax(0, 1fr);
  min-height: 50px;
  padding: 7px;
}

.operation-room-checklist label.selected {
  background: #eef3ff;
  border-color: #9bb7ff;
}

.operation-room-checklist input {
  grid-row: 1 / 3;
  margin: 3px 0 0;
}

.operation-room-checklist strong {
  font-size: 13px;
}

.operation-room-checklist span {
  color: #7a8495;
  font-size: 9px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.consumable-entry-grid,
.meter-reading-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.consumable-entry,
.meter-reading {
  background: #f8f9fb;
  border: 1px solid #e2e7ee;
  border-radius: 5px;
  display: grid;
  gap: 9px;
  min-width: 0;
  padding: 11px;
}

.consumable-entry input,
.meter-reading input {
  height: 34px;
  min-width: 0;
  width: 100%;
}

.energy-section {
  margin-bottom: 12px;
}

.operation-energy-summary {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 10px;
}

.operation-energy-summary article {
  border-left: 3px solid var(--blue);
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-height: 70px;
  padding: 8px 10px;
}

.operation-energy-summary span,
.operation-energy-summary small {
  color: #737e90;
  font-size: 10px;
}

.operation-energy-summary strong {
  font-size: 16px;
}

.operation-checkin-list {
  display: grid;
  gap: 1px;
  margin-bottom: 12px;
  max-height: 180px;
  overflow: auto;
}

.operation-checkin-list > div:not(.empty-note) {
  align-items: center;
  background: #f7f8fa;
  display: grid;
  font-size: 11px;
  gap: 8px;
  grid-template-columns: 54px 72px minmax(0, 1fr);
  padding: 8px 10px;
}

.operations-textarea-label textarea,
.operations-note {
  min-height: 118px;
  resize: vertical;
  width: 100%;
}

.operation-submit-bar {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  bottom: 8px;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 12px;
  padding: 10px 14px;
  position: sticky;
  z-index: 8;
}

.operation-submit-bar > span {
  color: #7b8596;
  font-size: 11px;
}

.operation-submit-bar > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.operation-submit-bar button {
  align-items: center;
  display: inline-flex;
  gap: 6px;
}

.operation-submit-bar button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.operation-history-section {
  margin-bottom: 18px;
}

.operation-history {
  display: grid;
  gap: 1px;
}

.operation-history > button {
  align-items: center;
  background: #fff;
  border: 0;
  border-bottom: 1px solid #edf0f4;
  color: #475368;
  cursor: pointer;
  display: grid;
  font-size: 11px;
  gap: 12px;
  grid-template-columns: 110px minmax(100px, 1fr) minmax(100px, 1fr) 72px;
  min-height: 42px;
  padding: 6px 8px;
  text-align: left;
}

.operation-history > button:hover {
  background: #f7f9fc;
}

.stats-floor-energy-list {
  display: grid;
  gap: 12px;
}

.stats-floor-energy-list article {
  align-items: center;
  border-bottom: 1px solid #edf0f4;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(130px, 0.8fr) minmax(120px, 1.6fr) 110px minmax(140px, 1fr);
  min-height: 56px;
  padding: 8px 0;
}

.stats-floor-energy-list article:last-child {
  border-bottom: 0;
}

.stats-floor-energy-list article > div:first-child {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.stats-floor-energy-list article > div:first-child span,
.stats-floor-energy-list article > span {
  color: #778196;
  font-size: 11px;
}

.stats-floor-energy-list article > strong {
  color: #202938;
  font-size: 14px;
  text-align: right;
}

.stats-floor-energy-bar {
  background: #e9edf4;
  border-radius: 2px;
  height: 7px;
  overflow: hidden;
}

.stats-floor-energy-bar i {
  background: #1f5eff;
  display: block;
  height: 100%;
}

@media (max-width: 1280px) {
  .finance-kpi-grid {
    grid-template-columns: repeat(4, minmax(130px, 1fr));
  }

  .fixed-cost-form {
    grid-template-columns: repeat(4, minmax(120px, 1fr));
  }
}

@media (max-width: 980px) {
  .finance-operations-layout,
  .operations-report-layout {
    grid-template-columns: 1fr;
  }

  .finance-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .operations-page-head {
    align-items: stretch;
    flex-direction: column;
  }

  .operations-page-actions {
    justify-content: flex-start;
  }

  .fixed-cost-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .finance-kpi-grid,
  .operations-form,
  .fixed-cost-form,
  .consumable-entry-grid,
  .meter-reading-grid,
  .operation-energy-summary {
    grid-template-columns: 1fr;
  }

  .operations-form-wide {
    grid-column: auto;
  }

  .operations-page-actions label {
    flex: 1 1 132px;
  }

  .operations-page-actions input {
    width: 100%;
  }

  .fixed-cost-row {
    grid-template-columns: minmax(0, 1fr) auto auto;
  }

  .fixed-cost-row > strong {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .operation-submit-bar {
    align-items: stretch;
    flex-direction: column;
    position: static;
  }

  .operation-submit-bar > div {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .operation-history > button {
    grid-template-columns: 1fr 1fr;
  }

  .stats-floor-energy-list article {
    grid-template-columns: 90px minmax(100px, 1fr) 94px;
  }

  .stats-floor-energy-list article > span {
    grid-column: 1 / -1;
  }
}

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

.order-page-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.manual-order-dialog {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(18, 32, 51, 0.2);
  color: var(--text);
  margin: auto;
  max-height: min(88vh, 820px);
  max-width: min(920px, calc(100vw - 32px));
  overflow: auto;
  padding: 0;
  width: 920px;
}

.manual-order-dialog::backdrop {
  background: rgba(18, 32, 51, 0.42);
}

.manual-order-dialog form {
  display: grid;
  gap: 20px;
  padding: 24px;
}

.manual-order-head,
.manual-stay-head,
.manual-order-footer {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.manual-order-head h2,
.manual-order-head p {
  margin: 0;
}

.manual-order-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.manual-order-grid label,
.manual-stay-row label {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.manual-order-grid label > span,
.manual-stay-row label > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

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

.manual-order-grid input,
.manual-order-grid select,
.manual-stay-row input,
.manual-stay-row select {
  border: 1px solid var(--line);
  border-radius: 4px;
  box-sizing: border-box;
  color: var(--text);
  font: inherit;
  height: 40px;
  min-width: 0;
  padding: 0 10px;
  width: 100%;
}

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

.manual-stay-row {
  align-items: end;
  background: var(--surface-muted);
  border: 1px solid var(--line);
  border-radius: 6px;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(120px, 1fr)) repeat(2, 140px) minmax(140px, 0.8fr) 36px;
  padding: 12px;
}

.manual-stay-row .icon-button {
  height: 40px;
  width: 36px;
}

.manual-order-footer {
  border-top: 1px solid var(--line);
  gap: 20px;
  padding-top: 18px;
}

.manual-order-footer > div:first-child {
  display: grid;
  gap: 3px;
}

.manual-order-footer strong {
  color: var(--blue-strong);
  font-size: 24px;
}

.manual-order-footer small,
.owner-bootstrap-panel p {
  color: var(--muted);
}

.manual-order-footer > div:last-child {
  display: flex;
  gap: 10px;
}

.owner-bootstrap-panel {
  background: var(--blue-soft);
  border: 1px solid #cddaff;
  border-radius: 6px;
  display: grid;
  gap: 12px;
  margin-top: 16px;
  padding: 16px;
}

.owner-bootstrap-panel p {
  margin: 0;
}

.settlement-entry-form {
  background: var(--surface-muted);
  border: 1px solid var(--line);
  border-radius: 6px;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 18px;
  padding: 16px;
}

.settlement-entry-form label {
  display: grid;
  gap: 6px;
}

.settlement-entry-form .wide,
.settlement-entry-form .order-detail-actions {
  grid-column: 1 / -1;
}

@media (max-width: 820px) {
  .manual-order-dialog form {
    padding: 18px;
  }

  .manual-order-grid,
  .settlement-entry-form {
    grid-template-columns: 1fr 1fr;
  }

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

  .manual-stay-row .icon-button {
    justify-self: end;
  }
}

@media (max-width: 560px) {
  .manual-order-dialog {
    max-height: 94vh;
    max-width: calc(100vw - 16px);
  }

  .manual-order-grid,
  .settlement-entry-form,
  .manual-stay-row {
    grid-template-columns: 1fr;
  }

  .manual-order-grid .wide {
    grid-column: auto;
  }

  .manual-order-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .manual-order-footer > div:last-child > button {
    flex: 1;
  }
}
