/* Numinous Hotel booking system - plum #3A3138 / orange #F97600, Forum headings */
:root {
  --plum: #3A3138; --plum-2: #4a3f47; --plum-3: #2b2429;
  --orange: #F97600; --orange-d: #d86500; --orange-l: #fff1e4;
  --bg: #f6f3f1; --card: #fff; --line: #e4dedb; --text: #2a2427; --muted: #7a7075;
  --ok: #2f8f4e; --err: #c0392b; --warn: #b7791f; --radius: 10px;
  --shadow: 0 1px 2px rgba(58, 49, 56, .08), 0 4px 14px rgba(58, 49, 56, .06);
}
* { box-sizing: border-box; }
html { font-size: 15px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; line-height: 1.45; }
h1, h2, h3, h4 { font-family: Forum, Georgia, "Times New Roman", serif; font-weight: 400; color: var(--plum); margin: 0 0 .6rem; letter-spacing: .01em; }
h2 { font-size: 1.55rem; } h3 { font-size: 1.25rem; } h4 { font-size: 1.05rem; }
a { color: var(--orange-d); text-decoration: none; } a:hover { text-decoration: underline; }
code { background: #eee7e3; padding: .1em .35em; border-radius: 4px; }
.muted { color: var(--muted); } .small { font-size: .85rem; } .nowrap { white-space: nowrap; }
[hidden] { display: none !important; }

/* ---- layout ---- */
.app { display: flex; min-height: 100vh; }
.sidebar { width: 240px; flex: none; background: var(--plum); color: #e9e2e6; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: .7rem; padding: 1rem; color: #fff; border-bottom: 1px solid rgba(255, 255, 255, .1); text-decoration: none !important; }
.brand { flex-direction: column; align-items: flex-start; gap: .4rem; }
.brand img { width: 150px; height: auto; }
.brand b { display: block; font-family: Forum, Georgia, serif; font-weight: 400; font-size: 1.2rem; line-height: 1.1; }
.brand small { color: #b9aeb5; font-size: .75rem; }
.sidebar nav { padding: .6rem .5rem; flex: 1; }
.nav-link { display: flex; align-items: center; gap: .65rem; padding: .6rem .8rem; border-radius: 8px; color: #e9e2e6; font-size: .95rem; width: 100%; text-decoration: none !important; }
.nav-link svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.nav-link:hover { background: rgba(255, 255, 255, .08); }
.nav-link.active { background: var(--orange); color: #fff; }
.nav-sep { text-transform: uppercase; letter-spacing: .08em; font-size: .68rem; color: #a99da4; padding: 1rem .8rem .3rem; }
.side-foot { border-top: 1px solid rgba(255, 255, 255, .1); padding: .5rem; }
.linklike { background: none; border: 0; cursor: pointer; font: inherit; text-align: left; }
.main { flex: 1; min-width: 0; }
.topbar { display: flex; align-items: center; gap: 1rem; background: #fff; border-bottom: 1px solid var(--line); padding: .7rem 1.4rem; position: sticky; top: 0; z-index: 20; }
.topbar h1 { margin: 0; font-size: 1.6rem; flex: 1; }
.who { text-align: right; line-height: 1.2; } .who small { display: block; color: var(--muted); }
.menu-btn { display: none; background: none; border: 0; padding: .4rem; cursor: pointer; }
.menu-btn span { display: block; width: 22px; height: 2px; background: var(--plum); margin: 5px 0; }
.content { padding: 1.3rem 1.4rem 3rem; max-width: 1500px; }
.bare-main { padding: 1rem; }

/* ---- components ---- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; box-shadow: var(--shadow); margin-bottom: 1.1rem; }
.card.flush { padding: 0; overflow: hidden; } .card.narrow { max-width: 720px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.alert { padding: .7rem 1rem; border-radius: 8px; margin-bottom: 1rem; border: 1px solid; }
.alert.ok { background: #e8f6ed; border-color: #b8e0c6; color: #1d6a38; }
.alert.err { background: #fdecea; border-color: #f2c0ba; color: #8e2b20; }
.alert.warn { background: #fff6e0; border-color: #f0d9a0; color: #7a5410; }
.alert ul { margin: .3rem 0 0 1.1rem; padding: 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; padding: .55rem 1rem; border-radius: 8px; border: 1px solid var(--line); background: #fff; color: var(--plum); font: inherit; font-weight: 500; cursor: pointer; text-decoration: none !important; line-height: 1.2; min-height: 38px; }
.btn:hover { background: #f3eeeb; } .btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.primary { background: var(--orange); border-color: var(--orange); color: #fff; } .btn.primary:hover { background: var(--orange-d); }
.btn.danger { color: var(--err); border-color: #e8b9b3; } .btn.danger:hover { background: #fdecea; }
.btn.wa { background: #25D366; border-color: #25D366; color: #073b1c; } .btn.wa:hover { background: #1fb858; }
.btn.sm { padding: .3rem .65rem; min-height: 30px; font-size: .85rem; } .btn.block { width: 100%; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; margin-bottom: 1rem; }
.toolbar form { margin: 0; } .spacer { flex: 1; }
.actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .8rem; }
.sticky-actions { position: sticky; bottom: 0; background: linear-gradient(transparent, var(--bg) 30%); padding: 1rem 0 .6rem; }
.inline-form { display: inline-block; margin: 0; } label.inline { display: inline-flex; align-items: center; gap: .5rem; margin: 0; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem 1rem; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem 1rem; }
.grid2.gap { gap: 1.1rem; } .grid2.top { align-items: start; } .span2 { grid-column: span 2; }
.split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 1.1rem; align-items: start; }
.stack > .card:last-child { margin-bottom: 0; }

/* ---- forms ---- */
label { display: block; font-size: .85rem; font-weight: 600; color: var(--plum-2); }
input, select, textarea { display: block; width: 100%; margin-top: .25rem; padding: .55rem .7rem; font: inherit; font-weight: 400; color: var(--text); background: #fff; border: 1px solid #cfc6c2; border-radius: 8px; min-height: 40px; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(249, 118, 0, .35); border-color: var(--orange); }
input[readonly] { background: #f3eeeb; color: var(--muted); }
input[type=color] { padding: 2px; width: 56px; height: 36px; min-height: 0; }
input[type=checkbox] { display: inline-block; width: auto; min-height: 0; margin: 0 .5rem 0 0; vertical-align: middle; }
label.check { display: flex; align-items: center; font-weight: 400; margin: .35rem 0; font-size: .95rem; }
.form > * + * { margin-top: .8rem; } .booking-form .card { margin-bottom: 1rem; }
.form .grid2, .form .grid3 { margin-top: .8rem; }
fieldset { border: 1px solid var(--line); border-radius: 8px; padding: .5rem .9rem; } legend { font-size: .8rem; color: var(--muted); padding: 0 .3rem; }
.has-error input, .has-error select, .has-error textarea { border-color: var(--err); background: #fff8f7; }
.field-msg { font-size: .85rem; min-height: 1.2rem; margin-top: .3rem; } .field-msg.bad { color: var(--err); font-weight: 600; }
.avail-box { background: var(--orange-l); border: 1px solid #f7d0ab; border-radius: 8px; padding: .55rem .8rem; font-size: .88rem; margin-top: .5rem; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin: .5rem 0; }
.chip { border: 1px solid var(--line); background: #faf7f5; border-radius: 999px; padding: .25rem .75rem; font: inherit; font-size: .82rem; cursor: pointer; } .chip:hover { background: var(--orange-l); border-color: var(--orange); }

/* ---- tables ---- */
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: .9rem; }
table.data th { text-align: left; background: #faf7f5; color: var(--plum-2); font-weight: 600; padding: .65rem .75rem; border-bottom: 1px solid var(--line); white-space: nowrap; position: sticky; top: 0; }
table.data th a { color: inherit; } table.data td { padding: .6rem .75rem; border-bottom: 1px solid #efe9e6; vertical-align: top; }
table.data tr:last-child td { border-bottom: 0; } table.data.compact td, table.data.compact th { padding: .45rem .6rem; }
table.data tbody tr:hover { background: #fffaf5; } tr.clickable { cursor: pointer; }
.num { text-align: right; font-variant-numeric: tabular-nums; } .trunc { max-width: 200px; } .empty { text-align: center; color: var(--muted); padding: 2rem !important; }
tr.cancelled td { color: #9a8f94; text-decoration: line-through; } tr.cancelled td:last-child { text-decoration: none; }
.row-actions { white-space: nowrap; } .row-actions .btn { margin-right: .3rem; } .details { color: var(--muted); font-size: .82rem; max-width: 420px; word-break: break-word; }
.badge { display: inline-block; padding: .12rem .55rem; border-radius: 999px; font-size: .75rem; font-weight: 600; background: #eee; }
.badge.st-confirmed, .badge.rs-active, .badge.ds-vacant { background: #e2f3e8; color: #1d6a38; }
.badge.st-tentative, .badge.rs-maintenance { background: #fff1d6; color: #8a5a00; }
.badge.st-cancelled, .badge.rs-inactive { background: #eee; color: #6d6469; }
.badge.ds-arriving { background: #dff0ff; color: #0b5394; } .badge.ds-departing { background: #fde5d3; color: #a24500; } .badge.ds-inhouse { background: #ece3f7; color: #5b3a8c; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: .45rem; vertical-align: baseline; flex: none; }
.pager { display: flex; justify-content: center; align-items: center; gap: 1rem; margin: 1rem 0; }

/* ---- filters ---- */
.filters .period { display: flex; flex-wrap: wrap; gap: .8rem; align-items: end; margin-bottom: .8rem; }
.monthnav { display: flex; align-items: center; gap: .4rem; } .monthnav input { width: auto; margin: 0; }
.filter-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .7rem; align-items: end; }

/* ---- dashboard ---- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1rem; margin-bottom: 1.1rem; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1.1rem; box-shadow: var(--shadow); border-left: 4px solid var(--plum); }
.stat span { display: block; color: var(--muted); font-size: .82rem; } .stat b { display: block; font-family: Forum, Georgia, serif; font-weight: 400; font-size: 2.2rem; color: var(--plum); line-height: 1.1; } .stat small { color: var(--muted); }
.stat.accent { border-left-color: var(--orange); background: var(--orange-l); }
.bars { display: flex; align-items: flex-end; gap: 3px; height: 150px; padding-top: .5rem; }
.bars .bar { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; min-width: 0; }
.bars .bar i { display: block; width: 100%; background: var(--plum-2); border-radius: 3px 3px 0 0; min-height: 2px; opacity: .85; }
.bars .bar.today i { background: var(--orange); opacity: 1; } .bars .bar span { font-size: .6rem; color: var(--muted); margin-top: 3px; height: 12px; }
.hbar { display: grid; grid-template-columns: 38% 1fr auto; gap: .6rem; align-items: center; margin: .45rem 0; font-size: .88rem; }
.hbar .lbl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .hbar .track { background: #f0eae7; border-radius: 6px; height: 12px; overflow: hidden; } .hbar .track i { display: block; height: 100%; border-radius: 6px; } .hbar .val { color: var(--muted); font-size: .8rem; white-space: nowrap; }
.timeline { list-style: none; margin: 0; padding: 0; } .timeline li { padding: .5rem 0; border-bottom: 1px solid #efe9e6; font-size: .9rem; } .timeline li:last-child { border-bottom: 0; }
.changes { margin: .2rem 0 0 1.1rem; padding: 0; color: var(--muted); font-size: .82rem; }

/* ---- booking view ---- */
.kvs { margin: .6rem 0; } .kv { display: grid; grid-template-columns: 11rem 1fr; gap: .8rem; padding: .5rem 0; border-bottom: 1px solid #efe9e6; } .kv dt { color: var(--muted); font-size: .85rem; } .kv dd { margin: 0; }

/* ---- login ---- */
.login-wrap { min-height: 90vh; display: grid; place-items: center; }
.login-card { width: 100%; max-width: 400px; text-align: center; } .login-card .form, .login-card label { text-align: left; }
.login-logo { width: 220px; max-width: 80%; height: auto; margin-bottom: .5rem; }
body:not(.app) .login-wrap { background: radial-gradient(circle at 20% 10%, #fff 0, transparent 60%); }

/* ---- modal ---- */
.modal { position: fixed; inset: 0; background: rgba(30, 22, 28, .55); display: grid; place-items: center; z-index: 50; padding: 1rem; }
.modal-box { background: #fff; border-radius: 12px; padding: 1.3rem; width: 100%; max-width: 640px; max-height: 92vh; overflow-y: auto; }
.modal-box textarea { font-family: ui-monospace, Consolas, monospace; font-size: .85rem; }

/* ---- calendar ---- */
.cal-controls { display: flex; flex-wrap: wrap; gap: .8rem 1.2rem; align-items: center; justify-content: space-between; }
.cal-nav { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; } .cal-nav h2 { margin: 0 .8rem; min-width: 11rem; font-size: 1.5rem; } .cal-nav input { width: auto; margin: 0; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; } .seg button { border: 0; background: #fff; padding: .5rem 1rem; font: inherit; cursor: pointer; } .seg button + button { border-left: 1px solid var(--line); } .seg button.on { background: var(--plum); color: #fff; }
.cal-filters { flex: 1 1 100%; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.legend { display: flex; flex-wrap: wrap; gap: .4rem .6rem; align-items: center; margin: 0 0 .8rem; }
.legend-chip { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: .25rem .75rem .25rem .6rem; font: inherit; font-size: .83rem; cursor: pointer; } .legend-chip:hover { border-color: var(--orange); }
.mgrid { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.mhead { display: grid; grid-template-columns: repeat(7, 1fr); background: var(--plum); color: #fff; font-size: .8rem; text-align: center; } .mhead div { padding: .5rem 0; }
.wk { position: relative; border-top: 1px solid var(--line); }
.wk-days { display: grid; grid-template-columns: repeat(7, 1fr); min-height: calc(32px + var(--lanes) * 24px + 6px); }
.dcell { border-left: 1px solid #efe9e6; padding: 3px 5px; } .dcell:first-child { border-left: 0; } .dcell.other { background: #faf7f5; color: var(--muted); } .dcell.wkend { background: #fdfaf8; }
.dcell[data-new] { cursor: pointer; } .dcell[data-new]:hover { background: var(--orange-l); }
.dcell.today { background: #fff4e8; box-shadow: inset 0 0 0 2px var(--orange); }
.dnum { font-size: .8rem; font-weight: 600; color: inherit; display: inline-block; padding: 1px 4px; border-radius: 4px; } .dcell.today .dnum { background: var(--orange); color: #fff; }
.wk-ev { position: absolute; left: 0; right: 0; top: 26px; display: grid; grid-template-columns: repeat(14, 1fr); grid-auto-rows: 22px; row-gap: 2px; pointer-events: none; }
a.bar { pointer-events: auto; display: block; height: 22px; line-height: 22px; padding: 0 7px; border-radius: 11px; font-size: .75rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-decoration: none !important; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); min-width: 0; margin: 0 1px; }
a.bar.cut-l { border-top-left-radius: 0; border-bottom-left-radius: 0; margin-left: 0; } a.bar.cut-r { border-top-right-radius: 0; border-bottom-right-radius: 0; margin-right: 0; }
a.bar:hover { filter: brightness(1.08); outline: 2px solid var(--plum); z-index: 2; }
a.bar.st-tentative { background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, .35) 0 6px, transparent 6px 12px); outline: 2px dashed var(--bc); outline-offset: -2px; }
a.bar.st-cancelled { opacity: .45; text-decoration: line-through !important; }
.tl { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow-x: auto; box-shadow: var(--shadow); }
.tl-row { display: grid; grid-template-columns: 110px minmax(560px, 1fr); border-top: 1px solid #efe9e6; } .tl-row.off { background: #f4efec; }
.tl-head { background: var(--plum); color: #fff; border-top: 0; position: sticky; top: 0; }
.tl-room { padding: .4rem .7rem; display: flex; flex-direction: column; justify-content: center; border-right: 1px solid var(--line); } .tl-room b { font-size: 1rem; } .tl-room small { color: var(--muted); font-size: .72rem; } .tl-head .tl-room { color: #fff; }
.tl-days { display: grid; grid-template-columns: repeat(7, 1fr); } .tl-d { text-align: center; padding: .4rem 0; font-size: .78rem; } .tl-d b, .tl-d span { display: block; font-weight: 600; } .tl-d span { font-weight: 400; opacity: .8; } .tl-d.today { background: var(--orange); }
.tl-cell { position: relative; min-height: calc(var(--lanes) * 24px + 8px); } .tl-bg { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(7, 1fr); } .tl-bg div { border-left: 1px solid #efe9e6; } .tl-bg div.today { background: #fff4e8; } .tl-bg div[data-new] { cursor: pointer; } .tl-bg div[data-new]:hover { background: var(--orange-l); }
.tl-ev { position: absolute; inset: 4px 0; display: grid; grid-template-columns: repeat(14, 1fr); grid-auto-rows: 22px; row-gap: 2px; pointer-events: none; }
tr.row-vacant td { color: var(--muted); }

.print-only { display: none; }
.letterhead { display: flex; align-items: center; gap: 1rem; border-bottom: 3px solid var(--orange); padding-bottom: .6rem; margin-bottom: .8rem; }
.letterhead img { width: 140px; height: auto; } .letterhead h1 { margin: 0; font-size: 2rem; } .letterhead p { margin: 0; color: var(--muted); font-size: .85rem; }
.doc-title h2 { margin: 0; font-size: 1.5rem; } .doc-title p { margin: .1rem 0 .8rem; color: var(--muted); font-size: .85rem; }
.doc-table { width: 100%; border-collapse: collapse; } .doc-table th { text-align: left; width: 11rem; background: #f6f1ee; vertical-align: top; } .doc-table th, .doc-table td { border: 1px solid #d9d0cc; padding: .5rem .7rem; }
.doc-table.list { font-size: .8rem; } .doc-table.list thead th { width: auto; background: var(--plum); color: #fff; font-weight: 600; } .doc-table.list td, .doc-table.list th { padding: .3rem .4rem; }
.doc-table tr.cancelled td { text-decoration: line-through; color: #888; }
.sign-row { display: flex; justify-content: space-between; margin-top: 3rem; gap: 1rem; } .print-foot { text-align: center; color: var(--muted); font-size: .8rem; margin-top: 2rem; }
body.print-doc { background: #fff; } body.print-doc .bare-main { max-width: 1100px; margin: 0 auto; }

/* ---- responsive ---- */
@media (max-width: 1000px) { .split { grid-template-columns: 1fr; } .grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) {
  .sidebar { position: fixed; left: -260px; top: 0; z-index: 40; transition: left .2s; box-shadow: 4px 0 20px rgba(0, 0, 0, .3); } .sidebar.open { left: 0; }
  .menu-btn { display: block; } .content { padding: 1rem .9rem 3rem; } .topbar { padding: .6rem .9rem; } .topbar h1 { font-size: 1.3rem; } .who small { display: none; }
  .grid2 { grid-template-columns: 1fr; } .kv { grid-template-columns: 1fr; gap: .1rem; }
}
@media (max-width: 560px) { .grid3 { grid-template-columns: 1fr; } .span2 { grid-column: auto; } .cal-nav h2 { min-width: 0; font-size: 1.2rem; } .hbar { grid-template-columns: 1fr; } }

@page { size: A4; margin: 12mm; }
@page land { size: A4 landscape; margin: 10mm; }
@media print {
  body { background: #fff; font-size: 11px; } .sidebar, .topbar, .noprint, .cal-controls, .toolbar, .menu-btn, .alert, .legend-key + *, .sticky-actions { display: none !important; }
  .print-only { display: block; } .content, .bare-main { padding: 0; max-width: none; } .card { box-shadow: none; border-color: #ccc; } .main { margin: 0; }
  body.landscape, body.cal-page { page: land; }
  .legend { margin: 0 0 6px; } .legend-chip { border: 0; padding: 0 8px 0 0; font-size: 10px; } * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  tr, .wk { break-inside: avoid; } thead { display: table-header-group; } .doc-table.list tr { break-inside: avoid; }
  a { color: inherit; } a.bar { box-shadow: none; } .tl { overflow: visible; } .tl-row { grid-template-columns: 90px 1fr; } .tl-head { position: static; }
}

/* ---- group bookings ---- */
.card-pad { padding: .9rem 1.2rem; } .card-pad h3 { margin: 0; }
.add-box { border-top: 1px solid var(--line); background: #faf7f5; }
.edit-row > td { background: #fffaf5; border-bottom: 2px solid var(--orange) !important; }
.edit-row[hidden] { display: none; }
.stat b.sm { font-size: 1.5rem; }
.radios { margin: .6rem 0 .2rem; }
.bar-note { font-size: .8rem; }
a.bar.kind-group { box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .55), 0 1px 2px rgba(0, 0, 0, .25); font-style: italic; }
.sec-title { margin: 1.4rem 0 .6rem; font-size: 1.5rem; }

/* ---- statuses added in v1.2 ---- */
.badge.st-no_show, .badge.st-void, .badge.st-released { background: #eee; color: #6d6469; }
.badge.st-void { background: #f6dcdc; color: #8e2b20; }
a.bar.st-void, a.bar.st-no_show, a.bar.st-released { opacity: .45; text-decoration: line-through !important; }
.badge.ap-pending { background: #fff1d6; color: #8a5a00; } .badge.ap-approved { background: #e2f3e8; color: #1d6a38; } .badge.ap-rejected, .badge.ap-reversed { background: #f6dcdc; color: #8e2b20; }
.biz-date { background: var(--orange-l); border: 1px solid #f7d0ab; border-radius: 999px; padding: .25rem .8rem; font-size: .82rem; white-space: nowrap; }
.sev { font-weight: 600; }
.rep-tabs { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }
.rep-tab { padding: .4rem .9rem; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--plum); font-size: .88rem; text-decoration: none !important; }
.rep-tab:hover { border-color: var(--orange); } .rep-tab.on { background: var(--plum); border-color: var(--plum); color: #fff; }
@media (max-width: 700px) { .biz-date { display: none; } }

/* ---- billing ---- */
.fmt-choice { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: .8rem; }
.fmt-card { display: block; border: 2px solid var(--line); border-radius: var(--radius); padding: .8rem 1rem; cursor: pointer; font-weight: 400; font-size: .9rem; }
.fmt-card input { float: left; margin-right: .7rem; margin-top: .25rem; }
.fmt-card b { display: block; color: var(--plum); font-size: 1rem; } .fmt-card span { color: var(--muted); font-size: .85rem; }
.fmt-card:has(input:checked) { border-color: var(--orange); background: var(--orange-l); }
.bill-totals { max-width: 26rem; margin-left: auto; }
.tot-row { display: flex; justify-content: space-between; gap: 1rem; padding: .3rem 0; border-bottom: 1px solid #efe9e6; }
.tot-row.bold { font-weight: 700; font-size: 1.05rem; border-bottom: 2px solid var(--plum); }
#itemTable input, #itemTable select { margin: 0; }

/* printed bill (A4 and 80 mm receipt) */
.bill-page { background: #fff; }
.bill-doc { position: relative; max-width: 190mm; margin: 0 auto; padding: 8mm 4mm; font-size: 11pt; color: #111; }
.bill-heading { font-family: Forum, Georgia, serif; font-weight: 400; font-size: 26pt; text-align: center; margin: 0 0 2mm; color: #111; letter-spacing: .04em; }
.bill-heading.left { text-align: left; font-size: 20pt; margin-top: 6mm; }
.bill-sub { text-align: center; color: #666; font-size: 9pt; margin: 0 0 6mm; }
.bill-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 6mm; border-bottom: 2px solid #3A3138; padding-bottom: 4mm; }
.bill-logo { width: 45mm; height: auto; }
.bill-hotel { text-align: right; font-size: 9.5pt; color: #444; } .bill-hotel b { display: block; font-family: Forum, Georgia, serif; font-weight: 400; font-size: 17pt; color: #111; } .bill-hotel span { display: block; }
.bill-info { width: 100%; border-collapse: collapse; margin: 4mm 0; } .bill-info th { text-align: left; width: 26%; font-size: 9.5pt; color: #444; padding: 1.2mm 0; } .bill-info td { padding: 1.2mm 0; }
.bill-items { width: 100%; border-collapse: collapse; margin-top: 3mm; } .bill-items th { background: #eee; text-align: left; padding: 1.6mm 2mm; font-size: 9.5pt; } .bill-items td { padding: 1.3mm 2mm; border-bottom: 1px solid #ddd; vertical-align: top; }
.bill-items .r, .bill-totals-print .r { text-align: right; white-space: nowrap; } .bill-items tr.cat td { font-weight: 700; color: #555; background: #faf7f5; border-bottom: 0; } .bill-items tr.subcat td { font-size: 9pt; color: #555; }
.bill-totals-print { margin: 4mm 0 0 auto; border-collapse: collapse; min-width: 80mm; } .bill-totals-print td { padding: 1.2mm 2mm; } .bill-totals-print tr.big td { font-weight: 700; font-size: 12pt; border-top: 1.5px solid #111; }
.bill-meta { margin: 4mm 0 1mm; } .bill-fine { font-size: 8.5pt; color: #666; margin: 1mm 0; } .bill-foot { text-align: center; color: #666; font-size: 9pt; margin-top: 8mm; }
.bill-sign { display: flex; gap: 12mm; margin-top: 18mm; } .bill-sign.one { justify-content: flex-end; } .bill-sign div { flex: 1; font-size: 9pt; color: #444; } .bill-sign.one div { flex: 0 0 60mm; } .bill-sign span { display: block; border-top: 1px solid #111; margin-bottom: 1.5mm; }
.bill-date { margin-top: 8mm; }
.void-mark { position: absolute; top: 90mm; left: 0; right: 0; text-align: center; font-size: 90pt; font-weight: 700; color: rgba(190, 40, 40, .18); transform: rotate(-20deg); pointer-events: none; }
body.thermal .bill-doc { max-width: 76mm; padding: 2mm; font-size: 8.5pt; }
body.thermal .bill-heading { font-size: 15pt; } body.thermal .bill-heading.left { text-align: center; font-size: 12pt; margin-top: 3mm; }
body.thermal .bill-head { flex-direction: column; align-items: center; text-align: center; border-bottom: 1px dashed #333; } body.thermal .bill-logo { width: 34mm; } body.thermal .bill-hotel { text-align: center; font-size: 7.5pt; } body.thermal .bill-hotel b { font-size: 11pt; }
body.thermal .bill-info th, body.thermal .bill-info td { display: block; width: auto; padding: .3mm 0; } body.thermal .bill-info tr { display: block; margin-bottom: 1mm; }
body.thermal .bill-items th, body.thermal .bill-items td { padding: .8mm 1mm; } body.thermal .bill-totals-print { min-width: 0; width: 100%; } body.thermal .bill-sign { margin-top: 10mm; } body.thermal .void-mark { font-size: 40pt; top: 40mm; }
@page thermal { size: 80mm auto; margin: 2mm; }
@media print { body.thermal { page: thermal; } body.a4 { page: auto; } .bill-doc { max-width: none; padding: 0; } .site-foot { display: none !important; } }

/* ---- footer credit ---- */
.main { display: flex; flex-direction: column; min-height: 100vh; } .content { flex: 1; width: 100%; }
.site-foot { text-align: center; padding: 1rem; font-size: .75rem; color: var(--muted); letter-spacing: .02em; border-top: 1px solid var(--line); margin-top: 1.5rem; }
.site-foot a { color: var(--plum-2); text-decoration: none; border-bottom: 1px dotted var(--muted); } .site-foot a:hover { color: var(--orange-d); border-bottom-color: var(--orange-d); }
.bare-main + .site-foot, .login-wrap + .site-foot { border-top: 0; }
.rep-sep { align-self: center; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 .3rem 0 .8rem; } .rep-tab.bill { border-style: dashed; }
