:root {
    color-scheme: light;
    --ink: #0b1f3a;
    --ink-soft: #526174;
    --navy: #07111f;
    --teal: #159f82;
    --teal-bright: #45d1ae;
    --mint: #e9f8f4;
    --paper: #ffffff;
    --canvas: #f4f7f9;
    --line: #dfe7eb;
    --danger: #bd3d46;
    --warning: #d98521;
    --shadow: 0 18px 50px rgba(16, 38, 58, .08);
    font-family: Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
html, body { max-width: 100%; overflow-x: hidden; }
body { margin: 0; color: var(--ink); background: var(--canvas); }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible { outline: 3px solid rgba(21, 159, 130, .28); outline-offset: 2px; }

.landing-body { min-height: 100vh; background: var(--navy); }
.landing-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(380px, .95fr); overflow: hidden; }
.landing-card { background: var(--paper); padding: clamp(42px, 7vw, 100px); display: flex; flex-direction: column; justify-content: center; }
.landing-logo { width: min(300px, 72%); height: auto; margin-bottom: 64px; }
.eyebrow, .step-label { margin: 0 0 8px; color: var(--teal); font-size: .73rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.landing-card h1 { max-width: 720px; margin: 0; font-size: clamp(2.5rem, 5vw, 5rem); line-height: 1.01; letter-spacing: -.055em; }
.landing-copy { max-width: 650px; color: var(--ink-soft); font-size: 1.12rem; line-height: 1.65; margin: 28px 0 42px; }
.tenant-form { max-width: 720px; }
label { color: #34495c; font-size: .76rem; font-weight: 750; letter-spacing: .015em; }
input, select, textarea { width: 100%; margin-top: 7px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: #fbfcfd; padding: 11px 12px; transition: border-color .15s, box-shadow .15s; }
input:hover, select:hover, textarea:hover { border-color: #b8c8d0; }
input:focus, select:focus, textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(21, 159, 130, .11); outline: none; background: white; }
textarea { resize: vertical; }
.tenant-entry { display: flex; gap: 10px; margin-top: 8px; }
.tenant-entry input { margin: 0; min-height: 52px; }
.primary-button, .secondary-button, .quiet-button, .icon-button { border-radius: 10px; border: 0; font-weight: 750; white-space: nowrap; }
.primary-button { min-height: 48px; padding: 0 22px; color: white; background: var(--teal); box-shadow: 0 8px 20px rgba(21, 159, 130, .2); }
.primary-button:hover { background: #118a71; transform: translateY(-1px); }
.secondary-button { min-height: 40px; padding: 0 15px; color: var(--teal); background: var(--mint); }
.secondary-button:hover { background: #d8f2eb; }
.heading-actions { flex: 0 0 auto; }
.quiet-button { padding: 8px 11px; color: var(--ink-soft); background: transparent; }
.quiet-button:hover { color: var(--ink); background: #edf2f5; }
.field-help { margin: 9px 0 0; color: #7d8996; font-size: .76rem; }
.workspace-choice-list { display: grid; gap: 12px; width: min(720px, 100%); }
.workspace-choice-list form { margin: 0; }
.workspace-choice { width: 100%; min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 15px 18px; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); background: #fbfcfd; text-align: left; transition: border-color .15s, box-shadow .15s, transform .15s; }
.workspace-choice:hover { border-color: var(--teal); box-shadow: 0 10px 24px rgba(21, 159, 130, .12); transform: translateY(-1px); }
.workspace-choice strong, .workspace-choice small { display: block; }
.workspace-choice strong { margin-bottom: 5px; font-size: 1rem; }
.workspace-choice small { color: var(--ink-soft); }
.workspace-choice .pill { flex: 0 0 auto; }
.trust-row { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 52px; color: #73808d; font-size: .78rem; }
.trust-row span::before { content: "✓"; color: var(--teal); font-weight: 900; margin-right: 7px; }
.landing-visual { position: relative; min-height: 600px; background: radial-gradient(circle at 67% 28%, rgba(69, 209, 174, .22), transparent 26%), linear-gradient(145deg, #102945, #07111f 70%); overflow: hidden; }
.landing-visual::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 44px 44px; mask-image: linear-gradient(to bottom, black, transparent 88%); }
.pulse-card { position: absolute; color: white; border: 1px solid rgba(255,255,255,.13); background: rgba(255,255,255,.08); backdrop-filter: blur(14px); box-shadow: 0 25px 70px rgba(0,0,0,.25); }
.pulse-card-main { top: 25%; left: 16%; width: 54%; padding: 28px; border-radius: 22px; }
.pulse-label { display: block; color: #9eb2c5; font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; }
.pulse-card strong { display: block; margin: 10px 0 4px; font-size: 2.3rem; letter-spacing: -.04em; }
.trend { color: var(--teal-bright); font-size: .84rem; }
.pulse-card-kitchen { top: 53%; right: 10%; display: flex; align-items: center; gap: 10px; padding: 17px 20px; border-radius: 14px; }
.status-dot, .live-badge span { width: 8px; height: 8px; display: inline-block; border-radius: 50%; background: var(--teal-bright); box-shadow: 0 0 0 5px rgba(69,209,174,.12); }
.momentum-lines { position: absolute; right: 13%; bottom: 12%; display: flex; gap: 15px; align-items: end; transform: rotate(27deg); opacity: .85; }
.momentum-lines i { width: 24px; height: 100px; border-radius: 20px; background: #173b63; }
.momentum-lines i:nth-child(2) { height: 155px; background: var(--teal); }
.momentum-lines i:nth-child(3) { height: 220px; background: var(--teal-bright); }

.app-body { min-height: 100vh; }
.app-shell { width: 100%; min-width: 0; }
.topbar { width: 100%; min-width: 0; height: 68px; position: sticky; top: 0; z-index: 20; display: grid; grid-template-columns: minmax(180px, 240px) minmax(0, 1fr) auto; align-items: center; gap: 24px; padding: 0 30px; background: rgba(255,255,255,.94); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.brand-link img { display: block; width: 158px; height: auto; }
.workspace-nav { min-width: 0; max-width: 100%; display: flex; align-self: stretch; gap: 6px; overflow-x: auto; overflow-y: hidden; overscroll-behavior-inline: contain; scrollbar-width: thin; }
.nav-link { flex: 0 0 auto; display: flex; align-items: center; padding: 0 18px; color: #607080; text-decoration: none; font-size: .88rem; font-weight: 700; border-bottom: 3px solid transparent; }
.nav-link:hover { color: var(--ink); }
.nav-link.active { color: var(--teal); border-bottom-color: var(--teal); }
.account-area { min-width: 0; display: flex; align-items: center; gap: 12px; }
.account-area form { margin: 0; }
.session-name { color: #657383; font-size: .82rem; }
.workspace { min-width: 0; width: min(1540px, calc(100% - 48px)); margin: 0 auto; padding: 38px 0 60px; }
.workspace > *, .pos-grid > *, .admin-grid > *, .team-grid > *, .host-layout > *, .floor-layout > *, .open-order-layout > *, .inventory-layout > *, .recipe-layout > *, .business-day-grid > *, .form-grid > *, .compact-form > *, .payment-totals > *, .host-summary > *, .floor-summary > *, .admin-summary > * { min-width: 0; }
.workspace-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.workspace-heading h1 { margin: 0; font-size: 2.25rem; letter-spacing: -.045em; }
.workspace-heading p:not(.eyebrow) { margin: 7px 0 0; color: var(--ink-soft); }
.live-badge { display: flex; align-items: center; gap: 9px; color: #397161; background: var(--mint); padding: 10px 14px; border-radius: 99px; font-size: .78rem; font-weight: 750; }
.pos-grid { display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: 22px; align-items: start; }
.shift-panel { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 18px; padding: 15px 18px; }
.shift-panel .step-label { margin-bottom: 4px; }
.shift-panel small { display: block; margin-top: 4px; color: #788693; }
.shift-status-line { display: flex; align-items: center; gap: 9px; }
.shift-indicator { width: 9px; height: 9px; border-radius: 50%; background: #aab5bd; box-shadow: 0 0 0 4px rgba(122,137,147,.1); }
.shift-panel.open .shift-indicator { background: var(--teal); box-shadow: 0 0 0 4px rgba(21,159,130,.12); }
.shift-panel.required:not(.open) { border-color: #efd4ae; background: #fffaf2; }
.shift-panel.required:not(.open) .shift-indicator { background: var(--warning); box-shadow: 0 0 0 4px rgba(217,133,33,.12); }
.shift-actions { display: flex; gap: .65rem; align-items: center; }
.cash-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
.cash-summary > div { display: flex; flex-direction: column; gap: .15rem; padding: .75rem; border: 1px solid var(--line); border-radius: 12px; background: #f7f9fa; }
.cash-summary span { color: #788693; font-size: .76rem; }
.cash-summary-total { grid-column: 1 / -1; background: var(--mint) !important; }
.movement-list { display: grid; gap: .45rem; margin-top: .45rem; }
.movement-row { display: grid; grid-template-columns: 80px 1fr auto; gap: .65rem; align-items: center; padding: .65rem .75rem; border: 1px solid var(--line); border-radius: 10px; }
.movement-row span { color: #788693; }
.cash-review-panel { padding: 1.25rem; }
.cash-shift-history { display: grid; gap: .9rem; }
.cash-shift-card { border: 1px solid var(--line); border-radius: 14px; padding: 1rem; background: white; }
.cash-shift-head { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: .8rem; }
.cash-shift-head div { display: grid; gap: .15rem; }
.cash-shift-head small, .cash-shift-foot { color: #788693; }
.cash-summary.compact { width: 100%; max-width: 100%; grid-template-columns: repeat(8, minmax(100px, 1fr)); overflow-x: auto; }
.cash-shift-foot { margin-top: .75rem; font-size: .78rem; }
.shift-dialog-body { display: grid; gap: 14px; padding: 20px 24px 24px; }
.shift-dialog-body p { margin: 0; color: var(--ink-soft); font-size: .84rem; line-height: 1.5; }
.shift-dialog footer small { color: #95a7b8; }
.payment-dialog { width: min(680px, calc(100% - 28px)); }
.payment-dialog-body { display: grid; gap: 20px; padding: 20px 24px 24px; }
.payment-totals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.payment-totals > div { padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: #f8fafb; }
.payment-totals span { display: block; color: #7c8995; font-size: .68rem; }
.payment-totals strong { display: block; margin-top: 4px; font-size: 1.05rem; }
.payment-totals .payment-due { color: #17634f; border-color: #b9e1d6; background: var(--mint); }
.payment-history { display: grid; gap: 7px; max-height: 170px; overflow-y: auto; }
.payment-history .empty-state { padding: 14px; }
.payment-history-row { display: grid; grid-template-columns: 1fr minmax(120px, 2fr) auto auto; gap: 12px; align-items: center; padding: 9px 11px; border-radius: 9px; background: #f5f8f9; font-size: .75rem; }
.payment-history-row span { color: #768490; }
.payment-history-row b { color: var(--teal); }
.payment-adjust-button { padding: 6px 9px; color: #9a3b43; background: #fff; border: 1px solid #e9c3c7; border-radius: 7px; font: inherit; font-weight: 800; cursor: pointer; }
.payment-adjustment-row { display: grid; grid-template-columns: 70px 1fr auto; gap: 12px; margin-left: 18px; padding: 8px 11px; color: #8c3037; background: #fbecee; border-radius: 8px; font-size: .72rem; }
.payment-adjustment-source { display: flex; justify-content: space-between; padding: 12px; background: #f5f8f9; border-radius: 10px; }
.danger-button { padding: 11px 17px; color: #fff; background: #a33f47; border: 0; border-radius: 9px; font: inherit; font-weight: 800; cursor: pointer; }
.tracking-actions{display:flex;gap:14px;align-items:center;margin:16px 0;padding:14px;border:1px solid #d9e3e6;background:#f8fbfc;border-radius:12px}.tracking-actions>div{display:flex;gap:10px;flex-wrap:wrap}.tracking-actions small{color:#53656f}
.payment-footer-actions { display: flex; gap: 9px; align-items: center; }
.payment-documents { display: grid; gap: 7px; }
.document-history-row { display: flex; justify-content: space-between; gap: 12px; width: 100%; padding: 10px 12px; color: var(--ink); background: #f5f8f9; border: 1px solid var(--line); border-radius: 9px; font: inherit; font-size: .74rem; text-align: left; cursor: pointer; }
.document-history-row span { color: #768490; }
.receipt-settings-panel { max-width: 900px; padding: 24px; }
.receipt-logo-card { display: grid; grid-template-columns: 220px 1fr; gap: 22px; margin-bottom: 18px; padding: 18px; background: #f5f8f9; border: 1px solid var(--line); border-radius: 12px; }
.receipt-logo-preview { display: grid; place-items: center; min-height: 140px; padding: 14px; color: #7a8791; background: #fff; border: 1px dashed #b9c7ce; border-radius: 10px; text-align: center; }
.receipt-logo-preview img { max-width: 100%; max-height: 120px; object-fit: contain; }
.receipt-logo-controls { display: grid; align-content: center; gap: 10px; }
.receipt-logo-controls p { margin: 3px 0 0; color: var(--muted); font-size: .76rem; }
.file-picker input { margin-top: 6px; }
.receipt-logo-actions { display: flex; align-items: center; gap: 9px; }
.danger-text { color: #9a3b43; }
.inline-check { display: flex; align-items: center; gap: 8px; font-size: .78rem; }
.inline-check input { width: auto; margin: 0; }
#guestProfileForm label:has(#guestActive) { display: flex; align-items: center; gap: 8px; font-size: .78rem; }
#guestProfileForm #guestActive { width: auto; margin: 0; }
.business-day-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 18px; margin-bottom: 18px; }
.business-day-status, .sales-summary-panel, .report-panel { padding: 24px; }
.business-day-facts, .sales-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 16px 0; }
.business-fact { display: grid; gap: 4px; padding: 12px; background: #f5f8f9; border-radius: 10px; }
.business-fact span { color: var(--muted); font-size: .7rem; }
.business-fact.warning { color: #963b43; background: #fbecee; }
.report-filters { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: end; gap: 9px; }
.report-filters label { min-width: 135px; }
.report-breakdowns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 18px; }
.report-breakdowns section { padding: 16px; background: #f7f9fa; border-radius: 12px; }
.report-breakdowns h3 { margin: 0 0 12px; font-size: .9rem; }
.report-line { display: grid; grid-template-columns: 88px 1fr auto; gap: 9px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .72rem; }
.report-line:last-child { border-bottom: 0; }
.report-line span, .business-history-row small { color: var(--muted); }
.business-day-history { display: grid; gap: 8px; }
.business-history-row { display: flex; justify-content: space-between; gap: 18px; padding: 12px 14px; background: #f7f9fa; border-radius: 10px; }
.business-history-row > div { display: grid; gap: 3px; }
.business-history-row > :last-child { text-align: right; }
.settings-footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 6px; }
.receipt-body { margin: 0; color: #101820; background: #eef2f4; font-family: Arial, sans-serif; }
.document-shell { min-height: 100vh; padding: 24px; }
.document-toolbar { display: flex; justify-content: space-between; width: min(920px, 100%); margin: 0 auto 18px; }
.fiscal-document { margin: 0 auto; padding: 28px; color: #111; background: #fff; box-shadow: 0 10px 40px rgba(12,31,48,.12); }
.fiscal-document.paper-thermal { width: 80mm; max-width: 100%; font-size: 12px; }
.fiscal-document.paper-a4 { width: 210mm; max-width: 100%; min-height: 297mm; font-size: 14px; }
.document-head { text-align: center; }
.document-business-logo { display: block; max-width: 72%; max-height: 28mm; margin: 0 auto 13px; object-fit: contain; }
.document-head h1 { margin: 0 0 6px; font-size: 1.55em; }
.document-head p { margin: 2px 0; }
.document-title { display: grid; gap: 4px; margin: 20px 0; padding: 14px 0; border-block: 1px dashed #6b7379; text-align: center; }
.document-title h2 { margin: 0; font-size: 1.2em; letter-spacing: .08em; }
.document-meta, .document-totals, .document-payments { display: grid; gap: 7px; margin: 16px 0; }
.document-total-line { display: flex; justify-content: space-between; gap: 18px; }
.document-total-line.grand { margin-top: 4px; padding-top: 9px; border-top: 1px solid #111; font-size: 1.08em; }
.document-items { border-block: 1px solid #111; }
.document-item { display: grid; grid-template-columns: 1fr 42px 90px; gap: 8px; padding: 8px 0; text-align: right; }
.document-item > :first-child { text-align: left; }
.document-item small { display: block; margin-top: 3px; color: #5c646a; }
.document-item-head { font-weight: 700; }
.document-payments h3 { margin: 0 0 4px; font-size: 1em; }
.document-footer { margin-top: 22px; text-align: center; }
.document-footer p { white-space: pre-line; }
@page { margin: 5mm; }
@media print {
    .receipt-body { background: #fff; }
    .document-shell { padding: 0; }
    .document-toolbar, .receipt-body .notice { display: none !important; }
    .fiscal-document { width: auto; min-height: 0; margin: 0; padding: 0; box-shadow: none; }
    .fiscal-document.paper-thermal { width: 70mm; }
}
@media (max-width: 700px) { .receipt-logo-card { grid-template-columns: 1fr; } }
@media (max-width: 900px) { .business-day-grid, .report-breakdowns { grid-template-columns: 1fr; } .business-day-facts, .sales-kpis { grid-template-columns: repeat(2, 1fr); } .report-filters { flex-wrap: wrap; } }
.floor-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.floor-summary > div { background: var(--paper); border: 1px solid #e2e9ed; border-radius: 14px; padding: 16px 18px; box-shadow: var(--shadow); }
.floor-summary span, .table-order-detail span { display: block; color: var(--muted); font-size: .72rem; }
.floor-summary strong { display: block; margin-top: 5px; color: var(--ink); font-size: 1.45rem; }
.floor-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; align-items: start; }
.floor-areas { display: grid; gap: 18px; min-width: 0; }
.floor-area { padding: 20px; }
.floor-area > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.floor-area h2, .table-inspector h2 { margin: 3px 0 0; }
.floor-heading-actions { display: flex; align-items: end; gap: 10px; }
.floor-map { position: relative; min-height: 460px; overflow: hidden; border: 1px solid #dbe6e3; border-radius: 16px; background-color: #f8fbfa; background-image: linear-gradient(rgba(30,122,105,.055) 1px, transparent 1px), linear-gradient(90deg,rgba(30,122,105,.055) 1px,transparent 1px); background-size: 5% 5%; }
.floor-map .floor-table { position: absolute; min-height: 96px; padding: 9px; overflow: hidden; transition: box-shadow .16s ease, border-color .16s ease, transform .16s ease; touch-action: manipulation; }
.floor-map .floor-table strong, .floor-map .floor-table small, .floor-map .floor-table b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.floor-area.arranging .floor-map .floor-table { cursor: grab; touch-action: none; outline: 1px dashed rgba(17,126,106,.25); }
.floor-area.arranging .floor-map .floor-table.dragging { cursor: grabbing; z-index: 20; transform: scale(1.02); box-shadow: 0 14px 30px rgba(18,82,71,.23); }
.floor-table-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(145px, 1fr)); gap: 12px; }
.floor-table { min-height: 130px; padding: 14px; border: 1px solid #cfe2df; border-radius: 16px; background: #effaf7; color: var(--ink); text-align: left; display: flex; flex-direction: column; gap: 6px; cursor: pointer; }
.floor-table:hover, .floor-table:focus-visible { border-color: var(--brand); box-shadow: 0 8px 22px rgba(20, 158, 135, .13); transform: translateY(-1px); }
.floor-table.occupied { background: #fff4e6; border-color: #edcf9f; }
.floor-table.inactive { opacity: .55; background: #f2f5f6; }
.floor-table .table-state { color: var(--brand-dark); font-size: .68rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.floor-table.occupied .table-state { color: #9a5c00; }
.floor-table strong { font-size: 1rem; }
.floor-table small { color: var(--muted); }
.floor-table b { margin-top: auto; font-size: .76rem; }
.table-inspector { position: sticky; top: 88px; padding: 22px; }
.table-inspector-meta { color: var(--muted); margin: 4px 0 18px; }
.table-order-detail { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 14px 0; }
.table-order-detail > div { padding: 11px; border-radius: 10px; background: var(--canvas); }
.table-order-detail strong { display: block; margin-top: 4px; font-size: .82rem; }
.table-inspector-actions { display: grid; gap: 8px; }
.link-button { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.floor-setup { margin-top: 18px; padding: 24px; }
.floor-setup-grid { display: grid; grid-template-columns: .75fr 1.25fr; gap: 24px; }
.floor-setup h3 { margin: 0; }
.form-actions { display: flex; justify-content: flex-end; gap: 8px; }
.table-choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.table-choice { display: flex; align-items: center; gap: 9px; padding: 12px; border: 1px solid #dce5e8; border-radius: 11px; background: var(--paper); }
.table-choice input { width: auto; margin: 0; }
@media (max-width: 900px) { .floor-layout, .floor-setup-grid { grid-template-columns: 1fr; } .table-inspector { position: static; } .floor-summary { grid-template-columns: repeat(2,1fr); } .floor-map { min-height: 390px; } }
@media (max-width: 560px) {
    .floor-table-grid, .table-choice-grid { grid-template-columns: 1fr; }
    .floor-map {
        min-height: 0;
        padding: 12px;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        overflow: visible;
        background-size: 28px 28px;
    }
    .floor-map .floor-table {
        position: static !important;
        inset: auto !important;
        width: auto !important;
        height: auto !important;
        min-width: 0;
        min-height: 112px;
        transform: none !important;
    }
}
@media (max-width: 380px) { .floor-map { grid-template-columns: 1fr; } }
.open-order-summary { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; margin-bottom: 18px; }
.inventory-layout { display: grid; grid-template-columns: minmax(0,1fr) 370px; gap: 18px; align-items: start; }
.inventory-items-panel, .inventory-history-panel { padding: 22px; }
.inventory-recipe-panel { padding: 22px; margin-top: 18px; }
.recipe-layout { display: grid; grid-template-columns: 340px minmax(0,1fr); gap: 22px; align-items: start; }
.inventory-items { display: grid; gap: 9px; }
.inventory-item { display: grid; grid-template-columns: minmax(0,1fr) auto auto; gap: 14px; align-items: center; padding: 13px 14px; border: 1px solid #dce8e4; border-radius: 13px; background: #f7fbfa; }
.inventory-item.low-stock { background: #fff5e7; border-color: #ebc994; }
.inventory-item.inactive { opacity: .62; }
.inventory-item strong, .inventory-item small, .inventory-movement span, .inventory-movement small { display: block; }
.stock-state { color: var(--brand-dark); font-size: .65rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.low-stock .stock-state { color: #935b06; }
.stock-quantity { text-align: right; }
.stock-quantity b { display: block; font-size: 1rem; }
.inventory-actions { display: grid; gap: 16px; }
.inventory-history-panel { margin-top: 18px; }
.inventory-movements { display: grid; gap: 8px; }
.inventory-movement { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(180px,auto); gap: 14px; align-items: center; padding: 12px 14px; border-bottom: 1px solid #e4ebe9; }
.inventory-movement > b { text-align: right; }
@media (max-width: 900px) { .inventory-layout, .recipe-layout { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .inventory-item, .inventory-movement { grid-template-columns: 1fr; } .stock-quantity, .inventory-movement > b { text-align: left; } }
.open-order-summary > div { background: var(--paper); border: 1px solid #e2e9ed; border-radius: 14px; padding: 16px 18px; box-shadow: var(--shadow); }
.open-order-summary span { display: block; color: var(--muted); font-size: .72rem; }
.open-order-summary strong { display: block; margin-top: 5px; font-size: 1.2rem; }
.open-order-layout { display: grid; grid-template-columns: minmax(0,1fr) 340px; gap: 18px; align-items: start; }
.open-lines-panel, .action-card { padding: 22px; }
.open-order-actions { display: grid; gap: 16px; }
.open-order-items { display: grid; gap: 10px; }
.open-order-line { display: grid; grid-template-columns: 38px minmax(0,1fr) auto; gap: 12px; align-items: center; padding: 14px; border: 1px solid #dce6e8; border-radius: 13px; }
.open-order-line.held { background: #fff8e9; border-color: #efd9a8; }
.open-order-line.voided { opacity: .68; background: #f4f6f6; border-color: #dce3e2; }
.open-order-line.voided strong { text-decoration: line-through; }
.open-order-line.cancellation-pending { background: #fff3ee; border-color: #e7ad96; }
.kitchen-item.cancellation-request { background: #fff0ea; border-color: #e09a7d; }
.kitchen-item.cancellation-request small { color: #a3412f; font-weight: 800; }
.cancellation-actions { display: grid; gap: 6px; }
.cancel-accept { background: #a3412f; color: #fff; }
.cancel-reject { background: #eef3f2; color: #294d50; }
.course-marker { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: #e5f5f1; color: var(--brand-dark); font-weight: 800; }
.open-order-line p { margin: 4px 0; color: var(--muted); font-size: .76rem; }
.open-order-line small { color: var(--muted); }
.line-money { display: grid; justify-items: end; gap: 7px; }
.course-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.action-card h2 { margin-top: 4px; }
.open-bill-row { display: grid; grid-template-columns: minmax(0,1fr) auto auto; align-items: center; gap: 8px; padding: 11px 0; border-bottom: 1px solid #e5ebed; }
.open-bill-row span { display: block; color: var(--muted); font-size: .7rem; margin-top: 3px; }
.seat-split-form { margin-top:14px; padding-top:14px; border-top:1px solid #e5ebed; }
@media (max-width: 900px) { .open-order-layout { grid-template-columns: 1fr; } .open-order-summary { grid-template-columns: repeat(2,1fr); } }
.host-summary { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; margin-bottom:18px; }
.host-summary > div { background:var(--paper); border:1px solid #e2e9ed; border-radius:14px; padding:16px 18px; box-shadow:var(--shadow); }
.host-summary span { display:block; color:var(--muted); font-size:.72rem; }
.host-summary strong { display:block; margin-top:5px; font-size:1.2rem; }
.host-layout { display:grid; grid-template-columns:minmax(0,1fr) 350px; gap:18px; align-items:start; }
.host-queues,.host-forms { display:grid; gap:16px; }
.booking-request-panel { margin-bottom:16px; padding:22px; }
.public-booking-layout { grid-template-columns:minmax(320px,.8fr) minmax(0,1.2fr); }
.turn-rule-editor { border:1px solid var(--line); border-radius:12px; display:grid; gap:10px; margin:2px 0; padding:12px; }
.turn-rule-editor legend { color:var(--ink); font-size:.86rem; font-weight:700; padding:0 5px; }
.turn-rule-list { display:grid; gap:8px; }
.turn-rule-row { align-items:end; display:grid; gap:8px; grid-template-columns:1fr 1fr 1.15fr auto; }
.service-window-row { align-items:end; display:grid; gap:8px; grid-template-columns:1fr 1fr 1.35fr auto; }
.closure-date-row { align-items:end; display:grid; gap:8px; grid-template-columns:1fr 1.7fr auto; }
.turn-rule-row label { font-size:.75rem; }
.turn-rule-row input,.service-window-row input,.service-window-row select { min-width:0; }
.guest-entry-list { display:grid; gap:10px; }
.guest-entry-card { display:grid; grid-template-columns:78px minmax(0,1fr) auto; gap:14px; align-items:center; padding:14px; border:1px solid #dce6e8; border-radius:13px; }
.guest-entry-card.overdue { border-color:#e9ad78; background:#fff8ef; box-shadow:inset 4px 0 #c75b18; }
.guest-entry-card.overdue .guest-status { color:#9d3d0c; background:#fde6d2; }
.guest-time { text-align:center; padding-right:13px; border-right:1px solid #e2e9ed; }
.guest-time strong,.guest-time span { display:block; }
.guest-time span { color:var(--muted); font-size:.7rem; margin-top:3px; }
.guest-details h3 { display:inline; margin:0; font-size:.98rem; }
.guest-details p { margin:6px 0 3px; color:var(--ink); font-size:.78rem; }
.guest-details small { color:var(--muted); }
.guest-status { display:inline-flex; margin-left:8px; padding:3px 7px; border-radius:999px; background:#e6f5f0; color:var(--brand-dark); font-size:.64rem; font-weight:800; text-transform:uppercase; }
.guest-actions { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:6px; max-width:270px; }
.guest-actions button,.guest-actions a { white-space:nowrap; }
.capacity-panel .panel-heading { align-items:flex-start; }
.capacity-panel .panel-heading p { margin:.3rem 0 0; color:var(--muted); font-size:.76rem; }
.capacity-timeline { display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:9px; }
.capacity-row { display:flex; justify-content:space-between; gap:10px; align-items:center; padding:11px 12px; border:1px solid #dce6e8; border-radius:11px; background:#fafcfc; }
.capacity-row strong,.capacity-row span { display:block; }
.capacity-row span { margin-top:3px; color:var(--muted); font-size:.68rem; }
.capacity-row b { color:var(--muted); font-size:.67rem; text-transform:uppercase; }
.capacity-row.suggested { border-color:#52ad91; background:#eef9f5; box-shadow:inset 3px 0 #168264; }
.capacity-row.suggested b { color:#087252; }
.capacity-row.occupied,.capacity-row.reserved { background:#fff8e9; border-color:#efd9a8; }
.capacity-row.toosmall { opacity:.65; }
.edit-plan-availability { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:8px 12px; padding:12px; border:1px solid #dce6e8; border-radius:12px; background:#f7fbfa; }
.edit-plan-availability strong,.edit-plan-availability span { display:block; }
.edit-plan-availability>div>span { margin-top:3px; color:var(--muted); font-size:.68rem; }
.edit-plan-availability>b { color:#087252; font-size:.68rem; text-transform:uppercase; }
.edit-plan-availability>b.warning { color:#a05a12; }
.edit-plan-rows { grid-column:1/-1; display:flex; flex-wrap:wrap; gap:6px; }
.edit-plan-chip { padding:5px 8px; border:1px solid #dce6e8; border-radius:999px; color:var(--muted); background:white; font-size:.65rem; }
.edit-plan-chip.suggested { color:#087252; border-color:#52ad91; background:#eef9f5; font-weight:700; }
.edit-plan-chip.occupied,.edit-plan-chip.reserved { color:#8b5a18; border-color:#efd9a8; background:#fff8e9; }
.shade { z-index: 100; }
.reservation-deposit-panel { display:grid; gap:10px; padding:13px; border:1px solid #dce6e8; border-radius:12px; background:#fbfcfc; }
.deposit-heading { display:flex; justify-content:space-between; gap:12px; }
.deposit-heading span { display:block; margin-top:3px; color:var(--muted); font-size:.68rem; }
.deposit-heading>b { color:#8b5a18; font-size:.65rem; text-transform:uppercase; }
.deposit-movements { display:grid; gap:6px; }
.deposit-movements>div { display:flex; justify-content:space-between; gap:12px; padding:7px 9px; border-radius:8px; background:white; border:1px solid #e2e9e8; }
.deposit-movements strong,.deposit-movements small { display:block; }
.deposit-movements small { margin-top:2px; color:var(--muted); font-size:.62rem; }
.deposit-controls { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; padding-top:8px; border-top:1px solid #e2e9e8; }
.deposit-controls button { align-self:end; }
.shift-dialog-body.deposit-only > :not(input[type="hidden"]):not(#reservationDepositPanel) { display:none !important; }
.delivery-list { display:grid; gap:12px; }
.settings-list { display:grid; gap:9px; margin-top:14px; }
.settings-row { display:flex; justify-content:space-between; gap:18px; align-items:center; padding:12px 14px; border:1px solid #dce8e4; border-radius:12px; background:#f8fbfa; }
.settings-row span { color:var(--muted); text-align:right; }
.delivery-card { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:16px; align-items:center; padding:16px; border:1px solid #dce8e4; border-radius:14px; background:#f8fbfa; }
.delivery-card-head { display:flex; justify-content:space-between; gap:14px; }
.delivery-card-head span { display:block; margin-top:3px; color:var(--muted); font-size:.7rem; }
.delivery-card-head b { color:#087252; font-size:.68rem; text-transform:uppercase; }
.delivery-address { margin:9px 0 4px; font-weight:700; }
.delivery-meta { color:var(--muted); }
.delivery-driver { margin-top:9px; color:#174f54; font-size:.76rem; font-weight:700; }
.delivery-actions { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:8px; }
@media(max-width:760px){.delivery-card{grid-template-columns:1fr}.delivery-actions{justify-content:flex-start}.deposit-controls{grid-template-columns:1fr}.settings-row{align-items:flex-start;flex-direction:column}.settings-row span{text-align:left}}
.live-badge.warning { color:#9a5d00; background:#fff2cf; }
.day-book-panel .panel-heading { align-items:flex-start; }
.day-book-panel .panel-heading p { margin:.3rem 0 0; color:var(--muted); font-size:.76rem; }
.day-book-nav { display:flex; align-items:center; gap:7px; flex-wrap:wrap; justify-content:flex-end; }
.day-book-nav input { width:145px; min-height:36px; padding:7px 9px; border:1px solid #cbd8dc; border-radius:9px; color:var(--ink); background:#fff; }
.day-book-summary { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; margin-bottom:18px; }
.day-book-summary div { padding:10px 12px; border:1px solid #e0e8e8; border-radius:10px; background:#f8fbfa; }
.day-book-summary span,.day-book-summary strong { display:block; }
.day-book-summary span { color:var(--muted); font-size:.66rem; }
.day-book-summary strong { margin-top:3px; font-size:1rem; }
.day-book-timeline { display:grid; gap:8px; overflow:hidden; }
.day-book-area { margin:12px 0 2px; color:var(--brand-dark); font-size:.76rem; letter-spacing:.08em; text-transform:uppercase; }
.day-book-row { display:grid; grid-template-columns:120px minmax(0,1fr); gap:10px; align-items:stretch; }
.day-book-table { padding:10px; border-radius:10px; background:#eef4f3; }
.day-book-table strong,.day-book-table span { display:block; }
.day-book-table span { margin-top:3px; color:var(--muted); font-size:.66rem; }
.day-book-track { display:flex; gap:7px; min-width:0; overflow-x:auto; padding-bottom:2px; }
.day-book-turn { display:grid; grid-template-columns:auto minmax(130px,1fr) auto; gap:9px; align-items:center; min-width:310px; padding:9px 11px; border:1px solid #bcded2; border-radius:10px; background:#f0faf6; color:var(--ink); text-align:left; font:inherit; }
.day-book-turn span { color:var(--muted); font-size:.68rem; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.day-book-turn b { color:#167156; font-size:.64rem; text-transform:uppercase; }
.day-book-turn.seated,.day-book-turn.completed { background:#edf3f8; border-color:#cbdbe7; }
.day-book-turn.noshow,.day-book-turn.cancelled,.day-book-turn.overdue { background:#fff6ed; border-color:#eab786; }
.day-book-turn.overdue b,.day-book-turn.noshow b { color:#a34410; }
.reschedule-before { padding:12px 14px; border:1px solid #cfe1dc; border-radius:10px; color:var(--ink-soft); background:#f2f9f6; font-size:.78rem; line-height:1.5; }
@media (max-width:1000px) { .host-layout { grid-template-columns:1fr; } .host-forms { grid-template-columns:repeat(2,1fr); } }
@media (max-width:720px) { .host-summary,.day-book-summary { grid-template-columns:repeat(2,1fr); } .host-forms { grid-template-columns:1fr; } .guest-entry-card { grid-template-columns:64px 1fr; } .guest-actions { grid-column:1 / -1; justify-content:flex-start; max-width:none; } .day-book-panel .panel-heading { display:grid; } .day-book-nav { justify-content:flex-start; } .day-book-row { grid-template-columns:92px minmax(0,1fr); } .turn-rule-row,.service-window-row,.closure-date-row { grid-template-columns:1fr 1fr; } }
.panel { min-width: 0; max-width: 100%; background: var(--paper); border: 1px solid #e2e9ed; border-radius: 16px; box-shadow: var(--shadow); }
.workspace-directory { max-width: 1500px; }
.workspace-card-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(230px,1fr)); gap:14px; }
.workspace-card { display:flex; min-height:145px; flex-direction:column; gap:8px; padding:20px; color:var(--ink); text-decoration:none; background:var(--paper); border:1px solid #e2e9ed; border-radius:16px; box-shadow:var(--shadow); transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease; }
.workspace-card:hover { transform:translateY(-2px); border-color:#c9a556; box-shadow:0 14px 30px rgba(24,37,50,.12); }
.workspace-card span { color:#946e24; font-size:.7rem; font-weight:800; letter-spacing:.12em; text-transform:uppercase; }
.workspace-card strong { font-size:1.08rem; }
.workspace-card small { color:var(--muted); line-height:1.45; }
.order-panel { padding: 24px; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.panel-heading > *, .workspace-heading > *, .recent-order-top > *, .recent-order-bottom > * { min-width: 0; }
.panel-heading h2 { margin: 0; font-size: 1.12rem; letter-spacing: -.02em; }
.form-grid { display: grid; gap: 14px; margin-bottom: 15px; }
.three-columns { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.four-columns { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.section-rule { height: 1px; margin: 24px 0; background: var(--line); }
.table-picker-field { display: grid; align-content: start; gap: 7px; }
.table-picker-field[hidden] { display: none; }
.field-label { color: var(--ink-soft); font-size: .72rem; font-weight: 760; }
.table-picker-trigger { width: 100%; min-height: 58px; display: grid; align-content: center; gap: 3px; padding: 10px 13px; text-align: left; color: var(--ink); background: #f9fbfc; border: 1px solid #d7e0e5; border-radius: 10px; }
.table-picker-trigger:hover { border-color: #92c8ba; background: #f2faf7; }
.table-picker-trigger strong { font-size: .8rem; }
.table-picker-trigger small { color: #788793; font-size: .67rem; }
.table-picker-dialog { width: min(980px, calc(100% - 28px)); }
.table-picker-dialog .modifier-dialog-head p:not(.step-label) { margin: 5px 0 0; color: var(--muted); font-size: .78rem; }
.table-picker-body { padding: 18px 24px 24px; }
.table-area-tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 12px; scrollbar-width: thin; }
.table-area-tab { min-height: 38px; padding: 0 15px; color: #617281; background: #f2f6f7; border: 1px solid #dce5e8; border-radius: 99px; font-size: .74rem; font-weight: 800; white-space: nowrap; }
.table-area-tab.active { color: white; border-color: var(--teal); background: var(--teal); }
.table-picker-map { position: relative; min-height: clamp(320px, 48vh, 430px); overflow: hidden; border: 1px solid #dbe6e3; border-radius: 15px; background-color: #f8fbfa; background-image: linear-gradient(rgba(30,122,105,.055) 1px, transparent 1px), linear-gradient(90deg,rgba(30,122,105,.055) 1px,transparent 1px); background-size: 5% 5%; }
.table-picker-table { position: absolute; min-width: 92px; min-height: 82px; display: grid; place-content: center; gap: 4px; padding: 8px; overflow: hidden; color: #226b59; background: #effaf6; border: 2px solid #9bcfc0; border-radius: 12px; text-align: center; box-shadow: 0 7px 18px rgba(18,82,71,.08); }
.table-picker-table:hover:not(:disabled) { transform: translateY(-2px); border-color: var(--teal); box-shadow: 0 10px 24px rgba(18,82,71,.16); }
.table-picker-table span { color: #468475; font-size: .59rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.table-picker-table strong { overflow: hidden; text-overflow: ellipsis; font-size: .8rem; white-space: nowrap; }
.table-picker-table small { color: #6f827d; font-size: .61rem; }
.table-picker-table.selected { color: white; background: var(--teal); border-color: var(--teal); box-shadow: 0 0 0 4px rgba(11,154,125,.16), 0 12px 26px rgba(18,82,71,.2); }
.table-picker-table.selected span, .table-picker-table.selected small { color: #d9fff4; }
.table-picker-table.occupied { color: #816d61; background: #f1efed; border-color: #d5ceca; box-shadow: none; cursor: not-allowed; opacity: .72; }
.dialog-footer-actions { display: flex; align-items: center; gap: 9px; }
.catalog-picker { min-width: 0; }
.order-panel .three-columns { grid-template-columns: repeat(auto-fit, minmax(165px, 1fr)); }
.pos-side-panel { max-height: calc(100vh - 110px); }
.pos-side-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; padding: 8px; background: #f4f8f8; border-bottom: 1px solid var(--line); }
.pos-side-tab { min-height: 43px; padding: 0 10px; color: #677786; background: transparent; border: 0; border-radius: 10px; font-size: .76rem; font-weight: 820; }
.pos-side-tab:hover { color: var(--teal); background: #eaf5f2; }
.pos-side-tab.active { color: white; background: var(--teal); box-shadow: 0 6px 15px rgba(12,141,113,.2); }
.tab-count { display: inline-block; margin-left: 4px; padding: 3px 6px; color: inherit; background: rgba(255,255,255,.2); border-radius: 99px; font-size: .6rem; }
.pos-side-tab:not(.active) .tab-count { color: #397161; background: #dff3ed; }
.side-tab-panel[hidden] { display: none; }
.basket-panel { min-width: 0; padding: 18px; }
.basket-panel .item-list:empty::before { content: "Your basket is empty. Choose a product from the menu."; display: block; padding: 28px 14px; color: #84909b; border: 1px dashed #ccd7dc; border-radius: 11px; text-align: center; font-size: .78rem; line-height: 1.45; }
.basket-column-headings, .basket-panel .basket-line { display: grid; grid-template-columns: 62px minmax(0, 1fr) 82px 28px; gap: 8px; align-items: center; }
.basket-column-headings { padding: 0 9px 7px; color: #7a8996; font-size: .65rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.basket-column-headings span:nth-child(3) { text-align: right; }
.basket-panel .item-list { max-height: calc(100vh - 360px); overflow-y: auto; padding-right: 2px; scrollbar-width: thin; }
.basket-panel .basket-line { padding: 10px 8px; background: #f6fbfa; border-color: #d6eae4; }
.basket-line input { margin: 0; padding: 9px 7px; text-align: center; }
.basket-quantity, .basket-quantity input { min-width: 0; width: 100%; }
.basket-description { min-width: 0; }
.basket-description strong { display: block; overflow-wrap: anywhere; font-size: .78rem; line-height: 1.35; }
.basket-line .selected-modifiers { margin-top: 4px; padding: 4px 6px; font-size: .61rem; line-height: 1.35; }
.basket-note-toggle { margin-top: 5px; padding: 0; color: #5a746d; background: transparent; border: 0; font-size: .63rem; font-weight: 800; text-align: left; }
.basket-note-toggle:hover { color: var(--teal); }
.basket-line-amount { color: var(--teal); font-size: .75rem; text-align: right; white-space: nowrap; }
.basket-line .remove-item { width: 27px; height: 27px; align-self: center; margin: 0; }
.basket-note-row { grid-column: 1 / -1; display: grid; gap: 5px; margin-top: 2px; }
.basket-note-row[hidden] { display: none; }
.basket-note-row span { color: #657a75; font-size: .63rem; font-weight: 800; }
.basket-note-row textarea { width: 100%; min-height: 54px; margin: 0; resize: vertical; font-size: .72rem; }
.basket-panel .checkout-bar { position: sticky; bottom: -1px; z-index: 2; margin: 18px -18px -18px; padding: 16px 18px; border-radius: 0 0 14px 14px; }
.basket-panel .checkout-bar strong { font-size: 1.25rem; }
.basket-panel .checkout-button { min-width: 125px; padding-inline: 15px; }
.item-heading { margin-bottom: 12px; }
.catalog-heading { align-items: end; margin-bottom: 14px; }
.catalog-search { width: min(280px, 45%); }
.catalog-search input { margin: 0; }
.catalog-categories { display: flex; gap: 7px; overflow-x: auto; padding: 2px 1px 11px; scrollbar-width: thin; }
.category-chip { min-height: 36px; padding: 0 14px; border: 1px solid var(--line); border-radius: 99px; color: #607080; background: white; font-size: .76rem; font-weight: 780; white-space: nowrap; }
.category-chip:hover { border-color: #9fcfc2; color: var(--teal); }
.category-chip.active { color: white; border-color: var(--teal); background: var(--teal); }
.catalog-products { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 9px; max-height: min(620px, calc(100vh - 210px)); overflow-y: auto; padding: 2px; }
.product-tile { min-height: 112px; display: flex; flex-direction: column; justify-content: space-between; align-items: stretch; padding: 13px; text-align: left; color: var(--ink); background: white; border: 1px solid var(--line); border-top: 4px solid var(--tile-color, var(--teal)); border-radius: 11px; transition: transform .15s, border-color .15s, box-shadow .15s; }
.product-tile:hover { transform: translateY(-2px); border-color: #aacac2; box-shadow: 0 10px 24px rgba(15, 52, 68, .09); }
.product-tile strong { font-size: .86rem; line-height: 1.25; }
.product-tile small { display: block; margin-top: 5px; color: #82909c; font-size: .67rem; }
.product-photo { width: 100%; height: 86px; margin-bottom: 10px; object-fit: cover; border-radius: 8px; background: #eef4f3; }
html[dir="rtl"] .product-tile { text-align: right; }
.product-price { display: flex; align-items: end; justify-content: space-between; gap: 6px; margin-top: 12px; color: var(--teal); font-size: .84rem; font-weight: 850; }
.modifier-count { color: #81909b; font-size: .6rem; font-weight: 700; }
.item-list { display: grid; gap: 10px; }
.order-item { position: relative; display: grid; grid-template-columns: 30px 1fr 30px; gap: 10px; align-items: center; padding: 14px 10px 14px 8px; background: #f8fafb; border: 1px solid #e6ecef; border-radius: 12px; }
.item-index { width: 26px; height: 26px; display: grid; place-items: center; align-self: start; margin-top: 24px; color: var(--teal); background: var(--mint); border-radius: 8px; font-size: .75rem; font-weight: 850; }
.item-fields { display: grid; grid-template-columns: minmax(180px, 2fr) .55fr .8fr 1fr; gap: 10px; align-items: end; }
.item-notes { grid-column: 1 / -1; }
.selected-modifiers { grid-column: 1 / -1; color: #397161; background: var(--mint); padding: 7px 9px; border-radius: 7px; font-size: .7rem; }
.order-item.catalog-line { background: #f6fbfa; border-color: #d6eae4; }
.order-item.catalog-line .item-name input, .order-item.catalog-line [data-field="price"], .order-item.catalog-line [data-field="destination"] { color: #4b6170; background: #edf5f3; cursor: default; }
.remove-item { width: 29px; height: 29px; align-self: start; margin-top: 23px; border: 0; border-radius: 8px; color: #9a6468; background: #f6e9ea; font-size: 1.2rem; line-height: 1; }
.remove-item:hover { color: white; background: var(--danger); }
.totals-fields { margin-bottom: 16px; }
.checkout-bar { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin: 25px -24px -24px; padding: 20px 24px; border-radius: 0 0 16px 16px; color: white; background: var(--navy); }
.checkout-bar span, .checkout-bar small { display: block; color: #91a3b4; font-size: .72rem; }
.checkout-bar strong { display: block; margin: 3px 0; font-size: 1.5rem; }
.checkout-button { min-width: 160px; }
.recent-panel { position: sticky; top: 90px; overflow: hidden; }
.live-orders-panel { max-height: calc(100vh - 170px); overflow-y: auto; scrollbar-width: thin; }
.live-orders-panel > .panel-heading { padding: 22px 20px 14px; margin: 0; border-bottom: 1px solid var(--line); }
.icon-button { width: 36px; height: 36px; color: var(--teal); background: var(--mint); font-size: 1.25rem; }
.recent-orders { max-height: 690px; overflow-y: auto; }
.recent-order { padding: 16px 20px; border-bottom: 1px solid #e9eef1; }
.recent-order[data-attention="medium"] { border-left: 4px solid #d99028; background: #fffcf5; }
.recent-order[data-attention="high"] { border-left: 4px solid #c94747; background: #fffafa; }
.recent-order:last-child { border-bottom: 0; }
.recent-order-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.recent-order-bottom { display: grid; grid-template-columns: minmax(0,1fr) auto auto; align-items: center; gap: 10px; }
.recent-order strong { font-size: .9rem; }
.recent-order p { margin: 7px 0; color: var(--ink-soft); font-size: .8rem; }
.recent-order-bottom { color: #758392; font-size: .74rem; }
.worklist-sync { display: block; margin-top: 5px; color: #758392; font-size: .68rem; font-weight: 650; }
.payment-button { min-height: 31px; margin-left: auto; padding: 0 10px; border: 0; border-radius: 8px; color: var(--teal); background: var(--mint); font-size: .7rem; font-weight: 800; }
.status-pill { padding: 4px 8px; border-radius: 99px; color: #27735f; background: var(--mint); font-size: .66rem; font-weight: 800; text-transform: uppercase; }
.empty-state, .empty-board { padding: 34px 20px; color: #84909b; text-align: center; }
.notice { margin: 0 0 18px; padding: 13px 16px; border-radius: 10px; color: #1e6755; background: var(--mint); border: 1px solid #ccebe2; font-size: .86rem; }
.notice.error { color: #8c3037; background: #fbecee; border-color: #f1cdd1; }
.dialog-notice { position: sticky; top: 0; z-index: 6; margin: 14px 24px 0; padding: 12px 14px; color: #1e6755; background: var(--mint); border: 1px solid #ccebe2; border-radius: 10px; box-shadow: 0 8px 22px rgba(16,38,58,.13); font-size: .82rem; font-weight: 700; line-height: 1.45; }
.dialog-notice.error { color: #8c3037; background: #fbecee; border-color: #eabfc5; }

.modifier-dialog { width: min(590px, calc(100% - 28px)); max-height: min(760px, calc(100vh - 40px)); overflow: auto; padding: 0; color: var(--ink); background: white; border: 0; border-radius: 16px; box-shadow: 0 35px 100px rgba(0,0,0,.34); }
.modifier-dialog::backdrop { background: rgba(4, 15, 26, .58); backdrop-filter: blur(3px); }
.modifier-dialog form { margin: 0; }
.modifier-dialog-head { display: flex; align-items: start; justify-content: space-between; gap: 20px; padding: 22px 24px 15px; border-bottom: 1px solid var(--line); }
.modifier-dialog h2 { margin: 0; font-size: 1.3rem; }
.dialog-close { width: 34px; height: 34px; border: 0; border-radius: 9px; color: #687886; background: #edf2f4; font-size: 1.3rem; }
.modifier-groups { max-height: 480px; overflow-y: auto; padding: 6px 24px 18px; }
.modifier-group { padding: 17px 0; border-bottom: 1px solid var(--line); }
.modifier-group:last-child { border-bottom: 0; }
.modifier-group-head { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.modifier-group-head strong { font-size: .86rem; }
.modifier-group-head span { color: #7b8995; font-size: .68rem; }
.modifier-options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.modifier-option { display: flex; align-items: center; gap: 9px; padding: 10px; border: 1px solid var(--line); border-radius: 9px; color: #4b5d6d; font-size: .76rem; }
.modifier-option:has(input:checked) { color: #17634f; border-color: #83cbb8; background: var(--mint); }
.modifier-option input { width: 17px; height: 17px; margin: 0; accent-color: var(--teal); }
.modifier-option span { margin-left: auto; color: #71808d; }
.modifier-dialog footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 17px 24px; color: white; background: var(--navy); }
.modifier-dialog footer span { display: block; color: #95a7b8; font-size: .68rem; }
.modifier-dialog footer strong { display: block; margin-top: 3px; font-size: 1.2rem; }

.kitchen-body { background: #edf1f3; }
.kitchen-workspace { width: min(1800px, calc(100% - 36px)); }
.kitchen-heading { align-items: center; }
.kitchen-controls { display: flex; align-items: end; gap: 10px; }
.kitchen-controls label { min-width: 160px; }
.kitchen-clock { color: var(--ink); font-variant-numeric: tabular-nums; font-weight: 800; }
.kitchen-board { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 16px; align-items: start; }
.kitchen-ticket { overflow: hidden; background: white; border: 1px solid #dce4e8; border-radius: 14px; box-shadow: 0 12px 35px rgba(16,38,58,.07); }
.ticket-head { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 17px 18px; color: white; background: var(--ink); }
.ticket-head h2 { margin: 0; font-size: 1.04rem; }
.ticket-head p { margin: 5px 0 0; color: #aebdca; font-size: .72rem; }
.ticket-age { align-self: center; padding: 6px 9px; border-radius: 7px; color: #c7eee4; background: rgba(69,209,174,.13); font-size: .74rem; font-weight: 800; }
.ticket-meta { display: flex; gap: 6px; flex-wrap: wrap; padding: 11px 18px; border-bottom: 1px solid var(--line); }
.meta-chip { padding: 4px 7px; border-radius: 6px; color: #5c6c7a; background: #eef2f4; font-size: .65rem; font-weight: 780; text-transform: uppercase; }
.kitchen-item { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; padding: 14px 16px; border-bottom: 1px solid #edf1f3; }
.kitchen-item:last-child { border: 0; }
.item-qty { color: var(--teal); font-size: 1rem; font-weight: 900; }
.kitchen-item strong { display: block; font-size: .87rem; }
.kitchen-item small { display: block; margin-top: 4px; color: #7a8793; font-size: .7rem; }
.station-ticket-summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 18px; color: #344b5e; background: #f8fafb; border-bottom: 1px solid var(--line); font-size: .76rem; }
.special-request-summary { padding: 5px 8px; color: #9f1f2c; background: #fff0f1; border: 1px solid #efb5bb; border-radius: 7px; font-weight: 900; text-transform: uppercase; }
.station-ticket-items .kitchen-item { grid-template-columns: 42px minmax(0, 1fr) auto; align-items: start; }
.item-qty.multiple { min-width: 38px; padding: 6px 5px; color: white; background: #c62836; border-radius: 8px; text-align: center; box-shadow: 0 3px 10px rgba(198,40,54,.23); }
.kitchen-note-alert { margin-top: 9px; padding: 9px 10px; color: #981c29; background: #fff0f1; border: 1px solid #efb5bb; border-left: 5px solid #c62836; border-radius: 7px; font-size: .75rem; font-weight: 900; line-height: 1.35; }
.item-status-control { min-width: 76px; display: grid; justify-items: end; }
.item-action-button { min-width: 76px; border: 0; border-radius: 8px; padding: 8px 9px; font-size: .7rem; font-weight: 900; }
.item-action-button.cooking { color: #7f4b0d; background: #fff0dc; }
.item-action-button.finish { color: white; background: var(--teal); }
.item-action-button.recall { color: #1d594b; background: #dff3ee; }
.item-action-button.done { color: #687985; background: #e5eaed; }
.item-action-button[disabled] { color: #83919b; background: #e8edef; cursor: default; }
.finished-item { color: #85919a; background: #f0f2f3; }
.finished-item .item-qty { color: #85919a; background: transparent; box-shadow: none; }
.finished-item .item-detail { opacity: .78; text-decoration: line-through; text-decoration-thickness: 2px; }
.finished-item .kitchen-note-alert { color: #747f87; background: #e7eaec; border-color: #c9d0d4; }
.kitchen-recall-settings { margin-bottom: 18px; padding: 22px; }
.kitchen-team-settings { padding: 22px; }
.kitchen-recall-settings .compact-form { grid-template-columns: minmax(220px, 360px) auto minmax(260px, 1fr); }
.kitchen-recall-settings .admin-help { align-self: end; margin: 0 0 10px; }
.cancellation-alert { color: #87330d; background: #fff2e9; border-color: #e6ad8e; border-left-color: #b64c17; }
.station-ticket-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 16px; background: #f7faf9; border-top: 1px solid var(--line); }
.station-ticket-actions small { color: #607381; line-height: 1.35; }
.station-action-button { min-width: 112px; border: 0; border-radius: 9px; padding: 11px 13px; color: #77450a; background: #ffedd5; font-size: .76rem; font-weight: 900; }
.station-action-button.finish { color: white; background: var(--teal); }
.station-action-button.recall { color: #1d594b; background: #dff3ee; }
.station-action-button[disabled] { color: #83919b; background: #e8edef; cursor: default; }
.collapsed-ticket .station-ticket-summary { border-bottom: 0; }
.completed-ticket { border-color: #9cd5c5; }
.completed-ticket .ticket-head { background: #17644f; }
.completed-ticket .completed-summary { color: #20594b; background: #eff9f6; }
.completed-ticket .completed-summary span { font-weight: 800; }
.advance-button { min-width: 72px; border: 0; border-radius: 8px; padding: 8px 9px; color: var(--ink); background: #e8eff3; font-size: .7rem; font-weight: 800; }
.advance-button.cooking { color: #7f4b0d; background: #fff0dc; }
.advance-button.finish { color: #17644f; background: #dcf5ed; }
.advance-button[disabled] { color: #82909a; background: #eef1f3; cursor: default; }
.empty-board { grid-column: 1 / -1; min-height: 260px; display: grid; place-items: center; background: white; border: 1px dashed #cbd6dc; border-radius: 16px; }

.admin-workspace { max-width: 1480px; }
.admin-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
.admin-summary div { padding: 16px 18px; background: white; border: 1px solid var(--line); border-radius: 12px; }
.admin-summary span { display: block; color: #778592; font-size: .7rem; font-weight: 750; text-transform: uppercase; letter-spacing: .08em; }
.admin-summary strong { display: block; margin-top: 5px; font-size: 1.45rem; }
.admin-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 18px; align-items: start; }
.admin-panel { padding: 22px; }
.admin-wide { grid-column: 1 / -1; }
.compact-form { display: grid; grid-template-columns: minmax(180px, 1fr) 90px auto; gap: 10px; align-items: end; }
.modifier-admin-form { grid-template-columns: minmax(150px, 1fr) 90px 90px auto; }
#scheduleForm, #scheduleEditForm { grid-template-columns: repeat(2, minmax(0, 1fr)); }
#scheduleForm .secondary-button, #scheduleEditForm .secondary-button { grid-column: 1 / -1; width: 100%; }
.availability-form { grid-template-columns: 1fr 1fr 160px 130px auto; }
.stacked-form { display: grid; gap: 12px; }
.settings-check { display: flex; align-items: flex-start; gap: 11px; padding: 12px 13px; background: #f7f9fa; border: 1px solid var(--line); border-radius: 10px; }
.settings-check input { flex: 0 0 auto; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--teal); }
.settings-check span { min-width: 0; }
.settings-check strong, .settings-check small { display: block; }
.settings-check small { margin-top: 3px; color: #667685; font-weight: 500; line-height: 1.4; }
.check-label { min-height: 43px; display: flex; align-items: center; gap: 9px; padding: 8px 10px; background: #f7f9fa; border: 1px solid var(--line); border-radius: 9px; }
.check-label input { width: 17px; height: 17px; margin: 0; accent-color: var(--teal); }
.admin-table-wrap { margin: 20px -22px -22px; overflow-x: auto; border-top: 1px solid var(--line); border-radius: 0 0 16px 16px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: .78rem; }
.admin-table th { padding: 11px 16px; color: #70808d; background: #f4f7f8; text-align: left; font-size: .66rem; text-transform: uppercase; letter-spacing: .07em; }
.admin-table td { padding: 12px 16px; border-top: 1px solid #edf1f3; }
.admin-table tbody tr:hover { background: #f8fbfa; }
.admin-help { margin: -5px 0 14px; color: #667685; font-size: .78rem; line-height: 1.55; }
.csv-input { min-height: 190px; font-family: "Cascadia Mono", Consolas, monospace; font-size: .72rem; line-height: 1.5; white-space: pre; }
.import-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 12px; }
.import-result { margin-top: 12px; padding: 11px 13px; color: #226451; background: var(--mint); border-radius: 9px; font-size: .76rem; white-space: pre-line; }
.import-result.error { color: #8c3037; background: #fbecee; }

/* Menu-first catalog administration */
.catalog-workspace { max-width: 1320px; }
.menu-command-bar { display: flex; align-items: end; justify-content: space-between; gap: 22px; padding: 18px 20px; margin-bottom: 16px; }
.menu-picker-block { display: grid; grid-template-columns: minmax(220px, 360px) auto; align-items: end; gap: 5px 14px; }
.menu-picker-block label { grid-column: 1 / -1; color: var(--ink-soft); font-size: .72rem; font-weight: 800; }
.menu-picker-block select { min-width: 260px; font-size: .9rem; font-weight: 800; }
.menu-status { align-self: center; padding: 7px 10px; color: #637783; background: #edf2f3; border-radius: 999px; font-size: .7rem; font-weight: 800; white-space: nowrap; }
.menu-status.active { color: #0c755e; background: #e3f5f0; }
.menu-command-actions, .catalog-primary-actions { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.catalog-browser { padding: 0; overflow: hidden; }
.catalog-browser-toolbar { display: flex; align-items: end; justify-content: space-between; gap: 18px; padding: 20px; border-bottom: 1px solid var(--line); }
.catalog-admin-search { flex: 1; max-width: 600px; }
.catalog-admin-search span { display: block; margin-bottom: 7px; color: var(--ink-soft); font-size: .72rem; font-weight: 800; }
.catalog-admin-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 13px 20px; background: #f8faf9; border-bottom: 1px solid var(--line); scrollbar-width: thin; }
.catalog-admin-tab { flex: 0 0 auto; padding: 9px 15px; color: #526877; background: white; border: 1px solid var(--line); border-radius: 999px; font-size: .73rem; font-weight: 850; }
.catalog-admin-tab.active { color: white; background: var(--teal); border-color: var(--teal); }
.menu-overview { display: grid; gap: 0; }
.menu-category-section + .menu-category-section { border-top: 8px solid #f1f5f5; }
.menu-category-section > header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 20px; background: white; border-bottom: 1px solid var(--line); }
.menu-category-section > header h2 { display: inline; margin: 0 8px 0 0; font-size: .96rem; }
.menu-category-section > header span { color: var(--muted); font-size: .7rem; }
.menu-item-list { display: grid; }
.menu-item-row { width: 100%; display: grid; grid-template-columns: 58px minmax(180px, 1fr) 120px 100px 54px; gap: 14px; align-items: center; min-height: 72px; padding: 10px 20px; color: var(--ink); background: white; border: 0; border-bottom: 1px solid #edf1f2; text-align: left; }
.menu-item-row:hover { background: #f5fbf9; }
.menu-item-row.inactive { opacity: .56; }
.menu-item-row img, .menu-item-placeholder { width: 52px; height: 52px; object-fit: cover; display: grid; place-items: center; border-radius: 10px; background: #e3f3ef; color: #177760; font-size: 1.1rem; font-weight: 900; }
.menu-item-copy strong, .menu-item-copy small { display: block; }
.menu-item-copy small { max-width: 620px; margin-top: 5px; color: #6b7c89; line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-item-station { color: #607381; font-size: .68rem; font-weight: 850; text-transform: uppercase; }
.menu-item-price { color: #087b64; text-align: right; font-size: .78rem; }
.menu-item-edit { color: #607381; font-size: .72rem; font-weight: 800; text-align: right; }
.category-empty, .catalog-empty { margin: 0; padding: 32px 20px; color: var(--muted); text-align: center; }
.catalog-empty { min-height: 240px; display: grid; place-content: center; justify-items: center; gap: 8px; }
.catalog-empty[hidden] { display: none; }
.catalog-empty strong { color: var(--ink); font-size: 1rem; }
.catalog-empty button { margin-top: 8px; }
.catalog-advanced { margin: 18px 0; }
.catalog-advanced > summary { display: flex; justify-content: space-between; gap: 16px; padding: 15px 18px; color: #425968; background: white; border: 1px solid var(--line); border-radius: 13px; font-size: .78rem; font-weight: 850; cursor: pointer; }
.catalog-advanced > summary span { color: var(--muted); font-weight: 600; }
.catalog-advanced[open] > summary { margin-bottom: 16px; }
.catalog-hidden-summary { display: none; }
.catalog-dialog { width: min(560px, calc(100vw - 28px)); max-height: calc(100vh - 36px); padding: 0; color: var(--ink); background: white; border: 0; border-radius: 18px; box-shadow: 0 28px 90px rgba(9, 29, 43, .24); overflow: auto; }
.catalog-dialog-wide { width: min(920px, calc(100vw - 28px)); }
.catalog-dialog::backdrop { background: rgba(8, 27, 41, .48); backdrop-filter: blur(3px); }
.catalog-dialog > form, .catalog-dialog > div { padding: 22px; }
.catalog-dialog header { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: -22px -22px 20px; padding: 20px 22px 16px; border-bottom: 1px solid var(--line); }
.catalog-dialog header h2 { margin: 3px 0 0; }
.catalog-dialog footer { display: flex; justify-content: flex-end; gap: 10px; margin: 8px -22px -22px; padding: 17px 22px; background: #f7faf9; border-top: 1px solid var(--line); }
.dialog-x { width: 36px; height: 36px; color: #627582; background: #eef3f4; border: 0; border-radius: 10px; font-size: 1.35rem; }
.catalog-new-image { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 16px; align-items: center; padding: 14px; background: var(--surface-soft); border: 1px dashed #bfd3d0; border-radius: 13px; }
.catalog-new-image .menu-item-placeholder { width: 84px; height: 72px; overflow: hidden; }
.catalog-new-image .menu-item-placeholder img { width: 100%; height: 100%; object-fit: cover; }
.catalog-new-image label span { display: block; margin: 4px 0 9px; color: var(--muted); font-size: .7rem; font-weight: 600; }

@media (max-width: 760px) {
    .menu-command-bar, .catalog-browser-toolbar { align-items: stretch; flex-direction: column; }
    .menu-picker-block { grid-template-columns: 1fr; }
    .menu-picker-block label { grid-column: auto; }
    .menu-picker-block select { min-width: 0; }
    .menu-command-actions, .catalog-primary-actions { display: grid; grid-template-columns: 1fr; }
    .menu-item-row { grid-template-columns: 48px minmax(0, 1fr) auto; padding: 10px 14px; gap: 10px; }
    .menu-item-row img, .menu-item-placeholder { width: 44px; height: 44px; }
    .menu-item-station, .menu-item-edit { display: none; }
    .menu-item-price { grid-column: 3; grid-row: 1; }
    .catalog-advanced > summary span { display: none; }
}

.join-shell { min-height: 100vh; display: grid; place-items: center; padding: 28px; }
.join-shell .login-card { width: min(520px, 100%); padding: 38px; background: white; border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 24px 70px rgba(14, 34, 52, .13); }
.login-brand { width: 190px; margin-bottom: 30px; }
.join-shell h1 { margin: 5px 0 12px; font-size: 2rem; }
.join-shell p { color: var(--ink-soft); line-height: 1.6; }
.join-shell form { margin-top: 24px; }
.join-shell form button { width: 100%; }
.join-help { margin: 18px 0 0; font-size: .75rem; }
.team-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.two-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.team-wide { grid-column: 1 / -1; }
.branch-fieldset { margin: 0; padding: 14px; border: 1px solid var(--line); border-radius: 11px; }
.branch-fieldset legend { padding: 0 6px; color: #677887; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.branch-checks { display: flex; flex-wrap: wrap; gap: 8px; }
.branch-checks label { display: flex; align-items: center; gap: 7px; padding: 8px 10px; color: #41576a; background: #f5f8f9; border: 1px solid var(--line); border-radius: 8px; font-size: .74rem; }
.branch-checks input { width: 16px; height: 16px; margin: 0; accent-color: var(--teal); }
.invite-result { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: end; margin-top: 18px; padding: 14px; background: var(--mint); border: 1px solid #ccebe2; border-radius: 11px; }
.invite-result[hidden] { display: none; }
.invite-result small { grid-column: 1 / -1; color: #527266; }
.team-list { display: grid; gap: 10px; }
.team-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px; border: 1px solid var(--line); border-radius: 10px; }
.team-row p { margin: 5px 0 0; color: #72818e; font-size: .72rem; }
.team-member { display: grid; grid-template-columns: minmax(180px, 1fr) 130px 110px minmax(220px, 2fr) auto; gap: 12px; align-items: end; padding: 15px; border: 1px solid var(--line); border-radius: 11px; }
.member-identity strong, .member-identity span { display: block; }
.member-identity span { margin-top: 5px; color: #748390; font-size: .72rem; }

@media (max-width: 1400px) {
    .admin-grid .three-columns,
    .admin-grid .four-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.modifier-admin-form .secondary-button {
    grid-column: 1 / -1;
    width: 100%;
}
#categoryEditForm .secondary-button {
    grid-column: 1 / -1;
    width: 100%;
}

@media (max-width: 1100px) {
    .landing-shell { grid-template-columns: 1fr; }
    .landing-visual { display: none; }
    .admin-grid { grid-template-columns: 1fr; }
    .admin-wide { grid-column: auto; }
    .team-grid { grid-template-columns: 1fr; }
    .team-wide { grid-column: auto; }
    .team-member { grid-template-columns: 1fr 1fr; }
    .availability-form { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 880px) {
    .pos-grid { grid-template-columns: 1fr; }
    .recent-panel { position: static; max-height: none; }
    .basket-panel .item-list { max-height: 420px; }
    .recent-orders { max-height: 350px; }
}
@media (max-width: 820px) {
    .landing-card { padding: 36px 24px; }
    .landing-logo { margin-bottom: 40px; }
    .tenant-entry { flex-direction: column; }
    .topbar { height: auto; min-height: 64px; grid-template-columns: minmax(0, 1fr) auto; padding: 10px 16px; gap: 8px; }
    .workspace-nav { width: 100%; grid-row: 2; grid-column: 1 / -1; height: 42px; }
    .nav-link { padding: 0 12px; }
    .session-name { display: none; }
    .workspace { width: min(100% - 24px, 1540px); padding-top: 24px; }
    .workspace-heading, .kitchen-heading { align-items: stretch; flex-direction: column; }
    .panel-heading { align-items: flex-start; flex-wrap: wrap; }
    .shift-panel { align-items: flex-start; flex-wrap: wrap; }
    .shift-actions, .heading-actions, .receipt-logo-actions, .settings-footer { flex-wrap: wrap; }
    .three-columns, .four-columns, .item-fields { grid-template-columns: 1fr 1fr; }
    .item-name, .item-notes { grid-column: 1 / -1; }
    .selected-modifiers { grid-column: 1 / -1; }
    .kitchen-controls { display: grid; grid-template-columns: 1fr 1fr; }
    .kitchen-controls label { min-width: 0; }
    .admin-summary { grid-template-columns: 1fr 1fr; }
    .compact-form, .modifier-admin-form { grid-template-columns: 1fr 1fr; }
    .invite-result { grid-template-columns: 1fr; }
    .invite-result small { grid-column: auto; }
}
@media (max-width: 700px) {
    .table-picker-map { min-height: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 12px; background-size: 10% 10%; }
    .table-picker-table { position: static; width: auto !important; height: auto !important; min-width: 0; min-height: 92px; }
    .table-picker-dialog footer { align-items: stretch; flex-direction: column; }
    .dialog-footer-actions { justify-content: flex-end; }
}
@media (max-width: 480px) {
    .basket-column-headings, .basket-panel .basket-line { grid-template-columns: 56px minmax(0, 1fr) 76px 28px; gap: 6px; }
    .brand-link img { width: 132px; }
    .two-columns, .three-columns, .four-columns, .item-fields, .payment-totals { grid-template-columns: 1fr; }
    .admin-grid .three-columns, .admin-grid .four-columns { grid-template-columns: 1fr; }
    .item-name, .item-notes { grid-column: auto; }
    .selected-modifiers { grid-column: auto; }
    .catalog-heading { align-items: stretch; flex-direction: column; }
    .catalog-search { width: 100%; }
    .catalog-products, .kitchen-board { grid-template-columns: minmax(0, 1fr); }
    .modifier-options { grid-template-columns: 1fr; }
    .admin-summary, .compact-form, .modifier-admin-form, .availability-form, #scheduleForm, #scheduleEditForm { grid-template-columns: 1fr; }
    .team-member { grid-template-columns: 1fr; }
    .import-actions { align-items: stretch; flex-direction: column; }
    .order-panel { padding: 17px; }
    .checkout-bar { margin: 22px -17px -17px; padding: 17px; }
    .checkout-button { min-width: 125px; }
    .recent-order-bottom { grid-template-columns: minmax(0, 1fr) auto; }
    .recent-order-bottom .payment-button { margin-left: 0; }
    .day-book-nav { display: grid; grid-template-columns: auto minmax(0,1fr) auto auto; width: 100%; }
    .day-book-nav input { width: 100%; min-width: 0; }
    .business-day-facts, .sales-kpis { grid-template-columns: 1fr; }
}
.summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .25rem 0;
}

.summary-row strong {
    text-align: right;
}

.online-tracking-shell { width: min(760px, calc(100% - 40px)); }
.tracking-head { display: flex; align-items: start; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.tracking-head h2 { margin: 4px 0 0; }
.tracking-head > strong { font-size: 1.15rem; }
.tracking-privacy { display: block; margin-top: 18px; color: var(--ink-soft); line-height: 1.5; }
.input-prefix { display: grid; grid-template-columns: auto 1fr; align-items: center; overflow: hidden; border: 1px solid var(--line); border-radius: 9px; background: #f4f7f8; }
.input-prefix span { padding: 0 0 0 12px; color: var(--ink-soft); font-size: .8rem; }
.input-prefix input { border: 0; border-radius: 0; background: white; }
.booking-history-heading{display:flex;justify-content:space-between;gap:18px;align-items:flex-start;margin-top:28px;padding-top:24px;border-top:1px solid var(--line)}.booking-history-heading h3{margin:.2rem 0}.booking-history-heading p{margin:.25rem 0}.booking-history-card{grid-template-columns:88px minmax(0,1fr)}.guest-status[data-status="accepted"]{background:#e4f7ef;color:#16745c}.guest-status[data-status="declined"]{background:#fbecee;color:#a33840}.guest-status[data-status="expired"]{background:#fff0df;color:#9b5412}.guest-status[data-status="withdrawn"]{background:#e8f0f7;color:#355f7d}
.guest-status[data-status="cancelled"]{background:#e8f0f7;color:#355f7d}.guest-status[data-status="rejected"]{background:#fbecee;color:#a33840}.guest-status[data-status="preparing"],.guest-status[data-status="ready"],.guest-status[data-status="completed"]{background:#e8f0f7;color:#355f7d}.online-history-card{gap:7px}.online-history-card p{margin:0;color:var(--muted)}.online-history-card small{color:var(--muted)}.online-history-card .online-intake-decision{color:var(--ink);font-weight:700}
.online-history-filters{display:grid;grid-template-columns:minmax(240px,1fr) minmax(160px,240px);gap:12px;margin:16px 0}.online-history-filters label{margin:0}@media(max-width:680px){.online-history-filters{grid-template-columns:1fr}}
.kitchen-completion-panel{margin-top:24px}.kitchen-completion-panel .delivery-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(270px,1fr));gap:12px}.kitchen-completion-panel .delivery-card{margin:0}
.pos-order-filters{display:grid;gap:10px;margin:12px 0 16px}.pos-order-filters label{margin:0}.pos-closed-heading{margin-top:24px}.heading-actions{display:flex;align-items:center;gap:8px}
.delivery-card[data-wait-level="attention"]{border-left:4px solid #d99028}.delivery-card[data-wait-level="urgent"]{border-left:4px solid #c94747;background:#fffafa}

/* Queue workspaces deliberately use a zero-padding panel shell for populated cards.
   Empty queues still need an inset content frame so headings and filters do not
   sit against the panel border. */
main:has(#onlineOrderList) > .panel,
main:has(#collectionOrders) > .panel,
main:has(#advanceOrders) > .panel,
.inventory-layout > .panel:has(#deliveryOrders),
.inventory-layout > .panel:has(#scheduleList),
.host-queues > .panel,
.kitchen-completion-panel {
    padding: 22px;
}

main:has(#onlineOrderList) > .panel > .panel-heading,
main:has(#collectionOrders) > .panel > .panel-heading,
main:has(#advanceOrders) > .panel > .panel-heading,
.inventory-layout > .panel:has(#deliveryOrders) > .panel-heading,
.inventory-layout > .panel:has(#scheduleList) > .panel-heading,
.host-queues > .panel > .panel-heading {
    margin-bottom: 16px;
}

.recent-panel .pos-order-filters { padding: 0 20px; }
.recent-panel .pos-closed-heading {
    margin: 0;
    padding: 22px 20px 16px;
    border-top: 1px solid var(--line);
}

.kitchen-completion-panel > .booking-history-heading {
    margin: 0 0 16px;
    padding: 0;
    border-top: 0;
}

.empty-board { min-height: 190px; }

.language-switcher {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 60;
    display: flex;
    gap: 4px;
    padding: 4px;
    background: rgba(255,255,255,.96);
    border: 1px solid var(--line);
    border-radius: 999px;
    box-shadow: 0 10px 28px rgba(10,31,48,.16);
    backdrop-filter: blur(10px);
}
.language-switcher a {
    padding: 8px 11px;
    color: var(--ink-soft);
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 800;
    text-decoration: none;
}
.language-switcher a.active { color: white; background: var(--teal); }
html[dir="rtl"] body { text-align: right; }
html[dir="rtl"] .language-switcher { right: auto; left: 18px; }
html[dir="rtl"] input[type="email"],
html[dir="rtl"] input[type="tel"],
html[dir="rtl"] input[type="number"],
html[dir="rtl"] input[type="date"],
html[dir="rtl"] input[type="time"],
html[dir="rtl"] input[type="datetime-local"] { direction: ltr; text-align: right; }
@media (max-width: 480px) {
    .language-switcher { right: 10px; bottom: 10px; }
    html[dir="rtl"] .language-switcher { right: auto; left: 10px; }
}

.catalog-image-editor { display: grid; grid-template-columns: 96px minmax(180px, 1fr) auto; gap: 12px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-soft); }
.catalog-image-editor small { grid-column: 2; color: var(--muted); }
.catalog-image-preview { grid-row: 1 / span 2; width: 96px; height: 76px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); background: #eef4f3; }
@media (max-width: 720px) { .catalog-image-editor { grid-template-columns: 76px 1fr; } .catalog-image-editor .secondary-button { grid-column: 1 / -1; } .catalog-image-preview { width: 76px; height: 68px; } }
