/* Scoped to staff desk; guest ordering and kitchen display retain their layouts. */
.table-move-overlay .cw-panel { width:min(920px,96vw); max-height:92vh; overflow:auto; }
.table-move-modes { display:flex; flex-wrap:wrap; gap:12px; }
.table-move-modes button { flex:1; min-height:52px; }
.table-move-targets { display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:12px; max-height:35vh; overflow:auto; padding:4px; }
.table-move-targets button { min-height:88px; display:flex; flex-direction:column; justify-content:center; gap:8px; border:2px solid transparent; }
.table-move-targets button.is-selected { border-color:#d62920; background:#fff1eb; }
.table-move-targets span { font-size:13px; font-weight:400; }
.table-move-review { background:#f1f4f0; padding:16px; border-radius:14px; margin-top:16px; }
.table-move-review p:last-child { margin-bottom:0; }
.table-move-message { color:#b02822; }
.table-move-overlay .cw-actions { justify-content:flex-end; }
@media(max-width:600px) { .table-move-modes { flex-direction:column; } .table-move-overlay .cw-panel { padding:16px; } }
body.frontdesk-workspace { background:#f0f2ef; color:#303a40; }
body.frontdesk-workspace .app-shell { display:block; }
body.frontdesk-workspace .sidebar, body.frontdesk-workspace .topbar { display:none; }
body.frontdesk-workspace .workspace { width:100%; max-width:1920px; min-width:0; margin:0 auto; padding:16px 20px; }
body.frontdesk-workspace #frontdeskBoard { margin:0; display:block; }
body.frontdesk-workspace:not(.frontdesk-menu-open) #orderView > .order-layout { display:none; }
body.frontdesk-workspace.frontdesk-menu-open #orderView > .order-layout { margin-top:16px; }
body.frontdesk-workspace.frontdesk-menu-open #tableStrip { display:none; }
.desk-header { display:flex; align-items:center; gap:14px; min-height:62px; padding-bottom:14px; border-bottom:1px solid #d8ded9; }
.desk-header button, .desk-header select { min-height:44px; }
.desk-menu-button { border:0; background:transparent; font-size:25px; padding:8px 12px; color:#475457; }
.desk-store { display:grid; gap:4px; }
.desk-store strong { font-size:16px; }
.desk-store span { font-size:12px; color:#718078; }
.desk-header time { margin-left:auto; color:#68766e; font-size:12px; white-space:nowrap; }
.desk-header-actions { display:flex; align-items:center; gap:8px; }
.desk-header-actions .secondary-button { padding:9px 12px; font-size:13px; background:#e1e7e1; }
[data-desk-connection] { color:#31814f; font-size:12px; }
[data-desk-connection].offline { color:#b6452c; }
.desk-language select { border:1px solid #d3dbd5; border-radius:7px; background:#fff; color:#35423d; font:inherit; font-size:13px; padding:8px; }
.desk-language .sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); }
.desk-layout { display:grid; grid-template-columns:176px minmax(0,1fr); gap:18px; height:calc(100vh - 112px); height:calc(100dvh - 112px); min-height:420px; margin-top:16px; }
.desk-sidebar { display:flex; flex-direction:column; min-height:0; gap:10px; }
.desk-sidebar h3 { margin:0; padding:2px 8px; font-size:14px; font-weight:600; border-left:3px solid #de544a; }
.desk-table-list { flex:1; min-height:0; overflow-y:auto; overscroll-behavior:contain; display:flex; flex-direction:column; gap:8px; padding:8px; border-radius:10px; background:#e4e8e2; scrollbar-width:thin; }
.desk-table-button { width:100%; display:grid; flex-shrink:0; gap:7px; padding:14px 10px; min-height:95px; border:1px solid transparent; border-radius:8px; color:#6a7574; background:#fafbf8; text-align:center; }
.desk-table-button strong { font-size:19px; }
.desk-table-button span { display:flex; justify-content:space-between; align-items:center; font-size:15px; }
.desk-table-button small { font-size:11px; }
.desk-table-button.occupied { color:#35413b; }
.desk-table-button.occupied span { color:#29984c; font-weight:700; }
.desk-table-button.selected { background:#303d42; color:#fff; border-color:#303d42; }
.desk-table-button.selected.occupied span { color:#77dc8c; }
.desk-table-button i { font-size:15px; font-style:normal; }
.desk-overview { min-height:86px; }
.desk-overview span { justify-content:center; font-size:12px; }
.desk-overview strong { font-size:16px; }
.desk-table-tools { background:#e8b33f; color:#3e3627; border:0; border-radius:8px; min-height:54px; font-weight:700; font-size:16px; }
.desk-main { display:flex; flex-direction:column; min-width:0; min-height:0; background:#fafbf8; border:1px solid #e0e5dd; border-radius:10px; overflow:hidden; }
.desk-status-tabs { display:flex; border-bottom:2px solid #52a35d; background:#edf0e9; }
.desk-status-tabs button { flex:1; min-height:56px; border:0; border-radius:6px 6px 0 0; padding:12px 6px; background:transparent; color:#576561; font-size:15px; }
.desk-status-tabs button.active { color:#fff; background:#429d50; }
.desk-queue-toolbar { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:8px; padding:12px 16px; color:#7b867d; font-size:12px; }
.desk-queue-toolbar input { padding:6px; border:1px solid #d6ddd4; border-radius:5px; background:#fff; min-height:36px; }
.desk-queue-scroll, .desk-detail-scroll { flex:1; min-height:0; overflow:auto; overscroll-behavior:contain; scrollbar-width:thin; }
.desk-queue-scroll { padding:0 14px 14px; }
.desk-order-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; align-items:start; }
.desk-order-card { border:1px solid #dce3da; border-radius:8px; background:#fff; overflow:hidden; }
.desk-order-card header { display:flex; align-items:start; gap:8px; padding:12px; background:#edf2e8; }
.desk-order-card header > button { background:transparent; border:0; padding:0; text-align:left; flex:1; min-width:0; color:#344039; }
.desk-order-card header strong { font-size:16px; }
.desk-order-card small { display:block; font-size:12px; color:#758177; line-height:1.5; margin-top:4px; }
.desk-order-card header > b { font-size:14px; white-space:nowrap; }
.desk-card-items { padding:0 12px; }
.desk-card-item { padding:12px 0; border-bottom:1px solid #edf0e9; }
.desk-card-item > strong { font-size:14px; line-height:1.6; }
.desk-card-item .order-item-controls { margin-top:8px; }
.desk-order-card footer { display:flex; gap:6px; align-items:center; flex-wrap:wrap; padding:10px; font-size:12px; }
.desk-order-card footer > span { margin-right:auto; color:#718078; }
.desk-order-card footer button { min-height:40px; font-size:12px; padding:8px 10px; }
.desk-main .order-item-controls { display:flex; flex-wrap:wrap; gap:6px; align-items:center; }
.desk-main .order-item-cancel, .desk-main .desk-serve-button, .desk-row-actions .secondary-button { min-height:44px; min-width:44px; padding:8px 10px; font-size:12px; border-radius:5px; white-space:nowrap; }
.desk-serve-button { color:#fff; background:#418d4f; border:0; font-weight:600; }
.desk-main .order-item-status { color:#718177; background:none; padding:0; font-size:12px; }
.desk-empty { height:100%; min-height:200px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:10px; color:#9aa59a; text-align:center; padding:20px; }
.desk-empty strong { font-size:19px; font-weight:500; }
.desk-empty p { margin:0; line-height:1.7; font-size:13px; }
.desk-queue-footer { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:12px 16px; border-top:1px solid #e4e8df; }
.desk-pagination { display:flex; align-items:center; gap:10px; color:#fff; background:#354247; border-radius:30px; overflow:hidden; }
.desk-pagination button { width:42px; height:42px; color:inherit; background:transparent; border:0; font-size:25px; }
.desk-pagination button:disabled { opacity:.25; }
.desk-pagination span { font-size:13px; min-width:40px; text-align:center; }
.desk-sound { display:flex; gap:9px; align-items:center; color:#68786a; font-size:13px; }
.desk-sound input { width:22px; height:22px; accent-color:#44994a; }
.desk-table-heading { display:flex; flex-wrap:wrap; gap:10px; align-items:center; justify-content:space-between; padding:16px 18px 10px; }
.desk-table-heading > div { display:flex; gap:14px; align-items:center; }
.desk-table-heading h2 { font-size:24px; margin:0; }
.desk-table-heading span { color:#66786a; font-size:14px; }
.desk-table-heading-actions button { min-height:40px; font-size:12px; padding:8px 12px; }
.desk-session-meta { display:flex; flex-wrap:wrap; gap:12px 28px; padding:4px 18px 16px; font-size:13px; color:#68776b; }
.desk-session-meta b { font-weight:400; }
.desk-detail-tabs { display:flex; gap:4px; background:#e9ede5; border-bottom:1px solid #cfd7cc; padding:0 10px; }
.desk-detail-tabs button { min-height:50px; min-width:145px; border:0; background:transparent; color:#647466; font-size:15px; }
.desk-detail-tabs button.active { background:#fafbf8; color:#344138; font-weight:700; border-top:3px solid #df574d; }
.desk-items-table { width:100%; border-collapse:collapse; font-size:14px; }
.desk-items-table th { position:sticky; top:0; z-index:1; text-align:left; color:#6d7b6e; background:#f0f3ec; padding:12px; font-size:12px; font-weight:600; white-space:nowrap; }
.desk-items-table td { padding:14px 12px; vertical-align:middle; border-bottom:1px solid #e1e7dd; }
.desk-items-table td:first-child { min-width:140px; }
.desk-items-table strong { font-weight:600; line-height:1.6; }
.desk-items-table small { display:block; color:#7b8170; font-size:12px; margin-top:4px; line-height:1.6; }
.desk-items-table .desk-quantity { text-align:center; font-weight:600; font-variant-numeric:tabular-nums; }
.desk-items-table .desk-money { text-align:right; white-space:nowrap; font-variant-numeric:tabular-nums; }
.desk-tax-cell { font-size:12px; white-space:nowrap; }
.desk-order-link { display:block; background:none; padding:7px 0 0; border:0; font-size:11px; color:#75877a; text-align:left; }
.desk-row-actions { display:flex; flex-wrap:wrap; gap:5px; min-width:160px; max-width:210px; }
.desk-row-actions .order-item-status { flex-basis:100%; }
.desk-row-actions [data-desk-add-dish] { min-width:38px; font-size:18px; padding:4px 8px; }
.desk-main .is-cancelled td:first-child strong { text-decoration:line-through; }
.desk-payment-info { padding:0 18px; }
.desk-payment-info h3 { font-size:16px; margin:20px 0; }
.desk-payment-info p { font-size:14px; color:#6a7c6e; line-height:1.8; }
.desk-table-total { background:#edf0e9; padding:14px 18px; display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:10px; }
.desk-table-total > div { font-size:12px; color:#6b796b; line-height:1.8; }
.desk-table-total > span { margin-left:auto; font-size:13px; }
.desk-table-total strong { font-size:27px; font-weight:600; margin-left:14px; color:#273831; white-space:nowrap; }
.desk-table-footer { display:flex; flex-wrap:wrap; gap:12px; align-items:center; padding:14px 18px; }
.desk-table-footer > div { display:flex; flex-wrap:wrap; gap:8px; margin-right:auto; }
.desk-table-footer button { min-height:48px; padding:12px 18px; font-size:14px; }
.desk-table-footer .primary-button { min-width:125px; }
.desk-cashier-hint { color:#758375; font-size:12px; }
.desk-merge-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr)); gap:12px; margin:20px 0; }
.desk-merge-table { display:flex; align-items:center; gap:12px; min-height:90px; padding:16px; border:1px solid #d5ddd1; border-radius:10px; background:#f3f6ee; cursor:pointer; }
.desk-merge-table:focus-within { outline:3px solid #3b7ca4; outline-offset:2px; }
.desk-merge-table.is-selected { background:#fff1cf; border-color:#ce9a30; }
.desk-merge-table input { width:24px; height:24px; flex:none; accent-color:#bb8c2a; }
.desk-merge-table span { flex:1; min-width:0; overflow-wrap:anywhere; }
.desk-merge-table small { display:block; margin-top:7px; color:#6d776c; font-size:12px; }
.desk-merge-table b { white-space:nowrap; font-variant-numeric:tabular-nums; }
.desk-merge-table.is-blocked { opacity:.65; cursor:default; }
#deskMergeOverlay .cw-total { flex-wrap:wrap; }
#deskMergeOverlay .cw-actions { position:sticky; bottom:-1px; padding:12px 0; background:#fffdf9; }
.desk-menu-toolbar { display:flex; flex-wrap:wrap; gap:16px; align-items:center; margin-top:14px; }
.desk-menu-toolbar span { color:#748174; font-size:13px; }
.frontdesk-board button:focus-visible { outline:3px solid #3b7ca4; outline-offset:-3px; }
@media(min-width:1450px) { .desk-order-grid { grid-template-columns:repeat(3,minmax(0,1fr)); } .desk-layout { grid-template-columns:190px minmax(0,1fr); } }
@media(max-width:1100px) { .desk-header { flex-wrap:wrap; gap:8px; } .desk-header time { display:none; } .desk-header-actions { margin-left:auto; } .desk-layout { grid-template-columns:148px minmax(0,1fr); gap:12px; }  .desk-items-table td, .desk-items-table th { padding:12px 9px; } .desk-row-actions { min-width:160px; max-width:180px; } }
@media(min-width:681px) and (max-width:850px) { body.frontdesk-workspace .workspace { padding:12px; } .desk-layout { grid-template-columns:130px minmax(0,1fr); } .desk-order-grid { grid-template-columns:1fr; } .desk-header-actions [data-desk-connection], .desk-tax-cell { display:none; } .desk-table-heading-actions { flex-wrap:wrap; } .desk-table-footer { gap:8px; padding:12px; } .desk-table-footer .primary-button { min-width:100px; } .desk-table-footer button { padding:10px 12px; } .desk-items-table { font-size:13px; } .desk-items-table td:first-child { min-width:130px; } }
@media(max-width:680px) { body.frontdesk-workspace .workspace { padding:10px; } .desk-store strong { font-size:14px; } .desk-header { gap:6px; } .desk-header-actions { width:100%; } .desk-header-actions button { white-space:nowrap; } .desk-header-actions [data-desk-connection], .desk-tax-cell { display:none; } .desk-header-actions [data-desk-user] { margin-left:auto; } .desk-layout { display:flex; flex-direction:column; height:auto; min-height:0; margin-top:12px; gap:10px; } .desk-sidebar { display:grid; grid-template-columns:minmax(0,1fr) 85px; gap:6px; } .desk-sidebar h3 { grid-column:1/-1; } .desk-table-list { flex-direction:row; overflow:auto; padding:6px; gap:6px; } .desk-table-button { width:106px; min-height:88px; padding:9px; gap:4px; } .desk-table-button strong { font-size:15px; } .desk-table-button span { font-size:12px; } .desk-table-button small { font-size:10px; } .desk-table-tools { font-size:13px; padding:6px; } .desk-main { min-height:440px; max-height:none; overflow:hidden; } .desk-status-tabs button { font-size:12px; min-height:50px; } .desk-queue-scroll { max-height:65vh; padding:0 10px 10px; } .desk-order-grid { grid-template-columns:1fr; } .desk-queue-toolbar { padding:10px; } .desk-table-heading { padding:14px 10px 8px; } .desk-table-heading h2 { font-size:20px; } .desk-table-heading-actions { flex-wrap:wrap; } .desk-session-meta { padding:4px 10px 12px; font-size:12px; } .desk-items-table { min-width:550px; } .desk-detail-scroll { max-height:55vh; } .desk-queue-footer { padding:10px; } .desk-sound { font-size:12px; gap:5px; } .desk-table-total { padding:12px; } .desk-table-total strong { font-size:25px; } .desk-table-footer { padding:10px; gap:8px; position:sticky; bottom:0; background:#fafbf8; } .desk-table-footer button { padding:10px; min-height:44px; font-size:13px; } .desk-table-footer .primary-button { min-width:90px; flex:1; } .desk-table-footer > div { width:100%; } .desk-menu-toolbar { gap:10px; } }

/* Full-screen staff workspace: keep the table rail beside the selected detail. */
body.frontdesk-workspace:not(.frontdesk-menu-open),
body.frontdesk-workspace:not(.frontdesk-menu-open) .app-shell { min-height:100dvh; }
body.frontdesk-workspace:not(.frontdesk-menu-open) .workspace {
  max-width:none; padding:0;
}
body.frontdesk-workspace:not(.frontdesk-menu-open) #frontdeskBoard {
  display:flex; flex-direction:column; height:100vh; height:100dvh;
  padding:var(--app-safe-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);
}
body.frontdesk-workspace:not(.frontdesk-menu-open) .desk-header {
  flex:none; padding:6px 12px; background:#fafbf8;
}
body.frontdesk-workspace .desk-layout { flex:1; min-height:0; height:auto; margin:0; padding:12px; }
.desk-layout-detail .desk-main { flex:1; border:0; border-radius:0; }
.desk-layout-detail .desk-detail-scroll { max-height:none; }
body.frontdesk-workspace.frontdesk-menu-open .workspace { padding-top:calc(16px + var(--app-safe-top, 0px)); }
.desk-header-actions { flex-wrap:wrap; min-width:0; }
.desk-store { min-width:0; }
.desk-store strong { overflow-wrap:anywhere; }
.desk-table-button.reserved:not(.selected) { background:#fff5dd; border-color:#dabe82; }
@media (max-width:680px) {
  body.frontdesk-workspace:not(.frontdesk-menu-open) .desk-header { gap:4px; }
  body.frontdesk-workspace .desk-layout { overflow:auto; padding:8px; }
  .desk-layout-detail .desk-main { min-height:440px; flex:none; }
  .desk-layout-detail .desk-detail-scroll { max-height:55vh; }
  .desk-layout-detail .desk-table-footer { position:static; }
}
@media (max-height:520px) {
  .desk-layout-detail .desk-main { overflow:auto; display:block; min-height:0; }
  .desk-layout-detail .desk-detail-scroll { overflow:auto; }
}

/* Individual checkout and visit details. */
.desk-session-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px 24px; background:#f0f3ec; margin:0 14px 12px; padding:14px 18px; border-radius:8px; }
.desk-session-grid > span { display:flex; align-items:center; gap:12px; min-width:0; }
.desk-session-grid b { color:#35443a; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.desk-session-grid button { min-height:40px; font-size:13px; justify-self:start; padding:8px 14px; }
.desk-visit-fields { display:grid; grid-template-columns:1fr 1fr; gap:16px; margin:18px 0; }
.desk-split-toggle { display:flex; align-items:center; gap:12px; margin-left:auto; padding:8px 12px; font-size:14px; cursor:pointer; position:relative; white-space:nowrap; }
.desk-split-toggle input { position:absolute; opacity:0; width:56px; height:40px; right:8px; }
.desk-split-toggle i { width:50px; height:30px; border-radius:20px; background:#abb6ab; padding:3px; transition:background .15s; }
.desk-split-toggle i:after { content:""; display:block; width:24px; height:24px; border-radius:50%; background:#fff; box-shadow:0 1px 4px #0002; transition:transform .15s; }
.desk-split-toggle input:checked + i { background:#37864d; }
.desk-split-toggle input:checked + i:after { transform:translateX(20px); }
.desk-split-toggle input:focus-visible + i { outline:3px solid #3b7ca4; outline-offset:3px; }
.desk-split-toolbar { display:flex; align-items:center; flex-wrap:wrap; gap:8px; padding:10px 16px; background:#f7f2df; font-size:12px; color:#645e44; }
.desk-split-toolbar span { flex:1; min-width:200px; line-height:1.6; }
.desk-split-toolbar button { border:1px solid #d3cdb6; border-radius:6px; padding:8px 12px; min-height:40px; background:#fffdf6; color:#514c3e; }
.desk-split-row.is-selected { background:#edf6ed; }
.desk-split-item { display:flex; gap:12px; align-items:center; cursor:pointer; }
.desk-split-item input { width:22px; height:22px; flex:none; accent-color:#37864d; }
.desk-split-quantity { display:flex; align-items:center; justify-content:center; gap:4px; }
.desk-split-quantity button { width:40px; min-height:44px; padding:0; border:1px solid #d5ddd2; border-radius:6px; background:#f0f4ed; color:#415441; font-size:20px; }
.desk-split-quantity button:disabled { opacity:.35; }
.desk-split-quantity label { display:flex; align-items:center; gap:4px; white-space:nowrap; font-size:13px; color:#76816f; }
.desk-split-quantity input { width:46px; min-height:44px; padding:5px 2px; text-align:center; border:1px solid #c5cfc0; border-radius:5px; font:inherit; color:#2f4134; background:#fff; -moz-appearance:textfield; }
.desk-split-quantity input::-webkit-inner-spin-button { -webkit-appearance:none; }
.desk-split-message { display:block; color:#986024; }
.desk-table-total > span > small { display:block; color:#627262; font-size:12px; text-align:right; margin-top:5px; }
.desk-payment-receipt { display:block; margin-top:6px; min-height:40px; font-size:12px; }
.desk-detail-tabs { align-items:center; }
@media(max-width:1100px) { .desk-session-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px 20px; } .desk-split-quantity button { width:34px; } .desk-detail-tabs button { min-width:110px; } }
@media(max-width:680px) { .desk-session-grid { margin:0 8px 10px; padding:12px; gap:8px; font-size:12px; } .desk-session-grid > span { flex-direction:column; align-items:flex-start; gap:3px; } .desk-visit-fields { grid-template-columns:1fr; } .desk-detail-tabs { flex-wrap:wrap; } .desk-split-toggle { padding:10px 4px; gap:6px; font-size:12px; } .desk-detail-tabs button { min-width:90px; font-size:13px; } }
