﻿:root {
  color-scheme: light;
  --bg: #f4f1ea;
  --surface: #fffdf8;
  --surface-2: #ebe4d8;
  --ink: #241f1a;
  --muted: #726a5d;
  --line: #d8cdbc;
  --green: #1e6047;
  --green-dark: #123c2d;
  --amber: #b47a2b;
  --red: #9c2f45;
  --blue: #2d6680;

  --wood: #6b4327;
  --shadow: 0 18px 50px rgba(31, 41, 35, 0.12);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  background: linear-gradient(180deg, #f8f5ee 0%, var(--bg) 42%, #ece6da 100%);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.has-modal {
  overflow: hidden;
}

body.is-locked {
  overflow: hidden;
}

body.is-locked .app {
  filter: blur(8px) saturate(.8);
  pointer-events: none;
  user-select: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.app {
  width: min(1500px, 100%);
  margin: 0 auto;
  padding: 20px;
}

.login-gate {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(10, 18, 13, .9), rgba(14, 30, 22, .96)),
    radial-gradient(circle at 50% 0%, rgba(212, 170, 86, .22), transparent 42%);
}

.login-gate[hidden] {
  display: none;
}

.login-card {
  width: min(420px, 100%);
  border: 1px solid rgba(233, 209, 150, .36);
  border-radius: 8px;
  background: rgba(255, 253, 248, .97);
  box-shadow: 0 28px 80px rgba(0, 0, 0, .42);
  padding: 24px;
  text-align: center;
}

.login-card__logo {
  width: 86px;
  height: 86px;
  object-fit: contain;
  margin-bottom: 8px;
}

.login-card h1 {
  margin: 0 0 18px;
  font-size: 28px;
  line-height: 1.08;
}

.login-display {
  display: block;
  text-align: left;
}

.login-display input {
  width: 100%;
  margin-top: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
  color: var(--green-dark);
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 0;
  text-align: center;
}

.login-error {
  min-height: 20px;
  margin: 8px 0 10px;
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
}

.login-pad {
  margin-top: 8px;
}

.login-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin-top: 14px;
  font-size: 20px;
}

.enter-sign {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 30px;
  border: 2px solid rgba(255, 255, 255, .82);
  border-radius: 6px;
  font-size: 25px;
  line-height: 1;
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-chip span {
  min-width: 0;
}

.compact-action {
  min-height: 32px;
  padding: 7px 10px;
  font-size: 12px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 84px;
}

.booking-notice {
  padding: 8px clamp(12px, 2vw, 26px);
  background: #fff4d9;
  border-bottom: 1px solid #d5aa59;
}

.booking-notice button {
  display: flex;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  align-items: center;
  gap: 10px;
  border: 0;
  background: transparent;
  color: #3d3119;
  cursor: pointer;
  text-align: left;
}

.booking-notice strong, .booking-notice small { display: block; }
.booking-notice strong { font-size: 14px; }
.booking-notice small { margin-top: 1px; color: #6b5730; font-size: 12px; }
.booking-notice__marker { display: grid; width: 24px; height: 24px; place-items: center; border-radius: 50%; background: #a45420; color: #fff; font-weight: 900; }
.booking-notice__action { margin-left: auto; color: #774d16; font-size: 13px; font-weight: 900; }

.booking-decision-modal {
  position: fixed;
  z-index: 90;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(13, 33, 23, .62);
}

.booking-decision-modal[hidden] { display: none; }
.booking-decision-modal > section { width: min(620px, 100%); max-height: min(680px, 92vh); overflow: auto; padding: 22px; border: 1px solid #d6b46f; border-radius: 7px; background: #fffdf8; box-shadow: 0 22px 72px rgba(0, 0, 0, .34); }
.booking-decision-modal__header { display: flex; align-items: start; justify-content: space-between; gap: 16px; }
.booking-decision-modal h2 { margin: 2px 0 0; color: #193d2d; font: 700 27px/1.1 Georgia, serif; }
.booking-decision-modal__intro { margin: 12px 0 16px; color: #5d655b; font-size: 13px; line-height: 1.45; }
.booking-decision-list { display: grid; gap: 10px; }
.booking-decision-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 14px; border-left: 4px solid #bf8a37; background: #f8f0df; }
.booking-decision-card strong, .booking-decision-card span, .booking-decision-card small { display: block; }
.booking-decision-card span { margin-top: 3px; color: #48584c; font-size: 13px; }
.booking-decision-card small { margin-top: 5px; color: #796d58; font-size: 11px; }
.booking-decision-actions { display: grid; gap: 7px; }
.booking-decision-actions button { min-width: 90px; }
.booking-decision-actions .quiet-danger { color: #8c2d3c; border-color: #d5a6ae; }

@media (max-width: 560px) {
  .booking-notice { padding: 7px 12px; }
  .booking-decision-modal > section { padding: 18px; }
  .booking-decision-card { grid-template-columns: 1fr; }
  .booking-decision-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.topbar h1,
.section-heading h2,
.cart-header h2,
.receipt-panel h2,
.timesheet-panel h2,
.sales-panel h2,
.menu-manager h2 {
  margin: 0;
  line-height: 1.1;
  letter-spacing: 0;
}

.topbar h1 {
  font-size: clamp(28px, 3vw, 42px);
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.topbar__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(110px, 1fr));
  gap: 10px;
}

.topbar__stats > div,
.metric {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 12px 14px;
  box-shadow: 0 6px 18px rgba(31, 41, 35, 0.06);
}

.topbar__stats span,
.metric span,
label span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.topbar__stats strong,
.metric strong {
  display: block;
  margin-top: 4px;
  font-size: 18px;
}

.main-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin: 0 -20px 18px;
  padding: 10px 20px;
  background: rgba(245, 247, 243, 0.92);
  backdrop-filter: blur(12px);
}

.nav-button,
.secondary,
.primary,
.icon-button {
  min-height: 44px;
  border-radius: var(--radius);
  font-weight: 800;
}

.nav-button {
  flex: 0 0 auto;
  min-width: 104px;
  padding: 0 18px;
  background: var(--surface-2);
  color: var(--ink);
}

.nav-button.is-active {
  background: var(--green);
  color: #ffffff;
}

.screen {
  display: none;
}

.screen.is-active {
  display: block;
}

.order-layout,
.payment-layout,
.staff-layout,
.management-layout {
  display: grid;
  gap: 18px;
}

.order-layout {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 320px);
}

.payment-layout {
  grid-template-columns: minmax(0, 1fr);
}

.staff-layout,
.management-layout {
  grid-template-columns: minmax(0, 1fr) minmax(340px, 430px);
}

.menu-panel,
.cart-panel,
.payment-panel,
.receipt-panel,
.timesheet-panel,
.sales-panel,
.menu-manager {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.menu-panel,
.payment-panel,
.receipt-panel,
.timesheet-panel,
.sales-panel,
.menu-manager {
  padding: 18px;
}

.cart-panel {
  position: sticky;
  top: 78px;
  align-self: start;
  padding: 16px;
}

.section-heading,
.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.search-box {
  width: min(340px, 100%);
}

label input,
label select,
label textarea,
#paymentOrderSelect {
  width: 100%;
  min-height: 44px;
  margin-top: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--ink);
  padding: 10px 12px;
}

label textarea {
  resize: vertical;
}

.category-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 10px;
}

.category-tabs button {
  flex: 0 0 auto;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--ink);
  padding: 0 14px;
  font-weight: 800;
}

.category-tabs button.is-active {
  border-color: var(--green);
  background: var(--green);
  color: #ffffff;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}

.menu-item {
  position: relative;
  display: block;
  min-height: 148px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: #ffffff;
  color: var(--ink);
  padding: 0;
  text-align: left;
  overflow: hidden;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.menu-item__art {
  position: absolute;
  inset: 0;
  background-image: var(--item-art);
  background-position: var(--item-position);
  background-repeat: no-repeat;
  background-size: var(--item-art-size, 400% 300%);
  filter: saturate(1.06) contrast(1.03);
}

.menu-item__art::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(12, 21, 15, .82) 0%, rgba(12, 21, 15, .64) 48%, rgba(12, 21, 15, .08) 100%), linear-gradient(0deg, rgba(7, 13, 10, .32), rgba(7, 13, 10, .02) 58%);
  content: "";
}

.menu-item__wordmark {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  max-width: 48%;
  padding: 3px 5px;
  color: var(--wordmark-color, rgba(31, 107, 76, .84));
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
  font-weight: 900;
  line-height: .92;
  opacity: 1;
  text-align: right;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .64);
}

.menu-item__brand-main {
  display: block;
  color: var(--wordmark-color, #1f6b4c);
  overflow-wrap: anywhere;
  paint-order: stroke fill;
  -webkit-text-stroke: 1.2px rgba(255, 255, 255, .96);
}

.menu-item__brand-detail {
  display: block;
  color: #ffffff;
  font-family: Inter, Arial, sans-serif;
  font-size: 8px;
  font-style: normal;
  font-weight: 900;
  line-height: 1.1;
  text-shadow: 0 1px 5px rgba(0, 0, 0, .86);
}

.menu-item__content {
  position: relative;
  z-index: 2;
  display: grid;
  align-content: space-between;
  min-height: 148px;
  max-width: 66%;
  padding: 52px 12px 12px;
  color: #ffffff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .56);
}

.menu-item:hover,
.menu-item:focus-visible {
  border-color: var(--green);
  box-shadow: 0 10px 24px rgba(31, 107, 76, 0.16);
  transform: translateY(-1px);
}

.menu-item strong {
  display: block;
  min-height: 49px;
  font-size: 16px;
  line-height: 1.2;
}

.menu-item small {
  color: rgba(255, 255, 255, .9);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.menu-item__price {
  display: block;
  color: #ffffff;
  font-size: 20px;
  font-weight: 900;
}

.menu-item--tone-ink { --wordmark-color: rgba(26, 21, 18, .88); }
.menu-item--tone-red { --wordmark-color: rgba(159, 37, 41, .92); }
.menu-item--tone-green { --wordmark-color: rgba(25, 95, 59, .92); }
.menu-item--tone-gold { --wordmark-color: rgba(151, 95, 23, .92); }
.menu-item--tone-blue { --wordmark-color: rgba(34, 77, 138, .92); }
.menu-item--tone-forest { --wordmark-color: rgba(47, 91, 66, .9); }

.menu-item--brand-guinness { --wordmark-color: #d9b36c; }
.menu-item--brand-guinness .menu-item__brand-main,
.menu-item--brand-jack-daniels .menu-item__brand-main,
.menu-item--brand-doom-bar .menu-item__brand-main,
.menu-item--brand-timothy-taylor .menu-item__brand-main {
  font-family: "Baskerville Old Face", Baskerville, Georgia, serif;
  text-transform: uppercase;
}

.menu-item--brand-coca-cola { --wordmark-color: #dc1723; }
.menu-item--brand-coca-cola .menu-item__brand-main,
.menu-item--brand-diet-coke .menu-item__brand-main,
.menu-item--brand-coke-zero .menu-item__brand-main {
  font-family: "Brush Script MT", "Segoe Script", cursive;
  font-size: 22px;
  font-style: italic;
  font-weight: 900;
}

.menu-item--brand-madri { --wordmark-color: #d5252a; }
.menu-item--brand-madri .menu-item__brand-main,
.menu-item--brand-carling .menu-item__brand-main,
.menu-item--brand-budweiser .menu-item__brand-main,
.menu-item--brand-becks .menu-item__brand-main,
.menu-item--brand-red-bull .menu-item__brand-main,
.menu-item--brand-fanta .menu-item__brand-main,
.menu-item--brand-wkd .menu-item__brand-main {
  font-family: Impact, "Arial Black", Arial, sans-serif;
  text-transform: uppercase;
}

.menu-item--brand-peroni { --wordmark-color: #173f78; }
.menu-item--brand-corona { --wordmark-color: #1558a4; }
.menu-item--brand-staropramen { --wordmark-color: #d5a93e; }
.menu-item--brand-jagermeister { --wordmark-color: #e87b1a; }
.menu-item--brand-aperol { --wordmark-color: #ec4b22; }
.menu-item--brand-coca-cola .menu-item__brand-detail { color: #ffffff; }
.menu-item--brand-kopparberg .menu-item__brand-main,
.menu-item--brand-rekorderlig .menu-item__brand-main,
.menu-item--brand-old-mout .menu-item__brand-main,
.menu-item--brand-desperados .menu-item__brand-main,
.menu-item--brand-tequila-rose .menu-item__brand-main,
.menu-item--brand-veuve-clicquot .menu-item__brand-main {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
}

.menu-item--brand-foresters { --wordmark-color: #e7c781; }
.menu-item--brand-foresters .menu-item__brand-main {
  font-family: Georgia, "Times New Roman", serif;
  text-transform: uppercase;
}

.field-grid,
.payment-form,
.menu-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.menu-form {
  grid-template-columns: 1fr;
  margin-bottom: 16px;
}

.note-field {
  display: block;
  margin-top: 12px;
}

.cart-items {
  display: grid;
  gap: 8px;
  min-height: 150px;
  max-height: 42vh;
  overflow-y: auto;
  margin: 14px 0;
  padding-right: 4px;
}

.empty-state {
  display: grid;
  place-items: center;
  min-height: 130px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  font-weight: 800;
  text-align: center;
}

.cart-line,
.tab-card,
.staff-card,
.compact-row {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.cart-line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 10px;
}

.cart-line strong,
.tab-card strong,
.staff-card strong {
  display: block;
}

.cart-line small,
.tab-card small,
.staff-card small {
  color: var(--muted);
}

.qty-controls {
  display: grid;
  grid-template-columns: 38px 42px 38px;
  align-items: center;
  gap: 4px;
}

.qty-controls button,
.icon-button {
  width: 38px;
  min-width: 38px;
  padding: 0;
  background: var(--surface-2);
  color: var(--ink);
}

.qty-controls span {
  text-align: center;
  font-weight: 900;
}

.totals {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding: 12px;
  border-radius: var(--radius);
  background: var(--surface-2);
}

.totals div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.grand-total {
  border-top: 1px solid var(--line);
  padding-top: 8px;
  font-size: 20px;
}

.action-row,
.quick-pay {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.quick-pay {
  grid-template-columns: repeat(3, 1fr);
}

.primary,
.secondary {
  padding: 0 16px;
}

.primary {
  background: var(--green);
  color: #ffffff;
}

.primary:hover,
.primary:focus-visible {
  background: var(--green-dark);
}

.secondary {
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--ink);
}

.secondary:hover,
.secondary:focus-visible {
  border-color: var(--green);
  color: var(--green);
}

.tabs-grid,
.staff-grid,
.report-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}

.tab-card,
.staff-card {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.tab-card__top,
.staff-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.status-pill {
  border-radius: 999px;
  background: rgba(31, 107, 76, 0.11);
  color: var(--green);
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 900;
}

.status-pill.off {
  background: rgba(156, 47, 69, 0.11);
  color: var(--red);
}

.tab-actions,
.staff-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.staff-clock-card {
  min-height: 210px;
  align-content: space-between;
}

.clock-actions button {
  min-height: 64px;
  font-size: 18px;
}

.records-heading {
  align-items: flex-start;
}

.record-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, auto));
  gap: 8px;
}

.payment-summary {
  display: grid;
  gap: 8px;
  min-height: 160px;
}

.payment-item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 8px 0;
}

.payment-item__name {
  min-width: 0;
}

.payment-item__name small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
}

.payment-totals {
  margin-top: 12px;
}

.compliance-note {
  margin: 12px 0 0;
  border-left: 4px solid var(--amber);
  color: var(--muted);
  padding-left: 10px;
  font-size: 13px;
  line-height: 1.45;
}

.receipt {
  min-height: 460px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: #fffdf8;
  padding: 16px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
  line-height: 1.5;
  white-space: pre-wrap;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 10px 8px;
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.metric {
  display: grid;
  gap: 6px;
  min-height: 92px;
}

.metric:nth-child(2) {
  border-top: 4px solid var(--amber);
}

.metric:nth-child(3) {
  border-top: 4px solid var(--blue);
}

.metric:nth-child(4) {
  border-top: 4px solid var(--red);
}

.compact-list {
  display: grid;
  gap: 8px;
  max-height: 360px;
  overflow-y: auto;
}

.compact-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
}

.compact-row span {
  color: var(--muted);
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 20;
  max-width: min(380px, calc(100vw - 40px));
  border-radius: var(--radius);
  background: var(--ink);
  color: #ffffff;
  box-shadow: var(--shadow);
  padding: 12px 14px;
  font-weight: 800;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.mini-heading,
.report-toolbar,
.tender-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mini-heading h3 {
  margin: 0;
  font-size: 18px;
}

.discount-panel,
.split-panel {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fffaf0;
  padding: 12px;
}

.discount-form,
.tender-actions,
.report-toolbar {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.compact-discount {
  padding: 10px 12px;
}

.discount-summary-row {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) auto auto;
  align-items: center;
}

.discount-summary-row h3 {
  font-size: 16px;
}

.discount-summary-row #discountApplied {
  font-size: 13px;
  color: var(--green);
  white-space: nowrap;
}

.discount-details {
  margin-top: 10px;
}

.discount-presets {
  display: grid;
  grid-template-columns: repeat(6, minmax(44px, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.discount-presets button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--ink);
  font-weight: 900;
}

.discount-presets button:hover,
.discount-presets button:focus-visible {
  border-color: var(--green);
  color: var(--green);
}

.tender-actions,
.tender-list {
  margin-top: 10px;
}

.tender-list {
  display: grid;
  gap: 8px;
}

.tender-row {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  padding: 8px;
}

.tender-empty {
  min-height: 70px;
}

.cash-popup {
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  padding: 12px;
  box-shadow: 0 12px 28px rgba(38, 29, 20, 0.12);
}

.split-balance {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, auto);
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-left: 5px solid var(--green);
  border-radius: var(--radius);
  background: #f7fbf5;
  padding: 10px;
}

.split-balance span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.split-balance strong {
  display: block;
  margin-top: 2px;
  font-size: 24px;
  color: var(--green-dark);
}

.split-clear-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.cash-display,
.cash-suggestions,
.cash-denominations {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.cash-display {
  grid-template-columns: 1fr 1fr;
}

.cash-display div {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
  padding: 10px;
}

.cash-display span,
.cash-chip span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.cash-display strong,
.cash-chip strong {
  font-size: 20px;
}

.cash-suggestions {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cash-denominations {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.cash-chip,
.cash-note {
  min-height: 62px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f7fbf5;
  color: var(--ink);
}

.cash-chip {
  display: grid;
  justify-items: start;
  text-align: left;
}

.cash-note {
  font-size: 18px;
  font-weight: 900;
}

.cash-chip:hover,
.cash-chip:focus-visible,
.cash-note:hover,
.cash-note:focus-visible {
  border-color: var(--green);
  background: #eef8ea;
}

.compact-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.settlement-actions {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

#screen-pay .payment-layout {
  max-width: 1120px;
  margin-inline: auto;
}

#screen-pay .payment-panel {
  padding: 16px;
  overflow: hidden;
}

#screen-pay .section-heading {
  display: grid;
  grid-template-columns: minmax(190px, auto) minmax(260px, 1fr);
  align-items: end;
}

.payment-desk {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(340px, 420px);
  gap: 14px;
  align-items: start;
}

.payment-order-card,
.payment-control-card {
  min-width: 0;
}

.payment-order-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fffdf8;
  padding: 12px;
}

.payment-control-card {
  display: grid;
  gap: 10px;
}

.payment-control-card .discount-panel,
.payment-control-card .split-panel,
.payment-control-card .payment-form,
.payment-control-card .payment-totals,
.payment-control-card .quick-pay,
.payment-control-card .settlement-actions {
  margin-top: 0;
}

.payment-control-card .payment-form,
.payment-control-card .quick-pay {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.payment-summary {
  max-height: min(44vh, 430px);
  overflow-y: auto;
  padding-right: 4px;
}

.payment-item {
  grid-template-columns: minmax(0, 1fr) 42px 72px;
}

.payment-item__name {
  overflow-wrap: anywhere;
}

.payment-control-card .settlement-actions {
  grid-template-columns: 1fr 1fr;
}

.payment-control-card .settlement-actions #completePaymentBtn {
  grid-column: 1 / -1;
  min-height: 58px;
  font-size: 17px;
}

.payment-control-card .compliance-note {
  margin-top: 0;
}

.report-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(150px, auto));
  gap: 10px;
}

.report-toolbar {
  display: grid;
  grid-template-columns: repeat(3, minmax(160px, 1fr));
  align-items: end;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--wood);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 12px;
}

.report-toolbar > div span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.daily-report-grid {
  grid-template-columns: repeat(5, minmax(140px, 1fr));
  margin-bottom: 18px;
}

.total-sales-metric {
  grid-column: span 2;
  border-top: 4px solid var(--green);
  background: #f9fff8;
}

.total-sales-metric strong {
  font-size: 30px;
}

.metric-action {
  width: 100%;
  margin-top: 10px;
  min-height: 38px;
}

.report-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr) minmax(280px, 0.8fr);
  gap: 18px;
  margin-top: 18px;
}

.panel-note {
  margin: 8px 0 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.price-row {
  grid-template-columns: minmax(130px, 1fr) minmax(80px, auto) minmax(70px, auto) minmax(92px, auto) minmax(80px, auto);
}

.danger:hover,
.danger:focus-visible {
  border-color: var(--red);
  color: var(--red);
}

.staff-hour-strip,
.attendance-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.staff-hour-strip span,
.attendance-summary div {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
  padding: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.staff-hour-strip strong,
.attendance-summary strong {
  display: block;
  margin-top: 3px;
  color: var(--ink);
  font-size: 15px;
}

.attendance-controls {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(180px, 220px);
  gap: 10px;
  margin-bottom: 12px;
}

.attendance-tabs {
  padding-bottom: 0;
}

.attendance-summary {
  margin-bottom: 12px;
}

.attendance-report-panel {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 18px;
}

.attendance-detail-grid {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr) minmax(260px, 0.7fr);
}
.pin-modal[hidden] {
  display: none;
}

.pin-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 20px;
}

.pin-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(32, 36, 33, 0.55);
}

.pin-dialog {
  position: relative;
  width: min(420px, 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 18px;
}

.part-tender-dialog {
  width: min(360px, 100%);
}

.part-tender-field {
  display: block;
  margin: 12px 0 14px;
}

.part-tender-field input {
  width: 100%;
  min-height: 54px;
  margin-top: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px 14px;
  color: var(--green-dark);
  font-size: 26px;
  font-weight: 900;
  text-align: center;
}

.pin-dialog__header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.pin-dialog__header h2 {
  margin: 0 0 6px;
}

#pinStaffName {
  color: var(--muted);
  font-weight: 800;
}

.pin-display {
  display: block;
}

.pin-display input {
  text-align: center;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.pin-error {
  min-height: 20px;
  margin: 8px 0 10px;
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
}

.pin-pad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.pin-pad button {
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--ink);
  font-size: 20px;
  font-weight: 900;
}

.pin-pad button:hover,
.pin-pad button:focus-visible {
  border-color: var(--green);
  color: var(--green);
}

.pin-submit {
  width: 100%;
  margin-top: 12px;
}

.spirit-mixer-modal[hidden] {
  display: none;
}

.spirit-mixer-modal {
  position: fixed;
  inset: 0;
  z-index: 35;
  display: grid;
  place-items: center;
  padding: 20px;
}

.spirit-mixer-dialog {
  position: relative;
  width: min(680px, 100%);
  max-height: min(760px, calc(100vh - 40px));
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 18px;
}

.spirit-mixer-dialog__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.spirit-mixer-dialog__header h2 {
  margin: 0 0 6px;
}

#spiritMixerBase {
  color: var(--muted);
  font-weight: 800;
}

.mixer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.mixer-option {
  display: grid;
  gap: 5px;
  min-height: 70px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--ink);
  padding: 10px;
  text-align: left;
}

.mixer-option strong,
.mixer-option span {
  display: block;
}

.mixer-option span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.mixer-option:hover,
.mixer-option:focus-visible,
.mixer-option.is-selected {
  border-color: var(--green);
}

.mixer-option.is-selected {
  background: #edf5ed;
  color: var(--green-dark);
}

.spirit-mixer-submit {
  width: 100%;
  margin-top: 12px;
}

.bundle-offer-modal[hidden] {
  display: none;
}

.bundle-offer-modal {
  position: fixed;
  inset: 0;
  z-index: 38;
  display: grid;
  place-items: center;
  padding: 20px;
}

.bundle-offer-dialog {
  position: relative;
  width: min(460px, 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 18px;
}

.bundle-offer-dialog__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.bundle-offer-dialog__header h2 {
  margin: 0 0 6px;
}

.bundle-offer-dialog__header p:last-child {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.bundle-offer-prices {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 18px 0;
}

.bundle-offer-prices span {
  display: grid;
  gap: 4px;
  border: 1px solid #d7c8a7;
  border-radius: 6px;
  background: #fffaf0;
  color: var(--muted);
  padding: 9px;
  font-size: 12px;
  font-weight: 800;
}

.bundle-offer-prices strong {
  color: var(--ink);
  font-size: 16px;
}

.bundle-offer-prices span:nth-child(2) strong,
.bundle-offer-prices span:nth-child(3) strong {
  color: var(--green-dark);
}

.bundle-offer-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
}

.bundle-offer-actions button {
  min-height: 48px;
}

@media (max-width: 1180px) {
  .daily-report-grid,
  .report-detail-grid,
  .attendance-detail-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 1020px) {
  .topbar,
  .section-heading,
  .cart-header {
    align-items: stretch;
    flex-direction: column;
  }

  .topbar__stats,
  .order-layout,
  .payment-layout,
  .staff-layout,
  .management-layout {
    grid-template-columns: 1fr;
  }

  .cart-panel {
    position: static;
  }

  #screen-pay .section-heading,
  .payment-desk {
    grid-template-columns: 1fr;
  }

  #screen-pay .payment-layout {
    max-width: 760px;
  }
}

/* Keep the compact product-board presentation ahead of the legacy menu rules above. */
.menu-grid {
  grid-template-columns: repeat(auto-fill, minmax(158px, 1fr));
  gap: 12px;
}

.menu-item {
  min-height: 0;
  aspect-ratio: 1 / 1.08;
  border-color: #2e322d;
  border-radius: 8px;
  background: #090b09;
}

.menu-item__price {
  color: #ffffff;
}

/* Spirit bottles have their own product card and label treatment instead of a generic serve. */
.menu-item--reference-jack-daniels,
.menu-item--reference-jagermeister,
.menu-item--reference-baileys,
.menu-item--reference-aperol,
.menu-item--reference-archers,
.menu-item--reference-disaronno,
.menu-item--reference-kahlua,
.menu-item--reference-malibu,
.menu-item--reference-passoa,
.menu-item--reference-pimms,
.menu-item--reference-southern-comfort,
.menu-item--reference-jose-cuervo,
.menu-item--reference-olmeca,
.menu-item--reference-fireball,
.menu-item--reference-tequila-rose,
.menu-item--reference-tequila,
.menu-item--reference-sambuca,
.menu-item--reference-corkys,
.menu-item--reference-enchanted-forest,
.menu-item--reference-triple-sec {
  --spirit-label: rgba(10, 12, 10, 0.86);
  --spirit-label-border: rgba(250, 247, 235, 0.85);
  --wordmark-color: #fffdf4;
}

.menu-item--reference-jack-daniels .menu-item__wordmark,
.menu-item--reference-jagermeister .menu-item__wordmark,
.menu-item--reference-baileys .menu-item__wordmark,
.menu-item--reference-aperol .menu-item__wordmark,
.menu-item--reference-archers .menu-item__wordmark,
.menu-item--reference-disaronno .menu-item__wordmark,
.menu-item--reference-kahlua .menu-item__wordmark,
.menu-item--reference-malibu .menu-item__wordmark,
.menu-item--reference-passoa .menu-item__wordmark,
.menu-item--reference-pimms .menu-item__wordmark,
.menu-item--reference-southern-comfort .menu-item__wordmark,
.menu-item--reference-jose-cuervo .menu-item__wordmark,
.menu-item--reference-olmeca .menu-item__wordmark,
.menu-item--reference-fireball .menu-item__wordmark,
.menu-item--reference-tequila-rose .menu-item__wordmark,
.menu-item--reference-tequila .menu-item__wordmark,
.menu-item--reference-sambuca .menu-item__wordmark,
.menu-item--reference-corkys .menu-item__wordmark,
.menu-item--reference-enchanted-forest .menu-item__wordmark,
.menu-item--reference-triple-sec .menu-item__wordmark {
  top: 35%;
  right: 16%;
  left: 16%;
  padding: 5px 4px;
  border: 1px solid var(--spirit-label-border);
  border-radius: 3px;
  background: var(--spirit-label);
}

.menu-item--reference-jack-daniels {
  --spirit-label: rgba(8, 9, 8, 0.94);
  --spirit-label-border: #d6b67b;
}

.menu-item--reference-jack-daniels .menu-item__brand-main,
.menu-item--reference-disaronno .menu-item__brand-main,
.menu-item--reference-pimms .menu-item__brand-main,
.menu-item--reference-jose-cuervo .menu-item__brand-main {
  font-family: Georgia, "Times New Roman", serif;
}

.menu-item--reference-jagermeister {
  --spirit-label: rgba(26, 54, 31, 0.94);
  --spirit-label-border: #f08b2f;
  --wordmark-color: #f28c2b;
}

.menu-item--reference-jagermeister .menu-item__brand-main,
.menu-item--reference-aperol .menu-item__brand-main,
.menu-item--reference-archers .menu-item__brand-main,
.menu-item--reference-fireball .menu-item__brand-main,
.menu-item--reference-olmeca .menu-item__brand-main {
  font-family: Impact, "Arial Black", Arial, sans-serif;
}

.menu-item--reference-baileys {
  --spirit-label: rgba(21, 17, 13, 0.92);
  --spirit-label-border: #dfc993;
  --wordmark-color: #f1d9a4;
}

.menu-item--reference-baileys .menu-item__brand-main,
.menu-item--reference-archers .menu-item__brand-main,
.menu-item--reference-kahlua .menu-item__brand-main,
.menu-item--reference-tequila-rose .menu-item__brand-main {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
}

.menu-item--reference-aperol {
  --spirit-label: rgba(223, 67, 28, 0.9);
  --spirit-label-border: #fff4da;
  --wordmark-color: #fffdf6;
}

.menu-item--reference-archers {
  --spirit-label: rgba(234, 105, 85, 0.9);
  --spirit-label-border: #fff4e6;
}

.menu-item--reference-disaronno {
  --spirit-label: rgba(70, 36, 21, 0.9);
  --spirit-label-border: #e6b85e;
  --wordmark-color: #f6ddae;
}

.menu-item--reference-kahlua {
  --spirit-label: rgba(50, 24, 19, 0.92);
  --spirit-label-border: #d8be80;
  --wordmark-color: #f0d79b;
}

.menu-item--reference-malibu {
  --spirit-label: rgba(245, 242, 231, 0.9);
  --spirit-label-border: #18292d;
  --wordmark-color: #18292d;
}

.menu-item--reference-passoa {
  --spirit-label: rgba(24, 15, 17, 0.9);
  --spirit-label-border: #e36a3a;
  --wordmark-color: #ee7444;
}

.menu-item--reference-pimms,
.menu-item--reference-southern-comfort {
  --spirit-label: rgba(73, 30, 21, 0.9);
  --spirit-label-border: #efcf7d;
  --wordmark-color: #f4e0a8;
}

.menu-item--reference-jose-cuervo {
  --spirit-label: rgba(153, 112, 34, 0.9);
  --spirit-label-border: #fff2c9;
  --wordmark-color: #fff5d7;
}

.menu-item--reference-olmeca {
  --spirit-label: rgba(28, 71, 107, 0.9);
  --spirit-label-border: #fff9ed;
  --wordmark-color: #fff8ea;
}

.menu-item--reference-fireball {
  --spirit-label: rgba(174, 39, 23, 0.9);
  --spirit-label-border: #ffd393;
  --wordmark-color: #ffe2a9;
}

.menu-item--reference-tequila-rose {
  --spirit-label: rgba(235, 172, 182, 0.92);
  --spirit-label-border: #4c1d2a;
  --wordmark-color: #4c1d2a;
}

.menu-item--reference-tequila,
.menu-item--reference-triple-sec {
  --spirit-label: rgba(168, 122, 44, 0.88);
  --spirit-label-border: #fff5df;
}

.menu-item--reference-sambuca,
.menu-item--reference-corkys,
.menu-item--reference-enchanted-forest {
  --spirit-label: rgba(25, 17, 18, 0.9);
  --spirit-label-border: #dd7b4a;
  --wordmark-color: #f0a374;
}

@media (max-width: 680px) {
  .menu-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .menu-item {
    min-height: 0;
    aspect-ratio: 1 / 1.12;
  }
}

/* Manager controls stay compact, while keeping price and promotion changes explicit. */
.menu-manager__header,
.menu-form--manager,
.offer-form,
.menu-manager__details {
  margin-top: 16px;
}

.menu-form--manager,
.offer-form {
  border-top: 1px solid #d7c8a7;
  padding-top: 14px;
}

.menu-form--manager h3,
.offer-form h3 {
  grid-column: 1 / -1;
  margin: 0;
  color: #263d2d;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
}

.menu-form--manager {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
}

.menu-form--manager > :nth-child(2) {
  grid-column: 1 / -1;
}

.offer-form {
  display: grid;
  gap: 10px;
}

.offer-form__fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
}

.offer-manager-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.offer-manager-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid #d7c8a7;
  border-radius: 6px;
  background: #fffaf0;
  padding: 8px 10px;
}

.offer-manager-row span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.offer-manager-row strong {
  overflow-wrap: anywhere;
}

.offer-manager-row small,
.offer-manager-empty {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.menu-manager__details {
  border-top: 1px solid #d7c8a7;
  padding-top: 12px;
}

.menu-manager__details summary {
  cursor: pointer;
  color: #263d2d;
  font-weight: 900;
}

.menu-manager__details .compact-list {
  margin-top: 12px;
}

/* Real product art stays visually separate from the label and price controls. */
.menu-item--packshot .menu-item__art {
  background-color: #f0eee8;
  background-blend-mode: normal;
  filter: saturate(1.12) contrast(1.08);
}

.menu-item--packshot .menu-item__art::after {
  background: linear-gradient(180deg, rgba(6, 9, 7, 0.03) 0%, rgba(6, 9, 7, 0.02) 46%, rgba(6, 9, 7, 0.9) 100%);
}

.menu-item--drink:not(.menu-item--packshot) .menu-item__brand-main {
  paint-order: stroke fill;
  -webkit-text-stroke: 1.8px rgba(255, 255, 255, 0.98);
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.88));
}

.menu-item--reference-madri .menu-item__art {
  background-color: #e8e1d4;
  background-blend-mode: normal;
  filter: saturate(1.28) contrast(1.22);
}

/* Keep the product visible, then place a crisp brand plate where a bottle or glass label sits. */
.menu-item--drink:not(.menu-item--reference-guinness):not(.menu-item--reference-madri):not(.menu-item--reference-carling):not(.menu-item--packshot) .menu-item__art {
  filter: saturate(1.24) contrast(1.08) brightness(1.16);
}

.menu-item--drink:not(.menu-item--reference-guinness):not(.menu-item--reference-madri):not(.menu-item--reference-carling):not(.menu-item--packshot) .menu-item__art::after {
  background: linear-gradient(180deg, rgba(4, 7, 5, .02) 0%, rgba(4, 7, 5, .06) 45%, rgba(4, 7, 5, .66) 100%);
}

.menu-item--reference-styled.menu-item--drink .menu-item__wordmark {
  top: 31%;
  right: 9%;
  left: 9%;
  min-height: 58px;
  border-width: 2px;
  box-shadow: 0 5px 16px rgba(0, 0, 0, .68);
}

.menu-item--drink .menu-item__brand-main {
  white-space: nowrap;
}

.menu-item--reference-styled.menu-item--drink .menu-item__brand-main {
  -webkit-text-stroke: 1.5px var(--brand-outline, rgba(255, 255, 255, .96));
}

.menu-item--packshot .menu-item__art {
  background-color: #11130f;
  background-blend-mode: normal;
  filter: saturate(1.18) contrast(1.08) brightness(1.02);
}

.menu-item--packshot .menu-item__art::after {
  background: linear-gradient(180deg, rgba(4, 6, 5, 0.02) 0%, rgba(4, 6, 5, 0.08) 48%, rgba(4, 6, 5, 0.82) 100%);
}

.menu-item--packshot .menu-item__wordmark--embedded {
  opacity: 0;
  pointer-events: none;
}

.menu-item--food .menu-item__wordmark {
  top: 16px;
  right: 12px;
  left: 12px;
  padding: 6px 8px;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 6px;
  background: rgba(8, 14, 10, .68);
  line-height: 1.02;
}

.menu-item--food .menu-item__brand-main {
  display: block;
  white-space: normal;
  overflow-wrap: normal;
  word-break: normal;
  font-size: 15px;
  -webkit-text-stroke: .8px rgba(0, 0, 0, .45);
}

.menu-item--food .menu-item__brand-detail {
  display: block;
  margin-top: 3px;
  font-size: 7px;
}

.menu-item--brand-coca-cola {
  --badge-background: #bd1727;
  --badge-border: #ffffff;
  --wordmark-color: #ffffff;
  --badge-detail: #ffffff;
  --brand-outline: #bd1727;
}

.menu-item--brand-coke-zero,
.menu-item--brand-dr-pepper {
  --badge-background: #151515;
  --badge-border: #e01c2b;
  --wordmark-color: #ffffff;
  --badge-detail: #e01c2b;
  --brand-outline: #151515;
}

.menu-item--brand-fanta {
  --badge-background: #f16921;
  --badge-border: #ffffff;
  --wordmark-color: #123f87;
  --badge-detail: #ffffff;
  --brand-outline: #ffffff;
}

.menu-item--brand-vimto {
  --badge-background: #4b245e;
  --badge-border: #f8c84a;
  --wordmark-color: #ffffff;
  --badge-detail: #f8c84a;
  --brand-outline: #4b245e;
}

.menu-item--brand-red-bull {
  --badge-background: #0f3c75;
  --badge-border: #e8e8e5;
  --wordmark-color: #ffffff;
  --badge-detail: #e32f2f;
  --brand-outline: #0f3c75;
}

.menu-item--brand-j2o,
.menu-item--brand-oasis {
  --badge-background: #24391d;
  --badge-border: #f3a13d;
  --wordmark-color: #f6d055;
  --badge-detail: #ffffff;
  --brand-outline: #24391d;
}

.menu-item--brand-appletiser,
.menu-item--brand-holsten {
  --badge-background: #0d5633;
  --badge-border: #edcc62;
  --wordmark-color: #ffffff;
  --badge-detail: #f3d575;
  --brand-outline: #0d5633;
}

.menu-item--brand-holsten .menu-item__brand-main,
.menu-item--brand-becks .menu-item__brand-main,
.menu-item--brand-staropramen .menu-item__brand-main {
  font-family: "Arial Narrow", "Arial Black", Arial, sans-serif;
  font-weight: 900;
  letter-spacing: .02em;
}

.menu-item--brand-coca-cola .menu-item__brand-main,
.menu-item--brand-fanta .menu-item__brand-main,
.menu-item--brand-vimto .menu-item__brand-main,
.menu-item--brand-red-bull .menu-item__brand-main,
.menu-item--brand-j2o .menu-item__brand-main,
.menu-item--brand-oasis .menu-item__brand-main {
  font-size: 22px;
}

@media (max-width: 680px) {
  .menu-item--reference-styled.menu-item--drink .menu-item__wordmark {
    top: 30%;
    min-height: 50px;
  }

  .menu-item--brand-coca-cola .menu-item__brand-main,
  .menu-item--brand-fanta .menu-item__brand-main,
  .menu-item--brand-vimto .menu-item__brand-main,
  .menu-item--brand-red-bull .menu-item__brand-main,
  .menu-item--brand-j2o .menu-item__brand-main,
  .menu-item--brand-oasis .menu-item__brand-main {
    font-size: 18px;
  }
}

/* Half pints and small serves are intentionally smaller than full serves. */
.menu-item--half-size .menu-item__art {
  inset: 11% 18% 20%;
  border-radius: 7px;
}

.menu-item--half-size .menu-item__art::after {
  border-radius: inherit;
}

.menu-item--half-size .menu-item__wordmark {
  transform: scale(.84);
  transform-origin: center;
}

/* Keep product and brand names whole; reduce type before splitting a word. */
.menu-item__brand-main,
.menu-item strong,
.menu-item small {
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.menu-item--reference-styled.menu-item--drink.menu-item--brand-word-medium .menu-item__brand-main,
.menu-item--reference-carling.menu-item--brand-word-medium .menu-item__brand-main {
  font-size: 19px;
}

.menu-item--reference-styled.menu-item--drink.menu-item--brand-word-long .menu-item__brand-main,
.menu-item--reference-carling.menu-item--brand-word-long .menu-item__brand-main {
  font-size: 12px;
  letter-spacing: 0.01em;
}

.menu-item--brand-word-medium:not(.menu-item--reference-styled) .menu-item__brand-main {
  font-size: 17px;
}

.menu-item--brand-word-long:not(.menu-item--reference-styled) .menu-item__brand-main {
  font-size: 13px;
  letter-spacing: 0.01em;
}

/* Generic glass and bottle photography gets a high-contrast product label, not a faint caption. */
.menu-item--reference-styled.menu-item--drink .menu-item__wordmark,
.menu-item--reference-carling .menu-item__wordmark {
  top: 24%;
  right: 11%;
  left: 11%;
  display: grid;
  align-content: center;
  min-height: 54px;
  padding: 7px 8px 8px;
  border: 2px solid var(--badge-border, #ffffff);
  border-radius: 4px;
  background: var(--badge-background, rgba(10, 15, 12, 0.92));
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.52);
}

.menu-item--reference-styled.menu-item--drink .menu-item__brand-main,
.menu-item--reference-carling .menu-item__brand-main {
  color: var(--wordmark-color, #ffffff);
  font-family: "Arial Black", Arial, sans-serif;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.86;
  text-transform: uppercase;
  -webkit-text-stroke: 2px rgba(255, 255, 255, 0.98);
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.76);
}

.menu-item--reference-styled.menu-item--drink .menu-item__brand-detail,
.menu-item--reference-carling .menu-item__brand-detail {
  margin-top: 4px;
  color: var(--badge-detail, #ffffff);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.72);
}

.menu-item--reference-styled.menu-item--drink .menu-item__art {
  filter: saturate(1.13) contrast(1.12);
}

.menu-item--brand-aspall,
.menu-item--brand-rekorderlig,
.menu-item--brand-heineken,
.menu-item--brand-staropramen,
.menu-item--brand-becks {
  --badge-background: rgba(20, 66, 45, 0.94);
  --badge-border: #f0d588;
  --wordmark-color: #fff8df;
  --badge-detail: #ffffff;
}

.menu-item--brand-cobra,
.menu-item--brand-carling,
.menu-item--brand-budweiser,
.menu-item--brand-hooch {
  --badge-background: rgba(120, 19, 27, 0.94);
  --badge-border: #ffffff;
  --wordmark-color: #f7e9d0;
  --badge-detail: #ffffff;
}

.menu-item--brand-corona,
.menu-item--brand-peroni,
.menu-item--brand-bulmers,
.menu-item--brand-moretti {
  --badge-background: rgba(246, 241, 222, 0.94);
  --badge-border: #173f78;
  --wordmark-color: #153e75;
  --badge-detail: #243f69;
}

.menu-item--brand-kopparberg,
.menu-item--brand-old-mout,
.menu-item--brand-thatchers,
.menu-item--brand-wkd {
  --badge-background: rgba(28, 47, 83, 0.94);
  --badge-border: #ffffff;
  --wordmark-color: #edf5ff;
  --badge-detail: #ffffff;
}

.menu-item--brand-worthington,
.menu-item--brand-doom-bar,
.menu-item--brand-newcastle,
.menu-item--brand-holsten {
  --badge-background: rgba(19, 18, 15, 0.94);
  --badge-border: #e5be61;
  --wordmark-color: #f7df9f;
  --badge-detail: #ffffff;
}

.menu-item--brand-salt,
.menu-item--brand-desperados {
  --badge-background: rgba(235, 186, 35, 0.94);
  --badge-border: #ffffff;
  --wordmark-color: #111111;
  --badge-detail: #111111;
}

.menu-item--reference-styled.menu-item--brand-rekorderlig .menu-item__brand-main,
.menu-item--reference-styled.menu-item--brand-staropramen .menu-item__brand-main,
.menu-item--reference-styled.menu-item--brand-worthington .menu-item__brand-main,
.menu-item--reference-styled.menu-item--brand-newcastle .menu-item__brand-main {
  font-size: 17px;
}

.menu-item--reference-styled.menu-item--brand-kopparberg .menu-item__brand-main,
.menu-item--reference-styled.menu-item--brand-moretti .menu-item__brand-main {
  font-size: 18px;
}

.menu-item--reference-madri .menu-item__wordmark {
  border: 2px solid #ffffff;
  border-radius: 4px;
  background: rgba(250, 240, 224, 0.86);
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.42);
  padding: 6px 8px 7px;
}

@media (max-width: 680px) {
  .menu-item--reference-styled.menu-item--drink .menu-item__wordmark,
  .menu-item--reference-carling .menu-item__wordmark {
    right: 8%;
    left: 8%;
    min-height: 48px;
    padding: 6px;
  }

  .menu-item--reference-styled.menu-item--drink .menu-item__brand-main,
  .menu-item--reference-carling .menu-item__brand-main {
    font-size: 19px;
  }

  .menu-item--reference-styled.menu-item--brand-rekorderlig .menu-item__brand-main,
  .menu-item--reference-styled.menu-item--brand-staropramen .menu-item__brand-main,
  .menu-item--reference-styled.menu-item--brand-worthington .menu-item__brand-main,
  .menu-item--reference-styled.menu-item--brand-newcastle .menu-item__brand-main {
    font-size: 15px;
  }
}

.menu-item--reference-madri .menu-item__art::after {
  background: linear-gradient(180deg, rgba(48, 27, 15, 0.02) 0%, rgba(48, 27, 15, 0.04) 44%, rgba(7, 10, 8, 0.9) 100%);
}

.menu-item--reference-madri .menu-item__wordmark {
  top: 16px;
  right: 8px;
  left: 8px;
}

.menu-item--reference-madri .menu-item__brand-main {
  color: #d71d28;
  font-family: "Arial Narrow", "Arial Black", Arial, sans-serif;
  font-size: 30px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.82;
  -webkit-text-stroke: 2px #ffffff;
  text-shadow: 0 2px 6px rgba(37, 16, 12, 0.58);
}

.menu-item--reference-madri .menu-item__brand-detail {
  color: #d71d28;
  font-size: 9px;
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.95);
}

.menu-item--reference-carling .menu-item__wordmark {
  top: 17px;
}

@media (max-width: 680px) {
  .menu-form--manager,
  .offer-form__fields {
    grid-template-columns: 1fr;
  }

  .menu-form--manager > :nth-child(2) {
    grid-column: auto;
  }

  .menu-item--reference-madri .menu-item__brand-main {
    font-size: 25px;
  }
}

/* Product boards keep the real drink or dish as the hero, with ordering details on top. */
.menu-grid {
  grid-template-columns: repeat(auto-fill, minmax(158px, 1fr));
  gap: 12px;
}

.menu-item {
  min-height: 0;
  aspect-ratio: 1 / 1.08;
  border: 1px solid #2e322d;
  border-radius: 8px;
  background: #090b09;
}

.menu-item__art {
  background-color: #10130f;
  filter: saturate(1.03) contrast(1.04);
}

.menu-item__art::after {
  background: linear-gradient(180deg, rgba(5, 7, 6, 0.05) 0%, rgba(5, 7, 6, 0.04) 42%, rgba(5, 7, 6, 0.82) 100%);
}

.menu-item--reference-madri .menu-item__art {
  background-color: #0b0c0a;
  background-blend-mode: multiply;
}

.menu-item--reference-carling .menu-item__art {
  background-color: #080a08;
}

.menu-item__wordmark {
  top: 38%;
  right: 10px;
  left: 10px;
  z-index: 3;
  max-width: none;
  padding: 0;
  color: #ffffff;
  font-size: 19px;
  line-height: 0.92;
  text-align: center;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
}

.menu-item__wordmark--embedded {
  display: none;
}

.menu-item__brand-main {
  color: var(--wordmark-color, #ffffff);
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  -webkit-text-stroke: 1.4px rgba(255, 255, 255, 0.96);
}

.menu-item__brand-detail {
  margin-top: 3px;
  color: #ffffff;
  font-size: 8px;
  letter-spacing: 0;
}

.menu-item__content {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 4;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  align-items: end;
  min-height: 0;
  max-width: none;
  padding: 24px 10px 10px;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(7, 10, 8, 0) 0%, rgba(7, 10, 8, 0.9) 54%);
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.86);
}

.menu-item strong {
  grid-column: 1;
  grid-row: 1;
  min-height: 0;
  font-size: 13px;
  line-height: 1.13;
}

.menu-item small {
  grid-column: 1;
  grid-row: 2;
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 9px;
  line-height: 1.05;
}

.menu-item__price {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  margin-left: 8px;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 5px;
  background: rgba(8, 12, 9, 0.88);
  color: #ffffff;
  font-size: 16px;
  line-height: 1;
  padding: 6px 7px;
}

.menu-item--brand-rekorderlig .menu-item__brand-main,
.menu-item--brand-staropramen .menu-item__brand-main,
.menu-item--brand-worthington .menu-item__brand-main,
.menu-item--brand-southern-comfort .menu-item__brand-main {
  font-size: 16px;
}

.menu-item--reference-guinness .menu-item__content,
.menu-item--reference-madri .menu-item__content,
.menu-item--reference-carling .menu-item__content {
  padding-top: 38px;
}

@media (max-width: 680px) {
  .menu-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .menu-item {
    aspect-ratio: 1 / 1.12;
  }

  .menu-item__wordmark {
    font-size: 17px;
  }

  .menu-item strong {
    font-size: 12px;
  }

  .menu-item__price {
    font-size: 15px;
  }
}

@media (max-width: 640px) {
  .app {
    padding: 14px;
  }

  .main-nav {
    margin-inline: -14px;
    padding-inline: 14px;
  }

  .topbar__stats,
  .field-grid,
  .payment-form,
  .discount-form,
  .discount-summary-row,
  .discount-presets,
  .split-balance,
  .split-clear-actions,
  .tender-actions,
  .cash-display,
  .cash-suggestions,
  .cash-denominations,
  .report-toolbar,
  .report-actions,
  .attendance-controls,
  .action-row,
  .quick-pay,
  .tab-actions,
  .staff-actions,
  .staff-hour-strip,
  .attendance-summary,
  .record-actions,
  .settlement-actions {
    grid-template-columns: 1fr;
  }

  .mixer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .menu-grid,
  .tabs-grid,
  .staff-grid,
  .report-grid,
  .daily-report-grid,
  .report-detail-grid,
  .attendance-detail-grid {
    grid-template-columns: 1fr;
  }

  .compact-row {
    grid-template-columns: 1fr;
  }
}

@media print {
  body {
    background: #ffffff;
  }

  .topbar,
  .main-nav,
  .screen:not(#screen-pay),
  .payment-panel,
  .toast {
    display: none !important;
  }

  .app {
    padding: 0;
  }

  .payment-layout {
    display: block;
  }

  .receipt-panel {
    border: 0;
    box-shadow: none;
  }

  .receipt {
    border: 0;
  }
}




/* Foresters Arms visual refresh */
:root {
  --bg: #e8e4d9;
  --surface: #fffdf8;
  --surface-2: #f1ebdc;
  --ink: #263028;
  --muted: #716a5b;
  --line: #d7c8a7;
  --green: #254d39;
  --green-dark: #173426;
  --amber: #b28a45;
  --red: #943f32;
  --blue: #4e6f72;
  --wood: #70482d;
  --shadow: 0 8px 22px rgba(39, 43, 31, 0.10);
  --radius: 6px;
}

body {
  background: #e8e4d9;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.app {
  width: min(1580px, 100%);
  padding: 18px 24px 32px;
}

.topbar {
  min-height: 104px;
  margin: 0;
  padding: 8px 18px 8px 10px;
  border: 1px solid #8f713b;
  border-radius: 6px;
  background: #1c392b;
  color: #fff8e8;
  box-shadow: 0 10px 24px rgba(21, 36, 27, 0.18);
}

.brand-lockup {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 14px;
}

.brand-mark {
  display: block;
  width: 60px;
  height: 90px;
  flex: 0 0 60px;
  border: 1px solid rgba(229, 195, 119, 0.58);
  border-radius: 4px;
  object-fit: cover;
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.topbar .eyebrow {
  margin: 0;
  color: #e2c47c;
  font-size: 10px;
  letter-spacing: 0.12em;
}

.topbar h1 {
  color: #fff8e8;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 0;
}

.brand-copy > span {
  color: #d7cfba;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.topbar__stats {
  grid-template-columns: repeat(2, minmax(104px, 1fr));
  gap: 8px;
}

.topbar__stats > div {
  min-width: 106px;
  border: 1px solid rgba(226, 196, 124, 0.34);
  border-radius: 4px;
  background: rgba(255, 248, 232, 0.08);
  box-shadow: none;
  padding: 12px;
}

.topbar__stats span {
  color: #d7cfba;
}

.topbar__stats strong {
  color: #fff8e8;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
}

.main-nav {
  top: 0;
  gap: 2px;
  margin: 12px -24px 20px;
  padding: 8px 24px;
  border-top: 1px solid #d7c8a7;
  border-bottom: 1px solid #d7c8a7;
  background: rgba(255, 253, 248, 0.96);
  backdrop-filter: blur(10px);
}

.nav-button {
  min-width: auto;
  min-height: 42px;
  border-radius: 4px;
  background: transparent;
  color: #4a5147;
  padding: 0 16px;
}

.nav-button:hover,
.nav-button:focus-visible {
  background: #f1ebdc;
  color: var(--green-dark);
}

.nav-button.is-active {
  background: var(--amber);
  color: #18281e;
}

.menu-panel,
.cart-panel,
.payment-panel,
.receipt-panel,
.timesheet-panel,
.sales-panel,
.menu-manager {
  border-color: #d7c8a7;
  box-shadow: var(--shadow);
}

.menu-panel,
.payment-panel,
.receipt-panel,
.timesheet-panel,
.sales-panel,
.menu-manager {
  padding: 20px;
}

.cart-panel {
  top: 74px;
  border-top: 4px solid var(--amber);
  padding: 18px;
}

.section-heading,
.cart-header {
  padding-bottom: 12px;
  border-bottom: 1px solid #e3d8c2;
}

.section-heading h2,
.cart-header h2,
.receipt-panel h2,
.timesheet-panel h2,
.sales-panel h2,
.menu-manager h2 {
  font-family: Georgia, "Times New Roman", serif;
  color: #263d2d;
}

.eyebrow {
  color: #8c6b31;
  letter-spacing: 0.1em;
}

label input,
label select,
label textarea,
#paymentOrderSelect {
  border-color: #d7c8a7;
  background: #fffefb;
}

label input:focus,
label select:focus,
label textarea:focus,
#paymentOrderSelect:focus {
  outline: 2px solid rgba(178, 138, 69, 0.38);
  border-color: var(--amber);
}

.category-tabs {
  padding-bottom: 12px;
}

.category-tabs button {
  min-height: 36px;
  border-radius: 4px;
  border-color: #d7c8a7;
  background: #fffdf8;
}

.category-tabs button.is-active {
  border-color: var(--green);
  background: var(--green);
}

.menu-grid {
  gap: 12px;
}

.menu-item {
  min-height: 154px;
  border-color: #d7c8a7;
  border-radius: 5px;
  background-color: #fffdf8;
}

.menu-item:hover,
.menu-item:focus-visible {
  border-color: var(--amber);
  box-shadow: 0 8px 20px rgba(113, 75, 34, 0.16);
}

.menu-item__price {
  color: #8a652b;
}

.primary,
.secondary,
.icon-button,
.cash-chip,
.cash-note,
.discount-presets button {
  border-radius: 4px;
}

.primary {
  background: var(--green);
}

.primary:hover,
.primary:focus-visible {
  background: var(--green-dark);
}

.secondary {
  border-color: #cdbb98;
  background: #fffdf8;
}

.secondary:hover,
.secondary:focus-visible {
  border-color: var(--amber);
  color: var(--green-dark);
  background: #fbf4e5;
}

.totals,
.discount-panel,
.split-panel,
.cash-display div {
  background: #f5f0e5;
}

.grand-total {
  border-color: #d7c8a7;
  color: var(--green-dark);
}

.tab-card,
.staff-card,
.compact-row,
.tender-row,
.cash-popup {
  border-color: #d7c8a7;
  border-radius: 5px;
  background: #fffdf8;
}

.status-pill {
  border-radius: 4px;
  background: #e8efe6;
  color: var(--green-dark);
}

.metric {
  border-radius: 5px;
  box-shadow: none;
}

.metric:first-child {
  border-top: 4px solid var(--green);
}

.metric:nth-child(2) {
  border-top-color: var(--amber);
}

.receipt {
  border-color: #cdbb98;
  border-radius: 4px;
  background: #fffdf8;
}

th {
  color: #7c6132;
}

.toast {
  border: 1px solid rgba(226, 196, 124, 0.48);
  border-radius: 4px;
  background: #1c392b;
}

@media (max-width: 680px) {
  .app {
    padding: 10px 12px 24px;
  }

  .topbar {
    align-items: flex-start;
    padding: 8px;
  }

  .brand-mark {
    width: 46px;
    height: 69px;
    flex-basis: 46px;
  }

  .topbar h1 {
    font-size: 24px;
  }

  .topbar__stats {
    width: 100%;
  }

  .main-nav {
    margin-right: -12px;
    margin-left: -12px;
    padding-right: 12px;
    padding-left: 12px;
  }
}

/* Mobile grid containment */
@media (max-width: 1020px) {
  .order-layout,
  .payment-layout,
  .staff-layout,
  .management-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .menu-panel,
  .cart-panel,
  .payment-panel,
  .receipt-panel,
  .timesheet-panel,
  .sales-panel,
  .menu-manager,
  .section-heading > *,
  .cart-header > * {
    min-width: 0;
  }
}

/* Final menu tile constraints: these intentionally follow the legacy theme overrides. */
.menu-grid {
  grid-template-columns: repeat(auto-fill, minmax(158px, 1fr));
  gap: 12px;
}

.menu-item {
  min-height: 0;
  aspect-ratio: 1 / 1.08;
  border-color: #2e322d;
  border-radius: 8px;
  background: #090b09;
}

.menu-item__price {
  color: #ffffff;
}

@media (max-width: 680px) {
  .menu-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .menu-item {
    min-height: 0;
    aspect-ratio: 1 / 1.12;
  }
}

/* Keep the Madri glass visible even when the supplier artwork has a pale backdrop. */
.menu-item--reference-madri .menu-item__art {
  background-color: #e8e1d4;
  background-blend-mode: normal;
  filter: saturate(1.28) contrast(1.22);
}

/* Final brand plate overrides follow legacy theme rules so each logo remains distinct. */
.menu-item--reference-styled.menu-item--drink .menu-item__wordmark {
  top: 31%;
  right: 9%;
  left: 9%;
  min-height: 58px;
  border-width: 2px;
  box-shadow: 0 5px 16px rgba(0, 0, 0, .68);
}

.menu-item--reference-styled.menu-item--drink .menu-item__brand-main {
  -webkit-text-stroke: 1.5px var(--brand-outline, rgba(255, 255, 255, .96));
}

.menu-item--brand-coca-cola {
  --badge-background: #bd1727;
  --badge-border: #ffffff;
  --wordmark-color: #ffffff;
  --badge-detail: #ffffff;
  --brand-outline: #bd1727;
}

.menu-item--brand-coke-zero,
.menu-item--brand-dr-pepper {
  --badge-background: #151515;
  --badge-border: #e01c2b;
  --wordmark-color: #ffffff;
  --badge-detail: #e01c2b;
  --brand-outline: #151515;
}

.menu-item--brand-fanta {
  --badge-background: #f16921;
  --badge-border: #ffffff;
  --wordmark-color: #123f87;
  --badge-detail: #ffffff;
  --brand-outline: #ffffff;
}

.menu-item--brand-vimto {
  --badge-background: #4b245e;
  --badge-border: #f8c84a;
  --wordmark-color: #ffffff;
  --badge-detail: #f8c84a;
  --brand-outline: #4b245e;
}

.menu-item--brand-red-bull {
  --badge-background: #0f3c75;
  --badge-border: #e8e8e5;
  --wordmark-color: #ffffff;
  --badge-detail: #e32f2f;
  --brand-outline: #0f3c75;
}

.menu-item--brand-j2o,
.menu-item--brand-oasis {
  --badge-background: #24391d;
  --badge-border: #f3a13d;
  --wordmark-color: #f6d055;
  --badge-detail: #ffffff;
  --brand-outline: #24391d;
}

.menu-item--brand-appletiser,
.menu-item--brand-holsten {
  --badge-background: #0d5633;
  --badge-border: #edcc62;
  --wordmark-color: #ffffff;
  --badge-detail: #f3d575;
  --brand-outline: #0d5633;
}

.menu-item--brand-holsten .menu-item__brand-main,
.menu-item--brand-becks .menu-item__brand-main,
.menu-item--brand-staropramen .menu-item__brand-main {
  font-family: "Arial Narrow", "Arial Black", Arial, sans-serif;
  font-weight: 900;
  letter-spacing: .02em;
}

@media (max-width: 680px) {
  .menu-item--reference-styled.menu-item--drink .menu-item__wordmark {
    top: 30%;
    min-height: 50px;
  }
}

/* Till screens need the product board to begin high in the viewport while searching. */
@media (min-width: 681px) {
  .app {
    padding-top: 10px;
  }

  .topbar {
    min-height: 76px;
    padding: 6px 14px 6px 8px;
  }

  .brand-lockup {
    gap: 10px;
  }

  .brand-mark {
    width: 46px;
    height: 66px;
    flex-basis: 46px;
  }

  .topbar h1 {
    font-size: 26px;
  }

  .brand-copy > span {
    font-size: 10px;
  }

  .topbar__stats > div {
    min-width: 94px;
    padding: 8px 10px;
  }

  .topbar__stats strong {
    font-size: 18px;
  }

  .main-nav {
    margin-top: 8px;
    margin-bottom: 10px;
    padding-top: 5px;
    padding-bottom: 5px;
  }

  .nav-button {
    min-height: 36px;
    padding: 0 14px;
  }

  .menu-panel {
    padding: 14px;
  }

  .section-heading {
    margin-bottom: 10px;
    padding-bottom: 8px;
  }

  .search-box {
    width: min(300px, 100%);
  }

  .search-box input {
    min-height: 40px;
    padding-block: 8px;
  }

  .category-tabs {
    padding-bottom: 8px;
  }

  .category-tabs button {
    min-height: 34px;
  }
}

.nav-button--link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

/* The touch keyboard reduces the visual viewport, so search prioritises products over branding. */
body.is-searching-menu .topbar {
  display: none;
}

body.is-searching-menu .app {
  padding-top: 0;
}

body.is-searching-menu .main-nav {
  position: sticky;
  z-index: 8;
  top: 0;
  margin-top: 0;
}

body.is-searching-menu .menu-panel {
  padding-top: 8px;
}

body.is-searching-menu .section-heading {
  position: sticky;
  z-index: 7;
  top: 47px;
  margin: 0 -14px 8px;
  padding: 8px 14px;
  background: #fffdf8;
}

body.is-searching-menu .category-tabs {
  display: none;
}

body.is-searching-menu .menu-grid {
  scroll-margin-top: 112px;
}

@media (max-width: 680px) {
  body.is-searching-menu .main-nav {
    top: 0;
  }

  body.is-searching-menu .section-heading {
    top: 58px;
    margin-right: -12px;
    margin-left: -12px;
    padding-right: 12px;
    padding-left: 12px;
  }
}
