:root {
  --brand: #0f766e;
  --brand-strong: #0b5f59;
  --brand-soft: #e7f5f2;
  --ink: #172326;
  --muted: #6f7d82;
  --line: #e3e9eb;
  --bg: #f4f7f7;
  --surface: #ffffff;
  --sidebar: #102b2f;
  --sidebar-soft: #173a3f;
  --gold: #c7a25c;
  --danger: #c2413a;
  --success: #15805f;
  --warning: #b47714;
  --shadow: 0 12px 32px rgba(17, 45, 49, 0.07);
  --radius: 16px;
  --font: "Inter", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  min-width: 1024px;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p { margin: 0; }

.boot-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 16px;
  background: var(--sidebar);
  color: #fff;
}
.boot-mark {
  width: 64px; height: 64px; border-radius: 20px;
  display: grid; place-items: center;
  background: linear-gradient(145deg, #d6bd83, #b98c3f);
  color: #14282b; font-size: 30px; font-weight: 800;
}
.boot-text { color: rgba(255,255,255,.7); font-size: 14px; }

/* Login */
.login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(540px, 1.15fr) minmax(430px, .85fr);
  background: var(--sidebar);
}
.login-brand {
  position: relative;
  overflow: hidden;
  padding: 74px 80px;
  display: flex;
  align-items: center;
  background:
    radial-gradient(circle at 14% 16%, rgba(199, 162, 92, .22), transparent 30%),
    radial-gradient(circle at 78% 78%, rgba(15, 118, 110, .42), transparent 36%),
    linear-gradient(135deg, #0b2226 0%, #12383c 58%, #0f2d31 100%);
  color: #fff;
}
.login-brand::before, .login-brand::after {
  content: ""; position: absolute; border: 1px solid rgba(255,255,255,.09); border-radius: 50%;
}
.login-brand::before { width: 520px; height: 520px; right: -170px; top: -210px; }
.login-brand::after { width: 360px; height: 360px; left: -130px; bottom: -180px; }
.login-brand-inner { position: relative; z-index: 2; max-width: 760px; }
.software-lockup { display: flex; align-items: center; gap: 16px; margin-bottom: 30px; }
.software-lockup .brand-seal { margin-bottom: 0; }
.software-name { color: #fff; font-size: 19px; font-weight: 800; letter-spacing: -.02em; }
.software-sub { color: rgba(255,255,255,.42); font-size: 9px; letter-spacing: .2em; margin-top: 5px; }
.brand-seal {
  width: 78px; height: 78px; border-radius: 24px;
  display: grid; place-items: center;
  background: linear-gradient(150deg, #dec78e, #b98c3f);
  color: #14282b; font-size: 38px; font-weight: 900;
  box-shadow: 0 18px 38px rgba(0,0,0,.2);
  margin-bottom: 34px;
}
.login-eyebrow {
  color: #d8be83; letter-spacing: .28em; text-transform: uppercase;
  font-size: 12px; font-weight: 700; margin-bottom: 16px;
}
.login-brand h1 {
  font-size: clamp(42px, 4.5vw, 64px);
  line-height: 1.14; letter-spacing: -.04em; font-weight: 800;
}
.login-brand .brand-sub {
  margin-top: 18px; color: rgba(255,255,255,.68); font-size: 17px; line-height: 1.8; max-width: 620px;
}
.login-meta {
  margin-top: 56px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px; max-width: 700px;
}
.login-meta-item {
  padding: 18px 18px; border: 1px solid rgba(255,255,255,.1); border-radius: 14px;
  background: rgba(255,255,255,.04); backdrop-filter: blur(8px);
}
.login-meta-label { color: rgba(255,255,255,.48); font-size: 11px; letter-spacing: .12em; margin-bottom: 8px; }
.login-meta-value { font-size: 13px; line-height: 1.6; color: rgba(255,255,255,.88); }
.login-side {
  display: flex; align-items: center; justify-content: center; padding: 52px 64px;
  background: #f8faf9;
}
.login-card { width: 100%; max-width: 430px; }
.login-card h2 { font-size: 30px; letter-spacing: -.03em; margin-bottom: 8px; }
.login-subtitle { color: var(--muted); line-height: 1.7; margin-bottom: 30px; }
.login-card .form-field { margin-bottom: 18px; }
.login-card .input { height: 50px; }
.login-submit { width: 100%; height: 50px; font-size: 15px; margin-top: 8px; }
.login-error {
  display: none; margin-bottom: 16px; padding: 12px 14px; border-radius: 12px;
  background: #fef2f2; border: 1px solid #fecaca; color: #9f2d27; font-size: 13px; line-height: 1.5;
}
.login-error.show { display: block; }
.demo-hint {
  margin-top: 24px; padding: 16px 18px; border-radius: 14px; background: #fff;
  border: 1px dashed #cfdadb; color: var(--muted); line-height: 1.8; font-size: 13px;
}
.demo-hint strong { color: var(--ink); }
.login-footnote { margin-top: 28px; color: #93a0a4; font-size: 12px; line-height: 1.7; }

/* App shell */
.app-shell { min-height: 100vh; background: var(--bg); }
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: 236px; z-index: 30;
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, #102b2f 0%, #0c2428 100%);
  color: #fff; padding: 22px 15px 18px;
}
.brand-block { display: flex; gap: 12px; align-items: center; padding: 4px 8px 20px; border-bottom: 1px solid rgba(255,255,255,.08); }
.brand-logo {
  width: 42px; height: 42px; border-radius: 13px; flex: 0 0 auto;
  display: grid; place-items: center; font-size: 20px; font-weight: 900;
  color: #152a2d; background: linear-gradient(150deg, #dec78e, #b98c3f);
}
.brand-name { font-size: 16px; font-weight: 800; line-height: 1.35; letter-spacing: -.02em; }
.brand-sub { color: rgba(255,255,255,.46); font-size: 11px; margin-top: 4px; }
.nav-group { padding-top: 18px; }
.nav-label { color: rgba(255,255,255,.34); font-size: 10px; letter-spacing: .16em; padding: 0 12px 8px; }
.nav-item {
  display: flex; align-items: center; gap: 11px; min-height: 41px; padding: 0 12px; margin: 2px 0;
  border-radius: 11px; color: rgba(255,255,255,.66); font-size: 13px; transition: .16s ease;
}
.nav-item:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav-item.active { background: linear-gradient(90deg, rgba(199,162,92,.18), rgba(255,255,255,.06)); color: #fff; box-shadow: inset 2px 0 0 var(--gold); }
.nav-icon { width: 18px; height: 18px; flex: 0 0 18px; opacity: .9; }
.nav-icon svg { width: 18px; height: 18px; }
.sidebar-footer { margin-top: auto; padding: 14px 10px 0; border-top: 1px solid rgba(255,255,255,.08); color: rgba(255,255,255,.38); font-size: 11px; line-height: 1.7; }
.main-shell { margin-left: 236px; min-height: 100vh; }
.topbar {
  position: sticky; top: 0; z-index: 20; height: 72px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 0 28px; background: rgba(255,255,255,.94); border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.topbar-left { display: flex; align-items: center; gap: 18px; min-width: 0; }
.topbar-brand { display: none; }
.page-title { font-size: 19px; font-weight: 800; letter-spacing: -.02em; }
.breadcrumb { color: var(--muted); font-size: 12px; margin-top: 3px; }
.topbar-right { display: flex; align-items: center; gap: 12px; }
.date-chip { padding: 8px 12px; border-radius: 10px; background: #f2f6f5; color: #536468; font-size: 12px; }
.user-chip { display: flex; align-items: center; gap: 10px; padding: 5px 6px 5px 10px; border-radius: 12px; background: #f6f8f7; }
.avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-strong); font-weight: 800; }
.user-meta { line-height: 1.25; }
.user-name { font-size: 12px; font-weight: 700; }
.user-role { font-size: 10px; color: var(--muted); margin-top: 2px; }
.icon-btn { width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--muted); display: grid; place-items: center; }
.icon-btn:hover { color: var(--ink); border-color: #cbd7d8; }
.page { padding: 24px 28px 44px; max-width: 1720px; margin: 0 auto; }
.page-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.page-heading { font-size: 26px; font-weight: 800; letter-spacing: -.035em; }
.page-sub { margin-top: 7px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.header-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* Shared */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 38px; padding: 0 15px; border-radius: 10px; border: 1px solid transparent;
  font-size: 13px; font-weight: 700; transition: .16s ease; white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 18px rgba(15,118,110,.18); }
.btn-primary:hover { background: var(--brand-strong); }
.btn-secondary { background: #fff; color: #33464a; border-color: #d6dfe1; }
.btn-secondary:hover { border-color: #b8c8ca; background: #fbfcfc; }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover { background: #f2f6f5; color: var(--ink); }
.btn-danger { background: #fef2f2; color: #a7332d; border-color: #f5c8c5; }
.btn-danger:hover { background: #fee7e5; }
.btn-sm { min-height: 30px; padding: 0 10px; font-size: 12px; border-radius: 8px; }
.btn-block { width: 100%; }
.text-link { color: var(--brand); font-weight: 700; font-size: 12px; background: none; border: none; padding: 0; }
.text-link:hover { text-decoration: underline; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.mono { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }
.divider { height: 1px; background: var(--line); margin: 18px 0; }
.row { display: flex; align-items: center; gap: 10px; }
.row.between { justify-content: space-between; }
.row.wrap { flex-wrap: wrap; }

.card, .panel {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 6px 20px rgba(17,45,49,.035);
}
.panel-head { padding: 18px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.panel-title { font-size: 15px; font-weight: 800; letter-spacing: -.01em; }
.panel-sub { color: var(--muted); font-size: 12px; margin-top: 4px; }
.panel-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.panel-body { padding: 20px; }

.kpi-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.kpi-card { padding: 18px 18px 16px; min-height: 112px; position: relative; overflow: hidden; }
.kpi-card::after { content: ""; position: absolute; right: -24px; bottom: -34px; width: 100px; height: 100px; border-radius: 50%; background: var(--brand-soft); opacity: .5; }
.kpi-label { color: var(--muted); font-size: 12px; }
.kpi-value { margin-top: 10px; font-size: 28px; line-height: 1; font-weight: 800; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.kpi-value.small-value { font-size: 24px; }
.kpi-hint { margin-top: 10px; color: #89969a; font-size: 11px; position: relative; z-index: 1; }
.kpi-accent { color: var(--brand); }

.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 14px; flex-wrap: wrap; }
.filter-group { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.input, .select, .textarea {
  width: 100%; border: 1px solid #d8e1e2; border-radius: 10px; background: #fff; color: var(--ink);
  outline: none; transition: border-color .15s, box-shadow .15s;
}
.input, .select { height: 40px; padding: 0 12px; }
.textarea { min-height: 92px; padding: 10px 12px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { border-color: #72b7ae; box-shadow: 0 0 0 3px rgba(15,118,110,.1); }
.select.compact { width: auto; min-width: 120px; height: 36px; }
.input.compact { width: 220px; height: 36px; }
.search-input { width: 230px; height: 36px; }
.form-field { display: flex; flex-direction: column; gap: 7px; }
.form-field label { color: #435357; font-size: 12px; font-weight: 700; }
.field-hint { color: #93a0a4; font-size: 11px; line-height: 1.5; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.form-grid.three { grid-template-columns: repeat(3, 1fr); }
.form-field.full { grid-column: 1 / -1; }
.checkbox-row { display: flex; align-items: center; gap: 9px; color: #435357; font-size: 13px; }
.checkbox-row input { width: 16px; height: 16px; accent-color: var(--brand); }

.status-badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 999px;
  font-size: 11px; font-weight: 700; white-space: nowrap;
}
.status-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-vacant { background: #e8f7ef; color: #16704f; }
.status-occupied { background: #e8f1ff; color: #2d5fa8; }
.status-reserved { background: #fff3df; color: #a5640b; }
.status-cleaning { background: #f3ecff; color: #7450a8; }
.status-maintenance { background: #eef1f2; color: #617074; }
.status-in_house { background: #e8f1ff; color: #2d5fa8; }
.status-checked_out { background: #eef1f2; color: #617074; }
.status-cancelled { background: #f9eaea; color: #9b413b; }
.status-success { background: #e8f7ef; color: #16704f; }
.status-running { background: #fff3df; color: #a5640b; }
.status-failed { background: #f9eaea; color: #9b413b; }

.loading-state, .empty-state {
  min-height: 180px; display: grid; place-items: center; align-content: center; gap: 10px;
  color: var(--muted); text-align: center; font-size: 13px; line-height: 1.7; padding: 26px;
}
.spinner {
  width: 28px; height: 28px; border-radius: 50%; border: 3px solid #dfe7e8; border-top-color: var(--brand);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Front desk */
.frontdesk-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
.room-board { min-height: 520px; }
.floor-block + .floor-block { margin-top: 18px; padding-top: 18px; border-top: 1px dashed #e2e8e9; }
.floor-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.floor-title strong { font-size: 13px; }
.floor-title span { color: var(--muted); font-size: 11px; }
.room-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 10px; }
.room-card {
  position: relative; min-height: 106px; border-radius: 13px; border: 1px solid transparent;
  padding: 12px 12px 10px; text-align: left; overflow: hidden; transition: .16s ease;
  display: flex; flex-direction: column; gap: 5px;
}
.room-card:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(17,45,49,.1); }
.room-card::after { content: ""; position: absolute; right: -18px; bottom: -22px; width: 56px; height: 56px; border-radius: 50%; background: rgba(255,255,255,.44); }
.room-card.status-vacant { background: #eaf8f0; border-color: #c8ebd9; color: #17694d; }
.room-card.status-occupied { background: #eaf2ff; border-color: #cadcfb; color: #2c5b9c; }
.room-card.status-reserved { background: #fff5e4; border-color: #f3ddb3; color: #9d610b; }
.room-card.status-cleaning { background: #f4edff; border-color: #e3d5f9; color: #68459d; }
.room-card.status-maintenance { background: #eef1f2; border-color: #dce2e3; color: #5e6b6e; }
.room-card-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; position: relative; z-index: 1; }
.room-number { font-size: 20px; line-height: 1; font-weight: 800; letter-spacing: -.03em; }
.room-status-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; opacity: .72; }
.room-type { font-size: 11px; opacity: .78; position: relative; z-index: 1; }
.room-price { font-size: 11px; font-weight: 700; margin-top: auto; position: relative; z-index: 1; }
.room-guest { font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; position: relative; z-index: 1; }
.room-meta { font-size: 10px; opacity: .73; position: relative; z-index: 1; }
.desk-side { display: flex; flex-direction: column; gap: 14px; }
.side-section .panel-body { padding: 14px 16px; }
.side-list { display: flex; flex-direction: column; gap: 8px; }
.side-item {
  width: 100%; text-align: left; border: 1px solid #e7edee; background: #fbfcfc; border-radius: 11px;
  padding: 10px 11px; display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.side-item:hover { background: #f4f9f8; border-color: #d2e7e3; }
.side-item-title { font-size: 12px; font-weight: 700; }
.side-item-sub { font-size: 10px; color: var(--muted); margin-top: 4px; }
.side-item-right { text-align: right; font-size: 10px; color: var(--muted); flex: 0 0 auto; }
.mini-empty { color: #9aa6a9; font-size: 12px; text-align: center; padding: 18px 8px; line-height: 1.6; }

/* Tables */
.table-wrap { width: 100%; overflow-x: auto; border-radius: 12px; border: 1px solid var(--line); }
.data-table { width: 100%; border-collapse: collapse; min-width: 760px; font-size: 12px; }
.data-table th {
  padding: 11px 12px; background: #f7fafa; color: #657377; font-size: 11px; font-weight: 700;
  text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap;
}
.data-table td { padding: 11px 12px; border-bottom: 1px solid #edf1f2; vertical-align: middle; }
.data-table tbody tr:hover { background: #fbfdfd; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.data-table th.num { text-align: right; }
.data-table .actions { display: flex; gap: 6px; flex-wrap: wrap; }
.table-empty { padding: 34px; text-align: center; color: var(--muted); font-size: 13px; }
.cell-main { font-weight: 700; }
.cell-sub { color: var(--muted); font-size: 10px; margin-top: 3px; }

/* Modal */
.modal-overlay {
  position: fixed; inset: 0; z-index: 100; background: rgba(9,30,33,.5);
  display: flex; align-items: center; justify-content: center; padding: 30px;
  animation: fadeIn .15s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal-card {
  width: min(760px, calc(100vw - 100px)); max-height: calc(100vh - 60px); overflow: auto;
  background: #fff; border-radius: 18px; box-shadow: 0 30px 80px rgba(4,24,27,.28);
}
.modal-card.wide { width: min(1040px, calc(100vw - 80px)); }
.modal-head { position: sticky; top: 0; z-index: 2; background: #fff; padding: 20px 22px 16px; border-bottom: 1px solid var(--line); display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.modal-title { font-size: 20px; font-weight: 800; letter-spacing: -.025em; }
.modal-sub { color: var(--muted); font-size: 12px; margin-top: 5px; line-height: 1.55; }
.modal-close { width: 32px; height: 32px; border-radius: 9px; border: 1px solid var(--line); background: #fff; color: var(--muted); font-size: 18px; }
.modal-body { padding: 20px 22px; }
.modal-footer { position: sticky; bottom: 0; z-index: 2; background: #fff; padding: 14px 22px 18px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 10px; }
.modal-section + .modal-section { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.modal-section-title { font-size: 13px; font-weight: 800; margin-bottom: 12px; }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 18px; }
.info-item { padding: 10px 12px; border-radius: 11px; background: #f8fafa; }
.info-label { color: var(--muted); font-size: 10px; margin-bottom: 5px; }
.info-value { font-size: 13px; font-weight: 700; line-height: 1.45; }
.action-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.action-card { border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 14px; text-align: left; }
.action-card:hover { border-color: #b9d9d4; background: #f7fbfa; }
.action-card strong { display: block; font-size: 13px; margin-bottom: 5px; }
.action-card span { color: var(--muted); font-size: 11px; line-height: 1.45; }

/* Toast */
.toast-root { position: fixed; right: 24px; bottom: 24px; z-index: 200; display: flex; flex-direction: column; gap: 10px; }
.toast {
  min-width: 260px; max-width: 420px; padding: 13px 15px; border-radius: 12px; background: #102b2f; color: #fff;
  box-shadow: 0 16px 38px rgba(3,23,26,.24); font-size: 13px; line-height: 1.55; animation: toastIn .2s ease;
}
.toast.success { background: #0f5f4b; }
.toast.error { background: #8f312b; }
.toast.info { background: #24465b; }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* Tabs */
.tabs { display: flex; align-items: center; gap: 4px; background: #edf3f2; border-radius: 11px; padding: 4px; }
.tab { border: 0; background: transparent; padding: 7px 13px; border-radius: 8px; color: #617174; font-size: 12px; font-weight: 700; }
.tab.active { background: #fff; color: var(--brand-strong); box-shadow: 0 2px 8px rgba(17,45,49,.08); }

/* Reports */
.report-kpis { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 12px; }
.report-kpis .kpi-card { min-height: 98px; padding: 15px; }
.report-kpis .kpi-value { font-size: 22px; margin-top: 8px; }
.trend-up { color: #11795a; }
.trend-down { color: #b33a34; }
.chart-card { padding: 18px 20px 12px; }
.chart-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 8px; }
.chart-legend { display: flex; gap: 16px; color: var(--muted); font-size: 11px; }
.legend-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }
.chart-svg { width: 100%; height: 290px; overflow: visible; }
.chart-grid-line { stroke: #e9eff0; stroke-width: 1; }
.chart-axis-text { fill: #8e9b9f; font-size: 10px; }
.chart-line-current { fill: none; stroke: #0f766e; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.chart-line-previous { fill: none; stroke: #b8c4c7; stroke-width: 2; stroke-dasharray: 5 4; stroke-linecap: round; stroke-linejoin: round; }
.chart-area { fill: rgba(15,118,110,.08); }
.chart-point { fill: #0f766e; }
.report-table-wrap { margin-top: 16px; }
.report-table { min-width: 1080px; }

/* Mock data */
.mock-layout { display: grid; grid-template-columns: 420px minmax(0, 1fr); gap: 18px; align-items: start; }
.summary-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.summary-item { padding: 12px 14px; background: #f8fafa; border-radius: 11px; }
.summary-label { color: var(--muted); font-size: 10px; }
.summary-value { font-size: 18px; font-weight: 800; margin-top: 5px; font-variant-numeric: tabular-nums; }
.check-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.check-item { padding: 9px 10px; border-radius: 9px; font-size: 11px; display: flex; align-items: center; gap: 7px; }
.check-item.ok { background: #ebf8f1; color: #147452; }
.check-item.fail { background: #fdf0ef; color: #a23832; }
.check-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.sample-table { margin-top: 14px; }
.sample-table .data-table { min-width: 680px; }
.notice {
  padding: 12px 14px; border-radius: 11px; background: #f5f9f8; border: 1px solid #dce8e5;
  color: #526568; font-size: 12px; line-height: 1.65;
}
.notice.warning { background: #fff9ec; border-color: #f1dfb6; color: #8a5a0b; }

/* Settings */
.settings-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(360px, .75fr); gap: 18px; align-items: start; }
.info-list { display: grid; gap: 10px; }
.info-row { display: flex; justify-content: space-between; gap: 18px; padding: 11px 0; border-bottom: 1px solid #edf1f2; font-size: 12px; }
.info-row:last-child { border-bottom: 0; }
.info-row span:first-child { color: var(--muted); }
.info-row span:last-child { font-weight: 700; text-align: right; }

/* Print */
#print-root { display: none; }
.print-sheet { background: #fff; color: #111; padding: 10mm; font-family: var(--font); }
.print-head { display: flex; justify-content: space-between; gap: 24px; border-bottom: 2px solid #111; padding-bottom: 10px; margin-bottom: 14px; }
.print-hotel { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.print-title { font-size: 16px; font-weight: 700; margin-top: 5px; }
.print-meta { text-align: right; color: #555; font-size: 10px; line-height: 1.7; }
.print-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 12px; }
.print-kpi { border: 1px solid #bbb; padding: 8px 10px; }
.print-kpi span { display: block; color: #666; font-size: 9px; }
.print-kpi strong { display: block; font-size: 15px; margin-top: 4px; }
.print-table { width: 100%; border-collapse: collapse; font-size: 9px; }
.print-table th, .print-table td { border: 1px solid #bbb; padding: 5px 6px; text-align: right; }
.print-table th { background: #eee; text-align: center; font-weight: 700; }
.print-table td:first-child, .print-table th:first-child { text-align: left; }
.print-footer { margin-top: 12px; border-top: 1px solid #999; padding-top: 6px; display: flex; justify-content: space-between; color: #666; font-size: 9px; }
@media print {
  body { background: #fff; min-width: 0; }
  .app-shell, .modal-overlay, .toast-root, .boot-screen { display: none !important; }
  #print-root { display: block !important; }
  .print-sheet { padding: 0; }
  .print-table thead { display: table-header-group; }
  .print-table tr { page-break-inside: avoid; }
}

@media (max-width: 1360px) {
  .kpi-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .report-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .room-grid { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); }
}

@media (max-width: 1180px) {
  .frontdesk-layout { grid-template-columns: 1fr; }
  .desk-side { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mock-layout { grid-template-columns: 1fr; }
  .login-brand { padding: 56px 52px; }
  .login-side { padding: 44px 38px; }
  .login-meta { grid-template-columns: 1fr 1fr; }
  .login-meta-item:nth-child(3) { grid-column: 1 / -1; }
}

/* v1.3: payment, filters, pagination */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.filter-bar .search-input { min-width: 220px; flex: 1 1 220px; }
.filter-bar .input.compact,
.filter-bar .select.compact { width: auto; min-width: 112px; }
.report-toolbar { align-items: flex-start; gap: 12px; flex-direction: column; }
.method-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #f4f7f7;
  color: #41545a;
  font-size: 13px;
}
.method-summary strong { color: #0f766e; }
.pager {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 20px;
  border-top: 1px solid #e6ecec;
}
.pager-info { color: #667a80; font-size: 13px; }
.pager-actions { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pager-actions .btn { min-width: 34px; }
.text-danger { color: #b42318 !important; }
.check-row { display: flex; align-items: center; gap: 8px; font-weight: 500; color: #41545a; }
.form-section-title { margin: 18px 0 10px; font-size: 14px; font-weight: 700; color: #263a40; }
.payment-weights { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.status-payment-paid { background: #e7f6ee; color: #15805f; }
.status-payment-partial { background: #fff4df; color: #a56700; }
.status-payment-unpaid { background: #fdecec; color: #b42318; }
