:root {
  font-family: Inter, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: #243334;
  background: #f5f7f7;
  font-synthesis: none;
  --green: #147d70;
  --muted: #778587;
  --line: #e1e7e6;
}

/* Work orders share the order/finance workspace and keep their own status colors. */
.work-filters { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; padding: 0 24px 20px; font-size: 13px; color: var(--muted); }
.work-filters label { display: flex; align-items: center; gap: 8px; }
.work-filters select { padding: 8px 12px; border: 1px solid var(--line); border-radius: 6px; color: #243334; background: #fff; }
.work-overdue-filter input { accent-color: var(--green); }
.work-panel .toolbar { flex-wrap: wrap; }
.work-panel .toolbar .filters { flex-wrap: wrap; }
.work-table .work-title { min-width: 220px; max-width: 340px; white-space: normal; overflow-wrap: anywhere; }
.work-title .text-button { text-align: left; line-height: 1.6; }
.work-title small { font-size: 11px; }
.work-table .actions { flex-wrap: nowrap; }
.work-table .button { padding: 6px 10px; font-size: 12px; }
.badge.work-pending { background: #fff3da; color: #906d22; }
.badge.work-in_progress { background: #e6f1fc; color: #356a9c; }
.badge.work-completed { background: #e1f3eb; color: #147d70; }
.badge.work-cancelled { background: #edf0f0; color: #778587; }
.work-priority { font-size: 12px; }
.work-priority.priority-3 { color: #ab7027; }
.work-priority.priority-4, .work-overdue, .work-overdue small { color: #b04c42; }
.work-detail h3 { font-size: 15px; margin: 24px 0 12px; overflow-wrap: anywhere; }
.work-detail > h3:first-child { font-size: 20px; margin-top: 0; }
.work-text { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; line-height: 1.8; }
.work-resolution { padding: 14px 18px; border-radius: 8px; background: #f0f8f4; }
.work-history-heading { display: flex; align-items: center; justify-content: space-between; margin-top: 24px; }
.work-history-heading h3 { margin: 0; }
.work-timeline { list-style: none; margin: 18px 0 0 6px; padding: 0 0 0 20px; border-left: 2px solid var(--line); }
.work-timeline li { position: relative; padding: 0 0 22px; font-size: 13px; }
.work-timeline li::before { content: ""; position: absolute; left: -26px; top: 3px; height: 10px; width: 10px; background: #72a89b; border: 2px solid #fff; border-radius: 50%; }
.work-timeline li > div { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.work-timeline small { color: var(--muted); }
.work-timeline p { margin: 8px 0 0; }
@media (max-width: 750px) {
  .work-filters { padding: 0 16px 16px; gap: 14px; }
  .work-detail .detail-grid { grid-template-columns: 1fr; }
}

/* Channel accounts and publication history */
.channel-notice { display: flex; align-items: center; gap: 16px; padding: 18px 22px; margin: 22px 0; border: 1px solid #eadcb9; border-radius: 12px; background: #fffaf0; color: #725b2d; }
.channel-notice-icon { display: grid; place-items: center; width: 26px; height: 26px; flex-shrink: 0; border: 1px solid currentColor; border-radius: 50%; font-weight: 700; }
.channel-notice > div { flex: 1; }
.channel-notice p { margin: 6px 0 0; font-size: 13px; line-height: 1.7; }
.channel-content { display: flex; gap: 30px; align-items: center; padding: 22px; margin-bottom: 30px; }
.channel-content > div:first-child { flex: 1; }
.channel-content strong, .channel-content span { display: block; }
.channel-content strong { margin-top: 8px; font-size: 17px; overflow-wrap: anywhere; }
.channel-content-item span, .channel-eyebrow { font-size: 12px; color: var(--muted); }
.channel-content small { color: var(--muted); font-size: 12px; font-weight: 400; }
.channel-content-item { min-width: 95px; border-left: 1px solid var(--line); padding-left: 26px; }
.channel-section-heading { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin: 22px 0 16px; }
.channel-section-heading h2 { margin: 0; font-size: 17px; font-weight: 600; }
.channel-section-heading p { font-size: 12px; color: var(--muted); margin: 8px 0 0; }
.channel-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.channel-grid > .empty { grid-column: 1 / -1; }
.channel-card { min-width: 0; display: flex; flex-direction: column; padding: 22px; }
.channel-card-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.channel-identity { display: flex; align-items: center; gap: 12px; min-width: 0; }
.channel-logo { display: grid; place-items: center; flex-shrink: 0; width: 44px; height: 44px; border-radius: 13px; font-size: 22px; font-weight: 750; }
.channel-logo.meituan { background: #fff0b9; color: #7a5c08; }
.channel-logo.ctrip { background: #e4f1ff; color: #1e67bc; }
.channel-logo.fliggy { background: #fff0d7; color: #ba700e; }
.channel-logo.tongcheng { background: #e8f5df; color: #548031; }
.channel-logo.tujia { background: #fff0e8; color: #c86a38; }
.channel-logo.airbnb { background: #ffe8eb; color: #db4b62; }
.channel-identity h3 { margin: 0; font-size: 18px; }
.channel-identity p { margin: 6px 0 0; font-size: 11px; color: var(--muted); }
.channel-badge { display: inline-flex; align-items: center; flex-shrink: 0; padding: 5px 9px; border-radius: 6px; background: #f0f3f3; color: #768282; font-size: 11px; white-space: nowrap; }
.channel-badge.connected, .channel-badge.succeeded { color: #147d70; background: #e5f5ee; }
.channel-badge.pending, .channel-badge.queued, .channel-badge.retrying, .channel-badge.blocked { color: #997329; background: #fff5dc; }
.channel-badge.error, .channel-badge.failed { color: #ba4946; background: #feeeec; }
.channel-account { display: grid; gap: 14px; margin: 26px 0 23px; }
.channel-account > div { display: flex; justify-content: space-between; gap: 18px; font-size: 12px; }
.channel-account dt { color: var(--muted); flex-shrink: 0; }
.channel-account dd { margin: 0; text-align: right; overflow-wrap: anywhere; }
.channel-sync-line { display: flex; justify-content: space-between; gap: 8px; padding: 13px 0; border-top: 1px dashed var(--line); font-size: 11px; color: var(--muted); }
.channel-sync-line b { margin: 0 3px; font-weight: 400; }
.channel-sync-line .channel-auto-on { color: var(--green); }
.channel-card-error { font-size: 12px; line-height: 1.6; color: #ba4946; margin: 0 0 12px; }
.channel-card-footer { margin-top: auto; padding-top: 5px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.channel-card-footer .button { padding: 8px 12px; font-size: 12px; }
.channel-card-footer > span { font-size: 11px; color: var(--muted); }
.channel-history { margin-top: 28px; }
.channel-history .channel-section-heading { margin: 0; padding: 22px; border-bottom: 1px solid var(--line); }
.channel-history-empty { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 35px 20px; }
.channel-history-empty > span { background: #f0f5f3; color: #8aa99e; border-radius: 50%; padding: 9px 15px; font-size: 23px; margin-bottom: 12px; }
.channel-history-empty strong { font-size: 14px; font-weight: 500; }
.channel-history-empty p { font-size: 12px; color: var(--muted); line-height: 1.8; }
.channel-result { min-width: 180px; max-width: 350px; white-space: normal; overflow-wrap: anywhere; }
.channel-auto-setting { display: flex; gap: 10px; align-items: flex-start; margin-top: 22px; padding: 16px; border: 1px solid var(--line); border-radius: 10px; }
.channel-auto-setting input { margin: 3px 0; accent-color: var(--green); }
.channel-auto-setting strong { font-size: 14px; }
.channel-auto-setting small { display: block; font-size: 12px; margin-top: 7px; color: var(--muted); line-height: 1.7; }
.channel-preview-section { padding: 18px 0; border-top: 1px solid var(--line); }
.channel-preview-section h3 { margin: 0 0 15px; font-size: 15px; }
.channel-preview-section h3 small { color: var(--muted); margin-left: 8px; font-weight: 400; }
.channel-preview-section p { font-size: 13px; line-height: 1.7; }
.channel-preview-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; gap: 20px; font-size: 13px; }
.channel-preview-row small { display: block; margin-top: 6px; color: var(--muted); font-size: 11px; }
.channel-payload { margin: 20px 0; font-size: 12px; }
.channel-payload summary { color: var(--green); cursor: pointer; }
.channel-payload pre { max-height: 300px; overflow: auto; background: #f5f7f7; padding: 16px; white-space: pre-wrap; overflow-wrap: anywhere; }
.channel-blockers { background: #fff7e6; color: #8d6a22; padding: 14px; border-radius: 8px; font-size: 13px; line-height: 1.8; }
.channel-help ol { padding-left: 22px; }
.channel-help li { padding: 8px 0; }
.channel-help li p { font-size: 13px; line-height: 1.9; color: var(--muted); }
@media (max-width: 1250px) { .channel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 750px) {
  .channel-grid { grid-template-columns: 1fr; }
  .channel-content { flex-wrap: wrap; gap: 18px; }
  .channel-content > div:first-child { flex-basis: 100%; }
  .channel-content-item { padding-left: 0; border-left: 0; }
  .channel-notice { flex-wrap: wrap; }
  .channel-section-heading { flex-wrap: wrap; }
  .channel-card { padding: 18px; }
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #79b9af;
  outline-offset: 3px;
}
.topbar {
  min-height: 86px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 0 36px;
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 18px;
  font-weight: 700;
  white-space: nowrap;
}
.brand-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 42px;
  border-radius: 12px;
  background: #147d70;
  color: white;
  font: 26px Georgia, serif;
}
.brand small {
  display: block;
  margin-top: 5px;
  font-size: 8px;
  letter-spacing: 1.8px;
  color: var(--muted);
  font-weight: 500;
}
.topbar nav {
  display: flex;
  align-self: stretch;
  gap: 30px;
}
.topbar nav a {
  display: flex;
  align-items: center;
  font-size: 14px;
  color: #7a8686;
  border-bottom: 3px solid transparent;
  padding-top: 3px;
  white-space: nowrap;
}
.topbar nav a[aria-current] {
  color: var(--green);
  border-color: var(--green);
  font-weight: 650;
}
.top-actions {
  margin-left: auto;
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}
.hotel-switcher {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  padding: 5px 8px 5px 10px;
  border: 1px solid #dce5e3;
  border-radius: 8px;
  background: #f9fbfa;
  color: #7b8886;
}
.hotel-switcher span {
  font-size: 10px;
}
.hotel-switcher select {
  width: min(180px, 20vw);
  min-width: 100px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #34524d;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.hotel-switcher select:disabled {
  cursor: wait;
}
.page-settings .hotel-switcher {
  display: none;
}
.live-dot {
  width: 6px;
  height: 6px;
  background: #35a38d;
  border-radius: 50%;
}
main {
  max-width: 1600px;
  margin: auto;
  padding: 32px 36px 48px;
}
.heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  margin-bottom: 28px;
}
.eyebrow {
  color: var(--green);
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 700;
  margin-bottom: 8px;
}
h1 {
  font-size: 28px;
  letter-spacing: -0.7px;
  margin: 0 0 9px;
  font-weight: 650;
}
h2 {
  font-size: 17px;
  margin: 0;
}
p {
  line-height: 1.6;
}
p.sub {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}
.actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.button {
  border: 1px solid #d6e1df;
  background: #fff;
  color: #425957;
  padding: 10px 17px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 13px;
  white-space: nowrap;
}
.button:hover {
  background: #f0f6f5;
}
.button.primary {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
  box-shadow: 0 3px 8px #147d7014;
}
.button.primary:hover {
  background: #0f6a5f;
}
.button.danger {
  color: #b44b4b;
  border-color: #ecd2d2;
}
.text-button {
  border: 0;
  background: none;
  color: var(--green);
  padding: 6px;
  font-size: 12px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 26px;
}
.stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px 22px;
}
.stat:first-child {
  background: #edf6f3;
  border-color: #d5e8e2;
}
.stat-label {
  font-size: 12px;
  color: #6f8380;
  display: flex;
  justify-content: space-between;
}
.stat-value {
  font-size: 30px;
  font-weight: 620;
  margin: 14px 0 6px;
  letter-spacing: -0.8px;
  font-variant-numeric: tabular-nums;
}
.stat-note {
  font-size: 11px;
  color: #879592;
}
.rate-intro {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
}
.rate-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.rate-stat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  padding: 10px 16px;
}
.rate-stat + .rate-stat {
  border-left: 1px solid var(--line);
}
.rate-stat dt {
  color: #6f8380;
  font-size: 12px;
}
.rate-stat dd {
  margin: 0;
  color: var(--green);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.rate-stat dd span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}
.rate-plan-table th:first-child,
.rate-plan-table td:first-child {
  width: 44px;
  padding-right: 0;
}
.rate-panel input[type="checkbox"],
.rate-fieldset input[type="checkbox"] {
  accent-color: var(--green);
  width: 15px;
  height: 15px;
  cursor: pointer;
}
.rate-panel th small {
  display: block;
  margin-top: 5px;
  font-size: 10px;
  font-weight: normal;
  color: #97a39f;
}
.rate-value { font-size: 15px; font-weight: 600; }
.rate-weekend { color: #ab7a38; }
.rate-status {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  border-radius: 5px;
  padding: 5px 8px;
  font-size: 11px;
  color: #7b8582;
  background: #f0f2f1;
}
.rate-status::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.rate-status.active { color: #147d70; background: #edf7f3; }
.rate-status.scheduled { color: #a17d3d; background: #fcf5e8; }
.rate-action { padding: 6px 11px; font-size: 12px; }
.rate-calendar-toolbar { font-size: 12px; color: var(--muted); background: #fbfdfc; }
.rate-calendar-toolbar .hint { margin: 0; }
.rate-calendar { min-width: 880px; table-layout: fixed; }
.rate-calendar th:first-child,
.rate-calendar td:first-child { width: 210px; text-align: left; }
.rate-calendar td:first-child strong,
.rate-calendar td:first-child small { white-space: normal; overflow-wrap: anywhere; }
.rate-calendar th,
.rate-calendar td { text-align: center; padding: 14px 8px; border-right: 1px solid #eef1ef; }
.rate-calendar th.rate-today { color: var(--green); background: #edf7f3; }
.rate-weekend-cell { background: #fffdf8; }
.rate-day-price { border: 0; background: transparent; color: #425957; border-radius: 6px; width: 100%; padding: 8px 2px; font-size: 13px; font-variant-numeric: tabular-nums; }
.rate-day-price:hover { background: #edf6f3; }
.rate-day-price small { font-size: 10px; color: #9aa79f; }
.rate-day-price.overridden,
.rate-day-price.overridden small,
.rate-override-key { color: var(--green); }
.rate-unavailable { color: #aeb9b4; }
.rate-fieldset,
.rate-batch-fields { border: 0; padding: 0; margin: 0; min-width: 0; }
.rate-fieldset legend { padding: 0; margin-bottom: 10px; }
.rate-fieldset .hint { margin: 6px 0 0; }
.rate-weekdays { display: flex; flex-wrap: wrap; gap: 7px; }
.rate-weekdays label { display: flex; align-items: center; gap: 4px; padding: 7px; border: 1px solid var(--line); border-radius: 6px; cursor: pointer; }
.rate-weekdays label:has(input:checked) { background: #edf7f3; border-color: #b3d7ce; color: var(--green); }
.rate-weekdays input { margin: 0; }
.rate-plan-choices { max-height: 165px; overflow: auto; border: 1px solid var(--line); border-radius: 8px; }
.rate-plan-choices label { display: flex; gap: 10px; align-items: center; padding: 11px 12px; cursor: pointer; border-bottom: 1px solid #eef1ef; }
.rate-plan-choices label:last-child { border: 0; }
.rate-plan-choices small { display: block; margin-top: 5px; font-size: 10px; color: var(--muted); }
.rate-preview { border: 1px solid #d5e8e2; border-radius: 9px; background: #f6faf8; padding: 15px; margin-top: 18px; font-size: 12px; }
.rate-preview p { margin: 0; color: var(--muted); }
.rate-preview > strong { display: block; margin-bottom: 10px; color: var(--green); }
.rate-preview-list { max-height: 240px; overflow: auto; }
.rate-preview summary { cursor: pointer; padding: 10px 0; color: #425957; line-height: 1.5; }
.rate-preview summary span { color: var(--muted); margin-left: 8px; }
.rate-preview th,
.rate-preview td { padding: 8px 12px; }
.rate-preview .hint { margin-top: 10px; }
@media (max-width: 1200px) {
  .topbar { flex-wrap: wrap; column-gap: 24px; }
  .topbar nav { min-height: 64px; }
}
@media (max-width: 650px) {
  .rate-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rate-stat { padding: 9px 12px; }
  .rate-stat:nth-child(3) { border-left: 0; }
  .rate-stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .rate-panel .panel-footer { flex-direction: column; gap: 8px; }
  .rate-panel .filters { width: 100%; }
  .rate-panel input[type="search"] { width: 100%; }
  .rate-intro { margin-top: 0; }
  .topbar nav { overflow-x: auto; max-width: 100%; flex-shrink: 0; }
}
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.toolbar {
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.filters label {
  font-size: 12px;
  color: var(--muted);
}
.chip {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: white;
  color: #778482;
  padding: 7px 11px;
  font-size: 12px;
}
.chip.active {
  background: #edf6f3;
  border-color: #b3d7ce;
  color: var(--green);
}
input,
select,
textarea {
  background: #fff;
  color: #344b47;
  border: 1px solid #dbe3e0;
  border-radius: 7px;
  padding: 9px 11px;
  font-size: 13px;
  min-width: 0;
}
input[type="search"] {
  width: 205px;
  background: #fafcfb;
}
input[type="date"] {
  padding: 8px;
}
.room-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(188px, 1fr));
  gap: 14px;
  padding: 22px;
}
.room {
  background: white;
  border: 1px solid #dfe6e3;
  border-radius: 10px;
  padding: 17px;
  text-align: left;
  color: inherit;
  min-height: 157px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-top: 3px solid #91c7b8;
  transition: box-shadow 0.15s, transform 0.15s;
}
.room:hover {
  box-shadow: 0 5px 18px #17392d12;
  transform: translateY(-2px);
}
.room.occupied {
  border-top-color: #83a9cf;
  background: #f8fbff;
}
.room.reserved {
  border-top-color: #d8b373;
  background: #fffcf6;
}
.room.dirty {
  border-top-color: #c59282;
  background: #fdf9f7;
}
.room.maintenance {
  border-top-color: #a7aeb4;
  background: #fafafb;
}
.room-top {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  align-items: center;
}
.room-number {
  font-size: 24px;
  font-weight: 650;
  letter-spacing: -0.6px;
}
.badge {
  font-size: 10px;
  border-radius: 5px;
  padding: 4px 7px;
  background: #ecf5f0;
  color: #377e66;
  white-space: nowrap;
  display: inline-block;
}
.badge.occupied,
.badge.checked_in {
  color: #4e79aa;
  background: #eaf1fb;
}
.badge.reserved {
  color: #a17d3d;
  background: #f8eedc;
}
.badge.dirty {
  color: #aa725f;
  background: #f7e9e2;
}
.badge.maintenance,
.badge.cancelled,
.badge.checked_out {
  color: #85878a;
  background: #eff0f2;
}
.room-type {
  font-size: 12px;
  color: #7a8986;
}
.room-guest {
  font-size: 12px;
  color: #425d55;
  min-height: 17px;
}
.room-bottom {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #8c9894;
  margin-top: auto;
}
.room-bottom strong {
  font-weight: 550;
  color: #506962;
}
.legend {
  display: flex;
  gap: 18px;
  font-size: 11px;
  color: #81908a;
  padding: 0 22px 20px;
}
.legend span {
  display: flex;
  gap: 6px;
  align-items: center;
}
.legend i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #91c7b8;
}
.legend .blue {
  background: #83a9cf;
}
.legend .amber {
  background: #d8b373;
}
.legend .rose {
  background: #c59282;
}
.legend .gray {
  background: #a7aeb4;
}
.table-wrap {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  font-size: 12px;
  white-space: nowrap;
}
th {
  background: #fafcfb;
  color: #89958f;
  font-weight: 500;
  font-size: 11px;
  padding: 13px 20px;
  border-bottom: 1px solid var(--line);
}
td {
  padding: 17px 20px;
  border-bottom: 1px solid #eef1ef;
}
tbody tr:last-child td {
  border-bottom: 0;
}
tbody tr:hover {
  background: #fbfdfc;
}
td strong {
  font-weight: 600;
}
td small {
  display: block;
  font-size: 10px;
  color: #929d98;
  margin-top: 5px;
}
.money {
  font-variant-numeric: tabular-nums;
}
.receivable {
  color: #ae7640;
}
.paid {
  color: var(--green);
}
.empty {
  padding: 65px 24px;
  text-align: center;
  color: #8b9992;
  grid-column: 1/-1;
}
.empty strong {
  display: block;
  color: #526a60;
  font-size: 16px;
  margin-bottom: 9px;
}
.empty p {
  font-size: 13px;
  margin: 0 0 18px;
}
.panel-footer {
  border-top: 1px solid var(--line);
  padding: 13px 20px;
  font-size: 11px;
  color: #97a099;
  display: flex;
  justify-content: space-between;
}
.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 25px 0 15px;
}
.loading {
  padding: 120px 20px;
  text-align: center;
  color: #7e8b83;
}
.error-card,
.login-card {
  max-width: 440px;
  margin: 70px auto;
  padding: 32px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: white;
  text-align: center;
}
.login-card form {
  text-align: left;
  margin-top: 25px;
  display: grid;
  gap: 18px;
}
.login-card .button {
  width: 100%;
}
.error-card p {
  color: #8a7568;
  font-size: 13px;
}
dialog {
  border: 0;
  border-radius: 15px;
  padding: 0;
  width: min(580px, calc(100vw - 32px));
  max-height: 88vh;
  color: inherit;
  box-shadow: 0 25px 100px #12241d38;
}
dialog::backdrop {
  background: #162e2547;
  backdrop-filter: blur(3px);
}
.dialog-header {
  padding: 22px 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.dialog-header button {
  border: 0;
  background: none;
  color: #8d9891;
  font-size: 24px;
}
.dialog-body {
  padding: 24px 26px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  color: #677c70;
}
.field.wide {
  grid-column: 1/-1;
}
.field textarea {
  resize: vertical;
  min-height: 64px;
}
.dialog-footer {
  padding: 16px 26px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid var(--line);
}
.form-error {
  color: #ac4f45;
  font-size: 12px;
  line-height: 1.6;
  margin: 0 26px 16px;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
  font-size: 13px;
}
.detail-grid small {
  display: block;
  color: #8e9b93;
  font-size: 11px;
  margin-bottom: 6px;
}
.detail-summary {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  margin-top: 22px;
  font-size: 13px;
}
/* The 待收 figure carries its own arithmetic (应收 − 已收) on a second line, so the
   summary keeps the three figures visually separated instead of running together. */
.detail-summary strong {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  white-space: nowrap;
}
.detail-summary strong small {
  color: #95a098;
  font-weight: 400;
  font-size: 10px;
  margin-top: 4px;
}
.detail-notes {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: #7c8981;
  font-size: 12px;
}
/* The stay a room is hosting is why a clerk opens this dialog, so it reads as a
   card with its own actions instead of a grey line of text. */
.stay-card {
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid #cfe0dc;
  border-left: 4px solid var(--green);
  border-radius: 10px;
  background: #f2f8f6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.stay-info {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 12px;
}
.stay-info strong {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
}
.stay-info small {
  color: #6b7c76;
  font-size: 11px;
}
.stay-info .money {
  font-weight: 600;
}
.stay-card .actions {
  margin-left: auto;
}
.ledger-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.ledger-list li {
  padding: 13px 0;
  border-bottom: 1px solid #edf1ee;
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
.ledger-list small {
  display: block;
  color: #95a098;
  margin-top: 5px;
  font-size: 10px;
}
/* The signed ledger amount and the ledger it belongs to travel together, so a
   费用入账 line can never be read as a 收款 line of the same size. */
.entry-meta {
  display: block;
  font-size: 10px;
  color: #95a098;
  margin-top: 5px;
  white-space: nowrap;
}
.ledger-name {
  overflow-wrap: anywhere;
}
.ledger-amount {
  text-align: right;
  white-space: nowrap;
}
.ledger-list .ledger-amount .money {
  font-weight: 600;
  font-size: 13px;
}
.amount-head {
  text-align: right;
}
.balance-preview {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  background: #f8faf8;
  font-size: 12px;
}
.preview-line {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 5px 0;
  color: #7c8981;
}
.preview-line strong {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.preview-line span:last-child {
  margin-left: auto;
}
/* Shown where a signed amount would go while the field is still empty, so an
   un-entered entry never reads as a ¥0.00 adjustment. */
.preview-pending {
  margin-left: auto;
  color: #95a098;
  font-style: italic;
}
.preview-total {
  border-top: 1px solid var(--line);
  margin-top: 6px;
  padding-top: 10px;
  font-size: 13px;
}
.preview-total strong {
  font-size: 16px;
}
/* Collection code. The figure is sized in CSS so the same symbol works on a wide
   screen and on a phone held next to the front desk. */
.pay-code {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
  min-height: 120px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.pay-figure {
  margin: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.pay-figure svg {
  display: block;
  width: min(230px, 52vw);
  height: auto;
}
.pay-amount {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: center;
}
.pay-amount small {
  color: var(--muted);
  font-size: 11px;
}
.pay-amount strong {
  font-size: 26px;
  font-variant-numeric: tabular-nums;
}
.pay-amount span {
  color: #677c70;
  font-size: 12px;
}
.pay-idle {
  text-align: center;
  color: #677c70;
  font-size: 12px;
}
.pay-idle strong {
  display: block;
  font-size: 15px;
  color: #243334;
  margin-bottom: 6px;
}
/* The guest's copy of the bill, opened from a collection code: no session, no
   navigation, nothing to click. */
.pay-page {
  background: #eef2f1;
  min-height: 100vh;
}
.pay-card {
  max-width: 440px;
  margin: 40px auto;
  padding: 26px 24px 30px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  text-align: center;
}
.pay-card h1 {
  margin: 6px 0 8px;
  font-size: 34px;
  font-variant-numeric: tabular-nums;
}
.pay-sub {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.pay-instruction {
  margin: 18px 0 0;
  font-size: 13px;
  line-height: 1.7;
  color: #4a5a51;
}
.pay-lines {
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  text-align: left;
}
.pay-note {
  margin: 16px 0 0;
  color: #8b9890;
  font-size: 11px;
  line-height: 1.7;
  text-align: left;
}
@media (max-width: 650px) {
  .pay-code {
    padding: 14px;
  }
  .pay-figure svg {
    width: min(200px, 60vw);
  }
  .pay-card {
    margin: 18px 14px;
  }
}
.ledger-note {
  border-left: 3px solid #c9d8cf;
  padding-left: 12px;
  margin-bottom: 18px;
}
.ledger-note strong {
  color: #4a5a51;
}
.empty-row {
  color: #95a098;
  justify-content: center;
}
.hint {
  font-size: 11px;
  color: #8b9a90;
  line-height: 1.7;
  margin: 14px 0 0;
}
#notice {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  background: #284e40;
  color: white;
  padding: 13px 22px;
  border-radius: 9px;
  font-size: 13px;
  box-shadow: 0 6px 30px #122a2533;
  z-index: 20;
  max-width: 90vw;
}
.login-message {
  color: #ac4f45;
  font-size: 12px;
}
.truncated {
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
}
[hidden] {
  display: none !important;
}
@media (max-width: 1050px) {
  .topbar {
    gap: 25px;
    padding: 0 24px;
  }
  .topbar nav {
    gap: 20px;
  }
  .top-actions #business-day {
    display: none;
  }
  main {
    padding: 24px;
  }
  .stats {
    gap: 12px;
  }
  .stat {
    padding: 18px;
  }
  .stat-value {
    font-size: 26px;
  }
  th,
  td {
    padding-left: 15px;
    padding-right: 15px;
  }
}
@media (max-width: 650px) {
  .topbar {
    padding: 15px 18px;
    flex-wrap: wrap;
    gap: 18px;
  }
  .brand {
    font-size: 16px;
  }
  .topbar nav {
    order: 3;
    flex-basis: 100%;
    justify-content: space-around;
  }
  .topbar nav a {
    padding: 10px;
  }
  .top-actions {
    margin-left: auto;
  }
  .hotel-switcher {
    max-width: 155px;
  }
  .hotel-switcher span {
    display: none;
  }
  .hotel-switcher select {
    width: 135px;
    min-width: 0;
  }
  main {
    padding: 22px 16px;
  }
  .heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }
  h1 {
    font-size: 24px;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
  }
  .stat {
    padding: 15px;
  }
  .stat-value {
    font-size: 23px;
  }
  .room-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 14px;
    gap: 10px;
  }
  .room {
    padding: 12px;
  }
  .room-number {
    font-size: 21px;
  }
  .toolbar {
    padding: 15px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .field.wide {
    grid-column: auto;
  }
  .legend {
    flex-wrap: wrap;
    gap: 12px;
  }
  .topbar .brand small {
    font-size: 7px;
  }
  .stat-note {
    font-size: 10px;
  }
  .dialog-body {
    padding: 20px;
  }
  .dialog-footer {
    padding: 16px 20px;
  }
  .room-bottom {
    font-size: 10px;
  }
}

/* Keep navigation compact across all workspaces. */
.pms-workspace .topbar {
  min-height: 60px;
  padding: 0 24px;
}
.pms-workspace .brand-icon {
  width: 32px;
  height: 34px;
  font-size: 23px;
}
.pms-workspace .brand small {
  display: none;
}
.pms-workspace main {
  max-width: none;
  padding: 16px 24px 24px;
}

.settings-workspace {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  align-items: start;
  gap: 16px;
}
.hotel-sidebar {
  position: sticky;
  top: 16px;
}
.hotel-sidebar-heading h2 {
  display: flex;
  align-items: center;
  gap: 6px;
}
.hotel-sidebar-heading h2 span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}
.hotel-sidebar-heading .button {
  padding: 5px 7px;
  font-size: 12px;
}
.hotel-search {
  padding: 12px;
}
.hotel-search input {
  width: 100%;
  min-width: 0;
  height: 34px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f9fbfa;
  font-size: 12px;
}
.hotel-list {
  list-style: none;
  margin: 0;
  padding: 0 8px 8px;
  min-height: 360px;
  max-height: calc(100vh - 250px);
  overflow-y: auto;
}
.hotel-list-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-bottom: 4px;
  padding: 12px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #344c49;
  text-align: left;
}
.hotel-list-item:hover {
  background: #f4f8f7;
}
.hotel-list-item.active {
  border-color: #cee4de;
  background: #edf6f2;
  color: var(--green);
}
.hotel-list-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  font-size: 13px;
}
.hotel-list-info {
  flex: 1;
  min-width: 0;
}
.hotel-list-info strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.hotel-list-info small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
}
.hotel-current {
  flex: none;
  font-size: 11px;
}
.hotel-list-empty {
  padding: 32px 8px;
  color: var(--muted);
  text-align: center;
  font-size: 12px;
}
.settings-layout {
  min-width: 0;
}
.settings-hotel-heading {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 12px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}
.settings-hotel-heading strong {
  font-size: 16px;
  overflow-wrap: anywhere;
}
.settings-hotel-heading span {
  color: var(--muted);
  font-size: 12px;
}
.settings-nav {
  justify-content: flex-start;
  flex-wrap: nowrap;
  overflow-x: auto;
}
.settings-nav-group {
  display: flex;
  align-items: center;
  flex: none;
  gap: 10px;
}
.settings-nav-separator {
  flex: 0 0 1px;
  height: 20px;
  align-self: center;
  background: #cbd6d3;
  margin: 0 4px;
}
.settings-nav button {
  flex: none;
  white-space: nowrap;
}
.settings-nav button:hover {
  background: #f0f6f5;
  color: #254d49;
}
.settings-content {
  min-width: 0;
}
.room-types-table {
  min-width: 700px;
}
.room-types-table td:first-child {
  min-width: 140px;
  max-width: 260px;
  overflow-wrap: anywhere;
}
.room-types-table .actions {
  flex-wrap: nowrap;
}
.room-types-table .button {
  padding: 5px 8px;
  font-size: 12px;
}
.room-type-summary {
  display: flex;
  align-items: center;
  gap: 12px;
}
.room-type-cover {
  position: relative;
  flex: 0 0 88px;
  width: 88px;
  border: 0;
  padding: 0;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
}
.room-type-photo {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  background: #edf2f0;
  color: var(--muted);
  font-size: 11px;
  overflow: hidden;
}
.room-type-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.room-type-photo-count {
  position: absolute;
  bottom: 4px;
  right: 4px;
  padding: 1px 5px;
  border-radius: 4px;
  color: white;
  background: #162e25b3;
  font-size: 10px;
}
.room-type-images {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.room-type-images-heading,
.room-type-image-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.room-type-images-heading h3 { margin: 0; font-size: 14px; }
.room-type-image-count { color: var(--muted); font-size: 12px; }
.room-type-image-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0;
}
.room-type-image-grid > .hint { grid-column: 1 / -1; }
.room-type-image-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.room-type-image-card .field { padding: 10px 10px 0; }
.room-type-image-card input { width: 100%; min-width: 0; }
.room-type-image-actions { padding: 10px; }
.room-type-image-actions .text-button { font-size: 12px; }
.room-type-image-add {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 8px;
  background: #f7faf9;
}
.room-type-image-add > .button { justify-self: start; }
.room-type-image-library {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.room-type-image-library .field { flex: 1 1 200px; min-width: 0; }
.room-type-image-error { color: #b33d3d; font-size: 12px; }
@media (max-width: 480px) {
  .room-type-image-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 800px) {
  .settings-workspace {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
  .hotel-sidebar {
    position: static;
  }
  .hotel-list {
    min-height: 0;
    max-height: 180px;
  }
}
.settings-panel-heading p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
}
.settings-form {
  padding: 16px;
}
.settings-form .field textarea {
  min-height: 84px;
  resize: vertical;
}
.settings-form-actions {
  display: flex;
  justify-content: flex-end;
  padding-top: 18px;
}
.settings-add-form {
  margin-top: 0;
  border-top: 1px solid var(--line);
  background: #fbfcfc;
}
.facility-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 22px 22px 8px;
}
.settings-form .facility-grid {
  padding: 0;
}
.facility-grid.compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.check-card {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #526563;
  font-size: 12px;
}
.check-card:has(input:checked) {
  border-color: #92c9bf;
  background: #edf8f5;
  color: #176c62;
}
.settings-fieldset {
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
}
.settings-fieldset legend {
  padding: 0 4px;
}
.image-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 22px;
}
.image-card {
  position: relative;
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-width: 0;
  padding: 10px;
  padding-right: 54px;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.image-preview {
  width: 112px;
  height: 72px;
  overflow: hidden;
  border-radius: 7px;
  background: #eef2f1;
}
.image-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.image-card strong,
.image-card small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.image-card strong {
  font-size: 13px;
}
.image-card small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
}
.image-card > button {
  position: absolute;
  top: 10px;
  right: 10px;
}
.danger-text {
  color: #bd4747;
}
.settings-table {
  border-bottom: 1px solid var(--line);
}
.settings-table table {
  min-width: 760px;
}

@media (max-width: 950px) {
  .facility-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .image-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 650px) {
  .settings-panel-heading,
  .settings-form,
  .image-list {
    padding: 16px;
  }
  .facility-grid,
  .facility-grid.compact {
    grid-template-columns: 1fr 1fr;
  }
  .image-card {
    grid-template-columns: 82px minmax(0, 1fr);
  }
  .image-preview {
    width: 82px;
    height: 62px;
  }
}
/* Share page headings and spacing across PMS workspaces. */
.pms-workspace .heading {
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.pms-workspace .heading h1 {
  margin: 0;
  font-size: 20px;
  letter-spacing: -0.4px;
}
.pms-workspace .heading .actions {
  gap: 8px;
}
.pms-workspace .heading .button {
  padding: 7px 12px;
  font-size: 12px;
}
.page-records .stats {
  gap: 0;
  margin-bottom: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.page-records .stat {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 12px;
  min-width: 0;
  padding: 10px 16px;
  background: transparent;
  border: 0;
  border-radius: 0;
}
.page-records .stat + .stat {
  border-left: 1px solid var(--line);
}
.page-records .stat-label span {
  display: none;
}
.page-records .stat-value {
  margin: 0;
  font-size: 20px;
  letter-spacing: -0.3px;
  overflow-wrap: anywhere;
}
.page-records .stat-note {
  flex-basis: 100%;
}
.page-settings .toolbar,
.page-records .toolbar {
  gap: 10px;
  padding: 10px 16px;
}
.page-settings .toolbar h2,
.page-records .toolbar h2 {
  font-size: 14px;
}
.page-records .toolbar input,
.page-records .toolbar select {
  height: 32px;
  padding: 5px 8px;
  font-size: 12px;
}
.page-settings .toolbar .chip,
.page-records .toolbar .chip {
  padding: 6px 9px;
}
/* The room board is the primary workspace; summaries live in its controls. */
.room-board-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px 16px 10px;
}
.room-board-title {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 14px;
}
.room-board-title h1 {
  margin: 0;
  font-size: 20px;
  letter-spacing: -0.4px;
}
.room-overview {
  color: var(--muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.room-board-heading .actions {
  gap: 8px;
}
.room-board-heading .button {
  padding: 7px 12px;
  font-size: 12px;
}
.room-board-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 16px;
  padding: 0 16px 12px;
  border-bottom: 1px solid var(--line);
}
.room-status-filters {
  gap: 6px;
}
.room-status-filters .chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 6px 9px;
  color: #596c65;
}
.room-status-filters .chip.active {
  color: #176857;
  border-color: #93c1b5;
}
.room-status-filters .chip:not(.all)::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: #61a58a;
}
.room-status-filters .chip.occupied::before {
  background: #5c8abb;
}
.room-status-filters .chip.reserved::before {
  background: #bf953e;
}
.room-status-filters .chip.dirty::before {
  background: #b67760;
}
.room-status-filters .chip.maintenance::before {
  background: #88939d;
}
.chip-count {
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.room-query {
  gap: 6px;
}
.room-query input,
.room-query select {
  height: 32px;
  padding: 5px 8px;
  font-size: 12px;
}
.room-query input[type="search"] {
  width: 166px;
}
.room-query input[type="date"] {
  width: 133px;
}
.room-board .room-grid {
  gap: 12px;
  padding: 16px;
  background: #f8faf9;
}
.room-board .room {
  min-width: 0;
  min-height: 152px;
  gap: 9px;
  border-top-width: 4px;
}
.room-board .room-number {
  font-size: 28px;
}
.room-board .badge {
  font-size: 11px;
}
.room-board .room-type,
.room-board .room-guest {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.room-board .panel-footer {
  gap: 8px;
  flex-wrap: wrap;
  padding: 9px 16px;
}
@media (max-width: 650px) {
  .pms-workspace .topbar {
    min-height: 52px;
    padding: 0 12px;
    gap: 12px;
    flex-wrap: nowrap;
  }
  .pms-workspace .brand {
    display: none;
  }
  .pms-workspace .topbar nav {
    order: initial;
    flex: 1;
    min-width: 0;
    overflow-x: auto;
    gap: 12px;
    justify-content: flex-start;
  }
  .pms-workspace .topbar nav a {
    padding: 0;
    font-size: 13px;
    white-space: nowrap;
  }
  .pms-workspace .live-dot {
    display: none;
  }
  .pms-workspace main {
    padding: 10px;
  }
  .pms-workspace .heading {
    flex-direction: row;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
  }
  .pms-workspace .heading h1 {
    font-size: 18px;
  }
  .pms-workspace .heading .button {
    padding: 7px 9px;
  }
  .page-records .stat {
    padding: 8px 10px;
    gap: 4px 8px;
  }
  .page-records .stat:nth-child(3) {
    border-left: 0;
  }
  .page-records .stat:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
  .page-records .stat-value {
    font-size: 18px;
  }
  .page-settings .toolbar,
  .page-records .toolbar {
    padding: 10px;
  }
  .page-records .toolbar .filters {
    width: 100%;
    gap: 6px;
  }
  .page-records .toolbar input[type="search"] {
    min-width: 0;
    width: 100%;
    flex: 1;
  }
  .room-board-heading {
    padding: 12px 12px 10px;
    gap: 10px;
  }
  .room-board-title {
    gap: 10px;
  }
  .room-board-title h1 {
    font-size: 18px;
  }
  .room-board-heading .actions {
    width: 100%;
  }
  .room-board-heading .actions .primary {
    margin-left: auto;
  }
  .room-board-toolbar {
    padding: 0 12px 12px;
    gap: 10px;
    min-width: 0;
  }
  .room-status-filters {
    flex-wrap: nowrap;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 3px;
  }
  .room-status-filters .chip {
    flex: none;
    white-space: nowrap;
  }
  .room-query {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 88px 122px;
  }
  .room-query input[type="search"],
  .room-query input[type="date"],
  .room-query select {
    width: 100%;
    min-width: 0;
  }
  .room-board .room-grid {
    padding: 12px;
    gap: 10px;
  }
  .room-board .room-number {
    font-size: 25px;
  }
}

.work-awaiting_review { background: #fff3dc; color: #8a5700; }
.priority-high, .priority-urgent { color: #ad3832; }
