/* ===== Admin design system (violet sidebar, curved active tab, lavender background) ===== */
:root {
  --hb-primary: #6C5CE7;
  --hb-primary-2: #8B7CF6;
  --hb-pink: #FF6B8B;
  --hb-bg: #F4F5FB;
  --hb-ink: #1E1B4B;
  --hb-muted: #6B7280;
  --hb-line: #ECEEF6;
  --hb-radius: 18px;
  --hb-shadow: 0 10px 30px rgba(76, 64, 190, .08);
  --hb-sidebar-w: 256px;
}
html, body { margin: 0; font-family: Poppins, "Segoe UI", Roboto, sans-serif; background: var(--hb-bg); color: var(--hb-ink); }
a { color: var(--hb-primary); }

/* ---- Shell ---- */
.hb-shell { display: grid; grid-template-columns: var(--hb-sidebar-w) 1fr; min-height: 100vh; }
.hb-sidebar {
  position: sticky; top: 0; height: 100vh; overflow-y: auto; overflow-x: hidden;
  background: linear-gradient(165deg, #7B6CF6 0%, #6C5CE7 45%, #5A4BDB 100%);
  color: #fff; border-radius: 0 32px 32px 0; padding: 22px 0 22px 18px; box-sizing: border-box;
  display: flex; flex-direction: column; z-index: 20;
  /* Thin visible scrollbar on the LEFT edge (rtl puts it there; children switch back to ltr) so the active tab
     that curves into the page on the right is not cut by it. */
  scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.45) transparent; direction: rtl;
}
.hb-sidebar > * { direction: ltr; }
.hb-sidebar::-webkit-scrollbar { width: 8px; }
.hb-sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,.45); border-radius: 8px; }
.hb-sidebar::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,.7); }
.hb-sidebar::-webkit-scrollbar-track { background: transparent; }
.hb-sidebar::before { /* colored edge stripe like the reference */
  content: ""; position: absolute; left: 0; top: 40px; bottom: 40%; width: 5px; border-radius: 0 6px 6px 0;
  background: linear-gradient(#FFD166, #FF6B8B 55%, #8B7CF6);
}
.hb-brand { padding: 0 18px 22px 6px; }
.hb-dots { display: inline-flex; gap: 5px; margin-bottom: 8px; }
.hb-dots i { width: 8px; height: 8px; border-radius: 50%; background: #FFD166; display: block; }
.hb-dots i:nth-child(2) { background: #fff; }
.hb-dots i:nth-child(3) { background: #2EE6A6; }
.hb-brand-name { display: block; color: #fff; text-decoration: none; font-size: 1.45rem; font-weight: 600; line-height: 1.15; word-break: break-word; }
.hb-brand-sub { display: block; font-size: .75rem; opacity: .75; margin-top: 4px; letter-spacing: .02em; }
/* Hotel group switcher under the hotel name (HotelSwitcher): a light pill that opens the list of the owner's hotels. */
.hb-switch { margin-top: 10px; }
.hb-switch > summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; padding: 5px 10px; border-radius: 999px;
  font-size: .76rem; font-weight: 600; color: #fff; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .28); }
.hb-switch > summary::-webkit-details-marker { display: none; }
.hb-switch > summary:hover, .hb-switch[open] > summary { background: rgba(255, 255, 255, .26); }
.hb-switch > summary b { min-width: 18px; padding: 0 5px; border-radius: 999px; background: #fff; color: var(--hb-primary); font-size: .68rem; text-align: center; }
.hb-switch-list { margin-top: 8px; padding: 6px; border-radius: 14px; background: #fff; box-shadow: 0 10px 28px rgba(30, 27, 75, .22); display: grid; gap: 2px; }
.hb-switch-list form { margin: 0; }
.hb-switch-item { width: 100%; display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 0; border-radius: 10px; background: none;
  font: inherit; font-size: .84rem; text-align: left; color: var(--hb-ink); cursor: pointer; }
.hb-switch-item .mud-icon-root { color: var(--hb-muted); flex: none; }
button.hb-switch-item:hover { background: #F4F2FE; }
button.hb-switch-item:disabled { opacity: .5; cursor: not-allowed; }
.hb-switch-item.on { font-weight: 600; background: #F1EFFE; cursor: default; }
.hb-switch-item.on .mud-icon-root { color: var(--hb-primary); }
.hb-switch-all { display: flex; align-items: center; gap: 8px; margin-top: 4px; padding: 8px 10px; border-top: 1px solid #EEEDF7; font-size: .8rem; font-weight: 600; color: var(--hb-primary); text-decoration: none; }
/* My hotels page (HotelGroup): one card per hotel. */
.gr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.gr-card { display: flex; flex-direction: column; gap: 14px; }
.gr-card.on { border: 1px solid color-mix(in srgb, var(--hb-primary) 35%, #fff); box-shadow: 0 0 0 3px #F1EFFE; }
.gr-card.off { opacity: .65; }
.gr-head { display: flex; align-items: center; gap: 12px; }
.gr-ico { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: #fff; background: linear-gradient(135deg, var(--hb-primary-2), var(--hb-primary)); }
.gr-title { flex: 1; min-width: 0; }
.gr-title h3 { margin: 0; font-size: 1.02rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gr-title small { color: var(--hb-muted); font-size: .76rem; }
.gr-badge { font-size: .7rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; color: var(--hb-primary); background: #F1EFFE; }
.gr-occ strong { font-size: 1.45rem; font-weight: 650; margin-right: 8px; }
.gr-occ small { color: var(--hb-muted); font-size: .76rem; }
.gr-occ .kq-meter { --t: #6C5CE7; --t2: #9C8FF7; }
.gr-figs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 0; }
.gr-figs div { padding: 8px; border-radius: 12px; background: #F7F6FC; text-align: center; }
.gr-figs dt { font-size: .66rem; color: var(--hb-muted); line-height: 1.2; }
.gr-figs dd { margin: 2px 0 0; font-size: 1.05rem; font-weight: 600; }
.gr-month { display: flex; justify-content: space-between; gap: 8px; font-size: .8rem; color: var(--hb-muted); }
.gr-month b { color: var(--hb-ink); font-weight: 600; white-space: nowrap; }
.gr-actions form { margin: 0; }
.gr-open { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border: 0; border-radius: 12px; font: inherit; font-weight: 600; font-size: .85rem;
  color: #fff; background: var(--hb-primary); cursor: pointer; }
.gr-open:hover { background: #5B4BDB; }
.gr-open:disabled { opacity: .5; cursor: not-allowed; }
@media (max-width: 600px) { .gr-figs { grid-template-columns: repeat(2, 1fr); } }
.td-group { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 6px; }
.td-group li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; border: 1px solid #EEEDF7; border-radius: 12px; }
.td-group li > span { display: flex; flex-direction: column; min-width: 0; }
.td-group small { color: var(--hb-muted); font-size: .74rem; }
.hb-nav { display: flex; flex-direction: column; flex: 1; }
.hb-nav-label { font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; opacity: .6; margin: 16px 0 6px 12px; }
/* Foldable menu groups (NavGroup): the label is a button with a chevron. */
.hb-nav-toggle { display: flex; align-items: center; justify-content: space-between; width: calc(100% - 30px); padding: 4px 0; border: 0;
  background: none; color: inherit; font-family: inherit; cursor: pointer; text-align: left; border-radius: 6px; }
.hb-nav-toggle:hover, .hb-nav-toggle:focus-visible { opacity: 1; outline: none; }
.hb-nav-toggle:focus-visible { box-shadow: 0 0 0 2px rgba(255,255,255,.6); }
.hb-nav-chevron { transition: transform .2s ease; transform: rotate(-90deg); }
.hb-nav-group.open .hb-nav-chevron { transform: none; }
.hb-link {
  position: relative; display: flex; align-items: center; gap: 12px; padding: 11px 16px; margin: 1px 0;
  color: rgba(255,255,255,.9); text-decoration: none; font-size: .88rem; border-radius: 26px 0 0 26px;
  transition: background .2s, color .2s;
}
.hb-link:hover { background: rgba(255,255,255,.12); color: #fff; }
.hb-link .mud-icon-root { opacity: .95; }
/* Active item: a tab in the page colour that "cuts" into the sidebar with inverted corners. */
.hb-link.active { background: var(--hb-bg); color: var(--hb-pink); font-weight: 600; }
.hb-link.active::before, .hb-link.active::after {
  content: ""; position: absolute; right: 0; width: 26px; height: 26px; background: transparent; pointer-events: none;
}
.hb-link.active::before { top: -26px; border-bottom-right-radius: 26px; box-shadow: 10px 10px 0 10px var(--hb-bg); }
.hb-link.active::after { bottom: -26px; border-top-right-radius: 26px; box-shadow: 10px -10px 0 10px var(--hb-bg); }
.hb-nav-cta {
  margin: 22px 18px 6px 4px; padding: 9px 0; text-align: center; background: #fff; color: var(--hb-primary);
  border-radius: 999px; text-decoration: none; font-weight: 600; font-size: .85rem; box-shadow: 0 6px 18px rgba(0,0,0,.12);
}
.hb-sidebar-art {
  height: 120px; margin-top: 16px; margin-left: -18px; flex-shrink: 0;
  background: radial-gradient(circle at 20% 110%, rgba(255,255,255,.18) 0 60px, transparent 61px),
              radial-gradient(circle at 80% 130%, rgba(255,255,255,.10) 0 90px, transparent 91px);
}
.hb-main { min-width: 0; display: flex; flex-direction: column; }

/* ---- Top bar ---- */
.hb-topbar {
  position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 16px;
  padding: 14px 28px; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--hb-line);
}
.hb-search {
  flex: 1; max-width: 420px; display: flex; align-items: center; gap: 8px; background: #F1F2F8; border-radius: 999px;
  padding: 8px 16px; color: var(--hb-muted);
}
.hb-search input { border: 0; outline: 0; background: transparent; width: 100%; font: inherit; font-size: .85rem; color: var(--hb-ink); }
.hb-search:focus-within { box-shadow: 0 0 0 2px rgba(108,92,231,.35); }
.hb-top-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.hb-icon-btn {
  position: relative; width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  color: #9AA0B4; background: transparent; border: 0; cursor: pointer; text-decoration: none;
}
.hb-icon-btn:hover { background: #F1F2F8; color: var(--hb-primary); }
.hb-dot { position: absolute; top: 9px; right: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--hb-pink); box-shadow: 0 0 0 2px #fff; }
.hb-menu-btn { display: none; }
.hb-user { display: flex; align-items: center; gap: 10px; border: 0; background: transparent; cursor: pointer; font: inherit; color: var(--hb-ink); padding: 4px 6px; border-radius: 999px; }
.hb-user:hover { background: #F1F2F8; }
.hb-avatar {
  width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--hb-pink), var(--hb-primary)); color: #fff; font-weight: 600; font-size: .8rem;
}
.hb-user-text { font-size: .85rem; font-weight: 500; }
.hb-menu-head { padding: 10px 16px; border-bottom: 1px solid var(--hb-line); display: flex; flex-direction: column; min-width: 220px; }
.hb-menu-head small { color: var(--hb-muted); }
.hb-menu-form { margin: 0; }
.hb-menu-form .hb-menu-btn { display: flex; width: 100%; gap: 12px; align-items: center; padding: 8px 16px; border: 0; background: none; font: inherit; cursor: pointer; color: var(--hb-ink); }
.hb-menu-form .hb-menu-btn:hover { background: #F4F5FB; }
.hb-banner { display: flex; align-items: center; gap: 10px; margin: 16px 28px 0; padding: 10px 16px; border-radius: 14px; background: #FFF4E0; color: #8A5A00; font-size: .85rem; }
.hb-pill-btn { margin-left: auto; border: 1px solid currentColor; background: transparent; color: inherit; border-radius: 999px; padding: 4px 14px; cursor: pointer; font: inherit; }
.hb-content { padding: 24px 28px 48px; max-width: 1500px; width: 100%; box-sizing: border-box; }
.hb-backdrop { display: none; }

/* ---- Page elements ---- */
.hb-content > .mud-typography-h4, .hb-content .d-flex > .mud-typography-h4 { color: var(--hb-ink); letter-spacing: -.01em; }
.mud-paper { border-radius: var(--hb-radius) !important; }
.mud-paper:not(.mud-paper-outlined):not(.mud-popover) { box-shadow: var(--hb-shadow) !important; }
.mud-button-root.mud-button-filled, .mud-button-root.mud-button-outlined { border-radius: 999px !important; padding-left: 18px; padding-right: 18px; }
.mud-button-filled-primary { background: linear-gradient(135deg, var(--hb-primary-2), var(--hb-primary)) !important; box-shadow: 0 8px 18px rgba(108,92,231,.3) !important; }
.mud-table { border-radius: var(--hb-radius) !important; overflow: hidden; }
.mud-table-head .mud-table-cell { font-weight: 600 !important; color: var(--hb-ink) !important; background: #FAFAFF; border-bottom: 1px solid var(--hb-line); }
.mud-table-body .mud-table-row:hover { background: #F8F7FF !important; }
.mud-table-body .mud-table-cell { border-bottom: 1px solid var(--hb-line); }
.mud-chip { border-radius: 999px !important; font-weight: 500; }
.mud-input-outlined-border { border-radius: 12px !important; }
.mud-tabs-toolbar { border-radius: var(--hb-radius) var(--hb-radius) 0 0; }
.mud-alert { border-radius: 14px !important; }

/* Stat tiles (dashboard, reports) */
.hb-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; margin-bottom: 24px; }
.hb-stat {
  border-radius: 16px; padding: 16px 20px; color: #fff; position: relative; overflow: hidden;
  background: linear-gradient(135deg, #8E7CFF, #A5B4FC); box-shadow: 0 10px 24px rgba(108,92,231,.18);
}
.hb-stat::after { content: ""; position: absolute; right: -30px; bottom: -40px; width: 110px; height: 110px; border-radius: 50%; background: rgba(255,255,255,.14); }
.hb-stat small { display: block; font-size: .78rem; opacity: .9; }
.hb-stat strong { display: block; font-size: 1.55rem; font-weight: 600; margin-top: 2px; }
.hb-stat.pink { background: linear-gradient(135deg, #FF8FA3, #FF6B8B); }
.hb-stat.teal { background: linear-gradient(135deg, #3DDCCB, #22C1C3); }
.hb-stat.amber { background: linear-gradient(135deg, #FFCB6B, #FFA94D); }
.hb-stat.blue { background: linear-gradient(135deg, #7AB8FF, #4F8CFF); }
.hb-crumbs { font-size: .85rem; color: var(--hb-muted); margin-bottom: 6px; }
.hb-crumbs a { color: var(--hb-primary); }

/* ---- Login ---- */
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; background: var(--hb-bg); }
.auth-art {
  position: relative; overflow: hidden; color: #fff; padding: 56px 64px; display: flex; flex-direction: column; justify-content: center;
  background: linear-gradient(160deg, #8B7CF6 0%, #6C5CE7 45%, #4F46E5 100%); border-radius: 0 48px 48px 0;
}
.auth-art::before, .auth-art::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255,255,255,.08); }
.auth-art::before { width: 420px; height: 420px; right: -140px; top: -120px; }
.auth-art::after { width: 300px; height: 300px; left: -100px; bottom: -120px; }
.auth-art h1 { font-size: 2.6rem; margin: 6px 0 8px; font-weight: 700; }
.auth-tag { font-size: 1.05rem; opacity: .9; max-width: 420px; }
.auth-points { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.auth-points span { color: #FFD166; }
.auth-card-float {
  position: relative; z-index: 1; margin-top: 40px; width: 240px; background: rgba(255,255,255,.95); color: var(--hb-ink);
  border-radius: 18px; padding: 16px 18px; box-shadow: 0 20px 40px rgba(20,10,80,.25);
}
.auth-card-float small { color: var(--hb-muted); }
.auth-card-float strong { display: block; font-size: 1.6rem; }
.auth-bars { display: flex; align-items: flex-end; gap: 6px; height: 48px; margin-top: 8px; }
.auth-bars i { flex: 1; height: var(--h); border-radius: 6px; background: linear-gradient(var(--hb-primary-2), var(--hb-primary)); }
.auth-panel { display: flex; align-items: center; justify-content: center; padding: 32px 16px; }
.auth-box { width: 100%; max-width: 400px; background: #fff; border-radius: 24px; padding: 36px 32px; box-shadow: var(--hb-shadow); }
.auth-title { margin: 0 0 4px; font-size: 1.6rem; font-weight: 600; }
.auth-sub { margin: 0 0 20px; color: var(--hb-muted); font-size: .9rem; }
.auth-alert { background: #FFE8ED; color: #B4234A; border-radius: 12px; padding: 10px 14px; margin-bottom: 14px; font-size: .88rem; }
.auth-ok { background: #E5FAF3; color: #11775A; border-radius: 12px; padding: 10px 14px; margin-bottom: 14px; font-size: .88rem; }
.auth-form { display: grid; gap: 4px; }
.field { display: flex; flex-direction: column; margin-bottom: 12px; }
.field label { font-size: .8rem; font-weight: 500; margin-bottom: 6px; color: #4B5563; }
.field input { padding: 12px 14px; border: 1px solid #E2E4EE; border-radius: 12px; font: inherit; font-size: .95rem; background: #FAFAFE; }
.field input:focus { outline: none; border-color: var(--hb-primary); box-shadow: 0 0 0 3px rgba(108,92,231,.18); background: #fff; }
.auth-submit {
  margin-top: 8px; padding: 13px; border: 0; border-radius: 999px; color: #fff; font: inherit; font-weight: 600; cursor: pointer;
  background: linear-gradient(135deg, var(--hb-primary-2), var(--hb-primary)); box-shadow: 0 10px 22px rgba(108,92,231,.35);
}
.auth-submit:hover { filter: brightness(1.06); }
.auth-foot { color: var(--hb-muted); font-size: .78rem; margin-top: 18px; text-align: center; }
.auth-link { display: block; text-align: center; margin-top: 14px; }

/* Calendars (rates / availability) */
.cal-scroll { overflow-x: auto; border: 1px solid var(--hb-line); border-radius: 16px; background: #fff; box-shadow: var(--hb-shadow); }
.cal { border-collapse: collapse; font-size: .8rem; min-width: 100%; }
.cal th, .cal td { border: 1px solid #F0F1F7; padding: 6px 8px; text-align: center; min-width: 62px; }
.cal th { background: #FAFAFF; font-weight: 600; color: var(--hb-ink); }
.cal th.we { background: #EFEDFF; }
.cal .rt { text-align: left; position: sticky; left: 0; background: #fff; min-width: 150px; font-weight: 600; z-index: 1; }
.cal .price { font-weight: 600; }
.cal .avail { color: var(--hb-muted); font-size: .72rem; }
.cal td.norate { background: #FFF7ED; }
.cal td.ovr .price { font-style: italic; color: var(--hb-primary); }
.cal td.stop { background: #FFE8ED; }
.cal td.full { background: #FFF4D6; }
.md-preview h1, .md-preview h2, .md-preview h3 { margin: .6em 0 .3em; }
.md-preview p { margin: .4em 0; }

/* ---- Responsive ---- */
@media (max-width: 960px) {
  .hb-shell { grid-template-columns: 1fr; }
  .hb-sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: var(--hb-sidebar-w); transform: translateX(-105%); transition: transform .25s ease; }
  .menu-open .hb-sidebar { transform: none; box-shadow: 20px 0 60px rgba(0,0,0,.25); }
  .menu-open .hb-backdrop { display: block; position: fixed; inset: 0; background: rgba(15,10,40,.35); z-index: 15; }
  .hb-menu-btn { display: inline-flex; }
  .hb-topbar { padding: 10px 16px; }
  .hb-content { padding: 16px; }
  .hb-user-text { display: none; }
  .auth-shell { grid-template-columns: 1fr; }
  .auth-art { border-radius: 0 0 36px 36px; padding: 36px 24px; }
  .auth-card-float, .auth-points { display: none; }
}

#blazor-error-ui { background: lightyellow; bottom: 0; box-shadow: 0 -1px 2px rgba(0,0,0,.2); display: none; left: 0; padding: .6rem 1.25rem .7rem 1.25rem; position: fixed; width: 100%; z-index: 2000; }
#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: .75rem; top: .5rem; }

/* ---- Sign-in extras ---- */
.auth-logo-mobile { display: none; align-items: center; gap: 8px; font-weight: 700; color: var(--hb-primary); margin-bottom: 14px; }
.auth-input { position: relative; display: flex; align-items: center; }
.auth-input input { width: 100%; box-sizing: border-box; padding-left: 42px !important; padding-right: 64px !important; }
.auth-input-icon { position: absolute; left: 14px; font-size: .95rem; opacity: .55; pointer-events: none; }
.auth-eye { position: absolute; right: 8px; border: 0; background: #EFEDFF; color: var(--hb-primary); font: inherit; font-size: .75rem; font-weight: 600; padding: 5px 10px; border-radius: 999px; cursor: pointer; }
.auth-eye:hover { background: #E2DEFF; }
.auth-label-row { display: flex; align-items: baseline; justify-content: space-between; }
.auth-small-link { font-size: .78rem; text-decoration: none; font-weight: 500; }
.auth-small-link:hover { text-decoration: underline; }
.auth-caps { color: #B45309; font-size: .76rem; margin-top: 6px; }
.auth-caps[hidden] { display: none; }
.auth-hint { color: var(--hb-muted); font-size: .76rem; margin-top: 6px; min-height: 1em; }
.auth-hint.ok { color: #11775A; }
.auth-hint.bad { color: #B4234A; }
.auth-meter { height: 6px; background: #EEF0F6; border-radius: 999px; margin-top: 8px; overflow: hidden; }
.auth-meter i { display: block; height: 100%; width: 0; border-radius: 999px; transition: width .25s, background .25s; }
.auth-remember { display: flex; align-items: center; gap: 10px; font-size: .85rem; color: #4B5563; margin: 2px 0 6px; cursor: pointer; }
.auth-remember input { width: 18px; height: 18px; accent-color: var(--hb-primary); }
.auth-submit { display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
.auth-spinner { display: none; width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.45); border-top-color: #fff; border-radius: 50%; animation: auth-spin .7s linear infinite; }
.auth-submit.loading .auth-spinner { display: inline-block; }
.auth-submit.loading { opacity: .85; cursor: progress; }
@keyframes auth-spin { to { transform: rotate(360deg); } }
.auth-box { animation: auth-in .35s ease-out; }
@keyframes auth-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .auth-box { animation: none; } .auth-spinner { animation-duration: 2s; } }
@media (max-width: 960px) { .auth-logo-mobile { display: flex; } .auth-art { display: none; } }

/* ===================== Page design system (all admin pages) ===================== */
/* Page header */
.hb-page-head { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin: 4px 0 22px; }
.d-flex > .hb-page-head { margin: 0; flex: 1 1 auto; }
.d-flex:has(> .hb-page-head) { margin-bottom: 22px !important; flex-wrap: wrap; gap: 12px; }
.hb-page-title { display: flex; align-items: center; gap: 14px; min-width: 0; }
.hb-page-icon {
  width: 48px; height: 48px; border-radius: 14px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; color: #fff;
  background: linear-gradient(135deg, var(--hb-primary-2), var(--hb-primary)); box-shadow: 0 8px 18px rgba(108,92,231,.28);
}
.hb-page-title h1 { margin: 0; font-size: 1.45rem; font-weight: 600; letter-spacing: -.01em; color: var(--hb-ink); line-height: 1.2; }
.hb-page-title p { margin: 2px 0 0; color: var(--hb-muted); font-size: .86rem; }
.hb-page-title .hb-crumbs { margin: 0 0 2px; font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: #A0A4B8; }
.hb-page-title .hb-crumbs span { margin: 0 4px; }
.hb-page-actions { margin-left: auto; display: flex; gap: 10px; flex-wrap: wrap; }

/* Cards */
.hb-card { padding: 22px 24px !important; border: 1px solid #EEF0F7; }
.hb-card + .hb-card { margin-top: 20px; }
.hb-panel-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 20px; margin-bottom: 20px; }
.hb-panel-grid > .hb-card { margin: 0 !important; }
.hb-card-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px; }
.hb-card-head h3 { margin: 0; font-size: 1rem; font-weight: 600; color: var(--hb-ink); }
.hb-card-head p { margin: 2px 0 0; font-size: .82rem; color: var(--hb-muted); }
.hb-step { width: 30px; height: 30px; border-radius: 10px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; font-weight: 600; font-size: .85rem; color: var(--hb-primary); background: #EFEDFF; }
.hb-card-foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--hb-line); }
.hb-card-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 8px; }
.hb-form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 4px 16px; }
.hb-field-label { font-size: .8rem; font-weight: 500; color: #4B5563; margin: 14px 0 8px; }
.hb-field-label small { color: var(--hb-muted); font-weight: 400; }
.hb-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.hb-filter .mud-input-control { max-width: 220px; margin: 0 !important; }

/* Section titles inside cards (first h6 of a paper) */
.hb-content .mud-paper > .mud-typography-h6:first-child {
  display: flex; align-items: center; gap: 10px; font-size: 1rem; margin: 0 0 16px !important; padding-bottom: 12px; border-bottom: 1px solid var(--hb-line);
}
.hb-content .mud-paper > .mud-typography-h6:first-child::before {
  content: ""; width: 8px; height: 20px; border-radius: 4px; background: linear-gradient(var(--hb-primary-2), var(--hb-primary));
}

/* Form fields (outlined + dense everywhere) */
.hb-content .mud-input-control { margin-top: 8px; margin-bottom: 6px; }
.mud-input.mud-input-outlined { background: #FBFBFE; border-radius: 12px; transition: background .15s; }
.mud-input.mud-input-outlined:hover { background: #fff; }
.mud-input.mud-input-outlined.mud-input-adorned-end, .mud-input.mud-input-outlined:focus-within { background: #fff; }
.mud-input-outlined .mud-input-outlined-border { border-color: #E3E5EF !important; }
.mud-input-outlined:hover .mud-input-outlined-border { border-color: #C9C4F6 !important; }
.mud-input-outlined.mud-input-focused .mud-input-outlined-border, .mud-input-outlined:focus-within .mud-input-outlined-border { border-color: var(--hb-primary) !important; border-width: 2px !important; }
.mud-input-label-outlined { color: #7A8099 !important; }
.mud-input-helper-text { color: #9095AA !important; }
.mud-switch { margin: 6px 0; }
.hb-content .mud-chipset { margin-top: 8px; }
.hb-content .mud-chip.mud-chip-filled.mud-chip-color-default { background: #F0EEFF; color: #4C3FD1; }

/* Weekday picker chips */
.hb-content .mud-chip.mud-chip-outlined { border-color: #E3E5EF; color: #4B5563; background: #fff; }
.hb-content .mud-chip.mud-chip-filled.mud-chip-color-primary { background: linear-gradient(135deg, var(--hb-primary-2), var(--hb-primary)); }

/* Tables */
.hb-content .mud-table { border: 1px solid #EEF0F7; }
.mud-table-head .mud-table-cell { text-transform: uppercase; font-size: .72rem !important; letter-spacing: .06em; color: #8A8FA6 !important; }
.mud-table-body .mud-table-cell { font-size: .88rem; padding-top: 12px !important; padding-bottom: 12px !important; }
.mud-table-row { cursor: default; }
.mud-table-hover .mud-table-body .mud-table-row { cursor: pointer; }
.mud-table-empty-row .mud-table-cell, .mud-table-body .mud-table-cell[colspan] { color: var(--hb-muted); text-align: center; padding: 28px !important; }

/* Tabs, expansion panels, dialogs */
.mud-tabs { border-radius: var(--hb-radius); overflow: hidden; }
.mud-tabs-toolbar { background: #fff !important; border-bottom: 1px solid var(--hb-line); }
.mud-tab { text-transform: none !important; font-weight: 500 !important; }
.mud-tab.mud-tab-active { color: var(--hb-primary) !important; }
.mud-tab-slider { background: var(--hb-primary) !important; height: 3px !important; border-radius: 3px; }
.mud-expand-panel { border-radius: 14px !important; margin-bottom: 10px; border: 1px solid #EEF0F7; }
.mud-dialog { border-radius: 22px !important; }
.mud-dialog .mud-dialog-title { font-weight: 600; }
.mud-snackbar { border-radius: 14px !important; }

/* Calendar grid (availability / rates) */
.cal-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.cal-nav { display: flex; align-items: center; gap: 4px; }
.cal-range { font-weight: 600; font-size: .95rem; min-width: 190px; text-align: center; }
.cal-legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: .78rem; color: var(--hb-muted); }
.cal-legend span { display: inline-flex; align-items: center; gap: 6px; }
.cal-legend .lg { width: 12px; height: 12px; border-radius: 4px; display: inline-block; }
.lg-free { background: #D8F5E8; } .lg-mid { background: #FFEFC7; } .lg-low { background: #FFD9E0; } .lg-stop { background: #FF5C7A; }
.lg-price { background: #EFEDFF; } .lg-norate { background: #FFF1E3; border: 1px dashed #F5B97A; } .lg-ovr { background: #fff; border: 2px solid var(--hb-primary); }
.hb-card .cal-scroll { box-shadow: none; border: 1px solid #EEF0F7; border-radius: 14px; }
.cal { border-collapse: separate; border-spacing: 0; }
.cal th, .cal td { border: 0; border-right: 1px solid #F1F2F8; border-bottom: 1px solid #F1F2F8; min-width: 64px; padding: 8px 6px; }
.cal thead th { position: sticky; top: 0; z-index: 2; background: #FAFAFF; line-height: 1.15; }
.cal th .cal-dow { display: block; font-size: .68rem; text-transform: uppercase; color: #9AA0B4; font-weight: 500; }
.cal th .cal-day { display: block; font-size: 1.05rem; font-weight: 600; color: var(--hb-ink); }
.cal th .cal-mon { display: block; font-size: .66rem; color: #9AA0B4; }
.cal th.we { background: #F4F2FF; }
.cal th.today { background: linear-gradient(180deg, #7B6CF6, #6C5CE7); }
.cal th.today span { color: #fff !important; }
.cal .rt { background: #fff; font-size: .85rem; border-right: 1px solid #E8E9F2; z-index: 3; }
.cal thead .rt { z-index: 4; background: #FAFAFF; }
.cal td.cell { vertical-align: top; transition: filter .15s; }
.cal td.cell:hover { filter: brightness(.97); }
.cal .cal-main { font-weight: 600; font-size: .95rem; color: var(--hb-ink); }
.cal .cal-main small { font-weight: 400; color: #9AA0B4; font-size: .72rem; }
.cal .cal-flags { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px; margin-top: 3px; }
.cal .f { font-size: .62rem; padding: 1px 5px; border-radius: 6px; background: rgba(255,255,255,.75); color: #4B5563; white-space: nowrap; }
.cal .f-sold { background: #E4E0FF; color: #4C3FD1; }
.cal .f-blk { background: #E5E7EB; }
.cal .f-warn { background: #FFE4B5; color: #8A5300; }
.cal td.lvl-free { background: #EEFBF4; }
.cal td.lvl-mid { background: #FFF7E1; }
.cal td.lvl-low { background: #FFEDF1; }
.cal td.lvl-stop { background: repeating-linear-gradient(135deg, #FFD9E0 0 6px, #FFE9ED 6px 12px); }
.cal td.lvl-stop .cal-main { color: #C2264B; }
.cal td.has-rate { background: #F8F7FF; }
.cal td.norate { background: #FFF6EC; }
.cal td.norate .cal-main { color: #C27A2C; }
.cal td.ovr { box-shadow: inset 0 0 0 2px var(--hb-primary); }
.cal td.ovr .cal-main { color: var(--hb-primary); }

/* Media cards */
.hb-content .mud-card { border-radius: 16px !important; overflow: hidden; }

@media (max-width: 700px) {
  .hb-panel-grid { grid-template-columns: 1fr; }
  .hb-page-icon { width: 40px; height: 40px; }
  .hb-page-title h1 { font-size: 1.2rem; }
}

/* Pickers: a field's max-width (Style) must never clip the calendar / clock / colour popup */
.mud-picker-popover-paper { max-width: none !important; }
.mud-picker-popover .mud-picker-inline-paper, .mud-picker-popover { min-width: 0; }

/* Save bar that stays visible at the bottom of long forms */
.hb-sticky-save { position: sticky; bottom: 0; z-index: 5; display: flex; justify-content: flex-end; gap: 10px; padding: 12px 0; margin-top: 16px;
  background: linear-gradient(to top, #F4F5FB 70%, rgba(244,245,251,0)); }
.hb-message { white-space: pre-wrap; background: #FAFAFE; border: 1px solid #EEF0F7; border-radius: 10px; padding: 10px 12px; font-size: .9rem; }

/* Design page: three colour fields side by side */
.hb-colors { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }

/* Website sections page */
.hb-empty { padding: 28px; text-align: center; color: var(--hb-muted); background: #FAFAFE; border: 1px dashed #DCDDEB; border-radius: 14px; }
.hb-block-list { display: grid; gap: 8px; }
.hb-block-row { display: flex; align-items: center; gap: 4px; min-width: 0; overflow: hidden; padding: 6px 6px 6px 4px; border: 1px solid #EEF0F7; border-radius: 12px; background: #fff; transition: border-color .15s, background .15s; }
.hb-block-row:hover { border-color: #D9D4FB; }
.hb-block-row.selected { border-color: var(--hb-primary); background: #F6F4FF; }
.hb-block-main { display: block; flex: 1; min-width: 0; text-align: left; background: none; border: 0; padding: 6px 10px; cursor: pointer; font: inherit; color: inherit; }
.hb-block-main strong { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hb-block-main small { display: block; color: var(--hb-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hb-stars { color: #F5A524; margin-right: 6px; letter-spacing: 1px; }
.hb-icon-pick { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.hb-icon-pick button { display: inline-flex; align-items: center; gap: 4px; font: inherit; font-size: .78rem; padding: 4px 10px; border-radius: 999px; border: 1px solid #E3E5EF; background: #fff; cursor: pointer; color: #4B5563; }
.hb-icon-pick button:hover { border-color: #C9C4F6; }
.hb-icon-pick button.on { background: var(--hb-primary); border-color: var(--hb-primary); color: #fff; }
.hb-md-preview { font-size: .92rem; line-height: 1.6; }
.hb-md-preview p { margin: 0 0 .6em; }
.hb-section-row { border: 1px solid #EEF0F7; border-radius: 12px; padding: 4px 8px; margin-bottom: 8px; background: #fff; }
.hb-section-row .hb-section-texts { display: grid; gap: 0 12px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); padding: 0 6px 8px; }

/* Formatting editor (MarkdownEditor.razor) */
.md-editor { border: 1px solid #E3E5EF; border-radius: 14px; background: #fff; margin: 10px 0; overflow: hidden; }
.md-editor:focus-within { border-color: var(--hb-primary); box-shadow: 0 0 0 3px #EEEBFF; }
.md-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px 0 14px; flex-wrap: wrap; }
.md-label { font-size: .8rem; font-weight: 600; color: #4B5563; }
.md-modes { display: inline-flex; background: #F4F5FB; border-radius: 10px; padding: 3px; }
.md-modes button { font: inherit; font-size: .78rem; border: 0; background: none; padding: 5px 10px; border-radius: 8px; cursor: pointer; color: #6B7185; }
.md-modes button.on { background: #fff; color: var(--hb-ink); box-shadow: 0 1px 4px rgba(0,0,0,.08); font-weight: 600; }
.md-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; padding: 6px 8px; border-bottom: 1px solid #EEF0F7; }
.md-toolbar button { width: 32px; height: 32px; border: 0; background: none; border-radius: 8px; cursor: pointer; color: #4B5563; display: inline-flex; align-items: center; justify-content: center; }
.md-toolbar button:hover { background: #F0EEFF; color: var(--hb-primary); }
.md-sep { width: 1px; height: 20px; background: #E3E5EF; margin: 0 4px; }
.md-body { display: grid; }
.md-editor.split .md-body { grid-template-columns: 1fr 1fr; }
.md-body textarea { width: 100%; border: 0; outline: none; resize: vertical; padding: 14px; font: 14px/1.6 ui-monospace, Consolas, monospace; color: var(--hb-ink); background: #FCFCFF; min-height: 160px; }
.md-preview { padding: 14px 18px; font-size: .95rem; line-height: 1.65; overflow: auto; max-height: 560px; }
.md-editor.split .md-preview { border-left: 1px solid #EEF0F7; }
.md-preview h2 { font-size: 1.3rem; margin: .8em 0 .4em; } .md-preview h3 { font-size: 1.1rem; margin: .8em 0 .4em; }
.md-preview table { border-collapse: collapse; } .md-preview td, .md-preview th { border: 1px solid #E3E5EF; padding: 4px 8px; }
.md-preview blockquote { margin: 0; padding-left: 12px; border-left: 3px solid #D9D4FB; color: #555; }
.md-empty { color: var(--hb-muted); }
.md-foot { display: flex; flex-wrap: wrap; gap: 16px; padding: 6px 14px; font-size: .72rem; color: var(--hb-muted); border-top: 1px solid #EEF0F7; background: #FAFAFE; }
@media (max-width: 800px) { .md-editor.split .md-body { grid-template-columns: 1fr; } .md-editor.split .md-preview { border-left: 0; border-top: 1px solid #EEF0F7; } }

/* Date fields: always wide enough for "28 Sep 2026" plus the calendar icon */
.mud-picker .mud-input-control { min-width: 190px; }
.hb-filter .mud-picker .mud-input-control { max-width: none; }

/* ---------- Tables: toolbar (search + filters), sortable headers, pager ---------- */
.hb-table-tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 12px; }
.hb-table-tools .mud-input-control { margin: 0 !important; }
.hb-grow { flex: 1 1 260px; min-width: 220px; }
.hb-w-180 { flex: 0 1 180px; min-width: 160px; }
.hb-w-220 { flex: 0 1 220px; min-width: 180px; }
.hb-table { border: 1px solid #EEF0F7; border-radius: 14px !important; overflow: hidden; }
.hb-table .mud-table-toolbar { padding: 0; }
.hb-table .mud-table-pagination { border-top: 1px solid #EEF0F7; }
.hb-table .mud-table-sort-label { font-weight: 600; }
.hb-code { font-family: ui-monospace, Consolas, monospace; font-size: .82rem; background: #F4F2FF; color: #4C3FD1; padding: 2px 6px; border-radius: 6px; }
.hb-nowrap { white-space: nowrap; }
.hb-details { color: #6B7185; font-size: .82rem; max-width: 420px; overflow-wrap: anywhere; }
.hb-row-actions { text-align: right; white-space: nowrap; }
.hb-user-cell { display: flex; align-items: center; gap: 10px; }
.hb-mini-avatar { width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: .72rem; font-weight: 600; color: #fff;
  background: linear-gradient(135deg, var(--hb-primary-2), var(--hb-primary)); flex-shrink: 0; }

/* ---------- Hotel detail page (Super Admin) ---------- */
.td-head { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-bottom: 18px; }
.td-back { background: #fff; box-shadow: 0 2px 8px rgba(30,32,51,.06); }
.td-avatar { width: 56px; height: 56px; border-radius: 16px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.5rem; font-weight: 600; color: #fff;
  background: linear-gradient(135deg, var(--hb-primary-2), var(--hb-primary)); box-shadow: 0 10px 22px rgba(108,92,231,.3); flex-shrink: 0; }
.td-title { flex: 1 1 320px; min-width: 0; }
.td-title h1 { margin: 0; font-size: 1.5rem; font-weight: 600; color: var(--hb-ink); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.td-title p { margin: 2px 0 0; color: var(--hb-muted); font-size: .88rem; }
.td-status { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; padding: 4px 10px; border-radius: 999px; }
.td-status.on { background: #DDF7EC; color: #0E8A5F; }
.td-status.off { background: #FFE3E8; color: #C2264B; }
.td-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.td-actions form { margin: 0; }
.td-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 20px; }
.td-kpis > div { background: #fff; border: 1px solid #EEF0F7; border-radius: 14px; padding: 12px 16px; }
.td-kpis span { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: #9AA0B4; }
.td-kpis strong { display: block; font-size: 1.05rem; font-weight: 600; color: var(--hb-ink); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.td-tabs .mud-tabs-tabbar { background: #fff; border-radius: 14px; border: 1px solid #EEF0F7; padding: 4px; }
.td-tabs .mud-tab { border-radius: 10px; min-height: 44px; }
.td-tabs .mud-tab.mud-tab-active { background: #F1EEFF; }
.td-tabs .mud-tab-slider { display: none; }
.td-facts { margin: 0; display: grid; gap: 0; }
.td-facts > div { display: grid; grid-template-columns: 170px 1fr; gap: 12px; padding: 11px 0; border-bottom: 1px dashed #EEF0F7; font-size: .9rem; }
.td-facts > div:last-child { border-bottom: 0; }
.td-facts dt { color: #8A8FA6; }
.td-facts dd { margin: 0; color: var(--hb-ink); overflow-wrap: anywhere; }
.td-facts a { color: var(--hb-primary); text-decoration: none; }
.td-facts a:hover { text-decoration: underline; }
.td-steps { margin: 0 0 12px; padding-left: 20px; color: #4B5563; font-size: .9rem; display: grid; gap: 6px; }
.td-example { margin-top: 10px; padding: 10px 14px; border-radius: 12px; background: #F6F4FF; color: #4C3FD1; font-size: .85rem; }
.td-current td { background: #F4FBF7; }
@media (min-width: 1100px) { .td-narrow-left { grid-template-columns: minmax(340px, 2fr) 3fr; } }
@media (max-width: 600px) { .td-facts > div { grid-template-columns: 1fr; gap: 2px; } }

.hb-num { text-align: right !important; white-space: nowrap; }
.hb-count { font-size: .8rem; color: var(--hb-muted); white-space: nowrap; margin-left: auto; }

/* Home section wireframe thumbnails (Website design page) */
.hb-section-preview { flex: 0 0 auto; width: 72px; height: 42px; margin-right: 6px; }
@media (max-width: 600px) { .hb-section-preview { display: none; } }

/* Photo picker (MediaSelect): thumbnail + name in each choice, preview of the chosen photo under the field. */
.hb-media-option { display: flex; align-items: center; gap: 12px; min-width: 0; }
.hb-media-option img { width: 56px; height: 42px; object-fit: cover; border-radius: 6px; flex-shrink: 0; background: var(--hb-line); }
.hb-media-option span { display: grid; min-width: 0; line-height: 1.25; }
.hb-media-option strong { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hb-media-option small { color: #7A7F99; font-size: .78rem; }
.hb-media-chosen { display: flex; align-items: center; gap: 10px; margin: 4px 0 12px; font-size: .82rem; color: #7A7F99; }
.hb-media-chosen img { width: 96px; height: 64px; object-fit: cover; border-radius: 8px; border: 1px solid var(--hb-line); }

/* Tabbed settings pages (Hotel details): one full-width card per tab, two columns inside on wide screens. */
.hb-card-wide { width: 100%; }
.hb-tab-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px 32px; align-items: start; }
.hb-sub { margin: 4px 0 6px; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #7A7F99; }
.hb-form-grid.hb-grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.hb-form-grid.hb-grid-4 { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
@media (max-width: 960px) { .hb-tab-cols { grid-template-columns: 1fr; } }

/* Amenity picker (AmenityPicker.razor): name with suggestions + icon + Add, then chips with their icon. */
.hb-amenity-add { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 10px; align-items: start; }
.hb-amenity-add > .mud-autocomplete, .hb-amenity-add > .mud-input-control:first-child { grid-column: 1 / -1; }
.hb-amenity-add > .mud-button-root { margin-top: 6px; }
.hb-amenity-option { display: flex; align-items: center; gap: 10px; }
.hb-amenity-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 4px; }
.hb-amenity-chip { display: inline-flex; align-items: center; gap: 6px; padding: 2px 2px 2px 12px; border-radius: 999px; background: #F1EEFF; color: #4B3FC6; font-size: .88rem; }
.hb-amenity-chip .mud-icon-root { font-size: 1.05rem; }


/* Photo field with "Upload new photo" (MediaSelect) and the Replace button on photo cards (MediaGrid). */
.hb-media-field { display: flex; flex-direction: column; align-items: flex-start; gap: 0; }
.hb-media-field > .mud-select { width: 100%; }
.hb-media-field .hb-media-upload { width: auto; margin: -2px 0 8px; }
.hb-inline-upload { display: inline-flex; width: auto; }


/* SEO page: page picker + editor side by side, Google result preview. */
.hb-seo-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 20px; align-items: start; }
.hb-seo-grid > .hb-card { margin: 0 !important; }
.hb-seo-path { display: flex; align-items: center; gap: 10px; width: 100%; }
.hb-seo-path span { flex: 1; min-width: 0; }
.hb-seo-path small { color: #7A7F99; margin-left: 4px; }
.hb-seo-path code, .hb-seo-row code { font-size: .78rem; color: #4B3FC6; background: #F1EEFF; padding: 1px 6px; border-radius: 6px; }
.hb-seo-list { display: grid; gap: 6px; max-height: 420px; overflow: auto; }
.hb-seo-row { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; font: inherit; font-size: .86rem; padding: 8px 10px; border: 1px solid #EEF0F7; border-radius: 10px; background: #fff; cursor: pointer; }
.hb-seo-row span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #4B5563; }
.hb-seo-row:hover, .hb-seo-row.on { border-color: #C9C4F6; background: #FAF9FF; }
.hb-serp { display: grid; gap: 2px; padding: 14px 16px; margin-bottom: 14px; border: 1px solid #EEF0F7; border-radius: 12px; background: #fff; font-family: Arial, sans-serif; }
.hb-serp small { color: #202124; font-size: .78rem; }
.hb-serp strong { color: #1A0DAB; font-size: 1.12rem; font-weight: 400; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hb-serp span { color: #4D5156; font-size: .86rem; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hb-seo-box { border: 1px solid #EEF0F7; border-radius: 12px; padding: 12px 14px 4px; margin: 12px 0; }
.hb-mono textarea { font-family: ui-monospace, Consolas, monospace; font-size: .82rem; }
@media (max-width: 1100px) { .hb-seo-grid { grid-template-columns: 1fr; } }

/* User guide (Help.razor): chapter list on the left, chapter text on the right. */
.hb-guide { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 20px; align-items: start; }
.hb-guide-nav { position: sticky; top: 84px; background: #fff; border-radius: 18px; padding: 14px; border: 1px solid #EEF0F7; max-height: calc(100vh - 110px); overflow: auto; }
.hb-guide-group { margin: 14px 8px 4px; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #9AA0B4; }
.hb-guide-link { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; color: #374151; text-decoration: none; font-size: .9rem; }
.hb-guide-link:hover { background: #F6F5FF; }
.hb-guide-link.on { background: #EFEDFF; color: var(--hb-primary); font-weight: 600; }
.hb-guide-link small { margin-left: auto; font-size: .68rem; color: #9AA0B4; border: 1px solid #E3E5EF; border-radius: 999px; padding: 0 6px; }
.hb-guide-none { color: #9AA0B4; font-size: .85rem; margin: 12px 8px; }
.hb-guide-body { padding: 28px 32px !important; }
.hb-guide-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; padding-bottom: 16px; border-bottom: 1px solid #EEF0F7; }
.hb-guide-head h2 { margin: 0; font-size: 1.45rem; }
.hb-guide-text { font-size: .94rem; line-height: 1.65; color: #374151; }
.hb-guide-text h2 { font-size: 1.12rem; margin: 26px 0 10px; color: var(--hb-ink); }
.hb-guide-text h3 { font-size: 1rem; margin: 20px 0 8px; }
.hb-guide-text p { margin: 0 0 12px; }
.hb-guide-text ul, .hb-guide-text ol { padding-left: 22px; margin: 0 0 14px; }
.hb-guide-text li { margin-bottom: 4px; }
.hb-guide-text table { width: 100%; border-collapse: collapse; margin: 8px 0 18px; font-size: .88rem; }
.hb-guide-text th { text-align: left; background: #F7F7FC; color: #4B5563; font-weight: 600; }
.hb-guide-text th, .hb-guide-text td { padding: 9px 12px; border-bottom: 1px solid #EEF0F7; vertical-align: top; }
.hb-guide-text td:first-child { width: 30%; color: var(--hb-ink); }
.hb-guide-text code { background: #F1EEFF; color: #4B3FC6; padding: 1px 6px; border-radius: 6px; font-size: .85em; }
.hb-guide-pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; padding-top: 16px; border-top: 1px solid #EEF0F7; }
.hb-guide-pager a { color: var(--hb-primary); text-decoration: none; font-weight: 600; font-size: .9rem; }
.hb-help-btn { margin-left: 4px; }
@media (max-width: 960px) { .hb-guide { grid-template-columns: 1fr; } .hb-guide-nav { position: static; max-height: none; } .hb-guide-body { padding: 18px !important; } .hb-guide-text td:first-child { width: auto; } }


/* Rates calendar quick edit (CalendarGrid with PriceEdited) and date shortcuts on Rates. */
.cal td.editable { cursor: pointer; }
.cal td.editable:hover { outline: 2px solid #C9C4F6; outline-offset: -2px; }
.cal td.editing { background: #FAF9FF; outline: 2px solid var(--hb-primary); outline-offset: -2px; }
.cal-edit { width: 72px; font: inherit; font-weight: 700; text-align: center; border: 1px solid #C9C4F6; border-radius: 6px; padding: 3px 4px; }
.hb-date-shortcuts { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 8px; }

/* Design page: colour picker number boxes (R, G, B) must not get the date-field min width; live theme preview */
.mud-picker-color-inputs .mud-input-control, .mud-picker-color-controls .mud-input-control { min-width: 0 !important; }
.hb-theme-preview { border: 1px solid #EEF0F7; border-radius: 12px; padding: 12px; background: #fff; }
.hb-tp-hero, .hb-tp-card { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 14px; border-radius: var(--r); font-size: .85rem; }
.hb-tp-hero { background: var(--p); color: #fff; }
.hb-tp-card { background: var(--s); color: #111; margin-top: 8px; border: 1px solid rgba(0,0,0,.06); }
.hb-tp-label { font-weight: 700; }
.hb-tp-btn { margin-left: auto; background: var(--a); color: #fff; padding: 6px 14px; border-radius: var(--r); font-weight: 600; }
.hb-tp-chip { margin-left: auto; border: 2px solid var(--a); color: var(--a); padding: 4px 10px; border-radius: var(--r); font-weight: 600; background: #fff; }
.hb-slide-row { display: flex; align-items: center; gap: 8px; padding: 4px 6px; border: 1px solid #EEF0F7; border-radius: 10px; margin-bottom: 6px; background: #fff; min-width: 0; }
.hb-slide-no { width: 20px; text-align: center; color: var(--hb-muted); font-size: .8rem; }
.hb-slide-thumb { width: 64px; height: 40px; object-fit: cover; border-radius: 6px; flex: none; }
.hb-slide-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .88rem; }

/* Design → Home page sections: live section preview with numbered parts, and the numbered fields. */
.hb-section-edit { padding: 4px 6px 12px; }
.hb-hs-preview { margin-bottom: 8px; }
.hb-hs-frame { position: relative; overflow: hidden; border: 1px solid var(--mud-palette-lines-default); border-radius: 8px; background: #f4f4f6; height: 320px; }
.hb-hs-frame iframe { position: absolute; top: 0; left: 0; width: 1280px; height: 700px; border: 0; transform-origin: 0 0; pointer-events: none; }
.hb-hs-fields { display: grid; gap: 4px; }
.hb-hs-field { display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: start; padding: 6px 8px; border-radius: 8px; }
.hb-hs-field:hover, .hb-hs-field:focus-within { background: var(--mud-palette-background-gray); }
.hb-hs-num { width: 28px; height: 28px; margin-top: 14px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; background: #E5484D; }
.hb-hs-num.hb-hs-photo, .hb-hs-num.hb-hs-photo2 { background: #0E9F6E; }
.hb-hs-num.hb-hs-bg { background: #7C3AED; }
.hb-hs-control { min-width: 0; }
.hb-hs-now { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 2px 0 4px; font-size: .8rem; color: var(--mud-palette-text-secondary); }
.hb-hs-now-label { font-weight: 600; color: var(--mud-palette-text-primary); }
.hb-hs-now-text { color: var(--mud-palette-text-primary); font-style: italic; overflow-wrap: anywhere; }
.hb-hs-now img { width: 72px; height: 48px; object-fit: cover; border-radius: 4px; border: 1px solid var(--mud-palette-lines-default); }
.hb-hs-now-src { flex-basis: 100%; }

/* Save buttons stay in view at the bottom of the screen on long forms (hb-sticky-save). */
.hb-sticky-save { box-shadow: 0 -10px 18px -14px rgba(20, 22, 50, .35); padding-left: 12px; padding-right: 12px; border-radius: 12px 12px 0 0; }
.hb-sticky-save .hb-save-hint { margin-right: auto; align-self: center; color: #6B7085; font-size: .85rem; }
.hb-sticky-save.hb-sticky-save-start { justify-content: flex-start; }
.hb-card .hb-sticky-save, .mud-paper .hb-sticky-save { background: #fff; padding-top: 12px; padding-bottom: 12px; margin-bottom: -4px; }
@media (max-width: 600px) { .hb-sticky-save .hb-save-hint { display: none; } }

/* Dashboard tables: search and status filter above the rows. */
.hb-table-tools { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 8px; }
.hb-table-tools .hb-table-search { flex: 1 1 260px; max-width: 420px; }
.hb-table-tools .hb-table-filter { flex: 0 1 200px; }

/* Dashboard: rooms booked per night (OccupancyCalendar). */
.hb-occ-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.hb-occ-month { min-width: 130px; text-align: center; }
.hb-occ-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.hb-occ-dow { text-align: center; font-size: .75rem; font-weight: 700; color: #8A8FA6; text-transform: uppercase; }
.hb-occ-day { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 58px; border-radius: 10px;
  border: 1px solid #EEF0F7; background: #fff; color: inherit; text-decoration: none; transition: transform .15s, box-shadow .15s; }
.hb-occ-day:hover { transform: translateY(-1px); box-shadow: 0 6px 14px rgba(20, 22, 50, .08); }
.hb-occ-n { font-weight: 700; font-size: .95rem; }
.hb-occ-v { font-size: .75rem; color: #6B7085; font-variant-numeric: tabular-nums; }
.hb-occ-day.some { background: #EEF4FF; border-color: #D6E2FF; }
.hb-occ-day.busy { background: #FFF4E0; border-color: #FFDDA6; }
.hb-occ-day.busy .hb-occ-v { color: #9A5B00; font-weight: 700; }
.hb-occ-day.full { background: #E5484D; border-color: #E5484D; color: #fff; }
.hb-occ-day.full .hb-occ-v { color: #fff; font-weight: 700; }
.hb-occ-day.today { outline: 2px solid var(--hb-primary); outline-offset: 1px; }
.hb-occ-day.past { opacity: .5; }
.hb-occ-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 10px; font-size: .8rem; color: #6B7085; }
.hb-occ-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.hb-occ-legend i.some { background: #EEF4FF; border: 1px solid #D6E2FF; }
.hb-occ-legend i.busy { background: #FFF4E0; border: 1px solid #FFDDA6; }
.hb-occ-legend i.full { background: #E5484D; }
@media (max-width: 600px) { .hb-occ-day { min-height: 48px; } .hb-occ-v { font-size: .66rem; } }

/* Calendar sync page */
.hb-steps { margin: .5rem 0 0; padding-left: 1.25rem; }
.hb-steps li { margin: .4rem 0; line-height: 1.5; }
.hb-muted { color: var(--mud-palette-text-secondary); }

/* Reports: night-by-night trend */
.rp-trend { display: flex; align-items: flex-end; gap: 2px; height: 220px; padding-top: 8px; overflow-x: auto; }
.rp-col { flex: 1 0 8px; min-width: 8px; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; border-radius: 6px 6px 0 0; }
.rp-col.we { background: rgba(108, 92, 231, .06); }
.rp-col small { font-size: .65rem; color: var(--mud-palette-text-secondary); margin-top: 2px; white-space: nowrap; }
.rp-bar { width: 100%; min-height: 2px; border-radius: 4px 4px 0 0; background: #B9B2F5; }
.rp-bar.mid { background: #F6C35B; }
.rp-bar.hi { background: #34C38F; }

/* Rates / availability grid: past days are locked and greyed out. */
.cal th.past { opacity: .5; }
.cal td.cell.past { background: repeating-linear-gradient(135deg, #F3F4F6 0 6px, #ECEDF1 6px 12px) !important; color: #9CA3AF; cursor: not-allowed; }
.cal td.cell.past:hover { filter: none; }
.cal td.cell.past .cal-main, .cal td.cell.past .f { color: #9CA3AF !important; }
.lg.lg-past { background: repeating-linear-gradient(135deg, #F3F4F6 0 3px, #DADCE2 3px 6px); }

/* ---- Sign-in, modern hotel-only design (same colours) ---- */
@media (min-width: 961px) { .auth-shell { grid-template-columns: 1.15fr 1fr; } }
.auth-art { justify-content: space-between; gap: 32px; padding: 44px 60px; }
.auth-art::before { width: 520px; height: 520px; right: -180px; top: -160px; background: radial-gradient(circle, rgba(255,255,255,.16), rgba(255,255,255,0) 70%); }
.auth-art::after { width: 380px; height: 380px; left: -140px; bottom: -160px; background: radial-gradient(circle, rgba(46,230,166,.18), rgba(46,230,166,0) 70%); }
.auth-brand { position: relative; z-index: 1; display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.15rem; letter-spacing: .01em; }
.auth-brand .hb-dots { margin: 0; }
/* Hotel logo on the sign-in pages (white chip so dark or transparent logos stay readable on the purple art). */
.auth-logo-chip { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex: 0 0 44px;
  border-radius: 12px; background: #fff; box-shadow: 0 4px 14px rgba(20, 16, 60, .18); overflow: hidden; }
.auth-logo-chip img { max-width: 36px; max-height: 36px; width: auto; height: auto; object-fit: contain; }
.auth-brand-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.auth-logo-mobile .auth-logo-chip { border: 1px solid #ECEAF7; box-shadow: none; }
.auth-logo-mobile .auth-brand-name { font-size: 1.05rem; }
.auth-hero { position: relative; z-index: 1; max-width: 480px; }
.auth-kicker { display: inline-block; font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; padding: 6px 12px;
  border-radius: 999px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22); }
.auth-art h1 { font-size: clamp(2rem, 3.2vw, 2.9rem); line-height: 1.12; margin: 16px 0 12px; letter-spacing: -.01em; }
.auth-tag { opacity: .88; line-height: 1.55; }
.auth-points { margin-top: 26px; gap: 12px; }
.auth-points li { display: flex; align-items: center; gap: 12px; font-size: .95rem; }
.auth-ico { width: 34px; height: 34px; flex: 0 0 34px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.2); font-size: 1rem; }
.auth-mock { position: relative; z-index: 1; display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.auth-glass { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-radius: 20px; box-shadow: 0 24px 50px rgba(20,10,80,.25); }
.auth-today { width: 300px; padding: 18px 20px; }
.auth-glass-head { display: flex; justify-content: space-between; align-items: center; }
.auth-glass-head small { opacity: .85; font-weight: 600; letter-spacing: .04em; }
.auth-live { display: inline-flex; align-items: center; gap: 6px; font-size: .72rem; font-weight: 600; background: rgba(46,230,166,.2); color: #CFFBEA; padding: 3px 9px; border-radius: 999px; }
.auth-live i { width: 7px; height: 7px; border-radius: 50%; background: #2EE6A6; animation: auth-pulse 1.8s infinite; }
@keyframes auth-pulse { 0% { box-shadow: 0 0 0 0 rgba(46,230,166,.7); } 70% { box-shadow: 0 0 0 7px rgba(46,230,166,0); } 100% { box-shadow: 0 0 0 0 rgba(46,230,166,0); } }
.auth-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0 16px; }
.auth-stats div { background: rgba(255,255,255,.12); border-radius: 14px; padding: 10px 8px; text-align: center; }
.auth-stats strong { display: block; font-size: 1.35rem; }
.auth-stats small { font-size: .7rem; opacity: .85; }
.auth-occ-row { display: flex; justify-content: space-between; align-items: baseline; font-size: .8rem; }
.auth-occ-row small { opacity: .85; }
.auth-today .auth-bars { height: 44px; }
.auth-today .auth-bars i { background: linear-gradient(#FFFFFF, rgba(255,255,255,.55)); opacity: .9; }
.auth-toast { display: flex; align-items: center; gap: 12px; padding: 12px 16px; margin-bottom: 18px; animation: auth-float 5s ease-in-out infinite; }
.auth-toast strong { display: block; font-size: .88rem; }
.auth-toast small { font-size: .74rem; opacity: .85; }
.auth-toast-ico { width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #2EE6A6; color: #0B3B2C; font-weight: 800; }
@keyframes auth-float { 50% { transform: translateY(-6px); } }
.auth-box { max-width: 420px; padding: 40px 36px; border: 1px solid #EEECFB; }
.auth-title { font-size: 1.75rem; }
.auth-trust { display: grid; gap: 8px; margin-top: 22px; padding-top: 18px; border-top: 1px dashed #E4E2F5; }
.auth-trust span { font-size: .8rem; color: var(--hb-muted); }
@media (prefers-reduced-motion: reduce) { .auth-toast, .auth-live i { animation: none; } }
@media (max-width: 1200px) { .auth-art { padding: 40px; } .auth-toast { display: none; } }
@media (max-width: 960px) { .auth-shell { grid-template-columns: 1fr; } .auth-box { padding: 28px 22px; } }

/* Sign-in on desktop: exactly one screen high, no page scrollbar; parts shrink or hide on short screens. */
@media (min-width: 961px) {
  .auth-shell { height: 100vh; height: 100dvh; min-height: 0; overflow: hidden; }
  .auth-art { padding: clamp(24px, 4.5vh, 48px) clamp(32px, 4vw, 60px); gap: clamp(12px, 3vh, 32px); }
  .auth-art h1 { font-size: clamp(1.8rem, min(3.2vw, 5.4vh), 2.9rem); margin: clamp(8px, 1.6vh, 16px) 0 clamp(6px, 1.2vh, 12px); }
  .auth-points { margin-top: clamp(12px, 2.6vh, 26px); gap: clamp(6px, 1.2vh, 12px); }
  .auth-panel { padding: 16px; overflow-y: auto; }
  .auth-box { padding: clamp(24px, 4vh, 40px) 36px; }
}
@media (min-width: 961px) and (max-height: 860px) { .auth-toast { display: none; } .auth-stats { margin: 10px 0 12px; } }
@media (min-width: 961px) and (max-height: 760px) { .auth-points { display: none; } }
@media (min-width: 961px) and (max-height: 640px) { .auth-mock, .auth-tag { display: none; } .auth-trust { display: none; } .auth-hero { margin-block: auto; } }

/* Phones: MudGrid Spacing="6" (24px gutters) is wider than the 16px page padding, and colour pickers need ~190px. */
.hb-colors { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
@media (max-width: 600px) {
  .hb-content .mud-grid[class*="spacing-xs-6"] { margin: -8px; width: calc(100% + 16px); }
  .hb-content .mud-grid[class*="spacing-xs-6"] > .mud-grid-item { padding: 8px; }
}
@media (max-width: 600px) {
  /* Panels and rows of fields stack instead of running off a phone screen. */
  .hb-panel-grid { grid-template-columns: minmax(0, 1fr); }
  .hb-content .hb-card .d-flex:not(.flex-nowrap) { flex-wrap: wrap; }
  .hb-content .hb-card .d-flex > * { min-width: 0; max-width: 100%; }
}

/* Room status board (dashboard + Front desk → Today) */
.fb-card, .fb-dlg { --fb-free: #16A34A; --fb-dirty: #D97706; --fb-in: #4F6BED; --fb-out: #9333EA; --fb-ooo: #6B7280; --fb-closed: #94A3B8; }
.fb-head { display: flex; align-items: center; gap: 12px 16px; flex-wrap: wrap; }
.fb-title { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 1.05rem; color: var(--hb-ink); }
.fb-toggle { border: 0; background: none; font: inherit; font-weight: 600; font-size: 1.05rem; cursor: pointer; padding: 0; }
.fb-chev { transition: transform .2s; transform: rotate(-90deg); }
.fb-chev.open { transform: none; }
.fb-occ { color: var(--hb-muted); font-size: .85rem; }
.fb-occ b { color: var(--hb-ink); font-size: 1rem; }
.fb-views { display: inline-flex; background: #F3F2FB; border-radius: 12px; padding: 3px; gap: 2px; }
.fb-views button { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; font: inherit; font-size: .8rem; font-weight: 500; color: var(--hb-muted); padding: 6px 12px; border-radius: 9px; cursor: pointer; transition: background .15s, color .15s; }
.fb-views button:hover { color: var(--hb-ink); }
.fb-views button.on { background: #fff; color: var(--hb-primary); box-shadow: 0 1px 4px rgba(30, 27, 75, .12); }
.fb-group-pick { max-width: 200px; }
.fb-bar { display: flex; height: 8px; border-radius: 999px; overflow: hidden; margin: 16px 0 4px; background: #EEF0F3; gap: 2px; }
.fb-seg { min-width: 4px; }
.fb-seg.vacant, .fb-dot.vacant { background: var(--fb-free); }
.fb-seg.dirty, .fb-dot.dirty { background: var(--fb-dirty); }
.fb-seg.occupied, .fb-dot.occupied { background: var(--fb-in); }
.fb-seg.dueout, .fb-dot.dueout { background: var(--fb-out); }
.fb-seg.ooo, .fb-dot.ooo { background: var(--fb-ooo); }
.fb-seg.closed, .fb-dot.closed { background: var(--fb-closed); }
.fb-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
.fb-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 4px; }
.fb-chip { display: inline-flex; align-items: center; border: 1px solid #E4E2F5; background: #fff; border-radius: 999px; padding: 5px 12px; font: inherit; font-size: .8rem; cursor: pointer; color: var(--hb-ink); transition: border-color .15s, background .15s; }
.fb-chip:hover { border-color: var(--hb-primary-2); }
.fb-chip b { margin-left: 6px; }
.fb-chip.on { background: var(--hb-primary); border-color: var(--hb-primary); color: #fff; }
.fb-chip.on .fb-dot { box-shadow: 0 0 0 2px #fff; }
.fb-group { margin-top: 18px; }
/* Each floor / room type is its own soft card that folds (remembered per browser). */
.fb-group-card { margin-top: 14px; border: 1px solid #EDECF7; border-radius: 16px; background: #FBFBFE; padding: 4px 14px 14px; }
.fb-group-card.folded { padding-bottom: 4px; background: #fff; }
.fb-group-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 6px 14px; margin: 0 -14px 10px; padding: 10px 14px; width: calc(100% + 28px);
  border: 0; background: none; font: inherit; color: var(--hb-ink); text-align: left; cursor: pointer; border-radius: 16px; }
.fb-group-card.folded .fb-group-head { margin-bottom: 0; }
.fb-group-head:hover strong { color: var(--hb-primary); }
.fb-group-head:focus-visible { outline: 2px solid var(--hb-primary-2); outline-offset: -2px; }
.fb-group-head .fb-chev { color: var(--hb-muted); margin-right: -6px; }
.fb-group-head strong { font-size: .95rem; font-weight: 600; transition: color .15s; }
.fb-foldall { display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; font: inherit; font-size: .8rem; color: var(--hb-muted); cursor: pointer; padding: 6px 8px; border-radius: 9px; }
.fb-foldall:hover { color: var(--hb-primary); background: #F3F2FB; }
.fb-group-meta { display: inline-flex; flex-wrap: wrap; gap: 4px 12px; color: var(--hb-muted); font-size: .78rem; }
.fb-group-meta .fb-dot { width: 6px; height: 6px; margin-right: 4px; }
.fb-mini { flex: 1 1 80px; max-width: 160px; height: 4px; border-radius: 999px; background: #EEF0F3; overflow: hidden; margin-left: auto; }
.fb-mini > span { display: block; height: 100%; background: var(--fb-in); border-radius: inherit; }
.fb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 10px; }
/* 3D tiles, kept calm: white face with a soft top light, a thin grey edge underneath and a light floor shadow; the status
   colour stays on the left bar, icon and text only. Hover lifts slightly, press pushes the tile in. */
.fb-tile { --c: var(--fb-free); position: relative; display: flex; flex-direction: column; align-items: stretch; gap: 3px; text-align: left; min-height: 92px; padding: 10px 12px 10px 15px;
  background: linear-gradient(180deg, #fff 0%, #FAFAFC 100%); border: 1px solid #E8E8EF; border-radius: 14px; cursor: pointer; font: inherit; color: var(--hb-ink); overflow: hidden;
  box-shadow: inset 0 1px 0 #fff, 0 2px 0 #E3E3EC, 0 6px 12px -6px rgba(30, 27, 75, .14);
  margin-bottom: 3px; transition: transform .15s ease, box-shadow .15s ease, border-color .15s; }
.fb-tile::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--c); }
.fb-tile:hover, .fb-tile:focus-visible { transform: translateY(-2px); border-color: #DCDCE6; outline: none;
  box-shadow: inset 0 1px 0 #fff, 0 3px 0 #E0E0EA, 0 12px 18px -8px rgba(30, 27, 75, .18); }
.fb-tile:focus-visible { box-shadow: 0 0 0 2px var(--hb-primary), 0 3px 0 #E0E0EA; }
.fb-tile:active { transform: translateY(1px); box-shadow: inset 0 1px 0 #fff, 0 1px 0 #E3E3EC, 0 2px 4px -2px rgba(30, 27, 75, .12); }
@media (prefers-reduced-motion: reduce) { .fb-tile, .fb-tile:hover, .fb-tile:active { transition: none; transform: none; } }
.fb-tile.dirty { --c: var(--fb-dirty); }
.fb-tile.occupied { --c: var(--fb-in); }
.fb-tile.dueout { --c: var(--fb-out); }
.fb-tile.ooo { --c: var(--fb-ooo); }
.fb-tile.closed { --c: var(--fb-closed); background: repeating-linear-gradient(135deg, #fff 0 8px, #F4F5F7 8px 16px); }
.fb-tile-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.fb-no { font-size: 1.2rem; font-weight: 700; letter-spacing: -.01em; }
.fb-ico { color: var(--c); }
.fb-state { font-size: .74rem; font-weight: 600; color: var(--c); filter: brightness(.8); }
.fb-guest { display: flex; align-items: center; gap: 6px; font-size: .78rem; min-width: 0; }
.fb-guest > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fb-av { flex: none; display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--c); color: #fff; font-size: .6rem; font-style: normal; font-weight: 700; }
.fb-sub { font-size: .72rem; color: var(--hb-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fb-badges { display: flex; flex-wrap: wrap; gap: 4px; margin-top: auto; padding-top: 3px; }
.fb-badge { font-size: .64rem; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: #F1F2F6; color: #374151; }
.fb-badge.due { background: #FFE8ED; color: #B4234A; }
.fb-badge.note { background: #FFF6E0; color: #78350F; }
.fb-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 18px; padding-top: 12px; border-top: 1px solid #F0EFF8; align-items: center; }
.fb-key { font-size: .75rem; color: var(--hb-muted); }
.fb-legend-note { color: var(--hb-muted); font-size: .75rem; margin-left: auto; }
@media (max-width: 600px) {
  .fb-grid { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
  .fb-views { width: 100%; } .fb-views button { flex: 1; justify-content: center; gap: 4px; padding: 6px 4px; font-size: .74rem; white-space: nowrap; }
  .fb-group-pick { max-width: 100%; flex: 1 1 100%; }
  .fb-mini { display: none; }
}

/* Walk-in: price running for the chosen room type / plan. */
.hb-rate-now { flex: 1 1 100%; font-size: .8rem; color: var(--hb-ink); background: #F5F4FF; border-radius: 8px; padding: 4px 10px; margin-bottom: 6px; }

/* Room board card styles (switch next to By floor / By room type; remembered per page). Tiles are compact by default; every
   style keeps number, status, guest, nights left / room type and badges (circles shorten the guest to initials + name). */
.fb-styles button { padding: 6px 8px; }
.fb-grid.fb-s-tile { grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 8px; }
.fb-s-tile .fb-tile { min-height: 70px; padding: 7px 9px 7px 12px; gap: 1px; border-radius: 12px; }
.fb-s-tile .fb-no, .fb-s-square .fb-no { font-size: 1.02rem; }
.fb-grid .fb-state { font-size: .68rem; }
.fb-grid .fb-guest { font-size: .72rem; gap: 4px; }
.fb-grid .fb-sub { font-size: .66rem; }
.fb-grid .fb-av { width: 17px; height: 17px; font-size: .52rem; }
.fb-grid .fb-badges { padding-top: 1px; gap: 3px; }
.fb-grid .fb-badge { font-size: .6rem; padding: 0 6px; }
.fb-grid .fb-ico { font-size: 1.05rem; }

.fb-grid.fb-s-square { grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 8px; }
.fb-s-square .fb-tile { min-height: 112px; padding: 8px 8px 8px 11px; gap: 1px; border-radius: 10px; }
.fb-grid .fb-tile { justify-content: flex-start; }

.fb-grid.fb-s-circle { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px 8px; }
.fb-grid.fb-s-circle .fb-tile { aspect-ratio: 1 / 1; min-height: 0; border-radius: 50%; padding: 12px 10px; align-items: center; justify-content: center; text-align: center; gap: 0;
  border: 3px solid color-mix(in srgb, var(--c) 70%, #fff); }
.fb-s-circle .fb-tile::before { display: none; }
.fb-s-circle .fb-tile-top { justify-content: center; gap: 3px; }
.fb-s-circle .fb-no { font-size: 1rem; }
.fb-s-circle .fb-ico { font-size: .9rem; }
.fb-s-circle .fb-guest { justify-content: center; max-width: 100%; }
.fb-s-circle .fb-sub, .fb-s-circle .fb-state { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fb-s-circle .fb-badges { justify-content: center; margin-top: 2px; }

.fb-grid.fb-s-list { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 6px; }
.fb-grid.fb-s-list .fb-tile { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: flex-start; min-height: 0; padding: 6px 10px 6px 13px; gap: 4px 10px; border-radius: 10px; }
.fb-s-list .fb-tile-top { flex-direction: row-reverse; gap: 6px; }
.fb-s-list .fb-no { font-size: .98rem; min-width: 38px; }
.fb-s-list .fb-guest { flex: 1 1 90px; }
.fb-s-list .fb-badges { margin: 0 0 0 auto; padding: 0; }
@media (max-width: 600px) {
  .fb-grid.fb-s-tile { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
  .fb-grid.fb-s-square { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); }
  .fb-grid.fb-s-circle { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
  .fb-grid.fb-s-list { grid-template-columns: 1fr; }
  .fb-styles { width: auto; }
}
/* Room popup (click a room on the board): number badge + status pill on top, the stay as a small card, housekeeping as
   three option cards; status colours come from the board palette, kept to tints. */
.fb-dlg .mud-dialog-title { padding: 20px 56px 8px 22px; }
.fb-dlg .mud-dialog-content { padding: 6px 22px 4px; }
.fb-dlg .mud-dialog-actions { padding: 12px 22px 18px; gap: 6px; }
.fb-dlg-head { --c: var(--fb-free); display: flex; align-items: center; gap: 14px; }
.fb-dlg-head.dirty, .fb-dlg-stay.dirty, .fb-hk-opt.dirty { --c: var(--fb-dirty); }
.fb-dlg-head.occupied, .fb-dlg-stay.occupied { --c: var(--fb-in); }
.fb-dlg-head.dueout, .fb-dlg-stay.dueout { --c: var(--fb-out); }
.fb-dlg-head.ooo, .fb-hk-opt.ooo { --c: var(--fb-ooo); }
.fb-dlg-head.closed { --c: var(--fb-closed); }
.fb-hk-opt.vacant { --c: var(--fb-free); }
.fb-dlg-no { flex: none; display: grid; place-items: center; min-width: 58px; height: 58px; padding: 0 10px; border-radius: 16px; font-size: 1.35rem; font-weight: 700; letter-spacing: -.02em;
  color: color-mix(in srgb, var(--c) 80%, #1E1B4B); background: color-mix(in srgb, var(--c) 12%, #fff); }
.fb-dlg-title { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.fb-dlg-type { font-size: 1.05rem; font-weight: 600; color: var(--hb-ink); line-height: 1.2; }
.fb-dlg-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-weight: 400; }
.fb-pill { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px 2px 7px; border-radius: 999px; font-size: .75rem; font-weight: 500;
  color: color-mix(in srgb, var(--c) 78%, #1E1B4B); background: color-mix(in srgb, var(--c) 11%, #fff); }
.fb-pill .mud-icon-root { font-size: .95rem; }
.fb-dlg-floor { display: inline-flex; align-items: center; gap: 4px; font-size: .78rem; color: var(--hb-muted); }
.fb-dlg-floor .mud-icon-root { font-size: .95rem; }
.fb-dlg-stay { --c: var(--fb-in); display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: #F7F7FC; border: 1px solid #EEEDF8; }
.fb-dlg-stay .fb-av { width: 36px; height: 36px; font-size: .8rem; }
.fb-dlg-stay-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.fb-dlg-stay-text b { font-weight: 600; font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fb-dlg-stay-text span { font-size: .78rem; color: var(--hb-muted); }
.fb-dlg-stay .fb-badge { flex: none; font-size: .7rem; padding: 2px 8px; }
.fb-dlg-cta { border-radius: 12px !important; text-transform: none !important; font-weight: 500 !important; padding: 9px 16px !important; box-shadow: none !important; }
.fb-more { display: inline-flex; align-items: center; gap: 4px; margin-top: 8px; padding: 4px 2px; border: 0; background: none; font: inherit; font-size: .8rem; color: var(--hb-muted); cursor: pointer; }
.fb-more:hover, .fb-more:focus-visible { color: var(--hb-primary-2); }
.fb-dlg-label { margin: 20px 0 8px; font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--hb-muted); }
.fb-hk { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.fb-hk-opt { display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 2px; padding: 10px 12px; border-radius: 14px; border: 1px solid #E8E7F3; background: #fff;
  font: inherit; text-align: left; color: var(--hb-ink); cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s; }
.fb-hk-opt .mud-icon-root { color: var(--c); margin-bottom: 4px; }
.fb-hk-opt b { font-size: .85rem; font-weight: 600; }
.fb-hk-opt span { font-size: .7rem; color: var(--hb-muted); line-height: 1.3; }
.fb-hk-opt:hover { border-color: color-mix(in srgb, var(--c) 45%, #fff); }
.fb-hk-opt:focus-visible { outline: 2px solid var(--hb-primary-2); outline-offset: 1px; }
.fb-hk-opt.on { border-color: var(--c); background: color-mix(in srgb, var(--c) 7%, #fff); box-shadow: 0 0 0 1px var(--c) inset; }
@media (max-width: 600px) {
  .fb-dlg .mud-dialog-title { padding: 16px 52px 6px 16px; }
  .fb-dlg .mud-dialog-content { padding: 4px 16px; }
  .fb-dlg .mud-dialog-actions { padding: 10px 16px 14px; }
  .fb-dlg-no { min-width: 50px; height: 50px; font-size: 1.15rem; }
  .fb-hk { gap: 6px; }
  .fb-hk-opt { padding: 9px 9px; }
  .fb-hk-opt span { display: none; }
  .fb-group-card { padding: 2px 10px 10px; }
  .fb-group-head { margin: 0 -10px 8px; padding: 10px; width: calc(100% + 20px); }
}

/* Dashboard: white KPI cards with a tinted icon chip (no heavy colour blocks), next 7 nights chart, "Needs attention"
   list and booking sources donut. */
.db-kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin-bottom: 18px; }
.db-kpi { display: flex; align-items: flex-start; gap: 12px; padding: 16px 16px 14px; background: #fff; border: 1px solid #EEEDF7; border-radius: 18px;
  color: var(--hb-ink); text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s; }
.db-kpi:hover { border-color: #DDD9F7; box-shadow: 0 8px 22px rgba(76, 64, 190, .08); transform: translateY(-1px); }
.db-kpi-body { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.db-kpi small { font-size: .76rem; color: var(--hb-muted); }
.db-kpi strong { font-size: 1.45rem; font-weight: 600; letter-spacing: -.01em; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.db-kpi em { font-style: normal; font-size: .72rem; color: var(--hb-muted); margin-top: 1px; }
.db-ico { --t: #6C5CE7; flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: var(--t);
  background: color-mix(in srgb, var(--t) 11%, #fff); }
.db-ico.violet { --t: #6C5CE7; } .db-ico.teal { --t: #0EA5A4; } .db-ico.pink { --t: #E5486C; } .db-ico.blue { --t: #4F6BED; }
.db-ico.green { --t: #16A34A; } .db-ico.amber { --t: #D97706; }
.db-meter { display: block; height: 5px; border-radius: 999px; background: #EEF0F6; margin-top: 8px; overflow: hidden; }
.db-meter > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--hb-primary-2), var(--hb-primary)); }
.db-row { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.db-side { display: grid; gap: 16px; }
.db-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.db-card-head h3 { margin: 0; font-size: 1rem; font-weight: 600; }
.db-card-head small { color: var(--hb-muted); font-size: .76rem; }
.db-bars { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; height: 250px; align-items: stretch; }
.db-bar-col { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.db-bar-val { font-size: .74rem; font-weight: 600; color: var(--hb-ink); }
.db-bar-track { flex: 1; width: 100%; max-width: 46px; display: flex; align-items: flex-end; background: #F4F3FB; border-radius: 12px; overflow: hidden; }
.db-bar { display: block; width: 100%; min-height: 3px; border-radius: 12px; background: linear-gradient(180deg, #A99DF8, #7C6CF0); transition: height .3s ease; }
.db-bar-col.today .db-bar { background: linear-gradient(180deg, #8B7CF6, #5B4BDB); }
.db-bar-col.today .db-bar-track { box-shadow: 0 0 0 2px #E2DDFB inset; }
.db-bar-day { display: flex; flex-direction: column; align-items: center; font-size: .72rem; color: var(--hb-muted); line-height: 1.2; }
.db-bar-day b { font-size: .9rem; color: var(--hb-ink); font-weight: 600; }
.db-bar-col.today .db-bar-day { color: var(--hb-primary); }
.db-bar-col.we .db-bar-track { background: #EFEDF9; }
@media (prefers-reduced-motion: reduce) { .db-bar { transition: none; } }
.db-alert-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.db-alert { --t: #6C5CE7; display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px; text-decoration: none; color: var(--hb-ink);
  background: color-mix(in srgb, var(--t) 6%, #fff); border: 1px solid color-mix(in srgb, var(--t) 14%, #fff); transition: border-color .15s; }
.db-alert:hover { border-color: color-mix(in srgb, var(--t) 40%, #fff); }
.db-alert .mud-icon-root { color: var(--t); flex: none; }
.db-alert > span { flex: 1; min-width: 0; font-size: .82rem; display: flex; flex-direction: column; }
.db-alert > span b { font-weight: 600; }
.db-alert small { color: var(--hb-muted); font-size: .72rem; }
.db-alert em { font-style: normal; font-weight: 600; font-size: .85rem; color: color-mix(in srgb, var(--t) 75%, #1E1B4B); white-space: nowrap; }
.db-alert.amber { --t: #D97706; } .db-alert.rose { --t: #E5486C; } .db-alert.grey { --t: #6B7280; } .db-alert.violet { --t: #6C5CE7; }
.db-clear { display: flex; align-items: center; gap: 8px; font-size: .85rem; color: #15803D; background: #F0FAF3; border-radius: 12px; padding: 10px 12px; }
.db-clear.muted { color: var(--hb-muted); background: #F7F7FB; }
.db-donut-wrap { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.db-donut { position: relative; flex: none; width: 128px; height: 128px; border-radius: 50%; display: grid; place-items: center; }
.db-donut > span { width: 84px; height: 84px; border-radius: 50%; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.db-donut strong { font-size: 1.3rem; font-weight: 600; line-height: 1; }
.db-donut small { font-size: .68rem; color: var(--hb-muted); }
.db-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; flex: 1; min-width: 160px; }
.db-legend li { display: grid; grid-template-columns: 10px 1fr auto; column-gap: 8px; align-items: center; font-size: .82rem; }
.db-legend i { width: 10px; height: 10px; border-radius: 3px; }
.db-legend b { font-weight: 600; }
.db-legend small { grid-column: 2 / 4; color: var(--hb-muted); font-size: .7rem; }
@media (max-width: 960px) { .db-row { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
  .db-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .db-kpi { flex-direction: column; gap: 8px; padding: 12px; }
  .db-ico { width: 34px; height: 34px; border-radius: 10px; }
  .db-kpi strong { font-size: 1.15rem; }
  .db-bars { gap: 6px; height: 200px; }
  .db-bar-val { font-size: .64rem; }
}

/* Figure strip (KpiMarquee): one compact row of light, tinted cards with a solid icon chip and a faint drawing behind; it
   scrolls slowly when the cards do not fit (js/marquee.js sets .static when they do), pauses on hover, focus and touch. */
.kq { --gap: 12px; position: relative; overflow: hidden; margin: 0 0 18px; padding: 2px 0 4px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 28px, #000 calc(100% - 28px), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 28px, #000 calc(100% - 28px), transparent); }
.kq-track { display: flex; width: max-content; animation: kq-scroll var(--kq-dur, 40s) linear infinite; }
.kq-set { display: flex; gap: var(--gap); padding-right: var(--gap); }
@keyframes kq-scroll { to { transform: translateX(-50%); } }
.kq:hover .kq-track, .kq:focus-within .kq-track, .kq.paused .kq-track { animation-play-state: paused; }
.kq.static { -webkit-mask-image: none; mask-image: none; }
.kq.static .kq-track { animation: none; width: 100%; }
.kq.static .kq-set { width: 100%; padding-right: 0; }
.kq.static .kq-set + .kq-set { display: none; }
.kq.static .kq-card { flex: 1 1 0; }
.kq-card { --t: #6C5CE7; --t2: #8B7CF6; position: relative; isolation: isolate; overflow: hidden; flex: none; width: 212px; min-width: 196px;
  display: flex; align-items: flex-start; gap: 11px; padding: 13px 14px 12px; border-radius: 16px; text-decoration: none; color: var(--hb-ink);
  background: linear-gradient(140deg, color-mix(in srgb, var(--t) 12%, #fff) 0%, #fff 72%);
  border: 1px solid color-mix(in srgb, var(--t) 17%, #fff); transition: border-color .15s, box-shadow .15s; }
.kq-card:hover { border-color: color-mix(in srgb, var(--t) 40%, #fff); box-shadow: 0 6px 18px color-mix(in srgb, var(--t) 14%, transparent); }
.kq-card:focus-visible { outline: 2px solid var(--t); outline-offset: 2px; }
.kq-art { position: absolute; right: -6px; top: -4px; width: 140px; height: 90px; color: var(--t); opacity: .09; z-index: -1; pointer-events: none; }
.kq-ico { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; color: #fff;
  background: linear-gradient(135deg, var(--t2), var(--t)); box-shadow: 0 4px 10px color-mix(in srgb, var(--t) 28%, transparent); }
.kq-body { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.kq-body small { font-size: .74rem; color: var(--hb-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kq-body strong { font-size: 1.32rem; font-weight: 650; letter-spacing: -.015em; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kq-body em { font-style: normal; font-size: .7rem; color: var(--hb-muted); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.kq-meter { display: block; height: 4px; border-radius: 999px; background: color-mix(in srgb, var(--t) 12%, #fff); margin-top: 7px; overflow: hidden; }
.kq-meter > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--t2), var(--t)); }
.tone-violet { --t: #6C5CE7; --t2: #9C8FF7; } .tone-teal { --t: #0E9F9E; --t2: #3CCFC4; } .tone-pink { --t: #E0457B; --t2: #F58AB0; }
.tone-blue { --t: #3E63DD; --t2: #7B9BF5; } .tone-green { --t: #16A34A; --t2: #4ADE80; } .tone-amber { --t: #D97706; --t2: #FBBF24; }
.tone-slate { --t: #64748B; --t2: #94A3B8; }
@media (prefers-reduced-motion: reduce) {
  .kq { overflow-x: auto; -webkit-mask-image: none; mask-image: none; scroll-snap-type: x proximity; scrollbar-width: thin; }
  .kq-track { animation: none; }
  .kq-set + .kq-set { display: none; }
  .kq-card { scroll-snap-align: start; }
}
@media (max-width: 600px) {
  .kq { margin-bottom: 14px; --gap: 10px; }
  .kq-card { width: 176px; min-width: 168px; padding: 11px 12px 10px; gap: 9px; }
  .kq-ico { width: 32px; height: 32px; border-radius: 10px; }
  .kq-body strong { font-size: 1.12rem; }
}

/* Front office dashboard sections and module dashboards (ModuleDashboardView). */
.db-section { margin-top: 22px; }
.db-section-head { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; }
.db-section-head h2 { margin: 0; font-size: 1.05rem; font-weight: 600; }
.db-section-head .db-count { font-size: .75rem; font-weight: 600; padding: 2px 9px; border-radius: 999px; color: var(--t, #6C5CE7); background: color-mix(in srgb, var(--t, #6C5CE7) 11%, #fff); }
.db-section-head small { color: var(--hb-muted); font-size: .78rem; }
.db-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.db-split > .db-section { margin-top: 0; min-width: 0; }
.db-bottom { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; margin-top: 22px; }
.db-bars { grid-template-columns: repeat(var(--n, 7), 1fr); }
.db-alert.teal { --t: #0E9F9E; } .db-alert.pink { --t: #E0457B; } .db-alert.blue { --t: #3E63DD; } .db-alert.green { --t: #16A34A; } .db-alert.slate { --t: #64748B; }
.md-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; align-items: start; }
.md-chart { grid-column: 1 / -1; }
.md-list-head { display: flex; align-items: center; gap: 10px; }
.md-list-ico { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; color: var(--hb-primary); background: #F1EFFE; flex: none; }
.md-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--t); flex: none; }
div.db-alert { cursor: default; }

/* Card styles of the figure row (KpiMarquee Variant): soft (default, above), outline and solid. */
.kq-outline .kq-card { background: #fff; border-color: #ECEBF5; box-shadow: inset 4px 0 0 var(--t); }
.kq-outline .kq-card:hover { border-color: color-mix(in srgb, var(--t) 35%, #fff); }
.kq-outline .kq-ico { color: var(--t); background: color-mix(in srgb, var(--t) 12%, #fff); box-shadow: none; }
.kq-outline .kq-art { opacity: .06; }
.kq-solid .kq-card { color: #fff; border-color: transparent; background: linear-gradient(135deg, var(--t2), var(--t)); }
.kq-solid .kq-card:hover { box-shadow: 0 6px 16px color-mix(in srgb, var(--t) 30%, transparent); }
.kq-solid .kq-body small, .kq-solid .kq-body em { color: rgba(255, 255, 255, .85); }
.kq-solid .kq-ico { background: rgba(255, 255, 255, .22); box-shadow: none; }
.kq-solid .kq-art { color: #fff; opacity: .16; }
.kq-solid .kq-meter { background: rgba(255, 255, 255, .3); }
.kq-solid .kq-meter > span { background: #fff; }

/* Module looks (ModuleDashboardView): one colour pair per module drives the banner, chart and list icons; the banner has its
   own drawing. Restaurant warm coral, engine indigo, website teal, accounts green, reports violet / pink. */
.md { --a1: #6C5CE7; --a2: #A29BFE; }
.md-restaurant { --a1: #E8590C; --a2: #FDBA74; }
.md-engine { --a1: #3B5BDB; --a2: #91A7FF; }
.md-website { --a1: #0C8599; --a2: #66D9E8; }
.md-accounts { --a1: #2B8A3E; --a2: #8CE99A; }
.md-reports { --a1: #9C36B5; --a2: #F783AC; }
.md-hero { position: relative; overflow: hidden; isolation: isolate; margin: 0 0 16px; padding: 16px 18px; border-radius: 20px;
  background: linear-gradient(120deg, color-mix(in srgb, var(--a2) 26%, #fff) 0%, color-mix(in srgb, var(--a1) 8%, #fff) 55%, #fff 100%);
  border: 1px solid color-mix(in srgb, var(--a1) 14%, #fff); }
.md-hero-art { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 240px; height: 120px; color: var(--a1); opacity: .16; z-index: -1; pointer-events: none; }
.md-hero-row { position: relative; }
.md .md-hero .hb-page-icon { background: linear-gradient(135deg, var(--a2), var(--a1)); box-shadow: 0 6px 14px color-mix(in srgb, var(--a1) 28%, transparent); }
.md .db-card-head h3 { color: color-mix(in srgb, var(--a1) 55%, var(--hb-ink)); }
.md .md-list-ico { color: var(--a1); background: color-mix(in srgb, var(--a1) 11%, #fff); }
.md .db-bar { background: linear-gradient(180deg, var(--a2), var(--a1)); }
.md .db-bar-track { background: color-mix(in srgb, var(--a1) 6%, #fff); }
.md .db-bar-col.today .db-bar { background: linear-gradient(180deg, var(--a1), color-mix(in srgb, var(--a1) 70%, #000)); }
.md .db-bar-col.today .db-bar-track { box-shadow: 0 0 0 2px color-mix(in srgb, var(--a1) 22%, #fff) inset; }
.md .db-bar-col.today .db-bar-day, .md .db-bar-day.today { color: var(--a1); }
.md-restaurant .db-bar-track, .md-restaurant .db-bar { border-radius: 999px; }
.md-engine .db-bar-track { max-width: 26px; border-radius: 8px; }
.md-engine .db-bar { border-radius: 8px; }
.md-accounts .db-bar-track { border-radius: 8px 8px 4px 4px; }
.md-accounts .db-bar { border-radius: 8px 8px 4px 4px; }
/* Line chart (website, reports): area under a line, a dot and value per day. */
.md-line { display: flex; flex-direction: column; gap: 8px; color: var(--a1); }
.md-line-plot { position: relative; height: 210px; margin: 18px 0 0; }
.md-line-plot svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.md-pt { position: absolute; width: 10px; height: 10px; margin: 0 0 -5px -5px; border-radius: 50%; background: #fff; border: 2.5px solid var(--a1); }
.md-pt i { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); font-style: normal; font-size: .66rem; font-weight: 600; color: var(--hb-ink); white-space: nowrap; }
.md-pt.on { width: 14px; height: 14px; margin: 0 0 -7px -7px; background: var(--a1); box-shadow: 0 0 0 4px color-mix(in srgb, var(--a1) 20%, transparent); }
.md-line-days { display: grid; grid-template-columns: repeat(var(--n), 1fr); }
.md-line-days .db-bar-day i { font-style: normal; }
@media (max-width: 600px) {
  .md-hero { padding: 12px; border-radius: 16px; }
  .md-hero-art { width: 150px; height: 76px; right: -18px; top: 18px; transform: none; }
  .md-line-plot { height: 170px; }
  .md-line[style*="--n:14"] .md-pt i { display: none; }
  .md-line[style*="--n:14"] .md-pt.on i { display: block; }
  .md-line[style*="--n:14"] .db-bar-day i { display: none; }
  .md-line[style*="--n:14"] .db-bar-day b { font-size: .72rem; }
}
.db-bar-day i { font-style: normal; }
@media (min-width: 1200px) { .md-chart { grid-column: span 2; } }
@media (max-width: 1200px) { .db-bottom { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .db-bottom > .db-chart { grid-column: 1 / -1; } }
@media (max-width: 960px) { .db-split { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .db-bottom { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
  .md-grid { grid-template-columns: 1fr; }
  .db-bars[style*="--n:14"] { gap: 3px; }
  .db-bars[style*="--n:14"] .db-bar-val { font-size: .56rem; }
  .db-bars[style*="--n:14"] { height: 180px; }
  .db-bars[style*="--n:14"] .db-bar-day i { display: none; }
  .db-bars[style*="--n:14"] .db-bar-day b { font-size: .72rem; }
}

/* Reports menu registers: period chips + dates + search, a light table with sticky header and totals, print layout. */
.rpt-filter { display: flex; flex-direction: column; gap: 12px; }
.rpt-quick { display: flex; flex-wrap: wrap; gap: 6px; }
.rpt-quick button { border: 1px solid #E4E2F5; background: #fff; border-radius: 999px; padding: 5px 12px; font: inherit; font-size: .8rem; color: var(--hb-ink); cursor: pointer;
  transition: border-color .15s, background .15s, color .15s; }
.rpt-quick button:hover { border-color: var(--hb-primary-2); }
.rpt-quick button.on { background: #F1EFFE; border-color: var(--hb-primary-2); color: var(--hb-primary); font-weight: 500; }
.rpt-fields { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.rpt-fields .mud-input-control { margin: 0 !important; max-width: 200px; }
.rpt-fields .rpt-search { max-width: 320px; flex: 1 1 220px; }
.rpt-card { padding: 16px 18px !important; }
.rpt-meta { display: flex; align-items: center; gap: 10px; color: var(--hb-muted); font-size: .82rem; margin-bottom: 10px; }
.rpt-meta b { color: var(--hb-ink); }
.rpt-scroll { overflow: auto; max-height: 70vh; border: 1px solid #EEEDF7; border-radius: 14px; }
.rpt-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .82rem; }
.rpt-table th { position: sticky; top: 0; z-index: 1; background: #F7F6FD; color: #4B4970; font-weight: 600; font-size: .74rem; text-align: left; padding: 9px 12px;
  border-bottom: 1px solid #EAE8F6; white-space: nowrap; }
.rpt-table td { padding: 8px 12px; border-bottom: 1px solid #F2F1F8; white-space: nowrap; max-width: 280px; overflow: hidden; text-overflow: ellipsis; }
.rpt-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.rpt-table tbody tr:nth-child(even) td { background: #FCFCFE; }
.rpt-table tbody tr.link { cursor: pointer; }
.rpt-table tbody tr.link:hover td { background: #F4F2FE; }
.rpt-table tfoot td { position: sticky; bottom: 0; background: #F7F6FD; font-weight: 600; border-top: 1px solid #EAE8F6; border-bottom: 0; }
.rpt-print-head { display: none; }
@media (max-width: 600px) {
  .rpt-fields .mud-input-control { max-width: none; flex: 1 1 140px; }
  .rpt-fields .rpt-search { max-width: none; flex-basis: 100%; }
  .rpt-card { padding: 12px !important; }
}
@media print {
  @page { size: landscape; margin: 10mm; }
  body, .hb-main { background: #fff !important; }
  .hb-sidebar, .hb-topbar, .hb-backdrop, .rpt-filter, .hb-page-actions, .hb-page-head, .rpt-noprint, .mud-snackbar-provider { display: none !important; }
  .hb-shell { display: block !important; }
  .hb-content, .hb-main { padding: 0 !important; margin: 0 !important; }
  .rpt-print-head { display: flex; flex-direction: column; gap: 2px; margin-bottom: 10px; }
  .rpt-print-head strong { font-size: 14pt; }
  .rpt-print-head small { color: #555; }
  .rpt-card { box-shadow: none !important; border: 0 !important; padding: 0 !important; }
  .rpt-scroll { max-height: none; overflow: visible; border: 0; }
  .rpt-table { font-size: 8.5pt; }
  .rpt-table th { position: static; background: #eee !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .rpt-table td { max-width: none; white-space: normal; padding: 4px 6px; }
  .rpt-table tfoot td { position: static; }
  .rpt-table tr { break-inside: avoid; }
}
.rpt-fields .mud-picker { flex: 0 1 200px; }

/* Guest details form (walk-in and check-in): segmented tabs with a red dot on a tab that needs a fix, two-column fields,
   quick-pick chips, stay summary. */
.gd-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; background: #F3F2FB; border-radius: 14px; padding: 4px; }
.gd-tab { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; background: none; font: inherit; font-size: .82rem;
  font-weight: 500; color: var(--hb-muted); padding: 8px 6px; border-radius: 10px; cursor: pointer; transition: background .15s, color .15s; white-space: nowrap; }
.gd-tab:hover { color: var(--hb-ink); }
.gd-tab.on { background: #fff; color: var(--hb-primary); box-shadow: 0 1px 4px rgba(30, 27, 75, .12); }
.gd-tab:focus-visible { outline: 2px solid var(--hb-primary-2); outline-offset: 1px; }
.gd-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #E5484D; box-shadow: 0 0 0 2px #fff; vertical-align: middle; }
.gd-tab .gd-dot { margin-left: -2px; flex: none; }
.gd-body { padding-top: 14px; }
.gd-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 12px; align-items: start; }
.gd-grid .mud-input-control { margin-top: 4px !important; }
.gd-wide { grid-column: 1 / -1; }
.gd-title { max-width: 140px; }
.gd-picks { display: flex; flex-wrap: wrap; gap: 5px; margin: 6px 0 4px; }
.gd-picks button { border: 1px solid #E6E4F4; background: #fff; border-radius: 999px; padding: 2px 10px; font: inherit; font-size: .74rem; color: var(--hb-muted); cursor: pointer;
  transition: border-color .15s, color .15s, background .15s; }
.gd-picks button:hover { border-color: var(--hb-primary-2); color: var(--hb-ink); }
.gd-picks button.on { background: #F1EFFE; border-color: var(--hb-primary-2); color: var(--hb-primary); }
.gd-summary { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: #F8F7FD; font-size: .8rem; color: var(--hb-ink); }
.gd-summary span { display: inline-flex; align-items: center; gap: 5px; }
.gd-summary .mud-icon-root { color: var(--hb-primary-2); font-size: 1rem; }
.gd-section { margin-top: 14px; padding-top: 12px; border-top: 1px dashed #E8E6F4; }
.gd-section-title { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 600; color: var(--hb-ink); margin-bottom: 4px; }
.gd-section-title .mud-icon-root { color: var(--hb-primary-2); }
.gd-onfile { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .84rem; padding: 10px 12px; border-radius: 12px; background: #F0FAF3; color: #14532D; }
.gd-onfile small { flex-basis: 100%; color: var(--hb-muted); font-size: .72rem; }
.gd-scan { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.gd-scan small { color: var(--hb-muted); font-size: .74rem; }
.gd-foot { margin-top: 12px; font-size: .74rem; color: var(--hb-muted); }
.gd-foot .gd-dot { box-shadow: none; margin-right: 2px; }
.gd-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.gd-progress { font-size: .74rem; color: var(--hb-muted); background: #F3F2FB; border-radius: 999px; padding: 3px 10px; }
@media (max-width: 600px) {
  .gd-tabs { grid-template-columns: repeat(2, 1fr); }
  .gd-grid { grid-template-columns: 1fr; }
  .gd-title { max-width: none; }
}

/* Walk-in: price per room per night (prefilled with the rate; violet when changed at the desk). */
.nb-price { max-width: 190px; }
.nb-price.changed .mud-input-outlined-border { border-color: var(--hb-primary-2) !important; }
.nb-price.changed input { color: var(--hb-primary); font-weight: 600; }
.nb-price.changed .mud-input-helper-text { color: var(--hb-primary); }
.nb-desk-tag { display: inline-block; margin-left: 6px; font-size: .66rem; font-weight: 600; color: var(--hb-primary); background: #F1EFFE; border-radius: 999px; padding: 1px 8px; }
.nb-was { margin-right: 6px; font-size: .78rem; }
.hb-search-spacer { flex: 1; }

/* Staff access levels (Admin → Staff): numbered option cards on Add user, a level picker per staff login. */
.st-levels { display: grid; gap: 6px; margin: 8px 0 4px; }
.st-level { display: flex; align-items: flex-start; gap: 10px; text-align: left; padding: 9px 12px; border-radius: 12px; border: 1px solid #E8E7F3; background: #fff;
  font: inherit; color: var(--hb-ink); cursor: pointer; transition: border-color .15s, background .15s; }
.st-level:hover { border-color: var(--hb-primary-2); }
.st-level:focus-visible { outline: 2px solid var(--hb-primary-2); outline-offset: 1px; }
.st-level.on { border-color: var(--hb-primary); background: #F6F4FF; box-shadow: 0 0 0 1px var(--hb-primary) inset; }
.st-level-no { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #F1EFFE; color: var(--hb-primary); font-size: .75rem; font-weight: 600; }
.st-level.on .st-level-no { background: var(--hb-primary); color: #fff; }
.st-level-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.st-level-text b { font-size: .84rem; font-weight: 600; }
.st-level-text small { font-size: .72rem; color: var(--hb-muted); line-height: 1.35; }
.st-access-pick { width: 210px; min-width: 0; }
.hb-due { color: #B45309; font-weight: 600; }
.hb-occ-key { flex-basis: 100%; color: var(--hb-muted); font-size: .75rem; }

/* Walk-in: room numbers per room type for today's check-in. */
.nb-rooms { flex: 1 1 100%; margin-top: 12px; padding: 12px 14px; border-radius: 14px; background: #F8F7FD; border: 1px solid #EEEDF8; }
.nb-rooms-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: .84rem; margin-bottom: 4px; }
.nb-rooms-head .mud-icon-root { color: var(--hb-primary-2); }
.nb-rooms-head .hb-muted { flex-basis: 100%; font-size: .75rem; }
.nb-room-pick { max-width: 420px; }

/* Walk-in: a returning guest found by mobile / email. */
.gd-returning { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: #F1EFFE; border: 1px solid #DDD8FB; }
.gd-returning > .mud-icon-root { color: var(--hb-primary); }
.gd-returning > span { flex: 1 1 160px; display: flex; flex-direction: column; font-size: .84rem; }
.gd-returning small { color: var(--hb-muted); font-size: .74rem; }

/* Booking page: cancel some rooms of a booking. */
.cr-room { display: flex; align-items: center; gap: 10px; padding: 8px 12px; margin-bottom: 6px; border: 1px solid #ECEBF6; border-radius: 12px; cursor: pointer; font-size: .85rem; }
.cr-room.on { border-color: #FCA5A5; background: #FFF5F5; }
.cr-room input { width: 17px; height: 17px; accent-color: #DC2626; }
.cr-room > span { flex: 1; display: flex; flex-direction: column; }
.cr-room small { color: var(--hb-muted); font-size: .74rem; }
.cr-room em { font-style: normal; font-weight: 600; }

/* Enquiries: tabs with counts, cards with due reason and actions. */
.enq-quick { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 2px 0 6px; font-size: .78rem; color: var(--hb-muted); }
.enq-quick button { border: 1px solid #E4E2F5; background: #fff; border-radius: 999px; padding: 2px 10px; font: inherit; font-size: .76rem; cursor: pointer; color: var(--hb-ink); }
.enq-quick button:hover { border-color: var(--hb-primary-2); }
.enq-tabs { display: flex; flex-wrap: wrap; gap: 3px; background: #F3F2FB; border-radius: 12px; padding: 3px; }
.enq-tabs button { flex: 1 1 auto; border: 0; background: none; font: inherit; font-size: .8rem; color: var(--hb-muted); padding: 6px 10px; border-radius: 9px; cursor: pointer; white-space: nowrap; }
.enq-tabs button.on { background: #fff; color: var(--hb-primary); box-shadow: 0 1px 4px rgba(30, 27, 75, .12); }
.enq-tabs b { margin-left: 4px; font-size: .72rem; background: #E9E6FB; color: var(--hb-primary); border-radius: 999px; padding: 0 7px; }
.enq-tabs b.due { background: #FDE7C8; color: #92400E; }
.enq-list { display: grid; gap: 8px; margin-top: 10px; }
.enq { display: flex; flex-wrap: wrap; gap: 8px 12px; padding: 12px 14px; border-radius: 14px; border: 1px solid #EDECF7; background: #fff; }
.enq.due { border-color: #F5C77E; background: #FFFBF2; }
.enq.lost { opacity: .75; }
.enq-main { flex: 1 1 280px; min-width: 0; }
.enq-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.enq-status { font-size: .7rem; font-weight: 600; border-radius: 999px; padding: 1px 8px; background: #EEF0F6; color: #4B5563; }
.enq-status.open { background: #EEF2FF; color: #4338CA; }
.enq-status.converted { background: #E9F9EF; color: #15803D; }
.enq-due { font-size: .72rem; font-weight: 600; color: #92400E; background: #FDE7C8; border-radius: 999px; padding: 1px 8px; }
.enq-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 4px; font-size: .78rem; color: var(--hb-muted); }
.enq-meta span { display: inline-flex; align-items: center; gap: 4px; }
.enq-meta .mud-icon-root { font-size: .95rem; }
.enq-notes { margin-top: 4px; font-size: .78rem; color: var(--hb-ink); }
.enq-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.enq-form .d-flex > * { flex: 1 1 0; min-width: 0; }

/* Front desk: move an in-house guest to another room (any type: keep the price or charge the new rate). */
.mv-room { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px; margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: #F8F7FD; border: 1px solid #EEEDF8; }
.mv-room-title { flex-basis: 100%; display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; font-weight: 600; }
.mv-room-title .mud-icon-root { color: var(--hb-primary-2); }
.mv-room-intro { flex-basis: 100%; font-size: .78rem; color: var(--hb-muted); margin-top: -4px; }
.mv-room .mud-input-control { flex: 1 1 140px; margin: 0 !important; }
.mv-price { flex-basis: 100%; display: flex; flex-direction: column; gap: 6px; }
.mv-price-head { font-size: .8rem; color: var(--hb-ink); }
.mv-opt { display: flex; align-items: flex-start; gap: 10px; padding: 8px 12px; border: 1px solid #E4E2F5; border-radius: 12px; background: #fff; cursor: pointer; font-size: .82rem; }
.mv-opt.on { border-color: var(--hb-primary-2); background: #F5F3FF; }
.mv-opt.off { opacity: .55; cursor: not-allowed; }
.mv-opt input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--hb-primary); }
.mv-opt > span { display: flex; flex-direction: column; }
.mv-opt small { color: var(--hb-muted); font-size: .74rem; }
/* Swap rooms (booking page and Room board popup): long "room · type · guest" choices stay inside a phone-width popup. */
.sw-room { min-width: 0; max-width: 100%; }
.sw-room > .mud-select { flex: 1 1 100%; min-width: 0; max-width: 100%; }
.sw-room .mud-input-control, .sw-room .mud-input-control-input-container, .sw-room .mud-input { min-width: 0; max-width: 100%; }
.sw-room .mud-input-slot { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sw-room .mud-input-helper-text { white-space: normal; }

/* Booking page: change rooms & guests (room type, plan, guests, desk price, add a room) with the new price before saving. */
.rc-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.rc-room { margin-top: 12px; padding: 10px 12px 4px; border: 1px solid #ECEBF6; border-radius: 14px; background: #fff; }
.rc-room.changed { border-color: var(--hb-primary-2); background: #FAF9FF; }
.rc-room.new { border-style: dashed; }
.rc-room-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: .8rem; margin-bottom: 6px; min-height: 28px; }
.rc-no { font-weight: 600; color: var(--hb-primary); background: #F1EFFE; border-radius: 999px; padding: 1px 10px; }
.rc-tag { font-size: .66rem; font-weight: 600; color: #fff; background: var(--hb-primary-2); border-radius: 999px; padding: 1px 8px; }
.rc-fields, .rc-ages { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; }
.rc-fields .mud-input-control, .rc-ages .mud-input-control { margin: 0 !important; }
.rc-type { flex: 1 1 200px; }
.rc-plan { flex: 1 1 150px; }
.rc-num { flex: 0 0 96px; max-width: 96px; }
.rc-price { flex: 0 1 190px; }
.rc-ages { margin-top: 4px; }
.rc-ages > .hb-muted { flex-basis: 100%; font-size: .74rem; }
.rc-line-price { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: .82rem; margin: 6px 0 4px; }
.rc-line-price .mud-icon-root { color: var(--hb-muted); }
.rc-sum { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }
.rc-sum > div { display: flex; flex-direction: column; padding: 8px 12px; border-radius: 12px; background: #F8F7FD; font-size: .76rem; color: var(--hb-muted); }
.rc-sum b { font-size: .95rem; color: var(--hb-ink); white-space: nowrap; }
.rc-sum .up b { color: #B45309; }
.rc-sum .down b { color: #047857; }
@media (max-width: 600px) {
  .rc-sum { grid-template-columns: repeat(2, 1fr); }
  .rc-type, .rc-plan, .rc-price { flex-basis: 100%; max-width: none; }
  .rc-num { flex: 1 1 40%; max-width: none; }
}

/* Booking page: complimentary (free) rooms. */
.cp-room { display: flex; align-items: center; gap: 10px; padding: 8px 12px; margin-bottom: 6px; border: 1px solid #ECEBF6; border-radius: 12px; cursor: pointer; font-size: .85rem; background: #fff; }
.cp-room.on { border-color: #86EFAC; background: #F0FDF4; }
.cp-room input { width: 17px; height: 17px; accent-color: #16A34A; flex: none; }
.cp-room input:disabled + span { opacity: .8; }
.cp-room > span { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.cp-room small { color: var(--hb-muted); font-size: .74rem; }
.cp-room em { font-style: normal; font-weight: 600; white-space: nowrap; }
.cp-room.on em { color: #15803D; }
.cp-preview { display: flex; flex-direction: column; gap: 2px; margin-top: 8px; padding: 8px 12px; border-radius: 12px; background: #F8FAFC; border: 1px dashed #CBD5E1; font-size: .82rem; }
.hb-free-chip { display: inline-flex; align-items: center; gap: 4px; font-size: .72rem; font-weight: 600; color: #15803D; background: #DCFCE7; border-radius: 999px; padding: 1px 8px; margin-left: 6px; vertical-align: middle; }
.hb-foreign-chip { display: inline-flex; align-items: center; font-size: .72rem; font-weight: 600; color: #1D4ED8; background: #DBEAFE; border-radius: 999px; padding: 1px 8px; margin-left: 6px; vertical-align: middle; }

/* Booking page: undo a cancellation. */
.uc-box { margin-top: 10px; padding: 10px 14px; border: 1px solid #C7D2FE; border-radius: 14px; background: #F5F7FF; }
.uc-head { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; color: var(--hb-primary); font-size: .9rem; }

/* Front desk: payment just recorded, with its receipt. */
.rc-done { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 10px; padding: 8px 12px; border: 1px solid #BBF7D0; border-radius: 12px; background: #F0FDF4; font-size: .84rem; }
.rc-done > span { flex: 1 1 160px; }

/* Booking page: split bills per room / guest. */
.sb-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: 6px; }
.sb-bills { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.sb-bill { border: 1px solid #E4E2F5; border-radius: 14px; padding: 10px 12px; background: #fff; display: flex; flex-direction: column; }
.sb-bill-top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; }
.sb-bill-top small { flex-basis: 100%; color: var(--hb-muted); font-size: .74rem; }
.sb-no { font-weight: 600; font-size: .74rem; color: var(--hb-primary); background: #F1EFFE; border-radius: 999px; padding: 1px 9px; white-space: nowrap; }
.sb-bill ul { list-style: none; margin: 6px 0; padding: 0; font-size: .8rem; flex: 1; }
.sb-bill li { display: flex; justify-content: space-between; gap: 8px; padding: 2px 0; border-bottom: 1px dashed #EEEDF8; }
.sb-bill li em { font-style: normal; white-space: nowrap; }
.sb-sum { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: .8rem; }
.sb-due { color: #B45309; }
.sb-hint { color: var(--hb-muted); font-size: .72rem; }
.sb-edit-bill { border: 1px solid #ECEBF6; border-radius: 14px; padding: 8px 12px; margin-bottom: 8px; background: #FAF9FF; }
.sb-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0 8px; }
.sb-line { display: flex; align-items: center; gap: 10px; padding: 4px 0; border-bottom: 1px solid #F1F0F9; font-size: .84rem; }
.sb-line > span:first-child { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.sb-line small { color: var(--hb-muted); font-size: .74rem; }
.sb-pick { max-width: 120px; flex: none; }
.sb-fixed { width: 120px; text-align: center; font-size: .8rem; color: var(--hb-muted); }
.sb-preview { display: flex; flex-direction: column; gap: 2px; margin-top: 10px; padding: 8px 12px; border-radius: 12px; background: #F8FAFC; border: 1px dashed #CBD5E1; font-size: .82rem; }
@media (max-width: 600px) { .sb-pick, .sb-fixed { max-width: 104px; width: 104px; } }

/* Restaurant: outlets and menu. */
.pos-outlets { display: flex; flex-wrap: wrap; gap: 8px; }
.pos-outlet { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid #E4E2F5; border-radius: 14px; background: #fff; cursor: pointer; font: inherit; text-align: left; color: var(--hb-ink); min-width: 150px; }
.pos-outlet span { display: flex; flex-direction: column; }
.pos-outlet small { color: var(--hb-muted); font-size: .72rem; }
.pos-outlet.on { border-color: var(--hb-primary-2); background: #F5F3FF; box-shadow: 0 1px 6px rgba(76, 29, 149, .12); }
.pos-outlet.off { opacity: .6; }
.pos-outlet.add { border-style: dashed; color: var(--hb-primary); }
.pos-outlet-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 12px; align-items: start; margin-top: 12px; padding-top: 10px; border-top: 1px solid #F1F0F9; }
.pos-cat { margin: 12px 0 4px; font-size: .74rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--hb-primary); }
.pos-cat small { color: var(--hb-muted); font-weight: 500; margin-left: 4px; }
.pos-item { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 10px; cursor: pointer; border: 1px solid transparent; }
.pos-item:hover { background: #FAF9FF; }
.pos-item.on { border-color: var(--hb-primary-2); background: #F5F3FF; }
.pos-item.off .pos-name b { color: var(--hb-muted); text-decoration: line-through; }
.pos-veg { width: 12px; height: 12px; flex: none; border: 1.5px solid #16A34A; border-radius: 2px; position: relative; }
.pos-veg::after { content: ""; position: absolute; inset: 2px; border-radius: 50%; background: #16A34A; }
.pos-veg.non { border-color: #B91C1C; }
.pos-veg.non::after { background: #B91C1C; }
.pos-name { flex: 1; display: flex; flex-direction: column; min-width: 0; font-size: .86rem; }
.pos-name small, .pos-price small { color: var(--hb-muted); font-size: .72rem; }
.pos-price { display: flex; flex-direction: column; align-items: flex-end; font-weight: 600; font-size: .86rem; white-space: nowrap; }

/* Restaurant: orders and KOT. */
.pos-tickets { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; padding-top: 10px; border-top: 1px solid #F1F0F9; align-items: stretch; }
.pos-ticket { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 8px 12px; border: 1px solid #E4E2F5; border-radius: 14px; background: #fff; cursor: pointer; font: inherit; color: var(--hb-ink); min-width: 120px; text-align: left; }
.pos-ticket small { color: var(--hb-muted); font-size: .72rem; }
.pos-ticket em { font-style: normal; font-size: .7rem; font-weight: 600; color: #B45309; background: #FEF3C7; border-radius: 999px; padding: 0 8px; }
.pos-ticket.on { border-color: var(--hb-primary-2); background: #F5F3FF; }
.pos-new { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 6px 10px; border: 1px dashed #D9D6F3; border-radius: 14px; flex: 1 1 320px; }
.pos-new-where { flex: 1 1 140px; min-width: 120px; }
.pos-new-guests { max-width: 90px; }
.pos-line { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding: 6px 0; border-bottom: 1px solid #F1F0F9; font-size: .86rem; }
.pos-line.new { background: linear-gradient(90deg, #FFFBEB, transparent); }
.pos-line.void { opacity: .55; }
.pos-line.void .pos-line-name b { text-decoration: line-through; }
.pos-line-name { flex: 1 1 96px; display: flex; flex-direction: column; min-width: 96px; }
.pos-line-name small { color: var(--hb-muted); font-size: .72rem; }
.pos-qty { display: flex; align-items: center; gap: 2px; }
.pos-qty b { min-width: 22px; text-align: center; }
.pos-kot { font-size: .68rem; font-weight: 600; color: var(--hb-primary); background: #F1EFFE; border-radius: 999px; padding: 0 7px; margin-left: 4px; white-space: nowrap; }
.pos-line-amt { min-width: 72px; text-align: right; font-weight: 600; white-space: nowrap; }
.pos-totals { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 16px; margin-top: 10px; font-size: .86rem; }
.pos-total { font-size: 1rem; color: var(--hb-primary); }
.pos-kots { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; font-size: .8rem; color: var(--hb-muted); }
.pos-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.pos-chips button { border: 1px solid #E4E2F5; background: #fff; border-radius: 999px; padding: 3px 12px; font: inherit; font-size: .78rem; cursor: pointer; color: var(--hb-ink); }
.pos-chips button.on { background: var(--hb-primary); border-color: var(--hb-primary); color: #fff; }
.pos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.pos-dish { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-height: 70px; padding: 10px 10px 8px 26px; border: 1px solid #E4E2F5; border-radius: 14px; background: #fff; cursor: pointer; font: inherit; text-align: left; color: var(--hb-ink); }
.pos-dish:hover:not(:disabled) { border-color: var(--hb-primary-2); background: #FAF9FF; }
.pos-dish:active:not(:disabled) { transform: scale(.98); }
.pos-dish .pos-veg { position: absolute; left: 9px; top: 13px; }
.pos-dish b { font-size: .84rem; line-height: 1.2; }
.pos-dish small { color: var(--hb-muted); font-size: .76rem; }
.pos-dish.off { opacity: .5; cursor: not-allowed; }
.pos-pay { margin-top: 12px; padding: 10px 12px; border: 1px solid #D1FAE5; border-radius: 14px; background: #F7FEF9; display: flex; flex-direction: column; gap: 6px; }
.pos-pay-head { display: flex; align-items: center; justify-content: space-between; }
.pos-pay-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pos-pay-method { max-width: 150px; }
.pos-pay-ref { flex: 1 1 140px; min-width: 130px; }
.pos-closed { display: flex; flex-direction: column; }
.pos-closed-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 5px 0; border-bottom: 1px solid #F1F0F9; font-size: .84rem; }
.pos-closed-row > span { flex: 1 1 180px; }
.pos-closed-row em { font-style: normal; font-weight: 600; min-width: 80px; text-align: right; }

/* Restaurant table board: tiles like the room board (status bar on the left); free = green, occupied = blue, bill printed = amber. */
.tb-card { --tb-free: #16A34A; --tb-busy: #4F6BED; --tb-billed: #D97706; }
.fb-seg.tb-free, .fb-dot.tb-free { background: var(--tb-free); }
.fb-seg.tb-busy, .fb-dot.tb-busy { background: var(--tb-busy); }
.fb-seg.tb-billed, .fb-dot.tb-billed { background: var(--tb-billed); }
.tb-sum { margin-left: auto; align-self: center; font-size: .8rem; color: var(--hb-muted); }
.tb-grid { grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); }
.tb-tile { --c: var(--tb-free); position: relative; display: flex; flex-direction: column; min-height: 96px; border: 1px solid #E8E8EF; border-radius: 14px; overflow: hidden;
  background: linear-gradient(180deg, #fff 0%, #FAFAFC 100%); box-shadow: inset 0 1px 0 #fff, 0 2px 0 #E3E3EC, 0 6px 12px -6px rgba(30, 27, 75, .14); margin-bottom: 3px;
  transition: transform .15s ease, box-shadow .15s ease; }
.tb-tile::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--c); }
.tb-tile:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 #fff, 0 3px 0 #E0E0EA, 0 12px 18px -8px rgba(30, 27, 75, .18); }
.tb-tile.tb-busy { --c: var(--tb-busy); background: linear-gradient(180deg, #F7F8FF 0%, #EFF2FE 100%); }
.tb-tile.tb-billed { --c: var(--tb-billed); background: linear-gradient(180deg, #FFFBF0 0%, #FEF3C7 100%); }
@media (prefers-reduced-motion: reduce) { .tb-tile, .tb-tile:hover { transition: none; transform: none; } }
.tb-open { flex: 1; display: flex; flex-direction: column; align-items: stretch; gap: 2px; padding: 10px 12px 10px 15px; border: 0; background: none; font: inherit; color: var(--hb-ink); text-align: left; cursor: pointer; }
.tb-open:focus-visible { outline: 2px solid var(--hb-primary); outline-offset: -2px; border-radius: 14px; }
.tb-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.tb-top b { font-size: 1.2rem; font-weight: 700; letter-spacing: -.01em; }
.tb-top small { display: inline-flex; align-items: center; gap: 2px; color: var(--hb-muted); font-size: .74rem; }
.tb-top small .mud-icon-root { font-size: .95rem; }
.tb-amt { font-size: 1rem; font-weight: 700; }
.tb-meta { font-size: .74rem; color: var(--hb-muted); }
.tb-state { margin-top: auto; font-size: .74rem; font-weight: 600; color: var(--c); filter: brightness(.8); }
.tb-bills { display: flex; flex-wrap: wrap; gap: 4px; padding: 0 10px 8px 15px; }
.tb-bills a { font-size: .68rem; font-weight: 600; padding: 1px 7px; border-radius: 999px; background: #fff; border: 1px solid #DCDFF8; color: var(--hb-primary); text-decoration: none; }
.tb-bills a.billed { border-color: #FCD34D; color: #92400E; }
.tb-rooms a { text-decoration: none; }
.tb-setup { margin-top: 12px; padding: 12px; border: 1px dashed #D9D6F3; border-radius: 14px; background: #FBFBFE; }
.tb-setup-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tb-f-xs { max-width: 90px; }
.tb-f-s { max-width: 130px; min-width: 90px; }
.tb-f-m { max-width: 200px; min-width: 120px; }
.tb-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 8px; }
.tb-pick-btn { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 8px 4px; border: 1px solid #E4E2F5; border-left: 4px solid var(--tb-free, #16A34A); border-radius: 12px; background: #fff; font: inherit; cursor: pointer; color: var(--hb-ink); }
.tb-pick-btn small { font-size: .66rem; color: var(--hb-muted); }
.tb-pick-btn.busy { border-left-color: #4F6BED; }
.tb-pick-btn.billed { border-left-color: #D97706; }
.tb-pick-btn.on { border-color: var(--hb-primary); background: #F5F3FF; box-shadow: 0 0 0 1px var(--hb-primary); }
@media (max-width: 600px) {
  .tb-grid { grid-template-columns: repeat(auto-fill, minmax(98px, 1fr)); gap: 8px; }
  .tb-sum { margin-left: 0; flex-basis: 100%; }
  .tb-f-m, .tb-f-s { max-width: none; flex: 1 1 120px; }
}

/* Kitchen display screen: three columns (new, preparing, ready), big readable tickets; late ones get a red edge. */
.kds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: start; }
.kds-col { --k: #4F6BED; background: #F7F7FC; border: 1px solid #ECEBF6; border-radius: 18px; padding: 10px; min-height: 160px; }
.kds-preparing { --k: #D97706; }
.kds-ready { --k: #16A34A; }
.kds-col > header { display: flex; align-items: center; justify-content: space-between; padding: 4px 6px 10px; font-size: 1rem; }
.kds-col > header b { color: var(--k); }
.kds-col > header span { min-width: 26px; text-align: center; border-radius: 999px; background: var(--k); color: #fff; font-weight: 700; font-size: .8rem; padding: 1px 8px; }
.kds-empty { color: var(--hb-muted); font-size: .84rem; text-align: center; padding: 24px 0; }
.kds-ticket { position: relative; background: #fff; border: 1px solid #E8E8EF; border-left: 5px solid var(--k); border-radius: 14px; padding: 10px 12px; margin-bottom: 10px;
  box-shadow: 0 6px 12px -8px rgba(30, 27, 75, .18); }
.kds-ticket.late { border-left-color: #DC2626; }
.kds-ticket.late .kds-time { background: #FEE2E2; color: #B91C1C; }
.kds-ticket.fresh { animation: kds-in 1.2s ease 2; }
.kds-ticket.cancelled { opacity: .7; background: repeating-linear-gradient(135deg, #fff 0 10px, #FEF2F2 10px 20px); }
@keyframes kds-in { 0%, 100% { box-shadow: 0 6px 12px -8px rgba(30, 27, 75, .18); } 50% { box-shadow: 0 0 0 4px rgba(108, 92, 231, .35); } }
@media (prefers-reduced-motion: reduce) { .kds-ticket.fresh { animation: none; } }
.kds-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.kds-kot { font-size: .72rem; font-weight: 700; color: var(--hb-primary); background: #F1EFFE; border-radius: 999px; padding: 1px 8px; white-space: nowrap; }
.kds-where { order: 3; flex: 1 1 100%; font-size: 1.15rem; line-height: 1.25; overflow-wrap: anywhere; }
.kds-time { margin-left: auto; }
.kds-time { font-size: .78rem; font-weight: 700; padding: 1px 8px; border-radius: 999px; background: #F1F2F6; color: #374151; white-space: nowrap; }
.kds-meta { font-size: .74rem; color: var(--hb-muted); margin-top: 2px; }
.kds-cancel { margin-top: 6px; font-weight: 700; color: #B91C1C; font-size: .84rem; }
.kds-ticket ul { list-style: none; margin: 8px 0 0; padding: 0; }
.kds-ticket li { padding: 4px 0; border-top: 1px dashed #EEEDF5; font-size: .95rem; }
.kds-ticket li b { display: inline-block; min-width: 32px; }
.kds-ticket li em { display: block; margin-left: 32px; font-size: .8rem; color: #B45309; }
.kds-ticket li.void { color: var(--hb-muted); text-decoration: line-through; }
.kds-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.kds-actions .mud-button-filled { flex: 1 1 auto; min-height: 42px; }
.pos-kot-state { font-size: .66rem; font-weight: 700; border-radius: 999px; padding: 0 7px; margin-left: 2px; }
.pos-kot-state.preparing { background: #FEF3C7; color: #92400E; }
.pos-kot-state.ready { background: #DCFCE7; color: #166534; }
.pos-kot-state.served { background: #F1F2F6; color: #4B5563; }
@media (max-width: 900px) { .kds { grid-template-columns: 1fr; } }
.pos-line-amt.free { color: #16A34A; }

/* Tally ledger names and night audit. */
.tl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0 12px; }
.na-noshow { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; padding: 4px 0; border-bottom: 1px solid #F1F0F9; font-size: .86rem; }
.na-noshow > span { flex: 1 1 220px; }
.na-noshow small { color: var(--hb-muted); }
.na-closed { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; background: #DCFCE7; color: #166534; font-weight: 600; font-size: .84rem; }

/* QR orders waiting for a waiter (table board). */
.tb-qr { margin-top: 12px; padding: 10px 12px; border: 1px solid #C7D2FE; border-radius: 14px; background: #EEF2FF; }
.tb-qr-head { display: flex; align-items: center; gap: 6px; color: #3730A3; margin-bottom: 4px; }
.tb-qr-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 6px 0; border-top: 1px solid #DDE3FD; font-size: .86rem; }
.tb-qr-row > span { flex: 1 1 240px; display: flex; flex-direction: column; }
.tb-qr-row small { color: var(--hb-muted); }
.tb-tile.qr { box-shadow: 0 0 0 2px #6366F1, 0 6px 12px -6px rgba(30, 27, 75, .14); }
.tb-qr-badge { align-self: flex-start; font-size: .64rem; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: #6366F1; color: #fff; margin-bottom: 2px; }

/* Store & recipes. */
.st-form { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 0 12px; align-items: start; margin-bottom: 12px; }
.st-low td { background: #FFFBEB; }
.st-neg td { background: #FEF2F2; color: #991B1B; }
.st-off td { opacity: .55; }
.st-unit { color: var(--hb-muted); margin-left: 4px; }
.st-num { max-width: 120px; margin-left: auto; }
.st-recipe { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.st-grow { flex: 1 1 220px; }

/* Table reservations. */
.tb-card { --tb-reserved: #7C3AED; }
.fb-seg.tb-reserved, .fb-dot.tb-reserved { background: var(--tb-reserved); }
.tb-tile.tb-reserved { --c: var(--tb-reserved); background: linear-gradient(180deg, #FAF5FF 0%, #F3E8FF 100%); }
.tb-res-tag { font-size: .68rem; font-weight: 600; color: #6D28D9; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tb-res { margin-top: 12px; padding: 12px; border: 1px solid #E9D5FF; border-radius: 14px; background: #FDFAFF; }
.tb-res-form { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 0 12px; margin: 8px 0; }
.tb-res-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding: 6px 0; border-top: 1px solid #F1E8FD; font-size: .86rem; }
.tb-res-row > span { flex: 1 1 240px; display: flex; flex-direction: column; }
.tb-res-row small { color: var(--hb-muted); }
.tb-res-row.cancelled, .tb-res-row.noshow { opacity: .6; }

/* Main modules (top): the sidebar shows only the chosen module's menu. Desktop: a tab row under the top bar; phone: a strip in the drawer. */
.hb-modules { position: sticky; top: 69px; z-index: 9; display: flex; gap: 6px; padding: 8px 28px; overflow-x: auto; scrollbar-width: none;
  background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--hb-line); }
.hb-modules::-webkit-scrollbar { display: none; }
.hb-modules a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; white-space: nowrap; text-decoration: none;
  color: var(--hb-muted); font-size: .85rem; font-weight: 500; transition: background .15s, color .15s; }
.hb-modules a:hover { background: #F1F2F8; color: var(--hb-primary); }
.hb-modules a.on { background: linear-gradient(135deg, var(--hb-primary-2), var(--hb-primary)); color: #fff; box-shadow: 0 6px 16px rgba(108, 92, 231, .28); }
.hb-modules a:focus-visible { outline: 2px solid var(--hb-primary); outline-offset: 2px; }
.hb-mod-strip { display: none; }
@media (max-width: 960px) {
  .hb-modules { display: none; }
  .hb-mod-strip { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 18px 8px 0; padding: 2px 0 8px; scroll-snap-type: x proximity; }
  .hb-mod-strip::-webkit-scrollbar { display: none; }
  .hb-mod-strip a { display: inline-flex; align-items: center; gap: 6px; flex: none; padding: 7px 12px; border-radius: 999px; white-space: nowrap; text-decoration: none;
    color: #fff; background: rgba(255,255,255,.14); font-size: .8rem; scroll-snap-align: start; }
  .hb-mod-strip a.on { background: #fff; color: var(--hb-primary); font-weight: 600; }
}

/* Page title row: the guide "?" sits right after the title. */
.hb-title-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hb-title-row .hb-help-btn { margin-left: 0; }
/* Blazor moves focus to the page title after each navigation (for screen readers): no outline for that focus. */
.hb-page-title h1:focus, h1[tabindex="-1"]:focus { outline: none; }
/* Guide "?" next to the title: a plain icon, a focus ring only for keyboard use. */
.hb-help-btn { color: var(--hb-muted); border: 0 !important; box-shadow: none !important; }
.hb-help-btn:hover { color: var(--hb-primary); background: #F1F2F8; }
.hb-help-btn:focus { outline: none; }
.hb-help-btn:focus-visible { outline: 2px solid var(--hb-primary); outline-offset: 2px; }

/* Staff access (Admin → Staff): role templates, a level per module, special rights. */
.sa-editor { display: grid; gap: 8px; margin: 8px 0 4px; }
.sa-label { font-size: .72rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--hb-muted); margin-top: 6px; }
.sa-templates { display: flex; flex-wrap: wrap; gap: 6px; }
.sa-template { padding: 6px 12px; border-radius: 999px; border: 1px solid #E8E7F3; background: #fff; font: inherit; font-size: .8rem; cursor: pointer; color: var(--hb-ink); }
.sa-template:hover { border-color: var(--hb-primary-2); }
.sa-template:focus-visible, .sa-seg-btn:focus-visible { outline: 2px solid var(--hb-primary-2); outline-offset: 1px; }
.sa-template.on { background: var(--hb-primary); border-color: var(--hb-primary); color: #fff; }
.sa-custom { cursor: default; border-style: dashed; color: var(--hb-muted); }
.sa-custom.on { background: #F6F4FF; color: var(--hb-primary); border-color: var(--hb-primary); }
.sa-new { display: inline-flex; align-items: center; gap: 4px; border-style: dashed; border-color: var(--hb-primary); color: var(--hb-primary); }
.sa-new.on { background: var(--hb-primary); color: #fff; border-style: solid; }
.sa-help { margin: 0; font-size: .75rem; color: var(--hb-muted); }
.sa-modules { display: grid; gap: 6px; }
.sa-module { padding: 8px 12px; border: 1px solid #EEEDF6; border-radius: 12px; background: #fff; display: grid; gap: 4px; }
.sa-module-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.sa-module-head b { font-size: .84rem; font-weight: 600; }
.sa-module small { font-size: .72rem; color: var(--hb-muted); line-height: 1.35; }
.sa-seg { display: inline-flex; border: 1px solid #E8E7F3; border-radius: 999px; overflow: hidden; }
.sa-seg-btn { border: 0; background: #fff; padding: 4px 12px; font: inherit; font-size: .75rem; cursor: pointer; color: var(--hb-muted); }
.sa-seg-btn + .sa-seg-btn { border-left: 1px solid #E8E7F3; }
.sa-seg-btn.on { background: var(--hb-primary); color: #fff; font-weight: 600; }
.sa-seg-btn.l0.on { background: #9CA3AF; }
.sa-rights { display: grid; gap: 0; }
.sa-summary { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; max-width: 360px; }
.sa-summary b { font-size: .82rem; }
.sa-summary .sa-change { white-space: nowrap; margin-top: 6px; border-radius: 10px; text-transform: none; font-weight: 600; padding: 2px 10px; background: #F5F3FF; }
/* Walk-in room type lines: one light card each; the remove button sits in its top-right corner (only with 2+ lines). */
.nb-line { position: relative; padding: 12px; border: 1px solid #ECEBF5; border-radius: 14px; background: #fff; }
.nb-line.removable { padding-right: 52px; }
.nb-line-remove.mud-icon-button { position: absolute; top: 10px; right: 10px; color: var(--hb-muted); border: 1px solid #ECEBF5; border-radius: 10px; }
.nb-line-remove.mud-icon-button:hover { color: #C2255C; border-color: #F3C1D3; background: #FFF5F8; }
.sa-summary span, .sa-summary small { font-size: .72rem; color: var(--hb-muted); line-height: 1.35; }

/* Online pre-check-in card on a booking, and the "sent online" mark on guest IDs. */
.pci-card { border-left: 4px solid #C7D2FE; }
.pci-card.done { border-left-color: #86EFAC; background: linear-gradient(90deg, #F0FDF4, #fff 40%); }
.pci-head { display: flex; gap: 12px; align-items: flex-start; }
.pci-head > .mud-icon-root { margin-top: 4px; color: var(--hb-primary); }
.pci-card.done .pci-head > .mud-icon-root { color: #15803D; }
.pci-title { min-width: 0; }
.pci-facts { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 10px 0 0 36px; font-size: .86rem; color: var(--hb-muted); }
.pci-facts span { display: inline-flex; align-items: center; gap: 4px; }
.pci-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0 36px; }
.pci-online { margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: #ECFDF5; color: #047857; font-size: .72rem; font-weight: 600; white-space: nowrap; }
@media (max-width: 600px) { .pci-facts, .pci-actions { margin-left: 0; } }
/* Daily summary (Settings → Daily summary): owners list and the morning preview. */
.ds-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-bottom: 8px; }
.ds-time { max-width: 160px; }
.ds-label { margin: 18px 0 8px; font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--hb-muted); }
.ds-owners { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ds-owners li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; padding: 10px 12px; border: 1px solid #EEEDF7; border-radius: 14px; }
.ds-owners li.on { border-color: color-mix(in srgb, var(--hb-primary) 35%, #fff); background: #FBFAFF; }
.ds-who { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1 1 200px; }
.ds-who > span { display: flex; flex-direction: column; min-width: 0; }
.ds-who b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ds-who em { font-style: normal; font-size: .68rem; font-weight: 600; color: var(--hb-primary); margin-left: 6px; }
.ds-who small { color: var(--hb-muted); font-size: .76rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ds-ways { display: flex; gap: 4px; flex-wrap: wrap; }
.ds-number { flex: 1 1 100%; }
.ds-sent { flex: 1 1 100%; color: var(--hb-muted); font-size: .72rem; }
.ds-day { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 4px 0 10px; font-size: .8rem; font-weight: 600; color: var(--hb-ink); }
.ds-figs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 0 0 16px; }
.ds-figs > div { padding: 10px 12px; border-radius: 12px; background: #F7F6FC; min-width: 0; }
.ds-figs > div.big { background: linear-gradient(135deg, #F1EFFE, #F7F6FC); }
.ds-figs dt { font-size: .68rem; color: var(--hb-muted); }
.ds-figs dd { margin: 2px 0 0; font-size: 1.05rem; font-weight: 650; }
.ds-figs .big dd { font-size: 1.35rem; }
.ds-figs small { display: block; color: var(--hb-muted); font-size: .7rem; line-height: 1.3; }
.ds-today { grid-template-columns: repeat(3, 1fr); }
.ds-wa { margin-top: 4px; padding: 12px 14px; border-radius: 4px 14px 14px 14px; background: #E7F8E0; color: #1F2937; font-size: .84rem; line-height: 1.55; max-width: 360px; box-shadow: 0 1px 1px rgba(0,0,0,.06); }
@media (max-width: 600px) { .ds-today { grid-template-columns: repeat(3, 1fr); } .ds-figs .big dd { font-size: 1.15rem; } }

/* Guest reviews (Front office → Guest reviews) and the booking's review card. */
.rv-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); gap: 20px; align-items: start; }
.rv-sub { font-size: .9rem; font-weight: 500; opacity: .85; margin-left: 4px; }
.rv-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.rv-items li { padding: 12px 14px; border: 1px solid #EEEDF7; border-left: 4px solid #E5E7EB; border-radius: 14px; background: #fff; min-width: 0; }
.rv-items li.happy { border-left-color: #86EFAC; }
.rv-items li.unhappy { border-left-color: #FDBA74; }
.rv-items li.unhappy.open { border-left-color: #F87171; background: linear-gradient(90deg, #FEF2F2, #fff 45%); }
.rv-item-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.rv-item-stars, .rvc-stars { color: #F5A524; letter-spacing: 2px; font-size: 1.05rem; }
.rv-item-wait { font-size: .78rem; color: var(--hb-muted); }
.rv-item-when { font-size: .74rem; color: var(--hb-muted); white-space: nowrap; }
.rv-item-who { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-top: 2px; }
.rv-item-who b { font-weight: 600; }
.rv-item-who small { color: var(--hb-muted); font-size: .74rem; }
.rvc-quote { margin: 8px 0 0; padding: 8px 12px; border-radius: 10px; background: #F7F6FC; font-size: .9rem; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.rv-item-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; }
.rv-item-actions { margin-left: auto; display: flex; gap: 4px; flex-wrap: wrap; }
.rvc-chip { padding: 2px 10px; border-radius: 999px; font-size: .72rem; font-weight: 600; white-space: nowrap; }
.rvc-chip.google { background: #EEF4FF; color: #1D4ED8; }
.rvc-chip.done { background: #ECFDF5; color: #047857; }
.rv-link { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 6px; font-size: .8rem; color: var(--hb-muted); }
.rv-preview { margin-top: 0; }
.rv-preview-link { color: #1D4ED8; text-decoration: underline; word-break: break-all; }
.rvc-card { border-left: 4px solid #C7D2FE; }
.rvc-card.happy { border-left-color: #86EFAC; background: linear-gradient(90deg, #F0FDF4, #fff 40%); }
.rvc-card.unhappy { border-left-color: #F87171; background: linear-gradient(90deg, #FEF2F2, #fff 40%); }
.rvc-card .pci-head > .mud-icon-root { color: #F5A524; }
.rvc-rating { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: .86rem; color: var(--hb-muted); }
.rvc-card .rvc-chip { display: inline-block; margin-top: 8px; }
@media (max-width: 1000px) { .rv-grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .rv-stats { grid-template-columns: repeat(2, 1fr); gap: 10px; } .rv-stats .hb-stat:last-child { grid-column: 1 / -1; } .rv-stats .hb-stat { padding: 12px 14px; } .rv-stats .hb-stat strong { font-size: 1.25rem; } .rv-item-actions { margin-left: 0; } }

/* Housekeeping: phone list (My rooms) and the supervisor's Cleaning board. Status colours: to do amber, cleaning blue,
   done green, inspected teal, skipped grey. */
.hk-phone, .hk-grid, .hk-tiles { --hk-todo: #D97706; --hk-cleaning: #2563EB; --hk-done: #16A34A; --hk-insp: #0D9488; --hk-skip: #6B7280; --hk-rush: #DC2626; }
.hk-phone { max-width: 560px; margin: 0 auto; padding-bottom: 84px; }
.hk-hello { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 4px 0 18px; }
.hk-hello small { color: var(--hb-muted); font-size: .85rem; }
.hk-hello h1 { margin: 2px 0 0; font-size: 1.6rem; font-weight: 700; letter-spacing: -.02em; color: var(--hb-ink); }
.hk-ring { --p: 0; flex: none; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--hk-done) calc(var(--p) * 1%), #ECEBF5 0); }
.hk-ring > span { width: 50px; height: 50px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: .78rem; color: var(--hb-muted); }
.hk-ring b { color: var(--hb-ink); font-size: 1rem; }
.hk-h { display: flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--hb-muted); margin: 22px 2px 10px; }
.hk-h span { background: #ECEBF5; color: var(--hb-ink); border-radius: 999px; padding: 1px 8px; font-size: .75rem; letter-spacing: 0; }
.hk-hint { color: var(--hb-muted); font-size: .82rem; margin: -4px 2px 10px; }
.hk-card { --c: var(--hk-todo); position: relative; background: #fff; border: 1px solid #E8E8EF; border-radius: 18px; padding: 14px 14px 12px 18px; margin-bottom: 12px;
  box-shadow: 0 6px 16px -10px rgba(30, 27, 75, .25); overflow: hidden; }
.hk-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 5px; background: var(--c); }
.hk-card.rush { --c: var(--hk-rush); }
.hk-card.now { --c: var(--hk-cleaning); border-color: color-mix(in srgb, var(--hk-cleaning) 35%, #fff); background: color-mix(in srgb, var(--hk-cleaning) 4%, #fff); }
.hk-card-top { display: flex; align-items: center; gap: 14px; }
.hk-no { flex: none; min-width: 64px; height: 56px; padding: 0 10px; border-radius: 14px; display: grid; place-items: center; font-size: 1.5rem; font-weight: 800;
  letter-spacing: -.02em; color: color-mix(in srgb, var(--c) 75%, #1E1B4B); background: color-mix(in srgb, var(--c) 12%, #fff); }
.hk-meta { display: flex; flex-direction: column; min-width: 0; }
.hk-meta b { font-size: 1rem; color: var(--hb-ink); }
.hk-meta span { font-size: .82rem; color: var(--hb-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hk-live { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: .75rem; font-weight: 700; color: var(--hk-cleaning); }
.hk-live i { width: 8px; height: 8px; border-radius: 50%; background: var(--hk-cleaning); animation: hk-pulse 1.4s infinite; }
@keyframes hk-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .hk-live i { animation: none; } }
.hk-tags, .hk-row-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.hk-row-tags { margin-top: 4px; }
.hk-tag { font-size: .72rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: #F1F0F8; color: #4B4870; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hk-tag.rush { background: #FEE2E2; color: #B91C1C; }
.hk-tag.in { background: #E0E7FF; color: #3730A3; }
.hk-tag.free { background: #DCFCE7; color: #166534; }
.hk-tag.warn { background: #FEF3C7; color: #92400E; }
.hk-redo, .hk-note { display: flex; align-items: flex-start; gap: 6px; margin: 10px 0 0; font-size: .85rem; color: var(--hb-ink); }
.hk-redo { color: #B91C1C; font-weight: 600; }
.hk-note.muted { color: var(--hb-muted); }
.hk-actions { display: flex; align-items: center; gap: 8px; margin-top: 14px; }
.hk-btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 52px; border-radius: 14px; border: 0; font: inherit;
  font-size: 1.05rem; font-weight: 700; cursor: pointer; color: #fff; transition: transform .1s, filter .15s; touch-action: manipulation; }
.hk-btn:active { transform: scale(.98); }
.hk-btn:disabled { opacity: .6; cursor: default; }
.hk-btn.start { background: var(--hb-primary); }
.hk-btn.done { background: var(--hk-done); }
.hk-btn.ghost { flex: 0 0 auto; padding: 0 18px; background: #F1F0F8; color: var(--hb-ink); }
.hk-more { flex: none; }
.hk-allclear { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 34px 20px; border-radius: 18px; background: #F0FDF4; color: #166534; }
.hk-allclear .mud-icon-root { font-size: 2.6rem; }
.hk-allclear b { font-size: 1.15rem; }
.hk-allclear span { color: var(--hb-muted); font-size: .9rem; }
.hk-done { list-style: none; margin: 0; padding: 0; background: #fff; border: 1px solid #EDECF7; border-radius: 16px; }
.hk-done li { display: flex; align-items: center; gap: 12px; padding: 10px 14px; font-size: .88rem; }
.hk-done li + li { border-top: 1px solid #F1F0F8; }
.hk-done b { min-width: 44px; }
.hk-done li > span:nth-child(2) { color: var(--hb-muted); flex: 1; }
.hk-st { font-size: .75rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: #FEF3C7; color: #92400E; white-space: nowrap; }
.hk-st.ok, .hk-st.done { background: #DCFCE7; color: #166534; }
.hk-st.inspected { background: #CCFBF1; color: #115E59; }
.hk-st.cleaning { background: #DBEAFE; color: #1E40AF; }
.hk-st.skip { background: #F3F4F6; color: #4B5563; }
.hk-fab { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 20; display: inline-flex; align-items: center; gap: 8px;
  border: 0; border-radius: 999px; padding: 12px 18px; font: inherit; font-weight: 600; font-size: .9rem; background: var(--hb-ink); color: #fff; cursor: pointer;
  box-shadow: 0 10px 24px -8px rgba(30, 27, 75, .5); }
.hk-reasons { display: flex; flex-wrap: wrap; gap: 8px; }
.hk-reasons button { border: 1px solid #E4E2F5; background: #fff; border-radius: 999px; padding: 8px 14px; font: inherit; font-size: .85rem; cursor: pointer; }
.hk-reasons button.on { background: var(--hb-primary); border-color: var(--hb-primary); color: #fff; }

/* Cleaning board */
.hk-date { max-width: 170px; }
.hk-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-bottom: 20px; }
.hk-tile { --c: var(--hk-todo); position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; text-align: left; border: 1px solid #E8E8EF; background: #fff; border-radius: 16px; padding: 12px 14px 12px 18px; font: inherit;
  color: var(--hb-ink); cursor: pointer; overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.hk-tile::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--c); }
.hk-tile.on { border-color: var(--c); box-shadow: 0 0 0 1px var(--c); }
.hk-tile small { display: block; font-size: .78rem; color: var(--hb-muted); }
.hk-tile b { display: block; font-size: 1.6rem; font-weight: 700; line-height: 1.2; }
.hk-tile b i { font-style: normal; font-size: .8rem; font-weight: 600; color: var(--hb-muted); }
.hk-tile span { font-size: .75rem; color: var(--hb-muted); }
.hk-tile.cleaning { --c: var(--hk-cleaning); }
.hk-tile.inspect { --c: var(--hk-insp); }
.hk-tile.done { --c: var(--hk-done); }
.hk-tile.skip { --c: var(--hk-skip); }
.hk-tile.rooms { --c: var(--hb-primary); cursor: default; }
.hk-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.hk-side { display: flex; flex-direction: column; gap: 20px; }
.hk-filter { display: inline-flex; flex-wrap: nowrap; max-width: 100%; overflow-x: auto; scrollbar-width: none; gap: 4px; background: #F3F2FB; border-radius: 12px; padding: 3px; }
.hk-filter button { flex: none; white-space: nowrap; border: 0; background: none; font: inherit; font-size: .8rem; font-weight: 500; color: var(--hb-muted); padding: 6px 10px; border-radius: 9px; cursor: pointer; }
.hk-filter button b { margin-left: 4px; font-weight: 600; }
.hk-filter button.on { background: #fff; color: var(--hb-primary); box-shadow: 0 1px 4px rgba(30, 27, 75, .12); }
.hk-rows { list-style: none; margin: 0; padding: 0; }
.hk-row { --c: var(--hk-todo); display: grid; grid-template-columns: 64px minmax(0, 1fr) 190px 150px 150px; align-items: center; gap: 12px; padding: 10px 4px; border-bottom: 1px solid #F1F0F8; }
.hk-row:last-child { border-bottom: 0; }
.hk-row.cleaning { --c: var(--hk-cleaning); }
.hk-row.done { --c: var(--hk-done); }
.hk-row.inspected { --c: var(--hk-insp); }
.hk-row.skip { --c: var(--hk-skip); }
.hk-row-no { display: grid; place-items: center; height: 46px; border-radius: 12px; font-weight: 800; font-size: 1.1rem; color: color-mix(in srgb, var(--c) 75%, #1E1B4B);
  background: color-mix(in srgb, var(--c) 12%, #fff); }
.hk-row-main { display: flex; flex-direction: column; min-width: 0; }
.hk-row-main > span:first-of-type { font-size: .8rem; color: var(--hb-muted); }
.hk-row-state { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.hk-row-state small { color: var(--hb-muted); font-size: .75rem; }
.hk-row-act { display: flex; justify-content: flex-end; align-items: center; gap: 4px; }
.hk-who { font-size: .85rem; }
.hk-loads { list-style: none; margin: 0; padding: 0; }
.hk-loads li { display: flex; align-items: center; gap: 10px; padding: 8px 0; }
.hk-av { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: .78rem; font-weight: 700; color: var(--hb-primary); background: #EEEBFD; }
.hk-load-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.hk-load-main b { font-size: .88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hk-bar { height: 6px; border-radius: 999px; background: #EEF0F3; overflow: hidden; }
.hk-bar > span { display: block; height: 100%; background: var(--hk-done); border-radius: inherit; }
.hk-load-n { font-size: .8rem; color: var(--hb-muted); white-space: nowrap; }
.hk-load-n b { color: var(--hb-ink); }
.hk-set-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; }
@media (max-width: 1100px) { .hk-grid { grid-template-columns: minmax(0, 1fr); } }
/* Task rows stack by the list's own width (the side panel or a narrow window), not only on phones. */
.hk-rows { container: hkrows / inline-size; }
@container hkrows (max-width: 720px) {
  .hk-row { grid-template-columns: 52px minmax(0, 1fr) auto; grid-template-areas: "no main act" "no who state"; row-gap: 6px; }
  .hk-row-no { grid-area: no; height: 52px; align-self: start; }
  .hk-row-main { grid-area: main; }
  .hk-row-who { grid-area: who; min-width: 0; }
  .hk-row-state { grid-area: state; align-items: flex-end; }
  .hk-row-act { grid-area: act; }
  /* Passed shrinks to its tick (the word stays for screen readers). */
  .hk-row-act .mud-button-root { min-width: 0; padding: 6px 10px; }
  .hk-row-act .mud-button-icon-start { margin: 0; }
  .hk-pass-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (max-width: 760px) {
  .hk-tiles { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .hk-date { max-width: none; }
}
}

/* Room board: housekeeping in progress and inspected rooms */
.fb-card, .fb-dlg { --fb-cleaning: #2563EB; --fb-insp: #0D9488; }
.fb-seg.cleaning, .fb-dot.cleaning { background: var(--fb-cleaning); }
.fb-tile.cleaning, .fb-dlg-head.cleaning, .fb-hk-opt.cleaning { --c: var(--fb-cleaning); }
.fb-hk-opt.inspected { --c: var(--fb-insp); }
.fb-badge.insp { background: #CCFBF1; color: #115E59; }

/* Companies & travel agents (city ledger) */
.co-search { flex: 1 1 240px; }
.co-totals { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 16px; }
.co-totals > div, .co-stat { padding: 12px 14px; border: 1px solid #EEF0F7; border-radius: 14px; background: #fff; }
.co-totals small, .co-stat small { display: block; font-size: .76rem; color: var(--hb-muted); }
.co-totals strong, .co-stat strong { display: block; font-size: 1.3rem; font-weight: 600; margin-top: 2px; font-variant-numeric: tabular-nums; }
.co-totals .warn, .co-stat.warn { border-color: #FECACA; background: #FEF2F2; }
.co-totals .warn strong, .co-stat.warn strong { color: #B91C1C; }
.co-list { display: flex; flex-direction: column; border: 1px solid #EEF0F7; border-radius: 14px; overflow: hidden; background: #fff; }
.co-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) 170px 150px; align-items: center; gap: 12px; padding: 10px 14px; color: inherit; text-decoration: none; border-bottom: 1px solid #F1F0F9; }
.co-row:last-child { border-bottom: 0; }
.co-row:hover, .co-row:focus-visible { background: #F8F8FE; }
.co-row.off { opacity: .6; }
.co-avatar { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: #EEF2FF; color: #4F46E5; }
.co-avatar.agent { background: #FFF7ED; color: #C2410C; }
.co-main { min-width: 0; display: flex; flex-direction: column; }
.co-main b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.co-main small, .co-limit small, .co-bal small { font-size: .76rem; color: var(--hb-muted); overflow-wrap: anywhere; }
.co-limit { font-size: .84rem; display: flex; flex-direction: column; }
.co-bal { text-align: right; display: flex; flex-direction: column; font-variant-numeric: tabular-nums; }
.co-bal b.over { color: #B91C1C; }
.co-bal b.cr, .co-line-amt.cr { color: #047857; }
.co-bal small.co-overdue { color: #B91C1C; font-weight: 600; }
@media (max-width: 760px) {
  .co-row { grid-template-columns: 36px minmax(0, 1fr) auto; grid-template-areas: "av main bal" "av limit bal"; row-gap: 2px; }
  .co-avatar { grid-area: av; align-self: start; width: 32px; height: 32px; }
  .co-main { grid-area: main; }
  .co-limit { grid-area: limit; flex-direction: row; gap: 4px; font-size: .78rem; color: var(--hb-muted); }
  .co-bal { grid-area: bal; }
}

.co-back { margin: -8px 0 8px; }
.co-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.co-stat.main { background: linear-gradient(135deg, #7AB8FF, #4F8CFF); color: #fff; border: 0; }
.co-stat.main small { color: rgba(255,255,255,.9); }
.co-stat.main.cr { background: linear-gradient(135deg, #3DDCCB, #22C1C3); }
.co-ageing { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 12px 0 4px; }
.co-age { position: relative; padding: 8px 10px 12px; border-radius: 10px; background: #F8F8FE; font-size: .8rem; overflow: hidden; }
.co-age span { display: block; color: var(--hb-muted); }
.co-age b { font-variant-numeric: tabular-nums; }
.co-age i { position: absolute; left: 0; bottom: 0; height: 4px; background: #F59E0B; border-radius: 0 4px 4px 0; }
.co-age:first-child i { background: #4F8CFF; }
.co-age:last-child i { background: #DC2626; }
@media (max-width: 760px) {
  .co-stats, .co-ageing { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .co-stat strong, .co-totals strong { font-size: 1.1rem; }
}

.co-kinds { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 4px; }
.co-kind { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid #DCDDEB; border-radius: 999px; background: #fff; font: inherit; font-size: .84rem; cursor: pointer; color: inherit; }
.co-kind.on { border-color: var(--mud-palette-primary); background: var(--mud-palette-primary); color: #fff; }
.co-kind:focus-visible { outline: 2px solid var(--mud-palette-primary); outline-offset: 2px; }
.co-form { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 4px 12px; align-items: start; }
.co-form .co-wide { grid-column: 1 / -1; }
.co-rates { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 4px 12px; margin-top: 6px; }
.co-terms { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 6px 12px; margin: 8px 0 0; font-size: .86rem; }
.co-terms dt { color: var(--hb-muted); }
.co-terms dd { margin: 0; overflow-wrap: anywhere; }

.co-ledger { display: flex; flex-direction: column; margin-top: 8px; }
.co-line { display: grid; grid-template-columns: 54px minmax(0, 1fr) auto 32px; gap: 10px; align-items: start; padding: 8px 0; border-bottom: 1px solid #F1F0F9; font-size: .86rem; }
.co-line:last-child { border-bottom: 0; }
.co-line-date { display: flex; flex-direction: column; font-weight: 600; line-height: 1.2; }
.co-line-date small { font-weight: 400; color: var(--hb-muted); font-size: .72rem; }
.co-line-main { min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.co-line-main > a, .co-line-main > span:not(.co-tag) { overflow-wrap: anywhere; }
.co-line-main small { flex-basis: 100%; color: var(--hb-muted); font-size: .76rem; }
.co-tag { font-size: .7rem; font-weight: 600; padding: 1px 8px; border-radius: 999px; background: #EEF2FF; color: #4338CA; white-space: nowrap; }
.co-tag.payment { background: #DCFCE7; color: #166534; }
.co-tag.commission, .co-tag.commission-paid { background: #FFF7ED; color: #C2410C; }
.co-tag.adjustment { background: #F1F5F9; color: #475569; }
.co-line-amt { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; display: flex; flex-direction: column; }
.co-line-amt small { font-weight: 400; color: var(--hb-muted); font-size: .72rem; }
@media (max-width: 600px) {
  .co-line { grid-template-columns: 44px minmax(0, 1fr) auto; }
  .co-line-act { grid-column: 3; justify-self: end; }
}

/* Booking: company / travel agent box, walk-in picker */
.ca-head { display: flex; align-items: center; gap: 8px; }
.ca-name { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 6px; }
.ca-chip { font-size: .72rem; font-weight: 600; padding: 1px 8px; border-radius: 999px; background: #EEF2FF; color: #4338CA; }
.ca-chip.agent { background: #FFF7ED; color: #C2410C; }
.ca-chip.off { background: #FEF2F2; color: #B91C1C; }
.ca-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; margin-top: 10px; }
.ca-facts span { padding: 8px 10px; border-radius: 10px; background: #F8F8FE; font-size: .86rem; overflow-wrap: anywhere; }
.ca-facts small { display: block; font-size: .72rem; color: var(--hb-muted); }
.ca-bill { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 12px; padding: 10px 12px; border: 1px dashed #C7D2FE; border-radius: 12px; background: #F5F7FF; }
.ca-bill .mud-input-control.ca-bill-pick { flex: 1 1 220px; max-width: 320px; margin: 0; }
.ca-link { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.ca-link .ca-picker { flex: 1 1 240px; max-width: 420px; margin: 0; }
.cp-item { display: flex; flex-direction: column; line-height: 1.25; }
.cp-item small { color: var(--hb-muted); font-size: .76rem; }
.nb-company { margin-top: 4px; max-width: 520px; }

/* Price suggestions */
.ps-empty { display: flex; gap: .6rem; align-items: center; padding: .9rem 1rem; border-radius: 12px; background: var(--mud-palette-background-gray); color: var(--mud-palette-text-secondary); }
.ps-bar { display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin-bottom: .4rem; }
.ps-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.ps-list li { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "pick when price" "pick why why" "pick meter meter"; column-gap: .5rem; row-gap: .15rem;
  align-items: center; padding: .55rem .7rem; border: 1px solid var(--mud-palette-lines-default); border-left: 4px solid var(--ps-c); border-radius: 12px; }
.ps-recent li { grid-template-columns: 1fr auto; grid-template-areas: "when price" "why why"; }
.ps-list li.up { --ps-c: var(--mud-palette-success); }
.ps-list li.down { --ps-c: var(--mud-palette-warning); }
.ps-list li > .mud-checkbox { grid-area: pick; margin: 0; }
.ps-when { grid-area: when; display: flex; flex-direction: column; min-width: 0; }
.ps-when small, .ps-why, .ps-rule-name small { color: var(--mud-palette-text-secondary); font-size: .78rem; }
.ps-price { grid-area: price; display: flex; align-items: center; gap: .3rem; white-space: nowrap; }
.ps-price s { color: var(--mud-palette-text-secondary); font-size: .85rem; }
.ps-price b { color: var(--ps-c); font-size: 1.05rem; }
.ps-price .mud-icon-root { color: var(--ps-c); }
.ps-why { grid-area: why; }
.ps-meter { grid-area: meter; height: 4px; border-radius: 4px; background: var(--mud-palette-lines-default); overflow: hidden; }
.ps-meter span { display: block; height: 100%; background: var(--ps-c); }
.ps-rules { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.ps-rules li { padding: .6rem .7rem; border: 1px solid var(--mud-palette-lines-default); border-radius: 12px; }
.ps-rule-name { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; }
.ps-rule-fields { display: grid; grid-template-columns: 1fr 1fr 4.75rem; gap: .4rem; }
.ps-rule-foot { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.ps-grow { flex: 1; }

/* Promo codes form: fields side by side, stacked on a phone. */
.hb-promo-row { display: flex; gap: 12px; }
.hb-promo-row > * { flex: 1 1 0; min-width: 0; }
@media (max-width: 600px) { .hb-promo-row { flex-direction: column; gap: 0; } }

/* Modules the platform set to read only for the hotel (Super Admin → hotel → Modules) */
.hb-mod-ro { margin-left: 2px; padding: 1px 7px; border-radius: 999px; font-size: .62rem; font-weight: 600; letter-spacing: .02em; background: #FFF4E0; color: #8A5A00; }
.hb-modules a.on .hb-mod-ro { background: rgba(255, 255, 255, .25); color: #fff; }
.hb-banner-ro { background: #FFF8EC; }
.td-modules { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 8px 16px; }
.td-module { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; padding: 8px 12px; border: 1px solid #EEF0F7; border-radius: 12px; }
@media (max-width: 600px) { .td-modules { grid-template-columns: 1fr; } .hb-banner { margin: 12px 12px 0; } }

/* Backups page: long file names and folder paths wrap instead of widening the card. */
.bk-wrap { overflow-wrap: anywhere; font-size: .8rem; }
/* Saved (own) staff roles on Admin → Staff */
.sa-own { display: inline-flex; align-items: center; gap: 2px; padding: 0 4px 0 0; border-color: #D9D4FB; background: #F6F4FF; }
.sa-own-pick { display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; font: inherit; color: inherit; cursor: pointer; padding: 6px 4px 6px 10px; }
.sa-own-pick .mud-icon-root { font-size: 1rem; color: #FFB547; }
.sa-own-del { border: 0; background: none; cursor: pointer; color: var(--hb-muted); border-radius: 50%; width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; }
.sa-own-del:hover { background: #FFE5EA; color: #FF5C7A; }
.sa-own.on { background: var(--hb-primary); border-color: var(--hb-primary); color: #fff; }
.sa-own.on .sa-own-del { color: rgba(255,255,255,.8); }
.sa-save { display: flex; gap: 8px; align-items: center; margin: 6px 0 4px; }
.sa-save .mud-input-control { flex: 1; }
@media (max-width: 600px) { .sa-save { flex-direction: column; align-items: stretch; } }
