*{box-sizing:border-box}
:root{
  --bg:#f5f6f2;--panel:#fff;--ink:#161813;--muted:#6e746b;--line:#e3e7df;
  --dark:#11130f;--accent:#d4a328;--good:#287a48;--warn:#a65a20;--bad:#a43d32;--soft:#f0f2ed
}
html,body{min-width:1180px}
body{margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:var(--bg);color:var(--ink)}
button,input,select{font:inherit}
button{cursor:pointer}
.hidden{display:none!important}

/* Public site */
.public-site{min-height:100vh;background:#fbfcf8}
.public-header{height:78px;padding:0 6vw;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);background:#fff;position:sticky;top:0;z-index:20}
.public-brand{display:flex;align-items:center;gap:11px;font-size:19px}
.brand-mark{width:42px;height:42px;border-radius:13px;background:var(--accent);color:#111;display:grid;place-items:center;font-weight:900}
.public-nav{display:flex;gap:30px}
.public-nav a{color:#52584f;text-decoration:none;font-size:14px}
.public-actions,.hero-actions{display:flex;gap:10px}
.primary-btn{border:0;background:#151712;color:#fff;border-radius:10px;padding:10px 14px;font-weight:700}
.ghost-btn{border:1px solid var(--line);background:#fff;color:#151712;border-radius:10px;padding:10px 14px;font-weight:700}
.large{padding:13px 18px}
.public-main{max-width:1480px;margin:auto;padding:0 6vw 80px}
.hero{min-height:610px;display:grid;grid-template-columns:1fr 1fr;gap:70px;align-items:center}
.hero-pill{display:inline-flex;padding:7px 10px;border-radius:999px;background:#ecefe8;font-size:12px;font-weight:800}
.hero h1{font-size:64px;line-height:.98;letter-spacing:-.055em;max-width:650px;margin:20px 0}
.hero p{font-size:19px;line-height:1.55;color:#646a61;max-width:620px;margin:0 0 28px}
.hero-product{background:#171914;border-radius:28px;padding:34px;min-height:400px;display:grid;place-items:center}
.hero-screen{width:100%;background:#f7f8f5;border-radius:20px;padding:24px;box-shadow:0 26px 60px rgba(0,0,0,.22)}
.mini-top{display:flex;justify-content:space-between}
.mini-top span{font-size:11px;color:#2b8b4f}
.mini-metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:20px 0}
.mini-metrics div{background:#fff;border:1px solid #e4e6e1;border-radius:12px;padding:14px}
.mini-metrics span,.mini-metrics strong{display:block}
.mini-metrics span{font-size:10px;color:#7c8278}.mini-metrics strong{font-size:20px;margin-top:4px}
.mini-floor{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.mini-table{height:70px;border-radius:12px;background:#e8ebe5;display:grid;place-items:center;font-weight:800}
.mini-table.active{background:#dfeee3;color:#267647}.mini-table.reserved{background:#ece8fa;color:#6255b7}
.public-section{padding:70px 0;border-top:1px solid var(--line)}
.public-section h2{font-size:36px;letter-spacing:-.03em;margin:0 0 28px}
.feature-grid,.pricing-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.feature-grid{grid-template-columns:repeat(4,1fr)}
.feature-grid article,.pricing-grid article{background:#fff;border:1px solid var(--line);border-radius:18px;padding:24px}
.feature-grid strong,.feature-grid span{display:block}.feature-grid span{color:var(--muted);font-size:13px;line-height:1.5;margin-top:8px}
.business-types{display:flex;flex-wrap:wrap;gap:10px}.business-types span{padding:12px 16px;border-radius:999px;background:#fff;border:1px solid var(--line)}
.pricing-grid article{display:grid;gap:18px}.pricing-grid article>span{font-weight:800}.pricing-grid article>strong{font-size:28px}.pricing-grid .featured{border-color:#171914;box-shadow:0 0 0 1px #171914}

/* App shell */
.app-shell{min-height:100vh;display:grid;grid-template-columns:270px minmax(0,1fr)}
.sidebar{height:100vh;position:sticky;top:0;background:#11130f;color:#fff;padding:28px 20px;display:flex;flex-direction:column}
.brand{display:flex;align-items:center;gap:12px;padding:2px 6px 18px}.brand strong,.brand span{display:block}.brand span{font-size:12px;color:#9ca197;margin-top:2px}
.website-link{border:0;background:#1b1e18;color:#c7cbc2;padding:10px 12px;border-radius:10px;text-align:left;margin:0 0 18px}
.website-link:hover{background:#242820;color:#fff}
.nav{display:grid;gap:5px;overflow:auto;padding-right:2px}
.nav-item{border:0;background:transparent;color:#c6c9c1;text-align:left;padding:12px 14px;border-radius:10px}
.nav-item.active,.nav-item:hover{background:#23261f;color:#fff}
.future-item{opacity:.46;cursor:default;display:flex;justify-content:space-between;align-items:center}
.future-item span{font-size:9px;text-transform:uppercase;letter-spacing:.07em}
.sidebar-bottom{margin-top:auto;padding-top:16px}
.account-card{width:100%;display:grid;grid-template-columns:auto 1fr auto;gap:10px;align-items:center;background:#1b1e18;color:#fff;border:0;padding:12px;border-radius:12px;text-align:left}
.avatar{width:36px;height:36px;border-radius:50%;background:#3b4035;display:grid;place-items:center;font-weight:800}
.account-card strong,.account-card span{display:block}.account-card span{font-size:11px;color:#aeb2a9;margin-top:2px}
.main{width:100%;padding:30px 38px 56px}
.topbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:26px}
.branch-name{font-size:12px;color:#858b82;margin:0 0 4px}.topbar h1{font-size:32px;margin:0}
.top-actions{display:flex;align-items:center;gap:8px}.live-dot{width:9px;height:9px;border-radius:50%;background:#27a95c}.live-label{font-size:12px;color:#596055}
.icon-btn{position:relative;border:1px solid var(--line);background:#fff;border-radius:10px;padding:9px 11px}
.badge{position:absolute;top:-6px;right:-6px;background:#d24a35;color:#fff;width:18px;height:18px;border-radius:50%;font-size:10px;display:grid;place-items:center}
.notification-wrap{position:relative}
.notification-menu{position:absolute;right:0;top:47px;width:365px;background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:0 20px 50px rgba(20,22,18,.14);z-index:50;overflow:hidden}
.notification-head{display:flex;justify-content:space-between;align-items:center;padding:14px 15px;border-bottom:1px solid var(--line)}
.notification-head button{border:0;background:transparent;color:var(--muted);font-size:11px}
.notification-item{display:grid;grid-template-columns:9px 1fr;gap:10px;padding:13px 15px;border-top:1px solid var(--line)}
.notification-item:first-child{border-top:0}.notification-dot{width:8px;height:8px;border-radius:50%;background:var(--accent);margin-top:5px}
.notification-item.read .notification-dot{background:#d9ddd5}.notification-copy strong,.notification-copy span{display:block}.notification-copy strong{font-size:12px}.notification-copy span{font-size:11px;color:var(--muted);margin-top:3px}
.view{display:none}.active-view{display:block}

/* Dashboard */
.dashboard-toolbar,.section-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}
.dashboard-toolbar h2,.section-head h2,.panel h2{margin:0}.dashboard-toolbar h2,.section-head h2{font-size:28px}
.period-area{position:relative}.period-switch{display:flex;gap:5px;background:#eaede7;padding:5px;border-radius:12px}
.period-btn{border:0;background:transparent;color:#697066;padding:9px 12px;border-radius:9px;font-size:12px;font-weight:700}
.period-btn.active{background:#fff;color:#151712;box-shadow:0 1px 4px rgba(20,22,18,.08)}
.custom-period{position:absolute;right:0;top:52px;background:#fff;border:1px solid var(--line);border-radius:12px;padding:12px;box-shadow:0 14px 35px rgba(20,22,18,.1);display:flex;gap:10px;align-items:end;z-index:30}
.custom-period label{font-size:11px;color:var(--muted);display:grid;gap:5px}.custom-period input{border:1px solid var(--line);border-radius:8px;padding:8px 9px}
.money-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:14px;margin-bottom:18px}
.metric-card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:18px;min-height:105px}.metric-card span{display:block;color:var(--muted);font-size:12px;font-weight:700}.metric-card strong{display:block;font-size:26px;margin-top:12px;letter-spacing:-.03em}
.primary-metric{background:#171914;border-color:#171914;color:#fff}.primary-metric span{color:#bdc1b8}.warning-metric{background:#fffaf3;border-color:#ead8b9}
.dashboard-grid{display:grid;gap:18px;margin-bottom:18px}.dashboard-grid-top{grid-template-columns:minmax(0,1.45fr) minmax(380px,.75fr)}.dashboard-grid-bottom{grid-template-columns:1.05fr .95fr .95fr}.dashboard-grid-footer{grid-template-columns:1.35fr .65fr}
.panel{background:#fff;border:1px solid var(--line);border-radius:18px;padding:20px}.panel-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px}.panel-head>strong{font-size:18px}
.text-btn{border:0;background:#f0f2ed;padding:8px 10px;border-radius:9px}
.sales-chart{height:250px;display:flex;align-items:end;gap:14px;padding:18px 6px 0;border-bottom:1px solid var(--line)}
.chart-column{flex:1;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:7px}.chart-bar-wrap{width:100%;height:190px;display:flex;align-items:flex-end;justify-content:center}.chart-bar{width:min(34px,72%);background:#171914;border-radius:8px 8px 3px 3px;min-height:8px}.chart-label{font-size:11px;color:var(--muted)}
.attention-list{display:grid;gap:10px}.attention-item{border:1px solid var(--line);border-radius:13px;padding:12px;display:flex;justify-content:space-between;align-items:center;gap:10px}.attention-item.warning{background:#fff8ee}.request-copy{display:flex;gap:10px}.attention-icon{width:32px;height:32px;border-radius:9px;background:#fff0df;display:grid;place-items:center;flex:0 0 auto}.attention-item strong,.attention-item span{display:block}.attention-item strong{font-size:12px}.attention-item span{font-size:11px;color:var(--muted);margin-top:3px}.attention-actions{display:flex;gap:6px}.attention-actions button{border:0;background:#151712;color:#fff;border-radius:8px;padding:7px 9px;font-size:11px}.attention-actions .secondary{background:#fff;color:#151712;border:1px solid var(--line)}
.sales-mix,.rank-list,.stock-list{display:grid;gap:10px}.mix-row{display:grid;grid-template-columns:85px 1fr auto;gap:10px;align-items:center}.mix-row .label{font-size:12px;color:var(--muted)}.mix-track{height:8px;background:#edf0ea;border-radius:999px;overflow:hidden}.mix-fill{height:100%;background:#171914;border-radius:999px}.mix-row strong{font-size:12px}
.rank-row,.stock-row{display:grid;grid-template-columns:auto 1fr auto;gap:10px;align-items:center;padding:9px 0;border-top:1px solid var(--line)}.rank-row:first-child,.stock-row:first-child{border-top:0}.rank-no{width:28px;height:28px;border-radius:8px;background:#eff1ec;display:grid;place-items:center;font-size:11px;font-weight:800}.rank-copy strong,.rank-copy span,.stock-copy strong,.stock-copy span{display:block}.rank-copy span,.stock-copy span{font-size:11px;color:var(--muted);margin-top:2px}.rank-value{font-size:12px;font-weight:800}.stock-level{font-size:11px;font-weight:800;padding:6px 8px;border-radius:999px;background:#fff0e9;color:#a05436}
.ops-summary-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.ops-card,.pool-box{background:#f6f7f4;border-radius:13px;padding:14px}.ops-card span,.ops-card strong,.pool-box span,.pool-box strong{display:block}.ops-card span,.pool-box span{font-size:11px;color:var(--muted)}.ops-card strong,.pool-box strong{font-size:23px;margin-top:4px}.pool-summary{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}

/* Tables */
.floor-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:14px}.status-tab{border:1px solid var(--line);background:#fff;border-radius:12px;padding:12px 14px;display:flex;justify-content:space-between;align-items:center;color:var(--muted)}.status-tab strong{color:var(--ink);font-size:18px}.status-tab.active{border-color:#171914;box-shadow:0 0 0 1px #171914;color:#171914}
.floor-legend{display:flex;gap:18px;font-size:12px;color:var(--muted);margin-bottom:16px}.floor-legend span{display:flex;align-items:center;gap:7px}.legend-dot{width:9px;height:9px;border-radius:50%;display:inline-block}.legend-dot.inactive{background:#9ca398}.legend-dot.active{background:#27844a}.legend-dot.waiting{background:#d57b2c}.legend-dot.reserved{background:#6e63c8}
.table-grid{display:grid;grid-template-columns:repeat(4,minmax(220px,1fr));gap:16px}.room-group-heading{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;padding:8px 2px 0}.room-group-heading>div{display:flex;align-items:baseline;gap:10px}.room-group-heading strong{font-size:17px}.room-group-heading span{font-size:12px;color:var(--muted)}.table-card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:16px;position:relative;cursor:pointer}.table-card::before{content:"";position:absolute;top:0;left:0;right:0;height:4px;border-radius:16px 16px 0 0;background:#9ca398}.table-card.status-active::before{background:#27844a}.table-card.status-reserved::before{background:#6e63c8}.table-card.has-request{box-shadow:0 0 0 2px #f0c38f inset}.unassigned-card{border-color:#edc5bd;background:#fffafa}
.table-card-top{display:flex;justify-content:space-between;align-items:flex-start}.table-card h3{margin:0}.table-meta{font-size:12px;color:var(--muted);margin-top:4px}.table-state{font-size:11px;font-weight:800;padding:6px 8px;border-radius:999px;background:#eff1ec;color:#5f665c}.table-state.active{background:#eaf5ed;color:#257344}.table-state.reserved{background:#efedfb;color:#5d52b8}.bill{font-size:22px;font-weight:800;margin:18px 0 4px}.table-owner-badge{display:inline-flex;align-items:center;gap:7px}.owner-dot{width:7px;height:7px;border-radius:50%;background:#2b8c52}.owner-dot.unassigned{background:#ba4c38}
.request-strip{margin-top:14px;border-radius:11px;padding:11px 12px;background:#fff5e9;border:1px solid #f0d4b4}.request-strip.urgent{background:#fff0ed;border-color:#efc4bb}.request-top{display:flex;justify-content:space-between}.request-top strong{font-size:13px}.wait-time{font-size:11px;font-weight:800;color:#9b531f}.request-strip p{margin:5px 0 0;font-size:12px;color:#6d6256}

/* Staff */
.staff-cards{display:grid;grid-template-columns:repeat(2,minmax(360px,1fr));gap:16px}.staff-card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:18px}.staff-card-head{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:16px}.staff-card h3{margin:0}.staff-card p{margin:4px 0 0;color:var(--muted);font-size:12px}.staff-card-meta{display:flex;gap:8px;align-items:center}.role-badge{padding:5px 8px;border-radius:999px;font-size:10px;font-weight:800;text-transform:capitalize}.role-badge.owner{background:#171914;color:#fff}.role-badge.manager{background:#ece9fa;color:#5d52b8}.role-badge.staff{background:#edf5ef;color:#2f7448}.pill{font-size:11px;padding:6px 9px;border-radius:999px;background:#edf6ef;color:#287a48;font-weight:700}.pill.full{background:#f8ece8;color:#a44b31}
.capacity-control{display:grid;grid-template-columns:1fr auto;gap:12px;align-items:center;background:#f0f2ed;padding:12px;border-radius:12px}.capacity-control strong{font-size:12px}.capacity-control input{width:70px;border:1px solid #d9ddd4;border-radius:8px;padding:8px;background:#fff}.capacity-control button{border:0;background:#151712;color:#fff;border-radius:8px;padding:8px 10px}.capacity-note{font-size:12px;color:var(--muted);margin-top:10px}

/* Activity */
.activity-feed{background:#fff;border:1px solid var(--line);border-radius:16px;overflow:hidden}.activity-row{padding:14px 16px;border-top:1px solid var(--line);display:grid;grid-template-columns:120px 1fr;gap:18px}.activity-row:first-child{border-top:0}.activity-row time{font-size:12px;color:var(--muted)}

/* Modals */
.modal-backdrop{position:fixed;inset:0;background:rgba(8,10,7,.55);display:grid;place-items:center;padding:20px;z-index:100}.modal-card{width:min(700px,70vw);max-height:88vh;overflow:auto;background:#fff;border-radius:20px;padding:22px;position:relative}.modal-card h2{margin:0 0 14px}.close-btn{position:absolute;right:16px;top:14px;border:0;background:#f1f2ef;width:34px;height:34px;border-radius:50%;font-size:22px}
.detail-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin:18px 0}.detail-box{background:#f0f2ed;border-radius:12px;padding:12px}.detail-box span,.detail-box strong{display:block}.detail-box span{font-size:11px;color:var(--muted);margin-bottom:4px}.order-lines{border:1px solid var(--line);border-radius:12px;overflow:hidden}.order-line{display:flex;justify-content:space-between;padding:11px 12px;border-top:1px solid var(--line)}.order-line:first-child{border-top:0}.modal-request{border:1px solid #f0d3b4;background:#fff7ed;border-radius:12px;padding:13px;margin:15px 0}.modal-request strong,.modal-request span{display:block}.modal-request span{font-size:12px;color:var(--muted);margin-top:4px}.reassign{margin-top:18px;padding-top:16px;border-top:1px solid var(--line)}.reassign-row{display:flex;gap:10px}.reassign-row select{flex:1;border:1px solid var(--line);border-radius:10px;padding:10px}
.form-modal{width:min(560px,65vw)}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.form-grid label{display:grid;gap:6px;font-size:12px;color:var(--muted)}.form-grid input,.form-grid select{border:1px solid var(--line);border-radius:9px;padding:10px 11px;background:#fff}.form-actions{grid-column:1/-1;display:flex;justify-content:flex-end;gap:8px;margin-top:4px}
.account-popover{position:fixed;left:24px;bottom:92px;width:240px;background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:0 18px 40px rgba(0,0,0,.15);padding:14px;z-index:60}.account-popover strong,.account-popover span{display:block}.account-popover span{font-size:11px;color:var(--muted);margin:3px 0 10px}.account-popover button{width:100%;border:0;background:transparent;text-align:left;padding:9px;border-radius:8px}.account-popover button:hover{background:#f2f4ef}

@media(max-width:1320px){.money-grid{grid-template-columns:repeat(3,1fr)}.dashboard-grid-bottom{grid-template-columns:1fr 1fr}.dashboard-grid-bottom>section:last-child{grid-column:1/-1}}

.management-access{
  background:#f3f4f1;
  border-radius:12px;
  padding:14px;
  color:#676d64;
  font-size:12px;
  font-weight:700;
}

.dashboard-toolbar.toolbar-right{
  justify-content:flex-end;
}
.section-head.actions-only{
  justify-content:space-between;
}

.floor-summary{
  grid-template-columns:repeat(5,minmax(0,1fr));
}
.status-tab.attention-tab strong{
  color:#a3531e;
}
.status-tab.attention-tab.active{
  border-color:#d57b2c;
  box-shadow:0 0 0 1px #d57b2c;
  color:#8c4819;
  background:#fff9f3;
}

.sales-toolbar{display:grid;gap:16px;margin-bottom:18px}
.sales-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.sales-stats article{background:#fff;border:1px solid var(--line);border-radius:14px;padding:16px}
.sales-stats span,.sales-stats strong{display:block}
.sales-stats span{font-size:11px;color:var(--muted)}
.sales-stats strong{font-size:24px;margin-top:6px}
.sales-filters{display:grid;grid-template-columns:minmax(260px,1fr) 190px 210px;gap:10px}
.sales-filters input,.sales-filters select{border:1px solid var(--line);background:#fff;border-radius:10px;padding:10px 12px}
.sales-table-wrap{background:#fff;border:1px solid var(--line);border-radius:16px;overflow:hidden}
.sales-table{width:100%;border-collapse:collapse}
.sales-table th,.sales-table td{padding:13px 14px;text-align:left;border-top:1px solid var(--line);font-size:12px;vertical-align:middle}
.sales-table thead th{border-top:0;background:#f7f8f5;color:#73796f;font-size:10px;text-transform:uppercase;letter-spacing:.05em}
.sales-table tbody tr:hover{background:#fafbf8}
.sale-id{font-weight:800}
.sale-sub{display:block;color:var(--muted);font-size:10px;margin-top:3px}
.status-badge{display:inline-flex;padding:5px 8px;border-radius:999px;font-size:10px;font-weight:800;text-transform:capitalize}
.status-badge.paid{background:#eaf5ed;color:#267445}
.status-badge.part-payment{background:#fff3df;color:#96630f}
.status-badge.open{background:#f4ece9;color:#9b4b36}
.payment-badge{font-size:11px;color:#4f554d}
.view-sale-btn{border:0;background:#151712;color:#fff;border-radius:8px;padding:7px 9px;font-size:11px}
.sale-modal-card{width:min(760px,72vw)}
.sale-head{display:flex;justify-content:space-between;gap:18px;align-items:flex-start;margin-bottom:16px}
.sale-head h2{margin:0}
.sale-head-meta{text-align:right}
.sale-head-meta strong,.sale-head-meta span{display:block}
.sale-head-meta span{font-size:11px;color:var(--muted);margin-top:3px}
.sale-summary-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:16px 0}
.sale-summary-box{background:#f3f5f0;border-radius:12px;padding:12px}
.sale-summary-box span,.sale-summary-box strong{display:block}
.sale-summary-box span{font-size:10px;color:var(--muted);margin-bottom:4px}
.payment-history{margin-top:18px}
.payment-row{display:grid;grid-template-columns:1fr auto auto;gap:14px;padding:10px 0;border-top:1px solid var(--line);font-size:12px}
.payment-row:first-child{border-top:0}
.payment-row span{color:var(--muted)}

.clickable-staff{cursor:pointer;transition:.15s}
.clickable-staff:hover{transform:translateY(-2px);box-shadow:0 10px 28px rgba(20,22,18,.07)}
.staff-detail-modal{width:min(900px,78vw)}
.staff-detail-head{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:18px}
.staff-detail-name-row{display:flex;align-items:center;gap:10px}
.staff-detail-name-row h2{margin:0}
.staff-detail-sub{display:block;color:var(--muted);font-size:12px;margin-top:4px}
.staff-capacity-large{text-align:right}
.staff-capacity-large strong,.staff-capacity-large span{display:block}
.staff-capacity-large strong{font-size:26px}
.staff-capacity-large span{font-size:11px;color:var(--muted);margin-top:3px}
.staff-detail-metrics{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;margin-bottom:20px}
.staff-detail-metrics>div{background:#f4f6f1;border-radius:12px;padding:12px}
.staff-detail-metrics span,.staff-detail-metrics strong{display:block}
.staff-detail-metrics span{font-size:10px;color:var(--muted)}
.staff-detail-metrics strong{font-size:18px;margin-top:5px}
.staff-detail-section{margin-top:20px}
.staff-detail-section-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}
.staff-detail-section-head h3{margin:0}
.staff-detail-section-head span{font-size:11px;color:var(--muted)}
.staff-current-tables{display:flex;gap:8px;flex-wrap:wrap}
.staff-table-chip{border:1px solid var(--line);background:#fff;border-radius:10px;padding:10px 12px;text-align:left}
.staff-table-chip strong,.staff-table-chip span{display:block}
.staff-table-chip span{font-size:11px;color:var(--muted);margin-top:3px}
.staff-sales-list{border:1px solid var(--line);border-radius:12px;overflow:hidden}
.staff-sale-row{width:100%;border:0;border-top:1px solid var(--line);background:#fff;padding:12px 14px;display:flex;justify-content:space-between;align-items:center;text-align:left}
.staff-sale-row:first-child{border-top:0}
.staff-sale-row:hover{background:#fafbf8}
.staff-sale-row strong,.staff-sale-row span{display:block}
.staff-sale-row span{font-size:11px;color:var(--muted);margin-top:3px}
.staff-sale-amount{text-align:right}
.staff-sale-amount .status-badge{margin-top:5px}
.empty-state{padding:18px;color:var(--muted);font-size:12px;text-align:center}

#staffDetailModal{z-index:100}
#saleModal,#tableModal{z-index:120}
#staffModal,#registerModal{z-index:110}

.global-period-area{position:relative}
.top-actions{gap:10px}
.active-period-label{display:block;font-size:11px;color:var(--muted);margin-top:4px}
.global-period-area .period-switch{white-space:nowrap}
.global-period-area .custom-period{top:48px;right:0}
@media(max-width:1450px){
  .global-period-area .period-btn{padding:8px 9px}
}

.inventory-toolbar{display:grid;gap:16px;margin-bottom:18px}
.inventory-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.inventory-stats article{background:#fff;border:1px solid var(--line);border-radius:14px;padding:16px}
.inventory-stats span,.inventory-stats strong{display:block}
.inventory-stats span{font-size:11px;color:var(--muted)}
.inventory-stats strong{font-size:24px;margin-top:6px}
.inventory-actions-row{display:flex;justify-content:space-between;gap:14px;align-items:center}
.inventory-filters{display:grid;grid-template-columns:minmax(260px,1fr) 180px 170px;gap:10px;flex:1}
.inventory-filters input,.inventory-filters select{border:1px solid var(--line);background:#fff;border-radius:10px;padding:10px 12px}
.inventory-table-wrap{background:#fff;border:1px solid var(--line);border-radius:16px;overflow:hidden}
.inventory-table{width:100%;border-collapse:collapse}
.inventory-table th,.inventory-table td{padding:13px 14px;text-align:left;border-top:1px solid var(--line);font-size:12px;vertical-align:middle}
.inventory-table thead th{border-top:0;background:#f7f8f5;color:#73796f;font-size:10px;text-transform:uppercase;letter-spacing:.05em}
.inventory-table tbody tr:hover{background:#fafbf8}
.inventory-item-name{font-weight:800}
.inventory-item-sub{display:block;color:var(--muted);font-size:10px;margin-top:3px}
.stock-status{display:inline-flex;padding:5px 8px;border-radius:999px;font-size:10px;font-weight:800}
.stock-status.ok{background:#eaf5ed;color:#267445}
.stock-status.low{background:#fff3df;color:#96630f}
.stock-status.out{background:#f8e9e6;color:#9d4436}
.inventory-view-btn{border:0;background:#151712;color:#fff;border-radius:8px;padding:7px 9px;font-size:11px}
.inventory-detail-modal{width:min(900px,78vw)}
.inventory-detail-head{display:flex;justify-content:space-between;align-items:flex-start;gap:20px}
.inventory-detail-head h2{margin:0}
.inventory-detail-head span{display:block;color:var(--muted);font-size:12px;margin-top:4px}
.inventory-detail-actions{display:flex;gap:8px}
.inventory-detail-metrics{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin:18px 0}
.inventory-detail-metrics>div{background:#f4f6f1;border-radius:12px;padding:12px}
.inventory-detail-metrics span,.inventory-detail-metrics strong{display:block}
.inventory-detail-metrics span{font-size:10px;color:var(--muted)}
.inventory-detail-metrics strong{font-size:18px;margin-top:5px}
.stock-movement-list{border:1px solid var(--line);border-radius:12px;overflow:hidden}
.stock-movement-row{display:grid;grid-template-columns:120px 1fr 120px 120px;gap:12px;padding:11px 12px;border-top:1px solid var(--line);font-size:12px;align-items:center}
.stock-movement-row:first-child{border-top:0}
.stock-movement-row span{color:var(--muted)}
.stock-movement-row .plus{color:#287a48;font-weight:800}
.stock-movement-row .minus{color:#a43d32;font-weight:800}
.single-column-form{grid-template-columns:1fr}

#newInventoryCategoryField{
  grid-column:1/-1;
}

.expense-toolbar{display:grid;gap:16px;margin-bottom:18px}
.expense-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.expense-stats article{background:#fff;border:1px solid var(--line);border-radius:14px;padding:16px}
.expense-stats span,.expense-stats strong{display:block}
.expense-stats span{font-size:11px;color:var(--muted)}
.expense-stats strong{font-size:24px;margin-top:6px}
.expense-actions-row{display:flex;justify-content:space-between;gap:14px;align-items:center}
.expense-filters{display:grid;grid-template-columns:minmax(280px,1fr) 190px 190px;gap:10px;flex:1}
.expense-filters input,.expense-filters select{border:1px solid var(--line);background:#fff;border-radius:10px;padding:10px 12px}
.expense-table-wrap{background:#fff;border:1px solid var(--line);border-radius:16px;overflow:hidden}
.expense-table{width:100%;border-collapse:collapse}
.expense-table th,.expense-table td{padding:13px 14px;text-align:left;border-top:1px solid var(--line);font-size:12px;vertical-align:middle}
.expense-table thead th{border-top:0;background:#f7f8f5;color:#73796f;font-size:10px;text-transform:uppercase;letter-spacing:.05em}
.expense-table tbody tr:hover{background:#fafbf8}
.expense-title{font-weight:800}
.expense-note-small{display:block;color:var(--muted);font-size:10px;margin-top:3px;max-width:240px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.expense-category-badge{display:inline-flex;padding:5px 8px;border-radius:999px;background:#f1f3ee;font-size:10px;font-weight:800}
.expense-view-btn{border:0;background:#151712;color:#fff;border-radius:8px;padding:7px 9px;font-size:11px}
.expense-detail-modal{width:min(720px,72vw)}
.expense-detail-head{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;margin-bottom:18px}
.expense-detail-head h2{margin:0}
.expense-detail-head span{display:block;color:var(--muted);font-size:12px;margin-top:4px}
.expense-detail-amount{text-align:right;font-size:28px;font-weight:900}
.expense-detail-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:18px}
.expense-detail-grid>div{background:#f4f6f1;border-radius:12px;padding:12px}
.expense-detail-grid span,.expense-detail-grid strong{display:block}
.expense-detail-grid span{font-size:10px;color:var(--muted)}
.expense-detail-grid strong{font-size:13px;margin-top:5px;overflow-wrap:anywhere}
.expense-detail-note{margin-top:16px;background:#fafbf8;border:1px solid var(--line);border-radius:12px;padding:14px}
.expense-detail-note span{display:block;color:var(--muted);font-size:10px;margin-bottom:5px}
.form-full{grid-column:1/-1}
.form-grid textarea{border:1px solid var(--line);border-radius:10px;padding:10px 12px;font:inherit;resize:vertical}
#newExpenseCategoryField{grid-column:1/-1}

.pool-toolbar{display:grid;gap:16px;margin-bottom:18px}
.pool-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.pool-stats article{background:#fff;border:1px solid var(--line);border-radius:14px;padding:16px}
.pool-stats span,.pool-stats strong{display:block}
.pool-stats span{font-size:11px;color:var(--muted)}
.pool-stats strong{font-size:24px;margin-top:6px}
.pool-actions-row{display:flex;justify-content:space-between;gap:14px;align-items:center}
.pool-filters{display:grid;grid-template-columns:minmax(260px,1fr) 180px 190px;gap:10px;flex:1}
.pool-filters input,.pool-filters select{border:1px solid var(--line);background:#fff;border-radius:10px;padding:10px 12px}
.pool-table-wrap{background:#fff;border:1px solid var(--line);border-radius:16px;overflow:hidden}
.pool-table{width:100%;border-collapse:collapse}
.pool-table th,.pool-table td{padding:13px 14px;text-align:left;border-top:1px solid var(--line);font-size:12px;vertical-align:middle}
.pool-table thead th{border-top:0;background:#f7f8f5;color:#73796f;font-size:10px;text-transform:uppercase;letter-spacing:.05em}
.pool-table tbody tr:hover{background:#fafbf8}
.pool-guest{font-weight:800}
.pool-sub{display:block;color:var(--muted);font-size:10px;margin-top:3px}
.pool-status-badge,.pool-payment-badge{display:inline-flex;padding:5px 8px;border-radius:999px;font-size:10px;font-weight:800;text-transform:capitalize}
.pool-status-badge.inside{background:#eaf5ed;color:#267445}
.pool-status-badge.checked-out{background:#f1f2ef;color:#636860}
.pool-payment-badge.paid{background:#eaf5ed;color:#267445}
.pool-payment-badge.unpaid{background:#fff3df;color:#96630f}
.pool-view-btn{border:0;background:#151712;color:#fff;border-radius:8px;padding:7px 9px;font-size:11px}
.pool-detail-modal{width:min(780px,76vw)}
.pool-detail-head{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;margin-bottom:18px}
.pool-detail-head h2{margin:0}
.pool-detail-head span{display:block;color:var(--muted);font-size:12px;margin-top:4px}
.pool-detail-amount{text-align:right}
.pool-detail-amount strong,.pool-detail-amount span{display:block}
.pool-detail-amount strong{font-size:28px}
.pool-detail-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:18px 0}
.pool-detail-grid>div{background:#f4f6f1;border-radius:12px;padding:12px}
.pool-detail-grid span,.pool-detail-grid strong{display:block}
.pool-detail-grid span{font-size:10px;color:var(--muted)}
.pool-detail-grid strong{font-size:13px;margin-top:5px}
.pool-detail-actions{display:flex;gap:8px;justify-content:flex-end;margin-top:16px}

.booking-toolbar{display:grid;gap:16px;margin-bottom:18px}
.booking-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.booking-stats article{background:#fff;border:1px solid var(--line);border-radius:14px;padding:16px}
.booking-stats span,.booking-stats strong{display:block}
.booking-stats span{font-size:11px;color:var(--muted)}
.booking-stats strong{font-size:24px;margin-top:6px}
.booking-actions-row{display:flex;justify-content:space-between;gap:14px;align-items:center}
.booking-filters{display:grid;grid-template-columns:minmax(270px,1fr) 180px 180px;gap:10px;flex:1}
.booking-filters input,.booking-filters select{border:1px solid var(--line);background:#fff;border-radius:10px;padding:10px 12px}
.booking-table-wrap{background:#fff;border:1px solid var(--line);border-radius:16px;overflow:hidden}
.booking-table{width:100%;border-collapse:collapse}
.booking-table th,.booking-table td{padding:13px 14px;text-align:left;border-top:1px solid var(--line);font-size:12px;vertical-align:middle}
.booking-table thead th{border-top:0;background:#f7f8f5;color:#73796f;font-size:10px;text-transform:uppercase;letter-spacing:.05em}
.booking-table tbody tr:hover{background:#fafbf8}
.booking-id{font-weight:800}
.booking-sub{display:block;color:var(--muted);font-size:10px;margin-top:3px}
.booking-status{display:inline-flex;padding:5px 8px;border-radius:999px;font-size:10px;font-weight:800;text-transform:capitalize}
.booking-status.pending{background:#fff3df;color:#96630f}
.booking-status.confirmed{background:#e8f1ff;color:#2c5ea8}
.booking-status.checked-in{background:#eaf5ed;color:#267445}
.booking-status.completed{background:#f0f1ee;color:#60645d}
.booking-status.cancelled{background:#f8e9e6;color:#9d4436}
.booking-view-btn{border:0;background:#151712;color:#fff;border-radius:8px;padding:7px 9px;font-size:11px}
.booking-detail-modal{width:min(820px,76vw)}
.booking-detail-head{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;margin-bottom:18px}
.booking-detail-head h2{margin:0}
.booking-detail-head span{display:block;color:var(--muted);font-size:12px;margin-top:4px}
.booking-detail-amount{text-align:right}
.booking-detail-amount strong,.booking-detail-amount span{display:block}
.booking-detail-amount strong{font-size:28px}
.booking-detail-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:18px 0}
.booking-detail-grid>div{background:#f4f6f1;border-radius:12px;padding:12px}
.booking-detail-grid span,.booking-detail-grid strong{display:block}
.booking-detail-grid span{font-size:10px;color:var(--muted)}
.booking-detail-grid strong{font-size:13px;margin-top:5px}
.booking-detail-actions{display:flex;gap:8px;justify-content:flex-end;margin-top:16px;flex-wrap:wrap}

.reports-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:18px}
.reports-head h2{margin:0}
.reports-head p{margin:4px 0 0;color:var(--muted);font-size:12px}
.reports-actions{display:flex;gap:8px}
.report-metrics{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;margin-bottom:16px}
.report-metrics article{background:#fff;border:1px solid var(--line);border-radius:14px;padding:14px}
.report-metrics span,.report-metrics strong{display:block}
.report-metrics span{font-size:10px;color:var(--muted)}
.report-metrics strong{font-size:20px;margin-top:5px}
.report-grid{display:grid;gap:14px;margin-bottom:14px}
.report-grid.two-col{grid-template-columns:repeat(2,minmax(0,1fr))}
.report-card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:16px;margin-bottom:14px}
.report-card-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:14px}
.report-card-head h3{margin:0;font-size:14px}
.report-card-head span{display:block;color:var(--muted);font-size:10px;margin-top:4px}
.report-bars{display:grid;gap:12px}
.report-bar-row{display:grid;grid-template-columns:110px 1fr auto;gap:12px;align-items:center}
.report-bar-row>span{font-size:11px;color:#555b53}
.report-bar-track{height:8px;background:#eef0eb;border-radius:999px;overflow:hidden}
.report-bar-fill{height:100%;background:#181a16;border-radius:999px;min-width:3px}
.report-bar-row strong{font-size:11px;white-space:nowrap}
.report-kpi-stack{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.report-kpi-stack>div{background:#f4f6f1;border-radius:12px;padding:14px}
.report-kpi-stack span,.report-kpi-stack strong{display:block}
.report-kpi-stack span{font-size:10px;color:var(--muted)}
.report-kpi-stack strong{font-size:18px;margin-top:5px}
.report-list{display:grid}
.report-list-row{display:grid;grid-template-columns:1fr auto;gap:12px;padding:11px 0;border-top:1px solid var(--line);align-items:center}
.report-list-row:first-child{border-top:0}
.report-list-row strong,.report-list-row span{display:block}
.report-list-row span{font-size:10px;color:var(--muted);margin-top:3px}
.report-list-value{text-align:right}
.report-list-value strong{font-size:13px}
.report-table-wrap{overflow:auto}
.report-table{width:100%;border-collapse:collapse}
.report-table th,.report-table td{padding:11px 12px;text-align:left;border-top:1px solid var(--line);font-size:11px}
.report-table thead th{border-top:0;color:var(--muted);font-size:10px;text-transform:uppercase;letter-spacing:.04em}
.report-empty{padding:16px;text-align:center;color:var(--muted);font-size:11px}
@media(max-width:1250px){
  .report-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}
}

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

@media print{
  html,body{
    background:#fff!important;
    color:#111!important;
    width:100%!important;
    min-width:0!important;
    margin:0!important;
    padding:0!important;
    -webkit-print-color-adjust:exact;
    print-color-adjust:exact;
  }

  .sidebar,
  .topbar,
  .reports-actions,
  .notification-menu,
  .account-menu,
  .modal-backdrop{
    display:none!important;
  }

  .app-shell,
  .app-main,
  .main-content{
    display:block!important;
    width:100%!important;
    max-width:none!important;
    min-width:0!important;
    margin:0!important;
    padding:0!important;
    overflow:visible!important;
  }

  .view{
    display:none!important;
  }

  #reports{
    display:block!important;
    width:100%!important;
    max-width:none!important;
    padding:0!important;
    margin:0!important;
    overflow:visible!important;
  }

  .reports-head{
    display:block!important;
    margin:0 0 9mm!important;
    padding:0 0 5mm!important;
    border-bottom:1px solid #ccc;
  }

  .reports-head h2{
    font-size:22pt!important;
    line-height:1.05!important;
    margin:0!important;
    color:#111!important;
  }

  .reports-head p{
    font-size:9pt!important;
    margin-top:3mm!important;
    color:#555!important;
  }

  .report-metrics{
    display:grid!important;
    grid-template-columns:repeat(3,1fr)!important;
    gap:4mm!important;
    margin:0 0 6mm!important;
  }

  .report-metrics article{
    border:1px solid #d7d7d7!important;
    border-radius:3mm!important;
    padding:4mm!important;
    min-height:22mm!important;
    background:#fff!important;
    box-shadow:none!important;
    break-inside:avoid!important;
    page-break-inside:avoid!important;
  }

  .report-metrics span{
    font-size:7.5pt!important;
    color:#666!important;
  }

  .report-metrics strong{
    font-size:14pt!important;
    margin-top:2mm!important;
    color:#111!important;
  }

  .report-grid.two-col{
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
    gap:5mm!important;
    margin:0 0 5mm!important;
    align-items:start!important;
  }

  .report-card{
    border:1px solid #d7d7d7!important;
    border-radius:3mm!important;
    padding:4mm!important;
    margin:0 0 5mm!important;
    background:#fff!important;
    box-shadow:none!important;
    break-inside:avoid!important;
    page-break-inside:avoid!important;
  }

  .report-card-head{
    margin-bottom:4mm!important;
  }

  .report-card-head h3{
    font-size:10.5pt!important;
    color:#111!important;
  }

  .report-card-head span{
    font-size:7.5pt!important;
    color:#666!important;
  }

  .report-bar-row{
    grid-template-columns:28mm 1fr 25mm!important;
    gap:3mm!important;
    margin-bottom:2.5mm!important;
  }

  .report-bar-row>span,
  .report-bar-row strong{
    font-size:7.5pt!important;
  }

  .report-bar-track{
    height:2mm!important;
    background:#e7e7e7!important;
  }

  .report-bar-fill{
    background:#222!important;
  }

  .report-kpi-stack{
    grid-template-columns:1fr 1fr!important;
    gap:3mm!important;
  }

  .report-kpi-stack>div{
    padding:3.5mm!important;
    border:1px solid #e0e0e0!important;
    background:#fff!important;
  }

  .report-kpi-stack span{
    font-size:7.5pt!important;
  }

  .report-kpi-stack strong{
    font-size:11pt!important;
  }

  .report-list-row{
    padding:3mm 0!important;
    gap:4mm!important;
  }

  .report-list-row strong{
    font-size:8.5pt!important;
  }

  .report-list-row span{
    font-size:7pt!important;
  }

  .report-table-wrap{
    overflow:visible!important;
    width:100%!important;
  }

  .report-table{
    width:100%!important;
    table-layout:fixed!important;
    border-collapse:collapse!important;
  }

  .report-table thead{
    display:table-header-group!important;
  }

  .report-table tr{
    break-inside:avoid!important;
    page-break-inside:avoid!important;
  }

  .report-table th,
  .report-table td{
    padding:2.5mm 2mm!important;
    font-size:7.5pt!important;
    border-top:1px solid #ddd!important;
    overflow-wrap:anywhere!important;
  }

  .report-table th{
    font-size:6.8pt!important;
    color:#555!important;
  }

  .report-empty{
    font-size:8pt!important;
    padding:4mm!important;
  }

  /* Let the wider staff table get a full-width row and natural page break. */
  #reports > .report-card{
    grid-column:1/-1!important;
  }

  /* If two-card rows would split awkwardly, begin them together on the next page. */
  .report-grid{
    break-inside:avoid!important;
    page-break-inside:avoid!important;
  }

  /* Avoid links/buttons appearing as browser-style print artifacts. */
  button,a{
    box-shadow:none!important;
    text-decoration:none!important;
  }
}

.settings-layout{display:grid;grid-template-columns:220px minmax(0,1fr);gap:18px;align-items:start}
.settings-tabs{background:#fff;border:1px solid var(--line);border-radius:14px;padding:8px;display:grid;gap:4px;position:sticky;top:88px}
.settings-tab{border:0;background:transparent;text-align:left;padding:11px 12px;border-radius:9px;font-weight:700;color:#60665d}
.settings-tab:hover{background:#f5f6f2}
.settings-tab.active{background:#171915;color:#fff}
.settings-content{min-width:0}
.settings-panel{display:none;background:#fff;border:1px solid var(--line);border-radius:16px;padding:20px}
.settings-panel.active{display:block}
.settings-panel-head{margin-bottom:18px}
.settings-panel-head.split{display:flex;justify-content:space-between;gap:16px;align-items:flex-start}
.settings-panel-head h2{margin:0;font-size:18px}
.settings-panel-head p{margin:5px 0 0;color:var(--muted);font-size:11px}
.settings-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.settings-form label{display:grid;gap:6px;font-size:11px;font-weight:700;color:#555c53}
.settings-form input,.settings-form select{width:100%;border:1px solid var(--line);border-radius:10px;padding:10px 12px;background:#fff;font:inherit}
.settings-full{grid-column:1/-1}
.settings-actions{grid-column:1/-1;display:flex;justify-content:flex-end;margin-top:4px}
.settings-actions.standalone{margin-top:18px}
.settings-list{display:grid;gap:10px}
.settings-list-row{display:flex;justify-content:space-between;gap:16px;align-items:center;border:1px solid var(--line);border-radius:12px;padding:13px 14px}
.settings-list-row strong,.settings-list-row span{display:block}
.settings-list-row span{font-size:10px;color:var(--muted);margin-top:3px}
.settings-row-actions{display:flex;gap:7px;align-items:center}
.settings-row-actions button{border:1px solid var(--line);background:#fff;border-radius:8px;padding:7px 9px;font-size:10px;font-weight:700}
.settings-row-actions button.danger{color:#a03e34}
.qr-settings-summary{display:grid;grid-template-columns:repeat(2,minmax(0,180px));gap:10px;margin-bottom:14px}
.qr-settings-summary>div{background:#f4f6f1;border-radius:12px;padding:13px}
.qr-settings-summary span,.qr-settings-summary strong{display:block}
.qr-settings-summary span{font-size:10px;color:var(--muted)}
.qr-settings-summary strong{font-size:20px;margin-top:4px}
.toggle-list{display:grid;gap:10px}
.toggle-row{display:flex;justify-content:space-between;gap:16px;align-items:center;padding:13px 0;border-top:1px solid var(--line)}
.toggle-row:first-child{border-top:0}
.toggle-row strong,.toggle-row span{display:block}
.toggle-row span{font-size:10px;color:var(--muted);margin-top:3px}
.toggle-switch{position:relative;width:42px;height:24px}
.toggle-switch input{opacity:0;width:0;height:0}
.toggle-slider{position:absolute;inset:0;background:#d9ddd5;border-radius:999px;cursor:pointer}
.toggle-slider:before{content:"";position:absolute;width:18px;height:18px;left:3px;top:3px;background:#fff;border-radius:50%;transition:.16s}
.toggle-switch input:checked + .toggle-slider{background:#171915}
.toggle-switch input:checked + .toggle-slider:before{transform:translateX(18px)}
.permission-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.permission-card{display:flex;justify-content:space-between;gap:14px;align-items:center;border:1px solid var(--line);border-radius:12px;padding:13px}
.permission-card strong,.permission-card span{display:block}
.permission-card span{font-size:10px;color:var(--muted);margin-top:3px}
.permission-manager-picker{grid-column:1/-1;display:grid;gap:6px;padding:14px;border:1px solid var(--line);border-radius:12px;background:#f8faf8}
.permission-manager-picker>span{font-size:10px;font-weight:850;color:var(--muted);text-transform:uppercase;letter-spacing:.06em}
.permission-manager-picker select{width:100%;min-height:42px;border:1px solid var(--line);border-radius:10px;background:#fff;padding:0 12px;color:var(--ink);font:inherit;font-weight:750}
.qr-token{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:10px!important}
@media(max-width:1100px){
  .settings-layout{grid-template-columns:1fr}
  .settings-tabs{position:static;display:flex;overflow:auto}
  .settings-tab{white-space:nowrap}
}

.branch-context{display:flex;align-items:center;gap:6px;color:#757b72;font-size:11px;margin-bottom:4px}
.branch-context strong{color:#333830}
.branch-context select{border:0;background:transparent;font:inherit;font-weight:800;color:#333830;padding:0 20px 0 0;max-width:190px;cursor:pointer}
.branch-context select:focus{outline:none}
.settings-head-actions{display:flex;gap:8px;align-items:center}
.qr-modal-card{width:min(520px,92vw);text-align:center}
.qr-sheet-preview{display:grid;justify-items:center}
.qr-sheet-preview h2{margin:0;font-size:22px}
.qr-sheet-preview .qr-branch{font-size:11px;color:var(--muted);margin-top:5px}
.qr-code-box{width:280px;height:280px;background:#fff;border:1px solid var(--line);border-radius:14px;padding:10px;margin:20px auto 14px;display:grid;place-items:center}
.qr-code-box canvas,.qr-code-box img{max-width:100%;height:auto!important}
.qr-table-label{font-size:22px;font-weight:900}
.qr-instruction{font-size:11px;color:var(--muted);margin-top:4px}
.qr-destination{font-size:9px;color:#777;overflow-wrap:anywhere;max-width:390px;margin:12px auto 0}
.qr-modal-actions{display:flex;justify-content:center;gap:8px;margin-top:18px}
.qr-unavailable{padding:30px 16px;font-size:12px;color:#8a5540}

.auth-modal{width:min(460px,92vw)}
.auth-error{
  grid-column:1/-1;
  background:#fff0ed;
  border:1px solid #f0c7bf;
  color:#913e32;
  border-radius:10px;
  padding:10px 12px;
  font-size:11px;
}
.auth-loading{opacity:.65;pointer-events:none}
.form-full{grid-column:1/-1}

.menu-admin-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:16px}.menu-admin-head h2{margin:0}.menu-admin-head p{margin:5px 0 0;color:var(--muted);font-size:11px}.menu-admin-actions{display:flex;gap:8px}.menu-admin-grid{display:grid;grid-template-columns:240px minmax(0,1fr);gap:14px}.menu-category-panel,.menu-items-panel{background:#fff;border:1px solid var(--line);border-radius:16px;padding:14px}.menu-category-panel h3{margin:0 0 10px}.menu-category-row{display:flex;justify-content:space-between;gap:8px;padding:10px 0;border-top:1px solid var(--line);align-items:center}.menu-category-row:first-child{border-top:0}.menu-category-row button{border:1px solid var(--line);background:#fff;border-radius:8px;padding:6px 8px;font-size:10px}.menu-items-toolbar{display:grid;grid-template-columns:1fr 180px;gap:8px;margin-bottom:10px}.menu-items-toolbar input,.menu-items-toolbar select{border:1px solid var(--line);border-radius:10px;padding:10px 12px;background:#fff}.admin-menu-items{display:grid;gap:8px}.admin-menu-item{display:grid;grid-template-columns:1fr auto auto;gap:12px;align-items:center;border:1px solid var(--line);border-radius:12px;padding:12px}.admin-menu-item strong,.admin-menu-item span{display:block}.admin-menu-item span{font-size:10px;color:var(--muted);margin-top:3px}.admin-menu-item .price{font-weight:900}.admin-menu-item button{border:1px solid var(--line);background:#fff;border-radius:8px;padding:7px 9px;font-size:10px}.admin-menu-item.inactive{opacity:.55}@media(max-width:1050px){.menu-admin-grid{grid-template-columns:1fr}}

.field-optional{font-size:9px;color:var(--muted);font-weight:500}
.admin-menu-item{grid-template-columns:minmax(0,1fr) auto auto auto}
.stock-link-button.missing{border-color:#ead4cc;color:#9b503e;background:#fff7f4}
.stock-link-button.linked{border-color:#cce3d2;color:#2f7447;background:#f2faf4}
.stock-recipe-modal{width:min(760px,94vw)}
.stock-recipe-head{padding-right:30px;margin-bottom:12px}
.stock-recipe-head h2{margin:4px 0 5px}
.stock-recipe-head p:last-child{margin:0;color:var(--muted);font-size:11px;line-height:1.45}
.stock-recipe-list{display:grid;gap:8px;max-height:52vh;overflow:auto;padding:2px 2px 8px}
.stock-recipe-row{display:grid;grid-template-columns:auto minmax(0,1fr) 145px;gap:10px;align-items:center;border:1px solid var(--line);border-radius:12px;padding:11px;background:#fff}
.stock-recipe-row input[type="checkbox"]{width:17px;height:17px}
.stock-recipe-copy strong,.stock-recipe-copy span{display:block}
.stock-recipe-copy span{font-size:10px;color:var(--muted);margin-top:3px}
.stock-recipe-qty{display:grid;grid-template-columns:1fr auto;gap:6px;align-items:center}
.stock-recipe-qty input{width:100%;border:1px solid var(--line);border-radius:9px;padding:8px 9px}
.stock-recipe-qty span{font-size:10px;color:var(--muted)}
.stock-recipe-empty{border:1px dashed var(--line);border-radius:12px;padding:18px;color:var(--muted);font-size:11px;text-align:center}
.inventory-item-sub .linked-count{margin-left:5px}
.cogs-complete{color:#2f7447}
.cogs-incomplete{color:#9b503e}
@media(max-width:720px){
  .stock-recipe-row{grid-template-columns:auto 1fr}
  .stock-recipe-qty{grid-column:2}
}

.booking-payment-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin:12px 0}
.booking-payment-summary>div{border:1px solid var(--line);border-radius:12px;padding:11px;background:#fafaf7}
.booking-payment-summary span,.booking-payment-summary strong{display:block}
.booking-payment-summary span{font-size:9px;color:var(--muted);text-transform:uppercase;letter-spacing:.05em}
.booking-payment-summary strong{margin-top:4px}
.booking-payment-entry{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:12px}
.booking-payment-entry label{display:grid;gap:6px;font-size:10px;color:var(--muted);font-weight:700}
.booking-payment-entry input,.booking-payment-entry select,.pool-payment-note input,.pool-payment-note select{border:1px solid var(--line);border-radius:10px;padding:10px;background:#fff}
.booking-payment-entry .booking-payment-reference,.booking-payment-entry button{grid-column:1/-1}
.booking-payment-history{display:grid;gap:6px;margin-top:12px}
.booking-payment-history>div{display:flex;justify-content:space-between;gap:10px;padding:8px 0;border-top:1px solid var(--line);font-size:10px}
.pool-payment-note{display:grid;gap:7px;margin-top:12px}
@media(max-width:700px){.booking-payment-summary,.booking-payment-entry{grid-template-columns:1fr}.booking-payment-entry .booking-payment-reference,.booking-payment-entry button{grid-column:auto}}

.reports-branch-text{font-size:10px!important;margin-top:2px!important}
.report-data-notice{margin:-4px 0 14px;padding:10px 12px;border:1px solid var(--line);border-radius:11px;background:#f7f8f4;color:#596056;font-size:10px}
.report-data-notice.warning{background:#fff8ec;border-color:#ecdcb7;color:#755c25}
.report-data-notice.error{background:#fff3f1;border-color:#ebcbc5;color:#87483e}
.report-stock-status{display:inline-flex;align-items:center;padding:4px 7px;border-radius:999px;font-size:9px;font-weight:800;text-transform:uppercase;letter-spacing:.035em}
.report-stock-status.ok{background:#edf7ef;color:#39714a}
.report-stock-status.low{background:#fff5dd;color:#88661b}
.report-stock-status.out{background:#fff0ed;color:#9b483b}
.report-metric-incomplete{color:#8c6a24!important}
.report-list-meta{display:flex!important;gap:8px;flex-wrap:wrap}
.report-list-meta span{margin-top:3px!important}
.report-table td strong{font-size:11px}
.report-table .muted-cell{color:var(--muted)}
.report-table .negative-value{color:#943f36}
.report-table .positive-value{color:#367049}
@media(min-width:1100px){
  .report-metrics{grid-template-columns:repeat(4,minmax(0,1fr))}
}
@media print{
  @page{size:A4;margin:12mm}
  .reports-branch-text{font-size:7.5pt!important}
  .report-data-notice{font-size:7pt!important;padding:2.5mm!important;margin:0 0 4mm!important}
  .report-metrics{grid-template-columns:repeat(4,1fr)!important}
  .report-stock-status{font-size:6.5pt!important;padding:1mm 1.5mm!important}
  #reports .report-card{break-inside:auto!important;page-break-inside:auto!important}
  #reports .report-grid .report-card{break-inside:avoid!important;page-break-inside:avoid!important}
}

/* FINAL UI / UX CLEANUP — ADMIN */
html{scrollbar-gutter:stable;text-rendering:optimizeLegibility}
body{overscroll-behavior-y:none}
body.modal-open{overflow:hidden}
button,input,select,textarea{font:inherit}
button{touch-action:manipulation}
button:disabled,input:disabled,select:disabled{cursor:not-allowed!important;opacity:.58}
button,.nav-item,.period-btn,.status-tab,.table-card,.staff-card,.metric-card,.panel,.report-card{
  transition:border-color .16s ease,background-color .16s ease,box-shadow .16s ease,transform .16s ease,opacity .16s ease
}
button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,[tabindex]:focus-visible{
  outline:3px solid rgba(40,93,65,.18);outline-offset:2px;border-color:#6d8d78!important
}
.primary-btn:active,.ghost-btn:active,.text-btn:active,.icon-btn:active,.period-btn:active{transform:translateY(1px)}
.main,.view,.panel,.report-card{min-width:0}
.topbar{border-bottom:1px solid rgba(223,226,218,.78);box-shadow:0 6px 20px rgba(29,35,25,.035)}
.sidebar{box-shadow:8px 0 26px rgba(30,35,27,.035)}
.nav-item{position:relative}
.nav-item.active{box-shadow:inset 3px 0 0 #171914}
.metric-card,.panel,.report-card,.staff-card,.table-card,.activity-feed{box-shadow:0 8px 24px rgba(36,42,31,.035)}
.table-card:hover,.staff-card:hover{transform:translateY(-1px);border-color:#d1d6cc;box-shadow:0 12px 28px rgba(36,42,31,.07)}
.period-switch{box-shadow:inset 0 0 0 1px rgba(219,223,214,.72)}
.period-btn{min-height:36px}
.period-btn.active{box-shadow:0 2px 8px rgba(23,25,20,.1)}
.custom-period{box-shadow:0 16px 40px rgba(35,40,31,.12);border:1px solid #dfe2da}
input,select,textarea{transition:border-color .15s ease,box-shadow .15s ease,background-color .15s ease}
input:focus,select:focus,textarea:focus{box-shadow:0 0 0 3px rgba(53,96,70,.08)}
.modal-backdrop{backdrop-filter:blur(5px);animation:uiFadeIn .14s ease-out}
.modal-card{
  width:min(720px,calc(100vw - 40px));max-height:min(88vh,880px);box-shadow:0 28px 90px rgba(20,24,17,.24);
  animation:uiModalIn .16s ease-out;overscroll-behavior:contain;scrollbar-width:thin
}
.close-btn{z-index:2}
.close-btn:hover{background:#e6e9e2}
.form-grid input,.form-grid select,.form-grid textarea{min-height:42px}
.form-actions{
  position:sticky;bottom:-22px;background:linear-gradient(180deg,rgba(255,255,255,.7),#fff 28%);
  padding-top:14px;padding-bottom:2px
}
.table-wrap,.sales-table-wrap,.expense-table-wrap,.inventory-table-wrap,.booking-table-wrap,.pool-table-wrap,.report-table-wrap{
  overscroll-behavior-x:contain;scrollbar-width:thin
}
table thead th{position:sticky;top:0;z-index:2;background:#f8f9f6;box-shadow:0 1px 0 var(--line)}
table tbody tr{transition:background-color .12s ease}
table tbody tr:hover{background:#fbfcf9}
.empty-state,.report-empty{line-height:1.5}
.notification-menu,.account-popover{box-shadow:0 20px 54px rgba(31,37,27,.15)}
.live-dot{box-shadow:0 0 0 0 rgba(47,137,76,.3);animation:livePulse 2.3s infinite}
@keyframes uiFadeIn{from{opacity:0}to{opacity:1}}
@keyframes uiModalIn{from{opacity:0;transform:translateY(6px) scale(.995)}to{opacity:1;transform:translateY(0) scale(1)}}
@keyframes livePulse{70%{box-shadow:0 0 0 6px rgba(47,137,76,0)}100%{box-shadow:0 0 0 0 rgba(47,137,76,0)}}
@media(max-width:1180px){
  .sidebar{width:210px}.main{margin-left:210px}.dashboard-grid-top,.dashboard-grid-footer{grid-template-columns:1fr}
  .table-grid{grid-template-columns:repeat(3,minmax(210px,1fr))}
}
@media(max-width:960px){
  .sidebar{width:184px}.main{margin-left:184px}.topbar{align-items:flex-start;gap:16px}.top-actions{flex-wrap:wrap;justify-content:flex-end}
  .money-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-grid-bottom{grid-template-columns:1fr}
  .dashboard-grid-bottom>section:last-child{grid-column:auto}.table-grid{grid-template-columns:repeat(2,minmax(210px,1fr))}
  .staff-cards{grid-template-columns:1fr}
}
@media(max-width:760px){
  .modal-backdrop{padding:10px}.modal-card,.form-modal{width:calc(100vw - 20px);max-height:92vh;border-radius:16px;padding:18px}
  .form-grid{grid-template-columns:1fr}.form-actions{grid-column:1}
}
@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{scroll-behavior:auto!important;animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important}
}


/* Subscription access */
.subscription-summary-card{display:flex;align-items:center;justify-content:space-between;gap:22px;margin:0 0 24px;padding:18px 20px;border:1px solid var(--line,#e4e6e5);border-radius:16px;background:#f7f9f8}
.subscription-summary-card>div{display:flex;flex-direction:column;gap:4px}.subscription-summary-card strong{color:#151918;font-size:1rem}.subscription-summary-card span{color:#6a7370;font-size:.78rem}.subscription-kicker{text-transform:uppercase;letter-spacing:.08em;font-weight:800;font-size:.65rem!important}.subscription-price{text-align:right}.subscription-price strong{font-size:1.05rem}.plan-inline-notice{grid-column:1/-1;padding:13px 14px;border:1px solid #e4d9bd;border-radius:12px;background:#fffaf0;color:#6e5a2d;font-size:.78rem;line-height:1.5}@media(max-width:700px){.subscription-summary-card{align-items:flex-start;flex-direction:column}.subscription-price{text-align:left}}


/* ==========================================================
   PROFESSIONAL LEISUREOS SIGN-IN
   Full-page auth experience; dashboard styles remain intact.
   ========================================================== */
body.login-mode{
  min-width:0 !important;
  overflow:hidden;
}
body.login-mode #appShell{
  display:none !important;
}
#loginModal.auth-login-screen{
  position:fixed;
  inset:0;
  z-index:500;
  display:block;
  padding:0;
  background:#fff;
  backdrop-filter:none;
  overflow:auto;
}
#loginModal.auth-login-screen.hidden{
  display:none !important;
}
.auth-login-layout{
  min-height:100vh;
  display:grid;
  grid-template-columns:minmax(430px,1.06fr) minmax(460px,.94fr);
  background:#fff;
}
.auth-login-story{
  position:relative;
  min-height:100vh;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  padding:40px clamp(38px,5vw,74px);
  background:
    radial-gradient(circle at 12% 0%,rgba(255,152,119,.18),transparent 32%),
    linear-gradient(145deg,#edf5f1 0%,#fafcfb 48%,#e5efeb 100%);
  color:#173c3b;
}
.auth-login-brand,
.auth-login-mobile-brand{
  display:inline-flex;
  align-items:center;
  gap:11px;
  width:max-content;
  color:#173c3b;
  text-decoration:none;
  font-size:21px;
  font-weight:850;
  letter-spacing:-.04em;
}
.auth-login-mark{
  width:38px;
  height:38px;
  display:grid;
  place-items:center;
  position:relative;
  border-radius:11px;
  background:#173c3b;
  color:#fff;
  font-size:22px;
  font-weight:900;
}
.auth-login-mark::after{
  content:"";
  position:absolute;
  right:7px;
  top:7px;
  width:7px;
  height:7px;
  border-radius:50%;
  background:#ff9877;
}
.auth-login-story-copy{
  width:min(620px,100%);
  margin:auto 0;
  padding:54px 0 38px;
}
.auth-login-eyebrow{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin-bottom:18px;
  color:#42665e;
  font-size:12px;
  font-weight:850;
}
.auth-login-eyebrow::before{
  content:"";
  width:7px;height:7px;border-radius:50%;background:#2f8c72;
}
.auth-login-story h1{
  max-width:760px;
  margin:0;
  color:#173c3b;
  font-size:clamp(46px,5vw,76px);
  line-height:.98;
  letter-spacing:-.065em;
}
.auth-login-story-copy>p{
  max-width:530px;
  margin:24px 0 0;
  color:#536c66;
  font-size:17px;
  line-height:1.65;
}
.auth-login-snapshot{
  width:min(560px,100%);
  margin-top:38px;
  padding:16px;
  border:1px solid #c7d8d1;
  border-radius:22px;
  background:rgba(255,255,255,.88);
  box-shadow:0 18px 55px rgba(24,62,55,.08);
}
.auth-login-snapshot-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:13px;
  color:#647873;
  font-size:11px;
}
.auth-login-snapshot-head strong{color:#173c3b;font-size:12px}
.auth-login-snapshot-head span{color:#397b67;font-weight:800}
.auth-login-metrics{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:9px;
}
.auth-login-metrics>div{
  padding:13px;
  border:1px solid #e2ebe7;
  border-radius:14px;
  background:#fff;
}
.auth-login-metrics>div.dark{
  background:#173c3b;
  border-color:#173c3b;
  color:#fff;
}
.auth-login-metrics small,
.auth-login-metrics strong{display:block}
.auth-login-metrics small{margin-bottom:7px;color:#758984;font-size:10px}
.auth-login-metrics .dark small{color:#c9dad5}
.auth-login-metrics strong{font-size:17px;letter-spacing:-.03em}
.auth-login-panels{
  display:grid;
  grid-template-columns:1.35fr .65fr;
  gap:9px;
  margin-top:9px;
}
.auth-mini-chart,
.auth-mini-attention{
  min-height:124px;
  padding:14px;
  border:1px solid #e2ebe7;
  border-radius:14px;
  background:#fff;
  font-size:11px;
}
.auth-bars{
  height:70px;
  display:flex;
  align-items:flex-end;
  gap:8px;
  margin-top:12px;
}
.auth-bars i{
  flex:1;
  display:block;
  border-radius:6px 6px 3px 3px;
  background:#d6e5df;
}
.auth-bars i:nth-child(1){height:28%}
.auth-bars i:nth-child(2){height:55%}
.auth-bars i:nth-child(3){height:40%}
.auth-bars i:nth-child(4){height:78%;background:#214b43}
.auth-bars i:nth-child(5){height:62%}
.auth-bars i:nth-child(6){height:88%;background:#ff9877}
.auth-mini-attention span{
  display:block;
  margin-top:9px;
  padding-top:9px;
  border-top:1px solid #edf1ef;
  color:#5d716c;
  font-size:9px;
}
.auth-login-story-foot{
  display:flex;
  gap:18px;
  flex-wrap:wrap;
  color:#68807a;
  font-size:11px;
}
.auth-login-story-foot span::before{
  content:"";
  display:inline-block;
  width:5px;height:5px;margin-right:7px;border-radius:50%;background:#91a8a1;
}
.auth-login-panel{
  min-height:100vh;
  display:flex;
  flex-direction:column;
  padding:32px clamp(28px,5vw,68px);
  background:#fff;
}
.auth-login-top{
  min-height:40px;
  display:flex;
  justify-content:flex-end;
  align-items:center;
}
.auth-login-mobile-brand{display:none}
.auth-back-link{
  padding:9px 10px;
  border-radius:10px;
  color:#58716b;
  text-decoration:none;
  font-size:13px;
  font-weight:750;
}
.auth-back-link:hover{background:#f3f7f5}
.auth-login-card{
  width:min(470px,100%);
  margin:auto;
}
.auth-login-kicker{
  display:block;
  margin-bottom:12px;
  color:#647b75;
  font-size:12px;
  font-weight:850;
}
.auth-login-card h2{
  margin:0;
  color:#173c3b;
  font-size:38px;
  line-height:1.05;
  letter-spacing:-.045em;
}
.auth-login-card>p{
  margin:13px 0 30px;
  color:#687b77;
  font-size:14px;
  line-height:1.6;
}
.auth-login-form{
  display:grid;
  gap:17px;
}
.auth-login-form label{
  display:grid;
  gap:8px;
  color:#294743;
  font-size:12px;
  font-weight:800;
}
.auth-login-form input{
  width:100%;
  height:52px;
  padding:0 15px;
  border:1px solid #cfddd8;
  border-radius:13px;
  outline:none;
  background:#fff;
  color:#173c3b;
}
.auth-login-form input::placeholder{color:#92a39e}
.auth-login-form input:focus{
  border-color:#789d92;
  box-shadow:0 0 0 4px rgba(77,126,112,.09);
}
.auth-password-field{position:relative}
.auth-password-field input{padding-right:70px}
.auth-password-toggle{
  position:absolute;
  top:50%;
  right:9px;
  transform:translateY(-50%);
  height:34px;
  padding:0 10px;
  border:0;
  border-radius:8px;
  background:#f3f7f5;
  color:#547169;
  font-size:10px;
  font-weight:850;
}
.auth-login-submit{
  width:100%;
  height:52px;
  margin-top:4px;
  border:0;
  border-radius:13px;
  background:#173c3b;
  color:#fff;
  font-weight:850;
  box-shadow:0 10px 24px rgba(21,58,53,.16);
}
.auth-login-submit:hover{background:#102f2c}
.auth-login-submit.auth-loading{opacity:.65;pointer-events:none}
.auth-login-alt{
  display:flex;
  justify-content:space-between;
  gap:14px;
  align-items:center;
  margin-top:22px;
  padding-top:20px;
  border-top:1px solid #e3ebe8;
  color:#71847f;
  font-size:11px;
}
.auth-login-alt a{
  color:#173c3b;
  font-weight:850;
  text-decoration:none;
}
.auth-login-footer{
  display:flex;
  justify-content:center;
  gap:16px;
  padding-top:20px;
  color:#81918d;
  font-size:10px;
}
.auth-binding-only{display:none !important}

@media(max-width:900px){
  body.login-mode{background:#fff}
  .auth-login-layout{display:block}
  .auth-login-story{display:none}
  .auth-login-panel{
    min-height:100dvh;
    padding:20px 20px 26px;
    background:linear-gradient(180deg,#f4f8f6 0,#fff 36%);
  }
  .auth-login-top{
    justify-content:space-between;
  }
  .auth-login-mobile-brand{display:inline-flex}
  .auth-login-card{
    max-width:480px;
    padding:44px 0 28px;
  }
}
@media(max-width:520px){
  .auth-login-panel{padding:16px 18px 22px}
  .auth-login-mobile-brand{font-size:18px}
  .auth-login-mark{width:34px;height:34px;border-radius:10px}
  .auth-back-link{font-size:11px}
  .auth-login-card{padding:34px 0 24px}
  .auth-login-card h2{font-size:32px}
  .auth-login-card>p{margin-bottom:26px}
  .auth-login-form input,
  .auth-login-submit{height:50px}
  .auth-login-alt{
    align-items:flex-start;
    flex-direction:column;
  }
  .auth-login-footer{justify-content:flex-start}
}


/* BUSINESS BRANDING SETTINGS */
.brand-settings-card{
  display:grid;
  grid-template-columns:1fr 180px;
  gap:18px;
  align-items:end;
  padding:18px;
  border:1px solid var(--line);
  border-radius:16px;
  background:#fafcfb;
}
.brand-settings-preview{
  display:flex;
  align-items:center;
  gap:12px;
}
.brand-settings-preview strong,
.brand-settings-preview span{display:block}
.brand-settings-preview span{margin-top:3px;color:#74847f;font-size:12px}
.brand-settings-mark{
  width:54px;height:54px;
  display:grid;place-items:center;
  border-radius:16px;
  color:#111;
  font-weight:950;
  font-size:19px;
}
.copy-field{display:grid;grid-template-columns:1fr auto;gap:8px}
.settings-helper{grid-column:1/-1;margin:0;color:#71807c;font-size:12px;line-height:1.55}
@media(max-width:760px){
  .brand-settings-card{grid-template-columns:1fr}
}

/* CUSTOMER REVIEW REPORT */
.customer-review-report{margin-bottom:18px}
.review-report-summary{
  display:grid;
  grid-template-columns:150px 120px 1fr;
  gap:12px;
  margin:16px 0;
}
.review-score{
  padding:14px;
  border:1px solid var(--line);
  border-radius:13px;
  background:#fbfcfc;
}
.review-score strong,.review-score span{display:block}
.review-score strong{font-size:24px;letter-spacing:-.04em}
.review-score span{margin-top:4px;color:#7a8884;font-size:11px}
.review-stars-summary{
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:7px;
  align-items:center;
}
.review-stars-summary span{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:6px;
  padding:10px;
  border:1px solid var(--line);
  border-radius:11px;
}
.review-stars-summary b{color:#9c7621;font-size:11px}
.review-stars-summary em{font-style:normal;font-weight:800}
.review-report-list{display:grid;gap:9px}
.review-report-item{
  display:grid;
  grid-template-columns:180px 1fr auto;
  gap:14px;
  align-items:center;
  padding:12px 0;
  border-top:1px solid var(--line);
}
.review-report-item>div strong,.review-report-item>div span{display:block}
.review-report-item>div strong{color:#b38520;letter-spacing:.04em}
.review-report-item>div span{margin-top:3px;color:#7a8884;font-size:11px}
.review-report-item p{margin:0;font-size:13px}
.review-report-item p em{color:#8c9995}
.review-report-item small{color:#8c9995}
@media(max-width:760px){
  .review-report-summary{grid-template-columns:1fr 1fr}
  .review-stars-summary{grid-column:1/-1}
  .review-report-item{grid-template-columns:1fr}
}

.brand-settings-mark.has-logo{
  overflow:hidden;
  padding:0;
  background:#fff!important;
}
.brand-settings-mark.has-logo img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
}
.brand-logo-actions{
  display:flex;
  align-items:center;
  gap:10px;
  min-height:42px;
}
.brand-logo-actions small{color:#7d8b87}

/* Hotel dining department switch — accessible without crowding small screens. */
.floor-legend .hotel-only {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.floor-legend .hotel-only.hidden { display: none !important; }
.floor-legend #tableDepartmentFilter {
  min-width: 160px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 9px;
  padding: 8px 10px;
  color: var(--ink);
  font: inherit;
}
@media (max-width: 700px) {
  .floor-legend { flex-wrap: wrap; }
  .floor-legend .hotel-only {
    margin-left: 0;
    width: 100%;
    justify-content: space-between;
  }
  .floor-legend #tableDepartmentFilter { flex: 1; max-width: 210px; }
}


/* Department-first management + optional menu photos. */
.department-create-form{margin-top:18px;align-items:end;grid-template-columns:minmax(0,1fr) auto}
.department-create-form button{min-height:42px}
.department-row{display:flex;align-items:center;justify-content:space-between;gap:14px}
.department-row>div:first-child{display:grid;gap:4px;min-width:0}
.department-row strong{font-size:13px}
.department-row span{color:var(--muted);font-size:12px}
.admin-menu-thumb{width:62px;height:62px;object-fit:cover;border-radius:11px;flex-shrink:0;background:#f3f5f1;display:grid;place-items:center}
.empty-photo{font-size:10px;color:#7c867a;text-align:center;border:1px dashed #d3d9cf}
.admin-menu-item{min-width:0;gap:10px}
.admin-menu-item>div:not(.price){min-width:0}
.admin-menu-item>div:not(.price) span{overflow-wrap:anywhere}
.mobile-menu-toggle,.mobile-nav-close,.mobile-bottom-nav{display:none}
.mobile-nav-backdrop{position:fixed;inset:0;background:rgba(15,21,17,.55);border:0;z-index:199}
.mobile-navigation-open{overflow:hidden}

@media(max-width:960px){
  .app-shell{display:block;min-height:100dvh}
  .app-shell .sidebar{position:fixed;top:0;left:0;bottom:0;width:min(310px,85vw);height:100dvh;
    padding:26px 18px;background:#11130f;z-index:201;overflow-y:auto;
    transform:translateX(-105%);transition:transform .22s ease}
  .app-shell .sidebar.mobile-open{transform:translateX(0)}
  .mobile-nav-close{display:grid;place-items:center;position:absolute;right:12px;top:12px;
    border:0;background:#252922;color:#fff;width:36px;height:36px;border-radius:9px;font-size:25px;z-index:2}
  .mobile-menu-toggle{display:grid;place-items:center;flex-shrink:0;width:40px;height:40px;
    border:1px solid var(--line);border-radius:11px;background:#fff;font-size:20px}
  .app-shell .main{margin:0!important;padding:18px 18px calc(92px + env(safe-area-inset-bottom));width:100%;min-width:0;max-width:100vw;overflow-x:clip}
  .app-shell .topbar{display:flex;align-items:flex-start;gap:10px;flex-wrap:wrap;padding-bottom:14px;margin-bottom:18px}
  .app-shell .topbar>div:first-of-type{min-width:0;flex:1}
  .app-shell .topbar h1{font-size:clamp(22px,5vw,28px);line-height:1.15}
  .app-shell .branch-context{max-width:100%;flex-wrap:wrap;gap:5px}
  .app-shell .top-actions{width:100%;min-width:0;justify-content:space-between;flex-wrap:wrap}
  .app-shell .global-period-area{min-width:0;flex:1}
  .app-shell .period-switch{overflow-x:auto;display:flex;max-width:100%;-webkit-overflow-scrolling:touch;scrollbar-width:none}
  .app-shell .period-switch::-webkit-scrollbar{display:none}
  .app-shell .period-btn{flex:0 0 auto;white-space:nowrap}
  .app-shell .custom-period{z-index:90;max-width:calc(100vw - 34px)}
  .app-shell .notification-menu{width:min(355px,calc(100vw - 36px));z-index:100}
  .app-shell .settings-layout{display:block}
  .app-shell .settings-tabs{position:static;display:flex;gap:6px;overflow-x:auto;margin-bottom:14px;scrollbar-width:none}
  .app-shell .settings-tab{flex:0 0 auto;white-space:nowrap}
  .app-shell .dashboard-toolbar,.app-shell .section-head,.app-shell .menu-admin-head{flex-wrap:wrap;gap:10px}
  .app-shell .menu-admin-actions{flex-wrap:wrap;width:100%}
  .app-shell .menu-admin-grid{grid-template-columns:1fr}
  .app-shell .menu-category-panel,.app-shell .menu-items-panel{min-width:0}
  .app-shell .report-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
  .app-shell .dashboard-grid-top,.app-shell .dashboard-grid-bottom,.app-shell .dashboard-grid-footer{grid-template-columns:1fr}
  .app-shell .money-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .app-shell .staff-cards{grid-template-columns:1fr}
  .app-shell .table-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .app-shell .modal-card,.app-shell .form-modal{max-width:calc(100vw - 20px)}
  .app-shell .settings-panel{padding:16px}
  .app-shell .menu-items-toolbar{display:flex;gap:8px;flex-wrap:wrap}
  .app-shell .menu-items-toolbar>*{min-width:0;flex:1 1 170px}
  .app-shell .admin-menu-item{display:flex;flex-wrap:wrap;align-items:center}
  .app-shell .admin-menu-item>div:not(.price){flex:1 1 155px}
  .app-shell .admin-menu-item button{min-height:38px}
  .app-shell .report-table-wrap,.app-shell .table-wrap,.app-shell .sales-table-wrap,.app-shell .pool-table-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch}
  .mobile-bottom-nav{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));
    position:fixed;left:0;right:0;bottom:0;z-index:140;background:#fff;
    border-top:1px solid #e3e7e0;padding:7px 6px calc(7px + env(safe-area-inset-bottom));
    box-shadow:0 -8px 28px rgba(10,25,15,.055)}
  .mobile-bottom-nav button{border:0;background:transparent;color:#737b71;display:grid;justify-items:center;gap:2px;
    min-width:0;font-size:10px;min-height:48px;padding:3px 2px;border-radius:10px}
  .mobile-bottom-nav button svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.8}
  .mobile-bottom-nav button.active,.mobile-bottom-nav button[aria-expanded="true"]{background:#f1f4ef;color:#172318;font-weight:700}
  .mobile-bottom-nav button.hidden{display:none}
  .department-create-form{display:grid;grid-template-columns:1fr}
}
@media(max-width:570px){
  .app-shell .main{padding:14px 12px calc(88px + env(safe-area-inset-bottom))}
  .app-shell .money-grid,.app-shell .report-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
  .app-shell .money-grid article,.app-shell .metric-card{min-width:0;padding:12px}
  .app-shell .money-grid strong,.app-shell .metric-card strong{font-size:clamp(17px,4.1vw,23px);overflow-wrap:anywhere}
  .app-shell .table-grid,.app-shell .dashboard-grid-bottom,.app-shell .dashboard-grid-top{grid-template-columns:1fr}
  .app-shell .subscription-summary-card{flex-direction:column;align-items:flex-start}
  .app-shell .settings-form{grid-template-columns:1fr}
  .app-shell .form-grid{grid-template-columns:1fr}
  .app-shell .settings-panel{padding:12px}
  .app-shell .settings-panel-head{gap:10px;flex-wrap:wrap}
  .app-shell .settings-list,.app-shell .staff-cards{min-width:0}
  .app-shell .admin-menu-item .price{margin-left:auto}
}

/* Team membership and operational QR routing are separate concerns. */
.department-create-form .settings-helper{margin:0;grid-column:1/-1;line-height:1.55}
.department-row{min-width:0}
.department-row strong{overflow-wrap:anywhere}
.routing-settings-info{display:grid;gap:12px;margin-bottom:18px}
.routing-settings-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px;border:1px solid #e1e8e0;border-radius:14px;background:#f8faf7}
.routing-settings-row>div{flex:1;min-width:0}
.routing-settings-row strong{display:block;font-size:14px;color:#27382c;margin-bottom:7px}
.routing-settings-row p{margin:0;color:#617166;line-height:1.55;font-size:13px}
.routing-settings-row button{flex:0 0 auto}
@media(max-width:660px){
  .department-create-form{grid-template-columns:1fr}
  .routing-settings-row{flex-direction:column;align-items:stretch;padding:14px}
  .routing-settings-row button{width:100%}
}


/* HOTEL-FIRST OWNER EXPERIENCE — room and service data, never fake booking counts. */
.hotel-overview-hero{
  display:grid;grid-template-columns:minmax(0,1.6fr) minmax(230px,.65fr);
  align-items:stretch;gap:30px;padding:32px 34px;margin-bottom:28px;
  border-radius:23px;color:#f5f7f4;
  background:radial-gradient(ellipse at 85% 0%,rgba(88,141,121,.3),transparent 50%),linear-gradient(115deg,#142924 0%,#1b3830 75%,#253e34 100%);
  box-shadow:0 14px 35px rgba(22,51,37,.1);
}
.hotel-hero-main{min-width:0}
.hotel-hero-eyebrow{display:flex;gap:9px;align-items:center;flex-wrap:wrap;color:#b1c9bd;font-size:10px;font-weight:850;letter-spacing:.13em}
.hotel-hero-dot{width:7px;height:7px;border-radius:100%;background:#74c997;box-shadow:0 0 0 4px rgba(116,201,151,.13)}
.hotel-hero-separator{color:#6e9982}
.hotel-hero-main h2{font-size:clamp(25px,2.6vw,38px);font-weight:750;letter-spacing:-.04em;line-height:1.13;margin:22px 0 11px;color:#fff}
.hotel-hero-main p{max-width:560px;font-size:13px;line-height:1.7;color:#c4d7cd;margin:0}
.hotel-hero-actions{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin-top:24px}
.hotel-hero-actions button{border-radius:11px;min-height:44px;padding:11px 14px;font-size:12px;font-weight:800}
.hotel-hero-primary{border:1px solid #f9fdf8;background:#fff;color:#1d332b}
.hotel-hero-primary:hover{background:#eaf3ea}
.hotel-hero-secondary{border:1px solid rgba(221,243,231,.24);background:rgba(255,255,255,.08);color:#f5fff8}
.hotel-hero-secondary:hover{background:rgba(255,255,255,.16)}
.hotel-hero-actions span{margin-left:13px}
.hotel-hero-occupancy{display:flex;flex-direction:column;justify-content:flex-end;align-self:stretch;background:rgba(255,255,255,.07);border:1px solid rgba(221,243,231,.17);padding:22px;border-radius:18px;min-width:0}
.hotel-occupancy-head{display:flex;align-items:flex-end;justify-content:space-between;gap:8px;margin-bottom:16px}
.hotel-occupancy-head span{font-size:12px;color:#c5d9cb}
.hotel-occupancy-head strong{font-size:32px;color:#fff;letter-spacing:-.05em}
.hotel-occupancy-progress{height:8px;background:rgba(250,255,248,.2);border-radius:100px;overflow:hidden}
.hotel-occupancy-progress span{display:block;width:0;height:100%;background:#9ce4b8;border-radius:inherit;transition:width .25s ease}
.hotel-occupancy-footer{display:flex;justify-content:space-between;gap:8px;margin-top:12px;font-size:10px;color:#bed4c5}
.hotel-occupancy-footer strong{font-weight:750;color:#fff}
.hotel-section-label,.overview-finance-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin-bottom:13px}
.hotel-section-label h2,.overview-finance-heading h2{margin:0;letter-spacing:-.025em;font-size:19px}
.overview-finance-heading{margin:30px 0 15px}
.overview-finance-heading span{font-size:9px;letter-spacing:.15em;font-weight:850;color:var(--muted)}
.overview-finance-heading p{font-size:11px;color:var(--muted);margin:0}
.hotel-inline-link{border:none;color:var(--ink);background:transparent;font-size:12px;font-weight:800;padding:7px;white-space:nowrap}
.hotel-kpi-section{margin-bottom:8px}
.hotel-kpi-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px}
.hotel-kpi-card{display:flex;flex-direction:column;min-height:155px;gap:10px;padding:15px;border:1px solid var(--line);border-radius:16px;background:var(--panel);position:relative;min-width:0}
.hotel-kpi-icon{width:32px;height:32px;border-radius:10px;display:grid;place-items:center;background:var(--soft);color:var(--ink);font-size:16px;font-weight:900}
.hotel-kpi-card>div:nth-child(2){display:flex;flex-direction:column;min-width:0}
.hotel-kpi-label{font-size:11px;color:var(--muted);font-weight:700}
.hotel-kpi-card strong{font-size:clamp(23px,2vw,32px);letter-spacing:-.05em;color:var(--ink);margin-top:5px}
.hotel-kpi-note{font-size:10px;color:var(--muted);margin-top:2px;line-height:1.3}
.hotel-kpi-card>button{position:absolute;right:10px;top:11px;width:26px;height:26px;border:0;background:transparent;color:var(--muted);font-weight:800;border-radius:7px}
.hotel-kpi-card>button:hover{background:var(--soft);color:var(--ink)}
.hotel-kpi-green .hotel-kpi-icon{background:#e2f4e9;color:#22653f}
.hotel-kpi-amber{border-color:#dfc7a6;background:#fffaf1}
.hotel-kpi-amber .hotel-kpi-icon{background:#ffebd3;color:#9a531b}
.hotel-no-attention{text-align:center;padding:34px 18px;color:var(--muted)}
.hotel-no-attention>span{width:40px;height:40px;display:grid;place-items:center;margin:0 auto 11px;background:#e2f4e9;color:#236e45;border-radius:14px;font-weight:900}
.hotel-no-attention strong{display:block;font-size:13px;color:var(--ink)}
.hotel-no-attention p{font-size:12px;line-height:1.5;margin:5px 0 0}
.room-attention-item .attention-icon{background:#e3efe9;color:#19583a}

/* Room 101 is an operational card, not a generic clickable table tile. */
.hotel-rooms-intro{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:22px 25px;margin-bottom:17px;
  background:linear-gradient(105deg,#e9f1e9,#f6f8f4);border:1px solid #e0e8df;border-radius:18px}
.hotel-rooms-eyebrow{color:#447358;font-size:10px;font-weight:900;letter-spacing:.13em}
.hotel-rooms-intro h2{font-size:24px;letter-spacing:-.045em;margin:7px 0}
.hotel-rooms-intro p{font-size:12px;line-height:1.5;color:#617368;margin:0}
.hotel-rooms-intro button{white-space:nowrap;min-height:44px}
.hotel-rooms-toolbar{margin-bottom:20px}
.hotel-room-stat-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
#roomGrid.hotel-room-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,275px),1fr));align-items:start;gap:15px}
.hotel-room-card{background:var(--panel);border:1px solid var(--line);border-radius:18px;min-width:0;padding:19px;box-shadow:0 5px 23px rgba(20,31,22,.04);transition:border-color .15s,transform .15s}
.hotel-room-card:hover{border-color:#b7c8b9;transform:translateY(-1px)}
.hotel-room-card.room-needs-attention{border-color:#e6b37c}
.hotel-room-card-head{display:flex;align-items:center;justify-content:space-between;gap:8px}
.hotel-room-symbol{display:grid;place-items:center;width:35px;height:35px;border-radius:11px;background:var(--soft);color:var(--ink);font-size:21px}
.hotel-room-state{display:inline-flex;align-items:center;gap:7px;white-space:nowrap;padding:7px 10px;border-radius:100px;font-size:10px;font-weight:800;background:var(--soft);color:var(--muted)}
.hotel-room-state i{width:7px;height:7px;border-radius:50%;background:currentColor}
.room-state-available{background:#e4f4e9;color:#206b3c}
.room-state-occupied{background:#e7eeff;color:#365c94}
.room-state-reserved{background:#f0eaff;color:#65529d}
.room-state-out_of_service{background:#ffede9;color:#a04f3b}
.hotel-room-card-title{margin:22px 0 18px;min-width:0}
.hotel-room-card-title>span{font-size:10px;letter-spacing:.14em;font-weight:850;color:var(--muted)}
.hotel-room-card-title h3{font-size:32px;margin:3px 0 3px;letter-spacing:-.06em;overflow-wrap:anywhere}
.hotel-room-card-title p{margin:0;font-size:12px;color:var(--muted)}
.hotel-room-alert{padding:9px 10px;border:1px solid #ebd1b1;background:#fff8ed;color:#8b561c;border-radius:10px;font-size:11px;line-height:1.45;margin:0 0 14px}
.hotel-room-alert span{margin-right:4px}
.hotel-room-service{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;background:var(--soft);border-radius:11px;padding:12px;margin-bottom:13px}
.hotel-room-service>div{display:flex;flex-direction:column;gap:3px;min-width:0}
.hotel-room-service span{font-size:10px;color:var(--muted)}
.hotel-room-service strong{font-size:12px;overflow-wrap:anywhere}
.hotel-room-controls{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:9px;align-items:end;padding-top:13px;border-top:1px solid var(--line)}
.hotel-room-status-control{display:grid;gap:5px;font-size:10px;color:var(--muted);font-weight:750}
.hotel-room-status-control select{appearance:auto;width:100%;min-width:0;min-height:42px;border:1px solid var(--line);border-radius:10px;padding:9px 8px;background:var(--panel);color:var(--ink);font-size:12px;font-weight:750}
.hotel-room-qr{border:1px solid var(--line);border-radius:10px;min-height:42px;background:var(--soft);color:var(--ink);padding:9px 11px;font-size:12px;font-weight:800;white-space:nowrap}
.hotel-room-qr>span{font-size:17px;vertical-align:-1px;margin-right:4px}
.hotel-room-qr:hover{background:#e3efe5}
.hotel-room-qr:disabled{opacity:.4;cursor:not-allowed}
.hotel-room-service-button{display:flex;align-items:center;justify-content:space-between;width:100%;margin-top:12px;background:#1c392d;color:#fff;border:0;border-radius:10px;padding:11px 13px;font-size:12px;font-weight:800}
.hotel-room-empty{grid-column:1/-1;text-align:center;border:1px dashed var(--line);border-radius:18px;padding:36px;color:var(--muted)}
.hotel-room-empty strong{display:block;font-size:16px;color:var(--ink)}
.hotel-room-empty p{font-size:12px;margin:8px 0 0}

/* Global theme — applies to every management section, but not the guest pages. */
.dashboard-theme-toggle{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:38px;white-space:nowrap;padding:8px 11px;border:1px solid var(--line);border-radius:11px;background:var(--panel);color:var(--ink);font-size:11px;font-weight:800}
.theme-switch-icon{font-size:17px;line-height:1}
.dashboard-theme-toggle:hover{background:var(--soft)}
body[data-dashboard-theme="dark"]{
  --bg:#121b1a;--panel:#1c2927;--ink:#eff5f2;--muted:#a5b9b0;--line:#374943;--soft:#25342f;--good:#7ed5a0;--warn:#e9b47c;--bad:#f09384;
  background:var(--bg);color:var(--ink);color-scheme:dark;
}
body[data-dashboard-theme="dark"] .app-shell{color:var(--ink)}
body[data-dashboard-theme="dark"] .app-shell .main,
body[data-dashboard-theme="dark"] .app-shell :is(h1,h2,h3,h4){color:var(--ink)}
body[data-dashboard-theme="dark"] .app-shell :is(.panel,.metric-card:not(.primary-metric),.report-card,.table-card,.staff-card,.settings-panel,.settings-list-row,.room-group-heading,.inventory-stats article,.ops-card,.activity-feed,.status-tab,.account-popover,.notification-menu,.modal-card,.form-modal,.table-wrap,.sales-table-wrap,.booking-card,.subscription-summary-card,.menu-category-panel,.menu-items-panel,.admin-menu-item,.review-report-item,.hotel-room-card,.hotel-kpi-card:not(.hotel-kpi-amber),.qr-sheet-preview){
  background:var(--panel);border-color:var(--line);color:var(--ink);
}
body[data-dashboard-theme="dark"] .app-shell :is(.hotel-kpi-amber,.warning-metric){background:#392f25;border-color:#8d6841;color:var(--ink)}
body[data-dashboard-theme="dark"] .app-shell :is(.period-switch,.text-btn,.rank-no,.ops-card,.detail-box,.management-access,.capacity-control,.hotel-room-service,.hotel-room-qr,.hotel-room-symbol,.hotel-kpi-icon,.account-popover button:hover,.hotel-rooms-intro,.routing-settings-row,.settings-list,.room-status-filter){background:var(--soft);color:var(--ink);border-color:var(--line)}
body[data-dashboard-theme="dark"] .app-shell :is(.primary-metric,.primary-btn,.room-service-button){background:#21382f;border-color:#3f6552;color:#fff}
body[data-dashboard-theme="dark"] .app-shell :is(.ghost-btn,.icon-btn,.mobile-menu-toggle,.secondary,.attention-actions .secondary,.form-actions,.period-btn.active,.notification-head,.close-btn,.settings-tab,.table-state.inactive){background:var(--panel);color:var(--ink);border-color:var(--line)}
body[data-dashboard-theme="dark"] .app-shell :is(input,select,textarea){background:#152321;color:var(--ink);border-color:var(--line);color-scheme:dark}
body[data-dashboard-theme="dark"] .app-shell :is(input,textarea)::placeholder{color:#91aba0}
body[data-dashboard-theme="dark"] .app-shell :is(.status-tab strong,.subscription-summary-card strong,.routing-settings-row strong,.rank-copy strong,.hotel-kpi-card strong){color:var(--ink)}
body[data-dashboard-theme="dark"] .app-shell :is(.branch-context,.branch-context select,.live-label,.table-meta,.hotel-room-card-title p,.hotel-room-status-control,.hotel-kpi-label,.hotel-kpi-note,.routing-settings-row p){color:var(--muted)}
body[data-dashboard-theme="dark"] .app-shell :is(.chart-bar,.mix-fill){background:#86c8a1}
body[data-dashboard-theme="dark"] .app-shell :is(.mix-track,.period-switch,.chart-bar-wrap){border-color:var(--line)}
body[data-dashboard-theme="dark"] .app-shell :is(.attention-item,.order-lines,.order-line,.notification-item,.settings-list-row){border-color:var(--line)}
body[data-dashboard-theme="dark"] .app-shell .attention-item.warning,
body[data-dashboard-theme="dark"] .app-shell .request-strip,
body[data-dashboard-theme="dark"] .app-shell .hotel-room-alert{background:#392e22;border-color:#715334;color:#eed1a6}
body[data-dashboard-theme="dark"] .app-shell .hotel-rooms-intro{background:linear-gradient(105deg,#20372e,#273d33)}
body[data-dashboard-theme="dark"] .app-shell .hotel-rooms-intro p{color:#b2c7b8}
body[data-dashboard-theme="dark"] .app-shell .hotel-kpi-green .hotel-kpi-icon,
body[data-dashboard-theme="dark"] .app-shell .hotel-no-attention>span{background:#294e3b;color:#a1e5b9}
body[data-dashboard-theme="dark"] .app-shell .hotel-kpi-amber .hotel-kpi-icon{background:#61442b;color:#f1c18d}
body[data-dashboard-theme="dark"] .app-shell .hotel-room-state.room-state-available{background:#284937;color:#b1edc4}
body[data-dashboard-theme="dark"] .app-shell .hotel-room-state.room-state-occupied{background:#294263;color:#bdd8ff}
body[data-dashboard-theme="dark"] .app-shell .hotel-room-state.room-state-reserved{background:#463969;color:#d5c4ff}
body[data-dashboard-theme="dark"] .app-shell .hotel-room-state.room-state-out_of_service{background:#63392f;color:#ffd5c9}
body[data-dashboard-theme="dark"] .app-shell .hotel-hero-main h2{color:#fff}
body[data-dashboard-theme="dark"] .app-shell .hotel-room-qr:hover{background:#2c4839}
body[data-dashboard-theme="dark"] .app-shell .hotel-room-service-button{background:#315840;color:#fff}
body[data-dashboard-theme="dark"] .app-shell .mobile-bottom-nav{background:#1a2925;border-top-color:#364c40}
body[data-dashboard-theme="dark"] .app-shell .mobile-bottom-nav button{color:#bad0c2}
body[data-dashboard-theme="dark"] .app-shell .mobile-bottom-nav button.active{background:#304c3d;color:#fff}
body[data-dashboard-theme="dark"] .app-shell .main table :is(th,td){border-color:var(--line);color:var(--ink)}
body[data-dashboard-theme="dark"] .app-shell table thead th{background:#293a34;color:var(--ink)}
body[data-dashboard-theme="dark"] .app-shell table tbody tr:hover{background:#253a31}
body[data-dashboard-theme="dark"] .app-shell .form-actions{background:linear-gradient(180deg,rgba(28,41,39,.8),var(--panel) 35%)}
body[data-dashboard-theme="dark"] .app-shell .period-btn:not(.active){color:#b4c8bd}
body[data-dashboard-theme="dark"] .app-shell .primary-metric{background:#284435}
body[data-dashboard-theme="dark"] .app-shell .primary-metric strong{color:#fff}

/* Mobile dashboard is a fully different composition, not just a bottom nav. */
html,body{min-width:0;max-width:100%}
.app-shell,.app-shell .main,.app-shell .view,.dashboard-grid>*,.money-grid>*,.ops-summary-grid>*{min-width:0}
@media(max-width:1480px){
  .hotel-kpi-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:1180px){
  .hotel-overview-hero{grid-template-columns:minmax(0,1.4fr) minmax(220px,.7fr)}
  .hotel-room-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .app-shell .money-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:960px){
  .app-shell .main{max-width:100%;min-width:0}
  .hotel-overview-hero{grid-template-columns:minmax(0,1fr);gap:18px;padding:25px 23px}
  .hotel-hero-occupancy{padding:17px}
  .hotel-kpi-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .app-shell .dashboard-grid-top,.app-shell .dashboard-grid-bottom,.app-shell .dashboard-grid-footer{grid-template-columns:minmax(0,1fr)}
  .app-shell .dashboard-grid-footer .panel{min-width:0}
  .app-shell .ops-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .app-shell #roomGrid.hotel-room-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .app-shell .hotel-rooms-toolbar .inventory-actions-row{display:flex;flex-wrap:wrap;gap:9px}
  .app-shell .hotel-rooms-toolbar .inventory-filters{display:flex;flex-wrap:wrap;gap:9px;min-width:0;flex:1}
  .app-shell .hotel-rooms-toolbar .inventory-filters input{min-width:0;flex:1 1 200px}
}
@media(max-width:640px){
  .app-shell .main{padding:13px 12px calc(90px + env(safe-area-inset-bottom))!important}
  .app-shell .topbar{gap:10px;padding-bottom:12px;margin-bottom:15px}
  .app-shell .top-actions{display:grid;grid-template-columns:minmax(0,1fr) auto auto auto;align-items:center;gap:7px}
  .app-shell .global-period-area{grid-column:1/-1;grid-row:2;max-width:100%;overflow:visible}
  .app-shell .period-switch{width:100%;overflow-x:auto}
  .app-shell .period-btn{flex:1 0 auto;font-size:11px;padding:9px 10px}
  .app-shell .dashboard-theme-toggle{grid-column:1;grid-row:1;justify-self:start;padding:8px;min-height:38px}
  .app-shell .live-dot{grid-column:2;grid-row:1}
  .app-shell .live-label{grid-column:3;grid-row:1}
  .app-shell .notification-wrap{grid-column:4;grid-row:1}
  .app-shell .topbar h1{font-size:24px}
  .hotel-overview-hero{padding:22px 18px;border-radius:18px;margin-bottom:22px}
  .hotel-hero-main h2{font-size:27px;margin:16px 0 8px}
  .hotel-hero-main p{font-size:12px}
  .hotel-hero-actions{gap:8px;margin-top:18px}
  .hotel-hero-actions button{flex:1 1 auto;min-height:44px;padding:10px}
  .hotel-occupancy-head strong{font-size:27px}
  .hotel-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
  .hotel-kpi-card{padding:12px;min-height:133px;border-radius:13px}
  .hotel-kpi-card strong{font-size:26px}
  .hotel-kpi-icon{width:28px;height:28px;font-size:14px}
  .hotel-section-label h2,.overview-finance-heading h2{font-size:17px}
  .overview-finance-heading{flex-wrap:wrap;gap:4px;margin:23px 0 12px}
  .overview-finance-heading p{width:100%;font-size:10px}
  .app-shell .money-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
  .app-shell .money-grid .metric-card{min-width:0;min-height:96px;padding:13px}
  .app-shell .money-grid .metric-card strong{font-size:clamp(17px,5vw,22px);overflow-wrap:anywhere}
  .app-shell .panel{padding:15px;border-radius:15px}
  .app-shell .panel-head{flex-wrap:wrap;gap:8px}
  .app-shell .panel h2{font-size:17px}
  .app-shell .dashboard-grid{gap:12px;margin-bottom:12px}
  .app-shell .sales-chart{height:175px;gap:7px;padding:9px 0 0;overflow-x:auto}
  .app-shell .chart-bar-wrap{height:125px}
  .app-shell .chart-column{min-width:28px}
  .app-shell .mix-row{grid-template-columns:70px minmax(0,1fr) auto;gap:7px}
  .app-shell .mix-row .label,.app-shell .mix-row strong{font-size:10px}
  .app-shell .attention-item{align-items:flex-start;flex-wrap:wrap;gap:9px}
  .app-shell .attention-item .request-copy{min-width:0;flex:1}
  .app-shell .attention-item .request-copy>div:last-child{min-width:0}
  .app-shell .attention-actions{margin-left:auto}
  .app-shell .ops-summary-grid{gap:8px;grid-template-columns:repeat(2,minmax(0,1fr))}
  .app-shell .ops-card{padding:12px;min-width:0}
  .app-shell .ops-card strong{font-size:21px}
  .hotel-rooms-intro{padding:18px 15px;border-radius:15px;align-items:stretch;flex-direction:column;gap:14px}
  .hotel-rooms-intro h2{font-size:22px}
  .hotel-rooms-intro button{width:100%}
  .app-shell .hotel-room-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
  .app-shell .hotel-rooms-toolbar .inventory-filters{width:100%}
  .app-shell .hotel-rooms-toolbar .inventory-actions-row{width:100%}
  .app-shell .hotel-rooms-toolbar .inventory-filters>*{flex:1 1 150px;width:auto;max-width:100%;min-height:44px}
  .app-shell #roomGrid.hotel-room-grid{grid-template-columns:minmax(0,1fr);gap:12px}
  .hotel-room-card{padding:17px}
  .hotel-room-card-title{margin:16px 0}
  .app-shell .report-metrics,.app-shell .inventory-stats,.app-shell .floor-summary{grid-template-columns:repeat(2,minmax(0,1fr))}
  .app-shell .status-tab,.app-shell .inventory-stats article{min-width:0}
  .app-shell .staff-card,.app-shell .table-card{min-width:0;width:100%}
  .app-shell .table-grid:not(.hotel-room-grid){grid-template-columns:minmax(0,1fr)}
  .app-shell :is(.form-grid,.settings-form){grid-template-columns:minmax(0,1fr)}
  .app-shell .detail-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .app-shell :is(.table-wrap,.report-table-wrap,.sales-table-wrap,.booking-table-wrap,.expense-table-wrap){max-width:100%;overflow-x:auto}
  .app-shell .modal-backdrop{padding:10px}
  .app-shell .modal-card{width:100%;max-width:min(100%,540px);max-height:calc(100dvh - 20px);padding:17px}
  .app-shell .form-actions{flex-wrap:wrap;gap:9px}
  .app-shell .form-actions button{flex:1 1 130px;min-height:44px}
}
@media(max-width:360px){
  .app-shell .main{padding-left:9px!important;padding-right:9px!important}
  .hotel-hero-actions{flex-direction:column;align-items:stretch}
  .hotel-kpi-card{padding:10px}
  .hotel-kpi-note{font-size:9px}
  .app-shell .dashboard-theme-toggle{font-size:10px}
}

/* Existing desktop margin rules predate the CSS grid; avoid double sidebar spacing on tablets. */
@media(min-width:961px) and (max-width:1180px){
  .app-shell{grid-template-columns:214px minmax(0,1fr)}
  .app-shell .sidebar{width:auto}
  .app-shell .main{margin-left:0!important;padding:24px 25px 40px}
  .app-shell .nav-item{padding:11px 10px}
}

/* Room status + guest issues stay above finance on the hotel homepage. */
.hotel-priority-slot{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,.8fr);gap:15px;align-items:stretch;margin:0 0 12px;min-width:0}
.hotel-priority-slot>.panel{margin:0;min-width:0}
.hotel-priority-slot .attention-list{max-height:355px;overflow:auto;scrollbar-width:thin}
.hotel-priority-slot #roomSummary{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.hotel-priority-slot #roomSummary .ops-card{min-width:0}
body[data-dashboard-profile="hotel"] #overview #overviewTrendRow{grid-template-columns:minmax(0,1fr)}
body[data-dashboard-profile="hotel"] #overview .dashboard-grid-footer{grid-template-columns:minmax(0,1fr)}
body[data-dashboard-profile="hotel"] #overview .sales-chart.is-empty{height:145px;justify-content:center;align-items:center}
body[data-dashboard-profile="hotel"] #overview .sales-chart.is-empty .empty-state{margin:auto}
@media(max-width:1000px){
  .hotel-priority-slot{grid-template-columns:minmax(0,1fr)}
}
@media(max-width:640px){
  .hotel-priority-slot{gap:12px}
  .hotel-priority-slot #roomSummary{gap:8px}
  .hotel-priority-slot .attention-list{max-height:none}
}

/* Hotel overview refinement after live desktop/phone review, Oct 2026. */
.hotel-priority-slot #roomSummary.hotel-room-status-list{display:grid;grid-template-columns:minmax(0,1fr);gap:0}
.hotel-room-list-row{display:flex;align-items:center;gap:11px;width:100%;min-width:0;text-align:left;padding:12px 2px;background:transparent;border:0;border-top:1px solid var(--line);color:var(--ink);border-radius:0}
.hotel-room-list-row:first-child{border-top:0}
.hotel-room-list-row:hover,.hotel-room-list-row:focus-visible{background:var(--soft);border-radius:8px;outline-offset:3px}
.hotel-room-list-number{display:grid;place-items:center;width:39px;height:39px;flex:0 0 39px;border-radius:11px;background:var(--soft);color:var(--ink);font-size:13px;font-weight:850}
.hotel-room-list-description{display:flex;flex-direction:column;min-width:0;gap:4px;flex:1}
.hotel-room-list-description strong{font-size:13px;color:var(--ink);overflow-wrap:anywhere}
.hotel-room-list-description small{font-size:11px;line-height:1.35;color:var(--muted);overflow-wrap:anywhere}
.hotel-room-list-row .hotel-room-state{font-size:10px;flex-shrink:0}
.hotel-room-list-more{display:block;width:100%;border:0;border-top:1px solid var(--line);background:transparent;text-align:center;padding:14px 6px;color:var(--ink);font-size:12px;font-weight:750}
.hotel-room-list-more:hover{background:var(--soft)}
.hotel-room-list-empty{padding:30px 8px;text-align:center;color:var(--muted);font-size:12px}
.hotel-room-list-empty button{border:0;background:transparent;color:var(--ink);font-weight:800}
body[data-dashboard-theme="dark"] .app-shell .branch-context strong{color:#e4f0e8}
body[data-dashboard-theme="dark"] .app-shell .branch-context select{color:#cedfd5}
body[data-dashboard-theme="dark"] .app-shell .hotel-room-list-row{color:var(--ink);border-color:var(--line)}
body[data-dashboard-theme="dark"] .app-shell .hotel-room-list-row:hover{background:var(--soft)}
.app-shell .mobile-menu-toggle{color:var(--ink)}
@media(max-width:640px){
  body[data-dashboard-profile="hotel"] .hotel-overview-hero{padding:17px 17px 15px;gap:12px;border-radius:17px;margin-bottom:17px}
  body[data-dashboard-profile="hotel"] .hotel-hero-eyebrow{font-size:9px;letter-spacing:.09em;gap:7px}
  body[data-dashboard-profile="hotel"] .hotel-hero-main h2{font-size:23px;line-height:1.1;max-width:320px;letter-spacing:-.035em;margin:12px 0 0}
  body[data-dashboard-profile="hotel"] .hotel-hero-main p{display:none}
  body[data-dashboard-profile="hotel"] .hotel-hero-actions{margin-top:12px}
  body[data-dashboard-profile="hotel"] .hotel-hero-actions .hotel-hero-secondary{display:none}
  body[data-dashboard-profile="hotel"] .hotel-hero-actions .hotel-hero-primary{flex:0 0 auto;width:auto;min-height:40px;padding:9px 13px;font-size:12px}
  body[data-dashboard-profile="hotel"] .hotel-hero-occupancy{padding:13px 14px;border-radius:13px}
  body[data-dashboard-profile="hotel"] .hotel-occupancy-head{margin-bottom:8px;align-items:center}
  body[data-dashboard-profile="hotel"] .hotel-occupancy-head strong{font-size:24px}
  body[data-dashboard-profile="hotel"] .hotel-occupancy-progress{height:6px}
  body[data-dashboard-profile="hotel"] .hotel-occupancy-footer{margin-top:7px}
  body[data-dashboard-profile="hotel"] .hotel-occupancy-footer>span{display:none}
  body[data-dashboard-profile="hotel"] .hotel-kpi-card{min-height:113px;padding:11px}
  body[data-dashboard-profile="hotel"] .hotel-kpi-card strong{margin-top:3px;font-size:25px}
  body[data-dashboard-profile="hotel"] .hotel-kpi-card>div:nth-child(2){gap:1px}
  body[data-dashboard-profile="hotel"] .hotel-section-label{margin-bottom:10px}
  body[data-dashboard-profile="hotel"] .hotel-kpi-section{margin-bottom:3px}
  body[data-dashboard-profile="hotel"] .hotel-priority-slot #roomSummary.hotel-room-status-list{gap:0}
  body[data-dashboard-profile="hotel"] .hotel-room-list-row{gap:9px;padding:11px 2px}
}
@media(max-width:360px){
  body[data-dashboard-profile="hotel"] .hotel-hero-main h2{font-size:21px}
  .hotel-room-list-row .hotel-room-state{font-size:9px;padding:6px}
  .hotel-room-list-number{width:35px;flex-basis:35px;height:35px}
}

/* Hotel Rooms v3: one primary action, a predictable filter toolbar and clean cards. */
.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
#rooms .hotel-rooms-intro{padding:20px 23px;margin-bottom:15px;background:linear-gradient(115deg,#e7f0e8,#f4f7f3);border-radius:15px}
#rooms .hotel-rooms-intro h2{font-size:23px;line-height:1.17;margin:5px 0 6px}
#rooms .hotel-rooms-intro p{max-width:560px;font-size:12px;margin:0}
#rooms .hotel-rooms-eyebrow{font-size:10px;font-weight:800;letter-spacing:.12em;color:#496c55}
#rooms .hotel-room-stat-grid{gap:11px}
#rooms .hotel-room-stat-grid article{min-height:92px;padding:15px 16px}
#rooms .hotel-rooms-toolbar{gap:13px;margin-bottom:17px}
#rooms .hotel-room-actions{display:grid;grid-template-columns:minmax(0,1fr) minmax(145px,200px) auto;align-items:center;gap:11px;min-width:0}

#rooms .hotel-room-actions>label{display:block;min-width:0}
#rooms .hotel-room-actions input,#rooms .hotel-room-actions select{display:block;width:100%;min-width:0;height:44px;padding:10px 12px;background:var(--panel);color:var(--ink);border:1px solid var(--line);border-radius:10px;font-size:13px}
#rooms .hotel-room-actions #addRoomBtn{justify-self:end;min-height:44px;padding:10px 16px;white-space:nowrap}
#rooms #roomGrid.hotel-room-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,340px),1fr));gap:14px}
#rooms .hotel-room-card{padding:18px;min-height:265px}
#rooms .hotel-room-card-title{margin:17px 0}
#rooms .hotel-room-card-title h3{font-size:31px}
#rooms .hotel-room-card-title>span{font-size:10px}
#rooms .hotel-room-symbol svg{display:block}
#rooms .hotel-room-qr{display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:10px 12px}
#rooms .hotel-room-qr svg{width:17px;height:17px;flex:0 0 17px}
#rooms .hotel-room-qr>span{display:none}
#rooms .hotel-room-controls{grid-template-columns:minmax(0,1fr) auto;align-items:end}
#rooms .hotel-room-controls select:focus-visible,#rooms .hotel-room-qr:focus-visible,
#rooms #addRoomBtn:focus-visible,#rooms #roomSearch:focus-visible,
#rooms #roomStatusFilter:focus-visible{outline:2px solid #36885c;outline-offset:2px}
body[data-dashboard-theme="dark"] #rooms .hotel-rooms-intro{background:linear-gradient(115deg,#1f332b,#263b32);border-color:#3c5547}
body[data-dashboard-theme="dark"] #rooms .hotel-rooms-eyebrow{color:#a0d4ad}
body[data-dashboard-theme="dark"] #rooms .hotel-rooms-intro p{color:#bfd4c4}
body[data-dashboard-theme="dark"] #rooms .hotel-room-actions input,
body[data-dashboard-theme="dark"] #rooms .hotel-room-actions select{background:#152321;color:#f1f6f3;border-color:#42594c}
@media(max-width:960px){
  #rooms .hotel-room-actions{grid-template-columns:minmax(0,1fr) minmax(140px,180px) auto;}
  #rooms #roomGrid.hotel-room-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  #rooms .hotel-room-card{min-height:252px}
}
@media(max-width:640px){
  #rooms .hotel-rooms-intro{padding:14px 15px 15px;margin-bottom:12px;gap:0}
  #rooms .hotel-rooms-intro h2{font-size:20px;margin:4px 0 4px}
  #rooms .hotel-rooms-intro p{font-size:11px;line-height:1.45}
  #rooms .hotel-room-stat-grid{gap:8px}
  #rooms .hotel-room-stat-grid article{min-height:79px;padding:12px}
  #rooms .hotel-room-stat-grid strong{font-size:23px;margin-top:2px}
  #rooms .hotel-rooms-toolbar{gap:10px;margin-bottom:13px}
  #rooms .hotel-room-actions{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}

  #rooms .hotel-room-search-label{grid-column:1/-1;grid-row:1}
  #rooms .hotel-room-filter-label{grid-column:1;grid-row:2}
  #rooms .hotel-room-actions #addRoomBtn{grid-column:2;grid-row:2;justify-self:stretch;min-height:44px;padding:10px 13px}
  #rooms .hotel-room-actions input,#rooms .hotel-room-actions select{width:100%;min-height:44px;height:44px;font-size:13px}
  #rooms #roomGrid.hotel-room-grid{grid-template-columns:minmax(0,1fr);gap:11px}
  #rooms .hotel-room-card{min-height:0;padding:16px}
  #rooms .hotel-room-card-title{margin:12px 0 14px}
  #rooms .hotel-room-card-title h3{font-size:30px}
  #rooms .hotel-room-controls{gap:8px}
  #rooms .hotel-room-qr{font-size:12px;padding:9px 10px;min-height:44px}
  #rooms .hotel-room-status-control select{min-height:44px}
}
@media(max-width:360px){
  #rooms .hotel-room-actions{grid-template-columns:minmax(0,1fr) auto}
  #rooms .hotel-room-actions #addRoomBtn{font-size:12px;padding:9px 10px}
  #rooms .hotel-room-qr{font-size:11px;gap:4px;padding:8px}
}
