/* Hotel: tabs (key figures, room calendar, cash, stock), the stock book, the room calendar and the cash book. */
.ht-tabs,.hs-tabs{display:flex;gap:6px;flex-wrap:wrap;margin:0 0 16px}
.ht-tabs button,.hs-tabs button{border:1px solid var(--ds-line,#e1dcea);background:var(--ds-card,#fff);color:inherit;border-radius:999px;padding:8px 16px;font:inherit;font-size:14px;cursor:pointer}
.ht-tabs button.on{background:#662d91;border-color:#662d91;color:#fff;font-weight:600}
.hs-tabs button.on{background:var(--ds-brand-soft,#f0e9f8);border-color:#b79bd8;color:#4b1f73;font-weight:600}
.hs-bar{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:0 0 14px}
.hs-bar input{font:inherit;padding:8px 10px;border:1px solid var(--ds-line,#d9d4e6);border-radius:10px;background:var(--ds-card,#fff);color:inherit}
.hs-ghost{border:1px solid var(--ds-line,#d9d4e6);background:var(--ds-card,#fff);color:inherit;border-radius:10px;padding:8px 12px;font:inherit;cursor:pointer}
.hs-ghost.small{padding:4px 10px;font-size:12px}
.hs-out{background:#b4532a!important;border-color:#b4532a!important}
.hs-card{margin:0 0 16px}
.hs-table td.n,.hs-table th.n{text-align:right;white-space:nowrap}
.hs-table td.strong{font-weight:700}
.hs-table td.m{color:var(--ds-muted,#6b6880)}
.hs-table .hs-group td{background:var(--ds-brand-soft,#f6f3fb);font-weight:700;font-size:13px}
.hs-table tr.click{cursor:pointer}.hs-table tr.click:hover td{background:var(--ds-brand-soft,#f6f3fb)}
.hs-ref{font-family:ui-monospace,Consolas,monospace;font-size:12px;white-space:nowrap}
.hs-kind{font-weight:600;white-space:nowrap}.hs-kind.in,.hs-kind.open{color:#1a7f4b}.hs-kind.out{color:#b4532a}.hs-kind.adjust{color:#7b4fd1}
.hs-doclines{display:flex;flex-wrap:wrap;gap:4px 10px;font-size:13px}
.hs-doclines span{white-space:nowrap}
.hs-deleted td{text-decoration:line-through;color:#9a96a8}.hs-deleted td:last-child{text-decoration:none}
.hs-low{display:inline-block;margin-left:8px;font-size:11px;font-weight:600;color:#b4532a;background:#fff1e8;border-radius:6px;padding:1px 6px}
.hs-lowrow td{background:#fffaf5}
.ht-tile.hs-alert{border-color:#f0b48f;background:#fff7f1}
.hs-filter{display:flex;gap:14px;align-items:center;flex-wrap:wrap;margin:0 0 10px}
.hs-search{font:inherit;padding:8px 10px;border:1px solid var(--ds-line,#d9d4e6);border-radius:10px;min-width:220px;background:var(--ds-card,#fff);color:inherit}
.hs-check{display:flex;gap:8px;align-items:center;font-size:13px;cursor:pointer}
.hs-hint{color:var(--ds-muted,#6b6880);font-size:13px;margin:0 0 12px}
.hs-dialog.wide{width:min(860px,96vw)}
.hs-dialog select,.hs-dialog .hs-line input{font:inherit;font-size:14px;padding:8px 10px;border:1px solid var(--ds-line,#d9d4e6);border-radius:10px;background:var(--ds-card,#fff);color:inherit;min-width:0}
.ht-field select{font:inherit;font-size:15px;padding:9px 11px;border:1px solid var(--ds-line,#d9d4e6);border-radius:10px;background:var(--ds-card,#fff);color:inherit}
.hs-head{margin-bottom:14px}
.hs-line{display:grid;grid-template-columns:minmax(0,2.4fr) minmax(0,1fr) minmax(0,1.1fr) minmax(0,1fr) 34px;gap:8px;align-items:center;margin:0 0 8px}
.hs-dialog:not(.priced) .hs-line{grid-template-columns:minmax(0,3fr) minmax(0,1fr) 34px}
.hs-line-head{font-size:12px;color:var(--ds-muted,#6b6880);margin-bottom:4px}
.hs-sum{text-align:right;font-size:13px;white-space:nowrap}
.hs-info{grid-column:1/-1;margin:-4px 0 2px;font-size:12px;color:#6a3fc8}
.hs-info:empty{display:none}
.hs-rm{border:0;background:none;color:#b4532a;font-size:16px;cursor:pointer}
.hs-more{display:flex;gap:8px;margin:6px 0 0}
.hs-total{text-align:right;font-weight:700;margin:10px 0 0}
.hs-total:empty{display:none}
@media (max-width:720px){.hs-line,.hs-dialog:not(.priced) .hs-line{grid-template-columns:1fr 1fr}.hs-line select{grid-column:1/-1}.hs-line-head{display:none}.hs-sum{text-align:left}}
@media print{.hs-tabs,.ht-tabs,.hs-bar,.hs-filter{display:none}}
body.ops-dark .ht-tabs button,body.ops-dark .hs-tabs button,body.ops-dark .hs-ghost,body.ops-dark .hs-bar input,body.ops-dark .hs-search,body.ops-dark .hs-dialog select,body.ops-dark .hs-dialog .hs-line input,body.ops-dark .ht-field select{background:#221f33;border-color:#3a3550;color:#ece9f7}
body.ops-dark .hs-tabs button.on{background:#3a2d55;color:#f3f0ff}
body.ops-dark .hs-table .hs-group td{background:#2d2942}
body.ops-dark .hs-lowrow td{background:#33261d}
body.ops-dark .hs-low{background:#4a2e1e;color:#f3b58f}
body.ops-dark .ht-tile.hs-alert{background:#33261d;border-color:#6b4220}
/* Room calendar */
.hb-legend{display:flex;gap:10px;flex-wrap:wrap;margin:-6px 0 10px;font-size:12px}
.hb-key{display:inline-flex;align-items:center;gap:6px}.hb-key::before{content:'';width:14px;height:10px;border-radius:3px;background:var(--hb-c)}
.hb-key.booked,.hb-bar.booked{--hb-c:#7b4fd1}.hb-key.in,.hb-bar.in{--hb-c:#1a7f4b}.hb-key.out,.hb-bar.out{--hb-c:#8f8a9e}
.hb-wrap{overflow-x:auto;border:1px solid var(--ds-line,#e7e3ee);border-radius:12px}
.hb-grid{border-collapse:separate;border-spacing:0;font-size:12px;min-width:100%}
.hb-grid th,.hb-grid td{border-right:1px solid var(--ds-line,#eee9f3);border-bottom:1px solid var(--ds-line,#eee9f3);padding:0;height:42px}
.hb-grid thead th{position:sticky;top:0;background:var(--ds-card,#fff);z-index:1;height:40px}
.hb-room{position:sticky;left:0;background:var(--ds-card,#fff);z-index:2;min-width:92px;text-align:left;padding:4px 8px!important}
.hb-room b{display:block;font-size:13px}.hb-room small{display:block;color:var(--ds-muted,#6b6880);font-weight:400;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:110px}
.hb-day{min-width:34px;width:34px;text-align:center;font-weight:400}.hb-day b{display:block;font-size:13px}.hb-day small{color:var(--ds-muted,#6b6880);font-size:10px}
.hb-day.we{background:#faf8fd}.hb-day.today{background:#efe6fb;color:#4b1f73}
.hb-cell.today{background:#f7f2fd}.hb-cell.free{cursor:pointer}.hb-cell.free:hover{background:#efe6fb}
.hb-cell.busy{padding:3px 2px}
.hb-bar{display:flex;flex-direction:column;justify-content:center;width:100%;height:36px;border:0;border-radius:8px;background:var(--hb-c);color:#fff;text-align:left;padding:2px 8px;cursor:pointer;overflow:hidden;font:inherit}
.hb-bar b{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.hb-bar small{font-size:10px;opacity:.85;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hb-bar.cont-l{border-top-left-radius:0;border-bottom-left-radius:0}.hb-bar.cont-r{border-top-right-radius:0;border-bottom-right-radius:0}
.hb-foot th,.hb-foot td{background:#faf8fd;height:30px}.hb-count{text-align:center;font-weight:600;color:#4b1f73}.hb-count.full{background:#fde9de!important;color:#a3461c}
.hb-st.booked{color:#7b4fd1;font-weight:600}.hb-st.in{color:#1a7f4b;font-weight:600}
/* Cash book */
.hc-in{color:#1a7f4b}.hc-out{color:#b4532a}
.hc-src{font-size:12px;color:var(--ds-muted,#6b6880);white-space:nowrap}.hc-src.process{color:#6a3fc8}
.hc-mix{grid-template-columns:minmax(120px,190px) 1fr auto 52px}
@media (max-width:820px){.hc-mix{grid-template-columns:110px 1fr auto}.hc-mix small{display:none}}
@media print{.hb-wrap{overflow:visible}}
body.ops-dark .hb-grid thead th,body.ops-dark .hb-room{background:#221f33}
body.ops-dark .hb-day.we,body.ops-dark .hb-foot th,body.ops-dark .hb-foot td{background:#2a2640}
body.ops-dark .hb-day.today,body.ops-dark .hb-cell.today{background:#3a2d55;color:#f3f0ff}
body.ops-dark .hb-cell.free:hover{background:#3a2d55}
/* Internal room holds and unallocated reservations. */
.hb-key.internal,.hb-bar.internal{--hb-c:#b0661c}.hb-bar.internal{background:#fff1dc!important;color:#7d430c!important;border:1px dashed #b0661c}.hb-app #hotel-waitlist{scroll-margin-top:80px}.hb-app #hotel-waitlist>.hs-search{margin:10px;max-width:100%}.hb-app #hotel-waitlist td:last-child{white-space:nowrap}.hb-app #hotel-waitlist td button+button{margin-left:6px}

.hb-app #hotel-waitlist>.cash-wrap{max-height:420px;overflow:auto;margin-top:8px}.hb-app #hotel-waitlist thead th{position:sticky;top:0;z-index:1;background:var(--ds-card,#fff)}
/* V143: simpler room calendar — even day columns, solid coloured bars, view switch and day view. */
.hb-views{display:inline-flex;gap:4px;padding:3px;border-radius:10px;background:#f1edf7;margin:0 0 10px}
.hs-card .hb-view{min-height:0;height:32px;padding:0 14px;border:0;border-radius:8px;background:transparent;color:#5f5873;font-weight:600;font-size:13px;box-shadow:none;cursor:pointer}
.hs-card .hb-view.on{background:#fff;color:#662d91;box-shadow:0 1px 3px rgba(60,30,90,.15)}
.hb-grid{table-layout:fixed;width:max-content;min-width:0}
.hb-grid .hb-room{width:96px;min-width:96px;max-width:96px}
.hb-grid .hb-day,.hb-grid td.hb-count{width:34px;min-width:34px;max-width:34px}
.hb-grid th,.hb-grid td{height:36px}
.hb-grid .hb-cell.busy{padding:3px 1px}
.hs-card .hb-grid .hb-bar:not(.internal){min-height:0;height:30px;padding:0 6px;border:0!important;border-radius:6px;background:var(--hb-c)!important;color:#fff!important;box-shadow:none;justify-content:center;font-size:12px}
.hs-card .hb-grid .hb-bar.internal{min-height:0;height:30px;padding:0 6px;box-shadow:none;font-size:12px}
.hs-card .hb-grid .hb-bar small{display:none}
.hs-card .hb-grid .hb-bar b{font-weight:600;color:inherit}
.hb-grid tbody tr:hover td.hb-cell:not(.busy){background:#faf7fe}
.hb-strip{display:flex;gap:6px;overflow-x:auto;padding:2px 2px 8px;scroll-snap-type:x proximity;-webkit-overflow-scrolling:touch}
.hb-chip{flex:0 0 auto;width:48px;height:64px;border:1px solid #e3dcef;border-radius:10px;background:#fff;color:#3c3450;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;cursor:pointer;scroll-snap-align:center;user-select:none}
.hb-chip small{font-size:10px;color:#8a8499}.hb-chip b{font-size:16px;line-height:1.1}.hb-chip .hb-chip-n{font-size:10px;color:#662d91;font-weight:600}
.hb-chip.we{background:#faf8fd}.hb-chip.today{border:2px solid #662d91}
.hb-chip.on{background:#662d91;border-color:#662d91;color:#fff}.hb-chip.on small,.hb-chip.on .hb-chip-n{color:#eadff7}
.hb-dayhead{margin:6px 0 12px;font-size:14px;color:#4c5262}.hb-dayhead b{color:#1f2433}
.hb-sec{margin:0 0 14px}.hb-sec h3{margin:0 0 8px;font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.4px;color:#5f5873}
.hb-rooms{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:8px}
.hb-room-card{display:flex;flex-direction:column;gap:2px;padding:8px 10px;border-left:4px solid var(--hb-c);border-radius:10px;background:#f7f5fb;color:#1f2433;cursor:pointer;min-width:0}
.hb-room-card b{font-size:15px}.hb-room-card span{font-size:13px;font-weight:600;overflow-wrap:anywhere}.hb-room-card small{font-size:11px;color:#6b6880}
.hb-room-card.booked{--hb-c:#7b4fd1}.hb-room-card.in{--hb-c:#1a7f4b}.hb-room-card.out{--hb-c:#8f8a9e}.hb-room-card.internal{--hb-c:#b0661c;background:#fff8ee}
.hb-sec.free .hb-rooms{grid-template-columns:repeat(auto-fill,minmax(66px,1fr))}
.hb-free{display:flex;flex-direction:column;align-items:center;padding:6px 4px;border:1px dashed #cdbde2;border-radius:8px;background:#fff;color:#4a3a63;cursor:pointer;text-align:center;min-width:0}
.hb-free b{font-size:14px}.hb-free small{font-size:10px;color:#8a8499;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}.hb-free.ro{cursor:default}
.hb-room-card:focus-visible,.hb-free:focus-visible,.hb-chip:focus-visible{outline:2px solid #662d91;outline-offset:2px}
@media (max-width:640px){.hb-rooms{grid-template-columns:1fr 1fr}.hb-sec.free .hb-rooms{grid-template-columns:repeat(4,1fr)}}
body.ops-dark .hb-chip{background:#1f2738;border-color:#2c3548;color:#e6eaf2}body.ops-dark .hb-chip.on{background:#662d91}
body.ops-dark .hb-room-card{background:#1f2738;color:#e6eaf2}body.ops-dark .hb-free{background:#1b2232;color:#d8cdea;border-color:#3a3150}body.ops-dark .hb-views{background:#2a2340}body.ops-dark .hs-card .hb-view.on{background:#1b2232;color:#d8cdea}
