:root {
  color-scheme: light;
  --ink: #1c2b36;
  --muted: #82909a;
  --line: #e9edef;
  --canvas: #f7f8f6;
  --white: #fff;
  --navy: #172b3a;
  --teal: #168f78;
  --teal-light: #e4f5ef;
  --gold: #d78a28;
  --blue: #4388d4;
  --violet: #8a67c7;
  --coral: #d96f62;
  --red: #c96e6c;
  --shadow: 0 5px 20px rgba(30, 50, 60, .045);
  font-family: "DM Sans", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: var(--canvas); color: var(--ink); font-size: 13px; }
button, input, select { font: inherit; }
button { cursor: pointer; }
.app-shell { display: flex; min-height: 100vh; }

.sidebar {
  position: fixed; inset: 0 auto 0 0; z-index: 5; display: flex; flex-direction: column;
  width: 250px; overflow-y: auto; padding: 27px 17px 17px; color: #d3dde1; background: var(--navy);
}
.brand { display: flex; align-items: center; gap: 11px; margin: 0 0 30px 7px; color: #fff; text-decoration: none; }
.brand-mark { display: grid; width: 36px; height: 36px; place-items: center; border: 1px solid rgba(255,255,255,.3); border-radius: 11px; }
.brand-mark svg { width: 23px; fill: none; stroke: #b7d8ce; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.brand-name { font: 800 20px Manrope, sans-serif; letter-spacing: -1px; line-height: 1.05; }
.brand-name > span { color: #82c4ac; }
.brand-name small { display: block; margin-top: 5px; color: #8c9da7; font: 600 8px "DM Sans", sans-serif; letter-spacing: 1.45px; }
.property-switcher { display: flex; align-items: center; gap: 10px; padding: 11px 9px; margin-bottom: 27px; border: 1px solid rgba(255,255,255,.09); border-radius: 8px; background: rgba(255,255,255,.045); }
.property-avatar { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 7px; background: #d7bc91; color: #3a3b33; font: 700 14px Manrope, sans-serif; }
.property-copy { min-width: 0; flex: 1; }
.property-copy strong, .property-copy span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.property-copy strong { color: #fff; font-size: 11px; font-weight: 600; }
.property-copy span { margin-top: 3px; color: #91a1a9; font-size: 10px; }
.chevron { color: #aab8bf; font-size: 17px; }
.nav-label { padding-left: 10px; margin: 0 0 9px; color: #718692; font-size: 9px; font-weight: 700; letter-spacing: 1.15px; }
.main-nav { display: grid; gap: 4px; }
.nav-item { display: flex; align-items: center; gap: 12px; min-height: 39px; padding: 0 10px; border: 0; border-radius: 6px; background: transparent; color: #b5c2c8; text-align: left; font-size: 12px; transition: background .16s, color .16s; }
.nav-item:hover { background: rgba(255,255,255,.07); color: #fff; }
.nav-item.active { background: #274354; color: #fff; font-weight: 600; box-shadow: inset 3px 0 var(--teal); }
.nav-icon { display: grid; width: 17px; place-items: center; color: #9cabb2; font-size: 16px; }
.nav-item.active .nav-icon { color: #8bc7b0; }
.nav-count { min-width: 20px; padding: 2px 6px; margin-left: auto; border-radius: 8px; background: #3e8379; color: #fff; text-align: center; font-size: 9px; }
.nav-count.soft { background: rgba(255,255,255,.11); color: #c0cbd0; }
.reports-label { margin-top: 29px; }
.sidebar-spacer { flex: 1; min-height: 20px; }
.help-card { padding: 13px; margin: 0 1px 15px; border: 1px solid rgba(255,255,255,.08); border-radius: 8px; background: rgba(255,255,255,.035); }
.help-icon { display: grid; width: 25px; height: 25px; place-items: center; margin-bottom: 10px; border-radius: 7px; background: #314b57; color: #97cdb8; }
.help-card strong, .help-card > span { display: block; }
.help-card strong { color: #fff; font-size: 11px; }
.help-card > span { margin: 5px 0 11px; color: #9baab0; font-size: 10px; line-height: 1.5; }
.help-card button { padding: 0; border: 0; background: none; color: #9dd1bd; font-size: 10px; font-weight: 600; }
.help-card button span { margin-left: 4px; }
.reset-button { display: flex; align-items: center; gap: 8px; padding: 10px; margin-bottom: 12px; border: 0; background: transparent; color: #9eacb3; text-align: left; font-size: 11px; }
.reset-button:hover { color: #fff; }
.profile { display: flex; align-items: center; gap: 9px; padding: 14px 3px 1px; border-top: 1px solid rgba(255,255,255,.1); }
.profile-avatar { display: grid; width: 31px; height: 31px; flex: 0 0 auto; place-items: center; border-radius: 50%; background: #d7b597; color: #46362d; font-size: 10px; font-weight: 700; }
.profile-info { flex: 1; }
.profile-info strong, .profile-info span { display: block; }
.profile-info strong { color: #fff; font-size: 10px; font-weight: 600; }
.profile-info span { margin-top: 3px; color: #8e9fa8; font-size: 9px; }
.profile-menu { border: 0; background: transparent; color: #aebbc1; font-size: 18px; }

.main-area { width: calc(100% - 250px); min-height: 100vh; margin-left: 250px; }
.topbar { position: sticky; top: 0; z-index: 3; display: flex; height: 62px; align-items: center; justify-content: space-between; padding: 0 5.1%; border-bottom: 1px solid #ecefef; background: rgba(255,255,255,.94); backdrop-filter: blur(12px); }
.breadcrumbs { color: #9aa5aa; font-size: 11px; }
.breadcrumbs span { padding: 0 8px; color: #c4ccce; }
.breadcrumbs strong { color: #455660; font-weight: 600; }
.topbar-actions { display: flex; align-items: center; gap: 17px; }
.today-label { color: #78878f; font-size: 11px; white-space: nowrap; }
.icon-button { position: relative; display: grid; width: 30px; height: 30px; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: #63747c; font-size: 15px; }
.notification-button i { position: absolute; top: 6px; right: 6px; width: 5px; height: 5px; border: 1px solid #fff; border-radius: 50%; background: var(--red); }
.topbar-divider { width: 1px; height: 25px; background: var(--line); }
.top-avatar { width: 29px; height: 29px; }
.mobile-menu { display: none; border: 0; background: transparent; color: var(--ink); font-size: 19px; }
.page-content { max-width: 1440px; padding: 34px 5.1% 55px; margin: auto; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.eyebrow { margin-bottom: 7px; color: #929fa3; font-size: 10px; font-weight: 600; letter-spacing: .8px; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 6px; color: #20313c; font: 700 24px Manrope, sans-serif; letter-spacing: -.8px; }
.page-heading p { margin: 0; color: #88959a; font-size: 11px; }
.heading-actions { display: flex; gap: 8px; }
.button { display: inline-flex; min-height: 36px; align-items: center; justify-content: center; gap: 8px; padding: 0 13px; border: 1px solid #e3e8e8; border-radius: 6px; background: #fff; color: #43545d; font-size: 11px; font-weight: 600; transition: .15s ease; }
.button:hover { border-color: #b5c9c4; background: #f8fbf9; }
.button-primary { border-color: var(--teal); background: var(--teal); color: #fff; box-shadow: 0 3px 10px rgba(22,143,120,.24); }
.button-primary:hover { border-color: #107761; background: #107761; }
.button .plus { font-size: 16px; font-weight: 400; line-height: 0; }

.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; margin-bottom: 17px; }
.stat-card, .panel { border: 1px solid #edf0ef; border-radius: 8px; background: #fff; box-shadow: var(--shadow); }
.stat-card { min-height: 118px; padding: 15px 16px 13px; }
.stat-card:nth-child(1) { border-top: 3px solid var(--teal); }
.stat-card:nth-child(2) { border-top: 3px solid var(--blue); }
.stat-card:nth-child(3) { border-top: 3px solid var(--gold); }
.stat-card:nth-child(4) { border-top: 3px solid var(--violet); }
.stat-top { display: flex; align-items: center; justify-content: space-between; color: #7e8d92; font-size: 10px; }
.stat-icon { display: grid; width: 27px; height: 27px; place-items: center; border-radius: 7px; background: #eff5f3; color: #4c9384; font-size: 14px; }
.stat-card:nth-child(2) .stat-icon { background: #eaf2fc; color: var(--blue); }
.stat-card:nth-child(3) .stat-icon { background: #fff3e1; color: var(--gold); }
.stat-card:nth-child(4) .stat-icon { background: #f1ecfa; color: var(--violet); }
.stat-card:nth-child(2) .stat-value small, .stat-card:nth-child(2) .stat-foot b { color: var(--blue); }
.stat-card:nth-child(3) .stat-value small, .stat-card:nth-child(3) .stat-foot b { color: var(--gold); }
.stat-card:nth-child(4) .stat-value small, .stat-card:nth-child(4) .stat-foot b { color: var(--violet); }
.stat-value { display: flex; align-items: baseline; gap: 8px; margin-top: 10px; color: #263843; font: 700 23px Manrope, sans-serif; letter-spacing: -.8px; }
.stat-value small { color: #55a18b; font: 600 9px "DM Sans", sans-serif; letter-spacing: 0; }
.stat-foot { margin-top: 4px; color: #9aa5a8; font-size: 9px; }
.stat-foot b { color: #579b86; font-weight: 600; }
.overview-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(260px, .95fr); gap: 15px; margin-bottom: 15px; }
.panel { overflow: hidden; }
.panel-header { display: flex; align-items: flex-start; justify-content: space-between; padding: 17px 18px 12px; }
.panel-header h2 { margin: 0; color: #2a3a43; font: 700 13px Manrope, sans-serif; }
.panel-subtitle { margin: 5px 0 0; color: #99a4a8; font-size: 10px; }
.period-select { padding: 6px 9px; border: 1px solid #e8eded; border-radius: 5px; background: white; color: #687980; font-size: 10px; }
.chart-wrap { height: 188px; padding: 4px 17px 16px; }
.chart { width: 100%; height: 100%; overflow: visible; }
.chart-grid { stroke: #eef1f0; stroke-dasharray: 3 4; stroke-width: 1; }
.chart-label { fill: #a0aaad; font: 9px "DM Sans", sans-serif; }
.chart-area { fill: url(#areaFill); }
.chart-line { fill: none; stroke: var(--teal); stroke-linecap: round; stroke-linejoin: round; stroke-width: 2.5; }
.chart-dot { fill: #fff; stroke: var(--teal); stroke-width: 2; }
.legend { display: flex; gap: 15px; padding: 0 18px 14px; color: #879599; font-size: 9px; }
.legend span { display: flex; align-items: center; gap: 6px; }
.legend i { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); }
.legend .muted-dot { background: #c9d8d3; }
.arrival-list { padding: 0 17px 7px; }
.arrival { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-top: 1px solid #f0f2f1; }
.guest-avatar { display: grid; width: 32px; height: 32px; flex: 0 0 auto; place-items: center; border-radius: 50%; background: #e8efeb; color: #588579; font-size: 10px; font-weight: 700; }
.guest-avatar.gold { background: #f2ecdf; color: #a48250; }
.guest-avatar.rose { background: #f5e9e7; color: #b57470; }
.arrival-info { min-width: 0; flex: 1; }
.arrival-info strong, .arrival-info span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.arrival-info strong { color: #394a52; font-size: 10px; font-weight: 600; }
.arrival-info span { margin-top: 4px; color: #9aa5a8; font-size: 9px; }
.arrival-time { color: #65777e; font-size: 9px; font-weight: 600; }
.panel-link { display: inline-block; padding: 7px 17px 15px; color: #438d7f; text-decoration: none; font-size: 10px; font-weight: 600; }
.panel-link:hover { color: #2c6e63; }
.lower-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(260px, .95fr); gap: 15px; }
.table-panel .panel-header { align-items: center; }
.text-link { border: 0; background: transparent; color: #438d7f; font-size: 10px; font-weight: 600; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; white-space: nowrap; }
th { padding: 10px 16px; border-top: 1px solid #f0f2f1; border-bottom: 1px solid #f0f2f1; background: #fbfcfb; color: #9aa5a8; font-size: 9px; font-weight: 600; }
td { padding: 11px 16px; border-bottom: 1px solid #f1f3f2; color: #607078; font-size: 10px; }
tr:last-child td { border-bottom: 0; }
.table-guest { display: flex; align-items: center; gap: 8px; color: #36474f; font-weight: 600; }
.table-avatar { width: 23px; height: 23px; border-radius: 50%; object-fit: cover; background: #e8efeb; }
.room-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; padding: 5px 16px 14px; }
.room-card { padding: 11px; border: 1px solid #edf0ee; border-radius: 6px; transition: border-color .15s, background .15s; }
.room-card:hover { border-color: #a9d9cb; background: #f7fcfa; }
.room-top { display: flex; align-items: center; justify-content: space-between; }
.room-number { color: #354750; font: 700 12px Manrope, sans-serif; }
.room-type { margin: 4px 0 10px; color: #95a0a4; font-size: 9px; }
.room-status, .status-pill { display: inline-flex; align-items: center; gap: 5px; padding: 4px 7px; border-radius: 10px; background: #edf5f1; color: #548875; font-size: 9px; }
.room-status::before, .status-pill::before { width: 5px; height: 5px; border-radius: 50%; background: currentColor; content: ""; }
.status-occupied { background: #f0f2f5; color: #6f7e8e; }
.status-reserved { background: #eef1f7; color: #6c7d9a; }
.status-cleaning { background: #faf2e5; color: #b48949; }
.status-maintenance { background: #fff0ed; color: var(--coral); }
.table-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 18px 13px; }
.search-box { display: flex; width: min(250px, 100%); align-items: center; gap: 7px; padding: 8px 10px; border: 1px solid #e8eded; border-radius: 5px; background: #fff; color: #96a2a5; }
.search-box input { width: 100%; min-width: 0; border: 0; outline: 0; color: var(--ink); font-size: 10px; }
.search-box input::placeholder { color: #a2adaf; }
.filter-select { padding: 8px 10px; border: 1px solid #e8eded; border-radius: 5px; background: #fff; color: #65777d; font-size: 10px; }
.empty-state { padding: 30px 15px; color: #8a989c; text-align: center; font-size: 11px; }
.rooms-page-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.room-large { padding: 16px; }
.room-large .room-number { font-size: 15px; }
.room-large .room-type { margin-bottom: 14px; font-size: 10px; }
.room-large .room-detail { display: flex; justify-content: space-between; padding-top: 11px; border-top: 1px solid #eef0ef; color: #8d999c; font-size: 9px; }
.guest-email { color: #8e9b9f; font-size: 9px; }
.task-list { padding: 0 18px 9px; }
.task-row { display: flex; align-items: center; gap: 11px; padding: 14px 0; border-top: 1px solid #f0f2f1; }
.task-check { width: 17px; height: 17px; flex: 0 0 auto; accent-color: var(--teal); }
.task-copy { flex: 1; }
.task-copy strong, .task-copy span { display: block; }
.task-copy strong { color: #40515a; font-size: 11px; font-weight: 600; }
.task-copy span { margin-top: 4px; color: #98a3a6; font-size: 9px; }
.task-row.completed strong { color: #96a1a4; text-decoration: line-through; }
.task-time { color: #72838a; font-size: 9px; }
.simple-panel { padding: 24px; }
.simple-panel h2 { margin-bottom: 9px; color: #293b45; font: 700 15px Manrope, sans-serif; }
.simple-panel p { max-width: 530px; margin-bottom: 17px; color: #829096; line-height: 1.6; }
.report-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 18px; }
.report-card { padding: 15px; border: 1px solid var(--line); border-radius: 7px; }
.report-card span, .report-card strong { display: block; }
.report-card span { color: #8f9b9f; font-size: 10px; }
.report-card strong { margin-top: 8px; color: #344750; font: 700 20px Manrope, sans-serif; }
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 20; padding: 12px 16px; transform: translateY(15px); border-radius: 7px; background: #203b42; color: white; box-shadow: 0 8px 24px #172b3a30; opacity: 0; pointer-events: none; transition: .2s ease; }
.toast.show { transform: translateY(0); opacity: 1; }

.modal-backdrop { position: fixed; inset: 0; z-index: 10; display: grid; place-items: center; padding: 18px; background: rgba(19,35,43,.48); backdrop-filter: blur(3px); }
.modal { width: min(100%, 470px); padding: 23px; border-radius: 10px; background: white; box-shadow: 0 18px 60px #10253040; }
.modal-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 18px; }
.modal-header h2 { margin: 0 0 5px; color: #263842; font: 700 17px Manrope, sans-serif; }
.modal-header p { margin: 0; color: #909da1; font-size: 10px; }
.modal-close { width: 27px; height: 27px; border: 0; border-radius: 5px; background: #f3f5f4; color: #718087; font-size: 17px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.form-field { display: grid; gap: 6px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { color: #63737a; font-size: 10px; font-weight: 600; }
.form-field input, .form-field select { width: 100%; height: 37px; padding: 0 10px; border: 1px solid #e4e9e7; border-radius: 5px; outline: 0; background: white; color: #394a52; font-size: 11px; }
.form-field input:focus, .form-field select:focus { border-color: var(--teal); box-shadow: 0 0 0 3px #168f7824; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }

@media (max-width: 1050px) {
  .sidebar { width: 220px; }
  .main-area { width: calc(100% - 220px); margin-left: 220px; }
  .page-content { padding-right: 3.5%; padding-left: 3.5%; }
  .topbar { padding-right: 3.5%; padding-left: 3.5%; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .overview-grid, .lower-grid { grid-template-columns: minmax(0, 1.35fr) minmax(230px, .9fr); }
  .rooms-page-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
  .sidebar { width: 250px; transform: translateX(-100%); transition: transform .22s ease; box-shadow: 5px 0 30px #132b3a1a; }
  .sidebar.open { transform: translateX(0); }
  .main-area { width: 100%; margin-left: 0; }
  .topbar { height: 57px; padding: 0 18px; }
  .mobile-menu { display: block; }
  .breadcrumbs { margin-right: auto; margin-left: 12px; }
  .today-label { font-size: 10px; }
  .topbar-actions { gap: 0; }
  .page-content { padding: 25px 18px 40px; }
  .page-heading { align-items: flex-start; }
  h1 { font-size: 22px; }
  .overview-grid, .lower-grid { grid-template-columns: 1fr; }
  .rooms-page-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .page-heading { flex-direction: column; gap: 14px; }
  .heading-actions { width: 100%; }
  .heading-actions .button { flex: 1; }
  .stats-grid { gap: 9px; }
  .stat-card { min-height: 108px; padding: 12px; }
  .stat-value { font-size: 20px; }
  .stat-top { font-size: 9px; }
  .rooms-page-grid { gap: 8px; }
  .room-large { padding: 12px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-field.full { grid-column: auto; }
  .report-cards { grid-template-columns: 1fr; }
}
