:root {
  --ti-forest: #16281f;
  --ti-forest-2: #234432;
  --ti-mint: #dff3dc;
  --ti-lime: #b7dd5e;
  --ti-gold: #f2bc58;
  --ti-cream: #f6f5ef;
  --ti-ink: #17221c;
  --ti-muted: #6f7772;
  --ti-line: #e2e6e1;
  --bs-primary: #286844;
  --bs-primary-rgb: 40, 104, 68;
  --bs-link-color: #286844;
  --bs-link-hover-color: #17452b;
}
* { box-sizing: border-box; }
body { background: var(--ti-cream); color: var(--ti-ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.pos-body { min-height: 100vh; padding-bottom: 1px; }
.topbar { background: var(--ti-forest); color: #fff; z-index: 1030; }
.min-vh-64 { min-height: 64px; }
.brand-link { display: inline-flex; align-items: center; gap: .55rem; color: #fff; font-weight: 800; letter-spacing: -.02em; }
.brand-mark, .brand-orb { display: inline-grid; place-items: center; font-size: .78rem; font-weight: 900; letter-spacing: -.05em; color: var(--ti-forest); background: var(--ti-lime); border-radius: 10px; width: 32px; height: 32px; }
.demo-badge { color: #16281f; background: #f5ca60; letter-spacing: .08em; font-size: .62rem; }
.demo-badge-dark { color: #16281f; background: #f5ca60; letter-spacing: .08em; }
.tiny { font-size: .73rem; }
.side-nav { background: #fff; height: 100%; min-height: calc(100vh - 64px); border-right: 1px solid var(--ti-line); }
.nav-canvas { width: 244px; top: 64px; bottom: 0; border-right: 0; }
.nav-entry { align-items: center; border-radius: 10px; color: #48554d; display: flex; font-size: .94rem; font-weight: 650; gap: .8rem; margin: .2rem 0; padding: .7rem .8rem; text-decoration: none; }
.nav-entry:hover { color: var(--ti-forest); background: #f2f7ef; }
.nav-entry.active { background: var(--ti-forest); color: #fff; }
.nav-phase-note { background: var(--ti-mint); border-radius: 10px; color: #305039; font-size: .75rem; line-height: 1.45; padding: .85rem; }
.app-main { min-height: calc(100vh - 64px); margin-left: 244px; }
.auth-main { min-height: calc(100vh - 46px); display: flex; align-items: center; justify-content: center; padding: 2rem 1rem; }
.app-footer { color: #69736c; font-size: .75rem; margin: 1rem 0 5rem 244px; text-align: center; }
.app-footer.auth-footer { margin: 0 0 1.25rem; }
.eyebrow { color: #69806f; font-size: .67rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.page-heading h1 { font-weight: 800; letter-spacing: -.035em; }
.btn { border-radius: .58rem; font-weight: 650; }
.btn-primary { --bs-btn-bg: #286844; --bs-btn-border-color: #286844; --bs-btn-hover-bg: #1d5435; --bs-btn-hover-border-color: #1d5435; --bs-btn-active-bg: #17452b; --bs-btn-active-border-color: #17452b; }
.form-control, .form-select { border-color: #d7ddd8; border-radius: .55rem; }
.form-control:focus, .form-select:focus { border-color: #76a583; box-shadow: 0 0 0 .22rem rgba(40, 104, 68, .15); }
.card { border-radius: 1rem; overflow: hidden; }
.metric-card { background: #fff; border: 1px solid var(--ti-line); border-radius: 1rem; display: flex; flex-direction: column; min-height: 142px; padding: 1.15rem; }
.metric-card strong { color: var(--ti-forest); font-size: clamp(1.65rem, 3vw, 2.25rem); letter-spacing: -.055em; margin-top: .3rem; }
.metric-card strong em { color: #829187; font-size: .95rem; font-style: normal; letter-spacing: normal; }
.metric-card small { color: var(--ti-muted); margin-top: auto; }
.metric-label { color: #668070; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.metric-accent { background: var(--ti-forest); border: 0; }
.metric-accent strong { color: var(--ti-lime); font-size: 1.65rem; }
.metric-accent small, .metric-accent .metric-label { color: #bfcec3; }
.empty-state { color: #6c756f; padding: 3rem 1.25rem; text-align: center; }
.empty-state p { max-width: 28rem; margin: 0 auto 1.25rem; }
.empty-icon { align-items: center; background: var(--ti-mint); border-radius: 50%; color: var(--ti-forest); display: flex; font-size: 1.6rem; font-weight: 800; height: 58px; justify-content: center; width: 58px; }
.audit-mini-list > div { border-bottom: 1px solid #edf0ed; padding: .6rem 0; }
.audit-mini-list > div:last-child { border-bottom: 0; }
.audit-mini-list span { display: block; font-size: .83rem; font-weight: 700; }
.audit-mini-list small { color: #77817a; font-size: .72rem; }
.status-pill { align-items: center; border-radius: 99px; display: inline-flex; font-size: .7rem; font-weight: 750; line-height: 1.15; padding: .32rem .55rem; text-transform: capitalize; white-space: nowrap; }
.status-pill.neutral { background: #edf0ed; color: #536058; }
.status-draft { background: #ecefe9; color: #56625c; }
.status-open, .status-occupied { background: #e1f1e5; color: #1f663d; }
.status-sent-to-kitchen, .status-awaiting-payment { background: #e3edf9; color: #245a88; }
.status-completed, .status-ready { background: #ddf1e7; color: #1c7144; }
.status-closed, .status-served { background: #e9ecef; color: #4d555c; }
.status-cancelled { background: #f8e1e1; color: #9d3333; }
.status-queued, .status-preparing { background: #f9edd6; color: #8a5d13; }
.login-shell { max-width: 470px; width: 100%; }
.login-brand h1 { color: var(--ti-forest); font-weight: 850; letter-spacing: -.04em; }
.brand-orb { background: var(--ti-forest); border-radius: 19px; color: var(--ti-lime); font-size: 1.25rem; height: 62px; transform: rotate(-8deg); width: 62px; }
.login-card { border-top: 5px solid var(--ti-lime) !important; }
.pin-input { font-size: 1.5rem; letter-spacing: .4rem; text-align: center; }
.demo-pin-grid { display: grid; gap: .55rem; grid-template-columns: 1fr 1fr; }
.demo-pin-grid div { background: #f4f7f3; border-radius: .6rem; display: flex; flex-direction: column; font-size: .78rem; padding: .55rem .65rem; }
.demo-pin-grid span { color: #2e6b43; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 1rem; font-weight: 800; letter-spacing: .08em; }
.order-type-card { background: #fff; border: 2px solid #e1e6e1; border-radius: .9rem; cursor: pointer; display: flex; flex-direction: column; height: 100%; padding: 1.2rem; transition: .15s ease; }
.order-type-card:hover { border-color: #9ac5a2; transform: translateY(-1px); }
.btn-check:checked + .order-type-card { background: #eff8ed; border-color: #2c7548; box-shadow: 0 0 0 .2rem rgba(40,104,68,.1); }
.order-type-card strong { color: var(--ti-forest); margin-top: .7rem; }
.order-type-card small { color: #707a73; margin-top: .2rem; }
.type-icon { align-items: center; background: #e6f0e4; border-radius: .55rem; color: #2c7548; display: flex; font-size: 1.25rem; height: 34px; justify-content: center; width: 34px; }
.status-strip { align-items: center; background: #fff; border: 1px solid var(--ti-line); border-radius: .8rem; display: flex; flex-wrap: wrap; gap: .9rem 1.2rem; padding: .75rem 1rem; }
.status-strip > div { align-items: center; display: flex; gap: .45rem; }
.status-strip span { color: #78817b; font-size: .68rem; font-weight: 750; letter-spacing: .05em; text-transform: uppercase; }
.category-chips { display: flex; gap: .45rem; overflow-x: auto; padding-bottom: .2rem; scrollbar-width: thin; }
.chip { background: #f2f4f1; border: 1px solid #e1e5e0; border-radius: 99px; color: #536057; font-size: .78rem; font-weight: 700; padding: .42rem .76rem; white-space: nowrap; }
.chip.active, .chip:hover { background: var(--ti-forest); border-color: var(--ti-forest); color: #fff; }
.menu-item-card { background: #fbfcfa; border: 1px solid #e2e7e1; border-radius: .75rem; padding: .9rem; }
.menu-item-card h3 { color: #223328; font-weight: 750; }
.menu-item-initial { align-items: center; background: #e5f0e1; border-radius: .55rem; color: #2b6a43; display: flex; flex: 0 0 auto; font-size: .8rem; font-weight: 850; height: 31px; justify-content: center; width: 31px; }
.menu-item-card details > summary, .basket-edit > summary, .table-action > summary, .removed-lines > summary { cursor: pointer; list-style: none; }
.menu-item-card details > summary::-webkit-details-marker, .basket-edit > summary::-webkit-details-marker, .table-action > summary::-webkit-details-marker, .removed-lines > summary::-webkit-details-marker { display: none; }
.modifier-list { border-left: 2px solid #d9e7d8; padding-left: .65rem; }
.basket-panel { position: sticky; top: 81px; }
.basket-line { border-bottom: 1px solid #ebeeeb; padding: .85rem 0; }
.basket-line:last-of-type { border-bottom: 0; }
.line-qty { color: #2b6841; font-size: .83rem; font-weight: 800; min-width: 29px; }
.line-note { background: #fff4d7; border-radius: .35rem; color: #725511; font-size: .72rem; margin-top: .3rem; padding: .25rem .4rem; }
.basket-edit { color: #2d6943; font-size: .75rem; font-weight: 750; margin-top: .5rem; }
.override-form { background: #f4f5f2; border-radius: .5rem; padding: .5rem; }
.empty-basket { align-items: center; background: #f4f7f3; border: 1px dashed #cbd7cc; border-radius: .7rem; color: #78907e; display: flex; flex-direction: column; gap: .5rem; padding: 2rem 1rem; text-align: center; }
.empty-basket span { align-items: center; background: #e2efe1; border-radius: 50%; color: #2c7447; display: flex; font-size: 1.4rem; height: 38px; justify-content: center; width: 38px; }
.totals > div { display: flex; font-size: .86rem; justify-content: space-between; padding: .18rem 0; }
.totals > div span { color: #6e7871; }
.totals .discount-total strong { color: #b14343; }
.totals .grand { border-top: 1px solid #dfe5df; font-size: 1.08rem; margin-top: .45rem; padding-top: .65rem; }
.totals .grand strong { color: var(--ti-forest); }
.tax-detail, .removed-lines { color: #68736c; font-size: .73rem; }
.tax-detail summary, .removed-lines summary { color: #466451; cursor: pointer; font-weight: 750; }
.phase-next { background: #edf5ec; border-radius: .55rem; color: #53705a; font-size: .7rem; line-height: 1.35; padding: .55rem .65rem; }
.table-legend { color: #606d65; display: flex; flex-wrap: wrap; font-size: .76rem; gap: 1rem; }
.table-dot { border-radius: 50%; display: inline-block; height: 9px; margin-right: .25rem; width: 9px; }
.table-dot.open { background: #6ca477; }.table-dot.occupied { background: #326c93; }.table-dot.awaiting-payment { background: #d69c32; }
.table-card { background: #fff; border: 1px solid #e2e7e1; border-top: 5px solid #6da478; border-radius: .9rem; padding: 1rem; }
.table-card.status-occupied { border-top-color: #4e87af; }.table-card.status-awaiting-payment { border-top-color: #e2ad48; }
.table-label { color: var(--ti-forest); font-size: 1.35rem; font-weight: 850; letter-spacing: -.04em; }
.table-order { display: flex; flex-wrap: wrap; gap: .1rem .45rem; justify-content: space-between; }
.table-order small { flex-basis: 100%; }.table-empty { color: #8a968e; font-size: .85rem; min-height: 38px; }
.table-action { color: #2d6943; font-size: .74rem; font-weight: 750; }.table-action summary { text-align: center; }
.menu-admin-card h2 { color: var(--ti-forest); font-weight: 800; }.menu-admin-card.unavailable { opacity: .65; }.menu-admin-card details summary { cursor: pointer; list-style: none; }.menu-admin-card details summary::-webkit-details-marker { display: none; }
.audit-table code { color: #296545; font-size: .75rem; }.audit-reason { max-width: 300px; white-space: normal; }
.mobile-nav { align-items: center; background: rgba(255,255,255,.97); border-top: 1px solid #dfe5df; bottom: 0; display: flex; height: 67px; justify-content: space-around; left: 0; padding-bottom: env(safe-area-inset-bottom); position: fixed; right: 0; z-index: 1020; }
.mobile-nav a { align-items: center; color: #55635a; display: flex; flex-direction: column; font-size: 1.1rem; gap: 0; min-width: 48px; text-decoration: none; }.mobile-nav small { font-size: .58rem; font-weight: 700; }.mobile-nav .mobile-new { background: var(--ti-forest); border-radius: 50%; color: var(--ti-lime); height: 47px; justify-content: center; margin-top: -24px; width: 47px; }.mobile-nav .mobile-new small { color: #fff; }
@media (max-width: 991.98px) { .nav-canvas { top: 0; width: 280px; }.side-nav { min-height: 100%; }.app-main { margin-left: 0; padding-bottom: 62px; }.app-footer { margin: 1rem 0 5rem; }.basket-panel { position: static; }.status-strip > div:last-child { margin-left: 0 !important; } }
@media (max-width: 575.98px) { .topbar .btn-outline-light { font-size: .72rem; }.metric-card { min-height: 118px; padding: .9rem; }.metric-card strong { font-size: 1.45rem; }.page-heading h1 { font-size: 1.65rem; }.status-strip { align-items: flex-start; flex-direction: column; gap: .5rem; }.menu-item-card { padding: .75rem; } }
/* Phase 2: station ticket display and browser print queue */
.kitchen-send-form { background: #f1f7ee; border: 1px solid #d5e6d3; border-radius: .7rem; padding: .85rem; }
.kitchen-send-lines { display: grid; gap: .45rem; }
.kitchen-send-lines .form-check { align-items: center; background: #fff; border-radius: .5rem; display: flex; gap: .45rem; padding: .5rem .65rem; }
.kitchen-send-lines .form-check-label { display: flex; flex: 1; justify-content: space-between; gap: .5rem; }
.kitchen-send-lines small { color: #66756a; font-size: .72rem; text-transform: uppercase; }
.ticket-history > div { align-items: center; border-bottom: 1px solid #ecf0eb; display: flex; justify-content: space-between; gap: .75rem; padding: .65rem 0; }
.ticket-history > div:last-child { border-bottom: 0; }
.ticket-history small { color: #738078; display: block; font-size: .72rem; }
.amendment-flag, .duplicate-badge { background: #8e2d2d; border-radius: 99px; color: #fff; display: inline-block; font-size: .58rem; font-weight: 850; letter-spacing: .06em; padding: .22rem .38rem; vertical-align: middle; }
.duplicate-badge { background: #5b4040; }.print-state { font-size: .68rem; font-weight: 700; margin-left: .35rem; }.print-state.pending { color: #9c640f; }.print-state.printed { color: #247042; }
.station-tabs { display: flex; flex-wrap: wrap; gap: .6rem; }.station-tab { align-items: center; background: #fff; border: 1px solid #dce5db; border-radius: .65rem; color: #536257; display: flex; font-weight: 750; gap: .45rem; padding: .62rem .9rem; text-decoration: none; }.station-tab:hover, .station-tab.active { background: var(--ti-forest); border-color: var(--ti-forest); color: #fff; }
.kds-live-indicator { background: #e0f2e4; border-radius: 99px; color: #257343; font-size: .72rem; font-weight: 800; padding: .42rem .65rem; }.kds-live-indicator::first-letter { color: #37ad5f; }
.kds-ticket { background: #fff; border: 1px solid #dfe6df; border-top: 5px solid #6f9e76; border-radius: .9rem; overflow: hidden; }.kds-ticket.status-sent { border-top-color: #5d92bd; }.kds-ticket.status-preparing { border-top-color: #e4aa3e; }.kds-ticket.status-ready { border-top-color: #35a567; }.kds-ticket.is-amendment { border: 2px solid #b34242; border-top: 6px solid #b34242; }
.kds-ticket-header { align-items: flex-start; background: #f8faf7; display: flex; justify-content: space-between; padding: 1rem; }.kds-ticket.is-amendment .kds-ticket-header { background: #fff1f1; }.kds-ticket-header strong { color: var(--ti-forest); font-size: 1.05rem; }.ticket-version { color: #708078; font-size: .7rem; font-weight: 750; }.ticket-timer { background: var(--ti-forest); border-radius: .5rem; color: var(--ti-lime); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9rem; font-weight: 800; padding: .34rem .45rem; white-space: nowrap; }
.kds-ticket-body { padding: .4rem 1rem .7rem; }.kds-line { border-bottom: 1px dashed #dfe5df; padding: .65rem 0; }.kds-line:last-child { border-bottom: 0; }.kds-change-label { background: #e8eeea; border-radius: .25rem; color: #496052; font-size: .58rem; font-weight: 850; letter-spacing: .04em; padding: .18rem .25rem; }.kds-line.change-void .kds-change-label, .kds-line.change-decrease .kds-change-label { background: #ffe1e1; color: #9b3030; }.kds-line.change-increase .kds-change-label, .kds-line.change-add .kds-change-label { background: #ddf2e1; color: #237141; }.kds-line.change-note .kds-change-label { background: #fff0ce; color: #895d10; }.kds-modifiers { color: #66756b; font-size: .73rem; margin: .25rem 0 0 1.65rem; }.kds-note { background: #fff0cd; border-radius: .35rem; color: #754f0f; font-size: .73rem; font-weight: 750; margin-top: .4rem; padding: .3rem .4rem; }.kds-ticket-footer { align-items: center; background: #fafcf9; border-top: 1px solid #ebefeb; display: flex; justify-content: space-between; padding: .7rem 1rem; }
.kds-empty { background: #fff; border: 1px dashed #cddbcf; border-radius: 1rem; }.print-alert { color: #695011; }.print-jobs-table td { white-space: nowrap; }.print-test-preview { align-items: center; border: 1px dashed #7a7a7a; display: flex; flex-direction: column; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .8rem; gap: .35rem; margin: 0 auto; max-width: 340px; padding: 1rem; text-align: center; }.print-test-line { border-top: 1px solid #1b1b1b; width: 100%; }.print-test-line.dashed { border-top-style: dashed; }.barcode-demo { font-size: 1.15rem; letter-spacing: 1px; }
@media (max-width: 575.98px) { .kds-ticket-footer { align-items: flex-start; flex-direction: column; gap: .6rem; }.ticket-history > div { align-items: flex-start; }.print-jobs-table td { white-space: normal; }.kitchen-send-lines .form-check-label { flex-direction: column; gap: .05rem; } }

/* Phase 3: tender, reversal and cash-drawer controls */
.status-paid, .status-approved { background: #ddf1e7; color: #1c7144; }
.status-part-paid { background: #e3edf9; color: #245a88; }
.status-declined, .status-refunded, .status-part-refunded, .status-voided, .status-part-voided { background: #fbe3e3; color: #963636; }
.payment-ledger > div:last-child { border-bottom: 0 !important; }
.payment-ledger .status-pill { font-size: .58rem; padding: .22rem .38rem; }

/* Phase 4: versioned VAT and management reporting */
details.card > summary { cursor: pointer; list-style: none; }
details.card > summary::-webkit-details-marker { display: none; }
details.card > summary::after { color: var(--ti-forest); content: '＋'; float: right; font-size: 1.1rem; font-weight: 800; }
details.card[open] > summary::after { content: '−'; }
.report-table th { font-size: .71rem; letter-spacing: .025em; text-transform: uppercase; white-space: nowrap; }
.report-table td { font-size: .88rem; }
@media (max-width: 575.98px) { .report-table td, .report-table th { white-space: nowrap; } }

/* Phase 5: immutable inventory ledger, stock counts and recipe coverage */
.stock-table th { color: #708078; font-size: .68rem; letter-spacing: .055em; text-transform: uppercase; white-space: nowrap; }
.stock-table td { font-size: .88rem; vertical-align: middle; }
.delivery-lines td { min-width: 130px; }
@media (max-width: 575.98px) { .stock-table td, .stock-table th { white-space: nowrap; }.delivery-lines { min-width: 510px; } }

/* Phase 6–7: offline-safe PWA signals, diagnostics and operational controls */
.connection-offline { background: #f2bc58; color: #17221c; font-size: .65rem; max-width: 13rem; white-space: normal; }
.metric-warning { background: #fff8e7; border-color: #f0cf7c; }
.metric-warning strong { color: #9b6410; }
.diagnostic-list { display: flex; flex-direction: column; }
.diagnostic-row { align-items: center; border-bottom: 1px solid #edf0ed; display: flex; gap: 1rem; justify-content: space-between; padding: .9rem 1.25rem; }
.diagnostic-row:last-child { border-bottom: 0; }
.diagnostic-row strong { display: block; font-size: .9rem; }
.diagnostic-row span:not(.badge) { color: #6d7971; display: block; font-size: .76rem; line-height: 1.35; margin-top: .18rem; }
.diagnostic-row .text-end { flex: 0 0 auto; max-width: 38%; }
.diagnostic-row small { color: #65736a; display: block; font-size: .7rem; line-height: 1.25; margin-top: .35rem; overflow-wrap: anywhere; }
.diagnostic-table th { color: #708078; font-size: .68rem; letter-spacing: .055em; text-transform: uppercase; white-space: nowrap; }
.deployment-guide li { margin-bottom: .75rem; }
.deployment-guide li:last-child { margin-bottom: 0; }
@media (max-width: 575.98px) { .connection-offline { font-size: .56rem; line-height: 1.1; max-width: 7.2rem; }.diagnostic-row { align-items: flex-start; flex-direction: column; gap: .45rem; }.diagnostic-row .text-end { max-width: 100%; text-align: left !important; }.diagnostic-table th, .diagnostic-table td { white-space: nowrap; } }

/* Local SVG icon system and a deliberate desktop sidebar. Bootstrap's
   .offcanvas-lg becomes static at desktop widths; this restores a fixed
   navigation column so application content cannot be pushed below it. */
.ti-icon { display: inline-block; flex: 0 0 auto; height: 1.05em; stroke-width: 2; vertical-align: -.15em; width: 1.05em; }
.icon-button { align-items: center; display: inline-flex; justify-content: center; min-height: 2.25rem; min-width: 2.25rem; padding: .42rem; }
.icon-button .ti-icon { font-size: 1.2rem; }
.btn .ti-icon { margin-right: .08rem; }
.nav-entry .ti-icon { font-size: 1.08rem; height: 1.08rem; width: 1.08rem; }
.mobile-nav .ti-icon { font-size: 1.18rem; height: 1.18rem; margin-top: .1rem; width: 1.18rem; }
.mobile-nav a.active:not(.mobile-new) { color: var(--ti-forest); }
.mobile-nav a.active:not(.mobile-new) .ti-icon { color: var(--bs-primary); stroke-width: 2.35; }
.mobile-nav .mobile-new .ti-icon { margin: 0; }
.empty-icon .ti-icon, .type-icon .ti-icon { height: 1.35rem; width: 1.35rem; }

@media (min-width: 992px) {
  .nav-canvas.offcanvas-lg {
    background: #fff !important;
    border-right: 1px solid var(--ti-line) !important;
    bottom: 0;
    display: block !important;
    flex-grow: 0 !important;
    height: calc(100vh - 64px) !important;
    left: 0;
    overflow: hidden;
    position: fixed !important;
    top: 64px;
    transform: none !important;
    transition: none !important;
    visibility: visible !important;
    width: 244px !important;
    z-index: 1025;
  }
  .nav-canvas.offcanvas-lg .offcanvas-body { background: #fff; display: block !important; height: 100%; overflow-y: auto; padding: 0 !important; }
  .nav-canvas.offcanvas-lg .side-nav { height: 100%; min-height: 100%; }
  .app-main { margin-left: 244px; min-width: 0; }
}

/* Clear, status-aware print controls on the order screen. */
.print-actions { background: linear-gradient(135deg, #f1f8ee 0%, #ffffff 65%); border: 1px solid #d6e5d4; border-radius: .8rem; }
.print-actions .ti-icon { font-size: 1rem; }
.print-action-main { align-items: center; display: inline-flex; gap: .35rem; justify-content: center; }
.ticket-history .ticket-print-action { align-items: center; display: inline-flex; font-size: .72rem; gap: .25rem; white-space: nowrap; }
@media (max-width: 575.98px) { .print-actions .btn { width: 100%; }.print-actions .d-flex { align-items: stretch !important; flex-direction: column; } }

/* Focused counter POS: one clean screen for normal restaurant service while
   the detailed order page remains available for advanced controls. */
.pos-start-shell { background: linear-gradient(135deg, var(--ti-forest) 0%, #254d38 60%, #376445 100%); border-radius: 1.25rem; box-shadow: 0 18px 45px rgba(22, 40, 31, .16); color: #fff; display: grid; gap: clamp(1.5rem, 4vw, 3.25rem); grid-template-columns: minmax(0, .9fr) minmax(320px, 1.1fr); margin: clamp(.25rem, 1vw, 1rem) auto; max-width: 1120px; overflow: hidden; padding: clamp(1.35rem, 4vw, 3.2rem); }
.pos-start-copy { align-self: center; padding: .5rem; }.pos-start-copy .eyebrow { color: #bde5c3; }.pos-start-copy h1 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 850; letter-spacing: -.06em; margin: .35rem 0 .75rem; }.pos-start-copy > p { color: #e5f3e8; font-size: 1.03rem; line-height: 1.55; margin: 0; max-width: 29rem; }
.pos-start-points { display: flex; flex-wrap: wrap; gap: .65rem .95rem; margin-top: 1.4rem; }.pos-start-points span { align-items: center; color: #d8f2dd; display: inline-flex; font-size: .78rem; font-weight: 700; gap: .35rem; }.pos-start-points .ti-icon { color: var(--ti-lime); font-size: 1.05rem; }
.pos-start-card { background: #fff; border-radius: 1rem; box-shadow: 0 14px 28px rgba(0,0,0,.14); color: var(--ti-ink); padding: clamp(1.15rem, 3vw, 2rem); }.pos-start-button { align-items: center; display: inline-flex; gap: .45rem; justify-content: center; }.pos-start-button .ti-icon:last-child { margin-left: .2rem; }
.pos-service-picker { display: grid; gap: .55rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }.pos-service-choice { align-items: center; background: #f6f9f5; border: 1px solid #dfe8de; border-radius: .75rem; color: #425048; cursor: pointer; display: flex; flex-direction: column; gap: .45rem; justify-content: center; min-height: 104px; padding: .7rem .4rem; text-align: center; transition: background .15s ease, border-color .15s ease, box-shadow .15s ease, transform .15s ease; }.pos-service-choice .ti-icon { color: #2a7047; font-size: 1.35rem; }.pos-service-choice span { display: grid; gap: .12rem; }.pos-service-choice strong { color: var(--ti-forest); font-size: .82rem; }.pos-service-choice small { color: #6e7b72; font-size: .66rem; line-height: 1.2; }.btn-check:checked + .pos-service-choice { background: #edf8e9; border-color: #4a9462; box-shadow: 0 0 0 .2rem rgba(40,104,68,.12); transform: translateY(-1px); }.btn-check:focus-visible + .pos-service-choice { box-shadow: 0 0 0 .25rem rgba(40,104,68,.22); }

.pos-terminal { --pos-panel: #fff; --pos-soft: #f5f8f4; --pos-green: #286844; margin: 0 auto; max-width: 1580px; }.pos-topbar { align-items: center; background: linear-gradient(105deg, #ffffff 0%, #f0f7ee 100%); border: 1px solid #dce8db; border-radius: 1rem; display: flex; gap: 1rem; justify-content: space-between; margin-bottom: 1rem; padding: .95rem 1.1rem; }.pos-sale-title { align-items: center; display: flex; gap: .75rem; min-width: 0; }.pos-title-icon { align-items: center; background: var(--ti-forest); border-radius: .75rem; color: var(--ti-lime); display: flex; flex: 0 0 auto; height: 43px; justify-content: center; width: 43px; }.pos-title-icon .ti-icon { font-size: 1.35rem; }.pos-sale-title h1 { color: var(--ti-forest); font-weight: 830; letter-spacing: -.045em; }.pos-sale-title p { align-items: center; color: #67746b; display: flex; flex-wrap: wrap; font-size: .78rem; gap: .42rem; }
.pos-menu-panel, .pos-cart-card, .pos-actions-card { background: var(--pos-panel); border: 1px solid #e0e8df; border-radius: 1rem; box-shadow: 0 5px 18px rgba(29,57,38,.045); }.pos-menu-panel { padding: clamp(.85rem, 2vw, 1.25rem); }.pos-menu-toolbar { align-items: center; display: flex; gap: 1rem; justify-content: space-between; margin-bottom: .9rem; }.pos-menu-toolbar h2 { color: var(--ti-forest); font-weight: 800; letter-spacing: -.025em; }
.pos-search { align-items: center; background: #f3f6f2; border: 1px solid #dce5db; border-radius: .65rem; color: #5d7364; display: flex; flex: 0 1 250px; gap: .35rem; padding: 0 .62rem; }.pos-search .ti-icon { font-size: 1rem; }.pos-search input { background: transparent; border: 0; box-shadow: none !important; color: var(--ti-ink); font-size: .84rem; min-width: 0; outline: none; padding: .55rem 0; width: 100%; }
.pos-category-row { display: flex; gap: .4rem; margin: 0 -.1rem 1rem; overflow-x: auto; padding: .05rem .1rem .35rem; scrollbar-width: thin; }.pos-category { background: #f4f6f3; border: 1px solid #e0e7df; border-radius: 99px; color: #53635a; cursor: pointer; font-size: .75rem; font-weight: 750; padding: .43rem .72rem; white-space: nowrap; }.pos-category:hover, .pos-category.active { background: var(--ti-forest); border-color: var(--ti-forest); color: #fff; }.pos-category:focus-visible { outline: 3px solid rgba(40,104,68,.28); outline-offset: 2px; }
.pos-product-grid { display: grid; gap: .65rem; grid-template-columns: repeat(auto-fill, minmax(172px, 1fr)); }.pos-product-wrap { min-width: 0; }.pos-product-form { margin: 0; }.pos-product { align-items: center; background: #fff; border: 1px solid #e1e9e0; border-radius: .8rem; color: var(--ti-ink); cursor: pointer; display: grid; gap: .55rem; grid-template-columns: auto minmax(0, 1fr) auto; min-height: 88px; padding: .7rem; position: relative; text-align: left; transition: border-color .14s ease, box-shadow .14s ease, transform .14s ease; width: 100%; }.pos-product:hover { border-color: #74a680; box-shadow: 0 8px 18px rgba(31,92,55,.11); transform: translateY(-2px); }.pos-product:focus-visible { box-shadow: 0 0 0 .24rem rgba(40,104,68,.18); outline: 0; }.pos-product-initial { align-items: center; background: #e5f3e2; border-radius: .6rem; color: #27663f; display: flex; flex: 0 0 auto; font-size: .8rem; font-weight: 900; height: 34px; justify-content: center; width: 34px; }.pos-product-content { display: grid; gap: .18rem; min-width: 0; }.pos-product-content strong { color: #26382d; font-size: .8rem; line-height: 1.18; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.pos-product-content small { color: #728077; font-size: .64rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.pos-product-price { color: var(--ti-forest); font-size: .73rem; font-weight: 850; text-align: right; white-space: nowrap; }.pos-add-mark { align-items: center; background: var(--ti-forest); border-radius: 50%; color: var(--ti-lime); display: flex; height: 19px; justify-content: center; position: absolute; right: .45rem; top: .45rem; width: 19px; }.pos-add-mark .ti-icon { font-size: .72rem; margin: 0; }.pos-product.is-disabled { align-items: center; background: #f7f8f7; border: 1px dashed #d7dfd6; border-radius: .8rem; display: grid; gap: .55rem; grid-template-columns: auto minmax(0, 1fr) auto; min-height: 88px; opacity: .65; padding: .7rem; }.pos-product-customize { color: #39714d; display: block; font-size: .63rem; font-weight: 700; margin: .28rem .2rem 0; overflow: hidden; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }.pos-product-customize:hover { color: #173f27; text-decoration: underline; }
.pos-cart-panel { display: grid; gap: .75rem; position: sticky; top: 80px; }.pos-cart-card { overflow: hidden; }.pos-cart-head { align-items: flex-start; background: #fbfcfa; border-bottom: 1px solid #e7ece6; display: flex; justify-content: space-between; padding: 1rem; }.pos-cart-head h2 { color: var(--ti-forest); font-weight: 800; }.pos-cart-head > strong { color: var(--ti-forest); font-size: 1.13rem; letter-spacing: -.035em; white-space: nowrap; }.pos-cart-lines { max-height: min(43vh, 475px); overflow-y: auto; padding: .2rem 1rem; }.pos-cart-line { border-bottom: 1px solid #edf0ed; padding: .78rem 0; }.pos-cart-line:last-child { border-bottom: 0; }.pos-cart-line strong { font-size: .82rem; }.pos-cart-line small { color: #6c7a70; display: block; font-size: .66rem; line-height: 1.35; }.pos-note { color: #7a5a17 !important; margin-top: .16rem; }.pos-line-bottom { align-items: center; display: flex; justify-content: space-between; margin-top: .5rem; }.pos-qty-controls { align-items: center; background: #f2f6f1; border: 1px solid #dce6dc; border-radius: .48rem; display: inline-flex; overflow: hidden; }.pos-qty-controls form { display: contents; }.pos-qty-controls button { align-items: center; background: transparent; border: 0; color: #2f6743; display: inline-flex; height: 26px; justify-content: center; padding: 0; width: 27px; }.pos-qty-controls button:hover { background: #dcebd9; }.pos-qty-controls button:focus-visible { outline: 2px solid #34794d; outline-offset: -2px; }.pos-qty-controls .ti-icon { font-size: .85rem; margin: 0; }.pos-qty-controls > span { border-left: 1px solid #dce6dc; border-right: 1px solid #dce6dc; font-size: .74rem; font-weight: 850; min-width: 25px; padding: .22rem .35rem; text-align: center; }.pos-cart-total { align-items: center; background: var(--ti-forest); color: #fff; display: flex; justify-content: space-between; padding: .9rem 1rem; }.pos-cart-total span { color: #d7e8d9; font-size: .73rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }.pos-cart-total strong { color: var(--ti-lime); font-size: 1.25rem; letter-spacing: -.04em; }.pos-empty-cart { align-items: center; color: #6e7d73; display: flex; flex-direction: column; gap: .33rem; padding: 2.3rem .75rem; text-align: center; }.pos-empty-cart > span { align-items: center; background: #e4f1e2; border-radius: 50%; color: #347248; display: flex; height: 40px; justify-content: center; width: 40px; }.pos-empty-cart .ti-icon { font-size: 1.1rem; }.pos-empty-cart strong { color: #466451; font-size: .88rem; }.pos-empty-cart small { font-size: .72rem; }
.pos-actions-card { display: grid; gap: .65rem; padding: .75rem; }.pos-action-note, .pos-paid-state { align-items: center; background: #f2f7f1; border-radius: .65rem; color: #486651; display: flex; font-size: .74rem; font-weight: 750; gap: .45rem; padding: .7rem; }.pos-action-note .ti-icon { color: #297043; font-size: 1rem; }.pos-payment-title { align-items: end; display: flex; justify-content: space-between; padding: .25rem .2rem .1rem; }.pos-payment-title span { color: #63736a; font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }.pos-payment-title strong { color: var(--ti-forest); font-size: 1.12rem; letter-spacing: -.035em; }.pos-quick-payments { display: grid; gap: .55rem; grid-template-columns: 1fr 1fr; }.pos-quick-payments form { min-width: 0; }.pos-quick-payments button { align-items: center; display: flex; font-size: .84rem; gap: .45rem; justify-content: center; min-height: 56px; text-align: left; width: 100%; }.pos-quick-payments .ti-icon { font-size: 1.25rem; margin: 0; }.pos-quick-payments span { display: grid; line-height: 1.05; }.pos-quick-payments small { font-size: .64rem; font-weight: 600; opacity: .82; padding-top: .15rem; }.pos-paid-state { background: #e2f4e6; color: #1b6a3c; }.pos-paid-state > .ti-icon { font-size: 1.35rem; }.pos-paid-state span { display: grid; gap: .08rem; }.pos-paid-state small { font-size: .68rem; font-weight: 600; }

@media (max-width: 1199.98px) { .pos-cart-panel { position: static; }.pos-cart-lines { max-height: 360px; } }
@media (max-width: 767.98px) { .pos-start-shell { border-radius: 0; grid-template-columns: 1fr; margin: -1rem -1rem 0; padding: 1.25rem 1rem; }.pos-start-copy { padding: .25rem; }.pos-start-copy h1 { font-size: 2.1rem; }.pos-menu-toolbar, .pos-topbar { align-items: flex-start; flex-direction: column; }.pos-menu-toolbar .pos-search { flex-basis: auto; width: 100%; }.pos-topbar > .d-flex { width: 100%; }.pos-topbar > .d-flex .btn { flex: 1; justify-content: center; }.pos-product-grid { gap: .5rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }.pos-product { display: flex; flex-direction: column; gap: .35rem; justify-content: center; min-height: 120px; padding: .65rem .45rem; text-align: center; }.pos-product-content { text-align: center; width: 100%; }.pos-product-content strong, .pos-product-content small { white-space: normal; }.pos-product-price { font-size: .69rem; text-align: center; }.pos-product.is-disabled { display: flex; flex-direction: column; justify-content: center; min-height: 120px; text-align: center; }.pos-product-customize { font-size: .58rem; text-align: center; }.pos-cart-lines { max-height: none; }.pos-service-picker { gap: .4rem; }.pos-service-choice { min-height: 92px; padding: .55rem .25rem; }.pos-service-choice small { display: none; }.pos-quick-payments { gap: .45rem; }.pos-quick-payments button { font-size: .77rem; }.pos-sale-title h1 { font-size: 1.25rem; } }
@media (max-width: 390px) { .pos-start-card { padding: 1rem; }.pos-service-choice strong { font-size: .72rem; }.pos-product-grid { grid-template-columns: 1fr 1fr; }.pos-product { min-height: 111px; }.pos-topbar > .d-flex .btn { font-size: .73rem; padding-left: .45rem; padding-right: .45rem; } }
