/* Hotel PMS — one stylesheet, no build step. */
:root {
  --ink: #111827;
  --ink-2: #374151;
  --muted: #4B5563;
  --faint: #6B7280;
  --line: #DDE3EA;
  --line-2: #EEF1F5;
  --field: #CBD3DD;
  --bg: #EEF1F5;
  --surface: #FFFFFF;
  --surface-2: #F8FAFC;
  --bar: #245A8C;
  --bar-hover: #2E6BA3;
  --bar-active: #1B4870;
  --primary: #1D4ED8;
  --primary-ink: #FFFFFF;
  --primary-soft: #EFF4FF;
  --accent: #F7D774;
  --danger: #B91C1C;
  --danger-soft: #FEF2F2;
  --ok: #166534;
  --ok-soft: #ECFDF3;
  --warn: #9A3412;
  --warn-soft: #FFF7ED;
  --info-soft: #EFF6FF;
  --radius: 10px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 14px; line-height: 1.45;
}
a { color: var(--primary); }
a:hover { color: #1E3A8A; }
h1, h2, h3 { margin: 0; line-height: 1.25; }
h1 { font-size: 20px; font-weight: 700; }
h2 { font-size: 16px; font-weight: 700; }
h3 { font-size: 14px; font-weight: 700; }
:focus-visible { outline: 3px solid #93C5FD; outline-offset: 2px; }

/* ---------- Layout ---------- */
.appbar {
  position: sticky; top: 0; z-index: 30; display: flex; flex-wrap: wrap; align-items: stretch; gap: 0 8px;
  min-height: 48px; padding: 0 16px; background: var(--bar); color: #FFF;
}
.appbar .brand { display: flex; flex-direction: column; justify-content: center; padding: 6px 16px 6px 0; color: #FFF; text-decoration: none; }
.appbar .brand b { font-size: 15px; }
.appbar .brand span { font-size: 11px; color: #BFD3E8; }
.appnav { display: flex; flex-wrap: wrap; align-items: stretch; flex: 1 1 auto; }
.appnav a { display: flex; align-items: center; padding: 0 14px; min-height: 48px; color: #E3ECF5; text-decoration: none; font-size: 14px; }
.appnav a:hover { background: var(--bar-hover); color: #FFF; }
.appnav a[aria-current="page"] { background: var(--bar-active); color: #FFF; font-weight: 700; box-shadow: inset 0 -3px 0 var(--accent); }
.appuser { display: flex; align-items: center; gap: 4px; font-size: 13px; }
.appuser .who { font-weight: 700; padding: 0 10px; }
.appuser a, .appuser button { display: inline-flex; align-items: center; min-height: 48px; padding: 0 10px; color: #E3ECF5; background: none; border: none;
  font: inherit; font-size: 13px; cursor: pointer; text-decoration: none; }
.appuser a:hover, .appuser button:hover { background: var(--bar-hover); color: #FFF; }
.pagehead { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 24px; background: var(--surface); border-bottom: 1px solid var(--line); }
.pagehead .title { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.page { padding: 16px 24px 32px; display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
.col-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.col-side { flex: 1 1 320px; max-width: 100%; min-width: 0; display: flex; flex-direction: column; gap: 16px; }

/* ---------- Surfaces ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.card.flush { padding: 0; overflow: hidden; gap: 0; }
.card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.card.flush .card-head { padding: 16px 20px; }
.note { font-size: 12px; color: var(--faint); margin: 0; }
.muted { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 0 16px; border-radius: 8px; border: 1px solid var(--field);
  background: var(--surface); color: var(--ink); font: inherit; font-size: 14px;
  text-decoration: none; cursor: pointer; white-space: nowrap;
}
.btn:hover { background: var(--surface-2); color: var(--ink); }
.btn-primary { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); font-weight: 600; }
.btn-primary:hover { background: #1E40AF; color: #FFF; }
.btn-accent { background: var(--accent); border-color: var(--accent); font-weight: 700; }
.btn-accent:hover { background: #F2CB4C; }
.btn-danger { border-color: #FCA5A5; color: var(--danger); }
.btn-danger:hover { background: var(--danger-soft); color: var(--danger); }
.btn-dashed { border-style: dashed; border-color: #94A3B8; background: var(--surface-2); }
.btn-sm { min-height: 36px; padding: 0 12px; font-size: 13px; }
.btn-link { border: none; background: none; padding: 0; min-height: 40px; color: var(--primary); font-weight: 700; }
.btn-link:hover { background: none; text-decoration: underline; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
form.inline { display: inline; }

/* ---------- Forms ---------- */
.grid { display: grid; gap: 14px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--muted); }
.field > label { font-weight: 500; }
.field input[type=text], .field input[type=email], .field input[type=password], .field input[type=number],
.field input[type=time], .field input[type=date], .field input[type=datetime-local], .field input[type=search], .field input[type=tel],
.field select, .field textarea, .input {
  width: 100%; min-height: 44px; padding: 0 10px; border: 1px solid var(--field); border-radius: 8px;
  font: inherit; font-size: 14px; color: var(--ink); background: var(--surface);
}
.field textarea { padding: 10px; min-height: 80px; resize: vertical; }
.field input[type=color] { width: 64px; height: 40px; padding: 2px; border: 1px solid var(--field); border-radius: 6px; background: #FFF; }
.field.check { flex-direction: row; align-items: center; gap: 10px; font-size: 14px; color: var(--ink); min-height: 40px; }
.field.check input { width: 18px; height: 18px; margin: 0; }
.field .help { font-size: 12px; color: var(--faint); }
.field .err, .errorlist { color: var(--danger); font-size: 12px; margin: 0; padding: 0; list-style: none; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #DC2626; }
.field input[type=file] { font-size: 13px; }

/* ---------- Messages ---------- */
.alert { margin: 0; padding: 12px 14px; border-radius: 8px; font-size: 14px; line-height: 1.45; }
.alert-success { background: var(--ok-soft); color: var(--ok); }
.alert-error { background: var(--danger-soft); color: #991B1B; }
.alert-warning { background: var(--warn-soft); color: var(--warn); }
.alert-info { background: var(--info-soft); color: #1E3A8A; }
.messages { display: flex; flex-direction: column; gap: 8px; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; color: var(--faint); font-size: 12px; font-weight: 600; background: var(--surface-2); padding: 10px 16px; white-space: nowrap; }
.table td { padding: 8px 16px; border-top: 1px solid var(--line-2); vertical-align: middle; }
.table tr.selected td { background: var(--primary-soft); }
.table tr.off td { color: #9CA3AF; }
.num { text-align: right; white-space: nowrap; }
.empty { padding: 32px 20px; text-align: center; color: var(--muted); }

/* ---------- Badges ---------- */
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: #F1F5F9; color: var(--ink); white-space: nowrap; }
.badge-owner { background: #E0E7FF; }
.badge-senior { background: #DCFCE7; }
.badge-reception { background: #FEF3C7; }
.badge-viewer { background: #F1F5F9; }
.badge-off { background: #F3F4F6; color: var(--faint); }
.tag-risky { font-size: 11px; font-weight: 600; color: #B45309; }

/* ---------- Settings home ---------- */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.set-card {
  min-height: 150px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 20px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none;
}
.set-card:hover { border-color: var(--primary); box-shadow: 0 2px 8px rgba(29, 78, 216, 0.08); }
.set-card b { font-size: 15px; color: var(--primary); }
.set-card span { font-size: 13px; color: var(--muted); line-height: 1.4; }
.set-card svg { width: 44px; height: 44px; stroke: var(--primary); margin-bottom: 6px; }
.set-card.disabled { background: var(--surface-2); border-style: dashed; border-color: var(--field); pointer-events: none; }
.set-card.disabled b, .set-card.disabled span { color: var(--faint); }
.set-card.disabled svg { stroke: var(--faint); }

/* ---------- Staff ---------- */
.staff-list { display: flex; flex-direction: column; }
.staff-item {
  min-height: 60px; display: flex; align-items: center; gap: 12px; padding: 8px 20px;
  border-top: 1px solid var(--line-2); border-left: 4px solid transparent; text-decoration: none; color: var(--ink);
}
.staff-item:hover { background: var(--surface-2); color: var(--ink); }
.staff-item.selected { background: var(--primary-soft); border-left-color: var(--primary); }
.staff-item.inactive { color: #9CA3AF; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: #E5E9F0; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; color: var(--ink-2); flex: none; }
.staff-item .who { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.staff-item .who small { font-size: 12px; color: var(--muted); }
.perm-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
fieldset.group { margin: 0; border: 1px solid #E5E9EF; border-radius: var(--radius); padding: 10px 14px; display: flex; flex-direction: column; }
fieldset.group legend { padding: 0 6px; font-size: 13px; font-weight: 700; }
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; padding: 14px; border-radius: var(--radius); background: var(--surface-2); }
details.panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
details.panel > summary { cursor: pointer; padding: 14px 20px; font-weight: 700; list-style: none; min-height: 44px; }
details.panel > summary::-webkit-details-marker { display: none; }
details.panel > div { padding: 0 20px 20px; display: flex; flex-direction: column; gap: 12px; }

/* ---------- Login ---------- */
.auth { min-height: 100vh; background: var(--bar); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 32px 16px; }
.auth-box { width: 100%; max-width: 400px; background: var(--surface); border-radius: 14px; padding: 32px; display: flex; flex-direction: column; gap: 20px; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35); }
.auth-head { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.auth-head img { max-width: 120px; max-height: 72px; object-fit: contain; }
.auth .field input { min-height: 48px; font-size: 15px; }
.auth .btn { min-height: 48px; font-size: 15px; }
.pw { display: flex; gap: 6px; }
.pw input { flex: 1; min-width: 0; }
.auth-foot { font-size: 12px; color: #D6E3F0; }

/* ---------- History ---------- */
.changes { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.changes s { color: var(--faint); }
.pager { display: flex; gap: 8px; align-items: center; justify-content: center; padding: 12px; }

@media (max-width: 760px) {
  .grid-2, .grid-3, .grid-4, .grid-5, .perm-groups { grid-template-columns: minmax(0, 1fr); }
  .page { padding: 16px; }
  .pagehead { padding: 10px 16px; }
  .appuser .who { display: none; }
}
@media print {
  .appbar, .actions { display: none !important; }
  body { background: #FFF; }
}

/* ---------- Chess board ---------- */
.page-wide { padding: 10px 14px 24px; gap: 8px; }
.chess-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 8px 10px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); font-size: 13px; }
.chess-bar input, .chess-bar select { min-height: 34px; border: 1px solid var(--field); border-radius: 6px; padding: 0 8px; font: inherit; font-size: 13px; background: #FFF; color: var(--ink); }
.chess-bar .cb-f { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.chess-bar .dp { width: 112px; }
.chess-bar .cb-days { width: 64px; }
.chess-bar .cb-num { width: 80px; }
.chess-bar .cb-arrow { display: inline-flex; align-items: center; justify-content: center; width: 34px; min-height: 34px; border-radius: 6px;
  color: var(--ink); text-decoration: none; font-size: 20px; }
.chess-bar .cb-arrow:hover { background: var(--surface-2); }
.chess-bar .cb-new { margin-left: auto; }
.chess-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; font-size: 12px; color: var(--ink-2); padding: 0 4px; }
.chess-legend i { display: inline-block; width: 14px; height: 10px; border-radius: 3px; vertical-align: -1px; margin-right: 5px; }
.chess-legend .sep { margin-left: 8px; color: var(--muted); }
.chess-legend .hint { color: var(--faint); }
.chess { --lab-w: 190px; overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); user-select: none; }
.ch-row { display: flex; border-bottom: 1px solid var(--line-2); }
.ch-row.off { color: #9CA3AF; }
.ch-lab { position: sticky; left: 0; z-index: 4; width: var(--lab-w); flex: none; display: flex; align-items: center; gap: 8px;
  padding: 0 10px; background: var(--surface); border-right: 1px solid var(--line); font-size: 13px; }
.ch-lab3 { display: grid; grid-template-columns: 70px 1fr 40px; padding: 0; }
.ch-lab3 > span { padding: 0 8px; display: flex; align-items: center; gap: 6px; height: 100%; border-right: 1px solid var(--line-2); }
.ch-lab3 > span:last-child { border-right: none; justify-content: center; }
.ch-lab3 .no { font-weight: 700; }
.ch-lab .cnt { margin-left: auto; padding: 0 7px; border-radius: 999px; background: #FDE68A; font-size: 12px; font-weight: 700; }
.ch-head .ch-lab { background: var(--surface-2); font-weight: 700; color: var(--muted); font-size: 12px; }
.ch-head .ch-lab3 > span { justify-content: center; }
.ch-track { position: relative; flex: 1 1 auto; display: flex; min-width: 0; }
.ch-cell { flex: 1 1 0; min-width: 0; border-right: 1px solid var(--line-2); display: block; }
a.ch-cell:hover { background: #EAF2FF; }
.ch-cell.we { background: #FFFBEA; } .ch-cell.td { background: #EEF5FF; }
.ch-cell.drop { background: #DBEAFE; }
.ch-month { flex: none; text-align: center; padding: 5px 0; font-size: 12px; font-weight: 700; color: var(--ink-2); border-right: 1px solid var(--line); background: var(--surface-2); overflow: hidden; white-space: nowrap; }
.ch-day { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; padding: 3px 0; border-right: 1px solid var(--line-2); font-size: 10px; color: var(--faint); background: var(--surface-2); }
.ch-day b { font-size: 13px; color: var(--ink); font-weight: 600; }
.ch-day.we { background: #FFF5D6; } .ch-day.we span { color: #B45309; }
.ch-day.td { background: #DBEAFE; } .ch-day.td b { color: var(--primary); }
.ch-free .ch-lab { background: var(--surface-2); font-weight: 700; color: var(--muted); font-size: 12px; }
.ch-free .ch-cell { display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; height: 28px; }
.ch-free .low { color: #C2410C; }
.ch-unassigned .ch-lab, .ch-unassigned .ch-cell { background: #FFFBEB; }
.dot { width: 10px; height: 10px; border-radius: 50%; flex: none; display: inline-block; border: none; padding: 0; }
button.dot { cursor: pointer; width: 12px; height: 12px; box-shadow: 0 0 0 2px #FFF, 0 0 0 3px transparent; }
button.dot:hover { box-shadow: 0 0 0 2px #FFF, 0 0 0 4px #93C5FD; }
.dot.clean { background: #16A34A; } .dot.dirty { background: #F59E0B; } .dot.off { background: #9CA3AF; }
.ch-lab form { display: inline-flex; }
.bar { position: absolute; height: 24px; border-radius: 12px; border-width: 2px; padding: 0 8px 0 5px; display: flex; align-items: center; gap: 4px;
  overflow: hidden; white-space: nowrap; font-size: 12px; color: #111827; text-decoration: none; z-index: 2; box-sizing: border-box; }
.bar.cut-l { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.bar.cut-r { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.bar:hover { box-shadow: 0 0 0 2px #111827; color: #111827; z-index: 3; }
.bar.movable { cursor: grab; }
.bar .ic { width: 13px; height: 13px; flex: none; fill: currentColor; opacity: .75; }
.bar .lbl { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; font-weight: 500; }
.bar .debt { flex: none; padding: 0 5px; border-radius: 6px; background: #FFF; font-size: 11px; font-weight: 700; }
.bar.narrow .debt { display: none; }
.bar .nt { flex: none; font-weight: 800; }
.bar .h { position: absolute; top: 0; bottom: 0; width: 8px; cursor: ew-resize; z-index: 2; }
.bar .h-l { left: 0; } .bar .h-r { right: 0; }
.bar .h:hover { background: rgba(17,24,39,.18); }
.bar.ghost { opacity: .85; pointer-events: none; box-shadow: 0 6px 18px rgba(0,0,0,.25); z-index: 10; }
.bar.lifted { opacity: .35; }
body.dragging, body.dragging * { cursor: grabbing !important; }
body.resizing, body.resizing * { cursor: ew-resize !important; }
.toast { position: fixed; right: 20px; bottom: 20px; z-index: 60; max-width: 440px; padding: 12px 16px; border-radius: 8px; font-size: 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,.18); }
dialog.ask { border: none; border-radius: 12px; padding: 0; width: min(460px, calc(100vw - 32px)); box-shadow: 0 20px 50px rgba(0,0,0,.3); }
dialog.ask::backdrop, dialog.bk-modal::backdrop { background: rgba(15, 23, 42, .45); }
dialog.ask form { padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.ask-body table { width: 100%; border-collapse: collapse; font-size: 14px; }
.ask-body td { padding: 6px 4px; border-bottom: 1px solid var(--line-2); }
.ask-body td:first-child { color: var(--muted); width: 90px; }
.ask-body .chg { font-weight: 700; color: var(--primary); }
.ask-body s { color: var(--faint); }
dialog.bk-modal { border: none; padding: 0; border-radius: 10px; width: min(1180px, calc(100vw - 24px)); height: calc(100vh - 32px);
  max-height: none; box-shadow: 0 20px 60px rgba(0,0,0,.35); overflow: hidden; }
dialog.bk-modal iframe { width: 100%; height: 100%; border: 0; display: block; background: var(--bg); }

/* ---------- Booking ---------- */
.pill { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; color: #111827; }
.kv { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 16px; margin: 0; }
.kv dt { font-size: 12px; color: var(--faint); }
.kv dd { margin: 2px 0 0; font-weight: 600; }
.sum-box { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.sum-box div { display: flex; justify-content: space-between; gap: 12px; }
.sum-box .total { padding-top: 10px; border-top: 2px solid var(--ink); font-weight: 700; }
.sum-box .total span:last-child { font-size: 20px; }
.picker { position: relative; }
.picker-list { position: absolute; z-index: 20; left: 0; right: 0; top: 100%; margin-top: 4px; background: #FFF; border: 1px solid var(--line);
  border-radius: 8px; box-shadow: 0 8px 24px rgba(17,24,39,.12); max-height: 320px; overflow-y: auto; }
.picker-list button { display: block; width: 100%; text-align: left; padding: 10px 12px; border: none; background: none; cursor: pointer; font: inherit; font-size: 14px; border-bottom: 1px solid var(--line-2); }
.picker-list button:hover { background: var(--primary-soft); }
.picker-list small { color: var(--faint); }
.chosen { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; border-radius: 8px; background: var(--primary-soft); }
tr.storno td { color: #9CA3AF; text-decoration: line-through; }
tr.storno td.why { text-decoration: none; }
.inline-storno { display: flex; gap: 6px; }
.inline-storno input { min-height: 36px; width: 160px; }
@media (max-width: 760px) { .kv { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
details > summary { cursor: pointer; list-style: none; }
details > summary::-webkit-details-marker { display: none; }
[hidden] { display: none !important; }
.sum-box div span:last-child { white-space: nowrap; text-align: right; }
.stack { display: flex; flex-direction: column; gap: 12px; }

/* ---------- Booking window ---------- */
.page-modal { padding: 0 0 24px; gap: 0; }

body.in-modal { background: var(--surface-2); }
.bk { display: flex; flex-direction: column; gap: 12px; }
.page-modal .bk { gap: 0; }
.bk-top { position: sticky; top: 0; z-index: 20; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px;
  min-height: 52px; padding: 0 0 0 20px; background: var(--bar); color: #FFF; border-radius: var(--radius); }
.page-modal .bk-top { border-radius: 0; }
.bk-title { display: flex; align-items: center; gap: 12px; }
.bk-title h1 { font-size: 17px; color: #FFF; }
.bk-title h1 small { font-weight: 400; font-size: 13px; color: #CFE0F1; }
.bk-back { color: #FFF; text-decoration: none; font-size: 20px; }
.bk-menus { display: flex; align-items: stretch; gap: 0; align-self: stretch; }
.dd { position: relative; display: flex; }
.dd > summary { display: flex; align-items: center; gap: 6px; padding: 0 16px; color: #E3ECF5; cursor: pointer; font-size: 14px; list-style: none; }
.dd > summary:hover, .dd[open] > summary { background: var(--bar-hover); color: #FFF; }
.dd-list { position: absolute; right: 0; top: 100%; z-index: 30; min-width: 280px; padding: 4px 0; background: var(--bar); box-shadow: 0 10px 30px rgba(0,0,0,.25);
  display: flex; flex-direction: column; }
.dd-list form { display: block; }
.dd-list button { display: block; width: 100%; text-align: left; padding: 10px 16px; background: none; border: none; border-top: 1px solid rgba(255,255,255,.12);
  color: #FFF; font: inherit; font-size: 14px; cursor: pointer; }
.dd-list button:hover:not([disabled]) { background: var(--bar-hover); }
.dd-list button[disabled] { color: #9DB6CF; cursor: default; }
.dd-list button.danger { color: #FECACA; }
.dd-group { padding: 8px 16px 4px; font-size: 12px; color: #BFD3E8; }
.dd-note { padding: 8px 16px; font-size: 12px; color: #FDE68A; }
.bk-save { align-self: center; margin: 0 12px; min-height: 36px; }
.bk-x { width: 52px; background: none; border: none; color: #FFF; font-size: 18px; cursor: pointer; }
.bk-x:hover { background: #B91C1C; }
.bk-sheet, .bk-sec { background: var(--surface); padding: 16px 20px; border-bottom: 2px solid var(--bar); display: flex; flex-direction: column; gap: 10px; }
.page .bk-sheet, .page .bk-sec { border: 1px solid var(--line); border-radius: var(--radius); }
.page-modal .bk-sheet, .page-modal .bk-sec { border-radius: 0; border-left: none; border-right: none; border-top: none; }
.bk-grid { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 0 28px; }
.bk-grid > div { display: flex; flex-direction: column; gap: 6px; }
.bkf { display: grid; grid-template-columns: 92px minmax(0, 1fr); align-items: start; gap: 8px; font-size: 13px; }
.bkf > label { padding-top: 8px; color: var(--muted); }
.bkf-in { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-width: 0; }
.bkf-in > input:not([type=checkbox]), .bkf-in > select, .bkf-in > textarea, .bkf-in .guest-q {
  flex: 1 1 140px; min-width: 0; min-height: 34px; padding: 0 8px; border: none; border-bottom: 1px solid var(--field); border-radius: 0;
  background: transparent; font: inherit; font-size: 14px; color: var(--ink); }
.bkf-in > textarea { padding: 6px 8px; min-height: 40px; resize: vertical; }
.bkf-in > input:focus, .bkf-in > select:focus, .bkf-in > textarea:focus { outline: none; border-bottom: 2px solid var(--primary); background: var(--primary-soft); }
.bkf-in > [disabled] { color: var(--ink-2); border-bottom-style: dotted; }
.bkf .err { flex-basis: 100%; color: var(--danger); font-size: 12px; }
.bkf .help { flex-basis: 100%; color: var(--faint); font-size: 11px; }
.bkf.has-error .bkf-in > input, .bkf.has-error .bkf-in > select { border-bottom: 2px solid var(--danger); }
.bkf label.inl { padding: 0; color: var(--ink); }
.bk-dt .wd { width: 24px; color: var(--faint); font-size: 12px; }
.bk-dt input.dp { flex: 0 1 120px; }
.bk-dt input.tp { flex: 0 1 70px; }
.bk-nights { margin: -2px 0 0 100px; font-size: 12px; color: var(--faint); }
.bk-checks { display: flex; gap: 18px; padding-left: 100px; font-size: 13px; }
.bk-checks label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.bk-checks input { width: 18px; height: 18px; }
.bk-guest { display: flex; flex-direction: column; gap: 8px; padding-bottom: 12px; border-bottom: 1px dashed var(--line); }
.bk-guest h2 { font-size: 14px; }
.bk-sec-h { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; }
.bk-sec-h h2 { font-size: 15px; min-width: 100px; }
.bk-sec-h .bk-add { margin-left: auto; }
.bk-sum { font-size: 18px; color: var(--bar); }
.bk-money { font-size: 13px; color: var(--muted); }
.stepper { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--muted); }
.stepper span { margin-right: 4px; }
.stepper button { width: 30px; height: 30px; border: none; background: none; color: #D4A20B; font-size: 20px; cursor: pointer; border-radius: 6px; }
.stepper button:hover { background: #FEF3C7; }
.stepper input { width: 44px; min-height: 30px; text-align: center; border: none; border-bottom: 1px solid var(--field); font: inherit; font-size: 15px; -moz-appearance: textfield; }
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }
.bk-add > summary { list-style: none; }
.bk-add > summary::-webkit-details-marker { display: none; }
.bk-pop { position: absolute; right: 0; top: calc(100% + 6px); z-index: 25; width: min(440px, calc(100vw - 40px)); padding: 16px; background: #FFF;
  border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 14px 40px rgba(17,24,39,.2); display: flex; flex-direction: column; gap: 8px; }
.bk-pop h3 { margin-bottom: 4px; }
.bk-table { font-size: 13px; }
.bk-table td { padding: 8px 10px; }
.bk-history { max-height: 60vh; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }
@media (max-width: 900px) {
  .bk-grid { grid-template-columns: minmax(0, 1fr); }
  .bk-checks, .bk-nights { padding-left: 0; margin-left: 0; }
}

/* ---------- Date / time picker ---------- */
.dp-pop { position: absolute; z-index: 100; width: 260px; padding: 10px; background: #FFF; border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 14px 40px rgba(17,24,39,.22); font-size: 13px; }
.dp-head { display: flex; align-items: center; gap: 4px; margin-bottom: 8px; }
.dp-head select { flex: 1; min-height: 30px; border: 1px solid var(--line); border-radius: 6px; font: inherit; background: #FFF; }
.dp-nav { width: 30px; height: 30px; border: none; background: none; color: #D4A20B; font-size: 16px; cursor: pointer; border-radius: 6px; }
.dp-nav:hover { background: #FEF3C7; }
.dp-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.dp-wd { text-align: center; font-size: 11px; font-weight: 700; color: var(--faint); padding: 2px 0; }
.dp-wd.we { color: #B45309; }
.dp-day { height: 32px; border: none; background: none; border-radius: 50%; cursor: pointer; font: inherit; font-size: 13px; color: var(--ink); }
.dp-day:hover { background: #FEF3C7; }
.dp-day.out { color: #B8C0CC; }
.dp-day.today { box-shadow: inset 0 0 0 1px #D4A20B; }
.dp-day.sel { background: #FCD34D; font-weight: 700; }
.dp-foot { display: flex; justify-content: flex-end; margin-top: 6px; }
.dp-today { border: none; background: none; color: var(--primary); cursor: pointer; font: inherit; font-size: 12px; }
.tp-pop { width: 248px; }
.tp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.tp-grid .dp-day { border-radius: 6px; font-size: 12px; }
.dp-note { margin: 6px 0 0; font-size: 11px; color: var(--faint); }
.bk-sec-h .err { color: var(--danger); font-size: 12px; font-weight: 600; }
.bar.late { background-image: repeating-linear-gradient(135deg, rgba(220,38,38,.28) 0 6px, transparent 6px 12px) !important; box-shadow: 0 0 0 2px #DC2626; }
.bar .lt { flex: none; color: #B91C1C; font-weight: 800; }

/* ---------- Booking window, Shelter look (1.2.2) ---------- */
body.in-modal { background: var(--bg); }
.page-modal .bk > .bk-sheet, .page-modal .bk > .bk-sec { margin-left: 18px; margin-right: 18px; }
.page-modal .bk > .bk-sheet { margin-top: 14px; border-top-left-radius: 4px; border-top-right-radius: 4px; }
.page-modal .bk > .alert { margin: 10px 18px 0; }
.bk-sheet, .bk-sec { padding: 14px 24px; gap: 8px; }
.bk-sheet { border-bottom: 2px solid var(--bar); }
.bk-sec-h h2 { font-weight: 400; font-size: 15px; color: var(--ink-2); }
.bk-sum { font-size: 19px; font-weight: 400; color: #2563A8; }
.bkf { font-size: 14px; gap: 6px; }
.bkf > label { color: #6B7280; padding-top: 7px; }
.bkf-in > textarea { min-height: 34px; height: 34px; }
.bkf-in > input:not([type=checkbox]), .bkf-in > select { min-height: 32px; }
#id_status { background: #FEF3C7; border: none; border-radius: 16px; padding: 0 14px; }
#id_status:focus { background: #FDE68A; }
.bk-price input { font-weight: 600; }
.bk-price[data-manual] input { color: #B45309; }
option.busy { color: #B91C1C; }
.bk-in { padding: 10px 0 0; border: none; margin: 0 !important; }
.guest-block { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border: 1px dashed var(--line); border-radius: 8px; background: var(--surface-2); }
.guest-block h3 { font-size: 13px; font-weight: 600; color: var(--muted); }
tr.slot td { background: #FFFBEB; }
.bk-table td { padding: 7px 10px; }
.bk-top { min-height: 50px; }

/* ---------- Notices in the corner (1.2.3) ---------- */
.messages.toasts { position: fixed; right: 16px; bottom: 16px; z-index: 300; display: flex; flex-direction: column; gap: 8px;
  max-width: min(420px, calc(100vw - 32px)); padding: 0 !important; pointer-events: none; }
.messages.toasts .alert { margin: 0; pointer-events: auto; cursor: pointer; opacity: .93; box-shadow: 0 8px 24px rgba(17,24,39,.18);
  font-size: 13px; padding: 10px 14px; transition: opacity .3s, transform .3s; animation: toast-in .25s ease-out; }
.messages.toasts .alert.gone { opacity: 0; transform: translateY(8px); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: .93; transform: none; } }

/* ---------- Payment panel, Shelter style ---------- */
.bk-pay { display: flex; flex-direction: column; gap: 10px; padding: 12px 0 4px; border-top: 1px solid var(--line-2); }
.bk-pay-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 0 32px; }
.bk-pay-grid > div { display: flex; flex-direction: column; gap: 6px; }
.bkf-in.radios { gap: 18px; padding-top: 6px; }
.bkf-in.radios input, .pay-for input { width: 17px; height: 17px; accent-color: #D4A20B; }
.pay-for { flex-direction: column; align-items: flex-start; gap: 6px; padding-top: 7px; }
.pay-for label.inl { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.bk-pay-foot { display: flex; justify-content: flex-end; align-items: center; gap: 18px; padding-top: 8px; border-top: 1px solid var(--line-2); }
.btn-link-y { background: none; border: none; color: #B8860B; font: inherit; font-size: 15px; cursor: pointer; padding: 6px 4px; }
.btn-link-y:hover { text-decoration: underline; }
@media (max-width: 900px) { .bk-pay-grid { grid-template-columns: minmax(0, 1fr); } }
.bk-sec-h .bk-add-btn { margin-left: auto; }

/* ---------- Booking window 1:1 Shelter (1.2.5) ---------- */
.page-modal .bk > .bk-sheet { border-bottom: 2px solid var(--bar); padding-bottom: 6px; }
.page-modal .bk > .bk-sec { border-bottom: 2px solid var(--bar); }
.bk-sheet { gap: 4px; }
.bk-grid { grid-template-columns: 1.05fr 1fr 1fr; gap: 0 36px; }
.bk-grid > div { gap: 2px; }
.bkf { grid-template-columns: 82px minmax(0, 1fr); font-size: 14px; }
.bkf > label { color: #6B7280; font-weight: 400; }
.bk-wide { grid-template-columns: 100px minmax(0, 1fr); margin-top: 4px; }
.bk-wide > label { padding-top: 8px; color: #6B7280; font-size: 14px; }
.bkf-in > input:not([type=checkbox]):not([type=radio]), .bkf-in > select, .bkf-in > textarea { border-bottom-color: #D7DCE3; }
.bkf-in > select { appearance: none; -webkit-appearance: none; padding-right: 26px;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%239AA3AF' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 6px center; }
.bk-dt input.dp { padding-right: 26px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16'%3E%3Crect x='1.5' y='2.5' width='13' height='12' rx='1.5' fill='none' stroke='%239AA3AF'/%3E%3Cpath d='M1.5 6h13M5 1v3M11 1v3' stroke='%239AA3AF'/%3E%3C/svg%3E") no-repeat right 4px center; }
.bk-dt input.tp { padding-right: 24px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16'%3E%3Ccircle cx='8' cy='8' r='6.5' fill='none' stroke='%239AA3AF'/%3E%3Cpath d='M8 4v4l3 2' fill='none' stroke='%239AA3AF'/%3E%3C/svg%3E") no-repeat right 4px center; }
.bk-dt .wd { color: #9AA3AF; }
.bk-nights { text-align: right; margin: 0 0 4px; padding-right: 76px; }
.bk-checks { padding-left: 0; gap: 22px; margin-top: 6px; }
.bk-checks input { accent-color: #6B8E23; }
.st-sel { border: none !important; border-radius: 18px !important; padding: 0 30px 0 14px !important; min-height: 34px; font-size: 14px;
  background-color: #FEF3C7; }
.st-sel:disabled { opacity: 1; color: var(--ink); }
.ro { padding: 7px 8px; color: var(--ink-2); border-bottom: 1px solid #D7DCE3; flex: 1; min-height: 32px; }
.pct input { flex: 0 1 120px !important; }
.pct span { color: #6B7280; }
.bk-price input { color: #6B7280; font-weight: 400 !important; }
.bk-price[data-manual] input { color: #B45309; font-weight: 600 !important; }
.bk-sec-h { gap: 10px 26px; }
.stepper { gap: 6px; font-size: 13px; color: #6B7280; }
.stepper input { width: 40px; border-bottom-color: #D7DCE3; }
.stepper.meal select { min-height: 30px; border: none; border-bottom: 1px solid #D7DCE3; background: transparent; font: inherit; font-size: 14px; color: var(--ink); min-width: 170px; }
.bk-in .bk-sec-h { padding-bottom: 6px; border-bottom: 1px solid var(--line-2); }
.g-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0 36px; padding-top: 8px; }
.g-grid > div { display: flex; flex-direction: column; gap: 2px; }
.gform { display: flex; flex-direction: column; gap: 4px; }
.gform .bkf { grid-template-columns: 100px minmax(0, 1fr); }
.gform .bkf > label { font-size: 13px; padding-top: 8px; }
.gform.locked input[readonly] { color: #374151; background: #F8FAFC; }
.g-org { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line-2); }
.g-age { font-size: 12px; color: #6B7280; white-space: nowrap; }
.doc-sn input:first-child { flex: 0 1 70px !important; }
.doc-sn span { color: #9AA3AF; }
.bkf-in label.res { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: #6B7280; white-space: nowrap; }
.g-found { margin: 0; padding: 6px 10px; border-radius: 6px; background: #ECFDF3; font-size: 13px; }
.g-found.black { background: #FEE2E2; color: #991B1B; font-weight: 700; }
.gform .picker { position: relative; }
.gform .picker .picker-list { top: 100%; left: 0; right: auto; min-width: 360px; }
.gform .bkf-in { position: relative; }
.g-list { margin: 4px 0 6px; }
.g-list td { border-top: 1px solid var(--line-2); }
@media (max-width: 900px) { .g-grid { grid-template-columns: minmax(0, 1fr); } }
.bk-grid .bkf { grid-template-columns: 96px minmax(0, 1fr); }
.bk-note textarea { width: 100%; min-height: 34px; height: 34px; border: none; border-bottom: 1px solid #D7DCE3; background: transparent; font: inherit; font-size: 14px; padding: 6px 0; resize: vertical; margin-top: 6px; }
.bk-note textarea:focus { outline: none; border-bottom: 2px solid var(--primary); }
.bk-note textarea::placeholder { color: #B6BDC7; }
.bk-sec-h .stepper.meal select { min-width: 150px; }

/* ---------- Vertical menu (1.2.6) ---------- */
.shell { display: flex; min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; width: 250px; flex: none; display: flex; flex-direction: column;
  background: linear-gradient(180deg, #1A2A42 0%, #1B3150 60%, #1C3658 100%); color: #E6EDF6; z-index: 40; transition: width .15s; }
.side-brand { display: flex; flex-direction: column; gap: 2px; padding: 18px 20px 16px; color: #FFF; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.08); }
.side-brand b { font-size: 16px; line-height: 1.25; }
.side-brand span { font-size: 11px; color: #9FB4CF; }
.side-nav { display: flex; flex-direction: column; padding: 8px 0; overflow-y: auto; flex: 1; }
.side-item { position: relative; display: flex; align-items: center; gap: 16px; min-height: 52px; padding: 0 20px 0 26px;
  color: #E6EDF6; text-decoration: none; font-size: 15px; background: none; border: none; width: 100%; text-align: left; font-family: inherit; cursor: pointer; }
.side-item .ico { width: 22px; height: 22px; flex: none; }
.side-item:hover { background: rgba(255,255,255,.06); color: #FFF; }
.side-item.on { background: linear-gradient(90deg, #2A5D93 0%, #24507F 100%); color: #FFF; font-weight: 600; }
.side-item.on::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: linear-gradient(180deg, #62B5FF 0 55%, #F5C842 55% 100%); }
.side-item .lbl { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-item .soon { flex: none; padding: 1px 7px; border-radius: 999px; font-size: 10px; font-weight: 700; color: #1A2A42; background: #F5C842; opacity: .85; }
.side-foot { border-top: 1px solid rgba(255,255,255,.08); padding: 6px 0 8px; }
.side-foot form { margin: 0; }
.side-user { display: block; padding: 8px 20px 4px 26px; font-size: 13px; font-weight: 700; color: #FFF; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-item.small { min-height: 38px; font-size: 13px; color: #B8C8DC; }
.side-item.small .ico { width: 18px; height: 18px; }
.shell-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.shell.mini .side { width: 72px; }
.shell.mini .side .lbl, .shell.mini .side .soon, .shell.mini .side-user, .shell.mini .side-brand span { display: none; }
.shell.mini .side-brand b { font-size: 12px; text-align: center; }
.shell.mini .side-item { justify-content: center; padding: 0; }
.shell.mini .side-fold .ico { transform: rotate(180deg); }
.soon-card { gap: 10px; max-width: 640px; }
.soon-badge { align-self: flex-start; padding: 3px 12px; border-radius: 999px; background: #FEF3C7; color: #92400E; font-size: 12px; font-weight: 700; }
.soon-card ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; }
@media (max-width: 760px) {
  .side { width: 64px; }
  .side .lbl, .side .soon, .side-user, .side-brand span { display: none; }
  .side-item { justify-content: center; padding: 0; }
}
@media print { .side { display: none !important; } }
.side { width: 262px; }
.side-item { gap: 14px; padding-left: 24px; }
.side-item .soon { padding: 1px 6px; font-size: 10px; }
.chess-bar { gap: 6px 8px; }
.chess-bar .dp { width: 104px; }
.chess-bar .cb-num { width: 60px; }
.side { width: 276px; } .side-item { font-size: 14.5px; }

/* ---------- Settings lists (Shelter style) ---------- */
.listbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.listbar-right { margin-left: auto; font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 6px; cursor: pointer; }
.sh-table th.sel, .sh-table td.sel { width: 36px; padding-right: 0; }
.sh-table th { white-space: normal; vertical-align: bottom; }
.sh-table td { padding: 7px 10px; }
.sh-table th { padding-left: 10px; padding-right: 10px; }
.sh-table .edit-link { color: #B8860B; text-decoration: underline dotted; white-space: nowrap; font-size: 13px; }
.sh-table tr.filters td { padding: 6px 8px; border-top: none; background: var(--surface-2); }
.sh-table tr.filters input, .sh-table tr.filters select { width: 100%; min-width: 70px; min-height: 30px; border: 1px solid var(--field); border-radius: 4px; padding: 0 6px; font: inherit; font-size: 13px; background: #FFF; }
.sh-table td.num, .sh-table th.num { text-align: right; }
.sh-table .tick { color: var(--ok); font-weight: 700; }
.sh-table .nowrap { white-space: nowrap; }
.set-card.disabled { color: var(--faint); }
.sh-table a.name-link { color: #B8860B; text-decoration: underline; font-weight: 600; }
.faint { color: #B6BCC6; }
@media print { .side, .no-print, .pagehead .btn { display: none !important; } .shell-main { margin: 0 !important; } body { background: #FFF; } }
