/* Maya Vanam manager — phone-first styles using the resort's brand palette. */
:root {
  --paper: #fbf8f0;
  --ivory: #f3efe4;
  --card: #ffffff;
  --ink: #2a231a;
  --stone: #6c6455;
  --line: #dcd3c0;
  --forest: #213220;
  --forest-2: #34502f;
  --on-forest: #ece6d6;
  --brass: #8c6a2c;
  --brass-lt: #c9a463;
  --danger: #a3341f;
  --ok-bg: #e5efdf;
  --err-bg: #f8e1da;
  --warn-bg: #f7ecd2;
  --hold: #e9c46a;
  --confirmed: #4f7a8a;
  --inhouse: #3f6b35;
  --out: #a59f92;
  --radius: 10px;
  --font: "Albert Sans", "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.45 var(--font); }
a { color: var(--forest-2); }
h1, h2, h3 { font-family: "Marcellus", Georgia, serif; font-weight: 400; margin: 0 0 .5em; line-height: 1.2; }
h1 { font-size: 1.5rem; }
h2 { font-size: 1.15rem; }
h3 { font-size: 1rem; margin-top: 1em; }
.muted { color: var(--stone); }
.small { font-size: .85rem; }
.pre { white-space: pre-line; }
.tamil { font-family: "Noto Serif Tamil", serif; color: var(--stone); font-size: .85em; }

/* Header & nav */
.topbar { display: flex; align-items: center; justify-content: space-between; padding: 8px 16px; background: var(--forest); color: var(--on-forest); }
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-family: "Marcellus", Georgia, serif; font-size: 1.15rem; }
.brand img { border-radius: 50%; background: #fff; }
.me { color: var(--on-forest); font-size: .9rem; text-decoration: none; padding: 6px 10px; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; }
.me.on, .me:hover { background: rgba(255,255,255,.12); }
.nav { display: flex; gap: 4px; overflow-x: auto; padding: 0 12px; background: var(--forest); scrollbar-width: none; position: sticky; top: 0; z-index: 10; }
.nav::-webkit-scrollbar { display: none; }
.nav a { color: var(--on-forest); opacity: .8; text-decoration: none; padding: 10px 12px; white-space: nowrap; border-bottom: 3px solid transparent; }
.nav a.on { opacity: 1; border-bottom-color: var(--brass-lt); }
.main { max-width: 1100px; margin: 0 auto; padding: 16px; }
.page-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.page-head h1 { margin: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* Cards & layout */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 14px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.card-head h2 { margin: 0; }
.two-col { display: grid; gap: 14px; }
.two-col > .card { margin: 0; }
.two-col { margin-bottom: 14px; }
@media (min-width: 760px) { .two-col { grid-template-columns: 1fr 1fr; } }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 14px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; text-align: center; font-size: .8rem; color: var(--stone); }
.stat .n { display: block; font-size: 1.5rem; color: var(--forest); font-family: "Marcellus", Georgia, serif; }
.empty { color: var(--stone); font-style: italic; margin: .25em 0; }
.danger-zone { border-color: #e6c3b9; }

/* Flash */
.flash { padding: 10px 14px; border-radius: 8px; margin: 0 0 14px; }
.flash.ok { background: var(--ok-bg); }
.flash.error { background: var(--err-bg); color: #6b1f10; }
.flash.warn { background: var(--warn-bg); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 8px 14px; border-radius: 8px;
  border: 1px solid var(--line); background: var(--ivory); color: var(--ink); font: inherit; font-size: .95rem; text-decoration: none; cursor: pointer; }
.btn:hover { border-color: var(--stone); }
.btn.primary { background: var(--forest); color: var(--on-forest); border-color: var(--forest); }
.btn.primary:hover { background: var(--forest-2); }
.btn.danger { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn.small { min-height: 32px; padding: 4px 10px; font-size: .85rem; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.link { background: none; border: 0; padding: 4px; color: var(--forest-2); text-decoration: underline; cursor: pointer; font: inherit; font-size: .85rem; }
.link.danger { color: var(--danger); }
details > summary { list-style: none; cursor: pointer; margin: 8px 0; }
details > summary::-webkit-details-marker { display: none; }
details[open] > summary.btn { background: var(--line); }

/* Forms */
.grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid { grid-template-columns: repeat(3, 1fr); } }
.grid .wide, .field.wide { grid-column: 1 / -1; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.stack > .card { margin: 0; }
.field { display: flex; flex-direction: column; gap: 4px; }
.label { font-size: .8rem; font-weight: 600; color: var(--stone); text-transform: uppercase; letter-spacing: .03em; display: block; }
.hint { font-size: .78rem; color: var(--stone); }
input, select, textarea { font: inherit; font-size: 16px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); width: 100%; min-height: 42px; }
input[type=checkbox], input[type=radio] { width: 20px; height: 20px; min-height: 0; accent-color: var(--forest); flex: none; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--brass-lt); outline-offset: 1px; border-color: var(--brass); }
input[readonly] { background: var(--ivory); }
.inline-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; margin-bottom: 12px; }
.inline-form label { display: flex; flex-direction: column; font-size: .8rem; color: var(--stone); gap: 2px; }
.inline-form input, .inline-form select { width: auto; }
.inline-form input[type=search], .inline-form input[name=reason] { flex: 1; min-width: 200px; }
.check { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; }
fieldset { border: 1px solid var(--line); border-radius: 8px; padding: 12px; }
legend { font-size: .85rem; color: var(--brass); padding: 0 6px; }
.sticky-actions { position: sticky; bottom: 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 12px 16px; background: rgba(251,248,240,.96); border-top: 1px solid var(--line); margin: 0 -16px; z-index: 5; }
.copy-src { font-size: .9rem; }
textarea.copy-src { width: 100%; margin-bottom: 6px; }

/* Cabin picker */
.cabin-opts { display: grid; gap: 10px; }
.cabin-opt { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; }
.cabin-opt.taken { background: var(--ivory); opacity: .75; }
.cabin-opt:has(input[type=checkbox]:checked) { border-color: var(--forest); box-shadow: 0 0 0 1px var(--forest); }
.cabin-pick { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; align-items: center; cursor: pointer; }
.cabin-pick .muted { grid-column: 2; }
.cab-name { font-weight: 600; }
.rates { display: none; margin-top: 8px; }
.cabin-opt:has(input[type=checkbox]:checked) .rates { display: block; }
.rate-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 6px; margin-top: 4px; }
.rate-grid label { display: flex; flex-direction: column; gap: 2px; }
.rate-grid input { padding: 6px 8px; min-height: 36px; }
.radio-cards { display: grid; gap: 10px; }
@media (min-width: 640px) { .radio-cards { grid-template-columns: 1fr 1fr; } }
.radio-card { display: flex; gap: 10px; border: 1px solid var(--line); border-radius: 8px; padding: 12px; cursor: pointer; }
.radio-card:has(input:checked) { border-color: var(--forest); box-shadow: 0 0 0 1px var(--forest); }

/* Lists */
.list { list-style: none; margin: 0; padding: 0; }
.list > li { border-top: 1px solid var(--line); }
.list > li:first-child { border-top: 0; }
.row-link, .row { display: flex; align-items: center; gap: 10px; padding: 10px 0; color: inherit; text-decoration: none; flex-wrap: wrap; }
.row-link:hover .row-main strong { text-decoration: underline; }
.row-main { flex: 1; min-width: 180px; }
.inactive { opacity: .55; }
.tabs { display: flex; gap: 6px; margin-bottom: 12px; overflow-x: auto; }
.tabs a { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); white-space: nowrap; background: var(--card); font-size: .9rem; }
.tabs a.on { background: var(--forest); color: var(--on-forest); border-color: var(--forest); }
.facts { display: grid; gap: 6px 16px; grid-template-columns: 1fr; margin: 8px 0 12px; }
@media (min-width: 640px) { .facts { grid-template-columns: 1fr 1fr; } }
.facts div { display: flex; gap: 8px; }
.facts .wide { grid-column: 1 / -1; }
.facts dt { color: var(--stone); min-width: 90px; font-size: .9rem; }
.facts dd { margin: 0; }
.checklist { margin: 0; padding-left: 1.2em; }
.checklist li { margin: 6px 0; }
.checklist li.done::marker { content: "✓  "; color: var(--inhouse); }
.checklist li.todo::marker { content: "!  "; color: var(--danger); font-weight: bold; }

/* Badges */
.badge { display: inline-block; font-size: .75rem; padding: 2px 8px; border-radius: 999px; background: var(--ivory); border: 1px solid var(--line); white-space: nowrap; vertical-align: middle; }
.s-hold { background: #fbf0d3; border-color: var(--hold); }
.s-confirmed { background: #e1ecf0; border-color: var(--confirmed); }
.s-checked_in { background: #dfeedb; border-color: var(--inhouse); }
.s-checked_out { background: #eeece7; border-color: var(--out); color: var(--stone); }
.s-cancelled, .s-no_show { background: var(--err-bg); border-color: #e0a796; color: #6b1f10; }
.badge.urgent { background: var(--danger); color: #fff; border-color: var(--danger); margin-left: 6px; }
.r-in_progress.badge { background: #e1ecf0; }
.r-done.badge { background: #dfeedb; }
.req.p-urgent .row-main strong { color: var(--danger); }
.req.r-done .row-main, .req.r-cancelled .row-main { opacity: .6; }
.req-actions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.legend { display: flex; gap: 4px; flex-wrap: wrap; margin-left: auto; }

/* Tables */
.tbl { width: 100%; border-collapse: collapse; font-size: .92rem; }
.tbl th, .tbl td { text-align: left; padding: 8px 6px; border-top: 1px solid var(--line); vertical-align: top; }
.tbl th { font-size: .78rem; color: var(--stone); text-transform: uppercase; border-top: 0; }
.num { text-align: right !important; white-space: nowrap; }
.voided td { text-decoration: line-through; color: var(--stone); }
.money { width: 100%; max-width: 420px; border-collapse: collapse; }
.money td { padding: 4px 0; }
.money td:last-child { text-align: right; white-space: nowrap; }
.money .strong td { font-weight: 600; border-top: 1px solid var(--line); padding-top: 6px; }
.money .due td { color: var(--danger); }
@media (max-width: 560px) { .tbl { font-size: .85rem; } .tbl th:first-child, .tbl td:first-child { white-space: nowrap; } }

/* Calendar */
.cal-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.cal { border-collapse: separate; border-spacing: 0; font-size: .82rem; min-width: 100%; }
.cal th, .cal td { border-right: 1px solid var(--ivory); border-bottom: 1px solid var(--line); padding: 0; height: 52px; min-width: 64px; text-align: center; }
.cal thead th { height: auto; padding: 6px 2px; background: var(--ivory); font-weight: 500; }
.cal thead th.today { background: var(--forest); color: var(--on-forest); }
.cal thead th.wkend { background: #ece5d3; }
.cal thead th.today.wkend { background: var(--forest); }
.cal .dow { display: block; font-size: .7rem; text-transform: uppercase; opacity: .7; }
.cal .dom { display: block; white-space: nowrap; }
.cal th.cab { position: sticky; left: 0; background: var(--card); z-index: 2; text-align: left; padding: 0 10px; min-width: 92px; font-weight: 600; border-right: 1px solid var(--line); }
.cal thead th.cab { background: var(--ivory); }
.cal td.free a, .cal td.free span { display: flex; align-items: center; justify-content: center; height: 100%; color: var(--stone); text-decoration: none; font-size: .75rem; }
.cal td.free a:hover { background: var(--ok-bg); color: var(--forest); }
.cal td.past { background: #faf8f3; }
.cal td.occ { padding: 4px 2px; }
.blk { display: flex; align-items: center; height: 100%; padding: 0 8px; border-radius: 6px; text-decoration: none; color: var(--ink); font-weight: 600;
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis; border: 1px solid; font-size: .8rem; }
.cal-controls .legend { align-self: center; }

/* Auth */
body.auth { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 16px; background: var(--ivory); }
.auth-card { width: 100%; max-width: 380px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 24px; }
.auth-logo { width: 100%; max-width: 260px; display: block; margin: 0 auto 12px; }

/* Settings */
.cabin-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; align-items: end; padding: 10px 0; border-top: 1px solid var(--line); }
@media (min-width: 900px) { .cabin-row { grid-template-columns: 1.2fr 1fr 1fr .6fr .6fr .5fr auto auto; } }
.user-edit[open] { flex-basis: 100%; }

/* Invoice */
.inv-wrap { overflow-x: auto; }
.invoice { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 4px; padding: 28px; max-width: 900px; margin: 0 auto 16px; color: #1d1a14; font-size: 13px; min-width: 640px; }
.invoice.cancelled { opacity: .85; }
.stamp { position: absolute; top: 40%; left: 50%; transform: translate(-50%, -50%) rotate(-18deg); font-size: 64px; color: rgba(163,52,31,.25); border: 6px solid rgba(163,52,31,.25); padding: 6px 24px; font-weight: 700; pointer-events: none; }
.inv-head { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; border-bottom: 2px solid var(--forest); padding-bottom: 12px; }
.inv-logo { width: 220px; }
.inv-supplier { text-align: right; line-height: 1.5; }
.inv-title { text-align: center; font-size: 20px; letter-spacing: .12em; text-transform: uppercase; margin: 14px 0; }
.inv-meta { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 14px; }
.inv-meta dl { margin: 0; }
.inv-meta dl div { display: flex; gap: 10px; justify-content: flex-end; }
.inv-meta dt { color: #6c6455; }
.inv-meta dd { margin: 0; min-width: 140px; text-align: right; }
.inv-lines, .inv-summary, .inv-totals { width: 100%; border-collapse: collapse; }
.inv-lines th { background: var(--ivory); font-size: 11px; text-transform: uppercase; text-align: left; padding: 6px; border: 1px solid var(--line); }
.inv-lines td { padding: 6px; border: 1px solid var(--line); vertical-align: top; }
.inv-lines .desc { width: 40%; }
.inv-bottom { display: flex; gap: 24px; margin-top: 14px; }
.inv-notes { flex: 1; }
.inv-notes .label { margin-bottom: 2px; }
.inv-summary { font-size: 12px; margin-bottom: 10px; }
.inv-summary th, .inv-summary td { border: 1px solid var(--line); padding: 4px 6px; text-align: left; }
.inv-totals { width: 280px; flex: none; align-self: flex-start; }
.inv-totals td { padding: 4px 6px; }
.inv-totals .grand td { font-size: 16px; font-weight: 700; border-top: 2px solid var(--forest); border-bottom: 2px solid var(--forest); }
.inv-totals .strong td { font-weight: 600; }
.inv-foot { display: flex; justify-content: space-between; margin-top: 40px; padding-top: 8px; border-top: 1px solid var(--line); color: #6c6455; font-size: 12px; }
body.public-invoice { background: var(--ivory); padding: 16px; }
.public-bar { max-width: 900px; margin: 0 auto 12px; display: flex; justify-content: flex-end; }

@media print {
  @page { size: A4; margin: 12mm; }
  body { background: #fff; }
  .topbar, .nav, .page-head, .flash, .no-print, .card.no-print, .public-bar { display: none !important; }
  .main { padding: 0; max-width: none; }
  .invoice { border: 0; padding: 0; min-width: 0; max-width: none; }
  body.public-invoice { padding: 0; }
}

/* Channel sync */
.card.alert { border-color: #e0a796; background: #fdf4f1; }
.card.alert h2 { color: var(--danger); }
.channel { border-top: 1px solid var(--line); padding: 12px 0; display: flex; flex-direction: column; gap: 10px; }
.channel:first-of-type { border-top: 0; padding-top: 0; }
.channel h3 { margin: 0; display: flex; gap: 8px; align-items: center; }
.copy-row { display: flex; gap: 6px; align-items: center; }
.copy-row input { flex: 1; min-width: 0; }
.steps { padding-left: 1.2em; }
.steps li { margin: 6px 0; }
.error-text { color: var(--danger); }

/* Events */
.slot-status { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 6px; }
.slot-status li { padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line); }
.slot-status li.free { background: var(--ok-bg); }
.slot-status li.taken { background: var(--ivory); }
.radio-cards.slots { margin-bottom: 12px; }
@media (min-width: 640px) { .radio-cards.slots { grid-template-columns: repeat(3, 1fr); } }
.radio-card:has(input:disabled) { opacity: .5; cursor: not-allowed; }
.cal tr.venue th.cab { background: var(--ivory); }
.cal td.ev { padding: 3px 2px; vertical-align: top; }
.halves { display: flex; flex-direction: column; gap: 2px; height: 100%; }
.halves > * { flex: 1; display: flex; align-items: center; justify-content: center; border-radius: 5px; font-size: .7rem; text-decoration: none; color: var(--stone); min-height: 20px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; padding: 0 4px; }
.halves a.freeh:hover { background: var(--ok-bg); color: var(--forest); }
.halves .blk { font-size: .72rem; padding: 0 4px; }

/* Reports */
.report-filter .custom-range { display: none; }
.report-filter:has(select[data-period] option[value=custom]:checked) .custom-range { display: flex; }
.stats-6 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .stats-6 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .stats-6 { grid-template-columns: repeat(6, 1fr); } }
.stat .sub { display: block; font-size: .72rem; margin-top: 2px; }
.bars-fig { margin: 0 0 16px; }
.bars-plot { position: relative; padding-left: 22px; margin-top: 8px; }
.bars-max { position: absolute; left: 0; top: -2px; }
.bars { display: flex; align-items: flex-end; gap: 2px; height: 140px; border-bottom: 1px solid var(--line); background: linear-gradient(to bottom, var(--line) 1px, transparent 1px); }
.bar-slot { flex: 1; height: 100%; display: flex; align-items: flex-end; min-width: 2px; cursor: default; outline-offset: 2px; }
.bar { display: block; width: 100%; background: var(--forest-2); border-radius: 4px 4px 0 0; min-height: 0; }
.bar-slot:hover .bar, .bar-slot:focus .bar { background: var(--forest); }
.bars-ticks { display: flex; gap: 2px; padding-left: 22px; margin-top: 4px; }
.bars-ticks span { flex: 1; min-width: 2px; white-space: nowrap; overflow: visible; }
.tbl tr.total td { font-weight: 600; border-top: 2px solid var(--line); }
.tip { position: fixed; z-index: 50; pointer-events: none; background: var(--ink); color: #fff; font-size: .8rem; padding: 6px 8px; border-radius: 6px; max-width: 240px; }

/* Multi-resort */
.brand a { color: inherit; text-decoration: none; display: flex; }
.brand-name { font-family: "Marcellus", Georgia, serif; font-size: 1.15rem; }
.switcher select { background: transparent; color: var(--on-forest); border: 1px solid rgba(255,255,255,.3); font-family: "Marcellus", Georgia, serif; font-size: 1.05rem; padding: 4px 28px 4px 8px; min-height: 36px; width: auto; max-width: 60vw; }
.switcher select option { color: var(--ink); }
.resort-grid { display: grid; gap: 14px; }
@media (min-width: 760px) { .resort-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .resort-grid { grid-template-columns: repeat(3, 1fr); } }
.resort-grid .card { margin: 0; }
.card.resort.current { border-color: var(--forest); box-shadow: 0 0 0 1px var(--forest); }
.mini-stats { list-style: none; padding: 0; margin: 8px 0; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .9rem; }
.mini-stats .warn strong { color: var(--brass); }
.mini-stats .alert strong { color: var(--danger); }
.group-form { border-top: 1px solid var(--line); padding: 12px 0; display: grid; gap: 8px; }
.checks { display: flex; flex-wrap: wrap; gap: 0 16px; }
.row-actions { display: flex; gap: 12px; align-items: center; }
.access-grid td { vertical-align: middle; }
.access-grid select { width: auto; min-height: 34px; padding: 4px 8px; }

/* Housekeeping */
.stats { grid-template-columns: repeat(auto-fit, minmax(76px, 1fr)); }
a.stat { text-decoration: none; }
.hk-grid { display: grid; gap: 14px; margin-bottom: 14px; }
@media (min-width: 700px) { .hk-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1050px) { .hk-grid { grid-template-columns: repeat(4, 1fr); } }
.hk-grid .card { margin: 0; border-left-width: 4px; }
.hk-clean, .hk-inspected { border-left-color: var(--inhouse); }
.hk-dirty { border-left-color: var(--hold); }
.hk-out_of_order { border-left-color: var(--danger); }
.hk-badge-clean, .hk-badge-inspected { background: #dfeedb; border-color: var(--inhouse); }
.hk-badge-dirty { background: #fbf0d3; border-color: var(--hold); }
.hk-badge-out_of_order { background: var(--err-bg); border-color: #e0a796; color: #6b1f10; }
.hk-actions { display: flex; flex-wrap: wrap; gap: 6px; }

/* Restaurant */
.orders { display: grid; gap: 10px; }
@media (min-width: 760px) { .orders { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .orders { grid-template-columns: repeat(3, 1fr); } }
.order { border: 1px solid var(--line); border-left: 4px solid var(--hold); border-radius: 8px; padding: 10px 12px; background: var(--card); display: flex; flex-direction: column; gap: 4px; }
.order.o-preparing { border-left-color: var(--confirmed); }
.order.o-served { border-left-color: var(--inhouse); opacity: .8; }
.order.o-cancelled { border-left-color: var(--out); opacity: .6; }
.order-head, .order-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.order-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.order-items { list-style: none; margin: 4px 0; padding: 0; font-size: .95rem; }
.order-items li { display: flex; align-items: center; gap: 6px; }
.order-notes { background: var(--warn-bg); padding: 4px 8px; border-radius: 6px; margin: 2px 0; }
.ord-ordered { background: #fbf0d3; border-color: var(--hold); }
.ord-preparing { background: #e1ecf0; border-color: var(--confirmed); }
.ord-served { background: #dfeedb; border-color: var(--inhouse); }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 2px; border: 1.5px solid; flex: none; position: relative; }
.dot::after { content: ""; position: absolute; inset: 1.5px; border-radius: 50%; background: currentColor; }
.dot.veg { color: #2f7d32; }
.dot.nonveg { color: #a3341f; }
.menu-cat h3 { margin: 14px 0 6px; color: var(--brass); }
.menu-line { display: grid; grid-template-columns: auto 1fr auto 72px; gap: 10px; align-items: center; padding: 6px 0; border-top: 1px solid var(--ivory); }
.menu-line .qty { min-height: 38px; text-align: center; padding: 4px; }
.menu-line:has(.qty:not([value="0"])) { background: transparent; }
.custom-line { margin-top: 8px; }
.menu-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-items: end; padding: 10px 0; border-top: 1px solid var(--line); }
@media (min-width: 900px) { .menu-row { grid-template-columns: 2fr 1.4fr 1fr 1fr auto auto auto; } }
body.kot { background: #fff; padding: 12px; }
.kot-ticket { max-width: 320px; margin: 0 auto; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 15px; }
.kot-ticket h1 { font-family: inherit; font-size: 20px; margin: 6px 0; }
.kot-ticket table { width: 100%; border-collapse: collapse; margin: 8px 0; }
.kot-ticket td { padding: 4px 0; border-bottom: 1px dashed #999; vertical-align: top; }
.kot-ticket .kq { width: 40px; font-weight: 700; font-size: 18px; }
.kot-head { border-bottom: 2px solid #000; padding-bottom: 4px; }
.kot-notes { border: 2px solid #000; padding: 6px; font-weight: 700; }
@media print { @page { size: 80mm auto; margin: 4mm; } body.kot { padding: 0; } }
@media (min-width: 900px) { .cabin-row.cabin-row-x { grid-template-columns: 1.2fr 1fr 1fr .6fr .6fr .6fr 1fr .5fr auto auto; } }
.extra-bed { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line); }
.extra-bed label { display: flex; flex-direction: column; gap: 2px; }
.extra-bed select, .extra-bed input { width: 130px; min-height: 36px; padding: 6px 8px; }
