/* Ordering-only layout: category selector is a tall rail at the left of the goods. */
.order-layout { grid-template-columns: 152px minmax(0, 1fr) 340px; }
.category-rail { align-self: start; position: sticky; top: 76px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 10px; }
.category-rail-title { padding: 5px 7px 10px; color: var(--muted); font-size: 13px; font-weight: 700; }
.category-rail .category-tabs { display: flex; flex-direction: column; overflow: visible; padding: 0; gap: 6px; }
.category-rail .category-tabs button { width: 100%; text-align: left; padding: 10px; border-radius: 10px; }
.dining-mode { display: flex; align-items: center; gap: 8px; padding: 11px 12px; margin: 0 0 14px; background: #fff5e8; border: 1px solid #eccb95; border-radius: 13px; font-weight: 800; }
.dining-mode span { margin-right: auto; color: #79501c; }
.dining-mode button { padding: 9px 16px; border: 1px solid #d8b779; background: #fff; border-radius: 9px; font-weight: 800; }
.dining-mode button.active { background: #b56b16; color: #fff; border-color: #b56b16; }
.kitchen-mode { display: inline-block; vertical-align: middle; margin-left: 8px; padding: 6px 12px; border-radius: 8px; background: #e5f3eb; color: var(--green); font-size: 18px; }
.kitchen-mode.takeaway { background: #fff0dc; color: #a25100; }
.cart-toggle { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 2px 0 12px; color: var(--ink); background: transparent; text-align: left; }
.cart-toggle span { display: grid; gap: 3px; }
.cart-toggle b { font-size: 18px; }
.cart-toggle strong { color: var(--green); white-space: nowrap; font-size: 14px; }

@media (max-width: 760px) {
  /* Mobile keeps the category selector vertical so staff can switch groups with one thumb. */
  .order-layout { grid-template-columns: 94px minmax(0, 1fr); gap: 8px; align-items: start; }
  .category-rail { position: sticky; top: 8px; max-height: calc(100dvh - 16px); overflow-y: auto; border-radius: 12px; padding: 6px; background: #fff; }
  .category-rail-title { display: block; padding: 4px 3px 7px; font-size: 11px; text-align: center; }
  .category-rail .category-tabs { flex-direction: column; overflow: visible; padding: 0; gap: 5px; }
  .category-rail .category-tabs button { width: 100%; min-height: 56px; padding: 7px 5px; white-space: normal; text-align: center; line-height: 1.25; font-size: 13px; }
  .cart-toggle { min-height: 48px; padding: 7px 4px 11px; }
  .summary-row { grid-template-columns: repeat(2, 1fr); }
  .summary-row .stat:last-child { display: none; }
  .dining-mode { margin-bottom: 12px; }
  .dining-mode { padding: 9px; gap: 5px; flex-wrap: wrap; }
  .dining-mode span { width: 100%; }
  .dining-mode button { flex: 1; padding: 8px 9px; }
  .kitchen-mode { font-size: 15px; padding: 4px 7px; }
}
