:root {
  color-scheme: light;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  color: #24282a;
  background: #dad7d5;
  --canvas: #dad7d5;
  --surface: #fff;
  --surface-soft: #f6f5f3;
  --text: #24282a;
  --muted: #737a78;
  --line: #d6d8d5;
  --green: #195e4e;
  --green-dark: #124638;
  --green-light: #eaf5ef;
  --mint: #5bdc8d;
  --success: #279a5a;
  --danger: #aa3c37;
  --radius: 8px;
}

* { box-sizing: border-box; }
html, body { width: 100%; min-height: 100%; margin: 0; }
body { min-width: 320px; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button { color: inherit; }
button:disabled { cursor: not-allowed; opacity: .44; }
button, input, select, textarea, a { outline-offset: 3px; }
:focus-visible { outline: 3px solid #2d826b; }
button { touch-action: manipulation; }
button svg { pointer-events: none; }
button, input, select, textarea { border-radius: 6px; }
button { transition: background-color 120ms, box-shadow 120ms, transform 120ms; }
button:not(:disabled):active { transform: translateY(1px); }
button[hidden], [hidden] { display: none !important; }
input[type='checkbox'], input[type='radio'] { accent-color: var(--green); }
input::placeholder, textarea::placeholder { color: #919794; opacity: 1; }
input[type='number'] { -moz-appearance: textfield; }
input[type='number']::-webkit-inner-spin-button { -webkit-appearance: none; }
svg.icon { width: 22px; height: 22px; flex: 0 0 auto; vertical-align: middle; }
.muted { color: var(--muted); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
#app { height: 100dvh; min-height: 0; display: flex; flex-direction: column; }
.app-shell { height: auto; min-height: 0; flex: 1; display: flex; flex-direction: column; padding: 7px 8px 8px; gap: 7px; overflow: hidden; }
.demo-bar { margin: 0; flex: 0 0 auto; min-height: 27px; padding: 6px 12px; display: flex; align-items: center; justify-content: center; gap: 7px; font-size: 11px; line-height: 1.25; letter-spacing: .025em; color: #665020; background: #fff3d4; border-bottom: 1px solid #e7d8af; text-align: center; }
.demo-bar strong { font-weight: 700; }
.demo-tag { display: inline-flex; align-items: center; white-space: nowrap; padding: 4px 6px; border: 1px solid #d9c787; border-radius: 4px; color: #7f6626; background: #fff7df; font-size: 10px; font-weight: 700; letter-spacing: .05em; }
.stats-bar { flex: 0 0 auto; display: flex; align-items: center; gap: 22px; min-height: 33px; padding: 0 10px; border-radius: var(--radius) var(--radius) 0 0; background: #f4f3f1; white-space: nowrap; overflow-x: auto; scrollbar-width: none; font-size: 11px; }
.stats-bar::-webkit-scrollbar, .mode-nav::-webkit-scrollbar { display: none; }
.register-header { flex: 0 0 auto; min-width: 0; overflow: hidden; border-radius: var(--radius); background: #fff; }
.register-header .topbar { border-radius: 0; }
.register-header .mode-nav { mask-image: linear-gradient(to right, #000 calc(100% - 10px), transparent); padding-right: 10px; }
.register-header .topbar-actions { gap: 0; }
.register-header .register-nav-more, .register-header .register-more { width: 33px; color: #161a17; }
.register-header .register-stats-button { width: 39px; }
.register-header .register-stats-button[aria-pressed='false'] { color: #777; }
.stat { display: flex; align-items: center; gap: 5px; }
.stat-value { font-weight: 700; color: #226c42; font-variant-numeric: tabular-nums; }
.topbar { flex: 0 0 auto; display: flex; align-items: center; min-height: 61px; gap: 13px; padding: 7px 10px; background: var(--surface); border-radius: var(--radius); }
.brand { display: flex; align-items: center; gap: 4px; color: var(--green); font-weight: 800; white-space: nowrap; font-size: 16px; letter-spacing: -.035em; }
.brand svg.icon { width: 27px; height: 27px; }
.brand small { font-size: 10px; letter-spacing: .06em; text-transform: uppercase; display: block; color: var(--muted); margin-top: 3px; font-weight: 600; }
.mode-nav { flex: 1; min-width: 0; display: flex; align-items: center; gap: 5px; overflow-x: auto; scrollbar-width: none; }
.mode-button { flex: 0 0 auto; min-height: 44px; padding: 10px 17px; border: 1px solid transparent; background: #e7e7e6; color: #555c59; font-size: 12px; font-weight: 700; white-space: nowrap; }
.mode-button:hover { background: #dcdeda; }
.mode-button.active { color: #fff; background: var(--green); border-color: var(--green); }
.topbar-actions { display: flex; align-items: center; gap: 5px; flex: 0 0 auto; }
.icon-button, .menu-toggle, .close-button { display: inline-flex; align-items: center; justify-content: center; width: 39px; height: 39px; padding: 8px; border: 0; background: transparent; border-radius: 6px; color: var(--green); flex-shrink: 0; }
.icon-button:hover, .menu-toggle:hover, .close-button:hover { background: #edf2ef; }
.topbar .icon-button { width: 44px; height: 44px; }
.topbar-actions > button { min-height: 44px; }
.menu-toggle { color: #3d4641; }
@media (max-width: 1000px) {
  .pizza-register .topbar .drawer-open-button { width: 44px; justify-content: center; padding-inline: 0; }
  .pizza-register .topbar .drawer-open-button span { display: none; }
}
@media (max-width: 540px) {
  .pizza-register .topbar { flex-wrap: wrap; justify-content: space-between; }
  .pizza-register .mode-nav { flex: 0 0 100%; order: 1; }
}
.workspace { display: grid; grid-template-columns: minmax(0, 1fr) minmax(310px, 31%); gap: 8px; min-height: 0; flex: 1; }
#operational-overview:empty { display: none; }
.operational-overview { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 7px 10px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); font-size: 12px; }
.operational-overview button { min-height: 44px; }
.operational-overview .operational-overdue { background: #fff1e8; color: #8a351b; border-color: #e4ad96; }
.catalog-panel { min-width: 0; min-height: 0; display: flex; flex-direction: column; background: var(--surface); border-radius: var(--radius); overflow: hidden; }
.workflow-tabs { display: flex; flex: 0 0 auto; gap: 8px; padding: 8px 8px 0; border-bottom: 1px solid #aeb5af; min-height: 52px; background: var(--surface); }
.workflow-tab { min-height: 44px; padding: 12px 16px; border-radius: 8px 8px 0 0; border: 1px solid transparent; background: #cacbc9; margin-bottom: -1px; color: #303632; font-size: 13px; font-weight: 700; }
.workflow-tab:hover:not(.active) { background: #bfc2be; }
.workflow-tab.active { background: #fff; border-color: #b7bcb7; border-bottom-color: #fff; }
.catalog-toolbar { flex: 0 0 auto; display: flex; gap: 6px; padding: 10px 8px 6px; }
.search-wrap { flex: 1; min-width: 0; position: relative; }
.search-wrap > .icon { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: #808984; pointer-events: none; }
.search-wrap input { min-width: 0; width: 100%; height: 44px; padding: 10px 44px 10px 12px; border: 1.5px solid var(--green); background: #fff; }
.search-wrap:has(> .icon) input { padding-left: 36px; }
.search-wrap input::-webkit-search-cancel-button { -webkit-appearance: none; }
.clear-search { position: absolute; right: 0; top: 0; height: 44px; width: 44px; border: 0; background: transparent; color: #45534c; padding: 7px; }
.deposit-button { flex: 0 0 104px; min-height: 44px; background: #fff; color: var(--green); border: 1.5px solid var(--green); font-size: 12px; font-weight: 700; }
.deposit-button:hover { background: #edf5f0; }
.category-list {
  flex: 0 0 auto;
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(2, 52px);
  grid-auto-columns: clamp(118px, 14.2vw, 146px);
  gap: 12px 8px;
  padding: 4px 8px 9px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
  border-bottom: 7px solid var(--canvas);
}
.category-button { min-width: 0; min-height: 44px; padding: 6px 5px; font-size: 11px; font-weight: 700; border: 2px solid transparent; line-height: 1.25; background: var(--category-color, #d7dece); color: #17251d; overflow-wrap: anywhere; overflow: hidden; }
.category-button:hover { filter: brightness(.97); }
.category-button.active { border-color: #1b5c4e; box-shadow: inset 0 0 0 1px #fff8; }
.category-button.category-button-image { display:grid; grid-template-columns:28px minmax(0,1fr); align-items:center; gap:4px; }
.category-button-image img { width:28px; height:26px; object-fit:cover; border-radius:3px; }
.product-area { min-height: 0; flex: 1; display: flex; background: var(--canvas); gap: 7px; padding-top: 1px; }
.quantity-pad { width: 64px; flex: 0 0 64px; display: flex; flex-direction: column; gap: 3px; border-radius: 7px; background: #fff; padding: 4px; }
.quantity-keys { display: flex; flex-direction: column; gap: 3px; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.quantity-button { flex: 0 0 44px; min-width: 44px; min-height: 44px; border: 1px solid transparent; background: #e4e4e3; font-weight: 700; font-size: 12px; padding: 4px; }
.quantity-button:hover { background: #d7dcd6; }
.quantity-button:focus-visible { outline-offset: -3px; }
.quantity-readout { flex: 0 0 30px; display: grid; place-items: center; border-radius: 6px; background: #edf3ee; color: var(--green); font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.product-grid { flex: 1; min-width: 0; min-height: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); align-content: start; gap: 7px 5px; overflow-y: auto; overscroll-behavior: contain; background: #fff; border-radius: 7px; padding: 7px; scrollbar-width: thin; }
.product-tile { position: relative; min-height: 64px; background: var(--tile-color, #f8df94); background: color-mix(in srgb, var(--tile-color, #f8df94) 59%, white); padding: 8px 6px; border: 1px solid transparent; border-radius: 7px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 3px; color: #24281f; overflow-wrap: anywhere; }
.product-tile:has(.product-quantity) { padding-top: 25px; }
.product-quantity { position: absolute; top: 3px; right: 3px; min-width: 22px; padding: 3px 5px; border-radius: 5px; background: var(--green); color: #fff; font-size: 10px; line-height: 1.2; font-weight: 700; font-variant-numeric: tabular-nums; }
.product-tile:hover { border-color: #5c715c; filter: brightness(.98); box-shadow: 0 2px 4px #183a2812; }
.product-name { font-size: 12px; line-height: 1.2; font-weight: 700; }
.product-price { font-size: 11px; color: #4c553f; font-weight: 500; font-variant-numeric: tabular-nums; }
.product-grid > .empty-cart { grid-column: 1 / -1; }
.cart-panel { display: flex; flex-direction: column; min-width: 0; min-height: 0; border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.cart-actions { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); flex: 0 0 auto; }
.cart-footer.customer-cart-footer { display: grid; gap: 8px; padding: 12px 8px 8px; border-top: 1px solid #c8c7c6; }
.customer-cart-footer > .preorder-switch { justify-self: center; margin-bottom: 4px; }
.customer-cart-footer .preorder-summary { color: var(--green); font-size: 12px; }
.customer-cart-footer > button { min-height: 46px; }
.customer-cart-footer .customer-discard { color: #bd2f41; background: #fff; border: 1.5px solid #cf4557; }
.customer-cart-footer .customer-discard:hover { background: #fff3f4; }
.customer-cart-footer .primary-button { background: var(--mint); border-color: var(--mint); color: #09261b; }
.cart-action { min-height: 53px; background: #fff; border: 0; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 4px; padding: 6px 4px; font-size: 10px; color: #303a34; border-radius: 0; }
.cart-action:hover { background: #f0f5f1; }
.cart-action .icon { width: 22px; height: 22px; }
.cart-heading { display: flex; align-items: center; justify-content: space-between; padding: 12px 13px 10px; gap: 8px; font-weight: 700; border-bottom: 1px solid #ecedea; }
.cart-heading h2 { font-size: 14px; margin: 0; }
.cart-heading small { font-size: 11px; color: var(--muted); font-weight: normal; }
.cart-lines { min-height: 0; flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 0 12px; }
.empty-cart { min-height: 190px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; padding: 28px 16px; color: #89918b; text-align: center; height: 100%; }
.empty-icon { display: inline-flex; align-items: center; justify-content: center; width: 59px; height: 59px; color: #b1c1b6; background: #f2f5f2; border-radius: 50%; margin-bottom: 4px; }
.empty-icon .icon { width: 29px; height: 29px; }
.empty-title { color: #647268; font-size: 13px; font-weight: 700; margin: 0; }
.empty-description { max-width: 210px; font-size: 12px; line-height: 1.5; margin: 0; }
.cart-line { padding: 13px 0 11px; border-bottom: 1px solid #eaede8; }
.line-main { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.line-name { font-size: 13px; font-weight: 700; line-height: 1.35; margin-bottom: 4px; }
.line-meta, .line-note { font-size: 11px; line-height: 1.45; color: #7a827a; }
.line-note { color: #506c5e; font-style: italic; }
.line-price { white-space: nowrap; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.line-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: 8px; }
.qty-control { display: inline-flex; align-items: center; gap: 1px; min-height: 31px; padding: 0; background: #f2f3f0; border: 1px solid #e0e4de; border-radius: 5px; color: #3e5749; font-size: 13px; }
.line-controls .icon-button { width: 44px; height: 44px; }
.line-controls .line-extras-button { min-height: 44px; padding: 0 10px; }
.qty-control > .icon-button { padding: 3px; font-size: 17px; border-radius: 4px; }
.qty-control > span { min-width: 18px; text-align: center; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.line-controls > span { min-width: 25px; text-align: center; font-size: 12px; font-weight: 700; }
.remove-line { margin-left: auto; color: #a75b51; border: 0; background: transparent; padding: 5px; }
.remove-line .icon { width: 17px; height: 17px; }
.cart-footer { flex: 0 0 auto; display: grid; gap: 5px; padding: 8px 10px; border-top: 2px solid #ccd0ca; }
.discount-row, .total-row, .change-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.discount-row { font-size: 12px; color: #3b7754; margin-bottom: 9px; }
.total-row { font-weight: 700; font-size: 16px; padding: 2px 0 14px; font-variant-numeric: tabular-nums; }
.total-row > :last-child { font-size: 21px; }
.cart-footer .discount-row { margin-bottom: 0; }
.cart-footer .total-row { padding: 0 1px 2px; font-size: 12px; }
.cart-footer .total-row > :last-child { text-align: right; font-size: 17px; }
.cart-aux-actions, .footer-buttons, .cart-payment-shortcuts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 5px; }
.cart-payment-shortcuts > :only-child { grid-column: 1 / -1; }
.cart-payment-shortcuts .icon { width: 18px; height: 18px; }
.cart-footer button { min-width: 0; min-height: 44px; padding: 6px; font-size: 12px; }
.cart-aux-actions > button { gap: 4px; }
.cart-aux-actions .icon { width: 16px; height: 16px; }
.cart-meta { text-align: center; font-size: 10px; line-height: 1.35; color: var(--muted); overflow-wrap: anywhere; }
.button, .primary-button, .secondary-button, .danger-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 10px 16px; border: 1px solid transparent; font-size: 13px; font-weight: 700; line-height: 1.2; }
.button, .secondary-button { background: #f1f3ef; border-color: #d2d9d0; color: #355646; }
.button:hover, .secondary-button:hover { background: #e6ece5; }
.primary-button { color: #fff; background: var(--green); border-color: var(--green); }
.primary-button:hover { background: var(--green-dark); }
.primary-button .icon { width: 20px; height: 20px; }
.danger-button { color: #984a40; background: #fff; border-color: #e4c9c4; }
.danger-button:hover { background: #faf0ed; }
.text-button { padding: 5px 0; border: 0; background: transparent; color: var(--green); font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }
.text-button:hover { color: #102f24; }
.panel-heading { font-size: 20px; line-height: 1.3; margin: 0 0 7px; color: #2e3b32; font-weight: 600; }
.section-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.section-header h2, .section-header h3 { margin: 0; }
.section-header p { margin: 6px 0 0; font-size: 12px; color: var(--muted); }
.pill { display: inline-flex; align-items: center; justify-content: center; padding: 5px 8px; background: #edf5ee; color: #276342; border: 1px solid #d6e7d8; border-radius: 20px; font-size: 10px; font-weight: 700; white-space: nowrap; }
.driver-light.yellow { background:#fff2d2; color:#7d5000; border-color:#e8cf91; }
.driver-light.red { background:#ffeded; color:#892727; border-color:#e5adad; }
.driver-light.unmeasured { background:#f1f2f1; color:#505a53; border-color:#d9dfda; }
.field { display: flex; flex-direction: column; align-items: stretch; gap: 6px; min-width: 0; }
.field-label { font-size: 12px; font-weight: 700; color: #4d5a50; }
.input, .select, .textarea, .field > input, .field > select, .field > textarea { border: 1px solid #cbd4ca; color: #283b2e; background: #fff; width: 100%; min-width: 0; min-height: 43px; padding: 10px 11px; }
.input:focus, .select:focus, .textarea:focus, .field > input:focus, .field > select:focus, .field > textarea:focus { border-color: var(--green); }
.textarea, .field > textarea { resize: vertical; min-height: 74px; line-height: 1.45; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.form-grid .full-width, .field.full-width { grid-column: 1 / -1; }
.customer-view, .table-view, .checkout-view, .orders-view, .receipt-view { flex: 1; min-height: 0; overflow-y: auto; padding: 23px; }
.customer-search { display: flex; gap: 9px; padding-bottom: 20px; border-bottom: 1px solid #e7ebe4; margin-bottom: 20px; }
.customer-search input { flex: 1; min-width: 0; }
.customer-form { display: flex; flex-direction: column; gap: 18px; }
.customer-form .primary-button { align-self: flex-start; }
.customer-extra-heading { font-size: 15px; margin: 7px 0 -7px; }
.customer-extra-fields, .customer-service-options, .customer-record-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.customer-extra-fields > .field { flex: 1 1 155px; }
.customer-delivery-details { display: grid; grid-template-columns: minmax(0,1.35fr) repeat(3,minmax(0,1fr)); gap: 8px; }
.customer-extra-fields > .customer-directions { flex-basis: 40%; }
.customer-directions .textarea { width: 100%; }
.customer-email-confirm { font-size: 12px; }
.customer-service-options .active { background: var(--green); color: white; }
.customer-options{display:flex;flex-direction:column;gap:8px;margin-top:16px;max-height:45dvh;overflow-y:auto}
.customer-option{display:flex;flex-direction:column;align-items:flex-start;gap:6px;padding:14px;background:#f5f8f3;border:1px solid #d6e2d4;text-align:left}
.customer-option:hover{border-color:var(--green)}.customer-option span{font-size:12px;color:var(--muted)}
.receipt-view{overflow-wrap:anywhere}.receipt-view .muted{font-size:11px;line-height:1.6}
.section-header{flex-wrap:wrap}
.customer-summary, .info-card { padding: 15px; border: 1px solid #dbe6d8; border-radius: 7px; background: #f7faf5; line-height: 1.6; font-size: 13px; }
.customer-summary { margin-top: 20px; }
.customer-summary strong { display: block; }
.info-card .icon { width: 18px; height: 18px; margin-right: 6px; color: var(--green); }
.welcome-note { padding: 13px 15px; margin-bottom: 20px; color: #657165; font-size: 12px; line-height: 1.6; background: #f6f7f4; border-left: 3px solid #b4ccb2; border-radius: 0 5px 5px 0; }
.floor-plan { display: grid; gap: 14px; margin-top: 14px; }
.floor-area { min-width: 0; border: 1px solid #ccd9d1; border-radius: 12px; overflow: hidden; background: #f4f7f4; }
.floor-area h2 { margin: 0; padding: 9px 12px; border-bottom: 1px solid #ccd9d1; color: #264539; background: #e5eee7; font-size: 14px; }
.floor-area-scroll { overflow-x: auto; padding: 10px; }
.floor-grid { display: grid; grid-template-columns: repeat(4, minmax(105px, 1fr)); grid-auto-rows: minmax(88px, auto); gap: 8px; min-width: 444px; }
.floor-table { min-width: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 4px; padding: 6px; text-align: center; overflow-wrap: anywhere; border: 1px solid #92b6a0; border-radius: 10px; background: #fff; color: #214c36; font: inherit; cursor: pointer; }
.floor-table strong { font-size: 14px; }
.floor-table-status { font-size: 11px; font-weight: 700; }
.floor-table-detail { font-size: 11px; }
.floor-table.occupied { border-color: #c28a42; background: #fff2d9; color: #603800; }
.floor-table:hover { box-shadow: inset 0 0 0 1px currentColor; }
.floor-table.selected, .floor-table:has(input:checked) { outline: 2px solid #28694e; outline-offset: -3px; }
.floor-table:focus-visible, .floor-table:has(input:focus-visible) { outline: 3px solid #215b9b; outline-offset: -3px; }
.move-floor-plan { min-width: 0; border: 0; padding: 0; margin: 0; display: grid; gap: 10px; }
.move-floor-plan legend { padding: 0; margin-bottom: 8px; font-weight: 700; }
.move-floor-plan .floor-area h2 { font-size: 13px; }
.move-floor-plan .floor-table input { margin: 0; width: 16px; height: 16px; accent-color: #28694e; }
.floor-table-source { cursor: default; }
@media (max-width: 600px) {
  .floor-grid { min-width: 298px; grid-template-columns: repeat(4, minmax(70px, 1fr)); gap: 6px; }
}
.selected-table { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; gap: 8px; background: #eef7ed; color: #355a3e; border-bottom: 1px solid #d5e3d0; font-size: 12px; }
.checkout-view { display: flex; flex-direction: column; gap: 17px; }
.checkout-summary { padding: 14px 16px; border-radius: 7px; background: #fff; border: 1px solid var(--line); }
.checkout-summary > span { font-weight: 700; }
.checkout-summary .total-row { padding-bottom: 0; }
.checkout-summary .muted { font-size: 12px; line-height: 1.5; }
.checkout-summary { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:10px; }
.checkout-summary > strong { font-size:32px; color:#141714; white-space:nowrap; font-variant-numeric:tabular-nums; }
.checkout-summary > small { grid-column:1/-1; color:var(--muted); line-height:1.5; }
.checkout-test-notice { margin:0; font-size:12px; color:var(--muted); }
.checkout-fulfilment { display:flex; justify-content:space-between; align-items:flex-start; gap:14px; border:1px solid var(--line); border-left:4px solid var(--green); border-radius:7px; padding:12px 14px; }
.checkout-fulfilment p { margin:6px 0 0; line-height:1.5; overflow-wrap:anywhere; }
.checkout-fulfilment > div { min-width:0; }
.checkout-fulfilment > button { flex-shrink:0; min-height:44px; }
.customer-validation { padding:12px 16px; background:#fff4f1; border:1px solid var(--danger); border-radius:7px; color:#8b3029; }
.customer-validation ul { margin:8px 0 0; padding-left:20px; line-height:1.6; }
.field-error { color:#a5302a; line-height:1.5; }
.input[aria-invalid="true"] { border:2px solid #b43e32; background:#fff9f7; }
.mixed-payment { display:grid; gap:12px; }
.tender-field { display:grid; gap:7px; align-content:start; }
.tender-field .input { font-size:22px; text-align:right; font-variant-numeric:tabular-nums; }
.tender-field > button { min-height:44px; }
.payment-ready { color:var(--green-dark); }
.receipt-fulfilment { text-align:left; padding:10px 0; border-block:1px dashed var(--line); }
@media(max-width:700px){.checkout-fulfilment{flex-wrap:wrap}.checkout-fulfilment>button{margin-left:auto}}
.checkout-view > .panel-heading { margin:0; }
.checkout-view { gap:12px; }
.cash-payment { display:grid; gap:10px; padding:0; background:white; }
.cash-payment .cash-input { min-height:56px; font-size:30px; }
.cash-payment p { margin:0; font-size:12px; }
.cash-presets { display:flex; flex-wrap:wrap; gap:8px; }
.cash-presets button { flex:1; min-width:70px; min-height:48px; font-weight:700; }
.cash-change { display:flex; justify-content:space-between; align-items:center; gap:12px; border:0; padding:12px; background:var(--green-light); border-radius:6px; }
.cash-change strong { font-size:25px; text-align:right; }
@media(min-width:900px){
  .checkout-view .payment-methods { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .checkout-view .payment-method { min-height:56px; }
  .cash-payment { grid-template-columns:1fr 1fr; }
  .cash-payment > .field { grid-column:1; grid-row:1; }
  .cash-payment > .cash-change { grid-column:2; grid-row:1; align-self:end; min-height:56px; }
  .cash-payment > .cash-presets,.cash-payment > p { grid-column:1/-1; }
}
.checkout-options,.customer-optional { border:1px solid var(--line); border-radius:8px; padding:0 14px; }
.checkout-options > summary,.customer-optional > summary { cursor:pointer; padding:16px 0; font-weight:700; line-height:1.5; }
.checkout-options[open],.customer-optional[open] { padding-bottom:14px; }
.checkout-options > .checkout-vouchers,.checkout-options > .checkout-adjustments { margin:8px 0; }
.checkout-print-option { display:flex; align-items:center; gap:10px; min-height:44px; font-size:14px; cursor:pointer; }
.checkout-print-option input { width:20px; height:20px; accent-color:var(--green); }
.checkout-view .checkout-sticky-actions { position:sticky; bottom:-23px; z-index:2; background:white; padding:14px 0; border-top:1px solid var(--line); justify-content:space-between; box-shadow:0 -8px 12px #fff; }
.checkout-sticky-actions button { min-height:52px; }
.checkout-sticky-actions .checkout-print-option { justify-content:center; font-size:12px; flex:1; }
.checkout-cart-footer .total-row > :last-child { font-size:24px; }
.workflow-number { display:inline-flex; justify-content:center; align-items:center; width:24px; height:24px; margin-right:5px; border:1px solid currentColor; border-radius:50%; font-size:12px; }
.drawer-open-button { display:inline-flex; gap:6px; align-items:center; white-space:nowrap; min-height:44px; }
#receipt-output-status { padding:0 20px; flex-shrink:0; max-height:160px; overflow:auto; background:#fff; border-top:1px solid var(--line); position:relative; }
.modal > .modal-body.receipt-view { overflow-y:auto; min-height:0; flex:1 1 auto; }
#receipt-output-status:empty { display:none; }
#receipt-output-status p { margin:8px 0; font-size:13px; line-height:1.5; }
.customer-optional > .customer-extra-heading { margin:10px 0; }
.customer-optional > * + * { margin-top:12px; }

@media(max-width:700px){
  .checkout-view .checkout-sticky-actions { bottom:-18px; flex-wrap:wrap; }
  .checkout-sticky-actions button { flex:1; min-width:130px; }
  .checkout-sticky-actions .checkout-print-option { flex:0 0 100%; order:-1; justify-content:flex-start; }
  .drawer-open-button span { display:none; }
  .checkout-summary > strong { font-size:26px; }
  .workflow-number { width:20px; height:20px; margin-right:2px; }
}
.payment-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.payment-method { display: flex; align-items: center; justify-content: flex-start; gap: 9px; min-height: 52px; padding: 10px 14px; border: 1.5px solid #d4d7d4; color: #262b28; font-size: 14px; background: #fff; font-weight: 700; text-align: left; }
.payment-method::before { content: ''; flex: 0 0 18px; height: 18px; border: 1.5px solid #9aa19d; border-radius: 50%; background: #fff; }
.payment-method.active { background: #f0f7f2; border-color: var(--green); color: var(--green-dark); }
.payment-method.active::before { border-color: var(--green); background: radial-gradient(circle, var(--green) 0 4px, #fff 5px); }
.payment-method .icon { width: 20px; height: 20px; }
.cash-input { font-size: 23px; text-align: right; font-variant-numeric: tabular-nums; }
.change-row { font-size: 15px; font-weight: 700; padding: 12px 0; border-bottom: 1px solid #e0e7db; color: #2a6440; }
.checkout-actions { display: flex; gap: 9px; justify-content: flex-end; margin-top: auto; padding-top: 8px; }
.checkout-actions .primary-button { min-width: 170px; }
.orders-view { background: #fafbf8; }
.order-list { display: flex; flex-direction: column; gap: 12px; }
.order-card { padding: 16px; background: #fff; border-radius: 8px; border: 1px solid #dbe2d6; }
.order-card-header { display: flex; align-items: center; justify-content: space-between; gap: 9px; margin-bottom: 10px; font-size: 13px; }
.order-card-header h3 { margin: 0; font-size: 14px; }
.order-card-header time { font-size: 11px; color: #86907f; }
.order-items { font-size: 12px; color: #6b7864; line-height: 1.7; margin: 9px 0; }
.order-total { margin-left: auto; font-size: 15px; font-weight: 700; }
.order-status { display: inline-flex; align-items: center; gap: 5px; padding: 4px 7px; color: #587b4b; background: #edf6e7; border-radius: 4px; font-size: 10px; font-weight: 700; }
.kitchen-board { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 18px; overflow-y: auto; background: #f6f7f3; align-content: start; }
.kitchen-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 12px; }
.kitchen-filters button { min-height: 44px; }
.kitchen-filters .secondary-button { gap: 6px; padding: 8px 10px; background: var(--surface); }
.kitchen-filters .secondary-button[aria-pressed='true'] { background: var(--green-light); border-color: var(--green); color: var(--green-dark); }
.kitchen-filters .text-button { padding-inline: 8px; }
.kitchen-filter-summary { margin-inline-start: auto; font-size: 12px; font-variant-numeric: tabular-nums; }
.kitchen-column { display: flex; flex-direction: column; gap: 11px; min-width: 0; }
.kitchen-column > h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; color: #73816a; margin: 0 0 3px; }
.kitchen-card { padding: 13px; background: #fff; border: 1px solid #dce3d7; border-top: 4px solid #b7d49e; border-radius: 7px; font-size: 12px; line-height: 1.5; }
.kitchen-card h3, .kitchen-card h4 { margin: 0 0 7px; font-size: 14px; }
.kitchen-card .button { width: 100%; font-size: 11px; min-height: 34px; margin-top: 9px; }
.kitchen-station-tabs { display:flex; flex-wrap:wrap; gap:8px; margin:0 0 12px; }
.kitchen-station-column { grid-column:1/-1; }
.kitchen-station-cards { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(260px,100%),1fr)); gap:12px; }
.kitchen-step { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:9px 0; border-top:1px solid #e5eadf; }
.kitchen-step-summary { color:#61725b; border-top:1px solid #e5eadf; }
.kitchen-step-summary p { margin:6px 0; }
.pack-print-document { color:#202220; font:13px/1.45 ui-monospace,monospace; }
.pack-print-document h2 { margin:0 0 8px; font-size:18px; }
.pack-print-document h3 { margin:0 0 6px; font-size:13px; }
.pack-print-document p { margin:4px 0; }
.pack-print-round { margin-top:14px; padding-top:9px; border-top:1px solid #d4d7d3; }
.pack-print-round ul { padding-inline-start:20px; margin:0; }
.pack-print-round li { margin:6px 0; }
.pack-print-label { border:1px solid #aab0aa; padding:8px; margin:0 0 8px; break-inside:avoid; }
.pack-print-document .pack-print-template-text { white-space:pre-wrap; overflow-wrap:anywhere; }
.pack-print-graphic{margin:1mm 0;break-inside:avoid}
.pack-print-graphic img{max-width:100%;height:auto;vertical-align:top;image-rendering:pixelated}
.pack-print-graphic-center{text-align:center}
.pack-print-graphic-right{text-align:right}
.pack-paper-58, .pack-paper-80 { max-width:100%; margin-inline:auto; padding-inline:3mm; overflow-wrap:anywhere; }
.pack-paper-58 { width:58mm; }
.pack-paper-80 { width:80mm; }
.modal { width: min(550px, calc(100vw - 28px)); max-width: 550px; max-height: 90dvh; border: 0; padding: 0; border-radius: 11px; box-shadow: 0 20px 70px #15332340; color: var(--text); background: #fff; overflow: hidden; }
.modal::backdrop, .drawer::backdrop { background: #16271d60; backdrop-filter: blur(2px); }
.modal[open] { display: flex; flex-direction: column; }
.modal-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid #e2e7de; flex: 0 0 auto; }
.modal-header h2 { font-size: 19px; font-weight: 600; margin: 0; }
.modal-header p { color: #7b8576; font-size: 12px; line-height: 1.4; margin: 6px 0 0; }
.modal-body { padding: 20px; min-height: 0; overflow-y: auto; }
.modal-body > p { line-height: 1.55; color: #6e7b65; font-size: 13px; margin: 0 0 18px; }
.modal-body h3 { font-size: 12px; font-weight: 700; color: #56654e; margin: 17px 0 10px; }
.modal-body h3:first-child { margin-top: 0; }
.modal-body .field { margin-top: 16px; }
.modal-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 20px; background: #f8faf5; border-top: 1px solid #e0e7d9; flex: 0 0 auto; }
.price-preview { font-size: 23px; font-weight: 700; color: var(--green); white-space: nowrap; font-variant-numeric: tabular-nums; }
.price-preview small { display: block; font-size: 10px; font-weight: normal; color: #89907f; margin-bottom: 3px; }
.variant-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.option-button { min-height: 57px; padding: 10px 6px; background: #fff; border: 1.5px solid #dbe2d6; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; color: #53684a; font-size: 12px; font-weight: 700; }
.option-button small { font-size: 10px; font-weight: normal; }
.option-button.selected { background: #edf6e9; border-color: var(--green); color: var(--green); }
.extras-list { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.extra-option { display: flex; align-items: center; gap: 7px; min-height: 40px; padding: 9px; border: 1px solid #e2e8dc; border-radius: 5px; color: #53644b; font-size: 12px; cursor: pointer; }
.extra-option:hover { background: #f6f9f2; }
.extra-option:has(input:checked) { background: #edf6e7; border-color: #a6c99b; }
.extra-option input { margin: 0; width: 15px; height: 15px; flex: 0 0 auto; }
.extra-option span:last-child { margin-left: auto; font-size: 10px; color: #829176; white-space: nowrap; }
.drawer { position: fixed; inset: 0 auto 0 0; height: 100dvh; max-height: none; width: min(310px, 87vw); max-width: none; margin: 0; padding: 0; border: 0; border-radius: 0 11px 11px 0; box-shadow: 10px 0 60px #15332333; background: #fff; color: var(--text); overflow-y: auto; overscroll-behavior: contain; scroll-padding-top: 64px; }
.drawer > .modal-header { position: sticky; inset-block-start: 0; z-index: 1; background: var(--surface); }
.drawer-nav { display: grid; gap: 10px; padding: 8px 14px 16px; }
.drawer-group { display: grid; gap: 2px; padding-block: 8px; border-bottom: 1px solid var(--line); }
.drawer-group:last-child { border-bottom: 0; }
.drawer-group h3 { margin: 0 0 3px; padding-inline: 10px; font-size: 12px; color: var(--muted); font-weight: 700; }
.drawer-link { display: flex; gap: 10px; align-items: center; text-align: left; border: 0; background: #fff; min-height: 44px; padding: 9px 10px; color: #42613e; font-size: 13px; border-radius: 6px; }
.drawer-link:hover { background: #edf5e9; }
.drawer-link.active { background: var(--green-light); color: var(--green-dark); box-shadow: inset 3px 0 var(--green); font-weight: 700; }
.drawer-link:focus-visible { outline-offset: -2px; }
.drawer > [data-action='location-picker'] { justify-content: space-between; width: calc(100% - 28px); margin: 12px 14px 0; background: var(--surface-soft); border: 1px solid var(--line); }
.drawer-location { display: grid; gap: 2px; overflow-wrap: anywhere; }
.drawer-location small { color: var(--muted); }
.toast-container { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 10000; width: max-content; max-width: calc(100vw - 30px); display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast { display: flex; align-items: center; justify-content: center; gap: 9px; padding: 12px 19px; background: #35443b; color: #fff; border-radius: 7px; box-shadow: 0 5px 23px #1b2d2330; font-size: 13px; line-height: 1.4; animation: toast-in 160ms ease-out; }
.toast.success { background: #225e40; }
.toast .icon { width: 18px; height: 18px; }
.receipt-view { display: flex; flex-direction: column; align-items: center; background: #f5f7f1; gap: 12px; }
.receipt-view > .icon { width: 48px; height: 48px; color: #5a975c; }
.receipt-view h2 { font-size: 21px; margin: 4px 0; text-align: center; }
.receipt-view > p { margin: 0 0 10px; color: #77816d; font-size: 12px; }
.receipt-view > .receipt, .receipt-view > .receipt-content, .receipt-view > article { width: min(100%, 375px); padding: 23px; border: 1px solid #e0e5d9; border-radius: 5px; background: #fff; box-shadow: 0 2px 5px #3a472912; }
.receipt-line { display: flex; align-items: baseline; justify-content: space-between; gap: 15px; font-size: 12px; line-height: 1.5; padding: 6px 0; }
.receipt-line span:last-child { white-space: nowrap; font-variant-numeric: tabular-nums; }
.receipt-total { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 17px; font-weight: 700; padding: 16px 0 8px; border-top: 1px dashed #c7d1be; margin-top: 12px; }
.receipt-actions { display: flex; justify-content: center; gap: 8px; padding-top: 7px; flex-wrap: wrap; }
.hospitality-form { display: grid; gap: 14px; }
.hospitality-form p { margin: 0; }
.hospitality-print-modal { width: min(720px, calc(100vw - 28px)); max-width: 720px; }
.hospitality-preview { background: #eef2ef; }
.hospitality-sheet { padding: clamp(16px, 4vw, 30px); background: #fff; color: #17231b; border: 1px solid #ccd8ce; border-radius: 8px; overflow-wrap: anywhere; }
.hospitality-sheet h2 { margin: 8px 0; font-size: 23px; }
.hospitality-sheet h3 { margin: 16px 0 4px; font-size: 14px; }
.hospitality-sheet li { break-inside: avoid; }
.hospitality-details { display: grid; grid-template-columns: minmax(90px, auto) minmax(0, 1fr); gap: 6px 16px; margin: 16px 0; padding: 12px 0; border-block: 1px solid #ccd8ce; }
.hospitality-details dt { font-weight: 700; }
.hospitality-details dd { margin: 0; }
.hospitality-occasion { white-space: pre-wrap; }
.hospitality-signature { display: grid; grid-template-columns: 1fr 1.5fr; gap: 18px; margin-top: 35px; break-inside: avoid; }
.hospitality-signature span { border-top: 1px solid #526258; padding-top: 5px; font-size: 12px; }
@keyframes toast-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

@media (min-width: 1550px) {
  .workspace { grid-template-columns: minmax(0, 1fr) minmax(360px, 29%); }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(134px, 1fr)); }
}
@media (min-width: 701px) {
  .register-header .stats-bar { min-height: 44px; justify-content: space-between; font-size: 13px; gap: 19px; background: #efeeee; }
  .register-header .topbar { min-height: 66px; padding: 7px 0; gap: 8px; }
  .register-header .menu-toggle { width: 84px; color: #161a17; }
  .register-header .menu-toggle .icon { margin-right: auto; margin-left: 15px; }
  .register-header .mode-button { min-height: 43px; background: #e2e1e1; color: #505350; font-size: 13px; border-radius: 8px; padding-inline: 15px; }
  .register-header .mode-button.active { color: #fff; background: #155f50; }
  .workspace { grid-template-columns: minmax(0, 2.02fr) minmax(0, 1fr); }
  .catalog-panel-articles .category-list { grid-auto-flow: row; grid-template-columns: repeat(auto-fill,minmax(112px,122px)); grid-template-rows: none; grid-auto-rows: 52px; overflow-x: hidden; overflow-y: auto; max-height: 180px; gap: 12px 4px; padding-top: 2px; }
  .catalog-panel-articles .deposit-button { flex-basis: 122px; }
  .catalog-panel-articles .category-button { font-size: 12px; }
  .catalog-panel-articles .product-grid { grid-template-columns: repeat(auto-fill,minmax(96px,107px)); gap: 8px 4px; padding: 8px; }
  .catalog-panel-articles .product-name { font-size: 12px; }
  .cart-actions { grid-template-columns: repeat(3,min(20%,83px)); justify-content: end; }
  .customer-view { padding: 16px 8px; }
  .customer-form { gap: 13px; }
  .order-overview { padding: 8px; }
}
@media (max-width: 1150px) {
  .brand { font-size: 14px; gap: 5px; }
  .brand small { display: none; }
  .mode-button { padding: 10px 13px; font-size: 11px; }
  .topbar { gap: 8px; }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); }
  .customer-view, .table-view, .checkout-view, .orders-view, .receipt-view { padding: 18px; }
}
@media (max-width: 900px) and (min-width: 701px) {
  .workspace { grid-template-columns: minmax(0, 1fr) 33%; }
  .brand { display: none; }
  .cart-heading { padding-left: 10px; padding-right: 10px; }
  .cart-lines { padding: 0 10px; }
  .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 7px; }
  .product-tile { padding-inline: 4px; }
  .product-name { font-size: 11px; }
  .product-price { font-size: 10px; }
  .category-button { font-size: 10px; }
  .cart-footer { padding-inline: 9px; }
  .workflow-tab { padding: 12px 13px; font-size: 12px; }
  .deposit-button { flex-basis: 88px; }
  .form-grid { gap: 11px; }
  .payment-methods { gap: 7px; }
  .kitchen-board { padding: 12px; gap: 8px; }
}
@media (max-height: 760px) and (min-width: 701px) {
  .demo-bar { min-height: 24px; font-size: 10px; padding-top: 4px; padding-bottom: 4px; }
  .stats-bar { min-height: 27px; }
  .topbar { min-height: 54px; }
  .workflow-tabs { min-height: 46px; }
  .workflow-tab { padding-top: 10px; padding-bottom: 10px; }
  .category-list { grid-template-rows: repeat(2, 44px); row-gap: 6px; }
  .cart-action { min-height: 47px; }
  .cart-heading { padding-top: 8px; padding-bottom: 8px; }
}
@media (max-width: 700px) {
  html, body { min-height: 100%; height: auto; }
  #app { height: auto; min-height: 100dvh; }
  .app-shell { height: auto; min-height: 0; overflow: visible; padding: 6px 6px 7px; gap: 6px; }
  .demo-bar { margin: 0; font-size: 10px; min-height: 28px; }
  .stats-bar { min-height: 28px; gap: 16px; padding: 0 8px; font-size: 10px; }
  .topbar { min-height: 56px; padding: 6px; gap: 4px; border-radius: 6px; }
  .brand, .topbar-actions .demo-tag { display: none; }
  .menu-toggle { padding: 6px; }
  .mode-button { padding: 9px 12px; font-size: 11px; }
  .topbar-actions .icon-button { padding: 5px; }
  .workspace { display: flex; flex-direction: column; gap: 7px; overflow: visible; flex: 0 0 auto; }
  .catalog-panel { min-height: 450px; max-height: none; }
  .workflow-tabs { min-height: 47px; padding-top: 6px; gap: 6px; }
  .workflow-tab { padding: 11px 13px; font-size: 12px; }
  .catalog-toolbar { padding-top: 8px; }
  .deposit-button { flex-basis: 78px; font-size: 11px; }
  .category-list { grid-template-rows: repeat(2, 44px); grid-auto-columns: clamp(82px, 25vw, 118px); gap: 5px; padding-bottom: 7px; border-bottom-width: 5px; }
  .category-button { min-height: 44px; font-size: 10px; padding: 5px 3px; }
  .product-area { flex-direction: column; min-height: 310px; max-height: 435px; gap: 5px; }
  .quantity-pad { display: grid; grid-template-columns: repeat(6, minmax(44px, 1fr)); width: 100%; flex: 0 0 auto; }
  .quantity-keys { display: contents; }
  .quantity-button { font-size: 11px; }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 5px; gap: 5px; max-height: 435px; }
  .product-tile { padding-inline: 4px; }
  .product-name { font-size: 11px; }
  .product-price { font-size: 10px; }
  .cart-panel { min-height: 285px; overflow: visible; }
  .cart-actions { grid-template-columns: repeat(3, 1fr); }
  .cart-action { min-height: 48px; flex-direction: row; font-size: 11px; gap: 8px; }
  .cart-action .icon { height: 18px; width: 18px; }
  .cart-lines { max-height: 350px; min-height: 100px; }
  .cart-lines .empty-cart { min-height: 130px; padding: 16px; gap: 5px; }
  .empty-icon { width: 40px; height: 40px; margin-bottom: 2px; }
  .empty-icon .icon { width: 22px; height: 22px; }
  .empty-title { font-size: 12px; }
  .empty-description { font-size: 11px; max-width: 270px; }
  .customer-view, .table-view, .checkout-view, .orders-view, .receipt-view { overflow-y: visible; padding: 18px 14px; }
  .customer-view { min-height: 450px; }
  .customer-search { flex-wrap: wrap; }
  .customer-search input { flex-basis: 100%; }
  .kitchen-board { grid-template-columns: 1fr; padding: 14px; gap: 20px; overflow-y: visible; }
  .kitchen-filter-summary { flex-basis: 100%; margin-inline-start: 0; }
  .checkout-actions { flex-wrap: wrap; }
  .checkout-actions > button { flex: 1; }
  .modal { max-height: 92dvh; }
  .modal-header { padding: 13px 16px; }
  .modal-header h2 { font-size: 18px; }
  .modal-body { padding: 16px; }
  .modal-footer { padding: 13px 16px; }
  .modal-footer .primary-button { font-size: 12px; padding: 10px; }
  .extras-list { gap: 6px; }
  .extra-option { font-size: 11px; padding: 8px 6px; gap: 5px; }
  .toast-container { bottom: 15px; }
}
@media (max-width: 390px) {
  .register-header .register-more { display: none; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .workflow-tab { padding-left: 10px; padding-right: 10px; font-size: 11px; }
  .form-grid { grid-template-columns: 1fr; }
  .extras-list { grid-template-columns: 1fr; }
  .modal-footer { gap: 8px; }
  .price-preview { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
@media print {
  body:has(dialog[open]) > #app { display:none !important; }
  body:has(dialog[open]) > .modal { position:static; display:block; inset:auto; width:80mm; max-width:100%; max-height:none; margin:0 auto; padding:0; border:0; box-shadow:none; overflow:visible; }
  .modal[open] .modal-header, .modal[open] .modal-footer { display:none !important; }
  .modal[open] .receipt-view { display:block; padding:4mm; overflow:visible; max-height:none; }
  .pack-print-modal[open] .modal-body { padding:4mm; overflow:visible; max-height:none; }
  .pack-print-modal[open] .modal-body:has(.pack-paper-58, .pack-paper-80) { padding-inline:0; }
  body:has(dialog[open]) > .hospitality-print-modal[open] { width: 160mm; }
  .hospitality-print-modal[open] .hospitality-preview { max-height: none; overflow: visible; padding: 0; background: #fff; }
  .hospitality-sheet { border: 0; padding: 6mm; }
  body { background: #fff; }
  #app { display: block; height: auto; min-height: 0; }
  .demo-bar, .stats-bar, .topbar, .cart-panel, .workflow-tabs, .receipt-actions, .toast-container { display: none !important; }
  .app-shell, .workspace, .catalog-panel, .receipt-view { display: block; height: auto; min-height: 0; overflow: visible; padding: 0; margin: 0; background: #fff; }
  .receipt-view > article, .receipt-view > .receipt, .receipt-view > .receipt-content { border: 0; box-shadow: none; margin: 0 auto; }
}

.table-service-controls { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 8px 9px; background: #f5f8f2; border-bottom: 1px solid #dce5d4; }
.table-service-controls > button { min-width: 0; min-height: 36px; padding: 8px 7px; font-size: 11px; white-space: normal; }
.table-menu-course { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 12px; font-size: 12px; }
.table-menu-course select { width: auto; }
.menu-course-dispatch { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.menu-course-dispatch button { min-height: 44px; padding: 5px; white-space: normal; }
.table-overview-actions { display: flex; gap: 7px; align-items: center; flex-wrap: wrap; }
.table-overview-actions > button { font-size: 11px; padding: 9px 11px; }
.table-operation-banner { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex: 0 0 auto; padding: 9px 14px; background: #fff4da; border: 1px solid #ead8ac; border-radius: 7px; color: #8b7234; font-size: 11px; line-height: 1.45; }
.table-operation-banner button { min-height: 32px; padding: 7px 10px; font-size: 11px; white-space: nowrap; }
.table-service-modal { width: min(680px, calc(100vw - 28px)); max-width: 680px; }
.table-service-modal .modal-body > .info-card { margin-bottom: 17px; font-size: 12px; }
.table-service-modal .modal-body > .field { margin-top: 18px; }
.table-form-error { color: #a45d4b; background: #fff3ec; border: 1px solid #e7cfc1; border-radius: 6px; padding: 11px 13px; font-size: 12px; line-height: 1.5; margin-bottom: 15px; }
.table-split-lines { display: flex; flex-direction: column; gap: 8px; }
.table-split-line { display: grid; grid-template-columns: minmax(0, 1fr) 95px; align-items: center; gap: 17px; padding: 12px; background: #f8faf5; border: 1px solid #e0e8d8; border-radius: 6px; }
.table-split-line > span:first-child { min-width: 0; }
.table-split-line strong { display: block; color: #4d6940; font-size: 13px; line-height: 1.4; }
.table-split-line small { display: block; color: #8a9c7c; font-size: 10px; line-height: 1.5; margin-top: 5px; }
.table-split-quantity { display: flex; flex-direction: column; gap: 5px; }
.table-split-quantity > span { color: #7b936b; font-size: 10px; }
.table-split-quantity input { text-align: center; font-size: 16px; padding: 8px; min-height: 40px; width: 100%; }
.table-merge-list { display: flex; flex-direction: column; gap: 8px; }
.table-merge-option { display: flex; align-items: center; gap: 12px; padding: 13px; border: 1px solid #e0e8d8; border-radius: 6px; background: #fafcf7; cursor: pointer; }
.table-merge-option:has(input:checked) { border-color: #8caf79; background: #eff7e8; }
.table-merge-option input { accent-color: var(--green); width: 18px; height: 18px; flex: 0 0 auto; }
.table-merge-option strong { display: block; color: #567446; font-size: 12px; line-height: 1.4; }
.table-merge-option small { display: block; color: #8a9d79; font-size: 11px; margin-top: 6px; }
.table-operation-details { display: grid; grid-template-columns: minmax(105px, .7fr) minmax(0, 1.3fr); font-size: 12px; line-height: 1.5; gap: 11px 15px; margin: 17px 0 0; }
.table-operation-details dt { color: #91a17f; }
.table-operation-details dd { margin: 0; color: #547144; overflow-wrap: anywhere; }
.table-operation-list { display: flex; flex-direction: column; gap: 10px; }
.table-operation-list article { border: 1px solid #dfe8d5; padding: 15px; border-radius: 7px; background: #f9fcf5; }
.table-operation-list article > strong { color: #668551; font-size: 13px; }
.table-operation-list article > p { font-size: 11px; line-height: 1.45; color: #99a88a; margin: 9px 0 12px; }
.table-result-bills { display: flex; flex-direction: column; gap: 9px; }
.table-result-bill { display: flex; align-items: center; justify-content: space-between; gap: 15px; text-align: left; padding: 15px; min-height: 53px; background: #f5faf0; border: 1px solid #d6e5c8; border-radius: 7px; color: #52763e; font-size: 12px; line-height: 1.4; }
.table-result-bill:hover { background: #e9f4df; border-color: #a8c58f; }
.table-result-bill > span { color: #7c9669; font-size: 11px; text-align: right; }
.kitchen-context-note { border-left: 3px solid #d7bc72; background: #fff9eb; color: #91783b; padding: 9px 11px; border-radius: 0 5px 5px 0; line-height: 1.55; font-size: 11px; }
@media (max-width: 700px) {
  .table-service-controls { gap: 5px; padding: 7px; }
  .table-service-controls > button { font-size: 10px; min-height: 38px; padding: 7px 4px; }
  .table-view > .section-header { flex-wrap: wrap; }
  .table-operation-banner { align-items: flex-start; gap: 9px; flex-direction: column; padding: 9px 11px; }
  .table-operation-banner button { align-self: flex-end; }
  .table-split-line { grid-template-columns: minmax(0, 1fr) 73px; padding: 10px; gap: 12px; }
  .table-split-line strong { font-size: 12px; }
  .table-operation-details { font-size: 11px; grid-template-columns: 105px minmax(0, 1fr); gap: 10px; }
  .table-result-bill { padding: 12px; gap: 10px; }
  .table-result-bill > span { font-size: 10px; }
}
@media print { .table-service-controls, .table-operation-banner, .table-overview-actions { display: none !important; } }
.kitchen-tools,.kitchen-card-actions,.discount-presets,.print-downloads,.print-job-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.kitchen-card-actions{margin-top:18px}.kitchen-card-actions .primary-button{flex:1}
.kitchen-correction{border-left:5px solid #d79423}.kitchen-cancelled-line{color:#a53b2b;background:#fff0e8;padding:10px;border-radius:8px}
.discount-presets{margin-bottom:20px}.print-modal{width:min(880px,calc(100vw - 32px));max-width:880px}
.print-preview-frame{width:100%;height:430px;border:1px solid var(--border,#d7dfdf);border-radius:10px;background:white}
.print-status{font-weight:700}.print-downloads{padding:14px 0}.print-downloads a{color:#166d67;font-weight:600}
.print-job{display:flex;gap:18px;align-items:center;justify-content:space-between;border-bottom:1px solid #d7dfdf;padding:18px 0}.print-job p{margin:5px 0;color:#5e6f70}
@media(max-width:700px){.kitchen-tools{width:100%}.print-job{align-items:flex-start;flex-direction:column}.print-preview-frame{height:350px}.print-footer{flex-wrap:wrap}}
.checkout-vouchers { display: grid; gap: 9px; margin: 14px 0; padding: 13px 15px; background: #f2f4f1; border: 1px solid #d7ded9; border-radius: 12px; }
.checkout-vouchers .section-header { margin: 0; gap: 10px; align-items: center; }
.checkout-vouchers .change-row { margin: 0; padding: 8px 0 0; }
.checkout-redemption { display: grid; grid-template-columns: minmax(0,1fr) auto auto; gap: 12px; align-items: center; padding-top: 8px; border-top: 1px solid #d7ded9; }
.checkout-redemption > span { overflow-wrap: anywhere; }
.checkout-redemption small { display: block; color: #68716d; padding-top: 4px; }
.cart-adjustment{background:#f3f6ef;border-left:3px solid #8ea47b;padding-left:12px}.cart-adjustment .line-price{white-space:nowrap}.cart-adjustment .line-meta{font-size:10px;line-height:1.5}.cart-adjustment .line-controls{justify-content:flex-end}.checkout-adjustments{margin:14px 0;padding:13px 15px;border:1px solid #d9e2d1;border-radius:12px;background:#f7f9f4;display:grid;gap:10px}.checkout-adjustments .section-header{margin:0;gap:10px;align-items:center}.checkout-adjustments .muted{margin:0;font-size:12px;line-height:1.5}.adjustment-summary-lines{display:grid;gap:8px}.adjustment-summary-lines>div{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:12px;align-items:center;padding-top:9px;border-top:1px solid #dfe6d8}.adjustment-summary-lines small{display:block;color:#737f6a;margin-top:5px;font-size:11px}.adjustment-summary-lines strong{white-space:nowrap}.checkout-adjustments .change-row{margin:0}.adjustment-payout{border-color:#d6b785;background:#fff8e9}.adjustment-payout>strong{font-size:20px}.adjustment-payout p{font-size:13px;line-height:1.6;margin:10px 0 0}.adjustment-modal{width:min(690px,calc(100vw - 24px))}.adjustment-modal .modal-body{display:grid;gap:16px}.adjustment-form-fields{display:grid;gap:16px}.adjustment-reference{font-size:12px;line-height:1.6;background:#f3f6ef;border:1px solid #dfe6d7;border-radius:8px;padding:12px 14px;color:#5f7054}.adjustment-reference p{margin:6px 0 0}.adjustment-reference:empty{display:none}.adjustment-confirm{font-size:12px;line-height:1.6;align-items:flex-start}.adjustment-confirm input{margin-top:4px}.adjustment-manage-tools{display:flex;justify-content:flex-end}.adjustment-checkboxes{border:1px solid #d8e1d1;border-radius:8px;max-height:240px;overflow:auto;padding:4px 10px}.adjustment-checkboxes label{display:flex;gap:10px;align-items:center;padding:10px 0;border-bottom:1px solid #e5ebde;font-size:12px;line-height:1.5}.adjustment-checkboxes label:last-child{border-bottom:0}.adjustment-checkboxes input{width:17px;height:17px;flex-shrink:0}.adjustment-profiles{display:grid;gap:12px}.adjustment-profiles article{display:flex;gap:15px;align-items:center;justify-content:space-between;border:1px solid #dbe3d3;background:#f6f8f2;border-radius:9px;padding:14px}.adjustment-profiles article>div{min-width:0}.adjustment-profiles p{font-size:12px;line-height:1.5;margin:7px 0}.adjustment-profiles small{display:block;font-size:11px;color:#79876d;line-height:1.6;overflow-wrap:anywhere}
@media(max-width:600px){.checkout-adjustments,.checkout-vouchers{padding:12px}.checkout-adjustments .section-header{align-items:flex-start;flex-direction:column}.checkout-adjustments .section-header .secondary-button{width:100%;min-height:42px}.adjustment-profiles article{align-items:flex-start;flex-direction:column;gap:10px}.adjustment-profiles article>.secondary-button{align-self:flex-end}.adjustment-modal .modal-footer{flex-wrap:wrap}.adjustment-modal .modal-footer>button{flex:1}.adjustment-summary-lines>div{gap:8px;font-size:12px}.adjustment-reference{padding:11px}.adjustment-confirm{font-size:11px}}

.order-overview {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 12px 14px;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
}
.order-overview-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
}
.order-overview-heading .panel-heading { margin: 0; font-size: 18px; }
.order-overview-heading > div { display: flex; gap: 7px; }
.order-overview-heading button { min-height: 36px; padding: 8px 12px; }
.order-overview .order-overview-heading button { min-height: 42px; border-radius: 7px; }
.order-overview-filters { flex: 0 0 auto; }
.order-filter-line {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 8px;
  padding-bottom: 12px;
}
.order-filter-line + .order-filter-line { border-top: 1px solid var(--line); padding-top: 12px; }
.order-filter { display: grid; gap: 4px; min-width: 0; font-size: 12px; font-weight: 700; }
.order-filter input, .order-filter select { min-width: 0; width: 100%; height: 42px; border-radius: 7px; font-weight: 400; }
.order-filter-period { display: grid; grid-template-columns: minmax(126px, 1.2fr) minmax(100px, 1fr); gap: 6px; }
.order-filter-period input { padding-inline: 8px; font-variant-numeric: tabular-nums; }
.order-filter-search { flex: 1 1 240px; }
.order-filter-selects .order-filter { flex: 0 1 154px; }
.order-filter-today {
  min-height: 42px;
  padding: 8px 12px;
  border-radius: 7px;
  background: white;
  color: var(--green);
  border: 1.5px solid var(--green);
  font-weight: 700;
}
.order-filter-apply { min-height: 42px; border-color: #b7f4d8; border-radius: 7px; color: #183d32; background: #b7f4d8; }
.order-filter-apply:hover { border-color: #96dfbf; background: #96dfbf; }
.order-filter-selects > .text-button { min-height: 42px; }
.order-overview-results { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.order-overview-tabs {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  flex: 0 0 auto;
  border-bottom: 1px solid #bfc5bf;
}
.order-overview-tab {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 8px 10px;
  color: var(--text);
  background: #d0d0d0;
  border: 1px solid transparent;
  border-bottom: 0;
  border-radius: 7px 7px 0 0;
  font-size: 12px;
  font-weight: 700;
}
.order-overview-tab.active { background: white; border-color: #bfc5bf; color: var(--green); }
.order-overview-tab > strong { margin-right: 5px; font-variant-numeric: tabular-nums; }
.order-overview-table-wrap { overflow: auto; min-height: 0; flex: 1; }
.order-overview-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 12px; }
.order-overview-table th, .order-overview-table td { padding: 10px 8px; border-bottom: 1px solid #dfe3dd; vertical-align: top; }
.order-overview-table th { vertical-align: middle; }
.order-overview-table th { position: sticky; top: 0; z-index: 1; background: #fff; font-weight: 700; white-space: nowrap; }
.order-sort-button { padding: 0; border: 0; background: transparent; color: inherit; font: inherit; cursor: pointer; }
.order-sort-button:hover { text-decoration: underline; }
.order-overview-statistics { margin: 9px 0 0; padding: 9px 11px; background: #f3f5f1; border-radius: 6px; }
.order-overview-table td { overflow-wrap: anywhere; }
.order-overview-table td small { display: block; margin-top: 4px; color: var(--muted); }
.order-overview-table time { white-space: nowrap; }
.order-overview-row:hover, .order-overview-row.expanded { background: #f5f7f3; }
.order-overview-table th:nth-child(6), .order-amount-cell { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.order-amount-cell { font-weight: 700; }
.order-expand-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 5px 6px;
  color: var(--green);
  background: transparent;
  border: 0;
  font-weight: 700;
  text-align: left;
}
.order-expand-button:hover { background: var(--green-light); }
.order-overview-status { display: inline-block; color: #2c332f; overflow-wrap: normal; }
.order-overview-status::before { content: ''; display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: #9aa19d; vertical-align: 1px; }
.order-overview-status:is(.status-ready, .status-done, .status-released)::before { background: var(--success); }
.order-overview-status:is(.status-received, .status-cooking, .status-prepared)::before { background: #d39b22; }
.order-overview-status.status-scheduled::before { background: #7d5bb5; }
.order-overview-status:is(.status-refund, .status-refunded)::before { background: var(--danger); }
.order-overview-table td .order-overdue { color: #8a3b36; font-weight: 700; }
.order-actions-cell { min-width: 120px; }
.order-row-button { min-height: 35px; padding: 7px 9px; margin: 2px 4px 2px 0; white-space: nowrap; font-size: 12px; }
.order-overview-notice { margin: 9px 0 0; padding: 9px 11px; color: #694c18; background: #fff4dc; border-radius: 6px; }
.order-overview-empty td { padding: 32px 14px; color: var(--muted); text-align: center; }
.order-expanded-row { background: #f8f9f6; }
.order-expanded-content { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; padding: 3px 8px 8px; }
.order-expanded-items { margin: 7px 0 0; padding-left: 18px; }
.order-expanded-items li { padding: 4px 0; }
.order-expanded-facts { display: grid; grid-template-columns: minmax(70px, auto) 1fr; align-content: start; gap: 6px 10px; margin: 0; }
.order-expanded-facts dt { font-weight: 700; }
.order-expanded-facts dd { margin: 0; }
.order-unavailable { color: #854538; }
.preorder-control { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface-soft); }
.preorder-control time { display: block; margin-top: 4px; color: var(--green); }
.preorder-control button, .preorder-fields button, .location-targets button { min-height: 44px; }
.preorder-summary { color: var(--green); font-weight: 700; }
.preorder-fields, .location-targets { display: grid; align-content: start; gap: 10px; }
.preorder-fields p, .location-targets p { margin: 0; }
.preorder-fields > button { justify-self: start; }
.location-picker-button { max-width: 168px; overflow-wrap: anywhere; }
.location-stat { display: none; }
.location-targets > .info-card { display: grid; justify-items: start; gap: 8px; margin: 0; }
.preorder-release-time { display: block; color: var(--muted); }
.kitchen-preorders .location-targets { grid-template-columns: repeat(auto-fit, minmax(min(100%, 245px), 1fr)); margin-top: 14px; }
.order-overview-table .order-address-inline { display:none; }
@media (max-width: 920px) {
  .order-overview-table .order-address-cell { display: none; }
  .order-overview-table .order-address-inline { display:block; white-space:normal; overflow-wrap:anywhere; }
}
@media (min-width: 701px) and (max-width: 920px) {
  .order-overview-tabs { gap:5px; }
  .order-overview-tab { padding-inline:7px; }
}
@media (max-width: 700px) {
  .order-overview { overflow: visible; padding: 10px; }
  .topbar-actions .location-picker-button { display: none; }
  .location-stat { display: flex; }
  .order-overview-table-wrap { overflow: visible; }
  .order-overview-heading { align-items: flex-start; flex-wrap: wrap; }
  .order-overview-heading > div { margin-left: auto; }
  .order-filter-line { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .order-filter-period { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .order-filter-search { grid-column: 1 / -1; }
  .order-filter-today { justify-self: start; }
  .order-overview-table, .order-overview-table tbody, .order-overview-table td { display: block; }
  .order-overview-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .order-overview-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; padding: 10px; border-bottom: 1px solid #dfe3dd; }
  .order-overview-table td { padding: 0; border: 0; }
  .order-overview-table td[data-label]::before { display: block; margin-bottom: 3px; color: var(--muted); font-size: 10px; content: attr(data-label); }
  .order-overview-table time { white-space: normal; }
  .order-overview-row .order-amount-cell { text-align: left; }
  .order-actions-cell { grid-column: 1 / -1; }
  .order-row-button { min-height: 42px; }
  .order-overview-empty td { padding: 24px 8px; }
  .order-expanded-content { grid-template-columns: 1fr; padding: 10px; }
}

.drawer-nav a.drawer-link { text-decoration: none; border-radius: 6px; }
.app-shell + .demo-bar { justify-content: flex-start; color: #514127; background: #eee8dc; border: 0; border-top: 1px solid #cfc7b9; padding-block: 3px; min-height: 22px; }
.app-shell + .demo-bar .demo-tag { padding-block: 1px; }
.cart-footer .total-row > :last-child { font-size: 13px; }
.cart-footer > [data-action='cash-checkout']:disabled { opacity: 1; background: #e2e1e1; color: #626563; border-color: #e2e1e1; }
.cart-footer .footer-buttons { gap: 8px; }
.footer-buttons [data-action='discard']:not(:disabled) { color: #bd2f41; border-color: #cf4557; }
.cart-actions { border-bottom: 2px solid #c8c7c6; }
.register-header .location-stat { display: flex; }
.drawer { width: min(300px,87vw); border-radius: 0; }
.drawer::backdrop { background: #0009; backdrop-filter: none; }
.drawer[open] { display: flex; flex-direction: column; }
.drawer .drawer-heading { min-height: 70px; justify-content: flex-start; gap: 12px; padding: 10px 14px; border: 0; }
.drawer-close .icon { transform: rotate(180deg); }
.drawer-nav { display: flex; flex-direction: column; gap: 0; padding: 10px 12px; flex: 1; }
.drawer-group { display: block; padding: 0; border: 0; }
.drawer-group summary { display: flex; justify-content: space-between; align-items: center; min-height: 45px; padding: 8px 11px; font-size: 13px; font-weight: 700; cursor: pointer; }
.drawer-group summary h3 { margin: 0; padding: 0; color: inherit; font-size: inherit; }
.drawer-group summary::-webkit-details-marker { display: none; }
.drawer-group summary::after { content: '›'; font-size: 18px; }
.drawer-group[open] summary::after { transform: rotate(90deg); }
.drawer-group .drawer-link { width: 100%; color: #202420; padding-inline: 15px; }
.drawer-profile { display: flex; justify-content: space-between; align-items: center; gap: 10px; border-top: 1px solid var(--line); padding: 8px 14px; }
.order-overview .order-overview-tab { color: #202322; background: #c8c8c8; }
.order-overview[data-orders-home] > .panel-heading { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.order-overview .order-overview-tab.active { background: #fff; color: #202322; box-shadow: inset 0 3px var(--green); }
.order-overview .order-overview-tab > strong { color: var(--green); }
.order-filter-line .order-filter-clear { width: 42px; padding: 6px; color: #bd2f41; border-color: #bd2f41; }
.order-filter-selects { align-items: center; }
.order-filter-selects .order-filter { flex: 0 1 auto; }
.order-filter-selects select { border-color: transparent; color: #141714; font-weight: 700; }
.order-overview-table th, .order-overview-table td { border-bottom-color: #c9c9c8; }
.order-overview-table th { font-size: 14px; height: 48px; }
.table-selection h1 { margin: 0; }
.table-store { font-size: 13px; }
.table-store > h2 { font-size: 13px; margin: 0; padding: 16px 8px; border-bottom: 2px solid #c8c7c6; }
.table-store-body { padding: 8px; }
.table-store dl { display: grid; grid-template-columns: 1fr auto; row-gap: 12px; margin: 0; border-bottom: 1px solid #c8c7c6; padding: 4px 0 14px; }
.table-store dd { margin: 0; text-align: right; }
.staff-sale-picker .customer-options { margin-top: 8px; gap: 3px; }
.staff-sale-picker .customer-option { flex-direction: row; align-items: center; gap: 12px; padding: 11px 8px; background: white; border-color: transparent; border-bottom-color: #d2d1d0; border-radius: 0; }
.staff-sale-picker .customer-option:hover { background: #edf6ee; }
.staff-sale-picker .customer-option > span { min-width: 60px; font-variant-numeric: tabular-nums; }
.app-shell:has(.driver-terminal) { padding: 0; gap: 0; }
.app-shell:has(.driver-terminal) .register-header { display: none; }
.driver-terminal { background: var(--canvas); padding: 0; display: flex; flex-direction: column; }
.driver-terminal-header { display: flex; flex-wrap: wrap; align-items: stretch; flex-shrink: 0; min-height: 50px; background: #fff; border-bottom: 1px solid #c5c6c9; }
.driver-terminal-header h1 { align-self: center; margin: 0 12px; font-size: 16px; }
.driver-terminal-header .driver-terminal-menu { width: 65px; height: auto; border-right: 1px solid #d4d4d4; border-radius: 0; color: #222733; }
.driver-terminal-header nav { display: flex; flex-wrap: wrap; flex: 1; }
.driver-terminal-header .button, .driver-terminal-tab { min-height: 48px; }
.driver-terminal-tab, .driver-terminal-refresh { border: 0; border-right: 1px solid #c5c6c9; border-radius: 0; background: #fff; padding: 0 24px; color: #1f2429; font-weight: 600; }
.driver-terminal-tab[aria-pressed='true'] { color: var(--green); background: #f3f4f3; box-shadow: inset 0 -3px var(--green); }
.driver-terminal-refresh { border-right: 0; border-left: 1px solid #c5c6c9; padding-inline: 12px; }
.driver-terminal-workspace { flex: 1; min-height: 0; padding: 8px; }
.driver-terminal-panel { min-width: 0; min-height: 0; overflow: auto; border: 0; border-radius: var(--radius); background: #fff; }
.driver-terminal-panel h2 { margin: 0 0 12px; font-size: 16px; }
.driver-order-table { width: 100%; text-align: left; border-collapse: collapse; }
.driver-order-table th, .driver-order-table td { padding: 10px; border-bottom: 1px solid #e2e4e6; font-variant-numeric: tabular-nums; }
.driver-order-table th { position: sticky; top: 0; z-index: 1; height: 44px; color: #1d2420; background: #fff; border-bottom-color: #c9c9c8; font-size: 13px; }
.driver-order-table tbody tr:hover { background: #f5f6f5; }
.driver-order-table th:last-child, .driver-order-table td:nth-child(4) { text-align: right; }
.driver-order-table th:not(:nth-child(3)), .driver-order-table td:not(:nth-child(3)) { white-space: nowrap; }
.driver-order-table .driver-orders-empty { color: #69737a; padding: 18px 10px; }
.driver-order-select { text-align: left; color: var(--green-dark); font-weight: 700; background: transparent; border: 0; padding: 3px 0; text-decoration: underline; text-underline-offset: 2px; }
.driver-order-select[aria-expanded='true'] { font-weight: 700; }
.driver-order-green { box-shadow: inset 4px 0 #39824d; }
.driver-order-yellow { box-shadow: inset 4px 0 #c99317; }
.driver-order-red { box-shadow: inset 4px 0 #b3373e; }
.driver-order-details { white-space: normal; padding: 4px 8px; }
.driver-order-details p { margin-block: 6px; }
.driver-order-details .primary-button { margin-top: 8px; }
.driver-shift, .driver-tours { margin: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface-soft); }
.driver-shift p { margin: 0 0 8px; }
.driver-terminal-panel .statistics-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.driver-map { min-width: 0; min-height: 0; overflow: hidden; border-radius: var(--radius); background: #fff; }
.driver-map-google {
  display: grid;
  grid-template-rows: auto minmax(240px, 1fr);
  height: 100%;
  min-height: 330px;
}
.driver-map [hidden] { display: none; }
.driver-map-google-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  padding: 8px;
}
.driver-map-google iframe { display: block; width: 100%; height: 100%; border: 0; }
.driver-map:fullscreen, .driver-map-expanded { border-radius: 0; }
.driver-map .driver-map-surface { height: 100%; min-height: 330px; border-radius: 0; background-color: #e9ede7; cursor: grab; }
.driver-map-surface:active { cursor: grabbing; }
.driver-map-markers { position: absolute; inset: 0; pointer-events: none; }
.driver-map-marker { position: absolute; transform: translate(-50%,-50%); pointer-events: auto; background: #21567b; border: 2px solid white; border-radius: 50%; width: 32px; min-height: 32px; padding: 0; color: white; font-size: 12px; font-weight: 700; box-shadow: 0 1px 5px #28332f7a; }
.driver-map-marker.driver-map-store { width: auto; min-height: 26px; max-width: min(220px,55%); padding: 3px 8px; border-radius: 4px; background: #222733; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.driver-map-green { background: #237545; }
.driver-map-yellow { background: #a76e07; }
.driver-map-red { background: #a12b37; }
.driver-map-marker[aria-pressed='true'] { outline: 3px solid #184a70; outline-offset: 1px; z-index: 1; }
.driver-map-tools, .driver-map-fullscreen { position: absolute; top: 10px; z-index: 2; }
.driver-map-tools { left: 10px; right: 56px; display: flex; flex-wrap: wrap; }
.driver-map-fullscreen { right: 10px; }
.driver-map-tools button, .driver-map-fullscreen { min-height: 40px; border: 1px solid #d4d6d4; padding: 5px 14px; color: #555b58; background: #fff; font-size: 14px; box-shadow: 0 1px 4px #1d2b251f; }
.driver-map-fullscreen { padding-inline: 10px; color: #262b2b; }
.driver-map-tools button:first-child { border-radius: 4px 0 0 4px; }
.driver-map-tools button:last-child { border-radius: 0 4px 4px 0; }
.driver-map-tools button + button { margin-left: -1px; }
.driver-map-tools button[aria-pressed='true'] { color: #141714; font-weight: 700; }
.driver-map-surface .delivery-map-zoom { top: auto; bottom: 10px; z-index: 2; }
.driver-map-message { position: absolute; bottom: 22px; left: 10px; max-width: calc(100% - 76px); margin: 0; padding: 5px 8px; background: #fff; color: #2e3a36; border-radius: 3px; }
.driver-map-message:empty { display: none; }
.driver-map-expanded { position: fixed; inset: 0; z-index: 100; }
.driver-map:fullscreen { width: 100%; height: 100%; }
.tour-planning { display: flex; flex-direction: column; gap: 8px; padding: 8px; }
.tour-planning-header { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0; padding: 8px 10px; background: #fff; border-radius: var(--radius); }
.tour-planning-header h1 { margin: 0 8px 0 0; font-size: 16px; }
.tour-planning-header nav { display: flex; flex: 1; gap: 6px; }
.tour-planning-header button { min-height: 42px; }
.tour-planning-header [data-tour-tab] { min-width: 150px; background: #d0d0d0; border-color: transparent; color: #202322; }
.tour-planning-header button[aria-pressed='true'] { box-shadow: inset 0 -3px var(--green); }
.tour-planning-header [data-tour-tab][aria-pressed='true'] { background: #fff; border-color: var(--green); color: var(--green); }
.tour-planning-scroll { overflow-x: auto; border: 0; border-bottom: 1px solid var(--line); background: #fff; }
.tour-planning-table { min-width: 600px; }
.tour-planning-table th:last-child, .tour-planning-table td:nth-child(4) { text-align: left; }
.tour-planning-table th:nth-child(5), .tour-planning-table td:nth-child(5) { text-align: right; }
.tour-planning-table td:nth-child(4) { white-space: normal; }
.tour-planning-table th:last-child, .tour-planning-table td:last-child { overflow-wrap: anywhere; }
.tour-planning-table input { width: 19px; height: 19px; vertical-align: middle; accent-color: #146448; }
.tour-planning-table .tour-preorder { background-color: #fff2e4; }
.tour-planning-block { margin: 0; border: 0; border-bottom: 1px solid var(--line); }
.tour-planning-block summary { display: flex; align-items: center; min-height: 52px; padding: 8px 12px; background: #f1f1f0; font-weight: 700; cursor: pointer; }
.tour-planning-block[open] summary { border-bottom: 1px solid var(--line); }
#tour-planning-content > .tour-planning-actions:last-child { position: sticky; bottom: 0; z-index: 2; padding: 10px 12px; border-top: 1px solid var(--line); background: #fff; }
#tour-plan-submit { min-width: 150px; }
.tour-block-grip { display: inline-block; padding-inline: 4px 12px; cursor: grab; }
.tour-planning-block .tour-planning-scroll { border: 0; }
.tour-planning-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; padding: 8px 0; }
.tour-planning-block .tour-planning-actions { padding-inline: 8px; }
.tour-return-estimate { flex: 0 0 100%; }
.tour-bearing { display: inline-block; transform: rotate(var(--bearing)); }
.tour-driver-picker { display: grid; gap: 8px; margin-block: 10px; }
@media (min-width: 701px) {
  .order-overview .order-overview-filters { padding: 10px 0 0; }
  .order-filter-period { grid-template-columns: 146px 81px; }
  .workspace .customer-view { padding-inline: 8px; }
}
@media (max-width: 700px) {
  .order-filter-clear { justify-self: start; }
  .driver-terminal-workspace { grid-template-columns: 1fr; gap: 8px; padding: 8px; }
  .driver-terminal-tab, .driver-terminal-refresh { padding-inline: 8px; }
  .driver-terminal-header .driver-terminal-menu { width: 40px; }
  .driver-order-table { font-size: 12px; }
  .driver-order-table th, .driver-order-table td { padding: 7px 5px; }
  .driver-map .driver-map-surface { min-height: 300px; }
  .table-store { min-height: 0; }
}
.receipt-pickup-number {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
}
.receipt-pickup-number strong { font-size: 16px; }
.order-note-content { white-space: pre-wrap; overflow-wrap: anywhere; }
.kitchen-availability-list { margin-bottom: 14px; }
.kitchen-availability-row { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:8px 0; border-bottom:1px solid var(--border); }
.kitchen-availability-row small { display:block; margin-top:4px; }

.app-shell.kitchen-shell { padding: 0; gap: 0; background: #c7d0d6; }
.kitchen-shell > .register-header { display: none; }
.kitchen-monitor-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 20px;
  padding: 10px 16px;
  background: #233743;
  color: #fff;
}
.kitchen-monitor-header strong { display: block; font-size: 1.25rem; overflow-wrap: anywhere; }
.kitchen-monitor-header span { color: #e0eaf1; }
.kitchen-monitor-header [role="status"] {
  margin: 0;
  padding: 6px 10px;
  border-radius: 6px;
  background: #e1e8f0;
  color: #243947;
  font-weight: 700;
}
.kitchen-monitor-header [data-connection="online"] { background: #e1f5e7; color: #194a32; }
.kitchen-monitor-header [data-connection="offline"],
.kitchen-monitor-header [data-connection="forbidden"] { background: #ffdfa9; color: #612f13; }
.kitchen-monitor-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.kitchen-monitor-actions button { min-height: 44px; }
.kitchen-monitor [data-monitor-locked] { opacity: .55; cursor: not-allowed; }
.kitchen-shell > .kitchen-view {
  --kitchen-slate: #707a8e;
  --kitchen-text: #59667e;
  --kitchen-cyan: #22add7;
  --kitchen-lime: #779714;
  --kitchen-spacing: 8px;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 0;
  background: #c7d0d6;
  color: var(--kitchen-text);
}
.kitchen-shell > .kitchen-chooser {
  display: block;
  background: #6f788a;
  color: #fff;
  overflow: auto;
}
.kitchen-picker { max-width: 852px; padding: clamp(38px,14vh,150px) 22px 48px; margin: auto; }
.kitchen-picker h1 { font-size: clamp(36px,6vw,62px); font-weight: 400; margin: 0 0 20px; letter-spacing: -.04em; }
.kitchen-picker-overview, .kitchen-picker-production { display: grid; gap: 12px; grid-template-columns: repeat(2,minmax(0,1fr)); }
.kitchen-picker-production { grid-template-columns: repeat(4,minmax(0,1fr)); margin-top: 64px; }
.kitchen-picker .kitchen-station-choice {
  min-height: 50px;
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  background: transparent;
  color: #fff;
  padding: 10px 16px;
  border: 2px solid #929bac;
  border-radius: 15px;
  font: inherit;
}
.kitchen-picker-production .kitchen-station-choice { flex-direction: column; align-items: flex-start; justify-content: center; gap: 8px; min-height: 88px; background: #858fa3; border-color: transparent; }
.kitchen-picker-production .kitchen-station-choice .icon { color: #99edbb; }
.kitchen-picker-production .kitchen-station-pack .icon { color: #f8d077; }
.kitchen-picker .kitchen-station-choice:hover, .kitchen-picker .kitchen-station-choice:focus-visible { background: #798597; border-color: #def5ff; }
.kitchen-picker-options { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 44px; }
.kitchen-picker-options label { display: flex; align-items: center; gap: 10px; }
.kitchen-picker-options input { width: 20px; height: 20px; }
.kitchen-picker-options .text-button { color: #fff; }
.kitchen-view .kitchen-board, .kitchen-view .kitchen-station-cards {
  grid-template-columns: none;
  grid-auto-flow: column;
  grid-auto-columns: max(145px,calc((100% - (var(--kitchen-tiles) - 1) * var(--kitchen-spacing)) / var(--kitchen-tiles)));
  align-content: stretch;
  gap: var(--kitchen-spacing);
  padding: 4px;
  overflow: auto;
  background: #c7d0d6;
}
.kitchen-view .kitchen-board:has(> .kitchen-station-column) { display: flex; }
.kitchen-view .kitchen-station-column { width: 100%; flex: 1; gap: 4px; }
.kitchen-view .kitchen-station-cards { flex: 1; min-height: 0; padding: 0; }
.kitchen-view .kitchen-list, .kitchen-view .kitchen-list .kitchen-station-cards {
  display: grid;
  grid-auto-flow: row;
  grid-auto-columns: auto;
  grid-template-columns: minmax(0,1fr);
  align-content: start;
}
.kitchen-board-counts { display: flex; flex-wrap: wrap; gap: 14px; padding: 8px 12px; }
.kitchen-board-counts h2 { margin: 0; font-size: 14px; font-weight: 600; }
.kitchen-view .kitchen-empty { margin: 16px; color: #354154; }
.kitchen-view .kitchen-card {
  min-width: 0;
  min-height: min(58dvh,650px);
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 10px;
  background: #fff;
  color: var(--kitchen-text);
  font-size: 14px;
}
.kitchen-view .kitchen-font-small .kitchen-card { font-size: 12px; }
.kitchen-view .kitchen-font-compact .kitchen-card { font-size: 11px; }
.kitchen-view .kitchen-list .kitchen-card { display: grid; grid-template-columns: minmax(110px,19%) minmax(0,1fr) minmax(150px,25%); min-height: 0; }
.kitchen-ticket-head, .kitchen-ticket-footer { background: var(--kitchen-slate); color: #fff; padding: 10px; }
.kitchen-ticket-head { flex: 0 0 auto; min-height: 105px; }
.kitchen-ticket-head > div { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.kitchen-ticket-head > div strong { overflow-wrap: anywhere; }
.kitchen-ticket-head p { margin: 14px 0 0; text-align: center; }
.kitchen-ticket-head address { margin-top: 4px; text-align: center; font-style: normal; overflow-wrap: anywhere; }
.kitchen-order-arrows { display: flex; justify-content: space-between; gap: 6px; margin-top: 6px; }
.kitchen-order-arrow { width: 30px; height: 30px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: #b5bed0; color: #354258; }
.kitchen-order-arrow:hover { background: #e5edf7; }
.kitchen-order-arrow .icon { width: 17px; height: 17px; }
.kitchen-order-left .icon { transform: rotate(180deg); }
.kitchen-ticket-body { flex: 1; min-height: 0; overflow: auto; padding: 0 10px; }
.kitchen-ticket-body .order-items { color: inherit; font-size: inherit; margin: 0; }
.kitchen-ticket-body .kitchen-line, .kitchen-view .kitchen-step { padding: 10px 0; border-bottom: 1px solid #d6dee7; border-top: 0; }
.kitchen-ticket-body .kitchen-toppings { padding-left: 17px; margin: 2px 0 0; color: #52770f; list-style: '+  '; }
.kitchen-ticket-body .kitchen-context-note { background: #e9eef3; border: 0; color: #43506a; padding: 8px; border-radius: 5px; }
.kitchen-ticket-body .kitchen-step-summary { margin: 8px 0; padding: 5px 0; color: inherit; }
.kitchen-ticket-body .kitchen-step-summary summary { cursor: pointer; font-weight: 600; }
.kitchen-view .kitchen-correction .kitchen-ticket-head { background: #8c5c62; }
.kitchen-ticket-time { display: grid; gap: 5px; color: inherit; font-variant-numeric: tabular-nums; }
.kitchen-ticket-time > div { display: flex; justify-content: space-between; gap: 4px; font-size: .84em; }
.kitchen-ticket-time progress { width: 100%; height: 8px; accent-color: var(--kitchen-cyan); }
.kitchen-ticket-time progress.kitchen-time-overdue { accent-color: #fd3434; }
.kitchen-overdue { color: #bc2828; }
.kitchen-ticket-footer .kitchen-overdue { color: #ffe0dc; }
.kitchen-view .kitchen-card-actions { gap: 6px; margin-top: 8px; }
.kitchen-view .kitchen-start, .kitchen-view .kitchen-finish { width: 100%; min-height: 42px; text-transform: uppercase; font-weight: 700; border: 0; border-radius: 8px; }
.kitchen-view .kitchen-start { color: #101f30; background: #36bce5; }
.kitchen-view .kitchen-finish { color: #172000; background: #a0c52d; }
.kitchen-view .kitchen-start:hover, .kitchen-view .kitchen-finish:hover { filter: brightness(.94); }
.kitchen-view .kitchen-step-action { min-width: 88px; display: grid; gap: 5px; }
.kitchen-view .kitchen-step-action .primary-button { min-height: 34px; padding: 5px 8px; }
.kitchen-view .kitchen-unit-lines { display: grid; gap: 3px; padding: 0; margin: 0; list-style: none; }
.kitchen-view .kitchen-quantity-status { margin: 4px 0 0; font-size: .88em; }
.pack-print-cut { border-top: 1px dashed currentColor; text-align: center; }
@media print { .pack-print-cut { display: none; } }
.kitchen-view [data-action='kitchen-quantity'] { min-height: 34px; padding: 4px 8px; }
.kitchen-view .kitchen-pack-state { margin: 8px 0 0; font-weight: 700; }
.kitchen-view .kitchen-pack-mark { border: 1px solid #aab6c2; color: #9b3d41; background: #fff; }
.kitchen-view .kitchen-pack-mark.packed { color: #1e603c; background: #d6eee0; border-color: #8dc1a2; }
.kitchen-view .kitchen-fade-inactive .kitchen-inactive { opacity: .62; }
.kitchen-view .kitchen-station-tabs { margin: 2px 0; gap: 5px; }
.kitchen-view .kitchen-station-tabs button { min-height: 36px; padding: 6px 10px; }
.kitchen-footer { display: flex; align-items: end; gap: 8px; padding: 9px 10px; background: var(--kitchen-slate); color: white; }
.kitchen-footer-main { flex: 1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.kitchen-footer-end { display: flex; gap: 5px; margin-left: auto; }
.kitchen-footer-minimized { padding-block: 4px; }
.kitchen-footer-minimized .kitchen-footer-main { display: none; }
.kitchen-view .kitchen-footer .kitchen-tools, .kitchen-view .kitchen-footer .kitchen-filters { gap: 6px; margin: 0; }
.kitchen-control {
  display: inline-grid;
  place-items: center;
  position: relative;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: #29a9d2;
  color: #fff;
}
.kitchen-control .icon { width: 21px; height: 21px; }
button.kitchen-control:hover { background: #047897; }
.kitchen-control .kitchen-tool-count, .kitchen-view .kitchen-filters .pill { min-width: 19px; padding: 2px 4px; border-radius: 10px; color: #fff; background: #a42e38; text-align: center; font-size: 10px; }
.kitchen-control .kitchen-tool-count, .kitchen-control .pill { position: absolute; top: -3px; right: -4px; }
.kitchen-view .kitchen-filters .kitchen-control[aria-pressed='false'] { box-shadow: inset 0 0 0 1px #aab8cc; background: #586579; }
.kitchen-view .kitchen-filters [data-action='kitchen-filter-invert'], .kitchen-view .kitchen-filters [data-action='kitchen-filter-reset'] { min-height: 40px; background: #a95516; }
.kitchen-settings-dialog { width: min(800px,calc(100vw - 26px)); max-width: 800px; color: #46526c; }
.kitchen-settings-dialog .modal-header h2 { text-transform: uppercase; }
.kitchen-settings-dialog form { display: flex; flex-direction: column; min-height: 0; }
.kitchen-settings-body { display: grid; gap: 17px; }
.kitchen-settings-body .kitchen-setting-toggles { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px 24px; }
.kitchen-setting-toggle { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 31px; }
.kitchen-setting-toggle input { appearance: none; flex: 0 0 38px; height: 21px; border: 1px solid #98a7bd; border-radius: 14px; background: radial-gradient(circle at 10px center,#fff 7px,transparent 8px),#9ca7ba; }
.kitchen-setting-toggle input:checked { background: radial-gradient(circle at 26px center,#fff 7px,transparent 8px),#6c8d1d; }
.kitchen-settings-body fieldset { display: flex; flex-wrap: wrap; gap: 8px 15px; padding: 10px 0 0; border: 0; border-top: 1px solid #d5dce6; margin: 0; }
.kitchen-settings-body fieldset label { display: flex; gap: 5px; align-items: center; }
.kitchen-settings-body legend { font-weight: 700; }
.kitchen-settings-dialog .modal-footer .primary-button { background: #137b9b; border-color: #137b9b; }
@media (max-width: 700px) {
  .app-shell.kitchen-shell { flex: 1; height: calc(100dvh - 25px); overflow: hidden; }
  .kitchen-picker-production { grid-template-columns: repeat(2,minmax(0,1fr)); margin-top: 28px; }
  .kitchen-view .kitchen-board, .kitchen-view .kitchen-station-cards { grid-auto-columns: max(220px,85%); }
  .kitchen-view .kitchen-list .kitchen-card { display: flex; }
  .kitchen-footer { align-items: start; padding: 6px; }
  .kitchen-control { width: 35px; height: 35px; }
  .kitchen-view .kitchen-filters [data-action='kitchen-filter-invert'], .kitchen-view .kitchen-filters [data-action='kitchen-filter-reset'] { min-height: 35px; }
  .kitchen-settings-body .kitchen-setting-toggles { grid-template-columns: minmax(0,1fr); }
}

.incoming-call-card { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 8px 12px; }
.incoming-call-card p { margin: 0; }

.google-maps-attribution {
  display: inline-block;
  white-space: nowrap;
  color: var(--text, #1f1f1f);
  font-weight: 400;
  font-size: 0.8125rem;
}

#preorder-risk-alert:empty { display: none; }
.preorder-risk-overview { border-color: #e4ad96; }
.preorder-risk-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.preorder-risk-card p { margin: 4px 0 0; color: #8a351b; }
.preorder-risk-actions { flex-wrap: wrap; }

.half-pizza-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: 1rem;
}
#half-pizza-form fieldset {
  min-inline-size: 0;
  border: 1px solid var(--border, #ccd4d1);
  border-radius: .6rem;
  padding: .75rem;
}
#half-pizza-form legend { font-weight: 700; }

.topping-swap-fields { border: 1px solid var(--border, #ccd4d1); border-radius: .6rem; padding: .75rem; margin-block: .75rem; min-inline-size: 0; }
.topping-swap-fields legend { font-weight: 700; }

/* Shared order-bon hierarchy, matching the thermal print preview. */
.receipt-view .bon-merchant{font-size:22px;text-align:center;margin:4px 0}
.bon-order-header{display:grid;gap:12px;text-align:center;width:100%;padding:16px 0;border-top:1px dashed #87917e;border-bottom:1px dashed #87917e;font-family:ui-monospace,monospace}
.bon-order-header>strong{font-size:25px;line-height:1.3}.bon-order-header>small{font-size:12px}
.receipt-view .bon-payment-label{align-self:flex-start;margin:12px 0 0;color:inherit;font-weight:700}
.receipt-view .bon-allergens{text-align:center;color:inherit;border-top:1px dashed #87917e;padding-top:14px;margin:10px 0 0;line-height:1.6}
.bon-payment-status{text-align:center;font:700 23px/1.4 ui-monospace,monospace;border-block:1px dashed #87917e;padding:16px 0;width:100%;overflow-wrap:anywhere}
.receipt-view .bon-order-time{border-block:1px dashed #87917e;width:100%;padding:12px 0;color:inherit}

.bon-sheet{font-family:ui-monospace,monospace;color:#20251d}.bon-sheet>p,.bon-sheet>h3{text-align:center}.bon-sheet .receipt-fulfilment p,.bon-sheet .receipt-fulfilment{text-align:left}.bon-sheet .receipt-line{align-items:flex-start}.bon-sheet .receipt-line>span:first-child{min-width:0;overflow-wrap:anywhere}.bon-sheet .receipt-fulfilment{border-bottom:1px dashed #87917e;padding:14px 0}.bon-sheet .receipt-total{margin-bottom:12px;border-top:0}.bon-sheet .receipt-total>strong:last-child{border-top:2px solid currentColor}.bon-sheet .bon-payment-label{text-align:left}.bon-sheet .demo-tag{text-align:center;margin-bottom:14px}

.bon-sheet>.bon-category{text-align:left;font-weight:700;margin:18px 0 4px}

/* Bestellaktionen: feste, direkt erreichbare Symbolleiste je Zeile. */
.order-row-tools { display:grid; grid-template-columns:repeat(3,42px); justify-content:end; gap:6px; margin:0; }
.order-tool-button { display:inline-flex; align-items:center; justify-content:center; width:42px; min-width:42px; height:42px; padding:8px; border:1px solid #c9ccca; border-radius:6px; color:#262b28; background:#fff; cursor:pointer; }
.order-tool-button:hover { background:#f1f3f1; }
.order-tool-button .icon { width:22px; height:22px; }
.order-tool-danger { border-color:#ef6c6c; color:#fff; background:#f26464; }
.order-tool-danger:hover { background:#e04f4f; }
.order-tool-button:disabled { opacity:.4; cursor:default; }
.order-tool-button:focus-visible { outline:3px solid #154d72; outline-offset:2px; }
.order-overview-table .order-actions-cell { min-width:190px; }

.order-notes-button { display:block; min-height:36px; padding-inline:6px; }
.order-notes dt { font-weight:700; margin-top:12px; }
.order-notes dd { margin:4px 0 0; white-space:pre-wrap; overflow-wrap:anywhere; }
.order-related-receipts { margin-top:8px; }

/* Customer entry and order management */
.customer-entry { display: grid; gap: 12px; }
.customer-entry-panel {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.customer-entry-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.customer-entry-heading h2 { margin: 0; font-size: 15px; }
.customer-contact-fields, .customer-delivery-fields { display: grid; gap: 8px; }
.customer-contact-fields { grid-template-columns: repeat(auto-fit, minmax(min(100%, 145px), 1fr)); }
.customer-delivery-fields { grid-template-columns: repeat(12, minmax(0, 1fr)); }
.customer-delivery-fields > .field { min-width: 0; grid-column: span 8; }
.customer-delivery-fields > :is(.customer-houseNumber, .customer-postalCode) { grid-column: span 4; }
.customer-entry-panel > .customer-record-actions { margin-top: 10px; }
.order-overview[data-orders-home] > .panel-heading { position: static; width: auto; height: auto; clip-path: none; margin: 0; }
.order-revenue-toggle { min-height: 42px; }
.order-revenue-toggle[aria-pressed="true"] { background: #e7f1ea; border-color: var(--green); color: var(--green); }

/* Fahrerterminal und Tourplanung: Auftrags-/Tourliste links, große Karte rechts. */
.driver-terminal-workspace, .tour-planning-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  min-width: 0;
}
#tour-planning-content { min-width: 0; overflow: auto; border-radius: var(--radius); background: var(--surface); }
.tour-planning-workspace { flex: 1; min-height: 0; }
.tour-planning-workspace .driver-map[hidden] { display: none; }
.driver-map .delivery-map-credit { z-index: 2; left: 0; right: auto; }
@media (min-width: 960px) {
  .driver-terminal-workspace, .tour-planning-workspace { grid-template-columns: minmax(380px, .82fr) minmax(0, 1.18fr); align-items: stretch; grid-template-rows: minmax(330px, 1fr); }
  .tour-planning-workspace:has(.driver-map[hidden]) { grid-template-columns: minmax(0, 1fr); }
  .driver-terminal-workspace .driver-map, .tour-planning-workspace .driver-map { min-height: 330px; }
}
@media (max-width: 959px) {
  .tour-planning-workspace, .driver-terminal-workspace { grid-auto-rows: max-content; flex: 0 0 auto; }
  .driver-terminal-header { padding: 4px; }
}

/* Umschalter für Bestellart und Bestellzeitpunkt. */
.segmented-switch { display: inline-flex; align-items: stretch; gap: 2px; padding: 3px; border-radius: 24px; background: #d9d9d8; }
.segmented-switch .segment { min-width: 112px; min-height: 40px; padding: 8px 18px; border: 0; border-radius: 21px; background: transparent; color: #444a47; font-size: 14px; font-weight: 600; }
.segmented-switch .segment:hover:not(.active, :disabled) { background: #cdcecc; }
.segmented-switch .segment.active { color: #141714; background: #fff; font-weight: 700; box-shadow: 0 1px 3px #1d2b252e; }
.segmented-switch .segment.active:disabled { opacity: 1; cursor: default; }

/* Lieferung und Abholung: Kundendaten links, Bestellangaben und nächster Schritt rechts. */
.customer-topline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.customer-topline > .secondary-button { min-height: 42px; }
.customer-topline .customer-complaint-button { margin-left: auto; min-width: 140px; color: #09261b; background: var(--mint); border-color: var(--mint); }
.customer-topline .customer-complaint-button:hover { background: #48c97b; }
.delivery-customer-view .customer-form { gap: 14px; }
.delivery-customer-view .customer-entry { gap: 14px; }
.delivery-customer-view .customer-entry-panel { padding: 0 0 14px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; }
.delivery-customer-view .customer-entry-heading h2 { font-size: 17px; font-weight: 400; color: #2c3230; }
.delivery-customer-view .customer-entry-heading .secondary-button,
.delivery-customer-view .customer-record-actions .secondary-button { min-height: 40px; padding: 7px 12px; color: var(--green); background: #fff; border: 1.5px solid var(--green); }
.delivery-customer-view .customer-optional { border-color: var(--line); }
.order-brief { display: block; padding: 0; border-bottom: 0; }
.order-brief > h2 { margin: 0; padding: 14px 12px; font-size: 13px; border-bottom: 2px solid #c8c7c6; overflow-wrap: anywhere; }
.order-brief > section { padding: 12px; border-bottom: 1px solid #e1e1e0; }
.order-brief h3 { margin: 0 0 9px; font-size: 12px; }
.order-brief dl { display: grid; gap: 9px; margin: 0; font-size: 12px; }
.order-brief dl > div { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; }
.order-brief dt { flex: 0 0 auto; color: #3c423f; }
.order-brief dd { min-width: 0; margin: 0; text-align: right; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }

/* Warenkorb: Hauptaktion klar, Nebenaktionen als Kontur. */
.footer-buttons [data-action='checkout']:not(:disabled) { color: var(--green); background: #fff; border: 1.5px solid var(--green); }
.footer-buttons [data-action='checkout']:not(:disabled):hover { background: var(--green-light); }

/* Bestellübersicht: kompakte Filter, Statusreiter, Typkennzeichen und Zeilenaktionen. */
.order-reference-cell .order-expand-button { min-height: 32px; padding-inline: 2px; color: #1d2420; }
.order-type-badge { display: table; margin: 2px 0 6px 18px; padding: 1px 5px; border-radius: 3px; background: #e5e7e5; color: #2c332f; font-size: 10px; font-weight: 700; line-height: 1.5; letter-spacing: .03em; text-transform: uppercase; }
.order-type-delivery { background: #ffe18a; color: #4b3900; }
.order-type-pickup { background: #e2d5ff; color: #3e2673; }
.order-type-counter { background: #c9efd7; color: #154a33; }
.order-type-table { background: #d3e5f5; color: #173f63; }
.order-type-in_house { background: #f4dccb; color: #5c3014; }
.order-type-staff { background: #e5e7e5; color: #2c332f; }
.order-overview-table td:first-child { white-space: nowrap; }
.order-actions-cell { text-align: right; }
.order-actions-cell > .order-row-button { margin: 6px 0 0 6px; }
@media (min-width: 701px) {
  .order-filter-period .order-filter > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .order-filter-line:first-child { align-items: center; }
  .order-filter-selects { padding-top: 10px; }
}

/* Bezahlen: Summe, offener Betrag und Rückgeld; Zahlungswahl und Testabschluss getrennt. */
.checkout-test-notice { margin-top: -6px; }
.checkout-balance { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: -4px; }
.checkout-balance-tile { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; min-width: 0; padding: 10px 14px; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
.checkout-balance-tile > span { color: var(--muted); font-size: 12px; font-weight: 700; }
.checkout-balance-tile > strong { font-size: 22px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.checkout-balance-tile.is-open > strong { color: #a2401f; }
.checkout-balance-tile.is-settled > strong { color: var(--success); }
.checkout-balance-tile.is-change { border-color: #b9dcc7; background: var(--green-light); }
.checkout-balance-tile.is-change > strong { color: var(--green-dark); }
.checkout-step { display: grid; gap: 12px; padding: 0 14px 14px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.checkout-step:has(> .checkout-step-title:only-child) { display: none; }
.checkout-step-title { margin: 0 -14px; padding: 12px 14px; border-radius: 8px 8px 0 0; background: #f3f3f2; font-size: 13px; font-weight: 700; }
.checkout-step .tender-field > button, .checkout-step .cash-presets button { color: var(--green); background: #fff; border: 1.5px solid var(--green); }
.checkout-view .checkout-sticky-actions { gap: 10px; }
.checkout-sticky-actions > [data-action='back-order'] { color: var(--green); background: #fff; border: 1.5px solid var(--green); }
.checkout-sticky-actions > [data-checkout-finish] { min-width: 220px; color: #09261b; background: var(--mint); border-color: var(--mint); }
.checkout-sticky-actions > [data-checkout-finish]:hover:not(:disabled) { background: #48c97b; }
@media (max-width: 700px) {
  .checkout-balance { grid-template-columns: 1fr; }
  .checkout-sticky-actions > [data-checkout-finish] { min-width: 0; }
  .customer-topline .customer-complaint-button { margin-left: 0; }
  .segmented-switch .segment { min-width: 0; flex: 1; }
  .order-row-tools { grid-template-columns: repeat(auto-fill, 42px); justify-content: start; }
  .order-actions-cell { text-align: left; }
}

@media (min-width: 1150px) {
  .delivery-customer-view .customer-entry:has(.customer-delivery-fields) {
    grid-template-columns: minmax(225px, 2fr) minmax(0, 3fr);
    align-items: start;
    gap: 24px;
  }
  .delivery-customer-view .customer-entry:has(.customer-delivery-fields) .customer-contact-fields {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Artikeloptionen im linken Bereich statt Dialog (SIDES-Ablauf) */
.variant-panel { flex: 1; min-height: 0; overflow-y: auto; padding: 12px 16px 16px; display: flex; flex-direction: column; gap: 10px; }
.variant-panel h3 { margin: 6px 0 4px; font-size: 13px; }
.variant-title { margin: 0; font-size: 18px; }
.variant-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.variant-tile { min-height: 52px; padding: 6px; border: 2px solid transparent; border-radius: 7px; background: #e9e9e9; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: #262626; font-size: 12px; font-weight: 700; text-align: center; overflow-wrap: anywhere; }
.variant-tile small { font-size: 11px; font-weight: 400; }
.extra-tiles .variant-tile { background: color-mix(in srgb, var(--tile-color, #f8df94) 59%, white); }
.variant-tile.selected { border-color: var(--green); background: #edf6e9; color: var(--green); }
.variant-preview .variant-preview-head { display: flex; justify-content: space-between; gap: 12px; padding: 16px; border-bottom: 1px solid #e5e5e5; font-size: 16px; }
.variant-preview .cart-lines .line-main { display: flex; justify-content: space-between; padding: 6px 16px; font-size: 13px; }
.variant-preview .cart-footer { display: grid; gap: 8px; }
.variant-preview .danger-outline { color: #ff5c5c; border: 2px solid #ff5c5c; background: #fff; }
.keyboard-help td { padding: 6px 10px; }
.keyboard-help kbd { display: inline-block; min-width: 44px; padding: 3px 8px; border: 1px solid #ccd0ca; border-radius: 6px; background: #f4f4f4; font-weight: 700; text-align: center; }
.variant-tile { position: relative; }
.extra-count { position: absolute; top: 4px; right: 6px; padding: 1px 6px; border-radius: 999px; background: var(--green); color: #fff; font-size: 11px; }
.variant-preview .variant-extra { align-items: center; }
.variant-preview .variant-extra > :nth-child(2) { margin-left: auto; margin-right: 8px; }
.variant-preview .variant-extra .icon-button { min-height: 30px; min-width: 30px; padding: 0; }
.extra-count-option input { width: 64px; margin-left: auto; }
/* Vorbestellung als Kacheln (SIDES) */
.preorder-picker h3 { margin: 4px 0 6px; font-size: 13px; }
.preorder-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.preorder-clock { display: grid; grid-template-columns: 1fr auto; gap: 16px; margin-top: 8px; }
.preorder-hours { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.preorder-minutes { display: grid; grid-template-columns: 52px; gap: 6px; }
.preorder-tile { min-height: 36px; padding: 4px; border: 1.5px solid var(--green); border-radius: 6px; background: #fff; color: #262626; font-size: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.preorder-tile small { font-size: 11px; }
.preorder-tile.selected { background: var(--green); color: #fff; }
.preorder-tile:disabled { border-color: #d0d0d0; background: #d0d0d0; color: #777; }
.preorder-footer { display: flex; gap: 8px; }
.preorder-footer > :first-child { margin-right: auto; }
/* Abschluss in Spalten wie SIDES: Kundendaten/Notizen | Zahlung (Positionen stehen rechts im Warenkorb) */
.checkout-columns { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 16px; align-items: start; }
.checkout-col { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.checkout-notes { display: grid; gap: 10px; }
.checkout-notes .textarea { min-height: 84px; }
@media (max-width: 1100px) { .checkout-columns { grid-template-columns: minmax(0, 1fr); } .checkout-col-pay { order: -1; } }
.checkout-columns .checkout-col-pay .payment-methods { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.checkout-columns .checkout-col-pay .cash-input { font-size: 20px; }
.checkout-columns .checkout-col-pay .payment-method { white-space: normal; }
.checkout-newsletter { display: grid; gap: 6px; }

/* SIDES-Bestellübersicht: Mehrfachauswahl mit Häkchen */
.order-filter-multi{position:relative}
.order-filter-multi summary{list-style:none;cursor:pointer;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:220px}
.order-filter-multi summary::-webkit-details-marker{display:none}
.order-filter-options{position:absolute;z-index:20;top:calc(100% + 4px);left:0;min-width:200px;display:grid;gap:6px;padding:10px;background:var(--surface,#fff);border:1px solid var(--line,#d6d3cf);border-radius:8px;box-shadow:0 8px 24px rgb(0 0 0/.12)}
.order-filter-options label{display:flex;align-items:center;gap:8px;white-space:nowrap}
.order-filter-options label{justify-content:flex-start;min-height:32px;font-weight:500}
.order-filter-options input[type="checkbox"]{width:18px;height:18px;min-width:18px;min-height:0;flex:none;margin:0;padding:0;accent-color:var(--accent,#1f5e4a)}
/* Schmale Bildschirme: Auswahlliste im Fluss statt überlagert, damit nichts seitlich herausragt. */
@media (max-width:600px){.order-filter-options{position:static;min-width:0;margin-top:4px;box-shadow:none}.order-filter-multi summary{max-width:none}}
.tour-vehicle-type-image { width: 32px; height: 32px; object-fit: contain; vertical-align: middle; margin-right: 6px; }

/* SIDES-Abgleich (Anordnung/Ablauf, eigene Gestaltung) */
/* Kundendaten: Suche zuerst und breit, Bestellart darunter; Umschalter mit 44-px-Trefferfläche. */
.customer-topline .customer-search-trigger { flex: 1 1 260px; justify-content: flex-start; min-height: 44px; color: #6b7468; font-weight: 500; background: #fff; border: 1px solid #c9cfc6; }
.customer-topline > .secondary-button { min-height: 44px; }
.customer-channel-switch { display: flex; width: fit-content; margin-top: 10px; }
.segmented-switch .segment { min-height: 44px; }
/* Warenkorbposition: Menge, Papierkorb, ⋮ – Menü klappt unter der Zeile auf. */
.line-controls .remove-line { margin-left: auto; }
.line-menu { display: grid; gap: 2px; margin: 6px 0 0 auto; width: min(220px, 100%); padding: 4px; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: 0 8px 20px rgb(21 51 35 / .12); }
.line-menu-item { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 12px; border: 0; border-radius: 6px; background: transparent; color: var(--text); font-size: 14px; font-weight: 600; text-align: left; }
.line-menu-item:hover, .line-menu-item:focus-visible { background: var(--green-light); }
.line-menu-item .icon { width: 18px; height: 18px; }
/* Fußleiste: Barzahlung als Hauptweg breit, Kartenzahlung schmal daneben. */
.cart-payment-shortcuts { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
/* Abschluss: Positionen links (schmal), Kundendaten/Notizen in der Mitte, Zahlung rechts. */
@media (min-width: 1000px) { .workspace.workspace-checkout { grid-template-columns: minmax(230px, 22%) minmax(0, 1fr); } }
/* Schmaler: Positionen wieder rechts bzw. unter der Zahlung, damit der Abschluss Platz behält. */
@media (max-width: 999px) {
  .workspace-checkout > .cart-panel { order: 1; }
  .checkout-view .checkout-sticky-actions { flex-wrap: wrap; }
  .checkout-sticky-actions button { flex: 1; min-width: 130px; }
  .checkout-sticky-actions > [data-checkout-finish] { min-width: 0; }
  .checkout-sticky-actions .checkout-print-option { flex: 1 1 45%; order: -1; justify-content: flex-start; }
}
.workspace-checkout .checkout-columns .checkout-col-pay .payment-methods { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
/* Vorbestellung: Fußleiste bleibt bei 800 px Höhe sichtbar, der Kachelbereich scrollt. */
#preorder-schedule-form { display: flex; flex-direction: column; min-height: 0; flex: 1 1 auto; }
#preorder-schedule-form > .modal-body { flex: 1 1 auto; }
.preorder-days .preorder-tile, .preorder-footer button { min-height: 44px; }
/* Schmal (Seite scrollt statt Panel): Abschlussleiste am Fensterrand halten. overflow:clip statt hidden, damit das Panel kein Scroll-Bezug für sticky wird. */
@media (max-width: 700px) {
  .workspace-checkout > .catalog-panel { overflow: clip; }
  .checkout-view .checkout-sticky-actions { bottom: 0; padding-bottom: max(14px, env(safe-area-inset-bottom)); }
}

/* Pizza-Kasse: Scrollflächen und Abschlussaktionen auch bei wenig Platz erreichbar halten. */
@media screen {
  .pizza-register :is(.customer-view, .cart-lines, .checkout-view, .variant-panel, .product-grid, .quantity-keys) {
    scrollbar-width: thin;
    scrollbar-color: #879a90 transparent;
  }

  .pizza-register .cart-panel-customer > .cart-lines { padding-inline: 0; }
  .pizza-register .cart-panel-customer .cart-line { margin-inline: 12px; }
  .pizza-register .cart-lines:focus-visible { outline-offset: -3px; }
  .pizza-register .cart-footer { flex-shrink: 0; background: var(--surface); }
  .pizza-register .checkout-sticky-actions { scroll-margin-bottom: 12px; }

  body:has(.pizza-register) .modal > form:has(> .modal-body) {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }

  body:has(.pizza-register) .modal-body {
    scrollbar-width: thin;
    scrollbar-color: #879a90 transparent;
  }
}

@media screen and (min-width: 701px) and (max-height: 600px) {
  .pizza-register .workspace {
    grid-auto-rows: minmax(460px, 1fr);
    overflow-y: auto;
    scrollbar-width: thin;
  }

  .pizza-register .cart-footer {
    max-height: 62%;
    overflow-y: auto;
    scrollbar-width: thin;
  }

  .pizza-register :is(.cart-lines, .product-grid, .quantity-keys) { overscroll-behavior-y: auto; }
  .pizza-register .catalog-panel-articles .category-list { max-height: 132px; }
}

@media screen and (max-width: 700px) {
  .pizza-register .product-area,
  .pizza-register .product-grid,
  .pizza-register .cart-lines {
    min-height: 0;
    max-height: none;
    overflow-y: visible;
    overscroll-behavior-y: auto;
  }

  .pizza-register .workflow-tabs { gap: 4px; }
  .pizza-register .workflow-tab { padding-inline: 7px; min-width: 0; }
  .pizza-register .checkout-columns .checkout-col-pay .payment-methods {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
  }
}

/* SIDES upsellingChoiceAsOverlay: Menü-Upgrade-Abfrage, Touchziele mindestens 44 px */
.menu-upgrade-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.menu-upgrade-actions button { min-height: 44px; flex: 1 1 180px; }

/* SIDES-Abgleich 2 (27.11.2026): Ablauf Kundendaten → Bestellart, Fußleiste gestapelt. Eigene Farben. */
.sides-customer-search .customer-topline { flex-wrap: nowrap; }
.customer-topline .customer-new-button, .customer-topline .quick-pickup-button { min-height: 44px; min-width: 150px; }
.customer-topline .customer-new-button { color: var(--green); background: #fff; border: 1.5px solid var(--green); }
.quick-pickup-form { display: grid; gap: 10px; }
.quick-pickup-topline { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.quick-salutation { display: flex; gap: 16px; margin: 0; padding: 0; border: 0; }
.quick-radio { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 14px; cursor: pointer; }
.quick-radio input { width: 18px; height: 18px; accent-color: var(--green); }
.customer-channel-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.customer-channel-row .customer-channel-switch { margin-top: 0; }
.customer-channel-row .store-change-button { min-height: 44px; }
.customer-summary-title { margin: 16px 0 6px; font-size: 16px; font-weight: 500; }
.customer-summary-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 24px; margin-bottom: 12px; }
.customer-summary-grid dl { margin: 0; }
.customer-summary-grid dl > div { display: flex; gap: 6px; font-size: 13px; line-height: 1.6; }
.customer-summary-grid dd { margin: 0; overflow-wrap: anywhere; }
.sides-footer-buttons { grid-template-columns: minmax(0, 1fr); }
.footer-buttons .footer-back:not(:disabled) { color: #bd2f41; background: #fff; border: 1.5px solid #cf4557; }
.cart-footer .footer-buttons button, .cart-payment-shortcuts button { min-height: 44px; }
.store-list { display: grid; gap: 2px; margin: 10px 0 0; padding: 0; list-style: none; }
.store-option { display: grid; gap: 2px; width: 100%; min-height: 48px; padding: 10px 12px; border: 0; border-radius: 6px; background: var(--green-light); color: var(--text); text-align: left; font-size: 14px; }
button.store-option:hover, button.store-option:focus-visible { background: #dcebe3; }
.store-option.is-disabled { background: #f3f3f1; color: #6b7468; }
.store-option.is-disabled span { font-size: 12px; }
.customer-cart-footer .primary-button:hover { background: #48c97b; border-color: #48c97b; }
.store-dialog + .modal-footer { justify-content: flex-end; }
.store-dialog-summary { margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 13px; }
/* Storeübergreifende Portalregeln: Hinweis / Arbeitsauftrag an Portal- und Webshopbestellungen. */
.order-portal-alert { display: block; color: #6b4a00; font-weight: 600; }
.order-portal-alert.portal-task { color: #854538; }
