:root {
  color-scheme: light;
  --ink: #17313a;
  --ink-soft: #547078;
  --navy: #123c49;
  --navy-deep: #0c2b34;
  --teal: #16a394;
  --teal-soft: #dff5f1;
  --orange: #f29d49;
  --paper: #ffffff;
  --canvas: #f3f7f7;
  --line: #dce7e8;
  --danger: #bd4b4b;
  --shadow: 0 18px 50px rgba(14, 52, 61, .12);
  font: 16px/1.5 Inter, "Segoe UI", Roboto, Arial, sans-serif;
}

.selected-row { background: #eefaf7; }
.table-actions { display: flex; flex-wrap: wrap; gap: 6px; min-width: 320px; }
.group-detail .panel-heading { align-items: flex-start; gap: 20px; }
.transfer-entry-list { display: grid; gap: 8px; max-height: 360px; overflow: auto; padding: 4px; }
.transfer-entry {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(150px, 210px);
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.transfer-entry > input[type="checkbox"] { width: 18px; height: 18px; }
.transfer-entry span { display: grid; gap: 3px; }
.transfer-entry small { color: var(--muted); }

@media (max-width: 760px) {
  .transfer-entry { grid-template-columns: auto 1fr; }
  .transfer-entry > input[type="number"] { grid-column: 2; }
  .table-actions { min-width: 220px; }
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--canvas); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }
.muted { color: var(--ink-soft); }
.eyebrow { margin: 0 0 .3rem; font-size: .78rem; font-weight: 800; letter-spacing: .14em; }
.accent { color: var(--teal); }

.auth-layout { min-height: 100vh; display: grid; grid-template-columns: minmax(22rem, 1.1fr) minmax(30rem, .9fr); }
.brand-panel { position: relative; overflow: hidden; padding: clamp(2rem, 6vw, 6rem); color: #fff; background: var(--navy); display: flex; flex-direction: column; justify-content: space-between; gap: 4rem; }
.brand-panel::before, .brand-panel::after { content: ""; position: absolute; border-radius: 50%; border: 1px solid rgba(255,255,255,.13); }
.brand-panel::before { width: 34rem; height: 34rem; right: -11rem; top: -14rem; }
.brand-panel::after { width: 22rem; height: 22rem; right: 2rem; top: -8rem; }
.brand-panel > * { position: relative; z-index: 1; }
.brand-panel h1 { font-size: clamp(2.6rem, 5vw, 5.5rem); line-height: 1.02; letter-spacing: -.05em; margin: 1rem 0 1.4rem; max-width: 12ch; }
.brand-copy { max-width: 37rem; color: #c9dcdf; font-size: 1.1rem; }
.brand-mark { width: 4rem; height: 4rem; border-radius: 1.2rem; display: grid; place-items: center; font-size: 2rem; font-weight: 900; color: var(--navy); background: var(--orange); box-shadow: 0 12px 35px rgba(0,0,0,.2); }
.brand-mark.small { width: 2.4rem; height: 2.4rem; border-radius: .75rem; font-size: 1.25rem; box-shadow: none; }
.feature-row { display: flex; flex-wrap: wrap; gap: .65rem; }
.feature-row span { padding: .55rem .8rem; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; color: #d7e6e8; font-size: .83rem; }
.auth-panel { padding: 3rem clamp(1.5rem, 5vw, 6rem); display: grid; place-items: center; background: var(--paper); }
.auth-card { width: min(31rem, 100%); display: grid; gap: 1.25rem; }
.auth-card h2 { font-size: 2rem; margin: .2rem 0 .4rem; letter-spacing: -.035em; }

label { display: grid; gap: .42rem; color: var(--ink); font-size: .88rem; font-weight: 700; }
input, select, textarea { width: 100%; border: 1px solid var(--line); border-radius: .8rem; padding: .82rem .9rem; color: var(--ink); background: #fff; outline: none; transition: border .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(22,163,148,.13); }
.form-grid { display: grid; gap: 1rem; }
.form-grid.two { grid-template-columns: 1fr 1fr; }
.form-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.button { min-height: 2.7rem; border: 0; border-radius: .8rem; padding: .65rem 1rem; font-weight: 750; transition: transform .12s, filter .12s; }
.button:hover { filter: brightness(.97); }
.button:active { transform: translateY(1px); }
.button.primary { color: #fff; background: var(--teal); box-shadow: 0 8px 20px rgba(22,163,148,.2); }
.button.secondary { color: var(--navy); background: #e8f0f1; }
.button.text { color: var(--teal); background: transparent; }
.button.ghost { color: #dcebed; background: rgba(255,255,255,.08); width: 100%; }
.button.small { min-height: 2.25rem; padding: .45rem .75rem; font-size: .85rem; }
.icon-button { border: 0; background: transparent; color: inherit; font-size: 1.45rem; border-radius: .6rem; min-width: 2.4rem; min-height: 2.4rem; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 16.5rem minmax(0, 1fr); transition: grid-template-columns .2s ease; }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: .9rem .8rem; color: #d8e7e9; background: var(--navy-deep); }
.sidebar-brand { display: flex; align-items: center; gap: .65rem; width: 100%; padding: 0 .35rem .85rem; border: 0; font-size: 1.3rem; color: #fff; background: transparent; text-align: left; }
.sidebar nav { display: grid; gap: .08rem; }
.nav-item { width: 100%; display: flex; align-items: center; gap: .65rem; padding: .48rem .65rem; border: 0; border-radius: .65rem; color: #bcd0d4; background: transparent; text-align: left; font-size: .94rem; font-weight: 650; line-height: 1.2; }
.nav-item:hover, .nav-item.active { color: #fff; background: rgba(255,255,255,.09); }
.nav-icon { width: 1.55rem; text-align: center; color: var(--orange); }
.sidebar-footer { margin-top: auto; border-top: 1px solid rgba(255,255,255,.1); padding: .65rem .35rem 0; }
.sidebar-footer p { margin: 0 0 .18rem; }
.sidebar-footer .button { margin-top: .45rem; }
.app-shell.sidebar-collapsed { grid-template-columns: 4.6rem minmax(0, 1fr); }
.sidebar-collapsed .sidebar { padding-inline: .55rem; }
.sidebar-collapsed .sidebar-brand { justify-content: center; padding-inline: 0; }
.sidebar-collapsed .sidebar-brand strong, .sidebar-collapsed .nav-label, .sidebar-collapsed .sidebar-footer p { display: none; }
.sidebar-collapsed .nav-item { justify-content: center; padding-inline: .45rem; }
.sidebar-collapsed .nav-icon { width: 1.75rem; font-size: 1.05rem; }
.sidebar-collapsed .sidebar-footer { padding-inline: 0; }
.sidebar-collapsed .sidebar-footer .button { overflow: hidden; padding-inline: .2rem; font-size: 0; }
.sidebar-collapsed .sidebar-footer .button::before { content: "↪"; font-size: 1rem; }
.workspace { min-width: 0; }
.topbar { min-height: 5.5rem; padding: 1.1rem clamp(1rem, 3vw, 2.3rem); display: flex; align-items: center; gap: 1rem; justify-content: space-between; background: rgba(255,255,255,.94); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; backdrop-filter: blur(12px); }
.topbar h2 { margin: 0; font-size: 1.35rem; letter-spacing: -.025em; }
.topbar-actions { display: flex; align-items: center; gap: .7rem; }
.encoder-status { display: inline-flex; align-items: center; gap: .48rem; min-height: 2.45rem; padding: .45rem .7rem; border: 1px solid var(--line); border-radius: .7rem; color: var(--ink-soft); background: #fff; font-size: .78rem; }
.encoder-status > span { width: .58rem; height: .58rem; border-radius: 50%; background: #87999e; box-shadow: 0 0 0 .2rem rgba(135,153,158,.12); }
.encoder-status.ready { color: #0e6e63; border-color: #b8ded5; background: #eef9f6; }
.encoder-status.ready > span { background: var(--teal); box-shadow: 0 0 0 .2rem rgba(22,163,148,.13); }
.encoder-status.error { color: #9e3c3c; border-color: #ebcaca; background: #fff5f5; }
.encoder-status.error > span { background: var(--danger); box-shadow: 0 0 0 .2rem rgba(189,75,75,.12); }
.date-chip { color: var(--ink-soft); font-size: .86rem; padding: .55rem .75rem; border: 1px solid var(--line); border-radius: .7rem; }
.page-content { padding: clamp(1rem, 2.4vw, 2rem); max-width: 112rem; margin: 0 auto; }
.room-plan-focus .topbar, .room-plan-focus .room-plan-heading { display: none; }
.room-plan-focus .page-content { max-width: none; padding: .55rem .7rem; }
.room-plan-focus .room-filter-toolbar { position: sticky; top: 0; z-index: 7; padding-top: .38rem; background: rgba(243,247,247,.97); box-shadow: 0 .45rem .75rem rgba(14,52,61,.08); backdrop-filter: blur(10px); }
.mobile-only { display: none; }

.hero { min-height: 12rem; padding: clamp(1.4rem, 3vw, 2.5rem); border-radius: 1.4rem; color: #fff; background: linear-gradient(120deg, var(--navy) 0%, #176c70 100%); display: flex; align-items: end; justify-content: space-between; gap: 2rem; box-shadow: var(--shadow); overflow: hidden; position: relative; }
.hero::after { content: ""; width: 17rem; height: 17rem; border: 2.5rem solid rgba(255,255,255,.06); border-radius: 50%; position: absolute; right: -3rem; top: -7rem; }
.hero h1 { margin: .3rem 0 .5rem; font-size: clamp(1.8rem, 3vw, 3rem); letter-spacing: -.045em; }
.hero p { margin: 0; color: #c9e1e2; }
.business-date { position: relative; z-index: 1; min-width: 10rem; padding: 1rem; background: rgba(255,255,255,.11); border: 1px solid rgba(255,255,255,.15); border-radius: 1rem; }
.business-date strong { display: block; font-size: 1.25rem; }

.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin: 1rem 0; }
.metric-card, .panel { background: var(--paper); border: 1px solid var(--line); border-radius: 1rem; box-shadow: 0 8px 28px rgba(14,52,61,.055); }
.metric-card { padding: 1.15rem; }
.metric-label { color: var(--ink-soft); font-size: .84rem; }
.metric-value { display: block; margin-top: .35rem; font-size: 1.85rem; line-height: 1; letter-spacing: -.04em; }
.money-value { font-size: clamp(1.25rem, 2vw, 1.85rem); }
.metric-foot { margin-top: .6rem; color: var(--teal); font-size: .78rem; font-weight: 700; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(18rem, .65fr); gap: 1rem; }
.content-stack { display: grid; gap: 1rem; }
.panel { overflow: hidden; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.2rem; border-bottom: 1px solid var(--line); }
.panel-heading h3 { margin: 0; font-size: 1rem; }
.panel-body { padding: 1.1rem 1.2rem; }
.module-heading { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 1rem; }
.module-heading h1 { margin: 0; font-size: 1.8rem; letter-spacing: -.035em; }
.module-heading p { margin: .25rem 0 0; }
.back-link { border: 0; padding: 0; color: var(--teal); background: transparent; font-weight: 750; margin-bottom: .35rem; }
.folio-summary { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 1rem; padding: 1.2rem; margin-bottom: 1rem; }
.folio-summary span, .folio-summary strong { display: block; }
.folio-summary span { color: var(--ink-soft); font-size: .8rem; }
.folio-summary strong { margin-top: .3rem; font-size: 1.15rem; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: .85rem 1rem; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
th { color: var(--ink-soft); font-size: .76rem; letter-spacing: .06em; text-transform: uppercase; background: #f9fbfb; }
td { font-size: .9rem; }
tbody tr:last-child td { border-bottom: 0; }
.status { display: inline-flex; align-items: center; border-radius: 999px; padding: .25rem .55rem; font-size: .76rem; font-weight: 750; color: #0e6e63; background: var(--teal-soft); }
.empty { padding: 2.5rem 1rem; color: var(--ink-soft); text-align: center; }
.status-draft { color: #805515; background: #fff0d5; }
.rate-test-panel { margin-top: 1rem; }
.rate-test-form { display: grid; grid-template-columns: 1.25fr .9fr 1fr 1fr auto; gap: .8rem; align-items: end; padding: 1.1rem 1.2rem; }
.rate-test-result { border-top: 1px solid var(--line); }
.rate-result-summary { display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 1rem; padding: 1.1rem 1.2rem; background: #f8fbfb; }
.rate-result-summary span, .rate-result-summary strong { display: block; }
.rate-result-summary span, .field-caption { color: var(--ink-soft); font-size: .78rem; }
.rate-result-summary strong { margin-top: .25rem; font-size: 1.15rem; }
.rate-result-summary > div:last-child strong { color: var(--teal); font-size: 1.4rem; }
.rate-test-result td small { display: block; margin-top: .2rem; color: var(--ink-soft); }
.rate-plan-banner { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem; border: 1px solid #bfe2dc; border-radius: .9rem; background: #eff9f7; }
.rate-plan-banner span, .rate-plan-banner strong, .rate-plan-banner small { display: block; }
.rate-plan-banner span, .rate-plan-banner small { color: var(--ink-soft); font-size: .76rem; }
.rate-plan-banner strong { margin: .2rem 0; }
.pricing-section { display: grid; gap: 1rem; margin: 1rem 0 0; padding: 1rem; border: 1px solid var(--line); border-radius: 1rem; }
.pricing-section legend { padding: 0 .45rem; color: var(--navy); font-weight: 800; }
.hourly-band-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; }
.hourly-band-heading strong, .hourly-band-heading span { display: block; }
.hourly-band-heading span, .pricing-note { margin-top: .2rem; color: var(--ink-soft); font-size: .78rem; }
.hourly-band-tools { display: flex; align-items: end; justify-content: flex-end; gap: .6rem; }
.hourly-band-tools label { display: grid; gap: .25rem; min-width: 9rem; margin: 0; color: var(--ink-soft); font-size: .72rem; font-weight: 800; }
.hourly-band-tools input { min-height: 2.35rem; padding: .48rem .65rem; }
.hourly-band-table { border: 1px solid var(--line); border-radius: .8rem; }
.hourly-band-table table { min-width: 56rem; }
.hourly-band-table th, .hourly-band-table td { padding: .55rem; }
.hourly-band-table th:nth-child(1), .hourly-band-table th:nth-child(2) { width: 7.5rem; }
.hourly-band-table th:nth-child(3) { width: 11rem; }
.hourly-band-table th:last-child { width: 3rem; }
.hourly-band-table input { min-width: 0; padding: .65rem .7rem; }
.hourly-band-remove { width: 2rem; height: 2rem; border: 1px solid #f0c4c0; border-radius: .55rem; color: #a43c34; background: #fff5f3; font-size: 1.15rem; }
.hourly-price-detail { display: grid; gap: .2rem; min-width: 14rem; max-width: 20rem; white-space: normal; line-height: 1.35; }
.hourly-price-detail span, .hourly-price-detail small { display: block; }
.hourly-price-detail small { margin-top: .08rem; color: var(--ink-soft); font-size: .72rem; }
.check-label { display: flex; grid-template-columns: none; align-items: center; gap: .55rem; }
.check-label input, .weekday-picker input { width: auto; margin: 0; }
.weekday-picker { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .45rem; }
.weekday-picker label { display: flex; grid-template-columns: none; align-items: center; gap: .35rem; padding: .45rem .6rem; border: 1px solid var(--line); border-radius: .65rem; background: #fff; font-size: .78rem; }
.search-row { display: flex; gap: .65rem; margin-bottom: 1rem; }
.search-row input { max-width: 26rem; }
.filter-bar { display: grid; grid-template-columns: 1fr 1fr 1fr minmax(13rem, 1.6fr) auto; gap: .8rem; align-items: end; margin-bottom: 1rem; padding: 1rem; background: var(--paper); border: 1px solid var(--line); border-radius: 1rem; }
.quick-list { display: grid; gap: .7rem; }
.quick-item { display: flex; justify-content: space-between; gap: 1rem; padding: .8rem 0; border-bottom: 1px solid var(--line); }
.quick-item:last-child { border-bottom: 0; }
.quick-item strong, .quick-item span { display: block; }
.quick-item span { color: var(--ink-soft); font-size: .8rem; }
.status-checkedin { color: #0f5c78; background: #dff1f7; }
.status-checkedout { color: #57656a; background: #edf1f2; }
.status-cancelled { color: #9e3c3c; background: #f9e5e5; }
.hk-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem; margin-bottom: 1rem; }
.hk-summary div { padding: .9rem 1rem; background: var(--paper); border: 1px solid var(--line); border-radius: .9rem; }
.hk-summary strong, .hk-summary span { display: block; }
.hk-summary strong { font-size: 1.5rem; }
.hk-summary span { color: var(--ink-soft); font-size: .8rem; }
.room-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 1rem; }
.room-card { padding: 1rem; background: var(--paper); border: 1px solid var(--line); border-top: .35rem solid #87999e; border-radius: 1rem; box-shadow: 0 8px 28px rgba(14,52,61,.055); }
.room-card.hk-dirty { border-top-color: #d46c62; }
.room-card.hk-inprogress { border-top-color: var(--orange); }
.room-card.hk-clean { border-top-color: var(--teal); }
.room-card.hk-inspected { border-top-color: #477eab; }
.room-card.hk-outofservice { border-top-color: #66747a; }
.room-card-heading { display: flex; justify-content: space-between; gap: .7rem; align-items: flex-start; }
.room-card-heading span, .room-card-heading strong { display: block; }
.room-card-heading > div > span { color: var(--ink-soft); font-size: .7rem; letter-spacing: .1em; }
.room-card-heading strong { font-size: 1.65rem; }
.room-card > p { margin: .65rem 0; }
.room-assignee { color: var(--ink-soft); font-size: .85rem; }
.room-note { min-height: 2.6rem; padding: .55rem; border-radius: .6rem; background: #f5f8f8; font-size: .82rem; }
.room-card-actions { display: flex; gap: .55rem; margin-top: .9rem; }
.heading-actions { display: flex; flex-wrap: wrap; gap: .65rem; }
.room-plan-heading { align-items: center; }
.room-plan-toolbar { display: grid; grid-template-columns: 2.7rem minmax(11rem, 14rem) 2.7rem minmax(16rem, 1fr) auto; gap: .65rem; align-items: center; padding: .62rem .8rem; margin-bottom: .35rem; background: var(--paper); border: 1px solid var(--line); border-radius: .9rem; }
.room-plan-toolbar input { width: 100%; min-width: 0; padding: .68rem .8rem; }
.date-step { width: 2.7rem; height: 2.7rem; border: 1px solid var(--line); border-radius: .75rem; color: var(--navy); background: #fff; font-size: 1.35rem; }
.date-step:hover { border-color: var(--teal); background: var(--teal-soft); }
.room-filter-toolbar { display: flex; align-items: flex-start; gap: .75rem; }
.room-filter-strip { flex: 1 1 auto; min-width: 0; display: flex; gap: .5rem; overflow-x: auto; padding: .18rem 0 .7rem; scrollbar-width: thin; }
.room-read-card-button { flex: 0 0 auto; min-height: 2.25rem; margin: .18rem 0 .7rem; white-space: nowrap; }
.room-read-card-button span { font-size: 1rem; }
.room-selection-actions { display: flex; justify-content: flex-end; margin: -.35rem 0 .7rem; }
.room-selection-actions[hidden] { display: none; }
.room-bulk-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 0 0 .9rem; padding: .65rem .8rem; border: 1px solid #b9d8d5; border-radius: .8rem; background: #eef9f7; }
.room-bulk-toolbar > div:first-child { display: grid; gap: .12rem; min-width: 12rem; }
.room-bulk-toolbar > div:first-child span { color: var(--ink-soft); font-size: .78rem; }
.room-bulk-actions { display: flex; align-items: end; justify-content: flex-end; gap: .45rem; flex-wrap: wrap; }
.room-bulk-actions label { display: grid; gap: .2rem; color: var(--ink-soft); font-size: .72rem; font-weight: 700; }
.room-bulk-actions select { min-width: 10.5rem; padding: .46rem .65rem; border: 1px solid var(--line); border-radius: .55rem; background: #fff; color: var(--ink); }
.room-filter { flex: 0 0 auto; display: inline-flex; align-items: center; gap: .42rem; min-height: 2.25rem; padding: .4rem .7rem; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-soft); background: #fff; font-size: .82rem; }
.room-filter strong { min-width: 1.45rem; padding: .08rem .35rem; border-radius: 999px; color: var(--ink); background: #edf3f3; text-align: center; }
.room-filter.active { color: #fff; border-color: var(--navy); background: var(--navy); box-shadow: 0 7px 18px rgba(12,43,52,.17); }
.room-filter.active strong { color: var(--navy); background: #fff; }
.filter-dot { width: .48rem; height: .48rem; border-radius: 50%; background: #a7b2b5; }
.dot-vacant { background: #a5b4b8; }
.dot-arrival, .dot-confirmed { background: #d8932e; }
.dot-occupied { background: #2c9b78; }
.dot-dueout { background: #9459a8; }
.dot-dirty { background: #d45c55; }
.dot-clean { background: #4388b6; }
.dot-outofservice { background: #5f6b70; }
.room-floor-stack { display: grid; gap: 1rem; }
.room-floor { padding: .85rem; background: rgba(255,255,255,.62); border: 1px solid var(--line); border-radius: 1rem; }
.room-floor-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .7rem; padding: 0 .15rem; color: var(--ink-soft); font-size: .78rem; }
.room-floor-heading > div { display: flex; align-items: baseline; gap: .45rem; }
.room-floor-heading > div span { letter-spacing: .1em; font-weight: 800; }
.room-floor-heading strong { color: var(--ink); font-size: 1.1rem; }
.room-plan-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(12.25rem, 1fr)); gap: .52rem; }
.room-plan-card { container-type: inline-size; position: relative; min-height: 7.95rem; padding: .58rem .62rem; border: 1px solid #dbe4e5; border-radius: .75rem; background: #fff; box-shadow: 0 4px 15px rgba(14,52,61,.065); cursor: default; transition: transform .15s, box-shadow .15s; user-select: none; }
.room-plan-card:hover { transform: translateY(-1px); box-shadow: 0 9px 24px rgba(14,52,61,.11); z-index: 2; }
.room-plan-card.bulk-selected { outline: 3px solid #12b7a6; outline-offset: 2px; box-shadow: 0 8px 22px rgba(7,112,103,.22); }
.room-plan-card:focus-visible { outline: 3px solid rgba(22,145,139,.28); outline-offset: 2px; }
.room-plan-card.occupancy-arrival, .room-plan-card.occupancy-confirmed { border-color: #ecd6a8; background: #fff8eb; }
.room-plan-card.occupancy-occupied { border-color: #b8dece; background: #eaf7f1; }
.room-plan-card.occupancy-dueout { border-color: #d7bde2; background: #f4eafa; }
.room-plan-card.occupancy-outofservice { border-color: #cbd2d4; background: #eef1f2; }
.room-plan-card:not(.hk-work-card).hk-clean,
.room-plan-card:not(.hk-work-card).hk-inspected { border-color: #299757; background: #3ca85f; }
.room-plan-card:not(.hk-work-card).hk-dirty { border-color: #6d4938; background: #805b46; }
.room-plan-card:not(.hk-work-card).hk-inprogress { border-color: #b16f16; background: #c68324; }
.room-plan-card:not(.hk-work-card).occupancy-arrival,
.room-plan-card:not(.hk-work-card).occupancy-confirmed { border-color: #cf8516; background: #df9825; }
.room-plan-card:not(.hk-work-card).occupancy-occupied { border-color: #d93f18; background: #ef4f1e; }
.room-plan-card:not(.hk-work-card).occupancy-dueout { border-color: #70428a; background: #8652a1; }
.room-plan-card:not(.hk-work-card).occupancy-outofservice { border-color: #505b60; background: #637176; }
.room-plan-card:not(.hk-work-card),
.room-plan-card:not(.hk-work-card) .room-code-line span,
.room-plan-card:not(.hk-work-card) .room-code-line i,
.room-plan-card:not(.hk-work-card) .room-code-line strong,
.room-plan-card:not(.hk-work-card) .occupancy-label,
.room-plan-card:not(.hk-work-card) .room-stay strong,
.room-plan-card:not(.hk-work-card) .room-stay span,
.room-plan-card:not(.hk-work-card) .room-value span,
.room-plan-card:not(.hk-work-card) .room-value strong,
.room-plan-card:not(.hk-work-card) .room-empty-state { color: #fff; }
.room-plan-card:not(.hk-work-card) .room-code-line span { font-weight: 850; }
.room-plan-card:not(.hk-work-card) .room-code-line i { font-weight: 700; }
.room-plan-card:not(.hk-work-card) .room-code-line strong { font-weight: 800; }
.room-plan-card:not(.hk-work-card) .occupancy-label { font-size: .76rem; font-weight: 500; }
.room-plan-card:not(.hk-work-card) .room-hk-status { font-size: .72rem; font-weight: 500; }
.room-plan-card:not(.hk-work-card) .room-stay .room-booking-owner { font-size: .68rem; font-weight: 500; }
.room-plan-card:not(.hk-work-card) .room-stay strong { font-size: .94rem; font-weight: 500; }
.room-plan-card:not(.hk-work-card) .room-stay span { font-size: .74rem; font-weight: 500; }
.room-plan-card:not(.hk-work-card) .room-stay .room-stay-dates { font-size: clamp(.56rem, 4.6cqi, .72rem); font-weight: 450; }
.room-plan-card:not(.hk-work-card) .room-paid-summary { font-size: .71rem; font-weight: 500; }
.room-plan-card:not(.hk-work-card) .room-paid-summary strong { font-weight: 500; }
.room-plan-card:not(.hk-work-card) .room-value { font-size: .73rem; font-weight: 450; }
.room-plan-card:not(.hk-work-card) .room-value strong { font-weight: 500; }
.room-plan-card:not(.hk-work-card) .room-empty-state { font-size: .88rem; font-weight: 500; }
.room-plan-card:not(.hk-work-card) .room-badge { color: #fff; border-color: rgba(255,255,255,.45); background: rgba(255,255,255,.16); }
.room-plan-card:not(.hk-work-card) .room-value { border-top-color: rgba(255,255,255,.45); }
.room-plan-card-head { display: flex; align-items: center; justify-content: space-between; gap: .42rem; }
.room-code-line { display: flex; align-items: baseline; min-width: 0; gap: .18rem; white-space: nowrap; }
.room-code-line span { color: #8a9b9f; font-size: .67rem; font-weight: 850; letter-spacing: .055em; }
.room-code-line i { color: #8a9b9f; font-size: .82rem; font-style: normal; font-weight: 700; opacity: .78; }
.room-code-line strong { color: #102f38; font-size: 1.4rem; line-height: 1; }
.room-card-tools { display: flex; align-items: center; justify-content: flex-end; min-width: 0; gap: .28rem; }
.room-power-toggle { display: inline-flex; align-items: center; gap: .16rem; min-width: 2.75rem; height: 1.35rem; padding: 0 .34rem; border: 1px solid rgba(255,255,255,.62); border-radius: 999px; color: #fff; background: rgba(8,40,47,.38); font-size: .6rem; font-weight: 900; line-height: 1; }
.room-power-toggle span { font-size: .72rem; }
.room-power-toggle.is-on { color: #effff8; background: rgba(0,91,57,.72); }
.room-power-toggle.is-off { color: #fff; background: rgba(42,54,59,.58); }
.room-power-toggle.has-error { color: #fff; background: rgba(157,42,42,.72); }
.room-power-toggle:disabled { cursor: not-allowed; opacity: .68; }
.room-power-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .3rem; margin-top: .36rem; }
.room-power-actions.single-action { grid-template-columns: 1fr; }
.room-cleaning-power { display: flex; align-items: center; justify-content: center; gap: .22rem; width: 100%; min-height: 1.65rem; padding: .25rem .35rem; border: 1px solid rgba(255,255,255,.52); border-radius: .48rem; color: #fff; background: rgba(18,51,59,.32); font-size: .64rem; cursor: pointer; }
.room-cleaning-power:hover { background: rgba(18,51,59,.48); }
.room-cleaning-power.is-active { border-color: rgba(255,238,139,.82); color: #fff8c9; background: rgba(129,87,0,.5); }
.room-cleaning-power.maintenance.is-active { border-color: rgba(166,225,255,.82); color: #e8f8ff; background: rgba(16,89,121,.55); }
.room-cleaning-power:disabled { cursor: not-allowed; opacity: .55; }
.room-plan-card.power-on { box-shadow: inset 0 0 0 2px rgba(255,236,120,.5), 0 4px 15px rgba(14,52,61,.065); }
.room-select-control { display: inline-grid; place-items: center; width: 1.15rem; height: 1.15rem; padding: .08rem; border: 1px solid rgba(255,255,255,.55); border-radius: .32rem; background: rgba(255,255,255,.16); color: inherit; cursor: pointer; }
.hk-work-card .room-select-control { border-color: var(--line); background: #fff; color: var(--ink-soft); }
.room-select-control input { width: .78rem; height: .78rem; margin: 0; accent-color: #0e9f91; cursor: pointer; }
.occupancy-label { color: var(--ink-soft); font-size: .72rem; font-weight: 800; }
.room-hk-status { display: inline-flex; align-items: center; min-width: 0; overflow: hidden; color: inherit; font-size: .68rem; font-weight: 850; text-overflow: ellipsis; white-space: nowrap; }
.room-menu-trigger { width: 2rem; height: 1.9rem; border: 1px solid rgba(23,49,58,.12); border-radius: .55rem; color: var(--ink); background: rgba(255,255,255,.72); font-weight: 900; line-height: 1; }
.room-badges { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .55rem; }
.room-badge { display: inline-flex; align-items: center; padding: .18rem .42rem; border: 1px solid #d1dce0; border-radius: .38rem; color: #44616a; background: rgba(255,255,255,.68); font-size: .68rem; font-weight: 750; }
.hk-badge-dirty { color: #a33d37; border-color: #efb8b4; background: #fff0ef; }
.hk-badge-inprogress { color: #a15e12; border-color: #edcc9a; background: #fff5df; }
.hk-badge-clean { color: #256f8f; border-color: #b8d4e2; background: #edf7fb; }
.hk-badge-inspected { color: #26775f; border-color: #acd7c9; background: #eaf8f3; }
.hk-badge-outofservice { color: #505c60; border-color: #c4ccce; background: #e3e7e8; }
.booking-badge { color: #75523a; border-color: #ddc8b5; background: #fff8f1; }
.arrival-badge { color: #8d5c13; border-color: #e7c683; background: #fff1cf; }
.room-stay { margin-top: .38rem; }
.room-stay strong, .room-stay span { display: block; }
.room-stay strong { overflow: hidden; color: var(--ink); font-size: .88rem; text-overflow: ellipsis; white-space: nowrap; }
.room-stay span { margin-top: .1rem; color: var(--ink-soft); font-size: .7rem; line-height: 1.18; }
.room-stay .room-stay-dates { overflow: hidden; font-size: clamp(.52rem, 4.5cqi, .7rem); letter-spacing: -.012em; text-overflow: clip; white-space: nowrap; }
.room-stay .room-stay-live::before { content: "●"; display: inline; margin-right: .22rem; color: #9dffd1; animation: room-live-pulse 1.2s ease-in-out infinite; }
@keyframes room-live-pulse { 50% { opacity: .38; } }
.room-stay .room-booking-owner { margin-top: 0; margin-bottom: .07rem; overflow: hidden; font-size: .64rem; line-height: 1.1; letter-spacing: .04em; opacity: .84; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.room-paid-summary { display: flex; align-items: center; justify-content: space-between; gap: .38rem; margin-top: .32rem; padding: .2rem .36rem; border: 1px solid rgba(255,255,255,.38); border-radius: .4rem; color: #fff; background: rgba(255,255,255,.14); font-size: .66rem; }
.room-paid-summary span { opacity: .9; }
.room-paid-summary strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.room-value { display: flex; justify-content: space-between; gap: .4rem; margin-top: .34rem; padding-top: .3rem; border-top: 1px dashed rgba(23,49,58,.2); font-size: .69rem; }
.room-value span { color: var(--ink-soft); }
.room-value strong { color: var(--teal); }
.room-empty-state { display: flex; align-items: end; min-height: 3.55rem; color: #8ca0a5; font-size: .8rem; font-style: italic; }
.room-action-menu { position: absolute; top: 2.85rem; right: .65rem; z-index: 8; display: none; width: 12.5rem; padding: .35rem; border: 1px solid var(--line); border-radius: .75rem; background: #fff; box-shadow: 0 16px 40px rgba(7,35,42,.2); }
.room-plan-card.menu-open { z-index: 9; }
.room-plan-card.menu-open .room-action-menu { display: grid; }
.room-action-menu button, .room-action-menu span { width: 100%; padding: .6rem .65rem; border: 0; border-radius: .5rem; color: var(--ink); background: transparent; text-align: left; font-size: .78rem; }
.room-action-menu button:hover { color: var(--teal); background: #eef7f5; }
.room-action-menu span { color: var(--ink-soft); }
.room-context-menu { position: fixed; z-index: 80; display: none; width: 18rem; max-height: min(36rem, calc(100vh - .75rem)); overflow-y: auto; padding: .3rem; border: 1px solid rgba(18,60,73,.16); border-radius: .85rem; background: #fff; box-shadow: 0 22px 60px rgba(7,35,42,.28); }
.room-context-menu.open { display: block; }
.room-context-heading { display: flex; align-items: center; justify-content: space-between; gap: .55rem; margin: 0 0 .18rem; padding: .46rem .55rem; border-radius: .55rem; color: var(--ink-soft); background: #f2f7f7; font-size: .78rem; }
.room-context-heading span { color: var(--ink); font-weight: 850; }
.room-context-menu button { display: grid; grid-template-columns: 1.35rem 1fr; align-items: center; gap: .42rem; width: 100%; min-height: 2.15rem; padding: .38rem .55rem; border: 0; border-radius: .5rem; color: var(--ink); background: transparent; text-align: left; }
.room-context-menu button:hover, .room-context-menu button:focus-visible { color: var(--teal); background: #eaf6f3; outline: none; }
.room-context-menu button > span { color: var(--teal); font-size: .9rem; text-align: center; }
.room-context-menu button > strong { font-size: .81rem; font-weight: 700; line-height: 1.15; }
.room-context-menu button.danger, .room-context-menu button.danger > span { color: var(--danger); }
.room-context-menu button.danger:hover { background: #fff0ef; }
.room-context-menu button:disabled { cursor: not-allowed; opacity: .55; }
.room-context-separator { height: 1px; margin: .18rem .25rem; background: var(--line); }
.room-context-empty { padding: .8rem; color: var(--ink-soft); font-size: .84rem; text-align: center; }
.room-plan-card.search-hidden, .room-floor.search-hidden { display: none; }
.hk-work-card { min-height: 9.5rem; }
.hk-work-card.hk-dirty { border-left: .3rem solid #d45c55; }
.hk-work-card.hk-inprogress { border-left: .3rem solid var(--orange); }
.hk-work-card.hk-clean { border-left: .3rem solid #4388b6; }
.hk-work-card.hk-inspected { border-left: .3rem solid var(--teal); }
.hk-work-card.hk-outofservice { border-left: .3rem solid #5f6b70; }
.hk-card-detail { display: grid; gap: .25rem; min-height: 3.35rem; margin-top: .7rem; }
.hk-card-detail strong { font-size: .82rem; }
.hk-card-detail span { color: var(--ink-soft); font-size: .72rem; }
.hk-toolbar { display: flex; align-items: end; gap: .75rem; margin-bottom: 1rem; padding: .85rem 1rem; background: var(--paper); border: 1px solid var(--line); border-radius: .9rem; }
.hk-toolbar label { width: min(15rem, 100%); }
.hk-toolbar > span { margin-left: auto; align-self: center; color: var(--ink-soft); font-size: .85rem; }
.hk-work-orders { margin-top: 1rem; }
.priority { display: inline-flex; border-radius: 999px; padding: .25rem .55rem; font-size: .76rem; font-weight: 750; color: #54666b; background: #edf1f2; }
.priority-high { color: #9a571d; background: #fff0dd; }
.priority-urgent { color: #a23b3b; background: #fbe4e4; }
.hk-task-completed { color: #57656a; background: #edf1f2; }
.hk-task-cancelled { color: #9e3c3c; background: #f9e5e5; }
.notes-cell { max-width: 20rem; overflow: hidden; text-overflow: ellipsis; }
.catalog-layout { display: grid; grid-template-columns: minmax(20rem, .72fr) minmax(36rem, 1.55fr); gap: .75rem; align-items: start; }
.catalog-layout .panel { min-width: 0; }
.catalog-layout .panel-heading > div { display: grid; gap: .15rem; }
.catalog-categories table { min-width: 32rem; }
.catalog-items table { min-width: 58rem; }
.catalog-color { display: inline-block; width: .65rem; height: .65rem; margin-right: .4rem; border-radius: 50%; background: var(--catalog-color); box-shadow: 0 0 0 3px color-mix(in srgb, var(--catalog-color) 18%, white); }
.catalog-layout td, .catalog-layout th { padding: .65rem .7rem; font-size: .8rem; }
.catalog-layout tbody tr:hover { background: #f0f8f6; }
.inventory-metrics { margin-bottom: 1rem; }
.inventory-overview { grid-template-columns: minmax(18rem, .65fr) minmax(32rem, 1.35fr); }
.inventory-section { margin-top: 1rem; }
.inventory-section table { min-width: 60rem; }
.inventory-overview td small { display: block; margin-top: .12rem; color: var(--ink-soft); }
.number-cell { font-weight: 800; color: var(--teal); text-align: right; white-space: nowrap; }
.check-label { display: flex; align-items: center; gap: .55rem; min-height: 3rem; padding-top: 1.25rem; }
.check-label input { width: auto; margin: 0; }

dialog { width: min(36rem, calc(100% - 2rem)); border: 0; border-radius: 1.1rem; padding: 0; box-shadow: 0 28px 80px rgba(7,35,42,.3); }
dialog.dialog-wide { width: min(68rem, calc(100% - 2rem)); }
dialog.reservation-dialog { width: min(96rem, calc(100% - 1rem)); }
dialog::backdrop { background: rgba(8,35,42,.55); backdrop-filter: blur(3px); }
dialog > form { display: flex; flex-direction: column; max-height: min(96vh, 64rem); }
.dialog-heading { padding: 1.3rem 1.4rem; display: flex; justify-content: space-between; border-bottom: 1px solid var(--line); }
.dialog-heading h2 { margin: 0; }
.dialog-fields { min-height: 0; overflow-y: auto; padding: .85rem 1rem; display: grid; gap: .7rem; }
.dialog-fields.group-settlement-dialog-fields { display: block; }
.dialog-fields.group-settlement-dialog-fields > * + * { margin-top: .7rem; }
.dialog-actions { position: relative; padding: 1rem 1.4rem; display: flex; align-items: center; justify-content: flex-end; gap: .7rem; background: #f7fafa; }
.dialog-action-summary { display: flex; align-items: center; gap: .7rem; margin-right: auto; }
.dialog-action-summary strong { color: var(--ink); font-size: .8rem; }
.dialog-action-summary span { color: var(--teal); font-size: 1rem; font-weight: 900; }
.dialog-checkout-action { position: absolute; left: 50%; min-width: 11.5rem; transform: translateX(-50%); }
.system-dialog { width: min(32rem, calc(100% - 2rem)); }
.system-dialog-body { gap: .85rem; padding: 1.15rem 1.4rem; }
.system-dialog-message { margin: 0; color: var(--ink); line-height: 1.55; white-space: pre-line; }
.system-dialog-field { display: grid; gap: .45rem; margin: 0; color: var(--ink); font-size: .8rem; font-weight: 800; }
.system-dialog-field input { width: 100%; min-height: 2.85rem; padding: .7rem .8rem; border: 1px solid var(--line); border-radius: .7rem; color: var(--ink); background: #fff; font: inherit; font-weight: 650; }
.system-dialog-field input:focus { outline: 3px solid rgba(12,156,142,.14); border-color: var(--teal); }
.system-dialog-field input[type="datetime-local"] { color-scheme: light; cursor: pointer; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.transfer-entry.settled, .group-settlement-line.settled { opacity: .48; filter: grayscale(.45); background: #eef2f3; cursor: not-allowed; }
.transfer-entry.settled input, .group-settlement-line.settled input { cursor: not-allowed; }
.group-settlement-toolbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding: .85rem 1rem; border: 1px solid #bfe5df; border-radius: .85rem; background: #effaf7; }
.group-settlement-toolbar h3, .group-settlement-toolbar p { margin: 0; }
.group-settlement-toolbar > div:first-child { display: grid; gap: .25rem; }
.group-settlement-toolbar span { color: var(--ink-soft); font-size: .8rem; }
.group-settlement-summary { display: grid; grid-template-columns: repeat(4, minmax(10rem, 1fr)); gap: .55rem; }
.group-settlement-summary > div { display: grid; gap: .2rem; padding: .7rem .8rem; border: 1px solid var(--line); border-radius: .7rem; background: #fff; }
.group-settlement-summary span { color: var(--ink-soft); font-size: .72rem; }
.group-settlement-summary strong { color: var(--teal); font-size: 1rem; }
.group-settlement-controls { position: sticky; top: -.85rem; z-index: 5; display: grid; grid-template-columns: auto minmax(15rem, 1fr) repeat(3, minmax(8rem, auto)) auto; align-items: end; gap: .55rem; padding: .7rem; border: 1px solid var(--line); border-radius: .8rem; background: rgba(247,250,250,.97); box-shadow: 0 5px 16px rgba(18,58,66,.07); backdrop-filter: blur(8px); }
.group-settlement-controls label { display: grid; gap: .25rem; margin: 0; color: var(--ink-soft); font-size: .7rem; font-weight: 750; }
.group-settlement-controls input, .group-settlement-controls select { padding: .58rem .65rem; border-radius: .62rem; font-size: .76rem; }
.group-view-tabs { display: flex; align-items: center; gap: .25rem; padding: .22rem; border-radius: .65rem; background: #e8f0f1; }
.group-view-tabs button { border: 0; border-radius: .5rem; padding: .5rem .65rem; color: var(--ink-soft); background: transparent; font-size: .72rem; font-weight: 850; white-space: nowrap; }
.group-view-tabs button.active { color: #fff; background: var(--teal); box-shadow: 0 4px 10px rgba(12,156,142,.2); }
.group-settlement-list { display: block; min-height: 0; }
.group-settlement-list > * + * { margin-top: .55rem; }
.group-settlement-member { overflow: hidden; border: 1px solid var(--line); border-radius: .8rem; background: #fff; }
.group-settlement-member > header { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem .85rem; border-bottom: 1px solid var(--line); background: #f7fafa; }
.group-settlement-member > header div { display: grid; gap: .15rem; }
.group-settlement-member > header span { color: var(--ink-soft); font-size: .75rem; }
.group-settlement-member > header b { color: var(--teal); white-space: nowrap; }
.group-settlement-line { display: grid; grid-template-columns: auto minmax(12rem, 1fr) 9rem 8rem; align-items: center; gap: .7rem; padding: .65rem .8rem; border-bottom: 1px solid #e7edef; }
.group-settlement-line:last-child { border-bottom: 0; }
.group-settlement-line > input[type="checkbox"] { width: 1rem; height: 1rem; margin: 0; }
.group-settlement-line > span:nth-child(2) { display: grid; gap: .15rem; }
.group-settlement-line small { color: var(--ink-soft); }
.group-settlement-member.compact > header { display: grid; grid-template-columns: auto minmax(13rem, 1.15fr) minmax(26rem, 2fr) auto; align-items: center; gap: .8rem; border-bottom: 0; cursor: default; }
.group-settlement-member.compact > header { height: auto !important; min-height: 5rem !important; padding: .8rem .85rem !important; align-content: center; overflow: visible; }
.group-settlement-member.compact.expanded > header { border-bottom: 1px solid var(--line); background: #eef8f6; }
.group-settlement-member.compact > header > input[type="checkbox"],
.group-settlement-section > header > input[type="checkbox"],
.group-settlement-bucket > header > input[type="checkbox"] { width: 1.05rem; height: 1.05rem; margin: 0; }
.group-member-identity { display: grid !important; align-content: center; min-width: 0; min-height: 3.35rem; overflow: visible; line-height: 1.25; }
.group-member-identity strong, .group-member-identity span, .group-member-identity small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.group-member-identity strong { font-size: .9rem; }
.group-member-identity span { display: block; }
.group-member-identity small { color: var(--ink-soft); font-size: .66rem; }
.folio-room-identity { margin: .2rem 0 0; color: var(--teal); font-size: .95rem; font-weight: 850; }
.group-member-metrics { display: grid !important; grid-template-columns: repeat(4, minmax(6rem, 1fr)); align-items: center; gap: .35rem; min-height: 3.35rem; overflow: visible; }
.group-member-metrics span { display: grid; align-content: center; gap: .12rem; min-width: 0; min-height: 2.65rem; color: var(--ink-soft); font-size: .65rem !important; }
.group-member-metrics strong { overflow: hidden; color: var(--ink); font-size: .76rem; text-overflow: ellipsis; white-space: nowrap; }
.group-member-metrics span:last-child strong { color: var(--teal); }
.group-member-selection { display: flex !important; align-items: center; gap: .35rem !important; white-space: nowrap; }
.group-member-selection b { color: var(--ink-soft); font-size: .68rem; }
.group-member-selection .icon-button { display: grid; place-items: center; min-width: 2rem; min-height: 2rem; font-size: 1rem; }
.group-member-sections { display: grid; gap: .45rem; padding: .55rem; background: #f8fbfb; }
.group-settlement-section, .group-settlement-bucket { overflow: hidden; border: 1px solid #dce6e8; border-radius: .65rem; background: #fff; }
.group-settlement-section > header, .group-settlement-bucket > header { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: .55rem; padding: .2rem .55rem; background: #f7fafa; }
.group-settlement-section.expanded > header, .group-settlement-bucket.expanded > header { border-bottom: 1px solid var(--line); background: #eff8f6; }
.group-settlement-section > header > button, .group-settlement-bucket > header > button { display: grid; grid-template-columns: minmax(12rem, 1fr) auto auto; align-items: center; gap: .8rem; width: 100%; border: 0; padding: .5rem 0; text-align: left; background: transparent; }
.group-settlement-section > header button span, .group-settlement-bucket > header button span { display: grid; gap: .1rem; }
.group-settlement-section > header small, .group-settlement-bucket > header small { color: var(--ink-soft); font-size: .66rem; }
.group-settlement-section > header b, .group-settlement-bucket > header b { color: var(--teal); font-size: .8rem; white-space: nowrap; }
.group-settlement-section > header i, .group-settlement-bucket > header i { color: var(--ink-soft); font-style: normal; }
.group-settlement-bucket > header { padding: .45rem .7rem; }
.group-settlement-pager { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .45rem .1rem; color: var(--ink-soft); font-size: .72rem; }
.group-settlement-pager > div { display: flex; gap: .4rem; }
.group-settlement-reason { display: grid; gap: .3rem; }
.group-charge-state { justify-self: end; padding: .25rem .45rem; border-radius: 999px; font-size: .68rem; font-weight: 800; white-space: nowrap; }
.group-charge-state.pending { color: #8a5b0a; background: #fff2d4; }
.group-charge-state.paid { color: #50666c; background: #dfe7e9; }
.settlement-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: .8rem; background: #f4f8f8; }
.settlement-toolbar > div:first-child { display: grid; gap: .2rem; }
.settlement-toolbar span { color: var(--ink-soft); font-size: .78rem; }
.settlement-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(28rem, 1fr)); gap: .85rem; }
.settlement-window { overflow: hidden; border: 1px solid #d8e3e5; border-top: .25rem solid #2086cc; border-radius: .85rem; background: #fff; }
.settlement-window > header { display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: .8rem 1rem; border-bottom: 1px solid var(--line); }
.settlement-window > header span { color: #647d84; font-size: .68rem; font-weight: 850; letter-spacing: .08em; }
.settlement-window > header h3 { margin: .15rem 0 0; font-size: 1rem; }
.settlement-window-header-actions { display: flex; align-items: center; justify-content: flex-end; gap: .45rem; flex-wrap: wrap; }
.settlement-window-name { min-width: 12rem; margin-top: .2rem; padding: .35rem .5rem; border-color: transparent; border-radius: .45rem; background: #f5f8f8; font-size: .92rem; font-weight: 800; }
.settlement-window-name:hover, .settlement-window-name:focus { border-color: var(--teal); background: #fff; }
.settlement-charge.paid-locked { opacity: .5; filter: grayscale(.35); background: #eef2f3; }
.settlement-charge.paid-locked input, .settlement-charge.paid-locked select,
.settlement-charge.partially-paid select { cursor: not-allowed; }
.settlement-charges { display: grid; padding: .4rem 1rem; }
.settlement-charge { display: grid; grid-template-columns: minmax(12rem, 1fr) 9rem 9rem; align-items: center; gap: .55rem; padding: .58rem 0; border-bottom: 1px dashed #d9e2e4; }
.settlement-charge > div { display: grid; gap: .14rem; }
.settlement-charge span { color: var(--ink-soft); font-size: .7rem; }
.settlement-charge .charge-payment-state { justify-self: start; margin-top: .2rem; padding: .18rem .42rem; border-radius: 999px; font-weight: 800; }
.settlement-charge .charge-payment-state.paid { color: #126c54; background: #dff4ed; }
.settlement-charge .charge-payment-state.partial { color: #91580f; background: #fff0d5; }
.settlement-charge .charge-payment-state.pending { color: #707b80; background: #edf1f2; }
.settlement-charge input, .settlement-charge select { padding: .48rem .55rem; font-size: .76rem; }
.settlement-totals { display: grid; grid-template-columns: repeat(3, 1fr); gap: .4rem; padding: .75rem 1rem; border-top: 1px solid var(--line); background: #f7fafa; }
.settlement-totals span { display: grid; gap: .15rem; color: var(--ink-soft); font-size: .72rem; }
.settlement-totals strong { color: var(--ink); font-size: .94rem; }
.settlement-payment-editor { display: grid; gap: .55rem; padding: .8rem 1rem; border-top: 1px solid var(--line); }
.settlement-payment-row { display: grid; grid-template-columns: minmax(9rem, 1fr) 9rem 10rem minmax(9rem, 1fr) 2.4rem; gap: .5rem; }
.settlement-payment-row select, .settlement-payment-row input { padding: .55rem .65rem; font-size: .78rem; }
.settlement-window-actions { display: flex; justify-content: flex-end; gap: .55rem; }
.settlement-paid { padding: .85rem 1rem; color: #17765f; background: #e8f7f2; font-weight: 800; }
.settlement-history { display: grid; gap: .25rem; margin: 0; padding: .65rem 1.1rem 1rem 2rem; color: var(--ink-soft); font-size: .72rem; }
.settlement-unassigned { display: grid; gap: .25rem; padding: .8rem 1rem; border: 1px solid #edd29b; border-radius: .75rem; background: #fff8e9; font-size: .78rem; }
.payment-overview-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .75rem .9rem; border: 1px solid var(--line); border-radius: .85rem; background: #f4f8f8; }
.payment-overview-toolbar > div { display: grid; gap: .15rem; }
.payment-overview-toolbar span { color: var(--ink-soft); font-size: .76rem; }
.payment-overview-card { overflow: hidden; border: 1px solid var(--line); border-radius: .9rem; background: #fff; }
.payment-overview-card > h3 { margin: 0; padding: .75rem 1rem; border-bottom: 1px solid var(--line); font-size: .95rem; }
.payment-summary-lines { display: grid; gap: .4rem; padding: .9rem 1rem; }
.payment-summary-lines > span { display: flex; justify-content: space-between; gap: 1rem; color: var(--ink-soft); font-size: .82rem; }
.payment-summary-lines strong { color: var(--ink); }
.payment-summary-lines .success-text { color: #16805f; }
.payment-summary-lines .payment-summary-total { margin-top: .2rem; padding-top: .55rem; border-top: 1px solid var(--line); color: var(--ink); font-weight: 800; }
.payment-summary-lines .payment-summary-balance { margin-top: .15rem; padding-top: .55rem; border-top: 1px solid #b9c7ca; color: var(--ink); font-size: .95rem; font-weight: 900; text-transform: uppercase; }
.payment-summary-lines .payment-summary-balance strong { color: var(--danger); font-size: 1.05rem; }
.direct-payment-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(8.5rem, .55fr); gap: .7rem; align-items: end; padding: .9rem 1rem; }
.direct-payment-grid label { font-size: .74rem; }
.direct-payment-grid input, .direct-payment-grid select { padding: .58rem .65rem; font-size: .8rem; }
.direct-payment-submit { display: flex; align-items: flex-end; min-height: 3.9rem; }
.direct-payment-submit .button { display: block; width: 100%; min-height: 2.7rem; white-space: nowrap; }
.direct-payment-note { padding: .6rem 1rem; border-top: 1px solid var(--line); color: var(--ink-soft); background: #f8fafa; font-size: .76rem; }
.payment-checkout-state { padding: .75rem 1rem; border: 1px solid; border-radius: .75rem; text-align: center; font-size: .82rem; font-weight: 800; }
.payment-checkout-state.due { color: #a43f3f; border-color: #ebbbbb; background: #fff0f0; }
.payment-checkout-state.ready { color: #16735b; border-color: #acd9ca; background: #eaf8f3; }
.static-qr-settings { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: 1.2rem; padding: 1rem; }
.static-qr-preview { display: grid; place-items: center; min-height: 15rem; overflow: hidden; border: 1px dashed #b7c7ca; border-radius: .8rem; color: var(--ink-soft); background: #f6f9f9; }
.static-qr-preview img { display: block; width: 100%; max-height: 18rem; object-fit: contain; }
.static-qr-fields { display: grid; align-content: start; gap: .8rem; }
.payment-static-qr { display: flex; align-items: center; gap: 1rem; padding: 1rem; }
.payment-static-qr img { width: 9rem; height: 9rem; object-fit: contain; border: 1px solid var(--line); border-radius: .65rem; background: #fff; }
.payment-static-qr > div { display: grid; gap: .35rem; }
.payment-static-qr span, .payment-static-qr small, .static-qr-empty span { color: var(--ink-soft); }
.static-qr-empty { display: grid; gap: .25rem; padding: 1rem; }
.invoice-preview-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: .85rem; background: #f4f8f8; }
.invoice-preview-toolbar > div:first-child { display: grid; gap: .15rem; }
.invoice-preview-toolbar span { color: var(--ink-soft); font-size: .76rem; }
.invoice-preview-frame { overflow: auto; padding: 1.25rem; border: 1px solid var(--line); border-radius: .9rem; background: #dfe5e6; }
.invoice-preview-sheet { box-sizing: border-box; width: 210mm; min-height: 297mm; margin: 0 auto; padding: 12mm; color: #1d2630; background: #fff; box-shadow: 0 8px 24px rgba(20, 39, 45, .18); font: 10pt/1.35 Arial, sans-serif; }
.folio-invoice-document .invoice-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 2rem; padding-bottom: 1rem; border-bottom: 2px solid #26333d; }
.folio-invoice-document .invoice-header > div { display: grid; gap: .15rem; }
.folio-invoice-document .invoice-header > div:first-child strong { font-size: 15pt; }
.folio-invoice-document .invoice-header > div:last-child { justify-items: end; text-align: right; }
.folio-invoice-document .invoice-header h1 { margin: 0; color: #a77218; font-size: 18pt; }
.folio-invoice-document .invoice-header span, .folio-invoice-document .invoice-header small { color: #68747b; }
.folio-invoice-document .invoice-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 1rem 0; overflow: hidden; border: 1px solid #ddd6ca; border-radius: .5rem; background: #ddd6ca; }
.folio-invoice-document .invoice-meta > div { display: grid; gap: .15rem; min-height: 3.5rem; padding: .55rem .65rem; background: #faf8f4; }
.folio-invoice-document .invoice-meta span { color: #7a858b; font-size: 7.5pt; text-transform: uppercase; }
.folio-invoice-document .invoice-section { margin-top: 1rem; }
.folio-invoice-document .invoice-section h2 { margin: 0 0 .35rem; color: #a77218; font-size: 10.5pt; text-transform: uppercase; }
.folio-invoice-document .invoice-section table { width: 100%; border-collapse: collapse; }
.folio-invoice-document .invoice-section th, .folio-invoice-document .invoice-section td { padding: .38rem .45rem; border-bottom: 1px solid #e7e2db; text-align: left; font-size: 8.5pt; }
.folio-invoice-document .invoice-section th { color: #6c777d; background: #f1eee8; font-size: 7.5pt; text-transform: uppercase; }
.folio-invoice-document .invoice-section th:last-child, .folio-invoice-document .invoice-section td:last-child, .folio-invoice-document .invoice-number { text-align: right; }
.folio-invoice-document .invoice-section tfoot td { border-top: 1px solid #bdb6ab; border-bottom: 0; font-weight: 800; }
.folio-invoice-document .invoice-total-box { display: grid; gap: .35rem; width: 44%; margin: 1.2rem 0 0 auto; padding: .75rem; border: 1px solid #d8d1c6; border-radius: .55rem; background: #faf8f4; }
.folio-invoice-document .invoice-total-box span { display: flex; justify-content: space-between; gap: 1rem; }
.folio-invoice-document .invoice-total-box .grand { padding-top: .45rem; border-top: 1px solid #c9c1b5; font-size: 11pt; text-transform: uppercase; }
.folio-invoice-document .invoice-total-box .balance { margin: .2rem -.75rem -.75rem; padding: .55rem .75rem; color: #a43f3f; background: #fff0f0; font-weight: 900; text-transform: uppercase; }
.folio-invoice-document .invoice-footer-grid { display: grid; grid-template-columns: minmax(9rem, .55fr) minmax(15rem, 1fr); align-items: end; gap: 1rem; margin-top: 1.2rem; }
.folio-invoice-document .invoice-footer-grid .invoice-total-box { width: auto; margin: 0; }
.folio-invoice-document .invoice-static-qr { display: grid; justify-items: center; gap: .2rem; color: #68747b; text-align: center; font-size: 8pt; }
.folio-invoice-document .invoice-static-qr img { width: 34mm; height: 34mm; object-fit: contain; }
#folioInvoicePrint { display: none; }
.booking-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.booking-section { display: grid; align-content: start; gap: .85rem; padding: 1rem; border: 1px solid var(--line); border-radius: .9rem; background: #fbfdfd; }
.booking-section-title { display: flex; align-items: center; gap: .65rem; padding-bottom: .7rem; border-bottom: 1px solid var(--line); }
.booking-section-title > span { width: 2rem; height: 2rem; display: grid; place-items: center; border-radius: .6rem; color: #fff; background: var(--navy); font-size: .75rem; font-weight: 850; }
.booking-section-title strong, .booking-section-title small { display: block; }
.booking-section-title strong { font-size: .95rem; }
.booking-section-title small { margin-top: .08rem; color: var(--ink-soft); font-size: .72rem; }
.booking-estimate { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; padding: .9rem 1rem; border: 1px solid #b8ded5; border-radius: .9rem; background: #eef9f6; }
.booking-estimate div span, .booking-estimate div strong { display: block; }
.booking-estimate div span { color: var(--ink-soft); font-size: .72rem; }
.booking-estimate div strong { margin-top: .2rem; color: var(--teal); font-size: 1rem; }
.booking-estimate p { grid-column: 1 / -1; margin: 0; color: var(--ink-soft); font-size: .75rem; }
.group-booking-workspace { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.group-booking-card { display: grid; align-content: start; gap: .75rem; min-width: 0; padding: .9rem; border: 1px solid var(--line); border-radius: .8rem; background: #fff; box-shadow: 0 4px 12px rgba(14,52,61,.055); }
.group-booking-card.span-all { grid-column: 1 / -1; }
.group-room-table input, .group-room-table select { min-width: 12rem; padding: .5rem .6rem; font-size: .78rem; }
.group-room-table small { color: var(--ink-soft); }
.selected-room-chips { display: flex; flex-wrap: wrap; gap: .4rem; padding: .55rem; border: 1px solid #b8ded5; border-radius: .65rem; background: #eef9f6; }
.selected-room-chips span { padding: .3rem .55rem; border-radius: 999px; color: #fff; background: var(--teal); font-size: .75rem; font-weight: 800; }
.reservation-workspace { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(23rem, .9fr); gap: .65rem; min-height: 38rem; }
.reservation-left-column { display: grid; align-content: start; gap: .65rem; min-width: 0; }
.reservation-entry-card, .reservation-table-card, .reservation-total-card, .reservation-service-panel { border: 1px solid var(--line); border-radius: .75rem; background: #fff; box-shadow: 0 4px 12px rgba(14,52,61,.06); }
.reservation-entry-card { padding: .65rem .75rem; }
.reservation-meta-grid { display: grid; grid-template-columns: 1.15fr 1fr .85fr 1.05fr 1.15fr; gap: .5rem; padding-bottom: .5rem; border-bottom: 1px solid var(--line); }
.reservation-meta-grid.reservation-detail-meta { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.reservation-meta-grid label, .reservation-stay-grid label, .reservation-guest-grid label { min-width: 0; color: var(--ink-soft); font-size: .84rem; }
.reservation-meta-grid input, .reservation-meta-grid select, .reservation-stay-grid input, .reservation-stay-grid select, .reservation-guest-grid input, .reservation-guest-grid select { margin-top: .2rem; padding: .46rem .55rem; font-size: .82rem; }
.reservation-entry-card input[readonly] { color: var(--ink); border-color: transparent; background: #f4f7f7; }
.draft-status { display: flex; align-items: center; min-height: 2.35rem; margin-top: .28rem; padding: .4rem .65rem; border-radius: .55rem; color: #9e5f1c; background: #fff0d9; font-weight: 800; }
.draft-status.saved { color: #fff; background: #df7b62; }
.reservation-stay-grid { display: grid; grid-template-columns: minmax(11.5rem, 1.15fr) minmax(8.4rem, .78fr) minmax(6.4rem, .55fr) minmax(13rem, 1.3fr) minmax(8rem, .8fr); gap: .5rem; padding: .55rem 0; border-bottom: 1px solid var(--line); }
.reservation-stay-grid.reservation-detail-stay { grid-template-columns: minmax(11.5rem, 1.2fr) minmax(8.4rem, .72fr) minmax(6.4rem, .5fr) minmax(11.5rem, 1.08fr); }
.manual-date-control { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 2.15rem; margin-top: .2rem; }
.manual-date-control input { min-width: 0; margin-top: 0 !important; border-radius: .65rem 0 0 .65rem; }
.manual-date-control button { border: 1px solid var(--line); border-left: 0; border-radius: 0 .65rem .65rem 0; color: var(--navy); background: #fff; font-size: 1rem; }
.manual-date-control button:hover { color: var(--teal); background: var(--teal-soft); }
.departure-date-picker { position: absolute; right: 0; bottom: 0; width: 1px !important; height: 1px; padding: 0 !important; opacity: 0; pointer-events: none; }
.field-help { display: block; margin-top: .18rem; color: var(--ink-soft); font-size: .68rem; font-weight: 500; }
.reservation-guest-grid { display: grid; grid-template-columns: .85fr 1fr 1.25fr; gap: .45rem .55rem; padding-top: .55rem; }
.reservation-guest-grid .span-two { grid-column: span 2; }
.reservation-guest-grid .span-all { grid-column: 1 / -1; }
.guest-suggestions { display: grid; gap: .3rem; padding: .55rem; border: 1px solid #b8ded5; border-radius: .65rem; background: #f4fbf9; box-shadow: 0 12px 24px rgba(13, 56, 66, .08); }
.guest-suggestions > strong { padding: .2rem .35rem; color: var(--teal); font-size: .76rem; text-transform: uppercase; letter-spacing: .04em; }
.guest-suggestions button { display: grid; grid-template-columns: minmax(10rem, .7fr) minmax(14rem, 1.3fr); gap: .7rem; padding: .55rem .65rem; border: 0; border-radius: .5rem; color: var(--navy); background: #fff; text-align: left; cursor: pointer; }
.guest-suggestions button:hover { background: #e5f5f1; }
.guest-suggestions button span { font-weight: 750; }
.guest-suggestions button small { overflow: hidden; color: var(--ink-soft); text-overflow: ellipsis; white-space: nowrap; }
.identity-choice { display: flex; align-items: center; gap: .65rem; min-width: 0; margin: 0; padding: .38rem .55rem; border: 1px solid var(--line); border-radius: .55rem; }
.identity-choice legend { padding: 0 .25rem; color: var(--ink-soft); font-size: .76rem; }
.identity-choice label { display: flex; align-items: center; gap: .25rem; color: var(--ink); white-space: nowrap; }
.identity-choice input { width: auto; margin: 0; }
.reservation-table-card { min-height: 5.25rem; overflow: hidden; }
.reservation-table-card table { min-width: 38rem; }
.reservation-table-card th, .reservation-table-card td { padding: .58rem .7rem; font-size: .8rem; }
.reservation-total-card { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .65rem 1rem; padding: .8rem 1rem; background: #fbfdfd; }
.reservation-total-card > div span, .reservation-total-card > div strong { display: block; }
.reservation-total-card > div span { color: var(--ink-soft); font-size: .76rem; }
.reservation-total-card > div strong { overflow: hidden; margin-top: .2rem; color: var(--teal); font-size: .88rem; text-overflow: ellipsis; white-space: nowrap; }
.reservation-total-primary { padding-top: .45rem; border-top: 1px dashed var(--line); }
.reservation-total-primary strong { font-size: 1.05rem !important; }
.discount-input { min-width: 7.5rem; padding: .35rem .45rem; border-radius: .45rem; font-size: .78rem; }
.money-inline, .reservation-total-card select { margin-top: .2rem; padding: .35rem .45rem; border-radius: .45rem; font-size: .78rem; }
.booking-finance-actions { display: flex; justify-content: flex-end; gap: .55rem; }
.lock-card-toolbar { display: flex; align-items: center; gap: .55rem; padding: .55rem .7rem; border: 1px solid #bedbd6; border-radius: .7rem; background: #eff9f7; }
.lock-card-toolbar strong { margin-right: auto; font-size: .82rem; }
.button.danger { color: #fff; background: var(--danger); }
.property-identity { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; padding: 1rem 1.2rem; }
.property-identity span, .property-identity strong, .property-identity small { display: block; }
.property-identity span, .property-identity small { color: var(--ink-soft); }
.property-identity strong { font-size: 1.35rem; }
.property-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.property-rooms { grid-column: 1 / -1; }
.lock-address { display: inline-flex; padding: .24rem .48rem; border-radius: .4rem; color: #087f71; background: #edf7f5; font-family: ui-monospace, Consolas, monospace; font-weight: 700; }
.lock-device-panel .heading-actions { padding-top: .4rem; }
.technical-card-panel { margin-top: 1rem; }
.technical-card-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .7rem; }
.technical-card-button { min-height: 5.2rem; display: flex; flex-direction: column; align-items: flex-start; gap: .35rem; padding: .8rem; border: 1px solid var(--line); border-radius: .75rem; color: var(--navy); background: #fff; text-align: left; cursor: pointer; }
.technical-card-button:hover { border-color: var(--teal); background: #f0faf8; transform: translateY(-1px); }
.technical-card-button strong { font-size: .88rem; }
.technical-card-button span { color: var(--muted); font-size: .75rem; line-height: 1.35; }
.lock-ready { color: var(--teal); font-size: 1.25rem; }
.lock-card-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; padding: .75rem .85rem; border: 1px solid #b8ded5; border-radius: .75rem; background: #eef9f6; }
.lock-card-toolbar strong { margin-right: auto; color: var(--navy); }
.lock-card-toolbar .button.danger { color: #9e3c3c; background: #f9e5e5; }
.lock-checkout-settings { display: grid; grid-template-columns: minmax(16rem, 1fr) minmax(20rem, auto) auto; align-items: center; gap: 1rem; }
.lock-checkout-settings h3, .lock-checkout-settings p { margin: 0; }
.lock-checkout-settings p { margin-top: .2rem; }
.lock-checkout-settings .check-label { margin: 0; padding: .65rem .8rem; border: 1px solid var(--line); border-radius: .65rem; background: #f8fbfb; }
.room-minibar-toolbar { display: grid; grid-template-columns: minmax(0, 1fr) minmax(15rem, 22rem); align-items: center; gap: .75rem; }
.room-minibar-categories { display: flex; flex-wrap: wrap; gap: .35rem; }
.room-minibar-categories button { min-height: 2.15rem; padding: .38rem .65rem; border: 1px solid var(--line); border-radius: .55rem; color: var(--ink-soft); background: #fff; font-weight: 700; }
.room-minibar-categories button.active { color: #fff; border-color: var(--teal); background: var(--teal); }
.room-minibar-list { max-height: min(32rem, 55vh); }
.room-minibar-list table { min-width: 44rem; }
.room-minibar-list td small { display: block; margin-top: .12rem; color: var(--ink-soft); }
.minibar-quantity { display: grid; grid-template-columns: 2rem 3.6rem 2rem; align-items: center; gap: .25rem; }
.minibar-quantity button { width: 2rem; height: 2rem; padding: 0; border: 1px solid var(--line); border-radius: .45rem; color: var(--teal); background: #fff; font-size: 1.05rem; font-weight: 800; }
.minibar-quantity button:hover { color: #fff; border-color: var(--teal); background: var(--teal); }
.minibar-quantity input { min-width: 0; padding: .35rem; text-align: center; }
.room-minibar-summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem .8rem; border: 1px solid #b8ded5; border-radius: .65rem; background: #eef9f6; }
.room-minibar-summary span { color: var(--ink-soft); font-size: .78rem; }
.room-minibar-summary strong { color: var(--teal); white-space: nowrap; }
.retail-minibar-form { display: grid; gap: .85rem; padding: 1rem; }
.retail-minibar-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; }
.retail-minibar-meta label { display: grid; gap: .3rem; color: var(--ink-soft); font-size: .76rem; font-weight: 750; }
.retail-minibar-list { max-height: min(32rem, 52vh); }
.retail-minibar-footer { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .75rem; }
.retail-minibar-footer .room-minibar-summary { min-height: 3rem; }
.retail-minibar-history { margin-top: 1rem; }
.stock-document-meta { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(16rem, .7fr); align-items: end; gap: .8rem; }
.stock-document-toolbar { display: grid; grid-template-columns: minmax(12rem, .55fr) minmax(20rem, 1.45fr); gap: .8rem; padding: .8rem; border: 1px solid var(--line); border-radius: .8rem; background: #faf8f1; }
.stock-document-list { max-height: min(34rem, 52vh); border: 1px solid var(--line); border-radius: .8rem; }
.stock-document-list table { min-width: 74rem; }
.stock-document-list th, .stock-document-list td { padding: .55rem .65rem; }
.stock-document-list td small { display: block; color: var(--ink-soft); font-size: .72rem; }
.stock-document-list th:nth-child(1) { width: 3rem; }
.stock-document-list th:nth-child(3) { width: 5rem; }
.stock-document-list th:nth-child(4) { width: 10rem; }
.stock-document-list th:nth-child(5) { width: 7rem; }
.stock-document-list th:nth-child(6) { width: 10rem; }
.stock-document-list th:nth-child(7) { width: 18rem; }
.stock-document-list input { min-height: 2.2rem; padding: .42rem .55rem; border-radius: .55rem; }
.stock-line-number, .stock-line-money { text-align: right; }
#stockDocumentPrint { display: none; }
.reservation-service-panel { display: flex; flex-direction: column; min-width: 0; overflow: hidden; }
.service-panel-heading { display: flex; align-items: end; justify-content: space-between; gap: .7rem; padding: .85rem; border-bottom: 1px solid var(--line); }
.service-panel-heading strong, .service-panel-heading span { display: block; }
.service-panel-heading strong { font-size: .92rem; }
.service-panel-heading span { margin-top: .16rem; color: var(--ink-soft); font-size: .76rem; }
.service-panel-heading input { width: 9.5rem; padding: .55rem .65rem; font-size: .8rem; }
.service-filter-row { display: flex; gap: .4rem; padding: .65rem .8rem; }
.service-filter-row { overflow-x: auto; }
.service-filter-row button { flex: 0 0 auto; padding: .4rem .6rem; border: 0; border-radius: .45rem; color: #527078; background: #edf3f3; font-size: .78rem; font-weight: 750; }
.service-filter-row button.active { color: #fff; background: var(--teal); }
.service-table-wrap { flex: 1; overflow: auto; }
.service-table-wrap table { min-width: 30rem; }
.service-table-wrap th, .service-table-wrap td { padding: .58rem .55rem; font-size: .78rem; }
.service-table-wrap td strong, .service-table-wrap td small { display: block; }
.service-table-wrap td small { margin-top: .15rem; color: var(--ink-soft); font-size: .7rem; }
.service-table-wrap tr.service-hidden { display: none; }
.service-table-wrap td:last-child { width: 2.5rem; text-align: center; }
.service-table-wrap button { width: 1.7rem; height: 1.7rem; border: 0; color: #2f9d58; background: transparent; font-size: 1.2rem; }
.service-table-wrap button:disabled { cursor: not-allowed; opacity: .35; }
.booking-service-line td:nth-child(2) strong, .booking-service-line td:nth-child(2) small { display: block; }
.booking-service-line td:nth-child(2) small { margin-top: .12rem; color: var(--ink-soft); }
.quantity-control { display: inline-flex; align-items: center; gap: .3rem; padding: .15rem; border: 1px solid var(--line); border-radius: .45rem; background: #fff; }
.quantity-control button { width: 1.45rem; height: 1.45rem; border: 0; border-radius: .3rem; color: var(--teal); background: #eaf6f3; font-weight: 900; }
.quantity-control strong { min-width: 1rem; text-align: center; }
.service-panel-note { margin: 0; padding: .75rem .85rem; color: var(--ink-soft); background: #f7fafa; font-size: .76rem; }
.draft-notice, .dialog-warning { display: flex; align-items: center; gap: .6rem; padding: .7rem .85rem; border: 1px solid #efd39e; border-radius: .65rem; color: #815821; background: #fff8e8; font-size: .82rem; }
.draft-notice span, .dialog-warning span { color: #876f51; }
.dialog-warning { display: grid; }
.guest-card-read-heading { display: grid; justify-items: center; gap: .2rem; padding: 1rem; border: 1px solid #9dd7cf; border-radius: .9rem; color: var(--navy); background: linear-gradient(135deg, #e7f7f4, #f8fcfb); text-align: center; }
.guest-card-read-heading span { color: var(--teal); font-size: .7rem; font-weight: 900; letter-spacing: .12em; }
.guest-card-read-heading strong { font-size: 1.55rem; letter-spacing: .04em; overflow-wrap: anywhere; }
.guest-card-read-heading small { color: var(--ink-soft); }
.guest-card-read-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
.guest-card-read-grid > div { display: grid; align-content: start; gap: .25rem; min-height: 5.2rem; padding: .85rem 1rem; border: 1px solid var(--line); border-radius: .8rem; background: #f7fafa; }
.guest-card-read-grid > div.wide { grid-column: 1 / -1; min-height: auto; }
.guest-card-read-grid span { color: var(--ink-soft); font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.guest-card-read-grid strong { color: var(--ink); font-size: 1rem; overflow-wrap: anywhere; }
.guest-card-read-grid small { color: var(--ink-soft); line-height: 1.35; }
.guest-card-read-grid .guest-card-expiry { border-color: #f0c883; background: #fff8e8; }
.guest-card-read-grid .guest-card-expiry strong { color: #a25d14; font-size: 1.15rem; }
.guest-card-read-grid .guest-card-notes { min-height: 4.2rem; background: #fff; }
.guest-card-read-note { margin: 0; padding: .65rem .8rem; color: var(--ink-soft); background: #f3f7f7; border-radius: .65rem; font-size: .76rem; line-height: 1.45; }
.toast { position: fixed; right: 1.3rem; top: 1.3rem; z-index: 100; max-width: 24rem; padding: .8rem 1rem; color: #fff; background: var(--navy); border-radius: .8rem; box-shadow: var(--shadow); opacity: 0; transform: translateY(-.7rem); pointer-events: none; transition: .2s; }
.toast.show { opacity: 1; transform: translateY(0); }
.toast.error { background: var(--danger); }

@media (max-width: 960px) {
  .rate-test-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rate-result-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .group-booking-workspace { grid-template-columns: 1fr; }
  .group-booking-card.span-all { grid-column: auto; }
  .room-bulk-toolbar { align-items: stretch; flex-direction: column; }
  .room-bulk-actions { justify-content: flex-start; }
  .auth-layout { grid-template-columns: 1fr; }
  .brand-panel { min-height: 20rem; padding: 2rem; gap: 2rem; }
  .brand-panel h1 { font-size: 2.7rem; }
  .feature-row { display: none; }
  .auth-panel { padding: 2.5rem 1.4rem; }
  .app-shell { grid-template-columns: 1fr; }
  .app-shell.sidebar-collapsed { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: -17rem; z-index: 30; width: 16.5rem; transition: left .2s; }
  .sidebar.open { left: 0; box-shadow: 18px 0 50px rgba(0,0,0,.22); }
  .mobile-only { display: inline-grid; place-items: center; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .content-grid { grid-template-columns: 1fr; }
  .folio-summary { grid-template-columns: 1fr; }
  .booking-form-grid { grid-template-columns: 1fr; }
  .reservation-workspace { grid-template-columns: 1fr; }
  .reservation-service-panel { min-height: 23rem; }
  .reservation-meta-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .filter-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .room-plan-toolbar { grid-template-columns: 2.7rem minmax(10rem, 1fr) 2.7rem auto; }
  .room-plan-toolbar .room-search { grid-column: 1 / -1; grid-row: 2; }
  .hk-summary { grid-template-columns: repeat(3, 1fr); }
  .hk-toolbar { align-items: stretch; flex-wrap: wrap; }
  .hk-toolbar > span { width: 100%; margin-left: 0; }
  .catalog-layout, .inventory-overview { grid-template-columns: 1fr; }
  .property-grid { grid-template-columns: 1fr; }
  .lock-checkout-settings, .room-minibar-toolbar { grid-template-columns: 1fr; }
  .retail-minibar-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stock-document-meta, .stock-document-toolbar { grid-template-columns: 1fr; }
  .technical-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .direct-payment-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .settlement-payment-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .settlement-payment-row .button { justify-self: end; }
  .group-settlement-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .group-settlement-toolbar { flex-direction: column; }
  .group-settlement-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .group-view-tabs, .group-settlement-search { grid-column: 1 / -1; }
  .group-settlement-member.compact > header { grid-template-columns: auto minmax(0, 1fr) auto; }
  .group-member-metrics { grid-column: 2 / -1; grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 580px) {
  .dialog-actions { flex-wrap: wrap; }
  .dialog-checkout-action { position: static; order: -1; width: 100%; transform: none; }
  .rate-test-form, .rate-result-summary { grid-template-columns: 1fr; }
  .hourly-band-heading, .hourly-band-tools { align-items: stretch; flex-direction: column; }
  .hourly-band-tools label { width: 100%; }
  .brand-panel { min-height: 16rem; }
  .brand-panel h1 { font-size: 2.15rem; }
  .brand-copy { display: none; }
  .form-grid.two, .form-grid.three, .metric-grid { grid-template-columns: 1fr; }
  .technical-card-grid { grid-template-columns: 1fr; }
  .topbar { align-items: flex-start; }
  .encoder-status strong { display: none; }
  .date-chip { display: none; }
  .page-content { padding: 1rem; }
  .hero { align-items: flex-start; flex-direction: column; }
  .business-date { width: 100%; }
  .module-heading { align-items: flex-start; flex-direction: column; }
  .heading-actions { width: 100%; }
  .heading-actions .button { flex: 1; }
  .filter-bar { grid-template-columns: 1fr; }
  .room-plan-toolbar { grid-template-columns: 2.7rem 1fr 2.7rem; }
  .room-plan-toolbar .room-search, .room-plan-toolbar > .button { grid-column: 1 / -1; }
  .room-filter-toolbar { align-items: stretch; flex-direction: column; gap: 0; }
  .room-read-card-button { align-self: flex-end; margin-top: 0; }
  .guest-card-read-grid { grid-template-columns: 1fr; }
  .guest-card-read-grid > div.wide { grid-column: auto; }
  .retail-minibar-meta, .retail-minibar-footer { grid-template-columns: 1fr; }
  .room-plan-grid { grid-template-columns: 1fr; }
  .booking-estimate { grid-template-columns: 1fr; }
  .booking-estimate p { grid-column: auto; }
  .reservation-meta-grid, .reservation-stay-grid, .reservation-guest-grid, .reservation-total-card,
  .reservation-meta-grid.reservation-detail-meta, .reservation-stay-grid.reservation-detail-stay { grid-template-columns: 1fr; }
  .reservation-guest-grid .span-two { grid-column: auto; }
  .reservation-guest-grid .span-all { grid-column: auto; }
  .guest-suggestions button { grid-template-columns: 1fr; gap: .15rem; }
  .payment-overview-toolbar { align-items: stretch; flex-direction: column; }
  .invoice-preview-toolbar { align-items: stretch; flex-direction: column; }
  .static-qr-settings { grid-template-columns: 1fr; }
  .payment-static-qr { align-items: flex-start; flex-direction: column; }
  .direct-payment-grid, .settlement-payment-row { grid-template-columns: 1fr; }
  .group-settlement-summary { grid-template-columns: 1fr; }
  .group-settlement-controls { position: static; grid-template-columns: 1fr; }
  .group-settlement-controls > * { grid-column: 1; }
  .group-view-tabs { overflow-x: auto; }
  .group-view-tabs button { flex: 1; }
  .group-settlement-member.compact > header { grid-template-columns: auto minmax(0, 1fr) auto; }
  .group-member-metrics { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .group-member-selection b { display: none; }
  .group-settlement-section > header > button, .group-settlement-bucket > header > button { grid-template-columns: minmax(0, 1fr) auto auto; }
  .group-settlement-line { grid-template-columns: auto minmax(0, 1fr); }
  .group-settlement-line > input[type="number"], .group-settlement-line .group-charge-state { grid-column: 2; width: 100%; justify-self: stretch; }
  .dialog-action-summary { display: grid; gap: .05rem; }
  .dialog-action-summary strong { font-size: .68rem; }
  .dialog-action-summary span { font-size: .82rem; }
  .service-panel-heading { align-items: stretch; flex-direction: column; }
  .service-panel-heading input { width: 100%; }
  .draft-notice { align-items: flex-start; flex-direction: column; }
  .hk-summary { grid-template-columns: repeat(2, 1fr); }
  .hk-toolbar { display: grid; }
  .hk-toolbar label { width: 100%; }
}

.energy-device-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: .8rem; margin-bottom: 1rem; }
.energy-tool-switch { display: grid; grid-template-columns: repeat(2, minmax(15rem, 1fr)); gap: .9rem; margin-bottom: 1rem; }
.energy-tool-card { display: grid; gap: .28rem; min-height: 6.4rem; padding: 1rem 1.1rem; text-align: left; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: .85rem; cursor: pointer; transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.energy-tool-card:hover { border-color: var(--primary); transform: translateY(-1px); }
.energy-tool-card.active { border-color: var(--primary); box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary) 18%, transparent); background: color-mix(in srgb, var(--primary) 6%, var(--surface)); }
.energy-tool-card strong { font-size: 1rem; }
.energy-tool-card span { color: var(--ink-soft); }
.energy-tool-card small { align-self: end; color: var(--primary); font-weight: 750; }
.energy-tool-panel { border-top: 3px solid var(--primary); }
.energy-meter-reading { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: .7rem; margin: 1rem; padding: 1rem; border: 1px solid var(--line); border-radius: .75rem; background: var(--canvas); }
.energy-meter-reading strong { grid-column: 1 / -1; color: var(--primary); }
.energy-meter-reading span { display: grid; gap: .2rem; color: var(--ink-soft); font-size: .78rem; }
.energy-meter-reading b { color: var(--ink); font-size: .92rem; }
.energy-discovery-table { margin: .85rem 0 1rem; }
.energy-discovery-table code { color: var(--teal); font-size: .78rem; font-weight: 800; }
.energy-discovery-form { grid-template-columns: minmax(15rem, 1.5fr) repeat(2, minmax(8rem, .6fr)) auto; }
.energy-device-card { display: grid; gap: .35rem; padding: .9rem; border: 1px solid var(--line); border-radius: .75rem; background: var(--canvas); }
.energy-device-card > div { display: flex; align-items: center; gap: .5rem; }
.energy-device-card > .energy-device-actions { justify-content: space-between; margin-top: .35rem; padding-top: .55rem; border-top: 1px solid var(--line); }
.energy-device-card span, .energy-device-card small { color: var(--ink-soft); }
.energy-device-dot { width: .65rem; height: .65rem; border-radius: 50%; background: #a7adb2; box-shadow: 0 0 0 .2rem rgba(167, 173, 178, .15); }
.energy-device-card.online .energy-device-dot { background: #28a06a; box-shadow: 0 0 0 .2rem rgba(40, 160, 106, .15); }
.energy-device-card.offline { border-color: #e5c5c5; }
.energy-inline-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); align-items: end; gap: .8rem; margin-top: 1rem; padding: 1rem; border: 1px solid var(--line); border-radius: .75rem; background: var(--canvas); }
.energy-inline-form label { display: grid; gap: .35rem; }
.energy-inline-form p { grid-column: 1 / -1; margin: 0; color: var(--ink-soft); font-size: .82rem; }
.energy-gateway-configuration-actions { grid-column: 1 / -1; display: flex; align-items: center; gap: .8rem; }
.energy-inline-form .energy-gateway-configuration-actions p { grid-column: auto; flex: 1 1 auto; }
.energy-gateway-configuration-actions .button { flex: 0 1 28rem; min-height: 2.75rem; white-space: nowrap; }
.energy-form-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 1rem; }
.energy-warning-form { border-color: #e8c984; background: #fffaf0; }
.energy-policy-form { display: grid; grid-template-columns: repeat(5, minmax(9rem, 1fr)) auto; align-items: end; gap: .7rem; padding: .9rem; }
.energy-policy-form label { display: grid; gap: .3rem; color: var(--ink); font-size: .78rem; font-weight: 750; }
.energy-policy-form small { color: var(--ink-soft); font-size: .68rem; font-weight: 500; }
.energy-power-cell { display: flex; align-items: center; gap: .4rem; min-width: 10.5rem; }
.energy-power-cell .status { min-width: 3rem; justify-content: center; }
.energy-power-cell .button { min-width: 3rem; padding-inline: .6rem; }
@media (max-width: 1100px) { .energy-policy-form { grid-template-columns: repeat(2, minmax(10rem, 1fr)); } }
@media (max-width: 900px) {
  .energy-form-grid, .energy-policy-form, .energy-tool-switch { grid-template-columns: 1fr; }
  .energy-gateway-configuration-actions { align-items: stretch; flex-direction: column; }
  .energy-gateway-configuration-actions .button { flex-basis: auto; width: 100%; white-space: normal; }
}

@page { size: A4 portrait; margin: 12mm; }

@media print {
  body[data-print-section] { background: #fff; }
  body[data-print-section] .sidebar,
  body[data-print-section] .topbar,
  body[data-print-section] #pageContent > * { display: none !important; }
  body[data-print-section="stockReportPanel"] #stockReportPanel,
  body[data-print-section="minibarSalesPanel"] #minibarSalesPanel { display: block !important; margin: 0; border: 0; box-shadow: none; }
  body[data-print-section="stockDocumentPrint"] > *:not(#stockDocumentPrint) { display: none !important; }
  body[data-print-section="stockDocumentPrint"] #stockDocumentPrint { display: block !important; width: 186mm; margin: 0 auto; color: #1d2630; background: #fff; font: 9pt/1.35 Arial, sans-serif; }
  .stock-print-header { display: flex; justify-content: space-between; gap: 2rem; padding-bottom: 8mm; border-bottom: 2px solid #26333d; }
  .stock-print-header > div { display: grid; gap: 1mm; }
  .stock-print-header > div:last-child { justify-items: end; text-align: right; }
  .stock-print-header strong { font-size: 14pt; }
  .stock-print-header h1 { margin: 0; font-size: 17pt; }
  .stock-print-header span { color: #5e6b72; }
  .stock-print-meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin: 5mm 0; border: 1px solid #cfd5d7; background: #cfd5d7; }
  .stock-print-meta > div { display: grid; gap: 1mm; padding: 3mm; background: #fff; }
  .stock-print-meta > div.wide { grid-column: 1 / -1; }
  .stock-print-meta span { color: #647177; font-size: 8pt; }
  .stock-print-table { width: 100%; border-collapse: collapse; }
  .stock-print-table th, .stock-print-table td { padding: 2.2mm 1.7mm; border: 1px solid #9da8ac; white-space: normal; }
  .stock-print-table th { color: #1d2630; background: #edf1f2; font-size: 8pt; text-transform: none; }
  .stock-print-table .number-cell { text-align: right; }
  .stock-print-table tfoot td { background: #f4f6f6; }
  .stock-print-signatures { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6mm; margin-top: 8mm; text-align: center; break-inside: avoid; }
  .stock-print-signatures div { display: grid; gap: 1mm; min-height: 24mm; align-content: start; }
  .stock-print-signatures span { color: #68747b; font-size: 8pt; font-style: italic; }
  body[data-print-section] .app-shell { display: block; }
  body[data-print-section] .page-content { padding: 0; }
  body[data-print-section] .no-print { display: none !important; }
  body[data-print-section] .table-wrap { overflow: visible; }
  body[data-print-section] table { min-width: 0; width: 100%; }
  body[data-print-section="folioInvoicePrint"] > *:not(#folioInvoicePrint) { display: none !important; }
  body[data-print-section="folioInvoicePrint"] #folioInvoicePrint { display: block !important; box-sizing: border-box; width: 186mm; max-width: 186mm; margin: 0 auto; padding: 0; color: #1d2630; background: #fff; font: 9pt/1.25 Arial, sans-serif; }
  .invoice-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 2rem; padding-bottom: 1rem; border-bottom: 2px solid #26333d; }
  .invoice-header > div { display: grid; gap: .15rem; }
  .invoice-header > div:first-child strong { font-size: 15pt; }
  .invoice-header > div:last-child { justify-items: end; }
  .invoice-header h1 { margin: 0; color: #a77218; font-size: 18pt; }
  .invoice-header span, .invoice-header small { color: #68747b; }
  .invoice-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: .7rem 0; overflow: hidden; border: 1px solid #ddd6ca; border-radius: .5rem; background: #ddd6ca; }
  .invoice-meta > div { display: grid; gap: .1rem; min-height: 3rem; padding: .42rem .55rem; background: #faf8f4; }
  .invoice-meta span { color: #7a858b; font-size: 7.5pt; text-transform: uppercase; }
  .invoice-section { margin-top: .7rem; break-inside: auto; }
  .invoice-section h2 { margin: 0 0 .35rem; color: #a77218; font-size: 10.5pt; text-transform: uppercase; }
  .invoice-section table { width: 100%; border-collapse: collapse; }
  .invoice-section th, .invoice-section td { padding: .28rem .38rem; border-bottom: 1px solid #e7e2db; text-align: left; font-size: 8pt; }
  .invoice-section th { color: #6c777d; background: #f1eee8; font-size: 7.5pt; text-transform: uppercase; }
  .invoice-section th:last-child, .invoice-section td:last-child, .invoice-number { text-align: right; }
  .invoice-section tfoot td { border-top: 1px solid #bdb6ab; border-bottom: 0; font-weight: 800; }
  .invoice-total-box { display: grid; gap: .3rem; width: 44%; margin: .75rem 0 0 auto; padding: .65rem; border: 1px solid #d8d1c6; border-radius: .55rem; background: #faf8f4; break-inside: avoid-page; page-break-inside: avoid; }
  .invoice-total-box span { display: flex; justify-content: space-between; gap: 1rem; }
  .invoice-total-box .grand { padding-top: .45rem; border-top: 1px solid #c9c1b5; font-size: 11pt; text-transform: uppercase; }
  .invoice-total-box .balance { margin: .2rem -.75rem -.75rem; padding: .55rem .75rem; color: #a43f3f; background: #fff0f0; font-weight: 900; text-transform: uppercase; }
  .invoice-footer-grid { break-inside: avoid-page; page-break-inside: avoid; }
}
