:root {
  color-scheme: light;
  --ink: #201915;
  --muted: #6f6259;
  --line: #e6ddd3;
  --paper: #f7f3ee;
  --surface: #fffaf4;
  --surface-strong: #ffffff;
  --brand: #0e6f63;
  --brand-dark: #063d37;
  --coffee: #5b3525;
  --copper: #b97943;
  --cream: #f2dfc3;
  --accent: #b3261e;
  --shadow: 0 18px 45px rgba(45, 31, 22, 0.10);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  background:
    linear-gradient(180deg, rgba(255, 250, 244, 0.92), rgba(247, 243, 238, 0.98)),
    radial-gradient(circle at top left, rgba(185, 121, 67, 0.12), transparent 34%);
  color: var(--ink);
}

[hidden] {
  display: none !important;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

.topbar {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px clamp(16px, 4vw, 44px);
  border-bottom: 1px solid rgba(91, 53, 37, 0.12);
  background: rgba(255, 250, 244, 0.88);
  backdrop-filter: blur(18px);
  position: sticky;
  top: 0;
  z-index: 20;
  overflow-x: hidden;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  color: #fff7ed;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(6, 61, 55, 0.22);
}

.brand strong {
  display: block;
  font-size: 18px;
}

.brand small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.customer-topbar {
  min-height: 62px;
  justify-content: center;
  padding: 10px 16px;
}

.customer-topbar .brand {
  pointer-events: none;
}

.customer-public-page .page {
  margin-top: 14px;
}

.public-topbar {
  position: sticky;
}

.public-nav .nav-order {
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  box-shadow: 0 10px 20px rgba(14, 111, 99, 0.18);
}

.main-nav {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  min-width: 0;
}

.main-nav::-webkit-scrollbar,
.category-strip::-webkit-scrollbar {
  display: none;
}

.main-nav a,
.main-nav button {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 8px 11px;
  color: var(--muted);
  text-decoration: none;
  background: transparent;
}

.main-nav a.is-active {
  color: #ffffff;
  background: var(--brand);
  box-shadow: 0 8px 18px rgba(14, 111, 99, 0.18);
}

.main-nav a:hover,
.main-nav button:hover {
  color: var(--ink);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.68);
}

nav form {
  margin: 0;
}

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

button,
.primary,
.button-link {
  min-height: 42px;
  border: 0;
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  color: #ffffff;
  padding: 11px 15px;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 10px 20px rgba(14, 111, 99, 0.18);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  box-shadow: none;
}

.ghost-link {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 250, 244, 0.52);
  color: #fff7ed;
  padding: 10px 14px;
  border-radius: 8px;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.10);
}

.ghost-link.compact {
  color: var(--brand-dark);
  border-color: var(--line);
  background: #ffffff;
}

.page {
  width: min(1180px, calc(100% - 28px));
  margin: 24px auto 44px;
}

.hero-shell {
  min-height: 360px;
  display: flex;
  align-items: center;
  margin-bottom: 18px;
  padding: clamp(22px, 5vw, 48px);
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  color: #fff7ed;
  background:
    linear-gradient(90deg, rgba(20, 14, 11, 0.86), rgba(20, 14, 11, 0.58) 44%, rgba(20, 14, 11, 0.10)),
    url("images/coffeecoffee-hero.png") center / cover;
  box-shadow: var(--shadow);
}

.hero-shell::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 6px;
  background: linear-gradient(90deg, var(--copper), var(--brand), var(--cream));
}

.internet-entry-hero {
  min-height: 430px;
  display: flex;
  align-items: flex-end;
  margin-bottom: 18px;
  padding: clamp(24px, 6vw, 48px);
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  color: #fff7ed;
  background:
    linear-gradient(90deg, rgba(20, 14, 11, 0.86), rgba(20, 14, 11, 0.42)),
    url("images/coffeecoffee-hero.png") center / cover;
  box-shadow: var(--shadow);
}

.corporate-hero {
  min-height: min(640px, calc(100vh - 116px));
  display: flex;
  align-items: flex-end;
  margin-bottom: 18px;
  padding: clamp(24px, 6vw, 54px);
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  color: #fff7ed;
  background:
    linear-gradient(90deg, rgba(20, 14, 11, 0.88), rgba(20, 14, 11, 0.44), rgba(20, 14, 11, 0.18)),
    url("images/coffeecoffee-hero.png") center / cover;
  box-shadow: var(--shadow);
}

.corporate-hero-content {
  width: min(700px, 100%);
}

.corporate-hero h1 {
  max-width: 12ch;
  margin: 8px 0 12px;
  font-size: clamp(38px, 7vw, 72px);
  line-height: 1;
}

.corporate-hero p {
  max-width: 58ch;
  color: rgba(255, 247, 237, 0.84);
  font-size: 17px;
  line-height: 1.55;
}

.corporate-band,
.taste-showcase {
  margin: 18px 0;
  padding: clamp(20px, 4vw, 34px) 0;
}

.corporate-band .section-head p {
  max-width: 520px;
}

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

.corporate-feature-grid article,
.taste-grid article {
  border: 1px solid rgba(91, 53, 37, 0.12);
  border-radius: 8px;
  padding: 16px;
  background: rgba(255, 250, 244, 0.94);
  box-shadow: 0 12px 30px rgba(45, 31, 22, 0.06);
}

.corporate-feature-grid strong {
  display: block;
  margin-bottom: 8px;
  font-size: 20px;
}

.corporate-feature-grid span {
  color: var(--muted);
}

.taste-showcase {
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) 1.18fr;
  align-items: center;
  gap: 18px;
}

.taste-showcase p {
  color: var(--muted);
  line-height: 1.55;
}

.taste-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  min-width: 0;
}

.taste-grid article {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.taste-grid img {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
}

.loyalty-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.branch-showcase {
  border-top: 1px solid var(--line);
}

.branch-public-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.branch-public-card {
  min-width: 0;
  display: grid;
  gap: 14px;
  align-content: space-between;
  border: 1px solid rgba(91, 53, 37, 0.12);
  border-radius: 8px;
  padding: 16px;
  background: rgba(255, 250, 244, 0.94);
  box-shadow: 0 12px 30px rgba(45, 31, 22, 0.06);
}

.branch-public-card h3 {
  margin: 4px 0 8px;
  font-size: 22px;
}

.branch-public-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.branch-public-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.branch-public-facts span {
  border: 1px solid rgba(14, 111, 99, 0.16);
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--brand-dark);
  background: rgba(14, 111, 99, 0.08);
  font-size: 12px;
  font-weight: 800;
}

.loyalty-band p {
  color: var(--muted);
}

.internet-entry-copy {
  width: min(680px, 100%);
  position: relative;
  z-index: 1;
}

.internet-entry-copy h1 {
  margin: 8px 0 12px;
  font-size: clamp(34px, 6vw, 62px);
  line-height: 1.02;
  max-width: 12ch;
}

.internet-entry-copy p {
  max-width: 58ch;
  color: rgba(255, 247, 237, 0.84);
  font-size: 17px;
  line-height: 1.55;
}

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

.entry-card {
  display: grid;
  align-content: start;
  gap: 12px;
}

.entry-card p {
  margin: 0;
  color: var(--muted);
}

.table-entry-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  gap: 8px;
}

.table-entry-list a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  color: var(--brand-dark);
  background: #ffffff;
  text-decoration: none;
  font-weight: 800;
}

.hero-content {
  width: min(650px, 100%);
  position: relative;
  z-index: 1;
}

.admin-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
  padding: clamp(22px, 4vw, 34px);
  border-radius: 8px;
  color: #fff7ed;
  background:
    linear-gradient(90deg, rgba(6, 61, 55, 0.96), rgba(32, 25, 21, 0.78) 52%, rgba(179, 38, 30, 0.42)),
    url("images/coffeecoffee-hero.png") center / cover;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.admin-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 5px;
  background: linear-gradient(90deg, #1fb89c, var(--copper), var(--accent));
}

.admin-hero > * {
  position: relative;
  z-index: 1;
}

.admin-hero h1 {
  margin: 6px 0 10px;
  font-size: clamp(32px, 5vw, 52px);
}

.admin-hero p {
  max-width: 620px;
  color: rgba(255, 247, 237, 0.84);
}

.admin-hero-pulse {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-hero-pulse span {
  border: 1px solid rgba(255, 247, 237, 0.24);
  border-radius: 999px;
  padding: 7px 10px;
  color: rgba(255, 247, 237, 0.88);
  background: rgba(255, 255, 255, 0.10);
  font-size: 12px;
  font-weight: 900;
}

.admin-hero-actions {
  width: min(390px, 100%);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.admin-hero-actions a {
  justify-content: center;
  text-align: center;
}

.admin-live-orbit {
  width: 156px;
  height: 156px;
  flex: 0 0 156px;
  display: grid;
  place-content: center;
  border: 1px solid rgba(255, 247, 237, 0.24);
  border-radius: 50%;
  text-align: center;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.18) 0 38%, transparent 39%),
    conic-gradient(from 180deg, #1fb89c, var(--copper), var(--accent), #1fb89c);
  box-shadow: inset 0 0 0 10px rgba(20, 14, 11, 0.30), 0 18px 40px rgba(0, 0, 0, 0.24);
}

.admin-live-orbit strong,
.admin-live-orbit span,
.admin-live-orbit small {
  position: relative;
  z-index: 1;
}

.admin-live-orbit strong {
  color: #ffffff;
  font-size: 44px;
  line-height: 1;
}

.admin-live-orbit span,
.admin-live-orbit small {
  color: rgba(255, 247, 237, 0.86);
  font-weight: 900;
}

.admin-live-orbit small {
  font-size: 12px;
}

.admin-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.admin-metrics a {
  min-height: 126px;
  display: grid;
  align-content: space-between;
  border: 1px solid rgba(91, 53, 37, 0.10);
  border-radius: 8px;
  padding: 16px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(45, 31, 22, 0.06);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.admin-metrics a::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: currentColor;
}

.admin-metrics a::after {
  content: "";
  position: absolute;
  right: -18px;
  bottom: -22px;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.08;
}

.admin-metrics .metric-revenue {
  color: var(--brand-dark);
}

.admin-metrics .metric-tables {
  color: #2364aa;
}

.admin-metrics .metric-takeaway {
  color: #7a4d00;
}

.admin-metrics .metric-claims {
  color: var(--accent);
}

.admin-metrics a:hover {
  border-color: rgba(14, 111, 99, 0.24);
  transform: translateY(-1px);
}

.admin-metrics span,
.admin-metrics small {
  color: var(--muted);
  font-size: 13px;
}

.admin-metrics strong {
  display: block;
  margin: 8px 0;
  color: currentColor;
  font-size: clamp(26px, 4vw, 36px);
  line-height: 1;
}

.dashboard-chart-grid {
  display: grid;
  grid-template-columns: minmax(340px, 1.35fr) repeat(2, minmax(260px, 0.82fr));
  gap: 14px;
  margin-bottom: 16px;
}

.dashboard-chart-card {
  display: grid;
  gap: 14px;
  min-width: 0;
  overflow: hidden;
}

.dashboard-chart-card.is-wide {
  min-height: 320px;
}

.dashboard-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  border: 0;
  padding: 0;
  color: inherit;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.dashboard-card-head strong,
.dashboard-card-head em {
  display: block;
}

.dashboard-card-head strong {
  color: var(--coffee);
  font-size: clamp(20px, 2.4vw, 28px);
  font-style: normal;
}

.dashboard-card-head small {
  border-radius: 999px;
  padding: 7px 10px;
  color: var(--brand-dark);
  background: rgba(14, 111, 99, 0.09);
  font-weight: 900;
}

.dashboard-hour-bars {
  height: 220px;
  display: flex;
  align-items: end;
  gap: 8px;
  border: 1px solid rgba(14, 111, 99, 0.12);
  border-radius: 8px;
  padding: 16px 12px 28px;
  background:
    linear-gradient(180deg, rgba(14, 111, 99, 0.08), transparent 1px) 0 0 / 100% 25%,

/* Design system utilities and accessibility helpers */
:root {
  --gap-xs: 6px;
  --gap-sm: 10px;
  --gap-md: 16px;
  --gap-lg: 24px;
  --text-small: 13px;
  --text-base: 15px;
  --text-large: 18px;
}

/* Focus styles for keyboard accessibility */
:focus {
  outline: none;
}
:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--brand) 30%, #fff 0%);
  outline-offset: 2px;
  border-radius: 6px;
}

/* Form controls */
.form-field {
  display: block;
  width: 100%;
  margin-bottom: var(--gap-md);
}
.form-field label { display:block; margin-bottom:6px; font-size:var(--text-small); color:var(--muted); }
.input, input[type="text"], input[type="email"], input[type="password"], select, textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface-strong);
  color: var(--ink);
  font-size: var(--text-base);
}
.input:focus, select:focus, textarea:focus { box-shadow: 0 6px 18px rgba(14,111,99,0.06); border-color: var(--brand); }
.stack > * + * { margin-top: var(--gap-sm); }

/* Buttons */
.btn { display:inline-flex; align-items:center; justify-content:center; gap:8px; padding:10px 14px; border-radius:8px; cursor:pointer; border:0; font-weight:600; }
.btn-primary { background: linear-gradient(135deg, var(--brand-dark), var(--brand)); color:#fff; box-shadow: 0 10px 20px rgba(14,111,99,0.12); }
.btn-ghost { background: transparent; border: 1px solid var(--line); color: var(--ink); }
.btn-link { background: transparent; color: var(--brand); padding:0; box-shadow:none; }
.btn[disabled] { opacity:0.5; cursor:not-allowed; }

/* Card */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: 0 8px 24px rgba(45,31,22,0.04); }

/* Toast / notification */
.toast-tray { position: fixed; right: 18px; bottom: 18px; display:flex; flex-direction:column; gap:10px; z-index:9999; }
.toast { min-width: 260px; max-width: 420px; padding: 12px 14px; border-radius: 10px; color: #fff; background: rgba(0,0,0,0.8); box-shadow: 0 8px 24px rgba(0,0,0,0.2); }
.toast.success { background: linear-gradient(135deg, #2f9647, #1b7a38); }
.toast.error { background: linear-gradient(135deg, #b3261e, #8f1f17); }
.toast.info { background: linear-gradient(135deg, #0e6f63, #0b5347); }

/* Utilities */
.muted { color: var(--muted); }
.stack { display:block; }
.inline-form { display:inline-flex; gap:8px; align-items:center; }
    linear-gradient(180deg, #ffffff, rgba(14, 111, 99, 0.04));
}

.dashboard-hour-bars span {
  flex: 1 1 16px;
  min-width: 10px;
  position: relative;
  border-radius: 8px 8px 2px 2px;
  background: linear-gradient(180deg, var(--brand), var(--copper));
  box-shadow: 0 10px 20px rgba(14, 111, 99, 0.16);
}

.dashboard-hour-bars b {
  position: absolute;
  left: 50%;
  bottom: -22px;
  transform: translateX(-50%);
  color: var(--muted);
  font-size: 11px;
}

.dashboard-rank-list {
  display: grid;
  gap: 12px;
}

.dashboard-rank-list div {
  display: grid;
  grid-template-columns: minmax(90px, 0.9fr) minmax(0, 1.2fr) auto;
  align-items: center;
  gap: 9px;
}

.dashboard-rank-list span,
.dashboard-rank-list strong {
  font-weight: 900;
}

.dashboard-rank-list span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-rank-list strong {
  font-size: 13px;
}

.dashboard-rank-list em {
  height: 11px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(14, 111, 99, 0.10);
}

.dashboard-rank-list b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), var(--copper));
}

.dashboard-detail {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.dashboard-detail p {
  margin-top: 0;
  color: var(--muted);
}

.dashboard-chart-card.is-open {
  border-color: rgba(14, 111, 99, 0.28);
  box-shadow: 0 20px 42px rgba(45, 31, 22, 0.10);
}

.admin-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 14px;
  margin-bottom: 14px;
}

.admin-orders-table tbody tr {
  cursor: pointer;
}

.admin-orders-table tbody tr:hover {
  background: rgba(14, 111, 99, 0.06);
}

.live-flow-panel {
  margin-bottom: 16px;
}

.live-flow-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: flex-end;
  gap: 10px;
}

.live-flow-actions label {
  min-width: 190px;
}

.live-order-list {
  display: grid;
  gap: 9px;
}

.live-order-row {
  display: grid;
  grid-template-columns: 74px minmax(140px, 1.2fr) auto auto minmax(90px, 0.7fr);
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--brand);
  border-radius: 8px;
  padding: 12px;
  color: var(--ink);
  background: linear-gradient(90deg, #ffffff, rgba(14, 111, 99, 0.04));
  text-decoration: none;
}

.live-order-row:hover {
  border-color: rgba(14, 111, 99, 0.28);
  transform: translateY(-1px);
}

.live-order-row strong,
.live-order-row b {
  color: var(--coffee);
}

.live-order-row span,
.live-order-row small {
  color: var(--muted);
  font-weight: 800;
}

.branch-performance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.branch-performance-grid a {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(14, 111, 99, 0.16);
  border-radius: 8px;
  padding: 14px;
  color: var(--ink);
  background: linear-gradient(135deg, rgba(14, 111, 99, 0.08), rgba(255, 255, 255, 0.96));
  text-decoration: none;
}

.branch-performance-grid strong {
  color: var(--brand-dark);
  font-size: 18px;
}

.branch-performance-grid span {
  font-size: 22px;
  font-weight: 900;
}

.branch-performance-grid small {
  color: var(--muted);
  font-weight: 800;
}

.branch-performance-grid em {
  display: block;
  width: 100%;
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(14, 111, 99, 0.12);
}

.branch-performance-grid em::before {
  content: "";
  display: block;
  width: var(--branch-fill);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), var(--copper));
}

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

.quick-action-grid a,
.station-summary div,
.payment-chip-grid div,
.top-item-list div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px;
  background: #ffffff;
  text-decoration: none;
}

.quick-action-grid a {
  min-height: 94px;
  display: grid;
  align-content: space-between;
  position: relative;
  overflow: hidden;
}

.quick-action-grid a::after {
  content: ">";
  position: absolute;
  right: 13px;
  top: 12px;
  color: var(--brand);
  font-weight: 900;
}

.quick-action-grid a:hover {
  border-color: rgba(14, 111, 99, 0.24);
  background: rgba(14, 111, 99, 0.05);
  transform: translateY(-1px);
}

.station-summary div {
  border-left: 5px solid var(--brand);
  background: linear-gradient(135deg, #ffffff, rgba(14, 111, 99, 0.06));
}

.station-summary div:nth-child(2) {
  border-left-color: #2364aa;
  background: linear-gradient(135deg, #ffffff, rgba(35, 100, 170, 0.06));
}

.quick-action-grid strong,
.station-summary strong,
.top-item-list strong {
  display: block;
  margin-bottom: 5px;
  color: var(--ink);
}

.quick-action-grid span,
.station-summary span,
.top-item-list span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.station-summary,
.payment-chip-grid,
.top-item-list {
  display: grid;
  gap: 10px;
}

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

.payment-chip-grid {
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
}

.assignment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.assignment-card {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-left: 5px solid rgba(14, 111, 99, 0.42);
  border-radius: 8px;
  padding: 14px;
  background: linear-gradient(135deg, #ffffff, rgba(255, 250, 244, 0.94));
}

.assignment-actions {
  display: grid;
  gap: 10px;
}

.assignment-card strong,
.assignment-card span {
  display: block;
}

.assignment-card span {
  color: var(--muted);
  font-size: 13px;
}

.staff-form-grid,
.staff-edit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
  align-items: end;
}

.staff-command-panel {
  background: linear-gradient(180deg, #ffffff, rgba(14, 111, 99, 0.04));
}

.staff-toolbar {
  display: grid;
  grid-template-columns: minmax(240px, 1.2fr) repeat(3, minmax(160px, 0.75fr));
  gap: 12px;
  margin-bottom: 14px;
  border: 1px solid rgba(14, 111, 99, 0.14);
  border-radius: 8px;
  padding: 14px;
  background: rgba(14, 111, 99, 0.06);
}

.assignment-toolbar {
  grid-template-columns: minmax(240px, 1.2fr) repeat(2, minmax(180px, 0.8fr));
}

.branch-hours-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 14px;
}

.branch-hours-card {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #ffffff;
}

.branch-hours-card h3 {
  margin: 0 0 4px;
}

.branch-toggle-row {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(14, 111, 99, 0.16);
  border-radius: 8px;
  padding: 10px;
  color: var(--brand-dark);
  background: rgba(14, 111, 99, 0.08);
  font-weight: 800;
}

.branch-toggle-row input {
  width: auto;
}

.branch-hours-row {
  display: grid;
  grid-template-columns: minmax(90px, 1fr) 92px 92px auto;
  gap: 8px;
  align-items: center;
}

.branch-hours-row > span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.branch-hours-row input[type="time"] {
  padding: 8px;
}

.staff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 14px;
  margin-top: 14px;
}

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

.staff-list-item {
  border: 1px solid rgba(91, 53, 37, 0.12);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(45, 31, 22, 0.05);
  overflow: hidden;
}

.staff-list-row {
  display: grid;
  grid-template-columns: 54px minmax(220px, 1.25fr) minmax(130px, 0.7fr) 96px 88px 110px;
  align-items: center;
  gap: 12px;
  padding: 12px;
}

.staff-list-row img {
  width: 54px;
  height: 54px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 8px 18px rgba(6, 61, 55, 0.12);
}

.staff-list-main {
  min-width: 0;
}

.staff-list-main h2 {
  margin: 3px 0;
  font-size: 18px;
}

.staff-list-main p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.staff-list-chip {
  border-radius: 999px;
  padding: 7px 10px;
  color: var(--brand-dark);
  background: rgba(14, 111, 99, 0.09);
  font-size: 12px;
  font-weight: 900;
  text-align: center;
  white-space: nowrap;
}

.staff-list-chip.is-active {
  color: #267046;
  background: rgba(38, 112, 70, 0.10);
}

.staff-list-chip.is-passive {
  color: #9f2d20;
  background: rgba(179, 38, 30, 0.10);
}

.staff-list-item .staff-edit-grid {
  margin: 0;
  border-top: 1px solid var(--line);
  padding: 14px;
  background: #fffaf4;
}

.staff-card {
  display: grid;
  gap: 14px;
  border: 1px solid rgba(91, 53, 37, 0.12);
  border-radius: 8px;
  padding: 16px;
  background: rgba(255, 250, 244, 0.94);
  box-shadow: 0 12px 30px rgba(45, 31, 22, 0.06);
}

.staff-command-card {
  background: linear-gradient(180deg, #ffffff, #fffaf4);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.staff-command-card:hover {
  border-color: rgba(14, 111, 99, 0.24);
  box-shadow: 0 18px 40px rgba(45, 31, 22, 0.10);
  transform: translateY(-1px);
}

.staff-command-card > .plain-button {
  justify-content: center;
  width: 100%;
}

.staff-command-card .staff-edit-grid {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.staff-card-head {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  align-items: center;
}

.staff-card-head img {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 12px 24px rgba(6, 61, 55, 0.14);
}

.staff-card-head h2 {
  margin: 4px 0;
  font-size: 21px;
}

.staff-card-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.staff-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.staff-facts span {
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--brand-dark);
  background: rgba(14, 111, 99, 0.09);
  font-size: 12px;
  font-weight: 800;
}

.payment-chip-grid strong {
  display: block;
  margin-top: 6px;
  color: var(--brand-dark);
  font-size: 20px;
}

.payment-chip-grid div {
  background: linear-gradient(135deg, #ffffff, rgba(185, 121, 67, 0.08));
}

.top-item-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-left: 5px solid rgba(185, 121, 67, 0.42);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 4px 10px;
  color: var(--brand-dark);
  background: rgba(14, 111, 99, 0.10);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.hero-content h1 {
  margin: 8px 0 12px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.02;
  max-width: 11ch;
}

.hero-content p {
  max-width: 58ch;
  color: rgba(255, 247, 237, 0.82);
  font-size: 17px;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  color: var(--copper);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-shell .eyebrow {
  color: var(--cream);
}

.auth-panel,
.panel,
.metrics article,
.table-tile,
.menu-item,
.order-card,
.day-totals article {
  background: rgba(255, 250, 244, 0.92);
  border: 1px solid rgba(91, 53, 37, 0.12);
  border-radius: var(--radius);
  box-shadow: 0 12px 30px rgba(45, 31, 22, 0.06);
}

.auth-panel,
.panel {
  padding: clamp(18px, 3vw, 26px);
}

.auth-panel {
  width: min(440px, 100%);
  margin: 56px auto;
  position: relative;
  overflow: hidden;
}

.auth-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 6px;
  background: linear-gradient(90deg, var(--brand), var(--copper));
}

.section-head,
.bill-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

h1,
h2 {
  margin: 6px 0 0;
  line-height: 1.15;
}

.stack {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  background: #ffffff;
  color: var(--ink);
}

input:focus,
textarea:focus,
select:focus {
  outline: 3px solid rgba(14, 111, 99, 0.14);
  border-color: var(--brand);
}

.alert {
  color: var(--accent);
}

.notification-tray {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 80;
  display: grid;
  gap: 8px;
  width: min(340px, calc(100% - 32px));
  pointer-events: none;
}

.notification-toast {
  border: 1px solid rgba(14, 111, 99, 0.22);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--brand-dark);
  background: #ffffff;
  box-shadow: 0 18px 44px rgba(45, 31, 22, 0.18);
  font-weight: 800;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.metrics article {
  padding: 18px;
  position: relative;
  overflow: hidden;
}

.metrics article::after {
  content: "";
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(185, 121, 67, 0.28);
  border-radius: 50%;
}

.metrics span,
.menu-item span,
.bill-head span,
.day-totals span,
.order-card span {
  color: var(--muted);
  font-size: 13px;
}

.metrics strong {
  display: block;
  margin-top: 8px;
  font-size: 30px;
}

table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
}

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

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

tr:hover td {
  background: rgba(14, 111, 99, 0.04);
}

.menu-head {
  margin: 0 0 18px;
  padding: 28px;
  border-radius: 8px;
  color: #fff7ed;
  background:
    linear-gradient(90deg, rgba(20, 14, 11, 0.82), rgba(20, 14, 11, 0.38)),
    url("images/coffeecoffee-hero.png") center / cover;
  box-shadow: var(--shadow);
}

.menu-head p {
  color: rgba(255, 247, 237, 0.82);
}

.menu-list {
  display: grid;
  gap: 12px;
}

.menu-edit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 14px;
}

.menu-toolbar {
  display: grid;
  grid-template-columns: minmax(240px, 1.2fr) repeat(2, minmax(180px, 0.8fr));
  gap: 12px;
  margin: 0 0 16px;
  border: 1px solid rgba(14, 111, 99, 0.14);
  border-radius: 8px;
  padding: 14px;
  background: linear-gradient(135deg, rgba(14, 111, 99, 0.06), #ffffff);
}

.menu-edit-card {
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #ffffff;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.menu-edit-card:hover {
  border-color: rgba(14, 111, 99, 0.24);
  box-shadow: 0 14px 30px rgba(45, 31, 22, 0.08);
}

.menu-edit-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.menu-edit-head h2 {
  margin-top: 4px;
  font-size: 21px;
}

.menu-edit-head p {
  margin: 4px 0 0;
  color: var(--muted);
}

.menu-edit-head strong {
  flex: 0 0 auto;
  color: var(--brand-dark);
  font-size: 20px;
}

.menu-edit-actions {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.menu-edit-actions .plain-button {
  min-width: 110px;
}

.menu-edit-body {
  overflow: hidden;
}

.menu-edit-card.is-collapsed .menu-edit-body,
.menu-edit-card.is-collapsed > button {
  display: none;
}

.menu-edit-card.is-collapsed {
  align-content: start;
}

.menu-item {
  display: grid;
  grid-template-columns: 1fr auto 190px;
  gap: 14px;
  align-items: center;
  padding: 16px;
}

.item-controls {
  display: grid;
  gap: 8px;
}

.menu-item h2 {
  margin: 4px 0;
  font-size: 18px;
}

.menu-item p {
  margin: 0;
  color: var(--muted);
}

.sticky {
  position: sticky;
  bottom: 12px;
}

.orders-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.ops-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.86fr) minmax(0, 1.14fr);
  gap: 14px;
}

.ops-card {
  align-self: start;
}

.task-list,
.waiter-order-stack,
.station-lines {
  display: grid;
  gap: 10px;
}

.waiter-profile-card {
  display: grid;
  grid-template-columns: 76px 1fr;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  border: 1px solid rgba(14, 111, 99, 0.18);
  border-radius: 8px;
  padding: 14px;
  background: linear-gradient(135deg, rgba(14, 111, 99, 0.08), rgba(255, 250, 244, 0.96));
}

.waiter-profile-card img {
  width: 76px;
  height: 76px;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 12px 24px rgba(6, 61, 55, 0.16);
}

.waiter-profile-card h2 {
  margin: 4px 0;
  font-size: 22px;
}

.waiter-profile-card p {
  margin: 0;
  color: var(--muted);
}

.customer-waiter-card {
  grid-template-columns: 76px 1fr auto;
}

.task-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #ffffff;
}

.task-row.is-ready {
  border-color: rgba(14, 111, 99, 0.26);
  background: rgba(14, 111, 99, 0.07);
}

.task-row strong,
.station-line strong {
  display: block;
}

.task-row span,
.station-line span,
.station-order-head span,
.station-order-head small {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.compact-table-grid {
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
}

.table-task-list {
  margin-bottom: 16px;
}

.waiter-menu-add {
  margin: 16px 0;
  border: 1px solid rgba(14, 111, 99, 0.16);
  border-radius: 8px;
  padding: 16px;
  background: linear-gradient(135deg, rgba(14, 111, 99, 0.07), #ffffff);
}

.waiter-add-form {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 110px minmax(220px, 0.8fr) auto;
  gap: 12px;
  align-items: end;
}

.waiter-order-card,
.station-order-card {
  border: 1px solid rgba(91, 53, 37, 0.12);
  border-radius: 8px;
  padding: 16px;
  background: rgba(255, 250, 244, 0.94);
  box-shadow: 0 12px 30px rgba(45, 31, 22, 0.06);
  min-width: 0;
}

.station-board {
  min-height: 70vh;
}

.station-order-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

.station-order-card {
  display: grid;
  gap: 12px;
  border-left: 6px solid var(--brand);
}

.station-order-card.is-late {
  border-left-color: var(--accent);
  background: #fff7f3;
}

.station-order-head,
.station-line {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.station-line {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.station-line:first-child {
  border-top: 0;
  padding-top: 0;
}

.station-line em {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 5px 9px;
  color: #7a4d00;
  background: #fde9a8;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.station-note {
  margin: 0;
  border-radius: 8px;
  padding: 10px;
  color: var(--coffee);
  background: #fff2df;
}

.order-card {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.order-card strong {
  font-size: 20px;
}

.table-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

.table-tile {
  min-height: 112px;
  display: grid;
  align-content: space-between;
  padding: 16px;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.table-tile::after {
  content: "";
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.10;
}

.table-tile strong {
  font-size: 21px;
}

.table-tile span {
  color: var(--muted);
}

.table-tile small {
  color: var(--brand-dark);
  font-weight: 800;
}

.table-alert {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  padding: 5px 9px;
  color: #ffffff;
  background: var(--accent);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.table-total {
  color: var(--brand-dark);
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
}

.table-occupancy {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  padding: 5px 9px;
  color: #7a4d00;
  background: #fde9a8;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.table-time-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.table-time-summary span {
  border: 1px solid rgba(14, 111, 99, 0.16);
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--brand-dark);
  background: rgba(14, 111, 99, 0.08);
  font-size: 12px;
  font-weight: 800;
}

.cashier-table-grid .table-tile {
  gap: 8px;
}

.cashier-order-block {
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.status-empty {
  color: #267046;
  border-left: 6px solid #267046;
}

.status-waiting_order,
.status-payment_requested {
  color: #a25f17;
  border-left: 6px solid #c47f17;
}

.status-preparing,
.status-ready,
.status-seated {
  color: #1d5d88;
  border-left: 6px solid #2364aa;
}

.ops-tablet-page .page {
  width: min(100% - 20px, 1320px);
  margin-top: 16px;
}

.ops-tablet-page .panel {
  border-color: rgba(91, 53, 37, 0.14);
  box-shadow: 0 16px 36px rgba(45, 31, 22, 0.08);
}

.ops-tablet-page button,
.ops-tablet-page .button-link,
.ops-tablet-page .plain-button,
.ops-tablet-page .ghost-link,
.ops-tablet-page select,
.ops-tablet-page input {
  min-height: 48px;
}

.ops-tablet-page .section-head h1,
.ops-tablet-page .section-head h2 {
  font-size: clamp(24px, 3vw, 34px);
}

.ops-tablet-page .metrics {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.ops-tablet-page .metrics article,
.ops-tablet-page .day-totals article,
.ops-tablet-page .admin-metrics a {
  min-height: 132px;
  border-left: 6px solid var(--brand);
  background: linear-gradient(135deg, #ffffff, rgba(14, 111, 99, 0.05));
}

.ops-tablet-page .metrics strong,
.ops-tablet-page .day-totals strong {
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1;
}

.ops-tablet-page .ops-grid {
  grid-template-columns: minmax(360px, 0.78fr) minmax(0, 1.22fr);
  gap: 16px;
}

.ops-tablet-page .task-row {
  min-height: 88px;
  padding: 16px;
  border-left: 6px solid rgba(14, 111, 99, 0.44);
}

.ops-tablet-page .task-row.is-ready {
  border-left-color: var(--brand);
}

  .ops-tablet-page .task-row strong {
    font-size: 19px;
  }

  .ops-tablet-page .waiter-add-form {
    grid-template-columns: minmax(280px, 1fr) 120px minmax(220px, 0.8fr) auto;
  }

.ops-tablet-page .compact-table-grid {
  grid-template-columns: repeat(auto-fit, minmax(176px, 1fr));
}

.ops-tablet-page .table-tile {
  min-height: 164px;
  padding: 18px;
  border-radius: 8px;
  box-shadow: 0 12px 26px rgba(45, 31, 22, 0.07);
}

.ops-tablet-page .table-tile strong {
  font-size: clamp(24px, 3vw, 34px);
}

.ops-tablet-page .table-tile span,
.ops-tablet-page .table-tile small {
  font-size: 14px;
}

.ops-tablet-page .table-alert,
.ops-tablet-page .table-occupancy,
.ops-tablet-page .table-total {
  min-height: 30px;
  align-items: center;
  padding: 6px 10px;
  font-size: 13px;
}

.ops-tablet-page .cashier-table-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.ops-tablet-page .station-board {
  min-height: calc(100vh - 118px);
}

.ops-tablet-page .station-order-grid {
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 16px;
}

.ops-tablet-page .station-order-card {
  min-height: 270px;
  border-left-width: 8px;
  padding: 18px;
  background: #ffffff;
}

.ops-tablet-page .station-order-head strong {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1;
}

.ops-tablet-page .station-order-head small {
  border-radius: 999px;
  padding: 8px 11px;
  color: #ffffff;
  background: var(--brand);
  font-size: 14px;
  font-weight: 900;
}

.ops-tablet-page .station-line {
  min-height: 58px;
  align-items: center;
}

.ops-tablet-page .station-line strong {
  font-size: 20px;
}

.ops-tablet-page .station-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ops-tablet-page .station-actions button {
  min-height: 58px;
  font-size: 17px;
  font-weight: 900;
}

.ops-tablet-page .admin-workspace {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
}

.ops-tablet-page .quick-action-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ops-tablet-page .quick-action-grid a {
  min-height: 112px;
}

.ops-tablet-page .admin-orders-table th,
.ops-tablet-page .admin-orders-table td {
  padding: 16px 12px;
}

.compact-table-grid .table-tile:not(.status-empty) {
  color: #8f1d1d;
  border-left-color: rgba(179, 38, 30, 0.78);
  background: rgba(179, 38, 30, 0.12);
}

.compact-table-grid .table-tile:not(.status-empty)::after {
  background: #b3261e;
  opacity: 0.16;
}

.waiter-screen .waiter-dashboard-grid {
  align-items: start;
}

.waiter-screen .waiter-task-panel,
.waiter-screen .waiter-table-panel,
.waiter-screen .waiter-detail-panel {
  min-width: 0;
}

.waiter-screen .waiter-table-panel {
  background: linear-gradient(180deg, #ffffff, #fffaf4);
}

.waiter-screen .waiter-table-grid {
  grid-template-columns: repeat(auto-fit, minmax(188px, 1fr));
  grid-auto-rows: 1fr;
  gap: 12px;
  align-items: stretch;
}

.waiter-screen .waiter-table-grid .table-tile {
  --table-state: #2364aa;
  --table-soft: rgba(35, 100, 170, 0.10);
  --table-pill: #e8f0fb;
  min-height: 178px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 9px;
  border: 1px solid rgba(91, 53, 37, 0.12);
  border-top: 8px solid var(--table-state);
  border-left: 1px solid rgba(91, 53, 37, 0.12);
  border-radius: 8px;
  padding: 14px;
  color: var(--coffee);
  background: linear-gradient(180deg, #ffffff, var(--table-soft));
  box-shadow: 0 14px 28px rgba(45, 31, 22, 0.08);
  isolation: isolate;
  touch-action: manipulation;
}

.waiter-screen .waiter-table-grid .table-tile-main {
  display: contents;
  color: inherit;
  text-decoration: none;
}

.waiter-screen .waiter-table-grid .table-tile::after {
  top: 14px;
  right: 14px;
  bottom: auto;
  width: 11px;
  height: 11px;
  background: var(--table-state);
  opacity: 1;
  box-shadow: 0 0 0 5px var(--table-soft);
}

.waiter-screen .waiter-table-grid .table-tile.is-mine {
  box-shadow: 0 0 0 2px rgba(14, 111, 99, 0.18), 0 14px 28px rgba(45, 31, 22, 0.08);
}

.waiter-screen .waiter-table-grid .table-tile.is-transferable {
  border-top-style: dashed;
}

.waiter-screen .waiter-table-grid .table-tile:active {
  transform: scale(0.985);
}

.waiter-screen .waiter-table-grid .table-tile:focus-visible {
  outline: 3px solid rgba(14, 111, 99, 0.35);
  outline-offset: 3px;
}

.waiter-screen .waiter-table-grid .status-empty {
  --table-state: #267046;
  --table-soft: rgba(38, 112, 70, 0.10);
  --table-pill: #e8f5ed;
}

.waiter-screen .waiter-table-grid .status-waiting_order,
.waiter-screen .waiter-table-grid .status-payment_requested {
  --table-state: #c47f17;
  --table-soft: rgba(196, 127, 23, 0.14);
  --table-pill: #fff2d5;
}

.waiter-screen .waiter-table-grid .status-preparing,
.waiter-screen .waiter-table-grid .status-seated {
  --table-state: #2364aa;
  --table-soft: rgba(35, 100, 170, 0.12);
  --table-pill: #e8f0fb;
}

.waiter-screen .waiter-table-grid .status-ready {
  --table-state: #0e6f63;
  --table-soft: rgba(14, 111, 99, 0.14);
  --table-pill: #e2f4f1;
}

.waiter-screen .waiter-table-grid .table-state-pill {
  width: fit-content;
  max-width: calc(100% - 24px);
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--table-state);
  background: var(--table-pill);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.waiter-screen .waiter-table-grid .table-tile strong {
  display: block;
  max-width: 100%;
  color: var(--coffee);
  font-size: clamp(26px, 3.2vw, 40px);
  line-height: 0.95;
  overflow-wrap: anywhere;
}

.waiter-screen .waiter-table-grid .table-alert {
  max-width: 100%;
  border-radius: 8px;
  padding: 7px 9px;
  line-height: 1.1;
}

.waiter-screen .waiter-table-grid .table-time-row {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
}

.waiter-screen .waiter-table-grid .table-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.waiter-screen .waiter-table-grid .table-bottom-row small {
  min-width: 0;
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.waiter-screen .waiter-table-grid .table-occupancy {
  flex: 0 0 auto;
  border-radius: 8px;
  padding: 7px 9px;
  color: #7a4d00;
  background: #fde9a8;
  font-size: 12px;
  line-height: 1;
}

.table-owner-badge {
  width: fit-content;
  border-radius: 999px;
  padding: 6px 10px;
  color: #ffffff;
  background: var(--brand);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.table-claim-form {
  display: grid;
  margin-top: 2px;
}

.table-claim-form button {
  min-height: 42px;
  border-radius: 8px;
}

.waiter-claim-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 16px 0;
  border: 1px solid rgba(196, 127, 23, 0.24);
  border-radius: 8px;
  padding: 16px;
  background: linear-gradient(135deg, rgba(196, 127, 23, 0.12), #ffffff);
}

.waiter-claim-panel h2 {
  margin: 4px 0 6px;
}

.waiter-claim-panel p {
  margin: 0;
  color: var(--muted);
}

.waiter-screen .task-row form {
  flex: 0 0 auto;
}

.waiter-screen .task-row button,
.waiter-screen .waiter-add-form button,
.waiter-screen .waiter-order-card button,
.waiter-screen .waiter-order-card .button-link {
  font-weight: 900;
}

.waiter-screen .waiter-order-table {
  width: 100%;
}

.waiter-screen .waiter-order-table td:last-child {
  min-width: 132px;
}

.bill-head strong {
  font-size: 30px;
}

.cashier-actions,
.split-options,
.station-actions,
.day-totals,
.end-day-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0;
}

.cash-close-panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  margin: 18px 0;
  border: 1px solid rgba(14, 111, 99, 0.18);
  border-radius: 8px;
  padding: 16px;
  background: rgba(14, 111, 99, 0.06);
}

.cash-close-panel button {
  align-self: end;
}

.cashier-payment-console {
  grid-template-columns: 1fr;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(14, 111, 99, 0.10), rgba(196, 127, 23, 0.10)),
    #fffdf9;
}

.payment-console-head,
.payment-confirm-row,
.cashier-order-payment-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.payment-console-head h2,
.payment-console-head p {
  margin: 4px 0 0;
}

.payment-console-head > strong {
  border-radius: 8px;
  padding: 13px 16px;
  background: var(--brand-dark);
  color: #fff;
  font-size: clamp(24px, 3vw, 34px);
  white-space: nowrap;
}

.payment-method-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.payment-method-card {
  min-height: 94px;
  display: grid;
  place-items: center;
  gap: 6px;
  border: 2px solid rgba(91, 53, 37, 0.12);
  border-radius: 8px;
  background: #ffffff;
  color: var(--text);
  box-shadow: none;
}

.payment-method-card:hover,
.payment-method-card.is-active {
  border-color: var(--brand);
  background: #effaf7;
  color: var(--brand-dark);
}

.payment-method-card span {
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 900;
}

.payment-method-card strong {
  font-size: 13px;
  color: var(--muted);
}

.payment-input-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(140px, 1fr));
  gap: 12px;
}

.payment-confirm-row {
  border: 1px solid rgba(14, 111, 99, 0.18);
  border-radius: 8px;
  padding: 14px;
  background: #ffffff;
}

.payment-confirm-row span,
.cashier-order-payment-row span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.payment-confirm-row strong,
.cashier-order-payment-row strong {
  display: block;
  margin-top: 4px;
  color: var(--coffee);
  font-size: 20px;
}

.cashier-order-payments {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.cashier-order-payment-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}

.cashier-order-payment-row select,
.cashier-order-payment-row input {
  min-width: 120px;
  max-width: 150px;
}

.cashier-report-page {
  display: grid;
  gap: 16px;
}

.cashier-report-filter {
  grid-template-columns: repeat(3, minmax(180px, 1fr));
}

.cashier-report-filter button {
  align-self: end;
}

.cashier-report-grid {
  grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr);
}

.cashier-method-bars div {
  grid-template-columns: 110px minmax(0, 1fr) 150px;
}

.report-shortcuts a.is-active {
  background: var(--brand);
  color: #ffffff;
  border-color: var(--brand);
}

.inline-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.inline-form input,
.inline-form select {
  width: min(220px, 100%);
}

.day-totals article {
  padding: 14px;
  min-width: 170px;
}

.day-totals strong {
  display: block;
  margin-top: 6px;
}

.insight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
}

.report-head h1 {
  max-width: 14ch;
}

.report-filter-panel {
  margin-bottom: 16px;
}

.report-filter-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  gap: 12px;
  align-items: end;
}

.report-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-top: 1px solid var(--line);
  margin-top: 14px;
  padding-top: 14px;
}

.report-shortcuts a {
  border: 1px solid rgba(14, 111, 99, 0.18);
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--brand-dark);
  background: rgba(14, 111, 99, 0.08);
  text-decoration: none;
  font-weight: 900;
}

.report-metrics {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.report-metrics article {
  border-left: 6px solid var(--brand);
  background: linear-gradient(135deg, #ffffff, rgba(14, 111, 99, 0.05));
}

.report-chart-grid {
  display: grid;
  grid-template-columns: minmax(320px, 1.2fr) repeat(3, minmax(240px, 1fr));
  gap: 14px;
  margin: 16px 0;
}

.report-chart-card {
  min-width: 0;
  overflow: hidden;
}

.report-trend-card {
  grid-row: span 2;
}

.report-sparkline {
  height: 260px;
  display: flex;
  align-items: end;
  gap: 8px;
  border: 1px solid rgba(14, 111, 99, 0.12);
  border-radius: 8px;
  padding: 16px 12px 28px;
  background:
    linear-gradient(180deg, rgba(14, 111, 99, 0.08), transparent 1px) 0 0 / 100% 25%,
    linear-gradient(180deg, #ffffff, rgba(14, 111, 99, 0.04));
}

.report-sparkline span {
  flex: 1 1 18px;
  min-width: 12px;
  position: relative;
  border-radius: 8px 8px 2px 2px;
  background: linear-gradient(180deg, var(--brand), var(--copper));
  box-shadow: 0 10px 20px rgba(14, 111, 99, 0.16);
  animation: growBar 520ms ease both;
  animation-delay: var(--delay, 0ms);
}

.report-sparkline b {
  position: absolute;
  left: 50%;
  bottom: -21px;
  transform: translateX(-50%);
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}

.report-rank-list {
  display: grid;
  gap: 12px;
}

.report-rank-row {
  display: grid;
  grid-template-columns: minmax(90px, 0.9fr) minmax(0, 1.4fr) auto;
  align-items: center;
  gap: 10px;
  animation: fadeUp 360ms ease both;
  animation-delay: var(--delay, 0ms);
}

.report-rank-row span,
.report-rank-row strong {
  font-weight: 900;
}

.report-rank-row span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.report-rank-row strong {
  color: var(--coffee);
  font-size: 13px;
}

.report-rank-row em {
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(14, 111, 99, 0.10);
}

.report-rank-row b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), var(--copper));
}

@keyframes growBar {
  from {
    transform: scaleY(0.35);
    opacity: 0.4;
  }
  to {
    transform: scaleY(1);
    opacity: 1;
  }
}

@keyframes fadeUp {
  from {
    transform: translateY(6px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.report-grid {
  align-items: start;
}

.report-grid .panel {
  min-width: 0;
}

.report-grid table {
  font-size: 14px;
}

.report-bar-grid {
  display: grid;
  gap: 10px;
}

.report-bar-grid div {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) 140px;
  align-items: center;
  gap: 12px;
}

.report-bar-grid span,
.report-bar-grid strong {
  font-weight: 900;
}

.report-bar-grid em {
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(14, 111, 99, 0.10);
}

.report-bar-grid b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), var(--copper));
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.account-panel {
  max-width: 760px;
  margin: 0 auto;
}

.password-form {
  align-items: end;
}

.form-hint {
  align-self: center;
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.form-hint.is-warning {
  color: #9f2d20;
}

.form-hint.is-ok {
  color: var(--brand-dark);
}

.branch-admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.branch-hero {
  position: relative;
  overflow: hidden;
}

.branch-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 5px;
  background: linear-gradient(90deg, #1fb89c, var(--copper), var(--accent));
}

.definitions-hero {
  background:
    linear-gradient(90deg, rgba(20, 14, 11, 0.88), rgba(6, 61, 55, 0.74)),
    url("images/coffeecoffee-hero.png") center / cover;
}

.branch-hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.branch-hero-stats span {
  border: 1px solid rgba(255, 247, 237, 0.24);
  border-radius: 999px;
  padding: 8px 11px;
  background: rgba(255, 255, 255, 0.10);
  font-weight: 900;
}

.branch-hero-stats strong {
  color: #ffffff;
  font-size: 18px;
}

.definition-backline {
  margin: 14px 0 0;
}

.definition-backline a {
  display: inline-flex;
  border: 1px solid rgba(255, 247, 237, 0.26);
  border-radius: 999px;
  padding: 8px 12px;
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.10);
  text-decoration: none;
  font-weight: 900;
}

.definition-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.definition-card {
  min-height: 260px;
  display: grid;
  align-content: space-between;
  gap: 18px;
  border: 1px solid rgba(91, 53, 37, 0.12);
  border-top: 7px solid var(--brand);
  border-radius: 8px;
  padding: 20px;
  color: var(--coffee);
  background: linear-gradient(180deg, #ffffff, rgba(14, 111, 99, 0.06));
  text-decoration: none;
  box-shadow: 0 16px 36px rgba(45, 31, 22, 0.08);
  position: relative;
  overflow: hidden;
}

.definition-card::after {
  content: "";
  position: absolute;
  right: -36px;
  bottom: -46px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.07;
}

.definition-card.is-primary {
  border-top-color: var(--accent);
  background: linear-gradient(180deg, #ffffff, rgba(179, 38, 30, 0.06));
}

.definition-card h2 {
  margin: 6px 0 8px;
  font-size: clamp(24px, 3vw, 34px);
}

.definition-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.definition-card strong {
  width: fit-content;
  border-radius: 999px;
  padding: 9px 13px;
  color: #ffffff;
  background: var(--brand);
}

.definition-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 46px rgba(45, 31, 22, 0.12);
}

.definition-note {
  border-left: 7px solid var(--brand);
}

.branch-command-panel {
  background: linear-gradient(180deg, #ffffff, rgba(14, 111, 99, 0.04));
}

.branch-toolbar {
  display: grid;
  grid-template-columns: minmax(240px, 1.2fr) minmax(180px, 0.8fr);
  gap: 12px;
  margin-bottom: 14px;
  border: 1px solid rgba(14, 111, 99, 0.14);
  border-radius: 8px;
  padding: 14px;
  background: rgba(14, 111, 99, 0.06);
}

.branch-create-panel {
  padding: 0;
  overflow: hidden;
}

.branch-create-panel summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px;
  cursor: pointer;
  list-style: none;
}

.branch-create-panel summary::-webkit-details-marker {
  display: none;
}

.branch-create-panel summary span {
  display: grid;
  gap: 3px;
}

.branch-create-panel summary b {
  color: var(--coffee);
  font-size: 20px;
}

.branch-create-panel summary small {
  color: var(--muted);
  font-weight: 800;
}

.branch-create-panel summary strong {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #ffffff;
  background: var(--brand);
  font-size: 24px;
}

.branch-create-panel[open] summary strong {
  transform: rotate(45deg);
}

.branch-create-panel form {
  padding: 0 18px 18px;
}

.branch-admin-card,
.branch-table-card {
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(45, 31, 22, 0.06);
}

.branch-command-card,
.branch-table-command-card {
  border-top: 6px solid var(--brand);
  background: linear-gradient(180deg, #ffffff, #fffaf4);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.branch-command-card:hover,
.branch-table-command-card:hover {
  border-color: rgba(14, 111, 99, 0.24);
  box-shadow: 0 18px 40px rgba(45, 31, 22, 0.10);
  transform: translateY(-1px);
}

.branch-admin-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.branch-admin-head h2,
.branch-table-card h3 {
  margin: 4px 0 6px;
}

.branch-admin-head p,
.branch-table-card p {
  margin: 0;
  color: var(--muted);
}

.branch-admin-counts {
  min-width: 96px;
  border: 1px solid rgba(14, 111, 99, 0.16);
  border-radius: 8px;
  padding: 10px;
  color: var(--brand-dark);
  background: rgba(14, 111, 99, 0.08);
  text-align: center;
}

.branch-admin-counts strong {
  display: block;
  font-size: 28px;
}

.branch-admin-counts span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.branch-card-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.branch-card-actions a,
.branch-card-actions button {
  justify-content: center;
  width: 100%;
}

.branch-edit-grid,
.branch-table-edit {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.branch-card-form,
.branch-table-edit {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.branch-table-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 14px;
}

.branch-table-card code {
  display: block;
  max-width: 100%;
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  color: var(--brand-dark);
  background: rgba(14, 111, 99, 0.06);
  white-space: normal;
  overflow-wrap: anywhere;
}

.branch-table-card small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-weight: 800;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.check-row input {
  width: auto;
}

.tier {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.tier-bronze {
  color: #784421;
  background: #f5dfcf;
}

.tier-silver {
  color: #475569;
  background: #e5e7eb;
}

.tier-gold {
  color: #7a4d00;
  background: #fde9a8;
}

.success-note {
  border: 1px solid rgba(14, 111, 99, 0.22);
  border-radius: 8px;
  padding: 12px;
  color: var(--brand-dark);
  background: rgba(14, 111, 99, 0.08);
}

.muted-line {
  color: var(--muted);
  font-size: 13px;
}

.customer-hero {
  min-height: 340px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
  padding: clamp(22px, 6vw, 38px);
  border-radius: 8px;
  color: #fff7ed;
  background:
    linear-gradient(180deg, rgba(20, 14, 11, 0.18), rgba(20, 14, 11, 0.86)),
    url("images/coffeecoffee-hero.png") center / cover;
  box-shadow: var(--shadow);
}

.customer-hero h1 {
  max-width: 620px;
  margin: 8px 0 10px;
  font-size: clamp(34px, 8vw, 64px);
}

.customer-hero p {
  max-width: 520px;
  color: rgba(255, 247, 237, 0.84);
}

.hero-waiter-chip {
  width: fit-content;
  max-width: 100%;
  display: inline-grid;
  grid-template-columns: 56px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  border: 1px solid rgba(255, 247, 237, 0.22);
  border-radius: 8px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.hero-waiter-chip img {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  object-fit: cover;
}

.hero-waiter-chip span {
  display: block;
  color: rgba(255, 247, 237, 0.72);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-waiter-chip strong {
  display: block;
  color: #fff7ed;
  font-size: 20px;
  overflow-wrap: anywhere;
}

.customer-actions {
  width: min(360px, 100%);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.entry-gate-page {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(20, 14, 11, 0.72), rgba(20, 14, 11, 0.86)),
    url("images/coffeecoffee-hero.png") center / cover fixed;
}

.entry-gate-page .page {
  width: min(900px, calc(100% - 28px));
  min-height: calc(100vh - 92px);
  display: grid;
  place-items: center;
  margin-top: 0;
  margin-bottom: 0;
}

.entry-gate-topbar {
  border-bottom-color: rgba(255, 250, 244, 0.14);
  background: rgba(20, 14, 11, 0.34);
}

.entry-gate {
  width: 100%;
  padding: 18px 0;
}

.entry-gate-card {
  display: grid;
  gap: 18px;
  border: 1px solid rgba(255, 250, 244, 0.22);
  border-radius: 8px;
  padding: clamp(22px, 5vw, 38px);
  color: #fff7ed;
  background: rgba(255, 250, 244, 0.10);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(18px);
}

.entry-gate-mark {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #fff7ed;
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  font-weight: 900;
  box-shadow: 0 14px 30px rgba(6, 61, 55, 0.28);
}

.entry-gate-card h1 {
  max-width: 12ch;
  margin: 0;
  font-size: clamp(36px, 7vw, 66px);
  line-height: 1;
}

.entry-gate-card p {
  max-width: 56ch;
  margin: -6px 0 4px;
  color: rgba(255, 247, 237, 0.84);
  line-height: 1.55;
}

.entry-method-module {
  display: grid;
  grid-template-columns: minmax(150px, 220px) 1fr;
  gap: 18px;
  align-items: center;
  border: 1px solid rgba(255, 250, 244, 0.18);
  border-radius: 8px;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(7, 20, 38, 0.72), rgba(20, 14, 11, 0.74)),
    radial-gradient(circle at 28% 20%, rgba(46, 128, 255, 0.28), transparent 36%),
    radial-gradient(circle at 72% 72%, rgba(255, 89, 64, 0.22), transparent 34%);
  box-shadow: inset 0 0 0 1px rgba(255, 250, 244, 0.08), 0 20px 50px rgba(0, 0, 0, 0.22);
}

.entry-method-shield {
  width: min(210px, 100%);
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  justify-self: center;
  position: relative;
  border-radius: 28% 28% 42% 42%;
  border: 2px solid rgba(98, 184, 255, 0.72);
  background:
    linear-gradient(135deg, rgba(18, 74, 145, 0.82), rgba(75, 31, 29, 0.82)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent);
  box-shadow:
    0 0 34px rgba(46, 128, 255, 0.34),
    0 0 30px rgba(255, 118, 66, 0.22);
}

.entry-method-key {
  width: 68px;
  height: 34px;
  position: relative;
  border: 8px solid #9ed9ff;
  border-left-width: 22px;
  border-radius: 999px;
  transform: rotate(-42deg) translateY(-12px);
}

.entry-method-key::after {
  content: "";
  position: absolute;
  right: -46px;
  top: 5px;
  width: 54px;
  height: 8px;
  background: #9ed9ff;
  box-shadow: 18px 12px 0 -2px #9ed9ff;
}

.entry-method-check {
  position: absolute;
  right: 42px;
  bottom: 42px;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #ffffff;
  background: linear-gradient(135deg, #0e6f63, #33a475);
  font-size: 36px;
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(14, 111, 99, 0.34);
}

.entry-method-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.entry-method-button {
  min-height: 112px;
  display: grid;
  align-content: center;
  gap: 8px;
  border-radius: 8px;
  padding: 18px;
  color: #ffffff;
  text-decoration: none;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.24);
}

.entry-method-button strong {
  font-size: clamp(20px, 3vw, 28px);
  line-height: 1.05;
}

.entry-method-button span {
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
}

.entry-method-button.is-member {
  background: linear-gradient(135deg, #124a91, #2e80ff);
}

.entry-method-button.is-guest {
  background: linear-gradient(135deg, #8c1f17, #d63a2d);
}

.branch-closed-card {
  max-width: 680px;
  margin: 0 auto;
}

.branch-hours-summary {
  display: grid;
  gap: 6px;
  border: 1px solid rgba(255, 250, 244, 0.18);
  border-radius: 8px;
  padding: 16px;
  background: rgba(20, 14, 11, 0.28);
}

.branch-hours-summary strong {
  color: #fff7ed;
  font-size: clamp(24px, 4vw, 34px);
}

.branch-hours-summary span {
  color: rgba(255, 247, 237, 0.82);
}

.entry-menu-shortcuts {
  display: grid;
  gap: 10px;
  padding-top: 4px;
}

.entry-menu-shortcuts .entry-choice-button {
  min-height: 118px;
}

.entry-choice-panel {
  margin: 16px 0;
}

.entry-choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
}

.branch-choice-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.entry-choice-button {
  min-height: 158px;
  display: grid;
  align-content: center;
  gap: 10px;
  border: 1px solid rgba(255, 250, 244, 0.22);
  border-radius: 8px;
  padding: 22px;
  color: #fff7ed;
  background:
    linear-gradient(135deg, rgba(6, 61, 55, 0.96), rgba(14, 111, 99, 0.88)),
    url("images/coffeecoffee-hero.png") center / cover;
  text-decoration: none;
  box-shadow: var(--shadow);
}

.entry-gate .entry-choice-button {
  min-height: 176px;
}

.entry-choice-button strong {
  font-size: clamp(24px, 4vw, 34px);
  line-height: 1.08;
}

.entry-choice-button span {
  max-width: 30ch;
  color: rgba(255, 247, 237, 0.82);
}

.entry-kitchen {
  background:
    linear-gradient(135deg, rgba(91, 53, 37, 0.96), rgba(179, 38, 30, 0.78)),
    url("images/products/toast.png") center / cover;
}

.entry-bar {
  background:
    linear-gradient(135deg, rgba(6, 61, 55, 0.96), rgba(35, 100, 170, 0.76)),
    url("images/products/latte.png") center / cover;
}

.customer-actions form,
.customer-actions button,
.customer-actions .button-soft {
  width: 100%;
}

.button-soft {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 250, 244, 0.35);
  border-radius: 8px;
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.14);
  text-decoration: none;
}

.category-strip {
  position: sticky;
  top: 76px;
  z-index: 12;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 0 12px;
  background: rgba(247, 243, 238, 0.92);
  backdrop-filter: blur(14px);
  scrollbar-width: none;
}

.category-strip a {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 13px;
  color: var(--coffee);
  background: #fffaf4;
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
}

.customer-menu {
  display: grid;
  gap: 12px;
  padding-bottom: 86px;
}

.category-title {
  margin: 22px 0 2px;
  font-size: 24px;
}

.customer-item {
  display: grid;
  grid-template-columns: minmax(180px, 250px) 1fr;
  gap: 16px;
  border: 1px solid rgba(91, 53, 37, 0.12);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 250, 244, 0.96);
  box-shadow: 0 12px 30px rgba(45, 31, 22, 0.06);
  overflow: hidden;
}

.customer-item-photo {
  min-height: 190px;
  width: 100%;
  display: block;
  border: 0;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  background: var(--cream);
  padding: 0;
  box-shadow: none;
}

.customer-item-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  aspect-ratio: 4 / 3;
  transition: transform 0.28s ease;
}

.customer-item:hover .customer-item-photo img {
  transform: scale(1.04);
}

.customer-item-photo span {
  position: absolute;
  left: 10px;
  top: 10px;
  border-radius: 999px;
  padding: 6px 10px;
  color: #7a4d00;
  background: #fde9a8;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(45, 31, 22, 0.16);
}

.item-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 190px);
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.item-copy {
  min-width: 0;
}

.item-feature-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.item-feature-row span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border: 1px solid rgba(14, 111, 99, 0.14);
  border-radius: 999px;
  padding: 4px 9px;
  color: var(--brand-dark);
  background: rgba(14, 111, 99, 0.08);
  font-size: 12px;
  font-weight: 800;
}

.item-main span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.item-feature-row span {
  color: var(--brand-dark);
  font-weight: 800;
}

.item-main h3 {
  margin: 4px 0;
  font-size: 20px;
}

.item-main p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.item-content-line {
  display: grid;
  gap: 4px;
  margin-top: 12px;
  border-left: 3px solid rgba(14, 111, 99, 0.26);
  padding-left: 10px;
}

.item-content-line strong {
  color: var(--ink);
  font-size: 13px;
}

.item-content-line span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.item-order-panel {
  display: grid;
  justify-items: end;
  gap: 12px;
  align-self: stretch;
}

.item-order-panel > strong {
  min-width: 110px;
  text-align: right;
  color: var(--brand-dark);
  font-size: 22px;
  line-height: 1.1;
}

.item-order-panel small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  text-decoration: line-through;
}

.menu-add-button {
  width: 100%;
  min-height: 48px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 2px;
  font-weight: 800;
}

.menu-add-button span {
  color: rgba(255, 255, 255, 0.82);
  font-size: 11px;
  font-weight: 700;
}

.item-main em {
  display: inline-flex;
  margin-top: 10px;
  border-radius: 999px;
  padding: 5px 9px;
  color: #7a4d00;
  background: #fde9a8;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.customer-controls {
  display: grid;
  grid-template-columns: 44px 72px 44px 1fr;
  gap: 8px;
  align-self: end;
  grid-column: 2;
}

.qty-button,
.plain-button,
.danger-button {
  min-height: 42px;
  box-shadow: none;
}

.qty-button {
  padding: 0;
  background: #ffffff;
  color: var(--brand-dark);
  border: 1px solid var(--line);
  font-size: 18px;
  font-weight: 900;
}

.plain-button {
  background: #ffffff;
  color: var(--coffee);
  border: 1px solid var(--line);
  padding: 8px 11px;
}

.danger-button {
  background: #fff2ef;
  color: var(--accent);
  border: 1px solid rgba(179, 38, 30, 0.22);
  padding: 8px 11px;
}

.customer-account {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
  margin: 14px 0;
}

.customer-member-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  margin: 14px 0 18px;
}

.member-login-focus {
  scroll-margin-top: 92px;
}

.account-card,
.customer-order-card {
  border: 1px solid rgba(91, 53, 37, 0.12);
  border-radius: 8px;
  padding: 16px;
  background: rgba(255, 250, 244, 0.94);
  box-shadow: 0 12px 30px rgba(45, 31, 22, 0.06);
}

.account-card span,
.account-card small,
.customer-order-head span,
.order-line span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.account-card strong {
  display: block;
  margin: 6px 0;
  font-size: 26px;
}

.member-card h2,
.takeaway-pay h2 {
  font-size: 20px;
}

.member-auth-card {
  align-content: start;
}

.member-auth-card.is-primary {
  border-color: rgba(14, 111, 99, 0.26);
  background:
    linear-gradient(135deg, rgba(14, 111, 99, 0.08), rgba(255, 250, 244, 0.96));
}

.member-auth-card.is-primary h2 {
  font-size: clamp(24px, 3vw, 30px);
}

.member-auth-card form button {
  min-height: 48px;
  font-weight: 800;
}

.member-auth-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.member-auth-links .plain-button {
  width: auto;
  min-height: 40px;
  text-decoration: none;
}

.member-card .plain-button,
.campaign-row .plain-button {
  width: fit-content;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.campaign-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.campaign-row {
  display: grid;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #ffffff;
}

.campaign-row span {
  color: var(--muted);
  font-size: 13px;
}

.takeaway-pay {
  margin-bottom: 4px;
}

.customer-orders {
  display: grid;
  gap: 12px;
  margin: 18px 0;
}

.customer-orders-page {
  display: grid;
  gap: 14px;
}

.customer-order-card,
.customer-order-items {
  display: grid;
  gap: 12px;
}

.customer-order-head,
.order-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.order-line {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.customer-note {
  margin-top: 8px;
}

.customer-submit {
  position: sticky;
  bottom: 12px;
  z-index: 15;
  width: 100%;
  min-height: 54px;
  font-size: 17px;
  font-weight: 800;
}

.order-confirm-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(20, 14, 11, 0.62);
  backdrop-filter: blur(10px);
}

.order-confirm-backdrop[hidden] {
  display: none;
}

.order-confirm-dialog {
  width: min(560px, 100%);
  max-height: min(760px, calc(100vh - 36px));
  display: grid;
  gap: 14px;
  overflow: auto;
  border: 1px solid rgba(91, 53, 37, 0.16);
  border-radius: 8px;
  padding: 18px;
  background: #fffaf4;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
}

.order-confirm-head,
.order-confirm-line,
.order-confirm-total,
.order-confirm-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.order-confirm-head h2 {
  margin-top: 4px;
}

.order-confirm-lines {
  display: grid;
  gap: 8px;
}

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

.order-confirm-line strong,
.order-confirm-line span {
  display: block;
}

.order-confirm-line span,
.order-confirm-total span,
.order-confirm-note {
  color: var(--muted);
  font-size: 13px;
}

.order-confirm-line b,
.order-confirm-total strong {
  color: var(--brand-dark);
}

.order-confirm-note {
  border-left: 3px solid rgba(14, 111, 99, 0.26);
  padding-left: 10px;
}

.order-confirm-total {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.order-confirm-total strong {
  font-size: 26px;
}

.order-confirm-actions button {
  min-width: 150px;
}

.bill-request-form {
  display: grid;
  gap: 14px;
}

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

.bill-method-option {
  min-height: 132px;
  display: grid;
  align-content: start;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #ffffff;
  color: var(--ink);
  cursor: pointer;
}

.bill-method-option input {
  width: auto;
}

.bill-method-option:has(input:checked),
.bill-method-option.is-selected {
  border-color: rgba(14, 111, 99, 0.46);
  background: rgba(14, 111, 99, 0.08);
  box-shadow: inset 0 0 0 1px rgba(14, 111, 99, 0.18);
}

.bill-method-option strong {
  font-size: 18px;
}

.bill-method-option span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

@media (max-width: 760px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .customer-topbar {
    align-items: center;
    flex-direction: row;
  }

  .main-nav {
    width: 100%;
    max-width: 100%;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
  }

  .main-nav a,
  .main-nav button {
    flex: 0 0 auto;
    min-height: 40px;
  }

  .public-nav {
    padding-right: 4px;
  }

  .page {
    width: min(100% - 20px, 1180px);
    margin-top: 14px;
  }

  .entry-gate-page .page {
    width: min(100% - 20px, 900px);
    min-height: calc(100vh - 72px);
  }

  .hero-shell {
    min-height: 420px;
    align-items: flex-end;
    background-position: center right;
  }

  .internet-entry-hero {
    min-height: 460px;
  }

  .internet-entry-grid {
    grid-template-columns: 1fr;
  }

  .admin-hero {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-live-orbit {
    width: 132px;
    height: 132px;
    flex-basis: 132px;
  }

  .admin-hero-actions,
  .admin-metrics,
  .admin-workspace,
  .quick-action-grid,
  .dashboard-chart-grid,
  .definition-grid,
  .assignment-grid,
  .branch-hours-row,
  .branch-toolbar,
  .staff-toolbar,
  .staff-form-grid,
  .staff-edit-grid,
  .staff-grid,
  .station-summary {
    grid-template-columns: 1fr;
  }

  .corporate-feature-grid,
  .taste-showcase,
  .taste-grid {
    grid-template-columns: 1fr;
  }

  .loyalty-band {
    align-items: stretch;
    flex-direction: column;
  }

  .customer-hero {
    min-height: 460px;
    align-items: stretch;
    flex-direction: column;
    justify-content: flex-end;
  }

  .customer-actions {
    width: 100%;
  }

  .category-strip {
    top: 132px;
  }

  .hero-content h1 {
    max-width: 100%;
  }

  .menu-item {
    grid-template-columns: 1fr;
  }

  .item-main {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .item-order-panel {
    justify-items: stretch;
  }

  .item-order-panel > strong {
    text-align: left;
  }

  .customer-item {
    grid-template-columns: 1fr;
  }

  .customer-item-photo {
    min-height: 230px;
  }

  .section-head,
  .bill-head {
    align-items: stretch;
    flex-direction: column;
  }

  table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .settings-grid,
  .customer-member-grid,
  .ops-grid,
  .insight-grid,
  .report-filter-grid,
  .report-chart-grid,
  .menu-toolbar,
  .metrics,
  .orders-grid,
  .table-grid {
    grid-template-columns: 1fr;
  }

  .inline-form {
    align-items: stretch;
    flex-direction: column;
  }

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

  .payment-console-head,
  .payment-confirm-row,
  .cashier-order-payment-row {
    align-items: stretch;
    flex-direction: column;
  }

  .payment-console-head > strong,
  .payment-confirm-row button,
  .cashier-order-payment-row button,
  .cashier-order-payment-row select,
  .cashier-order-payment-row input {
    width: 100%;
    max-width: none;
  }

  .payment-method-cards,
  .payment-input-grid,
  .cashier-report-filter,
  .cashier-report-grid {
    grid-template-columns: 1fr;
  }

  .inline-form input,
  .inline-form select,
  .inline-form button {
    width: 100%;
  }

  .waiter-order-card .button-link {
    width: 100%;
    justify-content: center;
  }

  .waiter-order-card table {
    max-width: 100%;
  }

  .waiter-screen .page {
    width: min(100% - 14px, 1180px);
    margin-top: 10px;
  }

  .waiter-screen .panel {
    padding: 14px;
  }

  .waiter-screen .waiter-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .waiter-screen .waiter-metrics article {
    min-height: 108px;
    padding: 12px;
  }

  .waiter-screen .waiter-metrics article:first-child {
    grid-column: 1 / -1;
  }

  .waiter-screen .waiter-metrics strong {
    font-size: clamp(24px, 9vw, 34px);
  }

  .waiter-screen .waiter-dashboard-grid {
    gap: 10px;
  }

  .waiter-screen .waiter-table-panel {
    order: -1;
  }

  .waiter-screen .task-row {
    gap: 10px;
    min-height: auto;
    padding: 14px;
  }

  .waiter-screen .task-row form,
  .waiter-screen .task-row button {
    width: 100%;
  }

  .waiter-screen .compact-table-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .waiter-screen .waiter-table-grid .table-tile {
    min-height: 158px;
    padding: 12px;
    gap: 8px;
  }

  .waiter-screen .waiter-table-grid .table-tile::after {
    top: 12px;
    right: 12px;
  }

  .waiter-screen .waiter-table-grid .table-tile strong {
    font-size: clamp(22px, 7vw, 31px);
    line-height: 1;
  }

  .waiter-screen .waiter-table-grid .table-state-pill,
  .waiter-screen .waiter-table-grid .table-time-row,
  .waiter-screen .waiter-table-grid .table-bottom-row small {
    font-size: 12px;
  }

  .waiter-screen .waiter-table-grid .table-bottom-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .waiter-screen .waiter-table-grid .table-alert {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .waiter-claim-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .waiter-claim-panel button {
    width: 100%;
  }

  .waiter-screen .waiter-menu-add {
    margin: 12px 0;
    padding: 14px;
  }

  .waiter-add-form {
    grid-template-columns: 1fr;
  }

  .waiter-screen .waiter-add-form button {
    width: 100%;
  }

  .waiter-screen .waiter-order-card {
    padding: 12px;
  }

  .waiter-screen .waiter-order-card .bill-head {
    gap: 10px;
  }

  .waiter-screen .waiter-order-table,
  .waiter-screen .waiter-order-table tbody,
  .waiter-screen .waiter-order-table tr,
  .waiter-screen .waiter-order-table td {
    display: block;
    overflow: visible;
    white-space: normal;
  }

  .waiter-screen .waiter-order-table thead {
    display: none;
  }

  .waiter-screen .waiter-order-table tr {
    display: grid;
    gap: 7px;
    margin-bottom: 10px;
    border: 1px solid rgba(91, 53, 37, 0.12);
    border-radius: 8px;
    padding: 10px;
    background: #ffffff;
  }

  .waiter-screen .waiter-order-table tr:last-child {
    margin-bottom: 0;
  }

  .waiter-screen .waiter-order-table td {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    border: 0;
    padding: 0;
    text-align: right;
  }

  .waiter-screen .waiter-order-table td::before {
    content: attr(data-label);
    flex: 0 0 auto;
    color: var(--muted);
    font-weight: 900;
    text-align: left;
  }

  .waiter-screen .waiter-order-table td:first-child {
    align-items: flex-start;
    font-size: 16px;
    font-weight: 900;
  }

  .waiter-screen .waiter-order-table td:last-child {
    display: block;
    min-width: 0;
    text-align: left;
  }

  .waiter-screen .waiter-order-table td:last-child::before {
    display: none;
  }

  .waiter-screen .waiter-order-table td:last-child form,
  .waiter-screen .waiter-order-table td:last-child button {
    width: 100%;
  }

  .notification-tray {
    right: 10px;
    bottom: 10px;
    width: calc(100% - 20px);
  }

  .report-bar-grid div {
    grid-template-columns: 56px minmax(0, 1fr);
  }

  .report-bar-grid strong {
    grid-column: 2;
  }

  .report-sparkline {
    height: 210px;
    overflow-x: auto;
  }

  .report-sparkline span {
    flex-basis: 18px;
  }

  .report-rank-row {
    grid-template-columns: minmax(84px, 0.8fr) minmax(0, 1fr);
  }

  .report-rank-row strong {
    grid-column: 1 / -1;
  }

  .menu-edit-grid {
    grid-template-columns: 1fr;
  }

  .menu-edit-head {
    align-items: stretch;
    flex-direction: column;
  }

  .menu-edit-actions {
    justify-items: stretch;
  }

  .branch-card-actions {
    grid-template-columns: 1fr;
  }

  .branch-admin-head {
    align-items: stretch;
    flex-direction: column;
  }

  .staff-list-row {
    grid-template-columns: 54px minmax(0, 1fr);
  }

  .staff-list-chip,
  .staff-list-row > button {
    grid-column: 1 / -1;
  }

  .dashboard-hour-bars {
    height: 190px;
    overflow-x: auto;
  }

  .dashboard-rank-list div {
    grid-template-columns: minmax(80px, 0.85fr) minmax(0, 1fr);
  }

  .dashboard-rank-list strong {
    grid-column: 1 / -1;
  }

  .live-order-row {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .live-flow-actions {
    align-items: stretch;
    justify-content: stretch;
    flex-direction: column;
  }

  .live-flow-actions label,
  .live-flow-actions a {
    width: 100%;
  }
}

@media (min-width: 761px) and (max-width: 1180px) {
  .ops-tablet-page .topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding: 12px 18px;
  }

  .ops-tablet-page .main-nav {
    width: 100%;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .ops-tablet-page .main-nav a,
  .ops-tablet-page .main-nav button {
    flex: 0 0 auto;
    min-height: 46px;
    padding-inline: 14px;
  }

  .ops-tablet-page .admin-hero {
    align-items: stretch;
    flex-direction: column;
  }

  .ops-tablet-page .admin-live-orbit {
    width: 140px;
    height: 140px;
    flex-basis: 140px;
  }

  .ops-tablet-page .admin-hero-actions,
  .ops-tablet-page .admin-metrics,
  .ops-tablet-page .quick-action-grid,
  .ops-tablet-page .dashboard-chart-grid,
  .ops-tablet-page .definition-grid,
  .ops-tablet-page .assignment-grid,
  .ops-tablet-page .branch-toolbar,
  .ops-tablet-page .staff-toolbar,
  .ops-tablet-page .payment-chip-grid,
  .ops-tablet-page .top-item-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ops-tablet-page .dashboard-chart-card.is-wide {
    grid-column: 1 / -1;
  }

  .ops-tablet-page .staff-list-row {
    grid-template-columns: 54px minmax(220px, 1fr) repeat(2, minmax(90px, 0.45fr)) 110px;
  }

  .ops-tablet-page .staff-list-row .staff-list-chip:nth-of-type(2) {
    display: none;
  }

  .ops-tablet-page .admin-workspace,
  .ops-tablet-page .ops-grid {
    grid-template-columns: 1fr;
  }

  .ops-tablet-page .station-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ops-tablet-page .compact-table-grid,
  .ops-tablet-page .cashier-table-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ops-tablet-page .payment-input-grid,
  .ops-tablet-page .cashier-report-filter {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ops-tablet-page .cashier-order-payment-row {
    align-items: stretch;
    flex-direction: column;
  }

  .ops-tablet-page .cashier-order-payment-row select,
  .ops-tablet-page .cashier-order-payment-row input,
  .ops-tablet-page .cashier-order-payment-row button {
    width: 100%;
    max-width: none;
  }

  .waiter-screen .waiter-table-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }

  .waiter-screen .waiter-table-grid .table-tile {
    min-height: 184px;
  }

  .waiter-screen .waiter-table-panel {
    order: -1;
  }

  .ops-tablet-page .station-order-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ops-tablet-page table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .waiter-screen .waiter-metrics {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .waiter-screen .waiter-metrics article {
    min-height: 118px;
    padding: 14px;
  }

  .waiter-screen .waiter-metrics strong {
    font-size: clamp(24px, 3.4vw, 34px);
  }

  .waiter-screen .task-row {
    align-items: stretch;
  }

  .waiter-screen .task-row form {
    min-width: 160px;
  }

  .waiter-screen .task-row button {
    width: 100%;
  }

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

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

  .report-trend-card {
    grid-column: 1 / -1;
    grid-row: auto;
  }

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

@media (min-width: 980px) and (max-width: 1180px) {
  .waiter-screen .waiter-dashboard-grid {
    grid-template-columns: minmax(320px, 0.76fr) minmax(0, 1.24fr);
  }

  .waiter-screen .waiter-table-panel {
    order: 0;
  }

  .waiter-screen .waiter-table-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 761px) and (max-width: 1180px) {
  .definition-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 390px) {
  .waiter-screen .compact-table-grid {
    grid-template-columns: 1fr;
  }

  .waiter-screen .waiter-table-grid .table-tile {
    min-height: 136px;
  }

  .waiter-screen .waiter-table-grid .table-bottom-row {
    align-items: center;
    flex-direction: row;
  }
}

@media (max-width: 480px) {
  .topbar {
    min-height: auto;
    padding: 12px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand strong {
    font-size: 16px;
  }

  .page {
    width: min(100% - 14px, 1180px);
  }

  .panel,
  .auth-panel {
    padding: 16px;
  }

  .customer-hero {
    min-height: 390px;
    padding: 18px;
  }

  .internet-entry-hero {
    min-height: 430px;
    padding: 18px;
  }

  .internet-entry-copy h1 {
    max-width: 100%;
  }

  .customer-actions {
    grid-template-columns: 1fr 1fr;
  }

  .entry-gate-card {
    padding: 20px;
  }

  .entry-gate-card h1 {
    max-width: 100%;
  }

  .entry-gate .entry-choice-button {
    min-height: 136px;
  }

  .entry-method-module,
  .entry-method-actions {
    grid-template-columns: 1fr;
  }

  .entry-method-shield {
    width: min(172px, 100%);
  }

  .entry-method-button {
    min-height: 92px;
  }

  .bill-method-grid {
    grid-template-columns: 1fr;
  }

  .customer-item-photo {
    min-height: 190px;
  }

  .customer-order-head,
  .order-line,
  .waiter-profile-card,
  .task-row,
  .station-order-head,
  .station-line {
    align-items: stretch;
    flex-direction: column;
  }

  .waiter-profile-card {
    grid-template-columns: 64px 1fr;
  }

  .customer-waiter-card {
    grid-template-columns: 64px 1fr;
  }

  .customer-waiter-card form {
    grid-column: 1 / -1;
  }

  .waiter-profile-card img {
    width: 64px;
    height: 64px;
  }

  .danger-button,
  .button-link,
  .plain-button {
    width: 100%;
  }

  .campaign-row .inline-form {
    align-items: stretch;
  }

  .member-card .plain-button,
  .campaign-row .plain-button {
    width: 100%;
    justify-content: center;
  }

  .customer-submit {
    bottom: 8px;
  }
}
