:root {
  color-scheme: light;
  --bg: #eef1f4;
  --surface: #ffffff;
  --surface-2: #f7f8fa;
  --text: #1d2430;
  --muted: #6c7583;
  --line: #dce1e7;
  --primary: #126b63;
  --primary-strong: #0d524c;
  --accent: #b45f28;
  --danger: #b42318;
  --warning: #b7791f;
  --info: #285e9e;
  --shadow: 0 12px 32px rgba(29, 36, 48, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "Microsoft YaHei", "Segoe UI", Arial, sans-serif;
}

.hidden {
  display: none !important;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.legend b {
  font-weight: inherit;
}

.sidebar-language {
  min-height: 32px;
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.1);
  color: inherit;
  font-size: 12px;
}

.sidebar-language option {
  color: #1d2430;
}

.login-screen {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 24px;
  background: #d7eeee;
}

.login-panel {
  display: grid;
  gap: 16px;
  width: min(420px, 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 24px;
  box-shadow: var(--shadow);
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 8px;
}

.login-brand h1 {
  font-size: 24px;
}

.login-error {
  min-height: 22px;
  color: var(--danger);
  font-size: 14px;
  font-weight: 700;
}

.login-submit {
  width: 100%;
}

.login-submit:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

.login-hints {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 13px;
}

.app-shell {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 22px 16px;
  background: #202833;
  color: #f8fafc;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: var(--primary);
  color: #ffffff;
  font-weight: 800;
}

.brand strong,
.brand span {
  display: block;
}

.brand span {
  margin-top: 4px;
  color: #b6c0cc;
  font-size: 13px;
}

.nav-list {
  display: grid;
  gap: 6px;
}

.nav-item {
  width: 100%;
  min-height: 42px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #d9e1ea;
  text-align: left;
  padding: 0 12px;
}

.nav-item.active,
.nav-item:hover {
  background: #2f3b49;
  color: #ffffff;
}

.operator-box {
  margin-top: auto;
  padding: 12px;
  border: 1px solid #3a4654;
  border-radius: 8px;
}

.operator-box span,
.operator-box strong {
  display: block;
}

.operator-box span {
  color: #b6c0cc;
  font-size: 13px;
}

.operator-box strong {
  margin-top: 6px;
}

.logout-button {
  width: 100%;
  min-height: 34px;
  margin-top: 12px;
  border: 1px solid #4b5968;
  border-radius: 7px;
  background: #2f3b49;
  color: #ffffff;
}

.logout-button:hover {
  background: #3a4654;
}

.workspace {
  min-width: 0;
  padding: 12px;
  padding-bottom: 42px;
}

.main-menu-bar {
  display: flex;
  gap: 2px;
  min-height: 82px;
  margin: -12px -12px 0;
  padding: 8px 12px;
  overflow-x: auto;
  border-bottom: 1px solid #70b4b4;
  background: #8ccfd0;
}

.main-menu-item {
  display: grid;
  align-content: center;
  min-width: 118px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  color: #14393d;
  text-align: left;
  padding: 8px 14px;
}

.main-menu-item strong,
.main-menu-item span {
  display: block;
}

.main-menu-item strong {
  font-size: 16px;
}

.main-menu-item span {
  margin-top: 5px;
  color: #3f686b;
  font-size: 12px;
}

.main-menu-item:hover,
.main-menu-item.active {
  border-color: #5b9d9d;
  background: #e9fbfb;
  color: #0d524c;
}

.pms-toolbar {
  display: flex;
  gap: 10px;
  min-height: 74px;
  align-items: center;
  padding: 10px 12px;
  margin: -12px -12px 12px;
  background: #9bd6d5;
  border-bottom: 1px solid #79b8b7;
  overflow-x: auto;
}

.pms-toolbar button {
  min-width: 86px;
  min-height: 54px;
  border: 1px solid #6daaaa;
  border-radius: 6px;
  background: #e9fbfb;
  color: #18383d;
  font-weight: 800;
}

.pms-toolbar button:hover {
  background: #ffffff;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: 28px;
  line-height: 1.2;
}

h2 {
  margin-bottom: 0;
  font-size: 18px;
  line-height: 1.3;
}

.top-actions,
.modal-footer,
.hardware-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.sync-indicator {
  min-height: 38px;
  border: 1px solid #7ca9a4;
  border-radius: 4px;
  background: #e8f4ef;
  color: #245d52;
  padding: 0 12px;
  font-weight: 700;
}

.sync-indicator.offline {
  border-color: #c99647;
  background: #fff2d8;
  color: #7a4a00;
}

.sync-indicator.conflict {
  border-color: #bd6969;
  background: #fde8e8;
  color: #8b2424;
}

.hardware-panel {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  background: var(--surface-2);
}

.hardware-status {
  color: var(--muted);
  font-size: 12px;
}

.hardware-status.ready {
  color: #176b4d;
}

.hardware-status.error {
  color: #a12b2b;
}

.document-photo {
  width: min(280px, 100%);
  max-height: 180px;
  object-fit: contain;
  border: 1px solid var(--line);
  background: #ffffff;
}

.primary,
.secondary,
.icon-button {
  min-height: 38px;
  border-radius: 7px;
  border: 1px solid transparent;
  padding: 0 14px;
}

.primary {
  background: var(--primary);
  color: #ffffff;
}

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

.secondary {
  background: var(--surface);
  border-color: var(--line);
  color: var(--text);
}

.secondary:hover {
  border-color: #b9c2ce;
}

.icon-button {
  width: 38px;
  padding: 0;
  background: var(--surface-2);
  border-color: var(--line);
  font-size: 24px;
  line-height: 1;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.metric {
  min-height: 86px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.metric span,
.metric strong {
  display: block;
}

.metric span {
  color: var(--muted);
  font-size: 13px;
}

.metric strong {
  margin-top: 10px;
  font-size: 26px;
}

.metric.income strong {
  color: var(--primary);
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 10px;
  align-items: start;
}

.side-stack {
  display: grid;
  gap: 16px;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  overflow: hidden;
}

.panel-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.panel-heading p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.panel-heading.compact {
  align-items: center;
}

.legend {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
}

.dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 5px;
  border-radius: 50%;
}

.dot.vacant {
  background: var(--primary);
}

.dot.occupied {
  background: var(--info);
}

.dot.cleaning {
  background: var(--warning);
}

.dot.repair {
  background: var(--danger);
}

.floor-board {
  display: grid;
  gap: 0;
  padding: 0;
  background: #ffffff;
}

.empty-board {
  padding: 28px;
  color: var(--muted);
  text-align: center;
}

.floor-section {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  border-bottom: 2px solid #ffffff;
}

.floor-section.flat {
  grid-template-columns: 1fr;
}

.floor-label {
  display: grid;
  align-content: center;
  justify-items: center;
  min-height: 120px;
  background: #72eeee;
  border-right: 2px solid #ffffff;
  color: #061f24;
  text-align: center;
}

.floor-label strong {
  font-size: 18px;
}

.floor-label span {
  margin-top: 6px;
  color: #24666a;
  font-size: 13px;
}

.floor-rooms {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
  gap: 2px;
  background: #ffffff;
}

.room-size-small .floor-rooms {
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
}

.room-size-large .floor-rooms {
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}

.room-tile {
  position: relative;
  min-height: 132px;
  border: 0;
  border-radius: 0;
  background: #e9eef2;
  padding: 32px 10px 9px;
  text-align: left;
}

.room-size-small .room-tile {
  min-height: 106px;
  padding: 29px 8px 8px;
}

.room-size-large .room-tile {
  min-height: 158px;
  padding: 36px 12px 11px;
}

.room-tile:hover {
  outline: 2px solid #2d6f75;
  z-index: 1;
}

.room-tile.occupied {
  background: #dceaff;
}

.room-tile.reserved {
  background: #fff2ca;
}

.room-tile.checkout_pending_clean,
.room-tile.cleaning {
  background: #ffe1cc;
}

.room-tile.maintenance,
.room-tile.disabled {
  background: #f2d5d5;
}

.room-status-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  min-height: 26px;
  padding: 2px 9px;
  background: #4eb51a;
  color: #ffffff;
  font-weight: 800;
}

.room-tile.occupied .room-status-bar {
  background: #226eb2;
}

.room-tile.reserved .room-status-bar {
  background: #b7791f;
}

.room-tile.checkout_pending_clean .room-status-bar,
.room-tile.cleaning .room-status-bar {
  background: #c76a21;
}

.room-tile.maintenance .room-status-bar,
.room-tile.disabled .room-status-bar {
  background: #a83232;
}

.room-number {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-weight: 800;
  font-size: 21px;
}

.room-size-small .room-number {
  font-size: 17px;
}

.room-size-large .room-number {
  font-size: 24px;
}

.status-pill {
  align-self: start;
  border-radius: 999px;
  padding: 4px 8px;
  background: #e8edf2;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.room-meta {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.room-guest {
  margin-top: 10px;
  font-size: 13px;
}

.room-control-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  border-top: 1px solid #7fbdbc;
  background: #d2eeee;
  padding: 6px 8px;
  overflow-x: auto;
}

.display-options,
.room-size-options,
.quick-find {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.display-options label {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #17393f;
  font-size: 13px;
}

.display-options input,
.quick-find input {
  width: auto;
  min-height: auto;
}

.room-size-options {
  color: #17393f;
  font-size: 13px;
}

.compact-button,
.compact-action {
  min-height: 30px;
  border-radius: 4px;
  padding: 0 9px;
}

.compact-button {
  border: 1px solid #5f9191;
  background: #ffffff;
  color: #17393f;
}

.compact-button.active {
  background: #214b52;
  color: #ffffff;
}

.room-control-strip select {
  width: auto;
  min-height: 30px;
}

.quick-find {
  margin-left: auto;
  color: #17393f;
}

.quick-find input {
  width: 110px;
  min-height: 30px;
}

.device-list,
.stay-list {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.status-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr auto;
  min-height: 30px;
  border-top: 1px solid #6daaaa;
  background: #abd8d7;
  color: #12363a;
  font-size: 13px;
}

.status-bar span {
  display: flex;
  align-items: center;
  padding: 0 10px;
  border-right: 1px solid #7fbdbc;
}

.device-item,
.stay-item {
  min-height: 72px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
}

.device-item strong,
.stay-item strong {
  display: block;
}

.device-item span,
.stay-item span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
}

.device-status {
  float: right;
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
}

.modal {
  width: min(760px, calc(100vw - 32px));
  border: 0;
  border-radius: 8px;
  padding: 0;
  box-shadow: var(--shadow);
}

.wide-modal {
  width: min(960px, calc(100vw - 32px));
}

.manual-dialog {
  width: min(1000px, calc(100vw - 36px));
}

.manual-content {
  max-height: calc(100vh - 190px);
  overflow: auto;
  padding: 0 22px 22px;
}

.manual-section {
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}

.manual-section:last-child {
  border-bottom: 0;
}

.manual-section h3 {
  margin: 0 0 9px;
  color: #294f53;
  font-size: 17px;
}

.manual-section p,
.manual-section li {
  line-height: 1.75;
}

.manual-section ol {
  margin: 0;
  padding-left: 24px;
}

.sync-summary {
  min-height: 42px;
  border: 1px solid #b8cecc;
  background: #f3f8f7;
  padding: 10px 12px;
  color: #315d61;
}

.manual-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.room-action-info {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.room-action-info div {
  min-height: 64px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  padding: 10px;
}

.room-action-info strong,
.room-action-info span {
  display: block;
}

.room-action-info strong {
  color: var(--muted);
  font-size: 12px;
}

.room-action-info span {
  margin-top: 6px;
  font-weight: 800;
}

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

.action-grid button {
  min-height: 42px;
}

.table-wrap {
  max-height: 420px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 9px 10px;
  text-align: left;
  font-size: 13px;
}

th {
  position: sticky;
  top: 0;
  background: #eef6f6;
  z-index: 1;
}

.table-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.table-actions button {
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  color: var(--text);
}

.table-actions button:hover {
  border-color: var(--primary);
}

.table-actions .danger-action {
  border-color: #d9a8a8;
  color: #9d2424;
}

.table-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.modal-section {
  border-top: 1px solid var(--line);
  padding-top: 0;
}

.modal::backdrop {
  background: rgba(16, 24, 32, 0.46);
}

.modal-body {
  display: grid;
  gap: 16px;
  padding: 18px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

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

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #ffffff;
  color: var(--text);
  padding: 0 10px;
}

textarea {
  resize: vertical;
  padding: 9px 10px;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(18, 107, 99, 0.22);
  border-color: var(--primary);
}

.field-title {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.card-picker,
.card-return-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.check-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 10px;
  background: var(--surface-2);
  color: var(--text);
}

.return-row {
  display: grid;
  grid-template-columns: minmax(90px, 1fr) 130px;
  gap: 8px;
  width: 100%;
  align-items: center;
}

.settlement-box {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.settlement-item {
  min-height: 70px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
}

.settlement-item span,
.settlement-item strong {
  display: block;
}

.settlement-item span {
  color: var(--muted);
  font-size: 13px;
}

.settlement-item strong {
  margin-top: 8px;
  font-size: 18px;
}

.checkout-deposit-warning {
  border: 1px solid #c98632;
  background: #fff6e8;
  color: #6b3d0c;
  padding: 12px 14px;
  font-weight: 700;
}

.checkout-deposit-warning.refund-due {
  border-color: #ba3d3d;
  background: #fff0f0;
  color: #8f2020;
}

.checkout-confirmation {
  border: 1px solid #a9c8c9;
  background: #f4fafa;
  padding: 10px 12px;
}

.refund-confirmation {
  border-color: #ba3d3d;
  background: #fff0f0;
  color: #8f2020;
  font-weight: 800;
}

.checkout-refund-entry {
  display: grid;
  grid-template-columns: minmax(160px, 0.7fr) minmax(220px, 1.3fr);
  gap: 12px 16px;
  padding: 14px;
  border: 1px solid #ba3d3d;
  background: #fff7f7;
}

.checkout-refund-entry > div,
.checkout-refund-entry > label {
  display: grid;
  gap: 6px;
}

.checkout-refund-entry strong {
  color: #a42020;
  font-size: 20px;
}

.checkout-refund-entry small {
  grid-column: 1 / -1;
  color: #6f2f2f;
}

.checkout-supplement-entry {
  border-color: #ba7a18;
  background: #fff9ec;
}

.checkout-supplement-entry strong {
  color: #8b5708;
}

.checkout-supplement-entry small {
  color: #76501c;
}

.checkout-manual-adjustment {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid #d39a45;
  background: #fffdf7;
}

.checkout-manual-adjustment > small {
  color: #76501c;
}

.checkin-flow-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(140px, 1fr));
  gap: 0;
  border: 1px solid var(--border);
}

.checkin-flow-switch button {
  min-height: 38px;
  border: 0;
  border-radius: 0;
  background: #eef4f4;
  color: var(--text);
}

.checkin-flow-switch button.active {
  background: var(--accent);
  color: #fff;
  opacity: 1;
}

.transaction-document {
  display: grid;
  gap: 16px;
  border: 1px solid var(--line);
  background: #ffffff;
  padding: 18px;
}

.transaction-document > header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 2px solid #315d61;
  padding-bottom: 12px;
}

.transaction-document > header span,
.transaction-detail-grid span,
.transaction-totals span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.transaction-detail-grid,
.transaction-totals {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.transaction-detail-grid > div,
.transaction-totals > div {
  min-height: 58px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 9px;
}

.transaction-detail-grid .detail-full {
  grid-column: 1 / -1;
}

.transaction-totals strong {
  font-size: 17px;
}

.current-transaction {
  background: #e5f4f3;
  font-weight: 700;
}

.transaction-settlement-note,
.sync-admin-status,
.data-reset-summary,
.settings-warning {
  border: 1px solid var(--line);
  background: #eef7f7;
  padding: 11px 13px;
}

.transaction-settlement-note {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.danger-zone {
  border: 1px solid #b94a48;
  background: #fff7f7;
  padding: 14px;
}

.danger-warning {
  grid-column: 1 / -1;
  border-color: #b94a48;
  background: #fff0f0;
  color: #8b2422;
  font-weight: 700;
}

.shift-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.shift-summary div {
  min-height: 72px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  padding: 12px;
}

.shift-summary span,
.shift-summary strong {
  display: block;
}

.shift-summary span {
  color: var(--muted);
  font-size: 13px;
}

.shift-summary strong {
  margin-top: 8px;
  font-size: 18px;
}

.settings-body {
  min-height: 620px;
}

.settings-layout {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  min-height: 500px;
  border: 1px solid var(--line);
  background: #ffffff;
}

.settings-root-menu {
  display: flex;
  gap: 2px;
  min-height: 62px;
  border: 1px solid var(--line);
  background: #9dd7d7;
  padding: 5px;
  overflow-x: auto;
}

.settings-root-item {
  display: grid;
  align-content: center;
  min-width: 150px;
  border: 1px solid transparent;
  border-radius: 3px;
  background: transparent;
  color: #18383d;
  text-align: left;
  padding: 7px 12px;
}

.settings-root-item strong,
.settings-root-item span {
  display: block;
}

.settings-root-item span {
  margin-top: 3px;
  color: #496c70;
  font-size: 12px;
}

.settings-root-item.active,
.settings-root-item:hover {
  border-color: #6aa7a7;
  background: #ffffff;
}

.settings-nav {
  display: grid;
  align-content: start;
  gap: 2px;
  padding: 8px;
  border-right: 1px solid var(--line);
  background: #edf7f7;
}

.settings-tree-group {
  padding-bottom: 9px;
}

.settings-tree-group > summary,
.settings-tree-subgroup > summary {
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.settings-tree-group > summary::-webkit-details-marker,
.settings-tree-subgroup > summary::-webkit-details-marker {
  display: none;
}

.settings-tree-group > summary {
  display: block;
  position: relative;
  padding: 7px 8px 5px;
  color: #315c60;
  font-size: 13px;
  font-weight: 800;
}

.settings-tree-group > summary::before,
.settings-tree-subgroup > summary::before {
  content: "+";
  display: inline-block;
  width: 16px;
  color: #237378;
  font-weight: 900;
}

.settings-tree-group[open] > summary::before,
.settings-tree-subgroup[open] > summary::before {
  content: "−";
}

.settings-tree-items {
  display: grid;
  gap: 1px;
}

.settings-tree-subgroup > summary {
  min-height: 32px;
  padding: 7px 8px;
  color: #315c60;
  font-size: 13px;
  font-weight: 700;
}

.settings-tree-items.nested .settings-tab {
  padding-left: 24px;
}

.settings-tab {
  min-height: 40px;
  border: 0;
  border-left: 3px solid transparent;
  background: transparent;
  color: var(--text);
  text-align: left;
  padding: 0 10px;
}

.settings-tab:hover,
.settings-tab.active {
  border-left-color: var(--primary);
  background: #ffffff;
  color: var(--primary-strong);
  font-weight: 800;
}

.settings-panel {
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 18px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.section-heading h3 {
  margin: 0;
  font-size: 17px;
}

.section-heading p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.inline-create-form {
  align-items: end;
}

.settings-actions {
  align-self: end;
  padding: 0;
}

.settings-table-wrap {
  max-height: 300px;
}

.device-settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.device-settings-grid > div {
  display: grid;
  gap: 8px;
  min-height: 120px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-2);
  padding: 14px;
}

.device-settings-grid span {
  color: var(--muted);
  font-size: 13px;
}

.device-settings-grid button {
  width: max-content;
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #ffffff;
  color: var(--muted);
}

.billing-method-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.billing-method-item {
  display: grid;
  gap: 8px;
  min-height: 110px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface-2);
  padding: 12px;
}

.billing-method-item span {
  color: var(--muted);
  font-size: 13px;
}

.billing-method-item button,
.print-template-grid button {
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #ffffff;
  color: var(--text);
}

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

.print-template-grid button {
  min-height: 52px;
  background: #48656b;
  color: #ffffff;
}

.print-template-grid button:hover {
  background: #315258;
}

.print-template-workbench {
  display: grid;
  grid-template-columns: 160px minmax(560px, 1fr) 230px;
  gap: 12px;
  margin-top: 14px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.print-template-sidebar {
  display: grid;
  align-content: start;
  gap: 6px;
}

.print-sidebar-title {
  margin: 2px 0 3px;
  color: #315d61;
  font-size: 13px;
}

.print-field-library-title {
  margin-top: 14px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.visual-field-palette {
  display: grid;
  gap: 5px;
  max-height: 430px;
  overflow: auto;
}

.visual-field-palette button {
  min-height: 32px;
  padding: 5px 8px;
  font-size: 12px;
}

.visual-field-palette button.active {
  border-color: #70a5a7;
  background: #dff0ef;
  color: #244f52;
}

.print-template-sidebar button {
  min-height: 40px;
  border: 1px solid #a8c8c8;
  border-radius: 4px;
  background: #e7f2f2;
  color: #274d50;
  text-align: left;
  padding: 0 12px;
}

.print-template-sidebar button.active {
  border-color: #3f7478;
  background: #48656b;
  color: #ffffff;
}

.print-template-editor {
  align-content: start;
  min-width: 0;
}

.form-span-2 {
  grid-column: 1 / -1;
}

.print-field-options {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.print-field-editor {
  margin-top: 14px;
}

.print-field-model {
  display: none;
}

.visual-canvas-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 16px 0 7px;
  color: #315d61;
}

.visual-canvas-heading span {
  color: var(--muted);
  font-size: 12px;
}

.visual-paper-stage {
  min-height: 610px;
  overflow: auto;
  border: 1px solid #b8c4ca;
  background: #d6dbe1;
  padding: 20px;
}

.visual-print-canvas {
  box-shadow: 0 8px 24px rgba(28, 45, 54, 0.18);
}

.visual-print-canvas .print-canvas-field {
  cursor: pointer;
  outline: 2px solid transparent;
  outline-offset: -2px;
}

.visual-print-canvas .print-canvas-field:hover {
  outline-color: #75aeb0;
}

.visual-print-canvas .print-canvas-field.selected {
  outline-color: #187b81;
  background: #eaf8f8;
}

.visual-property-panel {
  display: grid;
  align-content: start;
  gap: 10px;
  border-left: 1px solid var(--line);
  background: #f5f8f8;
  padding: 12px;
}

.visual-property-panel h4 {
  margin: 2px 0 4px;
  color: #315d61;
}

.visual-property-panel label {
  display: grid;
  gap: 5px;
}

.visual-property-panel label > span {
  color: var(--muted);
  font-size: 12px;
}

.visual-property-panel input,
.visual-property-panel select {
  min-width: 0;
  min-height: 34px;
}

.visual-property-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.visual-field-properties {
  display: grid;
  gap: 9px;
  margin-top: 8px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

#visualSelectedFieldControls {
  display: grid;
  gap: 9px;
}

#visualSelectedFieldControls.hidden {
  display: none;
}

.visual-field-actions {
  display: flex;
  gap: 6px;
}

.visual-field-actions button {
  width: 36px;
  min-height: 32px;
  border: 1px solid var(--line);
  background: #ffffff;
}

.print-field-editor-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 7px;
  color: #315d61;
}

.print-field-editor-heading span {
  color: var(--muted);
  font-size: 12px;
}

.print-field-table-wrap {
  max-height: 390px;
  overflow: auto;
}

.print-field-table {
  min-width: 530px;
}

.print-field-table th,
.print-field-table td {
  padding: 5px 6px;
}

.print-field-table th:first-child,
.print-field-table td:first-child {
  width: 50px;
  text-align: center;
}

.print-field-table input[type="checkbox"] {
  width: 16px;
  min-height: 16px;
}

.print-field-table input[type="text"],
.print-field-table select {
  min-height: 30px;
  border-radius: 3px;
  padding: 0 7px;
}

.print-field-sample {
  max-width: 170px;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.print-field-order {
  display: flex;
  gap: 3px;
}

.print-field-order button {
  width: 28px;
  min-height: 28px;
  border: 1px solid #a8c8c8;
  border-radius: 3px;
  background: #eef6f6;
  color: #315d61;
  padding: 0;
}

.print-sheet-grid div.field-full {
  grid-column: 1 / -1;
}

.print-sheet {
  width: min(var(--paper-width, 210mm), 100%);
  min-height: var(--paper-min-height, 297mm);
  margin: 0 auto;
  border: 1px solid #b9c3c8;
  background: #ffffff;
  color: #111111;
  padding: var(--paper-padding, 10mm);
  font-family: var(--paper-font-family, "Microsoft YaHei"), sans-serif;
  font-size: var(--paper-font-size, 11pt);
}

.print-sheet[data-paper="80mm"] {
  width: min(var(--paper-width, 80mm), 100%);
  min-height: var(--paper-min-height, 180mm);
  padding: var(--paper-padding, 6mm 5mm);
}

.print-sheet-header {
  border-bottom: 2px solid #202020;
  padding-bottom: 12px;
  text-align: center;
}

.print-sheet-header h1,
.print-sheet-header h2,
.print-sheet p {
  margin: 0;
}

.print-sheet-header h1 {
  font-size: 20px;
}

.print-sheet-header h2 {
  margin-top: 8px;
  font-size: 18px;
}

.print-sheet-header p,
.print-sheet-footer,
.print-sheet-meta {
  margin-top: 6px;
  font-size: 12px;
}

.print-sheet-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid #777777;
  border-left: 1px solid #777777;
  margin-top: 16px;
}

.print-sheet-grid div {
  display: grid;
  grid-template-columns: 90px 1fr;
  min-height: 36px;
  border-right: 1px solid #777777;
  border-bottom: 1px solid #777777;
}

.print-sheet-grid span,
.print-sheet-grid strong {
  padding: 8px;
  font-size: 13px;
}

.print-sheet-grid span {
  background: #f2f2f2;
  font-weight: 400;
}

.print-sheet-signatures {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 36px;
  font-size: 13px;
}

.print-sheet-footer {
  border-top: 1px dashed #777777;
  margin-top: 24px;
  padding-top: 10px;
  white-space: pre-wrap;
}

.settings-print-sample {
  min-height: 390px;
  padding: 20px;
  transform-origin: top center;
}

.print-preview-dialog {
  width: min(900px, calc(100vw - 36px));
}

.print-preview-tabs {
  display: flex;
  justify-content: center;
  gap: 6px;
}

.print-preview-tabs button {
  min-height: 34px;
  border: 1px solid #a8c8c8;
  border-radius: 4px;
  background: #e7f2f2;
  color: #274d50;
  padding: 0 14px;
}

.print-preview-tabs button.active {
  background: #48656b;
  color: #ffffff;
}

.reports-body {
  max-height: calc(100vh - 44px);
  overflow: auto;
}

.report-query-bar {
  display: grid;
  grid-template-columns: minmax(180px, 240px) minmax(180px, 240px) 1fr;
  align-items: end;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

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

.report-quick-actions button {
  min-height: 38px;
}

.report-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid #9fc5c5;
  background: #e5f2f2;
}

.report-summary div {
  display: grid;
  gap: 4px;
  border-right: 1px solid #9fc5c5;
  padding: 12px;
}

.report-summary div:last-child {
  border-right: 0;
}

.report-summary span {
  color: var(--muted);
  font-size: 12px;
}

.report-summary strong {
  color: #21494d;
  font-size: 21px;
}

.report-section-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 18px;
}

.report-operations {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--line);
}

.report-operations div {
  display: grid;
  gap: 4px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 12px;
}

.report-operations span {
  color: var(--muted);
  font-size: 12px;
}

.report-detail-table {
  max-height: 280px;
  overflow: auto;
}

.report-print-heading {
  margin: 18px 0 8px;
  font-size: 15px;
}

.report-print-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}

.report-print-table th,
.report-print-table td {
  border: 1px solid #777777;
  padding: 6px;
  text-align: left;
}

@media print {
  body * {
    visibility: hidden !important;
  }

  #printPreviewSheet,
  #printPreviewSheet * {
    visibility: visible !important;
  }

  #printPreviewSheet {
    position: fixed;
    inset: 0;
    width: 100%;
    min-height: 0;
    border: 0;
    margin: 0;
  }

  .no-print {
    display: none !important;
  }
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  display: none;
  max-width: min(360px, calc(100vw - 40px));
  border-radius: 8px;
  background: #202833;
  color: #ffffff;
  padding: 12px 14px;
  box-shadow: var(--shadow);
}

.toast.show {
  display: block;
}

@media (max-width: 1060px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: sticky;
    top: 0;
    z-index: 5;
    flex-direction: row;
    align-items: center;
    overflow-x: auto;
  }

  .nav-list {
    grid-auto-flow: column;
    grid-auto-columns: max-content;
  }

  .operator-box {
    display: none;
  }

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

  .metrics {
    grid-template-columns: repeat(3, minmax(120px, 1fr));
  }

  .print-template-workbench {
    grid-template-columns: 145px minmax(0, 1fr);
  }

  .visual-property-panel {
    grid-column: 2;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .visual-property-panel h4,
  .visual-field-properties {
    grid-column: 1 / -1;
  }
}

.settings-mode-bar {
  display: flex;
  align-items: stretch;
  min-height: 68px;
  gap: 2px;
  padding: 4px 6px;
  border-bottom: 1px solid #80baba;
  background: #91d1d0;
}

.settings-mode-button {
  display: grid;
  align-content: center;
  min-width: 150px;
  border: 0;
  border-right: 1px solid #73b2b2;
  border-radius: 0;
  background: transparent;
  color: #21494d;
  text-align: left;
  padding: 7px 14px;
}

.settings-mode-button strong,
.settings-mode-button span {
  display: block;
}

.settings-mode-button span {
  margin-top: 4px;
  color: #4c7274;
  font-size: 12px;
}

.settings-mode-button.active,
.settings-mode-button:hover {
  background: #ffffff;
  color: #173f42;
}

.frontdesk-tabs {
  display: flex;
  gap: 0;
  min-height: 46px;
  padding: 0 8px;
  border-bottom: 1px solid #b3d1d1;
  background: #d3eeee;
  overflow-x: auto;
  margin-left: 176px;
}

.frontdesk-tabs .settings-tab {
  min-width: 132px;
  min-height: 46px;
  border: 0;
  border-bottom: 3px solid transparent;
  text-align: center;
  white-space: nowrap;
}

.frontdesk-tabs .settings-tab:hover,
.frontdesk-tabs .settings-tab.active {
  border-bottom-color: #3f7478;
  background: #ffffff;
  color: #315d61;
}

.settings-subsection {
  grid-column: 1 / -1;
  margin-top: 8px;
  border-bottom: 1px solid #a8c8c8;
  padding: 8px 0;
  color: #315d61;
}

.check-field {
  display: flex !important;
  grid-template-columns: none !important;
  align-items: center;
  gap: 8px;
}

.check-field input {
  width: auto;
  accent-color: #3f7478;
}

.billing-method-editor {
  margin-top: 10px;
  border-top: 1px solid #a8c8c8;
  padding-top: 12px;
}

@media (max-width: 640px) {
  .workspace {
    padding: 16px;
  }

  .topbar,
  .panel-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .metrics,
  .form-grid,
  .settlement-box,
  .shift-summary,
  .settings-layout,
  .device-settings-grid,
  .billing-method-grid,
  .print-template-grid,
  .print-template-workbench {
    grid-template-columns: 1fr;
  }

  .visual-property-panel {
    grid-column: 1;
    grid-template-columns: 1fr;
  }

  .report-query-bar,
  .report-summary,
  .report-section-grid,
  .report-operations {
    grid-template-columns: 1fr;
  }

  .print-template-editor {
    border-right: 0;
    padding-right: 0;
  }

  .print-sheet-grid {
    grid-template-columns: 1fr;
  }

  .settings-nav {
    grid-template-columns: repeat(4, minmax(110px, 1fr));
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .frontdesk-tabs {
    margin-left: 0;
  }

  .settings-tab {
    border-left: 0;
    border-bottom: 3px solid transparent;
    text-align: center;
  }

  .settings-tab:hover,
  .settings-tab.active {
    border-left-color: transparent;
    border-bottom-color: var(--primary);
  }

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

/* Desktop PMS skin: flat work areas, dense controls, and a fixed business-software rhythm. */
:root {
  --bg: #e8f2f2;
  --surface: #ffffff;
  --surface-2: #f5fafa;
  --line: #a9c8c9;
  --text: #193437;
  --muted: #597174;
  --primary: #3f7478;
  --primary-strong: #315d61;
  --accent: #c2652a;
  --shadow: 0 10px 24px rgba(36, 78, 82, 0.16);
}

body {
  background: #e7f0f0;
  font-family: "Microsoft YaHei", "SimSun", Arial, sans-serif;
  font-size: 14px;
}

.app-shell {
  grid-template-columns: 172px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  gap: 0;
  padding: 0;
  border-right: 1px solid #5aa4a5;
  background: #70c6c6;
  color: #14383b;
}

.sidebar .brand {
  min-height: 64px;
  padding: 10px;
  border-bottom: 1px solid #5aa4a5;
  background: #4dc1bd;
}

.sidebar .brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #315d61;
}

.sidebar .brand span,
.operator-box span {
  color: #27585c;
}

.nav-list {
  gap: 0;
  padding: 8px 6px;
}

.nav-item {
  min-height: 38px;
  border-radius: 3px;
  border-bottom: 1px solid rgba(42, 113, 116, 0.28);
  color: #14383b;
}

.nav-item.active,
.nav-item:hover {
  background: #e9fbfb;
  color: #173e42;
}

.operator-box {
  margin: auto 8px 8px;
  padding: 9px;
  border: 1px solid #5aa4a5;
  border-radius: 3px;
  background: #8ed3d2;
}

.logout-button {
  min-height: 30px;
  border-radius: 3px;
  border-color: #5aa4a5;
  background: #4f8b8d;
}

.workspace {
  padding: 0 0 32px;
  overflow: hidden;
}

.main-menu-bar {
  min-height: 52px;
  margin: 0;
  padding: 0 8px;
  gap: 0;
  border-bottom: 1px solid #43a6a4;
  background: #4dc1bd;
}

.main-menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 132px;
  min-height: 52px;
  border: 0;
  border-right: 1px solid rgba(38, 125, 128, 0.32);
  border-radius: 0;
  padding: 6px 14px;
  color: #133d40;
}

.main-menu-item::before {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #315d61;
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
}

#topRoomsBtn::before { content: "▦"; }
#topCheckinBtn::before { content: "✎"; }
#topReservationBtn::before { content: "▤"; }
#topFinanceBtn::before { content: "¥"; }
#topShiftBtn::before { content: "⇄"; }
#topSettingsBtn::before { content: "⚙"; }

.main-menu-item strong,
.main-menu-item span {
  white-space: nowrap;
}

.main-menu-item strong {
  font-size: 14px;
}

.main-menu-item span {
  display: none;
}

.main-menu-item:hover,
.main-menu-item.active {
  border-color: #43a6a4;
  background: #e8fbfa;
  color: #164d50;
}

.pms-toolbar {
  min-height: 68px;
  margin: 0;
  padding: 7px 10px;
  gap: 8px;
  border-bottom: 1px solid #73b8b8;
  background: #91d1d0;
}

.pms-toolbar button {
  min-width: 88px;
  min-height: 48px;
  border: 1px solid #6faeae;
  border-radius: 3px;
  background: #dff4f3;
  color: #234a4e;
  font-size: 13px;
  font-weight: 700;
}

.pms-toolbar button:hover {
  border-color: #3e888b;
  background: #ffffff;
}

.topbar {
  min-height: 54px;
  margin: 0;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  background: #f4fafa;
}

.topbar .eyebrow {
  display: none;
}

.topbar h1 {
  font-size: 20px;
  color: #315d61;
}

.primary,
.secondary,
.icon-button {
  min-height: 34px;
  border-radius: 3px;
}

.primary {
  background: #456a70;
}

.primary:hover {
  background: #315258;
}

.metrics {
  grid-template-columns: repeat(5, minmax(110px, 1fr));
  gap: 2px;
  margin: 0;
  padding: 6px 8px;
  border-bottom: 1px solid var(--line);
  background: #d7eeee;
}

.metric {
  min-height: 52px;
  border: 0;
  border-right: 1px solid #b4d0d0;
  border-radius: 0;
  background: transparent;
  padding: 5px 12px;
}

.metric span {
  font-size: 12px;
}

.metric strong {
  margin-top: 3px;
  font-size: 18px;
}

.content-grid {
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 8px;
  padding: 8px;
}

.panel {
  border: 1px solid #a6c5c6;
  border-radius: 3px;
  box-shadow: none;
}

.panel-heading {
  padding: 9px 12px;
  background: #d8eeee;
}

.panel-heading p {
  display: none;
}

.floor-board {
  border-top: 1px solid #79b8b8;
}

.floor-section {
  grid-template-columns: 118px minmax(0, 1fr);
}

.floor-label {
  min-height: 116px;
  background: #76eeee;
  border-right: 2px solid #ffffff;
}

.floor-rooms {
  grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
}

.room-tile {
  min-height: 116px;
  background: #e3e8ea;
  padding: 30px 9px 8px;
}

.room-tile.occupied { background: #d9e7ef; }
.room-tile.reserved { background: #f5e9c7; }
.room-tile.checkout_pending_clean,
.room-tile.cleaning { background: #f4dfcd; }
.room-tile.maintenance,
.room-tile.disabled { background: #ead2d2; }

.room-status-bar {
  min-height: 25px;
  padding: 3px 8px;
  background: #4eb51a;
  font-size: 12px;
}

.room-number {
  font-size: 18px;
}

.status-pill {
  border-radius: 2px;
  padding: 2px 5px;
  background: #eff4f4;
  font-size: 11px;
}

.room-meta {
  margin-top: 5px;
  line-height: 1.35;
}

.room-guest {
  margin-top: 5px;
  font-size: 12px;
}

.room-control-strip {
  min-height: 43px;
  padding: 5px 7px;
  border-top: 1px solid #74b7b7;
  background: #d1eeee;
}

.status-bar {
  left: 172px;
  right: 0;
  bottom: 0;
  min-height: 30px;
  padding: 6px 10px;
  border-top: 1px solid #73b8b8;
  background: #8bc5c5;
  color: #21494d;
}

.status-bar span {
  padding-right: 18px;
  border-right-color: #6aabab;
}

.modal {
  width: min(1180px, calc(100vw - 36px));
  max-width: none;
  border: 2px solid #4dc1bd;
  border-radius: 0;
  box-shadow: 0 16px 42px rgba(23, 73, 76, 0.28);
}

.modal::backdrop {
  background: rgba(23, 73, 76, 0.28);
}

.modal-body {
  border-radius: 0;
}

.modal-header {
  padding: 10px 12px;
  border-bottom: 1px solid #a8cccc;
  background: #4dc1bd;
}

.modal-header .eyebrow {
  display: none;
}

.modal-header h2 {
  color: #173f42;
  font-size: 18px;
}

.settings-body {
  min-height: 640px;
  padding: 0;
}

.settings-body > .modal-header {
  min-height: 48px;
}

.settings-layout {
  grid-template-columns: 176px minmax(0, 1fr);
  min-height: 590px;
  border: 0;
}

.settings-root-menu {
  min-height: 58px;
  border: 0;
  border-bottom: 1px solid #87c1c1;
  border-radius: 0;
  background: #a6dada;
  padding: 3px;
}

.settings-root-item {
  min-width: 150px;
  border-radius: 0;
}

.settings-nav {
  padding: 8px 5px;
  border-right: 1px solid #9fc4c4;
  background: #e0f1f1;
}

.settings-tree-group > summary {
  border-bottom: 1px solid #b4d1d1;
  color: #315d61;
}

.settings-tab {
  min-height: 34px;
  border-left-width: 4px;
  padding: 0 8px;
}

.settings-panel {
  gap: 12px;
  padding: 14px 16px;
  background: #ffffff;
  min-width: 0;
}

.settings-panel .form-grid {
  width: 100%;
  max-width: 980px;
}

.section-heading {
  padding-bottom: 8px;
}

.section-heading h3 {
  color: #315d61;
  font-size: 16px;
}

.section-heading p {
  font-size: 12px;
}

.table-wrap {
  border-color: #a8c8c8;
  border-radius: 0;
}

@media (max-width: 1060px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    flex-direction: row;
    align-items: center;
  }

  .sidebar .brand {
    min-width: 190px;
  }

  .status-bar {
    left: 0;
  }
}
