/* 2026 service UI: a compact restaurant work surface with orange actions. */
:root {
  --ink: #1d3027;
  --muted: #526458;
  --green: #1e5037;
  --deep: #142f23;
  --cream: #f6f3e9;
  --paper: #fffdf7;
  --line: #d6ddcf;
  --accent: #f4bd63;
  --red: #a13f32;
  --action: #e8793e;
  --action-hover: #f3975f;
  --action-ink: #a7441c;
  --action-soft: #fff0e6;
}

body {
  background: var(--cream);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--accent); color: var(--deep); }
a { color: var(--action-ink); text-underline-offset: 3px; }
a:hover { color: #792e12; }
button, .button-link, .add-item, .mobile-cart-link {
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
button, .button-link {
  min-height: 44px;
  border-radius: 8px;
  background: var(--action);
  color: var(--deep);
  font-weight: 750;
}
button:hover, .button-link:hover { background: var(--action-hover); color: var(--deep); }
button:disabled { background: #d7d8cb; color: #667266; }
.secondary, .quiet { background: var(--action-soft); color: var(--action-ink); }
.secondary:hover, .quiet:hover { background: #ffd9c2; color: #792e12; }
.link-button, .link-button:hover { min-height: 0; background: none; color: var(--action-ink); }
input[type="checkbox"], input[type="radio"] { accent-color: var(--action-ink); }
input, select, textarea {
  min-height: 44px;
  background: #fffefa;
  border-color: #bfcbbd;
  border-radius: 8px;
}
textarea { min-height: 82px; }
input::placeholder, textarea::placeholder { color: #65756a; opacity: 1; }
input:focus-visible, select:focus-visible, textarea:focus-visible,
button:focus-visible, a:focus-visible, summary:focus-visible {
  outline: 3px solid #d9783e;
  outline-offset: 3px;
}

/* The dark masthead is the one persistent brand surface. */
.topbar {
  min-height: 80px;
  padding: 0 clamp(20px, 3vw, 72px);
  gap: clamp(22px, 2vw, 38px);
  background: var(--deep);
  border-bottom: 3px solid var(--action);
}
.topbar .brand { font-size: 22px; font-weight: 700; letter-spacing: -.025em; }
.topbar .brand-mark { color: var(--action); }
.topbar .brand:hover { color: #ffbc91; text-decoration: none; }
.topbar nav { gap: clamp(16px, 1.5vw, 27px); }
.topbar nav a { color: #ffd3b9; font-size: 13px; font-weight: 700; border-bottom-width: 3px; }
.topbar nav a.selected { color: #ffbc91; border-color: var(--action); }
.topbar nav a:hover { color: #fff0e6; }
.topbar .link-button { color: #ffd3b9; white-space: nowrap; }
.topbar .link-button:hover { color: #fff0e6; }
.flash { background: #e5eedf; color: var(--deep); font-weight: 700; }

/* Guest menu: the food and the order controls start higher in the viewport. */
.customer { max-width: 1480px; padding: 0 clamp(16px, 3vw, 56px) 80px; }
.customer-head {
  min-height: 0;
  padding: 36px clamp(28px, 4vw, 56px) 40px;
  border-radius: 0 0 12px 12px;
  background: var(--deep);
}
.customer-head h1 {
  max-width: 820px;
  margin: 12px 0 12px;
  font-size: 56px;
  line-height: 1.04;
  letter-spacing: -.03em;
}
.customer-head h1 em { color: var(--accent); }
.customer-head .table-label { color: var(--accent); font-size: 12px; }
.customer-head p:last-child { max-width: 560px; color: #e2ebe1; }
.customer-grid {
  grid-template-columns: minmax(0, 1fr) minmax(310px, 350px);
  gap: clamp(28px, 3vw, 48px);
  padding-top: 30px;
}
.customer .section-heading { margin-bottom: 18px; }
.customer .section-heading h2 { font-size: 31px; }
.customer .section-heading p { font-size: 14px; }
.category-nav { gap: 8px; padding-bottom: 13px; border-bottom: 1px solid var(--line); }
.category-nav a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  border-color: #dc9b79;
  border-radius: 7px;
  color: var(--action-ink);
  font-size: 14px;
  font-weight: 700;
}
.category-nav a[aria-current="page"] {
  background: var(--action);
  border-color: var(--action);
  color: var(--deep);
}
.category-nav a:hover { background: var(--action-soft); border-color: var(--action); color: var(--action-ink); }
.category-nav a[aria-current="page"]:hover {
  background: var(--action-hover);
  border-color: var(--action-hover);
  color: var(--deep);
}
.menu-section { padding-top: 21px; }
.menu-section h3 { font-size: 26px; padding-bottom: 12px; border-bottom: 2px solid var(--deep); }
.menu-item { gap: 18px; padding: 20px 0; }
.item-copy { min-width: 0; }
.item-copy h4 { font-size: 18px; font-weight: 750; }
.item-copy p { max-width: 55ch; margin: 6px 0 9px; }
.item-copy strong { color: var(--deep); font-size: 18px; font-weight: 800; }
.item-side img { width: 116px; height: 92px; }
.add-item {
  min-height: 44px;
  min-width: 84px;
  padding: 8px 13px;
  background: var(--action);
  color: var(--deep);
  font-weight: 800;
}
.add-item:hover { background: var(--action-hover); color: var(--deep); }
.diet { border-color: #9eb8a5; color: var(--deep); font-weight: 750; }
.sold { font-weight: 700; }
.cart { border: 1px solid #bdcdbc; box-shadow: none; padding: 24px; }
.cart h2 { font-size: 27px; }
.cart-empty { padding: 23px 0; }
.cart-total { border-top: 2px solid var(--deep); padding: 17px 0; }
.cart-total strong { color: var(--deep); font-size: 21px; }
.cart form>button { min-height: 50px; }
.quantity button { min-width: 32px; min-height: 32px; padding: 0 7px; border-radius: 6px; background: var(--action-soft); color: var(--action-ink); }
.quantity button:hover { background: #ffd9c2; color: #792e12; }
.fine { line-height: 1.45; }
.menu-pagination { border-top: 1px solid var(--line); padding-top: 20px; }
.menu-pagination a { border-color: #dc9b79; color: var(--action-ink); }
.menu-pagination a:hover { background: var(--action-soft); border-color: var(--action); color: var(--action-ink); }

/* Staff screens favour scanning and quick action over oversized headings. */
.admin-main { padding-top: 32px; padding-bottom: 72px; }
.admin-main .page-head { align-items: center; gap: 18px; margin-bottom: 25px; }
.admin-main .page-head h1 { margin: 0 0 4px; font-size: 45px; line-height: 1.06; }
.admin-main .page-head p:last-child { font-size: 14px; }
.admin-main .section-heading h2 { font-size: 27px; }
.admin-main .toolbar { border-top: 2px solid var(--deep); }
.panel, .order, .kitchen-ticket, .purchase-card { border-color: #cbd5c8; }
.form-panel h2 { font-size: 23px; }
.admin-row { padding: 15px 0; }
.admin-row b { font-size: 15px; }
.admin-row .muted { line-height: 1.45; }
.row-actions a, .row-actions button { font-weight: 700; }
.count { font: 700 13px/1.2 system-ui, sans-serif; color: var(--green); }
.empty { background: #fffdf7; border-color: #b9c9b9; }
.button-link { padding: 10px 17px; }
.button-link:hover { text-decoration: none; }
.status { border-radius: 5px; }
.status.pending { background: #ffe4b4; color: #59350b; }

/* Floor: open bills and waiting orders remain obvious at a glance. */
.floor-main .page-head { margin-bottom: 20px; }
.floor-layout { grid-template-columns: minmax(0, 1fr) minmax(380px, 30%); gap: 26px; }
.floor-area { margin-bottom: 29px; }
.floor-area-heading { margin-bottom: 13px; padding-bottom: 10px; border-bottom: 2px solid var(--deep); }
.floor-area-heading h2 { font-size: 26px; }
.table-grid { grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 11px; }
.table-tile {
  min-height: 140px;
  padding: 16px;
  border-color: #e4b49a;
  border-radius: 10px;
}
.table-tile:hover { border-color: var(--action); box-shadow: 0 7px 18px rgba(20,47,35,.11); }
.table-tile.is-selected { padding: 15px; background: var(--action-soft); border-color: var(--action); }
.table-tile.is-disabled { border-color: #cbd5c8; }
.table-tile:hover .table-tile-top strong, .table-tile.is-selected .table-tile-top strong { color: var(--action-ink); }
.table-tile-top strong { font-size: 16px; }
.table-dot.busy { background: #d9783e; }
.table-state { color: #46604f; }
.table-bill { font: 800 26px/1.1 system-ui, sans-serif; letter-spacing: -.025em; }
.table-detail { border-color: #aec3b0; border-radius: 11px; }
.detail-header { padding: 22px; }
.detail-header h2 { font-size: 31px; }
.detail-total {
  background: var(--deep);
  padding: 19px 22px;
}
.detail-total span, .detail-total strong { color: var(--accent); }
.detail-total strong { font: 800 29px/1.1 system-ui, sans-serif; letter-spacing: -.025em; }
.detail-total small { color: #e6efe4; }
.detail-orders, .detail-actions, .past-visits { padding: 22px; }
.bill-breakdown { padding: 15px 22px; }
.bill-breakdown .bill-due { color: var(--deep); font-weight: 800; }
.staff-order-link {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 12px 22px;
  border-color: #dc9b79;
  color: var(--action-ink);
}
.staff-order-link:hover { background: var(--action-soft); text-decoration: none; }
.pending-queue { background: #fff2d7; border-color: #dbac5a; }
.pending-queue strong { color: #5c390d; }
.pending-list a { border-color: #dc9b79; color: var(--action-ink); }
.pending-list a:hover { background: var(--action-soft); }
.overdue-trigger { background: var(--action); color: var(--deep); border-color: #c96029; }
.overdue-trigger:hover { background: var(--action-hover); color: var(--deep); }
.overdue-popup { border-color: #d8a35b; }
.kot-link { border-color: #dc9b79; color: var(--action-ink); }
.kot-link:hover { background: var(--action-soft); }

/* Menu, stock and kitchen controls use the same component vocabulary. */
.menu-management-grid, .inventory-grid { gap: 28px; }
.menu-editor, .inventory-editor { gap: 14px; }
.menu-editor .form-panel, .inventory-editor .form-panel { padding: 23px; }
.bulk-panel { background: #eaf1e5; border: 1px solid #c8d8c4; }
.bulk-heading h2 { font-size: 23px; }
.bulk-exports a { min-height: 42px; border-color: #dc9b79; color: var(--action-ink); }
.bulk-exports a:hover { background: var(--action-soft); color: var(--action-ink); }
.bulk-input-row button { min-width: 116px; }
.inventory-stats { gap: 12px; margin-bottom: 23px; }
.inventory-stats>div { min-height: 94px; padding: 17px 19px; border-radius: 9px; }
.inventory-stats strong { font: 800 29px/1.1 system-ui, sans-serif; letter-spacing: -.025em; }
.inventory-section { margin-bottom: 34px; }
.inventory-section .section-heading h2 { font-size: 26px; }
.kitchen-stations { margin: -3px 0 22px; }
.kitchen-stations a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  border-color: #dc9b79;
  color: var(--action-ink);
}
.kitchen-stations a[aria-current=page] { background: var(--action); border-color: var(--action); color: var(--deep); }
.kitchen-stations a:hover { background: var(--action-soft); color: var(--action-ink); }
.kitchen-stations a[aria-current=page]:hover { background: var(--action-hover); color: var(--deep); }
.kitchen-ticket { border-radius: 9px; }
.kitchen-ticket.is-late { background: #fff6e8; border-color: #d18a54; }
.kitchen-ticket h2 { font-size: 24px; }
.login-wrap { margin-top: 72px; }
.login-intro h1 { font-size: 54px; }
.tracking-status { background: #e6efe2; }
.return-menu { min-height: 48px; background: var(--action); color: var(--deep); }
.return-menu:hover { background: var(--action-hover); color: var(--deep); }
#option-picker { border-color: #bdcdbd; box-shadow: 0 24px 64px rgba(18,47,34,.25); }
#option-picker .option-choice { min-height: 48px; }
.option-close:hover { background: var(--action-soft); color: var(--action-ink); }
.detail-actions summary { color: var(--action-ink); }
.floor-main a:focus-visible, .floor-main summary:focus-visible { outline-color: var(--action); }

@media (max-width: 1100px) {
  .floor-layout { grid-template-columns: minmax(0, 1fr) 350px; gap: 20px; }
  .customer-grid { grid-template-columns: minmax(0, 1fr) 320px; }
}

@media (min-width: 801px) and (max-width: 1180px) {
  .topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 4px 14px;
    padding-top: 9px;
  }
  .topbar .brand { grid-column: 1; }
  .topbar form { grid-column: 2; grid-row: 1; margin: 0; }
  .topbar nav {
    grid-column: 1 / -1;
    grid-row: 2;
    order: 0;
    width: 100%;
    margin: 0;
    gap: 23px;
    overflow-x: auto;
    white-space: nowrap;
  }
  .topbar nav a { min-height: 42px; }
}

@media (max-width: 800px) {
  .topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px 14px;
    padding: 11px 16px 0;
  }
  .topbar .brand { grid-column: 1; font-size: 20px; }
  .topbar form { grid-column: 2; grid-row: 1; margin: 0; }
  .topbar nav {
    grid-column: 1 / -1;
    grid-row: 2;
    order: 0;
    width: 100%;
    margin: 0;
    gap: 21px;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: thin;
  }
  .topbar nav a { min-height: 43px; padding: 9px 0; }
  .topbar .top-note { display: none; }
  .customer { padding: 0 14px 90px; }
  .customer-head { padding: 27px 23px 30px; }
  .customer-head h1 { font-size: 46px; }
  .customer-grid { grid-template-columns: 1fr; gap: 27px; padding-top: 25px; }
  .customer .section-heading h2 { font-size: 29px; }
  .menu-section { padding-top: 18px; }
  .menu-section h3 { font-size: 25px; }
  .item-side img { width: 92px; height: 83px; }
  .cart { padding: 22px; }
  .mobile-cart-link:not([hidden]) {
    bottom: max(12px, env(safe-area-inset-bottom));
    left: 14px;
    right: 14px;
    min-height: 54px;
    background: var(--action);
    color: var(--deep);
    border-radius: 9px;
  }
  .mobile-cart-link:hover { color: var(--deep); background: var(--action-hover); }
  .admin-main { padding: 27px 18px 60px; }
  .admin-main .page-head h1 { font-size: 38px; }
  .floor-layout, .menu-management-grid, .inventory-grid { grid-template-columns: 1fr; }
  .floor-main .page-head { align-items: start; }
  .table-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .table-detail { position: static; max-height: none; }
  .menu-management-grid .menu-editor { order: -1; }
  .menu-workspace { padding-top: 0; }
  .inventory-editor { order: -1; }
}

@media (max-width: 480px) {
  .topbar .brand { font-size: 18px; }
  .topbar .brand-mark { font-size: 24px; }
  .topbar .link-button { font-size: 13px; }
  .customer { padding-left: 12px; padding-right: 12px; }
  .customer-head { padding: 24px 19px 27px; }
  .customer-head h1 { font-size: 40px; }
  .customer-head p:last-child { font-size: 14px; }
  .customer .section-heading h2 { font-size: 27px; }
  .menu-item { gap: 10px; }
  .item-copy h4 { font-size: 16px; }
  .item-copy p { font-size: 13px; }
  .item-copy strong { font-size: 16px; }
  .item-side img { width: 86px; height: 76px; }
  .add-item { min-width: 78px; padding: 7px 10px; }
  .admin-main .page-head { align-items: start; }
  .admin-main .page-head h1 { font-size: 34px; }
  .table-tile { min-height: 132px; padding: 13px; }
  .table-tile.is-selected { padding: 12px; }
  .table-bill { font-size: 23px; }
  .detail-header, .detail-orders, .detail-actions, .past-visits { padding: 18px; }
  .detail-total, .bill-breakdown { padding: 17px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  button, .button-link, .add-item, .mobile-cart-link { transition: none; }
}

@media print {
  body { background: #fff; }
  .qr-print { border: 0; box-shadow: none; }
}
