/* Hospitality UI — scoped to Accommodation, Restaurant and staff homes.
   Shop till and other companies stay on app.css. */
.accv,.rstv,.hstaff,.hosp-folio{
  --hosp-ink:#14342b;
  --hosp-muted:#4d665e;
  --hosp-teal:#0f6b5c;
  --hosp-teal-deep:#0a4f45;
  --hosp-mist:#e7f3ef;
  --hosp-foam:#f5faf8;
  --hosp-amber:#c47b17;
  --hosp-amber-soft:#fff4df;
  --hosp-coral:#b5483d;
  --hosp-sand:#f4efe6;
  --hosp-card:#fffefb;
  --hosp-line:#d5e3dd;
  --hosp-shadow:0 8px 24px rgba(20,52,43,.08);
  --hosp-shadow-sm:0 2px 8px rgba(20,52,43,.06);
  --hosp-radius:16px;
  --hosp-radius-sm:12px;
  color:var(--hosp-ink);
  font-feature-settings:"ss01" 0;
}
.accv,.rstv{padding:2px 0 18px}
.accv button,.rstv button,.hstaff button,.hosp-folio button{
  transition:transform .14s ease,box-shadow .14s ease,background .14s ease,border-color .14s ease;
}
.accv button:active,.rstv button:active,.hstaff button:active{transform:scale(.98)}
.accv .hosp-title,.rstv .hosp-title{
  margin:2px 0 10px;font-size:1.35rem;letter-spacing:-.02em;color:var(--hosp-teal-deep);
}
.accv .hosp-sub,.rstv .hosp-sub{color:var(--hosp-muted);font-size:13px;margin:0 0 12px}

/* Nav chips */
.accv .accnav,.rstv .chips{
  display:flex;gap:8px;flex-wrap:wrap;margin:4px 0 14px;
}
.accv .accnav button,.rstv .chips .chip{
  min-height:44px;padding:0 14px;border-radius:999px;border:1px solid var(--hosp-line);
  background:var(--hosp-card);color:var(--hosp-ink);font-weight:600;box-shadow:var(--hosp-shadow-sm);
}
.accv .accnav button.on,.rstv .chips .chip.on,
.accv .accnav button:not(.ghost).on{
  background:var(--hosp-teal);border-color:var(--hosp-teal);color:#fff;box-shadow:0 4px 12px rgba(15,107,92,.28);
}
.accv button:not(.ghost):not(.sm):not(.chip):not(.on):not(.hosp-room),
.rstv button:not(.ghost):not(.sm):not(.chip):not(.rt):not(.hosp-dish):not(.hstaff-item){
  min-height:44px;border-radius:12px;background:var(--hosp-teal);border-color:var(--hosp-teal);color:#fff;font-weight:700;
}
.accv .acccal button{background:transparent;border:0;box-shadow:none;color:inherit;min-height:48px;font-weight:700}
.accv button.ghost,.rstv button.ghost,.hosp-folio button.ghost{
  min-height:44px;border-radius:12px;background:var(--hosp-card);border:1px solid var(--hosp-line);color:var(--hosp-teal-deep);
}
.accv button.sm,.rstv button.sm,.hstaff button.sm,.hosp-folio button.sm{min-height:40px;border-radius:10px}
.accv .card,.rstv .card,.hstaff .card,.hosp-folio{
  background:var(--hosp-card);border:1px solid var(--hosp-line);border-radius:var(--hosp-radius);
  box-shadow:var(--hosp-shadow-sm);padding:14px 16px;
}
.accv .card.err,.rstv .card.err{border-color:#e7c4c0;background:#fff6f5}

/* Toolbar + search */
.hosp-toolbar{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:0 0 14px}
.hosp-search{flex:1 1 220px;display:flex;gap:8px;align-items:center;background:var(--hosp-card);
  border:1px solid var(--hosp-line);border-radius:999px;padding:4px 4px 4px 14px;box-shadow:var(--hosp-shadow-sm);min-height:48px}
.hosp-search input{flex:1;border:0;background:transparent;min-width:0;font-size:16px;color:var(--hosp-ink);outline:none}
.hosp-search button{min-height:40px;border-radius:999px;padding:0 16px}
.hosp-toolbar .hosp-actions{display:flex;flex-wrap:wrap;gap:8px}

/* Today KPIs */
.hosp-kpis,.accv .accg{display:grid;grid-template-columns:repeat(auto-fill,minmax(132px,1fr));gap:10px;margin:0 0 16px}
.hosp-kpi{background:var(--hosp-card);border:1px solid var(--hosp-line);border-radius:var(--hosp-radius);
  padding:12px 14px;box-shadow:var(--hosp-shadow-sm);min-height:86px}
.hosp-kpi .k{display:block;font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--hosp-muted);margin-bottom:4px}
.hosp-kpi .v{display:block;font-size:1.45rem;font-weight:800;letter-spacing:-.03em;color:var(--hosp-teal-deep);line-height:1.1}
.hosp-kpi .s{display:block;margin-top:4px;font-size:12px;color:var(--hosp-muted)}
.hosp-kpi.warn{background:var(--hosp-amber-soft);border-color:#efd2a0}
.hosp-kpi.hot{background:#fdece9;border-color:#f0c3bd}

/* Room board */
.hosp-board{background:var(--hosp-foam);border:1px solid var(--hosp-line);border-radius:20px;padding:14px;margin:0 0 18px}
.hosp-board-head{display:flex;justify-content:space-between;align-items:baseline;gap:8px;margin-bottom:10px;flex-wrap:wrap}
.hosp-board-head b{font-size:1.05rem;color:var(--hosp-teal-deep)}
.hosp-legend{display:flex;flex-wrap:wrap;gap:8px 12px;font-size:12px;color:var(--hosp-muted);margin-bottom:12px}
.hosp-legend i{display:inline-block;width:10px;height:10px;border-radius:99px;margin-right:5px;vertical-align:middle;border:1px solid rgba(0,0,0,.08)}
.hosp-legend .lg-available i{background:#d8efe8}
.hosp-legend .lg-occupied i{background:#0f6b5c}
.hosp-legend .lg-arriving i{background:#e8b34a}
.hosp-legend .lg-departing i{background:#d9784f}
.hosp-legend .lg-dirty i{background:#c9a227}
.hosp-legend .lg-ooo i{background:#9a3d3d}
.hosp-rooms{display:grid;grid-template-columns:repeat(auto-fill,minmax(148px,1fr));gap:10px}
.hosp-room{display:flex;flex-direction:column;align-items:flex-start;gap:4px;text-align:left;
  min-height:118px;padding:12px;border-radius:16px;border:2px solid var(--hosp-line);
  background:#fff;color:var(--hosp-ink);box-shadow:var(--hosp-shadow-sm);cursor:pointer;width:100%}
.hosp-room .n{font-size:1.05rem;font-weight:800;letter-spacing:-.02em}
.hosp-room .g{font-size:13px;font-weight:600;color:var(--hosp-ink)}
.hosp-room .m{font-size:12px;color:var(--hosp-muted)}
.hosp-room .st{font-size:11px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;opacity:.9}
.hosp-room.available{background:#f3fbf8;border-color:#9ed4c6}
.hosp-room.occupied{background:#0f6b5c;border-color:#0a4f45;color:#f4fffb}
.hosp-room.occupied .g,.hosp-room.occupied .m,.hosp-room.occupied .st{color:#d7efe8}
.hosp-room.arriving{background:var(--hosp-amber-soft);border-color:#e0b35a}
.hosp-room.departing{background:#fde8df;border-color:#e0a288}
.hosp-room.dirty{background:#f8efc9;border-color:#d4b84a}
.hosp-room.ooo{background:#f8e8e8;border-color:#d29a9a}
.hosp-room.is-dim{opacity:.28;filter:grayscale(.4)}
.hosp-room:focus-visible{outline:3px solid var(--hosp-teal);outline-offset:2px}

/* Lists / empty */
.hosp-lists{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:12px}
.hosp-list h3{margin:0 0 8px;font-size:15px;color:var(--hosp-teal-deep)}
.hosp-empty{text-align:center;padding:22px 12px;color:var(--hosp-muted)}
.hosp-empty .ico{font-size:28px;display:block;margin-bottom:6px}
.hosp-row{display:flex;gap:8px;align-items:center;justify-content:space-between;padding:10px 0;border-bottom:1px solid var(--hosp-line)}
.hosp-row:last-child{border-bottom:0}

/* Calendar */
.accv .acccal{width:100%;border-collapse:separate;border-spacing:3px;background:transparent;font-size:12px}
.accv .acccal th{padding:8px 4px;color:var(--hosp-muted);font-weight:700;text-transform:uppercase;letter-spacing:.04em;font-size:10px}
.accv .acccal td{min-width:64px;height:48px;border-radius:10px;background:var(--hosp-foam);border:1px solid transparent;vertical-align:middle;padding:0}
.accv .acccal td button{width:100%;height:100%;min-height:48px;border:0;background:transparent;border-radius:10px;padding:4px 6px;color:inherit;font-weight:700;box-shadow:none}
.accv .acccal td.f{background:#edf7f3;border-color:#c7e4da}
.accv .acccal td.b,.accv .acccal td.i{background:linear-gradient(180deg,#1a7d6c,#0f6b5c);color:#fff;border-color:#0a4f45}
.accv .acccal td.k{background:linear-gradient(180deg,#e8b34a,#c47b17);color:#3b2a0a;border-color:#b88620}
.accv .acccal td.o{background:linear-gradient(180deg,#c96a55,#b5483d);color:#fff;border-color:#8e332b}
.accv .acccal .g{display:block;font-size:10px;font-weight:600;opacity:.9;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.accv .hosp-cal{overflow:auto;background:var(--hosp-card);border:1px solid var(--hosp-line);border-radius:20px;padding:8px;box-shadow:var(--hosp-shadow-sm)}

/* Folio */
.hosp-folio h3{margin:0 0 8px;color:var(--hosp-teal-deep)}
.hosp-folio .ctbl{width:100%;border-collapse:collapse}
.hosp-folio .ctbl th,.hosp-folio .ctbl td{padding:8px 4px;border-bottom:1px solid var(--hosp-line)}
.hosp-folio .row{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}

/* Restaurant floor */
.rstv .rgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(132px,1fr));gap:10px;margin:10px 0}
.rstv .rt{border-radius:16px;padding:12px;background:#fff;border:2px solid #c9ddd6;text-align:left;color:inherit;
  min-height:96px;box-shadow:var(--hosp-shadow-sm);font-weight:inherit}
.rstv .rt b{display:block;font-size:1.15rem;letter-spacing:-.02em}
.rstv .rt .muted,.rstv .rt .st{display:block;font-size:12px;margin-top:4px}
.rstv .rt.free{background:#f3fbf8;border-color:#9ed4c6}
.rstv .rt.occupied,.rstv .rt.seated{border-color:#0f6b5c;background:#e7f4f0}
.rstv .rt.ordered{border-color:#c47b17;background:var(--hosp-amber-soft)}
.rstv .rt.ready{border-color:#1a8f4a;background:#e7f7ec;box-shadow:0 0 0 3px rgba(26,143,74,.15)}
.rstv .rt.reserved{border-color:#b26a00;background:#fff6e5}
.rstv .rt.cleaning{border-color:#7f8c8d;background:#f2f4f4}
.rstv .rt.billed,.rstv .rt.bill{outline:3px dashed #0a8f4a;background:#eef8f2}

/* Menu + basket */
.rstv .rmenu{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:8px}
.rstv .hosp-dish,.rstv .rmenu button{display:flex;flex-direction:column;align-items:flex-start;gap:2px;text-align:left;
  min-height:88px;padding:10px 12px;border-radius:14px;background:var(--hosp-card);border:1px solid var(--hosp-line);
  color:var(--hosp-ink);box-shadow:var(--hosp-shadow-sm);font-weight:700}
.rstv .hosp-dish small,.rstv .rmenu button small{display:block;opacity:.8;font-weight:600;color:var(--hosp-muted)}
.rstv .hosp-dish-ico{font-size:22px;line-height:1}
.rstv .hosp-dish.out,.rstv .rmenu button.out{opacity:.45}
.hosp-order{display:grid;grid-template-columns:1fr;gap:14px}
.hosp-order-basket{background:var(--hosp-card);border:1px solid var(--hosp-line);border-radius:20px;padding:14px;box-shadow:var(--hosp-shadow)}
.hosp-basket-total{font-size:1.5rem;font-weight:800;color:var(--hosp-teal-deep);letter-spacing:-.03em}
.rstv .rl{display:flex;gap:6px;align-items:center;padding:10px 0;border-bottom:1px solid var(--hosp-line)}
.rstv .rl .nm{flex:1}
.rstv .rl.void .nm{text-decoration:line-through;opacity:.5}
.rstv .rbadge{font-size:11px;padding:2px 8px;border-radius:8px;background:var(--hosp-mist);margin-left:4px;font-weight:700}
.rstv .rhead{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.rstv .rhead>button,.rstv .rhead>span,.rstv .rbadge{flex:0 0 auto!important;width:auto!important}
.rstv .hosp-cta,.rstv button[data-rst="room"]{
  background:var(--hosp-amber)!important;border-color:var(--hosp-amber)!important;color:#2a1a04!important;
  font-weight:800;min-height:48px;border-radius:14px;box-shadow:0 6px 16px rgba(196,123,23,.28);
}
@media (min-width:760px){
  .hosp-order{grid-template-columns:minmax(0,1fr) 340px;align-items:start}
  .hosp-order-basket{position:sticky;top:8px}
}
@media (max-width:759px){
  .hosp-order-basket{position:sticky;bottom:0;z-index:3}
}

/* Kitchen tickets */
.rstv .rkot{border-left:6px solid #0a8f4a;border-radius:16px;margin:0 0 12px;transition:background .2s ease,border-color .2s ease}
.rstv .rkot.new{border-left-color:#c0392b}
.rstv .rkot.preparing{border-left-color:#c47b17}
.rstv .rkot.ready{border-left-color:#1a8f4a;background:#eef8f2}
.rstv .rkot.wait{background:var(--hosp-amber-soft)}
.rstv .rkot.late{background:#fdece9;border-left-color:#8e2218;animation:hospPulse 1.6s ease-in-out infinite}
.rstv .rk-timer{display:inline-block;font-weight:800;font-variant-numeric:tabular-nums;padding:2px 8px;border-radius:999px;background:var(--hosp-mist)}
.rstv .rkot.wait .rk-timer{background:#f3ddaa;color:#6a4a0a}
.rstv .rkot.late .rk-timer{background:#f5c4bc;color:#6a1c16}
@keyframes hospPulse{0%,100%{box-shadow:var(--hosp-shadow-sm)}50%{box-shadow:0 0 0 4px rgba(181,72,61,.12)}}

/* Staff phone homes */
.hstaff{max-width:560px;margin:0 auto;padding:8px 0 28px}
.hstaff-bar{background:linear-gradient(135deg,var(--hosp-teal-deep),var(--hosp-teal));color:#f4fffb;
  border-radius:20px;padding:16px 18px;margin-bottom:14px;box-shadow:var(--hosp-shadow)}
.hstaff-kicker{font-size:11px;letter-spacing:.08em;text-transform:uppercase;opacity:.85;font-weight:700}
.hstaff-name{font-size:1.35rem;font-weight:800;letter-spacing:-.02em}
.hstaff-card,.hstaff .hstaff-card{border-radius:18px;padding:16px;margin:0 0 12px;box-shadow:var(--hosp-shadow-sm);
  border:1px solid var(--hosp-line);background:var(--hosp-card);min-height:88px}
.hstaff-row{display:flex;justify-content:space-between;gap:8px;align-items:center;margin-bottom:8px}
.hstaff-pill{font-size:11px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;
  background:var(--hosp-mist);color:var(--hosp-teal-deep);padding:3px 8px;border-radius:999px}
.hstaff-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.hstaff-actions button,.hstaff-card button:not(.ghost){
  min-height:48px;flex:1 1 120px;border-radius:14px;font-weight:800;font-size:15px
}
.hstaff-menu{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:8px}
.hstaff-item{min-height:76px;border-radius:14px;border:1px solid var(--hosp-line);background:var(--hosp-card);
  text-align:left;padding:10px;display:flex;flex-direction:column;gap:4px;font-weight:700}
.hstaff .hosp-empty{background:var(--hosp-card);border-radius:18px;border:1px dashed var(--hosp-line)}

@media (prefers-color-scheme:dark){
  .accv,.rstv,.hstaff,.hosp-folio{
    --hosp-ink:#e8f3ef;--hosp-muted:#9db5ad;--hosp-mist:#1a2e29;--hosp-foam:#12211e;
    --hosp-card:#162621;--hosp-line:#2b433c;--hosp-sand:#2a2418;--hosp-amber-soft:#3a2d14;
    --hosp-shadow:0 8px 24px rgba(0,0,0,.35);--hosp-shadow-sm:0 2px 8px rgba(0,0,0,.28);
  }
  .hosp-room.available,.rstv .rt.free{background:#16332d;border-color:#2d6a5c}
  .hosp-room.occupied{background:#0c4b42;color:#e8f3ef}
  .accv .acccal td{background:#16332d}
}

/* Header + Back */
.hosp-head{margin:0 0 10px}
.hosp-head-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:0 0 4px}
.hosp-back{min-height:44px!important;padding:0 16px!important;border-radius:999px!important;font-weight:800!important;
  background:var(--hosp-card)!important;border:1px solid var(--hosp-line)!important;color:var(--hosp-teal-deep)!important;
  box-shadow:var(--hosp-shadow-sm)!important;flex:0 0 auto}
.hosp-back:focus-visible{outline:3px solid var(--hosp-teal);outline-offset:2px}
.hosp-head .hosp-title{margin:0;flex:1}
.hosp-folio .hosp-back{margin-bottom:8px}

.hstaff-bar .hosp-head-row{align-items:center}
.hstaff-bar .hosp-back{background:rgba(255,255,255,.12)!important;border-color:rgba(255,255,255,.35)!important;color:#fff!important}
