/* PiPizza administration: PizzaDesk structure with the requested green/brown identity.
   This layer keeps the existing PHP/JS contracts and replaces the presentation. */
@font-face {
  font-family:'Plus Jakarta Sans';font-style:normal;font-weight:400 700;font-display:swap;
  src:url('assets/plus-jakarta-sans-latin-ext.woff2') format('woff2');
  unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family:'Plus Jakarta Sans';font-style:normal;font-weight:400 700;font-display:swap;
  src:url('assets/plus-jakarta-sans-latin.woff2') format('woff2');
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
:root {
  --surface-0:#eee;--surface-100:#fff;--surface-200:#fafbf9;--surface-300:#f2f4f1;
  --line:#e8e8e8;--line-strong:#d9dce1;--ink:#0f1115;--ink-2:#2e3a48;--muted:#6b7280;--subtle:#a3a8ae;
  --brand:#397544;--brand-ink:#285d34;--brand-50:#edf5e9;--brand-line:#c9ddc3;--brand-ring:rgba(57,117,68,.12);
  --brown:#765339;--brown-50:#f6f0e9;--info-ink:var(--brown);--info-50:var(--brown-50);--progress-ink:#80600a;--progress-50:#fff2ce;
  --new-ink:#9b4038;--new-50:#fcedea;
  --ready-ink:#285d34;--ready-50:#edf5e9;--warn-ink:#8a6a12;--warn-50:#fffae5;
  --danger-ink:#c0352f;--danger-50:#fdeceb;--star:#f8b51e;
  --shadow-sm:0 1px 2px rgba(16,24,40,.04);--shadow-md:0 8px 24px rgba(16,24,40,.08);
  --paper:var(--surface-100);--bg:var(--surface-200);--surface:var(--surface-300);
  --accent:var(--brand);--accent-hover:var(--brand-ink);--accent-soft:var(--brand-50);
  --success:var(--ready-ink);--success-soft:var(--ready-50);--danger:var(--danger-ink);--danger-soft:var(--danger-50);--focus:var(--brand);
  --radius:12px;--shadow:var(--shadow-sm);--font-sans:'Plus Jakarta Sans',system-ui,-apple-system,'Segoe UI',sans-serif;
  font-family:var(--font-sans);font-size:16px;line-height:1.4667;
}
body { background:var(--paper);font-family:var(--font-sans);font-size:15px;color:var(--ink); }
html { scroll-padding-block-start:calc(var(--topbar-height,64px) + 12px); }
button,input,select,textarea,kbd { font-family:var(--font-sans); }
button { font-weight:400; }
button:disabled { opacity:1;cursor:not-allowed; }
h1,h2,h3,h4 { letter-spacing:normal;font-weight:500; }
a { color:var(--brand-ink); }
a:hover { color:var(--brand); }
:focus-visible { outline:2px solid var(--focus);outline-offset:2px; }
input,select,textarea { min-height:44px;padding:10px 14px;border:1px solid var(--line-strong);border-radius:10px;background:var(--paper);font-size:15px;line-height:22px; }
input::placeholder,textarea::placeholder { color:#8a919c; }
input:focus,textarea:focus,select:focus { outline:2px solid var(--brand);outline-offset:1px; }
label { font-size:14px;font-weight:400;color:var(--muted); }
label>input,label>select,label>textarea,label>.address-wrap { margin-top:6px; }
label small { font-size:12px;line-height:16px;color:var(--muted); }
.icon { width:22px;height:22px;stroke-width:1.5; }
.button { min-height:44px;padding:10px 16px;border-radius:10px;font-size:15px;font-weight:500;line-height:22px; }
.button.primary { background:var(--brand);border-color:var(--brand);color:#fff; }
.button.primary:disabled { color:var(--muted);background:var(--brand-50);border-color:var(--brand-50); }
.button.secondary,.button.ghost { color:var(--ink);background:#fff;border-color:var(--line); }
.button.danger { color:var(--danger);background:var(--danger-soft);border-color:#f0c4c1; }
.button.secondary:hover,.button.ghost:hover { background:var(--bg);border-color:var(--line-strong); }
.button.danger:hover { background:#fbdedb; }
.icon-button,.print-link { width:44px;height:44px;padding:10px;border-radius:12px;background:#fff;border-color:var(--line);color:var(--ink); }
.icon-button:hover,.print-link:hover { color:var(--ink);background:var(--bg); }
.icon-button[aria-pressed=true] { background:var(--brand-50);color:var(--brand-ink);border-color:var(--brand-50); }
.text-button { color:var(--muted);font-size:14px;min-height:40px;text-decoration:none; }
.text-button:hover { color:var(--brand-ink);text-decoration:underline; }
.eyebrow { font-size:12px;font-weight:500;letter-spacing:.03em; }
.search { min-height:44px;border:1px solid var(--line-strong);border-radius:10px;padding:0 14px;background:#fff; }
.search input { min-height:42px;padding:10px 0;font-size:15px;outline:none; }
.search input:focus,.search input:focus-visible { outline:none; }
.search:focus-within { outline:2px solid var(--brand);outline-offset:1px;box-shadow:none;border-color:var(--line-strong); }
kbd { font-size:12px;border-color:var(--line-strong);color:var(--muted); }
/* Compact permanent navigation and order search. */
.topbar { position:sticky;top:0;z-index:50;min-height:64px;display:flex;align-items:center;flex-wrap:nowrap;gap:12px;padding:10px 20px;border-bottom:1px solid var(--line);background:#fff; }
.brand { display:flex;align-items:center;gap:10px;min-width:170px;color:var(--ink);flex:none; }
.brand:hover { text-decoration:none;color:var(--ink); }
.brand img { width:76px;height:40px;object-fit:contain; }
.brand-copy { display:flex;flex-direction:column; }
.brand-copy strong { font-size:18px;line-height:24px;font-weight:600;letter-spacing:-.01em; }
.brand-copy small { font-size:11px;line-height:16px;color:var(--muted); }
.brand-caption { display:none; }
.topbar .main-nav { width:auto;display:flex;flex:none;align-items:center;flex-wrap:nowrap;gap:6px;padding:0;border:0;border-radius:0;background:transparent;order:0; }
.topbar .nav-item { position:relative;height:40px;min-height:40px;min-width:40px;display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:0 8px;border-radius:10px;border:1px solid var(--line);background:#fff;color:var(--ink);font-size:14px;font-weight:500;box-shadow:none;flex:none; }
.topbar .nav-item .icon { display:block;width:22px;height:22px; }
.topbar .nav-item.active { padding:0 12px;border-color:var(--brand-line);background:var(--brand-50);color:var(--brand-ink);box-shadow:none; }
.topbar .nav-item:hover { background:var(--bg); }
.topbar .nav-item.active:hover { background:var(--brand-50); }
.topbar .nav-item>.nav-label { display:none;min-width:0;padding:0;background:transparent;border-radius:0;font-size:14px;font-weight:500;line-height:20px;color:inherit; }
.topbar .nav-item.active>.nav-label { display:inline; }
.topbar .nav-item>#nav-count { padding:2px 6px;min-width:0;border-radius:6px;background:var(--brand-50);color:var(--brand-ink);font-size:12px;line-height:16px; }
.topbar .nav-item.active>#nav-count { display:none; }
.nav-divider,.nav-separator { width:1px;height:26px;background:var(--line);margin:0 2px;flex:none; }
.topbar .icon-button { width:40px;height:40px;padding:9px;border-radius:10px; }
.notification-button { position:relative; }
.notification-button #new-dot { position:absolute;top:9px;right:10px;width:8px;height:8px;border-radius:50%;background:var(--danger-ink);border:2px solid #fff; }
.topbar-right { margin:0;display:flex;align-items:center;flex-wrap:nowrap;gap:8px;width:auto;order:0;flex:none; }
.topbar #new-order { height:40px;min-height:40px;padding:0 14px;font-size:14px;font-weight:500;border-radius:10px;white-space:nowrap; }
.topbar #new-order>.icon { width:20px;height:20px; }
.service-toggle { height:40px;display:inline-flex;align-items:center;gap:8px;padding:0 12px;border:1px solid var(--line);border-radius:999px;background:#fff;color:var(--ink-2);font-size:12px;white-space:nowrap; }
.service-toggle>i,.service-toggle>.status-dot { width:8px;height:8px;border-radius:50%;background:var(--ready-ink); }
.service-toggle[data-state=paused]>i { background:var(--danger-ink); }
.service-toggle[data-state=closed]>i { background:var(--muted); }
.service-toggle[aria-current=page] { border-color:var(--brand);background:var(--brand-50);color:var(--brand-ink); }
.topbar-right .profile { display:inline-flex;height:40px;gap:8px;padding:0 12px 0 3px;margin:0;border:1px solid var(--line);border-radius:999px;background:#fff;color:var(--ink); }
.profile>span,.profile #avatar { display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:var(--brand-50);color:var(--brand-ink);font-size:14px;font-weight:500; }
.profile strong,.profile #user-name { display:block;max-width:88px;font-size:13px;line-height:20px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis; }
.profile-menu { position:relative; }
.profile-menu>summary { list-style:none;cursor:pointer; }
.profile-menu>summary::-webkit-details-marker { display:none; }
.profile-menu-panel,.profile-menu>div { position:absolute;right:0;top:calc(100% + 10px);width:240px;z-index:30;padding:8px;border:1px solid var(--line);border-radius:12px;background:#fff;box-shadow:var(--shadow-md); }
.profile-menu-panel button,.profile-menu-panel a,.profile-menu>div>button,.profile-menu>div>a { display:flex;align-items:center;gap:10px;width:100%;min-height:44px;padding:10px 12px;border:0;border-radius:8px;background:#fff;color:var(--ink);font-size:14px;text-align:left;text-decoration:none; }
.profile-menu-panel button:hover,.profile-menu-panel a:hover,.profile-menu>div>button:hover,.profile-menu>div>a:hover { background:var(--bg); }
.header-search { flex:1 1 200px;display:flex;align-items:center;min-width:150px;max-width:none;order:0; }
.header-search>.search,.header-search .topbar-search { flex:1;min-width:0;max-width:none;min-height:40px;width:100%;margin:0;padding:0 10px; }
.header-search .topbar-search input { min-width:0;min-height:38px;padding:8px 0;font-size:13px;line-height:20px; }
.header-search .topbar-search .icon { width:18px;height:18px; }
.sound-menu { position:relative;flex:none; }
#sound-toggle .sound-off-mark { display:none; }
#sound-toggle.is-muted { color:var(--muted);background:var(--surface-300);border-color:var(--line-strong); }
#sound-toggle.is-muted .sound-off-mark { display:block;stroke-width:2;stroke-linecap:round; }
#sound-toggle.is-muted:hover { color:var(--ink-2);border-color:var(--muted); }
.sound-panel { position:absolute;inset-inline-end:0;top:calc(100% + 10px);z-index:40;display:flex;flex-direction:column;gap:14px;width:300px;max-width:calc(100vw - 32px);padding:18px;border:1px solid var(--line);border-radius:14px;background:#fff;box-shadow:var(--shadow-md);text-align:start; }
.sound-panel h3 { margin:0;color:var(--ink);font-size:16px;line-height:24px;font-weight:600; }
.sound-panel label { color:var(--ink-2);font-size:13px;line-height:20px; }
.sound-panel select { min-height:40px;padding:8px 10px;font-size:14px;line-height:22px; }
.sound-panel .sound-enabled { display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:30px; }
.sound-enabled input { width:20px;height:20px;min-height:20px;margin:0;padding:0;accent-color:var(--brand); }
.sound-panel input[type=range] { width:100%;min-height:28px;height:28px;margin:8px 0 0;padding:0;border:0;border-radius:0;background:transparent;accent-color:var(--brand); }
.sound-panel #sound-volume-value { float:right;color:var(--muted);font-variant-numeric:tabular-nums; }
.sound-actions { display:flex;align-items:center;gap:8px; }
.sound-actions>.button { min-height:40px;padding:8px 12px;font-size:13px; }
.sound-actions>.text-button { min-height:40px;padding:8px;font-size:13px; }
.sound-panel #sound-status { color:var(--muted);font-size:12px;line-height:18px; }
/* Order board and non-modal detail. */
.workspace { max-width:none;margin:0;padding:24px;background:var(--bg); }
#dashboard { display:grid;grid-template-columns:minmax(0,1fr) 360px;align-items:stretch;padding:0;min-height:calc(100dvh - var(--topbar-height,64px)); }
.board-area { min-width:0;padding:16px 20px;background:var(--bg); }
.orders-toolbar { min-height:36px;display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:0 0 12px; }
.orders-toolbar h1 { font-size:20px;line-height:28px;font-weight:500;letter-spacing:normal;flex:none; }
.orders-heading { display:flex;align-items:center;gap:12px; }
.active-count { font-size:13px;line-height:18px;padding:3px 8px;border-radius:6px;background:var(--ready-50);color:var(--ready-ink); }
.day-summary { margin-left:auto;color:var(--muted);font-size:12px;line-height:18px; }
.orders-toolbar .segmented { margin-left:0; }
.orders-toolbar .segmented { padding:2px;gap:2px;border-radius:9px; }
.orders-toolbar .segmented button { min-height:30px;font-size:12px;line-height:18px;padding:5px 9px;border-radius:7px; }
.orders-toolbar .filter-menu>summary { width:36px;height:36px;min-height:36px;padding:8px; }
.orders-actions { gap:8px;margin-left:auto; }
.orders-actions>.button,.orders-actions>.attention-filter,.filter-menu>summary { min-height:36px;padding:7px 10px;font-size:13px;border-radius:10px; }
.filter-menu>summary { border-color:var(--line);background:#fff; }
.filter-menu[open]>summary { border-color:var(--brand-line);background:var(--brand-50);color:var(--brand-ink); }
.filter-panel { border-color:var(--line);background:#fff;box-shadow:var(--shadow-md); }
.inline-filter,.board-caption { font-size:12px; }
.board-caption { margin:0 0 16px;gap:8px; }
.board-caption>span:first-child { color:var(--muted);font-weight:400; }
.board { grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;align-items:start; }
.board-column { padding:0;border:0;border-radius:0;background:transparent;min-width:0; }
.board-column.received { --order-tint:#fff6f3;--order-selected:#fbe5df;--order-edge:#efd1cb;--order-accent:var(--new-ink);--order-ring:rgba(155,64,56,.2); }
.board-column.preparing { --order-tint:#fffbeb;--order-selected:#fff0bd;--order-edge:#eadfb8;--order-accent:var(--progress-ink);--order-ring:rgba(128,96,10,.2); }
.board-column.ready { --order-tint:#f2f8ee;--order-selected:#e1f0d9;--order-edge:#d0e3c8;--order-accent:var(--ready-ink);--order-ring:rgba(40,93,52,.2); }
.column-header { display:flex;align-items:center;gap:10px;min-height:28px;padding:4px 4px 0;margin-bottom:8px; }
.column-header h2 { font-size:16px;line-height:24px;font-weight:500; }
.column-header .column-subtitle { display:none; }
.column-header>.icon { display:none; }
.column-header .status-dot { width:8px;height:8px;flex:none;border-radius:50%;background:var(--brand); }
.received .column-header .status-dot { background:var(--new-ink); }
.preparing .column-header .status-dot { background:#b38a18; }
.ready .column-header .status-dot { background:var(--brand); }
.column-header .count { margin:0;display:inline-block;min-width:0;height:auto;padding:2px 8px;border-radius:6px;background:var(--brand-50);color:var(--brand-ink);font-size:13px;line-height:18px;font-weight:500; }
.received .column-header .count { background:var(--new-50);color:var(--new-ink); }
.preparing .column-header .count { background:var(--progress-50);color:var(--progress-ink); }
.ready .column-header .count { background:var(--ready-50);color:var(--ready-ink); }
.column-cards { display:flex;flex-direction:column;gap:10px;min-height:0; }
.order-card { display:flex;flex-direction:column;gap:5px;width:100%;min-width:0;padding:9px 10px;border:1px solid var(--line);border-radius:12px;background:#fff;box-shadow:var(--shadow-sm);cursor:pointer;text-align:left;color:var(--ink);font-size:15px;animation:none; }
.order-card.is-late { border-color:var(--line); }
.order-card.is-selected,.order-card[aria-pressed=true] { border-color:var(--brand);box-shadow:0 0 0 3px var(--brand-ring); }
.order-card:hover { border-color:var(--line-strong); }
.order-card.is-selected:hover,.order-card[aria-pressed=true]:hover { border-color:var(--brand); }
.order-card:focus-visible { outline:2px solid var(--brand);outline-offset:2px; }
.board-column .order-card { background:var(--order-tint);border-color:var(--order-edge); }
.board-column .order-card:hover { border-color:var(--order-accent); }
.board-column .order-card.is-selected,.board-column .order-card[aria-pressed=true] { --muted:#525a64;background:var(--order-selected);border-color:var(--order-accent);box-shadow:inset 0 0 0 1px var(--order-accent),0 0 0 4px var(--order-ring),0 5px 16px var(--order-ring); }
.board-column .order-card:focus-visible { outline-color:var(--order-accent); }
.card-top { display:flex;align-items:flex-start;gap:8px;width:100%;min-width:0; }
.card-identity { display:flex;flex:1;min-width:0;flex-direction:column; }
.card-identity strong { color:var(--muted);font-size:13px;line-height:18px;font-weight:500;overflow-wrap:anywhere; }
.card-subtitle { color:var(--muted);font-size:12px;line-height:18px; }
.card-fulfillment { white-space:nowrap; }
.card-fulfillment .icon { width:14px;height:14px;vertical-align:-2px;margin-right:4px;color:var(--brand-ink);stroke-width:1.7; }
.card-subtitle em,.card-subtitle b,.card-subtitle .zone-name,.card-subtitle .item-count { color:var(--brand-ink);font-style:normal;font-weight:400; }
.card-subtitle .item-count { font-size:12px;margin:0; }
.card-items { display:flex;flex-direction:column;gap:1px;border-top:1px solid var(--line);padding-top:5px;min-width:0;width:100%; }
.card-item { display:grid;grid-template-columns:max-content minmax(0,1fr) auto;gap:7px;align-items:baseline;font-size:13px;line-height:18px;font-weight:500; }
.card-item b { font-size:13px;font-weight:600;font-variant-numeric:tabular-nums; }
.card-item>span { min-width:0;overflow-wrap:anywhere; }
.card-modified { display:inline-flex;align-items:center;gap:4px;padding:2px 5px;border-radius:5px;background:var(--warn-50);color:var(--warn-ink);font-size:11px;line-height:16px;white-space:nowrap; }
.card-modified .modification-mark { display:inline-grid;place-items:center;flex:none;width:15px;height:15px;border-radius:50%;background:var(--warn-ink);color:#fff;font-size:12px;font-weight:600;line-height:15px; }
.card-footer { display:flex;align-items:baseline;justify-content:space-between;gap:6px;width:100%; }
.card-footer>.payment-label { display:flex;align-items:center;gap:4px;min-width:0;font-size:11px;line-height:16px; }
.card-footer>.payment-label .icon { flex:none;width:13px;height:13px; }
.card-footer .age { flex:none;font-size:11px;line-height:16px;color:var(--muted);font-weight:400;background:transparent;padding:0;white-space:nowrap; }
.card-number { color:#525a64;font-size:18px;line-height:22px;font-weight:700;font-variant-numeric:tabular-nums;letter-spacing:-.03em;align-self:flex-start;flex:none;white-space:nowrap; }
.card-note { color:var(--ink-2);font-size:12px;line-height:16px;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden;white-space:normal; }
.card-scheduled { color:var(--ink-2);font-size:12px;line-height:16px;font-weight:500; }
.card-bottom { display:flex;align-items:center;flex-wrap:wrap;gap:6px;width:100%; }
.card-bottom .status-tag,.card-bottom .price-chip,.card-bottom .late-chip { font-size:11px;line-height:16px;padding:2px 6px; }
.status-tag { padding:3px 8px;border-radius:6px;background:var(--bg);color:var(--muted);font-size:13px;line-height:18px;font-weight:400; }
.status-tag.received { background:var(--new-50);color:var(--new-ink); }
.status-tag.preparing { background:var(--progress-50);color:var(--progress-ink); }
.status-tag.ready,.status-tag.completed { background:var(--ready-50);color:var(--ready-ink); }
.status-tag.cancelled { background:var(--danger-50);color:var(--danger-ink); }
.price-chip { padding:2px 8px;border:1px solid var(--line);border-radius:6px;color:var(--ink-2);font-size:13px;line-height:18px;white-space:nowrap; }
.late-chip { padding:3px 8px;border-radius:6px;background:var(--warn-50);color:var(--warn-ink);font-size:13px;line-height:18px; }
.column-empty { padding:28px 16px;border:1px dashed var(--line-strong);border-radius:12px;background:#fff;color:var(--muted);font-size:14px;min-height:0; }
.column-empty strong { font-size:14px;font-weight:500;color:var(--muted); }
.column-empty p { font-size:13px;line-height:20px; }
.column-empty .button { min-height:36px;font-size:13px;margin-top:12px; }
.workspace-footer { margin-top:24px;font-size:12px;color:var(--muted); }
.order-detail { width:360px;min-width:0;align-self:stretch;background:#fff;border-left:1px solid var(--line);padding:20px;display:flex;flex-direction:column;position:sticky;top:var(--topbar-height,64px);height:calc(100dvh - var(--topbar-height,64px));min-height:0;overflow:hidden; }
#detail-empty { display:grid;place-content:center;text-align:center;color:var(--muted);font-size:15px;padding:48px 16px;flex:1; }
#detail-dialog { position:static;inset:auto;width:100%;min-width:0;max-width:none;max-height:none;margin:0;padding:0;border:0;border-radius:0;background:#fff;box-shadow:none;overflow:visible;color:var(--ink); }
#detail-dialog[open] { display:flex;flex:1;min-height:0;height:100%;overflow:hidden; }
#detail-content { width:100%;height:100%;min-width:0;min-height:0;display:flex;flex-direction:column;gap:0; }
.detail-scroll { display:flex;flex-direction:column;gap:16px;flex:1;min-width:0;min-height:0;padding:2px 6px 4px 2px;margin:-2px -6px 0 -2px;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin; }
.detail-scroll>* { flex:none; }
.detail-head { display:flex;align-items:flex-start;gap:12px;padding-bottom:20px;border-bottom:1px solid var(--line); }
.detail-head>div:first-child { flex:1;min-width:0; }
.detail-head h2 { margin:0;font-size:20px;line-height:28px;font-weight:600;overflow-wrap:anywhere; }
.detail-head p,.detail-head .detail-place { color:var(--muted);font-size:15px;line-height:22px; }
.detail-head p span,.detail-place span { color:var(--brand-ink); }
.detail-head-actions { display:flex;gap:12px;flex:none; }
.detail-head-actions .icon-button { width:44px;height:44px; }
.detail-status-control { display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:36px;font-size:12px;line-height:18px;color:var(--muted); }
.detail-status-control select { flex:1;min-width:0;max-width:176px;height:36px;min-height:36px;padding:6px 10px;font-size:13px;line-height:20px;color:var(--ink-2); }
.detail-received { display:flex;align-items:center;justify-content:space-between;gap:12px;color:var(--muted);font-size:15px;line-height:22px; }
.detail-order-number { color:#525a64;font-size:21px;line-height:26px;font-weight:700;font-variant-numeric:tabular-nums;letter-spacing:-.03em;white-space:nowrap; }
.detail-warning { display:flex;align-items:center;gap:10px;padding:12px 16px;border-radius:10px;background:var(--warn-50);color:var(--warn-ink);font-size:15px;line-height:22px; }
.detail-warning .icon { width:20px;height:20px; }
.detail-contact { display:flex;flex-direction:column;gap:10px;font-size:15px;line-height:22px;color:var(--ink-2); }
.detail-contact>div,.detail-contact>p { display:flex;align-items:flex-start;gap:10px; }
.detail-contact .icon { flex:none;width:20px;height:20px;margin-top:1px;color:var(--muted); }
.detail-contact a { color:var(--ink-2);overflow-wrap:anywhere; }
.detail-contact .text-button { margin-left:auto;min-height:22px;padding:0;font-size:13px; }
.detail-lines { display:flex;flex-direction:column; }
.detail-lines .detail-line { display:block;width:100%;padding:14px 0;border-bottom:1px solid var(--line); }
.detail-line-main { display:grid;grid-template-columns:24px minmax(0,1fr) auto;width:100%;align-items:start;gap:12px;font-size:15px;line-height:22px; }
.detail-line-main>span:first-child { width:24px;flex:none;color:var(--muted); }
.detail-line-main>span:nth-child(2),.detail-line-main>strong { flex:1;min-width:0;overflow-wrap:anywhere;font-size:15px;font-weight:400; }
.detail-line-main>b { font-size:15px;font-weight:500;flex:none; }
.detail-lines .detail-line small,.detail-line-mod { display:block;padding-left:36px;color:var(--muted);font-size:14px;line-height:20px;white-space:pre-line;margin:0; }
.detail-line-mod { margin-top:4px; }
.detail-note { display:flex;flex-direction:column;gap:4px;padding:14px 16px;border-radius:10px;background:var(--bg);font-size:15px;line-height:22px;overflow-wrap:anywhere;white-space:pre-line; }
.detail-note>strong { font-weight:500; }
.detail-note>p { color:var(--muted); }
.detail-totals { display:flex;flex-direction:column;font-size:15px;line-height:22px; }
.detail-totals>div { display:flex;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid var(--line); }
.detail-totals>div>span:first-child { color:var(--muted); }
.detail-totals>div:last-child { padding:12px 0;border:0; }
.detail-totals>div:last-child>span:first-child { font-weight:500;color:var(--ink); }
.detail-totals strong { font-size:18px;font-weight:600;color:var(--brand-ink); }
.detail-footer { flex:none;margin-top:12px;display:flex;flex-direction:column;gap:8px;padding:12px 0 0;border:0;border-top:1px solid var(--line);background:#fff; }
.detail-footer>.button { flex:none;width:100%;min-height:44px;font-size:14px;font-weight:500; }
.detail-footer>.payment-action { min-height:36px;background:var(--brand-50);border-color:var(--brand-line);color:var(--brand-ink); }
.detail-print-actions { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;width:100%; }
.detail-print-actions>.button { width:100%;min-width:0;min-height:44px;padding:8px 6px;gap:6px;font-size:12px;font-weight:500;background:var(--brown-50);border-color:#e2d4c6;color:var(--brown); }
.detail-print-actions>.button:only-child { grid-column:1/-1; }
.detail-print-actions .icon { width:18px;height:18px;flex:none; }
.detail-print { position:relative; }
.detail-print summary { list-style:none;cursor:pointer; }
.detail-print summary::-webkit-details-marker { display:none; }
.detail-print>div { position:absolute;right:0;top:calc(100% + 8px);z-index:5;display:flex;flex-direction:column;gap:4px;min-width:200px;padding:8px;border:1px solid var(--line);border-radius:12px;background:#fff;box-shadow:var(--shadow-md); }
.detail-print>div a { display:flex;align-items:center;gap:8px;min-height:40px;padding:8px 10px;border-radius:8px;color:var(--ink-2);font-size:13px;line-height:20px; }
.detail-print>div a:hover { background:var(--bg); }
.detail-more { border-top:1px solid var(--line);padding-top:12px; }
.detail-more>summary { color:var(--muted);font-size:13px;line-height:20px;cursor:pointer; }
.detail-more>div { display:flex;flex-direction:column;gap:8px;padding-top:12px;color:var(--muted);font-size:13px;line-height:20px; }
.detail-more p { overflow-wrap:anywhere; }
.print-actions { gap:8px;margin:10px 0 0; }
.print-actions a { min-height:36px;font-size:12px; }
.payment-label { font-size:14px;color:var(--muted); }
.payment-label.paid { color:var(--ready-ink); }
.notice,.error { font-size:14px;line-height:20px;padding:12px 16px;border-radius:10px; }
.notice { background:var(--warn-50);color:var(--warn-ink);border-color:#eadb9f; }
.error { background:var(--danger-50);color:var(--danger-ink);border-color:#f0c4c1; }
.schedule-note,.order-card .schedule-note { background:var(--brand-50);color:var(--brand-ink); }
.attention-filter.has-late { color:var(--warn-ink);border-color:#eadb9f;background:#fff; }
.attention-filter[aria-pressed=true] { color:var(--warn-ink);border-color:#eadb9f;background:var(--warn-50);box-shadow:none; }
/* New order: customer / catalogue / summary. */
.order-workspace { height:calc(100dvh - var(--topbar-height,64px));min-height:0;background:var(--bg);overflow:hidden; }
.order-layout { --summary-width:340px;min-height:0;height:100%;display:grid;grid-template-columns:var(--customer-width,300px) minmax(0,1fr) var(--summary-width);grid-template-rows:minmax(0,1fr);align-items:stretch; }
.order-layout.summary-collapsed { --summary-width:72px; }
#order-form { display:contents;position:static; }
.customer-panel { position:relative;grid-column:1;grid-row:1;min-width:0;min-height:0;display:flex;flex-direction:column;padding:20px;border-right:1px solid var(--line);background:#fff; }
.customer-panel .checkout-heading { padding:0;margin:0 0 16px;border:0; }
.customer-panel .checkout-heading h1,.customer-panel .checkout-heading h2 { font-size:20px;line-height:28px;font-weight:500;margin:0; }
.customer-panel .checkout-heading .eyebrow { display:none; }
.customer-panel .order-form-scroll { padding:3px 10px 3px 3px;margin:-3px -10px -3px -3px;overflow:auto;flex:1;min-width:0;min-height:0;scrollbar-width:thin;overscroll-behavior:contain; }
.customer-resizer { position:absolute;inset-block:0;inset-inline-end:-8px;z-index:8;display:flex;justify-content:center;align-items:center;width:16px;cursor:col-resize;touch-action:none; }
.customer-resizer::before { content:'';width:3px;height:48px;border-radius:3px;background:var(--line-strong); }
.customer-resizer:hover::before,.customer-resizer:focus-visible::before,.customer-resizer.is-resizing::before { background:var(--brand); }
.customer-resizer:focus-visible { outline:2px solid var(--brand);outline-offset:-4px; }
.order-layout.resizing-customer { cursor:col-resize;user-select:none; }
.resizing-customer .customer-resizer::before { background:var(--brand); }
.order-form .choice { display:flex;gap:4px;padding:4px;border-radius:12px;background:var(--bg);margin-bottom:14px; }
.order-form .choice label { margin:0; }
.order-form .choice span { min-height:40px;padding:8px 10px;border:1px solid transparent;border-radius:9px;background:transparent;color:var(--muted);font-size:14px;line-height:20px;font-weight:400; }
.order-form .choice input:checked+span { background:#fff;border-color:var(--line-strong);color:var(--brand-ink);box-shadow:none;font-weight:400; }
.order-form .choice .icon { width:18px;height:18px; }
.order-form label,.order-form legend { font-size:13px;font-weight:400;color:var(--muted);line-height:18px; }
.order-form input,.order-form select { min-height:40px;padding:8px 11px;border-radius:9px;font-size:14px;line-height:22px; }
.order-form textarea { min-height:68px;padding:8px 11px;font-size:14px;line-height:20px; }
.customer-panel input,.customer-panel select,.customer-panel textarea { border-color:#858d86; }
.customer-panel input::placeholder,.customer-panel textarea::placeholder,.catalogue input::placeholder,.pizza-editor textarea::placeholder { color:var(--muted); }
.order-form label>input,.order-form label>select,.order-form label>.address-wrap { margin-top:4px; }
.order-form label small { margin-top:4px;font-size:11px;line-height:16px; }
.order-form .choice input { min-height:1px;padding:0; }
.customer-fields label { margin-bottom:12px; }
.customer-identity { display:block; }
.required-mark { color:var(--danger-ink);font-weight:500; }
.customer-results,.address-results { border-color:var(--line-strong);border-radius:10px;box-shadow:var(--shadow-md); }
.customer-results button { min-height:64px;padding:12px;font-size:14px;border-color:var(--line); }
.customer-results button strong { font-weight:500; }
.customer-results button small { font-size:12px; }
.customer-results button[aria-selected=true],.customer-results button:hover,.address-results button[aria-selected=true],.address-results button:hover { background:var(--brand-50); }
.address-results button { min-height:44px;font-size:14px; }
.customer-search-status,.customer-save-status { font-size:12px;line-height:18px;margin:8px 0 12px; }
.remember-customer { gap:6px;flex-wrap:wrap;margin:0 0 10px; }
.remember-customer .button { min-height:36px;padding:8px 10px;border-color:var(--line);font-size:12px;font-weight:500; }
.remember-customer .text-button { min-height:36px;padding:6px;font-size:12px; }
#remember-customer-help { display:block;margin-top:6px;color:var(--muted);font-size:11px;line-height:16px; }
.order-options { margin-top:14px;padding-top:0;border:0; }
.order-options fieldset { margin:0 0 12px;border:0;padding:0; }
.order-options legend { margin-bottom:4px; }
.order-options .choice { padding:0;gap:8px;background:transparent; }
.order-form .order-options .choice { margin:0; }
.order-options .choice span { min-height:40px;border:1px solid var(--line);background:#fff;font-size:13px;padding:8px; }
.order-options .choice input:checked+span { background:var(--brand-50);border-color:var(--brand-line);color:var(--brand-ink); }
.order-options label { margin-bottom:12px; }
#schedule-field { display:grid;grid-template-columns:repeat(auto-fit,minmax(112px,1fr));gap:5px 8px;min-width:0;margin-bottom:12px; }
#schedule-field>label { min-width:0;margin:0; }
#schedule-field select { width:100%;min-width:0;padding-inline:8px;font-variant-numeric:tabular-nums; }
#schedule-help,#schedule-status { grid-column:1/-1;margin:0;overflow-wrap:anywhere; }
#schedule-help { color:var(--muted);font-size:11px;line-height:16px; }
#schedule-status { color:var(--ink-2);font-size:12px;line-height:18px; }
@media (pointer:coarse) { #schedule-field select { min-height:44px; } }
.catalogue { grid-column:2;grid-row:1;min-width:0;min-height:0;display:flex;flex-direction:column;padding:20px;background:var(--bg);container-type:inline-size; }
.catalogue-browser { min-height:0;height:100%;display:flex;flex-direction:column; }
.catalogue-heading { display:none; }
.catalogue-toolbar { flex:none;display:flex;flex-wrap:nowrap;align-items:center;gap:10px;margin-bottom:12px; }
.catalogue-tabs { display:flex;flex:none;flex-wrap:nowrap;gap:5px;padding:0;border:0;border-radius:0;background:transparent; }
.catalogue-tabs button { min-height:40px;padding:8px 9px;gap:6px;border:1px solid var(--line);border-radius:9px;background:#fff;font-size:13px;line-height:22px;white-space:nowrap; }
.catalogue-tabs button.selected { border-color:var(--brand-line);background:var(--brand-50);color:var(--ink); }
.catalogue-tabs span { padding:1px 5px;border-radius:5px;background:var(--ready-50);color:var(--ready-ink);font-size:11px;line-height:18px; }
.catalogue-toolbar .search { min-height:40px;flex:1 1 180px;min-width:120px;padding-inline:10px;border-color:#858d86; }
.catalogue-toolbar .search input { min-height:38px;min-width:0;font-size:14px;padding:8px 0; }
.catalogue-toolbar .search .icon { width:18px;height:18px; }
.catalogue-grid { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:max-content;gap:10px;align-content:start;flex:0 1 auto;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;padding:3px;margin:-3px;border:0;border-radius:0;background:transparent; }
.product-tile { display:flex;flex-direction:column;gap:0;min-width:0;min-height:0;margin:0;padding:0;border:1px solid var(--line-strong);border-radius:11px;background:#fff;overflow:hidden;box-shadow:var(--shadow-sm); }
.product-tile.in-cart { border-color:var(--brand); }
.product-image,.product-no { display:none; }
.product-info { display:flex;flex:1;flex-direction:column;gap:6px;padding:0;width:100%;min-width:0; }
.product-select { position:relative;display:grid;grid-template-columns:minmax(0,1fr) 80px;grid-template-rows:auto auto 1fr;gap:4px 10px;align-content:start;padding:12px;min-height:108px;text-align:left;background:#fff;color:var(--ink); }
.product-select>.product-media { grid-column:2;grid-row:1/4;align-self:center;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr);place-items:center;width:80px;height:80px;min-width:0;min-height:0;overflow:hidden; }
.product-media>img { display:block;position:static;width:100%;height:100%;min-width:0;min-height:0;max-width:100%;max-height:100%;object-fit:contain;object-position:center; }
.product-media>.icon { width:36px;height:36px;color:var(--brown); }
.product-media:empty { display:none; }
.product-select:has(>.product-media:empty) { grid-template-columns:minmax(0,1fr); }
.product-select>.product-name,.product-select>.product-bottom,.product-select>.product-badges { grid-column:1; }
.product-edit { display:flex;align-items:center;justify-content:center;min-height:36px;width:100%;margin:0;padding:7px 12px;border-top:1px solid var(--brand-line);background:var(--brand-50);color:var(--brand-ink);font-size:13px;line-height:20px;font-weight:500; }
@media (hover:hover) { .product-edit:not(:disabled):hover { background:var(--brand-line); } }
.product-edit:focus-visible { outline-offset:-3px; }
.product-edit:disabled { color:var(--muted);background:var(--surface-300);border-color:var(--line);cursor:not-allowed; }
.pizza-photo { position:relative;display:block;flex:none;width:80px;height:80px;aspect-ratio:1;border-radius:50%;overflow:hidden;clip-path:circle(50%); }
.pizza-photo>img { position:absolute;display:block;left:var(--photo-left,0%);top:var(--photo-top,0%);width:var(--photo-width,100%);height:var(--photo-height,100%);max-width:none;max-height:none;object-fit:fill;border:0;border-radius:0;filter:none;transform:none; }
@media (hover:hover) { .product-select:not(:disabled):hover { background:var(--brand-50); } }
.product-select:focus-visible { outline-offset:-3px; }
.product-select:disabled { cursor:not-allowed; }
.product-select:disabled .product-name,.product-select:disabled .product-bottom>strong { color:var(--subtle); }
.product-tile.in-cart .product-name { padding-right:0; }
.product-info>small { display:none; }
.product-name { min-height:22px;padding:0;color:var(--ink);font-size:15px;line-height:22px;font-weight:500;text-decoration:none;background:transparent;overflow-wrap:anywhere; }
.product-name:hover { color:var(--brand-ink); }
.product-info>p { display:none; }
.product-bottom { margin-top:0;gap:6px; }
.product-bottom>strong { color:var(--brand-ink);font-size:15px;line-height:22px;font-weight:500; }
.product-add { width:32px;height:32px;min-height:32px;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--brand-ink);font-size:22px; }
.product-add:hover { background:var(--brand-50); }
.product-added { position:absolute;right:8px;top:8px;z-index:1;display:grid;place-items:center;min-width:24px;height:24px;padding:0 6px;margin:0;border-radius:50%;background:var(--brand);color:#fff;font-size:13px;line-height:18px; }
.product-added .icon { width:14px;height:14px; }
.product-badges { display:flex;align-items:start;flex-wrap:wrap;gap:4px; }
.product-badges .category-chip { font-size:11px;line-height:16px;padding:1px 6px; }
.product-category,.category-chip { align-self:start;padding:2px 8px;border:1px solid var(--line);border-radius:6px;color:var(--ink-2);font-size:13px;line-height:18px;font-weight:400; }
.unavailable-chip { align-self:start;padding:3px 8px;border-radius:6px;background:var(--danger-50);color:var(--danger-ink);font-size:13px;line-height:18px;font-weight:400; }
.catalogue-footnote { flex:none;margin-top:10px;font-size:11px;line-height:16px;color:var(--muted); }
.order-summary { --summary-padding:24px;position:relative;grid-column:3;grid-row:1;min-width:0;min-height:0;display:flex;flex-direction:column;gap:16px;padding:var(--summary-padding);border-left:1px solid var(--line);background:#fff; }
.summary-content { display:flex;flex:1;flex-direction:column;gap:16px;min-width:0;min-height:0; }
.summary-toggle { position:absolute;top:var(--summary-padding);right:var(--summary-padding);z-index:1;display:inline-flex;align-items:center;justify-content:center;flex:none;width:36px;height:36px;padding:7px;border:1px solid var(--line-strong);border-radius:9px;background:#fff;color:var(--brand-ink); }
.summary-toggle>.icon { width:20px;height:20px; }
.summary-toggle[aria-expanded=false]>.icon { transform:rotate(180deg); }
.summary-collapsed-preview { display:flex;flex-direction:column;align-items:center;gap:10px;min-width:0;width:100%;min-height:112px;padding:12px 3px;border:1px solid var(--brand-line);border-radius:9px;background:var(--brand-50);color:var(--brand-ink);text-align:center;font-size:12px;line-height:18px; }
.summary-collapsed-preview .summary-rail-title { font-size:11px;line-height:16px; }
.summary-collapsed-preview #summary-count { padding:2px 5px;border-radius:5px;background:#fff;font-size:12px; }
.summary-collapsed-preview #summary-total { max-width:100%;font-size:12px;font-weight:600;line-height:19px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere; }
.order-layout.summary-collapsed .order-summary { padding:16px 8px;gap:14px; }
.order-layout.summary-collapsed .summary-toggle { position:static;align-self:center;width:44px;height:40px; }
.order-layout.summary-collapsed .summary-content { display:none; }
@media (hover:hover) { .summary-toggle:hover,.summary-collapsed-preview:hover { background:var(--brand-50);border-color:var(--brand); } }
.order-summary .cart-heading { display:flex;align-items:center;gap:10px;justify-content:initial;margin:0;padding-inline-end:44px;min-height:36px;flex:none; }
.order-summary .cart-heading h2,.order-summary .cart-heading h3 { font-size:18px;line-height:26px;font-weight:500; }
.order-summary #cart-count { padding:2px 8px;border-radius:6px;background:var(--ready-50);color:var(--ready-ink);font-size:13px;line-height:18px; }
.order-summary .cart-number { margin-left:auto;color:var(--muted);font-size:14px; }
.order-summary .cart-lines { display:flex;flex-direction:column;gap:0;flex:0 1 auto;min-width:0;min-height:0;width:100%;max-width:100%;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin; }
.empty-cart { padding:32px 16px;border:1px dashed var(--line-strong);border-radius:12px;background:#fff;text-align:center;color:var(--muted);font-size:15px;line-height:22px; }
.empty-cart>.icon { display:none; }
.cart-line { display:block;flex:none;min-width:0;width:100%;max-width:100%;padding:12px 0;border:0;border-bottom:1px solid var(--line);border-radius:0;background:transparent; }
.cart-line>div { min-width:0;width:100%;max-width:100%; }
.cart-line-name { display:block;width:100%;max-width:100%;padding:0 36px 0 0;min-height:24px;white-space:normal;overflow-wrap:anywhere;text-decoration:none;font-size:15px;line-height:22px;font-weight:500; }
.cart-line-name:hover { color:var(--brand-ink); }
.cart-edit-label { display:inline-block;margin-inline-start:8px;color:var(--brand-ink);font-size:11px;line-height:18px;text-decoration:underline;text-underline-offset:3px;font-weight:400; }
.cart-line small { font-size:13px;line-height:20px;color:var(--muted);margin:6px 0; }
.cart-line>.icon-button { top:8px;right:0;width:32px;height:32px;padding:7px;color:var(--muted); }
.cart-line-controls { display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;min-width:0;width:100%;max-width:100%;margin-top:8px;gap:10px; }
.cart-line-controls>strong { justify-self:end;white-space:nowrap;font-size:14px;line-height:20px;color:var(--brand-ink);font-weight:500; }
.cart-line .quantity { min-width:0;width:max-content;max-width:100%;gap:8px; }
.cart-line .quantity button { width:36px;height:36px;border-radius:10px;background:#fff;border-color:var(--line);font-size:20px; }
.cart-line .quantity output { min-width:22px;font-size:15px;font-weight:500; }
.order-form-footer { padding:0;margin-top:auto;border:0;background:transparent; }
.order-form-footer .total { padding:12px 0;gap:12px;font-size:15px;line-height:22px; }
.order-form-footer .total strong { color:var(--brand-ink);font-size:18px;line-height:26px;font-weight:600; }
.order-form-footer .total small { font-size:12px;line-height:18px; }
.order-form-footer .button { min-height:48px;width:100%;padding:12px 16px;margin-top:16px;font-size:16px;font-weight:500; }
.order-form-footer .text-button { width:100%;min-height:48px;font-size:16px; }
.order-form .error { font-size:14px;line-height:20px;padding:12px 14px; }
/* Pizza editing remains inline and uses the shared form vocabulary. */
.pizza-editor { --editor-control-border:#858d86;display:flex;flex-direction:column;height:100%;min-height:0;overflow:hidden;padding:0;margin:0; }
.pizza-editor-header { flex:none;margin-bottom:8px;gap:10px; }
.pizza-editor-header .button { min-height:36px;padding:6px 10px;font-size:13px; }
.pizza-editor-header .eyebrow { font-size:11px; }
.config-product { flex:none;flex-wrap:nowrap;margin-bottom:8px;padding-bottom:8px;gap:10px;border-color:var(--line); }
.config-product>div { min-width:0; }
.pizza-editor .config-product>img { flex:none;width:40px;height:40px;border:0;border-radius:8px;background:#fff;object-fit:contain; }
.pizza-editor .config-product>.pizza-photo { width:40px;height:40px; }
.config-product-copy { flex:1;min-width:0; }
.config-product h1 { font-size:17px;line-height:22px;font-weight:500;margin:0 0 2px; }
.config-product p { color:var(--muted);font-size:12px;line-height:17px;margin:0;overflow-wrap:anywhere; }
.config-product strong { color:var(--brand-ink);font-size:14px;font-weight:500; }
.config-product>.config-product-price { display:flex;flex:none;flex-direction:column;align-items:flex-end;gap:2px;margin-inline-start:auto;white-space:nowrap;font-size:17px;line-height:22px;font-weight:600;font-variant-numeric:tabular-nums; }
.config-product>.config-product-price>small { color:var(--muted);font-size:10px;line-height:15px;font-weight:400; }
.config-product small,.config-product .eyebrow { font-size:11px; }
#config-form { display:flex;flex-direction:column;flex:1;min-height:0;min-width:0; }
.pizza-editor .config-body { flex:1;min-height:0;padding:2px 8px 2px 2px;margin:-2px -8px -2px -2px;overflow:auto;scrollbar-width:thin;overscroll-behavior:contain; }
.pizza-editor .config-body label { font-size:12px;line-height:18px; }
.pizza-editor .config-body>label { max-width:none;margin-bottom:0; }
.pizza-editor .config-body select { width:100%;min-width:0;min-height:38px;height:38px;margin-top:4px;padding:7px 9px;border-color:var(--editor-control-border);font-size:14px;line-height:20px; }
.pizza-editor .config-options { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:end;gap:8px;margin-bottom:10px; }
.pizza-editor .config-options.has-halves { grid-template-columns:repeat(3,minmax(0,1fr)); }
.pizza-editor .config-options>label { min-width:0;margin:0; }
.pizza-editor .config-scopes { display:grid;grid-template-columns:minmax(0,1fr);gap:12px; }
.pizza-editor .config-scopes.has-halves { grid-template-columns:repeat(2,minmax(0,1fr)); }
.pizza-editor .config-scope { min-width:0;margin-top:0;padding-top:12px;border-color:var(--line); }
.pizza-editor .config-scopes:not(.has-halves)>.config-scope { padding-top:0;border-top:0; }
.pizza-editor .config-scopes:not(.has-halves)>.config-scope>h3 { display:none; }
.pizza-editor .config-scope>label { max-width:none; }
.pizza-editor .config-scope h3 { margin-bottom:8px;font-size:15px;line-height:22px;font-weight:500; }
.pizza-editor .config-scope h4 { margin:0;font-size:13px;line-height:20px;font-weight:500; }
.pizza-editor .config-removals { display:grid;grid-template-columns:104px minmax(0,1fr);align-items:start;gap:8px;margin-bottom:10px; }
.pizza-editor .config-removals>h4 { padding-top:6px; }
.pizza-editor .config-removals>.muted { font-size:12px;line-height:18px;padding-top:6px; }
.pizza-editor .config-additions-heading { display:flex;flex-wrap:wrap;align-items:baseline;gap:3px 10px;margin-bottom:6px; }
.pizza-editor .config-additions-heading>small { font-size:11px;line-height:16px;color:var(--muted); }
.pizza-editor .config-extra-groups { display:flex;flex-direction:column;gap:8px; }
.pizza-editor .config-extra-group { position:relative;display:flow-root;min-width:0;margin:0;padding:0 0 0 112px;border:0; }
/* Dividers use the existing row gap so all ingredient groups retain their compact height. */
.pizza-editor .config-extra-group+.config-extra-group::before { content:"";position:absolute;top:-4px;right:0;left:0;border-top:1px solid var(--line);pointer-events:none; }
.pizza-editor .config-extra-group>legend { float:left;width:104px;max-width:none;margin:0 0 0 -112px;padding:9px 0;color:var(--ink-2);font-size:12px;line-height:18px;font-weight:500; }
.pizza-editor .config-extra-group>.ingredient-tags { min-width:0; }
.pizza-editor .config-selected-extras { margin-top:6px;color:var(--muted);font-size:11px;line-height:16px;overflow-wrap:anywhere; }
.pizza-editor .ingredient-tags { gap:5px; }
.pizza-editor .ingredient-tags label { margin:0; }
.pizza-editor .ingredient-tags span { min-height:38px;padding:7px 10px;border-color:var(--editor-control-border);border-radius:8px;background:#fff;color:var(--ink-2);font-size:14px;line-height:22px; }
.pizza-editor .ingredient-tags span>small { margin:0 0 0 3px;font-size:10px;line-height:16px;color:inherit; }
.pizza-editor .ingredient-tags input:disabled+span { border-style:dashed;color:var(--muted);background:var(--surface-300); }
.pizza-editor .ingredient-tags input:checked+span { background:var(--brand-50);border-color:var(--brand);color:var(--brand-ink);box-shadow:none; }
.pizza-editor .ingredient-tags:not(.removals) input:checked+span::after { content:'✓';margin-inline-start:6px;font-size:12px;font-weight:600; }
.pizza-editor .ingredient-tags.removals input:checked+span { color:var(--danger-ink);border-color:#f0c4c1;background:var(--danger-50); }
.pizza-editor .config-note { margin-top:8px; }
.pizza-editor .config-note textarea { min-height:38px;height:38px;padding:7px 9px;margin-top:4px;border-color:var(--editor-control-border);font-size:14px;line-height:22px;resize:vertical; }
.pizza-editor .config-footer { position:static;flex:none;display:flex;flex-wrap:wrap;align-items:center;gap:10px;padding:10px 0 0;margin-top:10px;border-top:1px solid var(--line);background:var(--bg); }
.pizza-editor .config-footer>.button { min-width:0;flex:1;min-height:44px;padding:10px 12px;font-size:14px; }
.pizza-editor .config-footer .quantity { gap:8px; }
.pizza-editor .config-footer .quantity button { width:36px;height:36px; }
@container (max-width:560px) {
  .pizza-editor .config-scopes.has-halves { grid-template-columns:minmax(0,1fr); }
  .pizza-editor .config-options.has-halves { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .pizza-editor .config-options.has-halves>.half-picker { grid-column:1/-1; }
  .pizza-editor .config-extra-group { padding-left:0; }
  .pizza-editor .config-extra-group>legend { float:none;width:auto;margin:0 0 4px;padding:0; }
  .pizza-editor .config-extra-groups { gap:8px; }
  .pizza-editor .config-removals { grid-template-columns:minmax(0,1fr);gap:4px; }
  .pizza-editor .config-removals>h4 { padding-top:0; }
}
.quantity button { border-color:var(--line);background:#fff;border-radius:10px; }
/* Menu, real delivery map and retained utility screens. */
.menu-heading { display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin-bottom:16px; }
.menu-heading h1 { font-size:20px;line-height:28px;font-weight:500; }
.menu-heading>p { margin-left:auto;font-size:14px;color:var(--muted); }
#menu-context-controls { min-width:0;margin-inline-start:auto; }
#menu-feedback { margin-bottom:20px;padding:12px 16px;border-radius:10px;background:var(--ready-50);color:var(--ready-ink);font-size:14px;line-height:20px; }
#menu-error { margin-bottom:20px; }
.menu-tabs,.segmented { display:flex;align-items:center;flex-wrap:wrap;gap:4px;padding:4px;border:1px solid var(--line);border-radius:12px;background:#fff; }
.menu-tabs button,.segmented button { min-height:36px;padding:6px 12px;border:1px solid transparent;border-radius:9px;background:transparent;color:var(--muted);font-size:13px;line-height:22px;font-weight:400; }
.menu-tabs button.active,.menu-tabs button.selected,.menu-tabs button[aria-pressed=true],.segmented button.selected { border-color:var(--brand-line);background:var(--brand-50);color:var(--brand-ink); }
.segmented button>span { background:var(--ready-50);color:var(--ready-ink); }
.menu-layout { display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:20px; }
.menu-detail { padding:24px;border:1px solid var(--line);border-radius:12px;background:#fff; }
.menu-detail h2 { margin-bottom:16px;font-size:20px;line-height:28px;font-weight:500; }
.menu-detail label { margin-bottom:16px; }
.menu-categories,.ingredient-categories { display:flex;flex-wrap:wrap;gap:6px;padding:0;border:0;border-radius:0;background:transparent;margin:0; }
.menu-categories button,.ingredient-categories button { min-height:36px;display:inline-flex;align-items:center;gap:7px;padding:0 10px;border:1px solid var(--line);border-radius:9px;background:#fff;color:var(--ink-2);font-size:13px; }
.menu-categories button[aria-pressed=true] { background:var(--brand-50);border-color:var(--brand-line); }
.menu-categories button span,.ingredient-categories button span { padding:1px 5px;border-radius:5px;background:var(--ready-50);color:var(--ready-ink);font-size:11px;line-height:18px; }
.menu-product-grid { display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));grid-auto-rows:auto;gap:12px;align-items:stretch; }
.menu-product { display:grid;grid-template-columns:64px minmax(0,1fr);align-content:start;gap:6px 10px;min-width:0;height:100%;padding:12px;border:1px solid var(--line);border-radius:12px;background:#fff;overflow:hidden; }
.menu-product-media { grid-column:1;grid-row:1;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr);place-items:center;width:64px;height:64px;min-width:0;min-height:0;overflow:hidden;padding:0;background:#fff;border:0; }
.menu-product-image { display:block;width:100%;height:100%;max-height:64px;object-fit:contain; }
.menu-product-media>.menu-product-image { position:static;width:100%;height:100%;min-width:0;min-height:0;max-width:100%;max-height:100%;object-fit:contain;object-position:center; }
.menu-pizza-photo { width:64px;height:64px; }
.menu-pizza-photo>.menu-product-image { max-height:none; }
.menu-product-image-placeholder { display:grid;place-items:center;width:100%;height:100%;color:var(--brown); }
.menu-product-image-placeholder .icon { width:30px;height:30px; }
.menu-product-content { display:contents; }
.menu-product-content>* { grid-column:1/-1;min-width:0; }
.menu-product .menu-product-head { grid-column:2;grid-row:1;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px; }
.menu-product-title { display:flex;flex-direction:column;align-items:flex-start;gap:4px;min-width:0; }
.menu-product-stock { display:flex;flex-direction:column;align-items:flex-end;justify-content:center;gap:5px;min-width:40px;max-width:66px; }
.menu-product-stock .menu-stock-status { color:var(--brown);font-size:11px;line-height:14px;text-align:right;overflow-wrap:anywhere; }
.menu-product h2,.menu-product h3 { flex:1;min-width:0;font-size:15px;line-height:22px;font-weight:500;overflow-wrap:anywhere; }
.menu-product-head .category-chip { flex:none;font-size:11px;line-height:16px;padding:2px 6px; }
.menu-product p { min-height:0;font-size:13px;line-height:19px;color:var(--muted); }
.menu-product .menu-product-description { margin:2px 0 4px;overflow-wrap:anywhere; }
.menu-price-form { display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:0; }
.menu-product .price-row { display:flex;align-items:center;gap:7px;min-width:0;color:var(--muted);font-size:13px; }
.menu-product .price-row input { width:82px;height:40px;min-height:40px;padding:8px 10px;color:var(--brand-ink);font-size:15px;font-weight:500; }
.menu-price-form .menu-price-save { flex:none;min-height:40px;padding:8px 12px;border-radius:9px;font-size:13px; }
.menu-price-form .menu-price-save:disabled { background:var(--bg);color:var(--subtle);border-color:var(--line); }
.has-price-draft .menu-price-save { background:var(--brand-50);color:var(--brand-ink);border-color:var(--brand-line); }
.menu-product .menu-price-status { min-height:18px;margin:0;font-size:11px;line-height:18px; }
.menu-product.has-price-draft .menu-price-status { color:var(--brown); }
.menu-product.unavailable { opacity:1; }
.menu-product.unavailable .menu-product-media { opacity:.55; }
.menu-product.unavailable h2 { color:var(--muted); }
.menu-product.has-price-draft { border-color:#d5bca7; }
.ingredient-count { margin:20px 0;color:var(--muted);font-size:13px;line-height:18px; }
.ingredient-grid { display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:1px;background:var(--line);border:1px solid var(--line);border-radius:12px;overflow:hidden; }
.ingredient-row { display:flex;align-items:center;gap:12px;padding:16px 18px;background:#fff; }
.ingredient-row>div { display:flex;flex:1;min-width:0;flex-direction:column;gap:2px; }
.ingredient-row h2,.ingredient-row strong { font-size:16px;line-height:24px;font-weight:500; }
.ingredient-row p,.ingredient-row small { font-size:13px;line-height:18px;color:var(--muted); }
.ingredient-row .status-tag { align-self:start;margin-top:6px; }
.stock-toggle { position:relative;flex:none;width:40px;height:24px;border:1px solid var(--muted);border-radius:999px;background:var(--line-strong); }
.stock-toggle:after { content:'';position:absolute;top:2px;left:2px;width:18px;height:18px;border-radius:50%;background:#fff;box-shadow:0 1px 2px #0003; }
.stock-toggle[aria-checked=true] { border-color:var(--brand);background:var(--brand); }
.stock-toggle[aria-checked=true]:after { left:18px; }
.stock-toggle>span { display:none; }
.stock-toggle:disabled { cursor:wait; }
.hours-layout { display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:16px;align-items:start; }
.hours-panel { padding:8px 20px;border:1px solid var(--line);border-radius:12px;background:#fff; }
.hours-row { display:flex;flex-wrap:wrap;align-items:center;gap:12px 16px;padding:14px 0;border-bottom:1px solid var(--line); }
.hours-row:last-child { border-bottom:0; }
.hours-row>strong { width:110px;font-size:16px;font-weight:500; }
.hours-row input { width:120px;min-height:40px;height:40px;font-size:15px;padding:8px 10px; }
.hours-row label>input { margin:0; }
.hours-enabled { margin:0;cursor:pointer; }
.hours-enabled>input { position:absolute;inset:0;z-index:1;width:100%;height:100%;min-height:0;margin:0;padding:0;opacity:0;cursor:pointer; }
.hours-enabled:has(input:checked) { border-color:var(--brand);background:var(--brand); }
.hours-enabled:has(input:checked):after { left:18px; }
.hours-enabled:has(input:focus-visible) { outline:2px solid var(--brand);outline-offset:3px; }
.hours-enabled:has(input:disabled) { cursor:wait; }
.hours-actions { display:flex;align-items:center;flex-wrap:wrap;gap:12px;padding:20px 0 12px; }
.hours-actions p { color:var(--muted);font-size:13px;line-height:20px; }
.hours-info { display:flex;flex-direction:column;gap:12px;padding:20px;border:1px solid var(--line);border-radius:12px;background:#fff; }
.operations-layout { display:grid;grid-template-columns:minmax(470px,1.15fr) minmax(340px,1fr);gap:18px;align-items:start; }
.operations-layout input:not([type=checkbox]),.operations-layout select { border-color:#858d86; }
.operations-layout h2 { margin:0;font-size:17px;line-height:24px;font-weight:600; }
.operations-layout .hours-panel { padding:20px; }
.operations-description { margin:6px 0 12px;color:var(--muted);font-size:13px;line-height:20px; }
.operations-layout .hours-row { gap:12px;padding:6px 0;flex-wrap:nowrap; }
.operations-layout .hours-actions { padding:16px 0 0; }
.operations-layout .hours-row>strong { width:90px;flex:none;font-size:14px; }
.operations-layout .hours-row input[type=time] { width:106px;font-size:14px; }
.hours-day-state { font-size:12px;color:var(--muted);margin-left:auto; }
.operations-side { display:grid;gap:16px;min-width:0; }
.service-panel { gap:10px; }
.service-panel-heading { display:flex;justify-content:space-between;align-items:center;gap:12px; }
.service-panel p { margin:0;font-size:14px;line-height:21px; }
.service-panel small { color:var(--muted);font-size:12px;line-height:18px; }
.service-panel .button { align-self:flex-start;min-height:40px; }
.exceptions-panel { gap:12px; }
.exceptions-panel .operations-description { margin-bottom:0; }
#opening-exception-form { display:grid;gap:12px; }
#opening-exception-form label { display:flex;flex-direction:column;gap:6px;min-width:0;font-size:13px;line-height:18px;color:var(--ink-2); }
#opening-exception-form label small { display:inline;color:var(--muted);font-size:12px; }
#opening-exception-form input,#opening-exception-form select { display:block;box-sizing:border-box;margin:0;min-width:0;max-width:100%;width:100%;height:40px;min-height:40px;flex:none;font-size:14px;line-height:22px;padding:8px 10px; }
#opening-exception-form input[type=date],#opening-exception-form input[type=time] { -webkit-appearance:none;appearance:none; }
#opening-exception-form input::-webkit-date-and-time-value { min-height:22px;text-align:left; }
.exception-fields { display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;align-items:start; }
.exception-fields[hidden] { display:none; }
.exception-actions { display:flex;gap:14px;align-items:center; }
.exception-actions .button { min-height:40px; }
.exception-list { max-height:240px;overflow-y:auto;border-top:1px solid var(--line); }
.exception-row { display:flex;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid var(--line); }
.exception-row:last-child { border-bottom:0; }
.exception-row>div:first-child { display:grid;gap:4px;min-width:0; }
.exception-row strong { font-size:14px;font-weight:600; }
.exception-state { color:var(--brand-ink);font-size:13px; }
.exception-state.closed { color:var(--danger-ink); }
.exception-row p { font-size:12px;line-height:18px;color:var(--muted);margin:0;overflow-wrap:anywhere; }
.exception-row-actions { display:flex;gap:12px;align-items:start;flex:none; }
.exception-row-actions button { min-height:36px;font-size:12px; }
.exceptions-empty { margin:14px 0 2px;font-size:13px;line-height:20px;color:var(--muted); }
@media(max-width:1150px) {
  .operations-layout { grid-template-columns:minmax(400px,1.1fr) minmax(330px,1fr);gap:12px; }
  .operations-layout .hours-panel,.operations-side .hours-info { padding:16px; }
  .operations-layout .hours-row { gap:8px; }
  .operations-layout .hours-row>strong { width:72px; }
  .operations-layout .hours-row input[type=time] { width:96px; }
  .hours-day-state { display:none; }
}
@media(max-width:850px) { .operations-layout { grid-template-columns:1fr; } }
.hours-info h2 { font-size:18px;line-height:26px;font-weight:500; }
.hours-info p { font-size:15px;line-height:22px;color:var(--ink-2); }
.delivery-workspace { padding:0;min-height:calc(100dvh - var(--topbar-height,64px)); }
.delivery-heading { padding:0;margin:0 0 20px;align-items:center;border:0; }
.delivery-heading h1 { font-size:20px;line-height:28px;font-weight:500; }
.delivery-heading p { margin-top:4px;font-size:14px;line-height:20px; }
.delivery-layout { display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:0;align-items:stretch; }
.delivery-main { grid-column:1;grid-row:1;min-width:0;padding:24px;background:var(--bg); }
.delivery-map-panel { grid-column:1;grid-row:1;min-width:0;border:1px solid var(--line);border-radius:20px;background:var(--bg);display:flex;flex-direction:column;overflow:hidden; }
.delivery-map { height:clamp(360px,calc(100dvh - var(--topbar-height,64px) - 180px),600px);min-height:0;background:var(--bg);font-family:var(--font-sans); }
.delivery-sidebar { grid-column:2;grid-row:1;min-width:0;padding:24px;border-left:1px solid var(--line);background:#fff; }
.delivery-sidebar h2 { font-size:20px;line-height:28px;font-weight:500; }
.delivery-sidebar>p.muted { padding:6px 0 20px;font-size:14px;line-height:20px; }
.delivery-sidebar .search { width:100%; }
.zone-list { max-height:min(360px,calc(100dvh - var(--topbar-height,64px) - 340px));min-height:0;border-color:var(--line);border-radius:12px; }
.zone-item { min-height:66px;gap:3px;padding:12px 14px;border-color:var(--line); }
.zone-item strong { font-size:15px;line-height:22px;font-weight:500; }
.zone-item>span { font-size:13px;line-height:18px; }
.zone-item[aria-pressed=true] { background:var(--brand-50);box-shadow:inset 3px 0 var(--brand); }
.zone-item[aria-pressed=true] strong { color:var(--brand-ink); }
.zone-item:hover { background:var(--bg); }
.delivery-live { margin-top:24px;padding-top:20px;border-top:1px solid var(--line); }
.delivery-live h3 { margin-bottom:12px;font-size:16px;line-height:24px;font-weight:500; }
#delivery-live-orders { display:flex;flex-direction:column;gap:10px;color:var(--muted);font-size:14px;line-height:20px; }
#delivery-live-orders button { display:flex;flex-direction:column;align-items:flex-start;gap:4px;padding:12px;border:1px solid var(--line);border-radius:10px;background:#fff;text-align:left; }
#delivery-live-orders button:hover { background:var(--brand-50); }
.map-status { padding:16px 0 0;font-size:13px;line-height:20px; }
.map-legend { padding:12px 0 0;font-size:12px; }
.map-legend i { background:var(--brand-50);border-color:var(--brand); }
.delivery-map .leaflet-control-zoom a { width:44px;height:44px;line-height:44px;color:var(--ink);background:#fff; }
.delivery-map .leaflet-control-attribution,.delivery-map .leaflet-control-attribution a { color:var(--muted);background:#fff; }
.delivery-map .leaflet-popup-content-wrapper,.delivery-map .leaflet-tooltip { color:var(--ink);background:#fff; }
.zone-popup { font-size:14px;line-height:20px; }
.history { border-color:var(--line);border-radius:12px;background:#fff; }
.history table { font-size:13px;line-height:18px; }
.history caption { padding:8px 12px;font-size:12px; }
.history th { padding:7px 10px;color:var(--muted);font-size:12px;font-weight:500; }
.history td { padding:6px 10px;vertical-align:middle; }
.history td small { margin-top:1px;font-size:11px;line-height:16px; }
.history th:first-child { width:96px; }
.history th:nth-child(2) { width:22%; }
.history th:nth-child(3) { width:92px; }
.history th:nth-child(4) { width:92px; }
.history th:nth-child(5) { width:64px; }
.history th:last-child { width:48px; }
.history th:nth-child(5),.history td:nth-child(5) { text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums; }
.history td:last-child { padding-inline:6px; }
.history .payment-label { font-size:12px;line-height:17px; }
.history .payment-label .icon { flex:none; }
.history .status-tag { padding:2px 5px;font-size:11px;line-height:16px;white-space:nowrap; }
.history-open { display:inline-flex;align-items:center;gap:6px;min-height:32px;padding:4px 0;font-weight:500;color:var(--brand-ink);white-space:nowrap;text-decoration:none; }
.history-open strong { font-size:14px;font-weight:600;text-decoration:underline;text-underline-offset:3px; }
.history-time { color:var(--muted);font-size:11px;font-weight:400;font-variant-numeric:tabular-nums; }
.history .history-print { width:36px;height:36px;padding:8px;border:0;background:transparent;box-shadow:none;border-radius:6px;color:var(--muted); }
.history .history-print .icon { width:18px;height:18px; }
.history .history-print:hover { color:var(--brand-ink);background:var(--brand-50); }
@media (min-width:701px) {
  .history { overflow-x:auto; }
  .history table { table-layout:fixed;min-width:660px; }
  .history thead { display:table-header-group; }
  .history tr { display:table-row;padding:0;border:0; }
  .history td { border-top:1px solid var(--line); }
  .history td::before { display:none; }
}
@media (pointer:coarse) {
  .history-open,.history .history-print { min-height:44px; }
  .history .history-print { width:44px;height:44px; }
  .history th:last-child { width:56px; }
}
.auth { background:var(--bg); }
.auth-art { background:var(--brand-50); }
.auth-art>img { width:80px;height:80px;object-fit:contain; }
.auth-art h1 { font-size:48px;line-height:1.2;font-weight:500;color:var(--ink); }
.auth-art p,.auth-art>small { color:var(--muted); }
.auth-panel h2 { font-size:28px;line-height:36px;font-weight:500; }
.auth-panel .button { min-height:48px; }
.auth-panel input { border-color:var(--line-strong); }
.back-site { color:var(--muted);font-size:14px; }
dialog:not(#detail-dialog) { border:1px solid var(--line);border-radius:20px;background:#fff;box-shadow:0 24px 80px #10182833; }
dialog:not(#detail-dialog)::backdrop { background:rgba(16,24,40,.35); }
.modal-header { padding:24px;border-color:var(--line); }
.modal-header h2 { font-size:24px;line-height:32px;font-weight:500; }
.settings-dialog form,.confirm-body { padding:24px; }
.confirm-actions { padding:0 24px 24px; }
.settings-note { background:var(--bg); }
.settings-note strong { font-weight:500; }
.settings-note p { font-size:14px;line-height:20px; }
.staff-management { border-color:var(--line); }
.toast { border-radius:10px;background:var(--ink-2);color:#fff;box-shadow:var(--shadow-md);font-size:14px;line-height:20px; }
/* Tablet layouts preserve simultaneous editing and summary without horizontal overflow. */
@media (max-width:1280px) {
  .topbar { gap:10px;padding:10px 16px; }
  .brand { min-width:140px; }
  .brand-copy small { display:none; }
  .topbar .main-nav { gap:6px;flex-wrap:nowrap; }
  .topbar-right { gap:6px;flex-wrap:nowrap; }
  .topbar-right .profile { display:inline-flex; }
  .profile #user-name,.profile strong { display:none; }
  .topbar-right .profile { padding-right:4px; }
  .order-layout { --summary-width:300px;grid-template-columns:var(--customer-width,270px) minmax(0,1fr) var(--summary-width); }
  .customer-panel,.order-summary,.catalogue { padding:20px; }
  .order-summary { --summary-padding:20px; }
  .catalogue-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  #dashboard { grid-template-columns:minmax(0,1fr) 330px; }
  .order-detail { width:330px;padding:20px; }
  .board-area { padding:16px; }
  .orders-toolbar .day-summary { display:none; }
  .board { gap:12px; }
  .detail-head-actions { gap:6px; }
  .detail-head-actions .icon-button { width:36px;height:36px;padding:7px; }
}
@media (max-width:1050px) and (min-width:701px) {
  .topbar { padding:10px 12px;gap:8px; }
  .brand { min-width:76px; }
  .brand-copy { display:none; }
  .topbar .main-nav { gap:5px;flex:none; }
  .topbar-right { margin-left:0; }
  .header-search { min-width:140px; }
  .sound-panel { inset-inline-start:auto;inset-inline-end:0; }
  .service-toggle { padding:0 10px;font-size:12px; }
  .topbar #new-order { padding:0 12px;font-size:14px; }
  .topbar .nav-item.active { padding:0 12px; }
  .topbar .nav-item.active>.nav-label { display:none; }
  .topbar .nav-item.active { padding:0 8px; }
  .service-toggle { position:relative;width:auto;padding:0 10px;justify-content:center; }
  .service-toggle #service-label { position:static;width:auto;height:auto;padding:0;margin:0;overflow:visible;clip:auto;white-space:nowrap;border:0;font-size:0;line-height:0; }
  .service-toggle #service-label::after { content:attr(data-short-label);font-size:12px;line-height:18px; }
  #dashboard { grid-template-columns:minmax(0,1fr) 310px; }
  .order-detail { width:310px;padding:18px; }
  .board-area { padding:16px; }
  .board { grid-template-columns:1fr;gap:24px; }
  .column-cards { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px; }
  .column-empty { grid-column:1/-1; }
  .detail-head h2 { font-size:18px;line-height:26px; }
  .detail-head { flex-wrap:wrap; }
  .detail-head-actions { margin-left:auto; }
  .detail-received { flex-wrap:wrap;font-size:13px; }
  .detail-line-main { gap:8px;font-size:14px;line-height:20px; }
  .detail-line-main>b,.detail-line-main>strong { font-size:14px; }
  .detail-lines .detail-line small,.detail-line-mod { padding-left:32px;font-size:13px; }
  .order-layout { --summary-width:270px;grid-template-columns:var(--customer-width,230px) minmax(0,1fr) var(--summary-width); }
  .customer-panel { grid-column:1;grid-row:1; }
  .catalogue { grid-column:2;grid-row:1; }
  .order-summary { grid-column:3;grid-row:1;border-left:1px solid var(--line);border-right:0;border-top:0; }
  .order-form .choice .icon { display:none; }
  .order-form .choice span { padding-inline:8px;font-size:13px; }
  .customer-panel,.order-summary,.catalogue { padding:18px; }
  .order-summary { --summary-padding:18px; }
  .catalogue-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .catalogue-tabs button { padding:8px;font-size:12px; }
  .product-select { padding:10px;grid-template-columns:minmax(0,1fr) 64px;gap:4px 8px;min-height:100px; }
  .product-select>.product-media,.product-media>.pizza-photo { width:64px;height:64px; }
  .product-added { top:6px;right:6px; }
  .product-name { font-size:15px;line-height:22px; }
  .config-product { flex-wrap:nowrap;gap:10px; }
  .config-product>img,.config-product>.pizza-photo { width:40px;height:40px; }
  .config-product h1 { font-size:17px;line-height:22px; }
  .delivery-layout { grid-template-columns:minmax(0,1fr) 290px; }
  .delivery-sidebar,.delivery-main { padding:18px; }
  .menu-layout { grid-template-columns:minmax(0,1fr) 290px;gap:16px; }
  .menu-detail { padding:18px; }
  .hours-layout { grid-template-columns:1fr; }
}
@media (max-width:800px) and (min-width:701px) {
  .topbar { gap:8px; }
  .brand { min-width:70px; }
  .brand img { width:70px; }
  .topbar .main-nav { margin-left:0;gap:4px; }
  .topbar-right { width:auto;justify-content:flex-end;gap:6px; }
  .topbar-right .service-toggle { margin-right:0; }
  .header-search { min-width:120px; }
  .header-search kbd { display:none; }
  .orders-toolbar h1 { font-size:18px;line-height:26px; }
  .orders-toolbar .active-count { display:none; }
  .orders-toolbar .segmented button { padding:5px 6px;font-size:11px; }
  .topbar .nav-item>#nav-count { position:absolute;transform:translate(18px,-14px);font-size:10px;line-height:13px;padding:1px 4px; }
  .column-cards { grid-template-columns:1fr; }
  .catalogue-grid { grid-template-columns:1fr; }
}
@media (max-width:900px) and (min-width:701px) {
  .topbar #new-order { width:40px;min-width:40px;padding:0;font-size:0;gap:0; }
  .topbar #new-order-label { position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap; }
  .topbar #draft-count { position:absolute;min-width:16px;margin:-24px 0 0 28px;padding:0 3px;border-radius:5px;background:var(--brown);font-size:10px;line-height:16px; }
  #menu-context-controls { flex-basis:100%;margin-inline-start:0; }
  .menu-product-grid { grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:12px; }
}
@media (min-width:768px) and (max-width:900px) {
  .order-layout { --summary-width:220px;grid-template-columns:var(--customer-width,230px) minmax(0,1fr) var(--summary-width); }
  .order-summary { --summary-padding:14px;padding:16px 14px; }
  .order-summary .order-form-footer .button { min-height:44px;padding:10px 8px;font-size:14px; }
  .order-summary .order-form-footer .text-button { min-height:40px;font-size:14px; }
  .config-product,.pizza-editor:has(.config-scopes:not(.has-halves)) .config-product { gap:8px; }
  .config-product>img,.config-product>.pizza-photo,
  .pizza-editor:has(.config-scopes:not(.has-halves)) .config-product>img,
  .pizza-editor:has(.config-scopes:not(.has-halves)) .config-product>.pizza-photo { width:40px;height:40px; }
  .config-product h1 { font-size:16px;line-height:22px; }
  .config-product p { font-size:11px;line-height:16px; }
}
@container (max-width:640px) {
  .catalogue-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@container (min-width:960px) {
  .catalogue-grid { grid-template-columns:repeat(4,minmax(0,1fr)); }
}
@container (max-width:450px) {
  .catalogue-toolbar { flex-wrap:wrap; }
  .catalogue-toolbar .search { flex-basis:100%; }
  .pizza-editor .config-product { align-items:flex-start;gap:8px; }
  .config-product>.config-product-price { font-size:15px;line-height:20px; }
}
@container (max-width:380px) {
  .catalogue-grid { grid-template-columns:minmax(0,1fr); }
  .pizza-editor-header .eyebrow { display:none; }
  .pizza-editor .config-footer { align-items:stretch; }
  .pizza-editor .config-footer>.button { flex-basis:100%; }
}
@media (prefers-reduced-motion:reduce) {
  .order-card,.nav-item,.button,.ingredient-tags span { animation:none!important;transition:none!important; }
}
@media (pointer:coarse) {
  .order-summary .summary-toggle,.order-layout.summary-collapsed .summary-toggle { width:44px;height:44px; }
  .order-summary .cart-heading { min-height:44px;padding-inline-end:50px; }
  .catalogue-tabs button,.product-edit,.pizza-editor .ingredient-tags span { min-height:44px; }
  .catalogue-toolbar .search,.catalogue-toolbar .search input { min-height:44px; }
  .catalogue-toolbar .search input,.pizza-editor .config-body select,.pizza-editor .config-note textarea { font-size:16px; }
  .customer-panel input,.customer-panel select,.customer-panel textarea { font-size:16px; }
  .pizza-editor .config-body select { height:44px;min-height:44px; }
}

.detail-footer .reject-order { background:var(--danger-50);border:1px solid #c47069;color:var(--danger-ink); }
.detail-footer .reject-order:hover { background:#f9e1dd; }
.detail-payment-hint { color:var(--muted);font-size:11px;line-height:16px; }
.detail-refund-notice { display:grid;gap:6px;padding:10px;border:1px solid #d4ba6b;border-radius:9px;background:var(--warn-50);color:var(--warn-ink);font-size:12px;line-height:18px; }
.detail-refund-notice strong { font-weight:600; }
.detail-refund-notice .button { margin-top:2px; }

.app-header { position:sticky;top:0;z-index:50; }
.app-header .topbar { position:relative;top:auto; }
.stale-banner { display:flex;align-items:center;justify-content:center;gap:16px;padding:10px 20px;background:#a82821;color:#fff;font-size:13px;line-height:1.5; }
.stale-banner[hidden] { display:none; }
.stale-banner button { flex:none;border:1px solid #ffffff90;border-radius:6px;padding:6px 10px;background:transparent;color:inherit;cursor:pointer;font-weight:600; }
.stale-banner button:disabled { opacity:.65;cursor:wait; }
@media(max-width:700px) {
  .stale-banner { align-items:flex-start;flex-direction:column;gap:6px;padding:10px 12px; }
}
