﻿:root {
  --bg: #e9f0ef;
  --panel: rgba(255, 255, 255, 0.82);
  --line: rgba(55, 83, 86, 0.1);
  --text: #1f2a2d;
  --muted: #6d7e80;
  --accent: #2d7a73;
  --accent-2: #8ebcb4;
  --green: #3b8f68;
  --yellow: #c3a55f;
  --gray: #7f8c90;
  --shadow: 0 24px 70px rgba(31, 53, 57, 0.1);
  --shadow-soft: 0 10px 30px rgba(31, 53, 57, 0.05);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: "Trebuchet MS", "Segoe UI", Tahoma, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(241, 151, 75, 0.3), transparent 28%),
    radial-gradient(circle at bottom right, rgba(199, 90, 36, 0.18), transparent 30%),
    linear-gradient(135deg, #fbf6ef, #f1e4d4 48%, #ead9c7);
}
button, a { font: inherit; }
h1, h2, h3, p { margin: 0; }
.eyebrow {
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.muted { color: var(--muted); }
.admin { max-width: 1320px; margin: 0 auto; padding: 28px; display: grid; gap: 18px; }
.admin-header, .panel, .stat-card, .order-card, .board-card, .board-empty, .board-column {
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 30px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}
.admin-header, .panel__header, .order-card__top, .progress-row, .board-card__top, .board-progress__meta, .board-topbar {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.admin-header { position: relative; overflow: hidden; padding: 26px 28px; background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(240, 247, 246, 0.92)); }
.admin-header::after { content: ""; position: absolute; inset: auto -60px -70px auto; width: 180px; height: 180px; border-radius: 999px; background: radial-gradient(circle, rgba(142, 188, 180, 0.34), rgba(45, 122, 115, 0.02) 72%); pointer-events: none; }
.admin-actions, .status-actions, .order-badges, .board__header-meta { display: flex; flex-wrap: wrap; gap: 10px; }
.button, .status-button, .item-toggle {
  appearance: none; border: 0; border-radius: 18px; padding: 12px 18px; font-weight: 700; text-decoration: none; cursor: pointer; transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}
.button:hover, .status-button:hover, .item-toggle:hover { transform: translateY(-1px); }
.button { color: white; background: linear-gradient(135deg, #2d7a73, #78b0a9); box-shadow: 0 16px 34px rgba(45, 122, 115, 0.22); }
.button--ghost, .status-button, .item-toggle { color: var(--text); background: rgba(255, 255, 255, 0.96); box-shadow: inset 0 0 0 1px rgba(55, 83, 86, 0.08), var(--shadow-soft); }
.button:disabled, .status-button:disabled, .item-toggle:disabled { opacity: 0.7; cursor: wait; }
.stats-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.stat-card { padding: 20px 22px; background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(242, 248, 247, 0.92)); }
.stat-card strong { display: block; margin-top: 10px; font-size: 36px; line-height: 1; }
.panel { padding: 20px; display: grid; gap: 16px; }
.orders-list { display: grid; gap: 14px; }
.order-card { padding: 18px; display: grid; gap: 14px; border-left: 5px solid var(--accent); }
.order-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.72fr); gap: 16px; }
.order-main, .order-items-list, .board-progress, .board-list { display: grid; gap: 14px; }
.order-card__identity { display: flex; align-items: center; gap: 12px; min-width: 0; }
.order-card__code {
  display: grid; place-items: center; min-width: 74px; min-height: 56px; padding: 8px 12px;
  border-radius: 20px; background: linear-gradient(145deg, rgba(184, 77, 29, 0.12), rgba(240, 161, 76, 0.26)); box-shadow: inset 0 0 0 1px rgba(184, 77, 29, 0.08);
  color: var(--accent); font-size: 24px; font-weight: 800; letter-spacing: 0.04em;
}
.order-card__title { min-width: 0; display: grid; gap: 4px; }
.order-card__title h3 { font-size: 30px; line-height: 0.98; }
.order-card__meta { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 10px; }
.order-card__sum { font-size: 30px; line-height: 1; white-space: nowrap; }
.order-card__summary-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.summary-tile {
  display: grid; gap: 6px; padding: 12px 14px; min-width: 0; border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 252, 248, 0.9), rgba(247, 237, 226, 0.8)); border: 1px solid var(--line);
}
.summary-tile__label { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.summary-tile strong { font-size: 18px; line-height: 1.15; overflow-wrap: anywhere; }
.customer-card { display: grid; gap: 12px; padding: 16px; border-radius: 24px; background: linear-gradient(180deg, rgba(255, 252, 248, 0.9), rgba(247, 237, 226, 0.78)); border: 1px solid var(--line); }
.customer-card__summary { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.customer-card__title { display: block; margin-bottom: 6px; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.customer-card__summary strong { display: block; font-size: 20px; line-height: 1.15; }
.customer-card__toggle { flex-shrink: 0; min-width: 120px; }
.customer-card__content { display: grid; gap: 10px; }
.customer-field { display: grid; gap: 4px; }
.customer-field__label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.customer-field__value { font-size: 17px; }
.customer-field__value.is-strong { font-size: 22px; font-weight: 700; }
.item-row {
  display: grid; grid-template-columns: 74px minmax(0, 1fr) auto; align-items: start; gap: 12px; padding: 12px;
  border-radius: 24px; background: linear-gradient(180deg, rgba(255, 252, 248, 0.96), rgba(248, 239, 230, 0.88)); border: 1px solid rgba(84, 55, 24, 0.08); box-shadow: var(--shadow-soft);
}
.item-row.is-ready { border-color: rgba(59, 143, 104, 0.28); background: rgba(235, 248, 242, 0.98); }
.item-thumb {
  width: 74px; height: 74px; display: grid; place-items: center; border-radius: 18px; overflow: hidden;
  font-size: 28px; font-weight: 800; color: white; background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
.item-thumb--image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.item-info { display: grid; gap: 4px; min-width: 0; }
.item-info strong { font-size: 18px; line-height: 1.1; overflow-wrap: anywhere; }
.item-info__total { font-weight: 700; font-size: 15px; color: var(--text); }
.item-toggle.is-ready, .status-button.is-active { color: white; background: linear-gradient(135deg, var(--green), #56b27c); box-shadow: 0 14px 32px rgba(47, 138, 88, 0.22); }
.order-side { display: grid; gap: 14px; align-content: start; }
.pill {
  display: inline-flex; align-items: center; min-height: 36px; padding: 8px 14px; border-radius: 999px;
  background: rgba(45, 122, 115, 0.12); color: #256a64; font-size: 13px; font-weight: 700;
}
.pill--soft { background: rgba(84, 55, 24, 0.08); color: var(--muted); }
.pill--light { background: rgba(255, 255, 255, 0.12); color: #fff6eb; }
.progress-block { display: grid; gap: 10px; }
.progress-track { height: 14px; overflow: hidden; border-radius: 999px; background: rgba(84, 55, 24, 0.09); }
.progress-track--light { background: rgba(255, 255, 255, 0.12); }
.progress-bar { height: 100%; border-radius: inherit; background: linear-gradient(90deg, #8dbfb8, #4f9f96 52%, #3b8f68 100%); }
.status-actions { margin-top: 4px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.empty-state { padding: 32px; border-radius: 24px; background: rgba(255, 251, 247, 0.86); border: 1px dashed rgba(84, 55, 24, 0.16); text-align: center; }
.status-new { border-left-color: var(--accent); }
.status-cooking { border-left-color: var(--yellow); }
.status-ready { border-left-color: var(--green); }
.status-picked { border-left-color: var(--gray); opacity: 0.82; }
.board-body { color: #fff8ef; background: radial-gradient(circle at top, rgba(255, 159, 93, 0.18), transparent 30%), linear-gradient(180deg, #22150f, #140d08 60%, #0b0705); }
.board { min-height: 100vh; padding: 24px; display: grid; gap: 18px; }
.board--split { grid-template-rows: auto 1fr; }
.board-topbar { padding: 18px 22px; border-radius: 24px; background: rgba(255, 255, 255, 0.07); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28); }
.board-topbar h1 { font-size: 28px; }
.board-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.board-column { padding: 18px; background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.08); }
.board-column--ready { box-shadow: 0 0 0 1px rgba(103, 227, 151, 0.18), 0 20px 70px rgba(29, 120, 68, 0.14); }
.board-column__header { margin-bottom: 10px; }
.board-column__header h2 { font-size: 34px; }
.board-card, .board-empty { background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.05)); border-color: rgba(255,255,255,0.08); }
.board-card { padding: 22px; display: grid; gap: 18px; }
.board-card h2 { font-size: clamp(28px, 3vw, 40px); }
.board-empty { min-height: 240px; display: grid; place-items: center; text-align: center; padding: 28px; }
.board-card--ready { box-shadow: 0 0 0 1px rgba(103, 227, 151, 0.26), 0 20px 70px rgba(29, 120, 68, 0.22); }
@media (max-width: 960px) { .order-layout, .stats-grid, .board-columns { grid-template-columns: 1fr; } }
@media (max-width: 720px) {
  .admin, .board { padding: 18px; }
  .admin-header, .panel__header, .order-card__top, .board-topbar { flex-direction: column; align-items: flex-start; }
  .order-card { padding: 16px; gap: 12px; }
  .order-card__top { align-items: stretch; }
  .order-card__identity { align-items: flex-start; }
  .order-card__code { min-width: 62px; min-height: 50px; font-size: 20px; border-radius: 16px; }
  .order-card__title h3 { font-size: 24px; }
  .order-card__meta { justify-content: flex-start; }
  .order-card__sum { font-size: 24px; }
  .order-card__summary-grid { grid-template-columns: 1fr; }
  .summary-tile { padding: 10px 12px; }
  .summary-tile strong { font-size: 16px; }
  .customer-card { padding: 14px; }
  .customer-card__summary { align-items: center; }
  .customer-card__summary strong { font-size: 18px; }
  .customer-card__content { display: none; }
  .customer-card__content.is-expanded { display: grid; }
  .customer-card__toggle { min-width: 0; padding: 10px 14px; border-radius: 14px; }
  .item-row { grid-template-columns: 60px minmax(0, 1fr); gap: 10px; padding: 10px; }
  .item-thumb { width: 60px; height: 60px; border-radius: 16px; }
  .item-info strong { font-size: 16px; }
  .item-info .muted { font-size: 14px; line-height: 1.35; }
  .item-toggle { grid-column: span 2; }
  .status-actions { grid-template-columns: 1fr 1fr; width: 100%; }
}

.status-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.status-panel, .status-card {
  width: min(100%, 640px); border: 1px solid rgba(255, 255, 255, 0.72); border-radius: 28px;
  background: var(--panel); box-shadow: var(--shadow); backdrop-filter: blur(10px);
}
.status-panel { padding: 26px; display: grid; gap: 18px; }
.status-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; }
.status-input {
  width: 100%; border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px;
  background: rgba(255, 251, 247, 0.95); font: inherit; font-size: 28px; font-weight: 700; letter-spacing: 0.18em;
  text-align: center; color: var(--text);
}
.status-input:focus { outline: 2px solid rgba(199, 90, 36, 0.2); border-color: rgba(199, 90, 36, 0.4); }
.status-result { display: grid; }
.status-card { padding: 24px; display: grid; gap: 16px; }
.status-card h2 { font-size: clamp(44px, 8vw, 64px); }
.status-card__badges { display: flex; flex-wrap: wrap; gap: 10px; }
.status-card--ready { border-left: 6px solid var(--green); }
.status-card--cooking { border-left: 6px solid var(--yellow); }
.status-card--new { border-left: 6px solid var(--accent); }
.status-card--picked_up { border-left: 6px solid var(--gray); }
@media (max-width: 720px) {
  .status-form { grid-template-columns: 1fr; }
}

/* Radical visual reset */
:root {
  --bg: #f3f5f7;
  --panel: #ffffff;
  --line: #d7dde3;
  --text: #111827;
  --muted: #6b7280;
  --accent: #2563eb;
  --accent-2: #60a5fa;
  --green: #059669;
  --yellow: #d97706;
  --gray: #6b7280;
  --shadow: 0 1px 2px rgba(17, 24, 39, 0.04), 0 8px 24px rgba(17, 24, 39, 0.04);
  --shadow-soft: 0 1px 2px rgba(17, 24, 39, 0.03);
}

body:not(.board-body) {
  font-family: "Segoe UI Variable Text", "Segoe UI", sans-serif;
  background:
    linear-gradient(180deg, #f6f7f9 0%, #eef2f6 100%);
  color: var(--text);
}

.eyebrow {
  margin-bottom: 4px;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: #7b8794;
}

.admin {
  max-width: 1540px;
  padding: 16px;
  gap: 12px;
}

.admin-header,
.panel,
.stat-card,
.order-card,
.board-card,
.board-empty,
.board-column,
.queue-section,
.ticket,
.completed-strip {
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: none;
  backdrop-filter: none;
}

.admin-header {
  position: static;
  overflow: visible;
  padding: 18px 20px;
  background: #ffffff;
}

.admin-header::after {
  display: none;
}

.admin-header h1 {
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1;
  letter-spacing: -0.05em;
}

.admin-actions,
.status-actions,
.order-badges,
.board__header-meta {
  gap: 8px;
}

.button,
.status-button,
.item-toggle {
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: 700;
  box-shadow: none;
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease;
}

.button:hover,
.status-button:hover,
.item-toggle:hover {
  transform: none;
}

.button {
  background: var(--text);
  color: #fff;
}

.button--ghost,
.status-button,
.item-toggle {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--line);
  box-shadow: none;
}

.button--ghost:hover,
.status-button:hover,
.item-toggle:hover {
  background: #f8fafc;
}

.stats-grid {
  gap: 10px;
}

.stat-card {
  padding: 16px;
}

.stat-card strong {
  margin-top: 6px;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 0.95;
}

.panel {
  padding: 14px;
}

.panel__header h2 {
  font-size: 20px;
  letter-spacing: -0.04em;
}

.queue-board {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}

.queue-section,
.completed-strip {
  padding: 12px;
  gap: 10px;
  background: #fff;
}

.queue-section__header,
.completed-strip__header {
  padding: 2px 0 6px;
  border-bottom: 1px solid #eef2f7;
}

.queue-section__header h3,
.completed-strip__header h3 {
  font-size: 18px;
  letter-spacing: -0.03em;
}

.queue-section__count {
  min-width: 30px;
  min-height: 30px;
  border-radius: 999px;
  background: #f3f4f6;
  border: 0;
  box-shadow: none;
  font-size: 13px;
}

.queue-section__body,
.completed-strip__body {
  gap: 10px;
}

.queue-empty {
  padding: 20px 14px;
  border-radius: 10px;
  border: 1px dashed #d7dde3;
  background: #fafbfc;
}

.ticket {
  gap: 10px;
  padding: 12px;
  border-radius: 10px;
  background: #fff;
  box-shadow: none;
}

.ticket--new { border-top: 2px solid #2563eb; }
.ticket--cooking { border-top: 2px solid #d97706; }
.ticket--ready { border-top: 2px solid #059669; }
.ticket--picked_up { border-top: 2px solid #94a3b8; opacity: 1; }

.ticket__topline,
.ticket__headline,
.ticket__badges {
  gap: 8px;
}

.ticket__code {
  min-width: 54px;
  min-height: 36px;
  padding: 4px 10px;
  border-radius: 8px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.ticket__time {
  font-size: 12px;
  color: var(--muted);
}

.ticket__headline h4 {
  font-size: 22px;
  line-height: 1;
  letter-spacing: -0.04em;
}

.ticket__headline .muted {
  font-size: 13px;
}

.ticket__sum {
  font-size: 24px;
  letter-spacing: -0.04em;
}

.pill {
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 12px;
}

.pill--soft {
  background: #f3f4f6;
  color: #4b5563;
}

.ticket__progress,
.ticket__details,
.ticket__details--primary {
  padding: 10px 12px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #e7ecf2;
}

.ticket__details {
  padding: 0;
}

.ticket__details summary {
  padding: 10px 12px;
}

.ticket__details summary small {
  color: var(--muted);
}

.ticket__details-grid {
  padding: 0 12px 12px;
}

.progress-track {
  height: 10px;
  background: #dbe3ea;
}

.progress-bar {
  background: linear-gradient(90deg, #b8cfe0 0%, #84a9c3 52%, #6d8ea3 100%);
}

.item-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 40px;
  gap: 10px;
  padding: 8px;
  border-radius: 10px;
  background: #f9fafb;
  border: 1px solid #edf1f5;
  box-shadow: none;
}

.item-row.is-ready {
  background: #ecfdf5;
  border-color: #bbf7d0;
}

.item-thumb {
  width: 56px;
  height: 56px;
  border-radius: 8px;
}

.item-info {
  gap: 2px;
}

.item-info strong {
  font-size: 16px;
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.item-info .muted,
.item-info__total {
  font-size: 13px;
}

.item-info__total {
  font-weight: 700;
}

.item-toggle--icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  padding: 0;
  border-radius: 8px;
  font-size: 22px;
  border: 1px solid #d7dde3;
  align-self: center;
}

.item-toggle--icon.is-ready,
.status-button.is-active {
  background: var(--text);
  color: #fff;
  border-color: var(--text);
  box-shadow: none;
}

.ticket__actions,
.status-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.ticket .status-button {
  width: 100%;
}

.customer-field__label {
  font-size: 11px;
}

.customer-field__value {
  font-size: 15px;
}

.customer-field__value.is-strong {
  font-size: 16px;
}

@media (max-width: 1160px) {
  .queue-board {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .admin {
    padding: 12px;
  }

  .admin-header {
    padding: 16px;
  }

  .stats-grid,
  .completed-strip__body {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    display: none;
  }

  .ticket {
    padding: 10px;
  }

  .ticket__topline,
  .ticket__headline,
  .ticket__badges {
    flex-direction: column;
    align-items: flex-start;
  }

  .ticket__headline h4 {
    font-size: 20px;
  }

  .ticket__sum {
    font-size: 22px;
  }
}


/* Operator dashboard redesign */
body:not(.board-body) {
  background:
    radial-gradient(circle at top left, rgba(255, 176, 86, 0.24), transparent 18%),
    radial-gradient(circle at 100% 0%, rgba(47, 138, 88, 0.09), transparent 18%),
    linear-gradient(180deg, #f7f2eb 0%, #efe7de 100%);
}

.admin {
  max-width: 1460px;
  padding: 22px;
  gap: 16px;
}

.admin-header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 22px 24px;
  border-radius: 26px;
  background:
    linear-gradient(135deg, rgba(255, 250, 245, 0.96), rgba(248, 238, 228, 0.92)),
    var(--panel);
  box-shadow: 0 18px 46px rgba(57, 37, 18, 0.1);
}

.admin-header h1 {
  font-size: clamp(30px, 4vw, 46px);
  line-height: 0.95;
  letter-spacing: -0.04em;
}

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

.stat-card {
  padding: 16px 18px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,0.82), rgba(249,242,234,0.9));
  box-shadow: 0 12px 28px rgba(67, 37, 14, 0.08);
}

.stat-card strong {
  margin-top: 6px;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 0.95;
}

.panel {
  padding: 18px;
  border-radius: 26px;
}

.panel__header h2 {
  font-size: 22px;
  letter-spacing: -0.03em;
}

.queue-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

.mobile-queue {
  display: none;
}

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

.mobile-tab {
  min-width: 0;
  padding: 10px 8px;
  border-radius: 14px;
  border: 1px solid #d8e0e7;
  background: rgba(255, 255, 255, 0.92);
  display: grid;
  gap: 4px;
  text-align: left;
  color: var(--text);
  box-shadow: none;
}

.mobile-tab span {
  font-size: 12px;
  font-weight: 700;
}

.mobile-tab strong {
  font-size: 18px;
  line-height: 1;
}

.mobile-tab.is-active {
  border-color: #9bb4c5;
  background: #eff5f9;
}

.mobile-tab.has-alert strong,
.queue-section.has-alert .queue-section__count {
  color: #c43333;
  border-color: rgba(196, 51, 51, 0.2);
  animation: softAlertPulse 1.8s ease-in-out infinite;
}

.mobile-tab.has-alert {
  position: relative;
}

.mobile-tab.has-alert::after,
.queue-section.has-alert .queue-section__header h3::after {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-left: 8px;
  border-radius: 999px;
  background: rgba(196, 51, 51, 0.85);
  box-shadow: 0 0 0 0 rgba(196, 51, 51, 0.25);
  animation: softAlertDot 1.8s ease-in-out infinite;
}

.queue-section.has-alert .queue-section__header h3::after {
  vertical-align: middle;
}

.mobile-queue__panel {
  display: grid;
  gap: 12px;
  padding: 12px;
  border-radius: 24px;
  background: rgba(255, 252, 248, 0.58);
  border: 1px solid rgba(84, 55, 24, 0.08);
}

.mobile-queue__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 2px 0;
}

.mobile-queue__header h3 {
  font-size: 22px;
  letter-spacing: -0.04em;
}

.mobile-queue__list {
  display: grid;
  gap: 12px;
}

.queue-section,
.completed-strip {
  display: grid;
  gap: 12px;
}

.queue-section {
  padding: 12px;
  border-radius: 24px;
  background: rgba(255, 252, 248, 0.58);
  border: 1px solid rgba(84, 55, 24, 0.08);
}

.queue-section__header,
.completed-strip__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 4px 2px;
}

.queue-section__header h3,
.completed-strip__header h3 {
  font-size: 22px;
  letter-spacing: -0.04em;
}

.queue-section__count {
  min-width: 38px;
  min-height: 38px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #fff8f1;
  border: 1px solid rgba(84, 55, 24, 0.08);
  font-weight: 800;
  box-shadow: inset 0 -2px 0 rgba(84, 55, 24, 0.04);
}

.queue-section__body,
.completed-strip__body {
  display: grid;
  gap: 12px;
}

.completed-strip {
  margin-top: 4px;
}

.completed-strip__body {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.queue-empty {
  padding: 28px 18px;
  border-radius: 22px;
  border: 1px dashed rgba(84, 55, 24, 0.16);
  background: rgba(255, 251, 247, 0.66);
  text-align: center;
}

.queue-empty--compact {
  padding: 18px;
}

.ticket {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(248,240,231,0.94));
  border: 1px solid rgba(84, 55, 24, 0.08);
  box-shadow: 0 14px 28px rgba(57, 37, 18, 0.08);
}

.ticket--new { border-top: 4px solid #6d8ea3; }
.ticket--cooking { border-top: 4px solid #e38b33; }
.ticket--ready { border-top: 4px solid #2f9e44; }
.ticket--picked_up { border-top: 4px solid #98a5b3; opacity: 0.88; }

.ticket__topline,
.ticket__headline,
.ticket__badges {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.ticket__code {
  display: inline-grid;
  place-items: center;
  min-width: 64px;
  min-height: 44px;
  padding: 6px 12px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(109, 142, 163, 0.12), rgba(191, 207, 219, 0.42));
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: #36566e;
}

@keyframes softAlertPulse {
  0%, 100% { background: #fff8f1; box-shadow: inset 0 -2px 0 rgba(84, 55, 24, 0.04); }
  50% { background: rgba(255, 231, 231, 0.95); box-shadow: inset 0 -2px 0 rgba(196, 51, 51, 0.08); }
}

@keyframes softAlertDot {
  0%, 100% { opacity: 0.55; transform: scale(1); box-shadow: 0 0 0 0 rgba(196, 51, 51, 0.18); }
  50% { opacity: 1; transform: scale(1.08); box-shadow: 0 0 0 6px rgba(196, 51, 51, 0.05); }
}

.ticket__time {
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
}

.ticket__headline {
  align-items: flex-start;
}

.ticket__headline h4 {
  margin: 0;
  font-size: 24px;
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.ticket__headline .muted {
  margin-top: 4px;
  font-size: 14px;
}

.ticket__sum {
  font-size: 28px;
  line-height: 1;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.ticket__progress {
  display: grid;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 18px;
  background: rgba(255, 250, 245, 0.9);
  border: 1px solid rgba(84, 55, 24, 0.06);
}

.ticket__items {
  display: grid;
  gap: 10px;
}

.ticket__desktop-blocks {
  display: grid;
  gap: 12px;
}

.ticket__details {
  border-radius: 18px;
  background: rgba(255, 250, 245, 0.9);
  border: 1px solid rgba(84, 55, 24, 0.06);
}

.ticket__details-head {
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-weight: 700;
}

.ticket__details-head small {
  display: block;
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
  text-align: right;
}

.ticket__details--primary {
  background: linear-gradient(180deg, rgba(253, 252, 250, 0.98), rgba(247, 244, 240, 0.94));
  border-color: rgba(109, 142, 163, 0.14);
}

.ticket--cooking .progress-bar {
  background: linear-gradient(90deg, #f7c27f 0%, #eea24f 52%, #e38b33 100%);
}

.ticket--ready .progress-bar,
.ticket--picked_up .progress-bar {
  background: linear-gradient(90deg, #9fe0ad 0%, #55bf72 52%, #2f9e44 100%);
}

.ticket__details-grid {
  display: grid;
  gap: 10px;
  padding: 0 14px 14px;
}

.ticket__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.ticket__actions-row {
  display: grid;
  gap: 8px;
  width: 100%;
}

.ticket__actions-row--status {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ticket__actions-row--call {
  grid-template-columns: minmax(0, 1fr);
}

.ticket__compact-details {
  display: grid;
  gap: 12px;
  margin-top: 2px;
}

.ticket__compact-summary {
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  color: #36566e;
}

.ticket__compact-summary::-webkit-details-marker {
  display: none;
}

.ticket__compact-body {
  display: grid;
  gap: 12px;
  padding-top: 10px;
}

.ticket .status-button {
  width: 100%;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-left: 10px;
  padding-right: 10px;
  white-space: nowrap;
}

.ticket--new .status-button--call {
  background: #ef7d32;
  color: #fff;
  border-color: #ef7d32;
}

.ticket--new .status-button--call:hover {
  background: #de6f26;
  border-color: #de6f26;
}

.ticket--new .status-button--call:disabled {
  background: #f3b489;
  border-color: #f3b489;
  color: #fff;
}

.item-row {
  grid-template-columns: 62px minmax(0, 1fr) 48px;
  border-radius: 18px;
  padding: 10px;
  gap: 12px;
  background: rgba(255,255,255,0.82);
  box-shadow: none;
  align-items: center;
}

.item-thumb {
  width: 62px;
  height: 62px;
  border-radius: 16px;
}

.item-info strong {
  font-size: 17px;
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.item-info .muted,
.item-info__total {
  font-size: 14px;
}

.item-toggle--icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 14px;
  font-size: 24px;
  line-height: 1;
  align-self: center;
  justify-self: end;
  grid-column: 3;
}

.customer-field__value.is-strong {
  font-size: 18px;
}

@media (max-width: 1160px) {
  .queue-board {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .admin {
    padding: 2px;
    gap: 6px;
  }

  .queue-board,
  .completed-strip {
    display: none;
  }

  .mobile-queue {
    display: block;
  }

  .admin-header {
    position: static;
    padding: 12px;
  }

  .panel {
    padding: 6px;
    border-radius: 16px;
  }

  .panel__header {
    padding: 0 4px;
  }

  .stats-grid,
  .completed-strip__body {
    grid-template-columns: 1fr;
  }

  .ticket {
    padding: 8px;
    border-radius: 16px;
    gap: 8px;
  }

  .ticket__topline,
  .ticket__headline {
    align-items: center;
    flex-direction: row;
    gap: 8px;
  }

  .ticket__headline h4 {
    font-size: 18px;
  }

  .ticket__sum {
    font-size: 18px;
  }

  .ticket__time,
  .ticket__headline .muted {
    font-size: 12px;
  }

  .ticket__code {
    min-width: 50px;
    min-height: 34px;
    padding: 4px 8px;
    font-size: 18px;
    border-radius: 12px;
  }

  .ticket__progress {
    padding: 8px;
  }

  .ticket__progress .progress-row span,
  .ticket__progress .progress-row strong {
    font-size: 12px;
  }

  .ticket__actions {
    gap: 8px;
  }

  .ticket__actions-row--status {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ticket__actions-row--status .status-button {
    font-size: 12px;
    padding-left: 4px;
    padding-right: 4px;
  }

  .ticket__actions-row--call .status-button {
    min-height: 42px;
  }

  .item-row {
    grid-template-columns: 48px minmax(0, 1fr) 40px;
    padding: 7px;
    gap: 7px;
    align-items: center;
  }

  .item-thumb {
    width: 48px;
    height: 48px;
  }

  .item-toggle--icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    font-size: 20px;
    justify-self: end;
    grid-column: 3;
  }

  .ticket__details-head {
    align-items: center;
    flex-direction: row;
    gap: 8px;
    padding: 8px 10px;
  }

  .ticket__details-head span,
  .ticket__details-head small {
    font-size: 12px;
  }

  .ticket__details-grid {
    grid-template-columns: 1fr 1fr;
    gap: 6px 10px;
    padding: 0 10px 10px;
  }

  .customer-field {
    gap: 2px;
  }

  .customer-field__label {
    font-size: 10px;
  }

  .customer-field__value,
  .item-info .muted,
  .item-info__total {
    font-size: 12px;
  }

  .customer-field__value.is-strong {
    font-size: 16px;
  }

  .item-info strong {
    font-size: 14px;
    line-height: 1.05;
  }

  .mobile-queue__tabs {
    position: sticky;
    top: 4px;
    z-index: 4;
    margin-left: -2px;
    margin-right: -2px;
    padding: 6px;
    border-radius: 14px;
    background: rgba(243, 245, 247, 0.94);
    backdrop-filter: blur(8px);
  }

  .mobile-tab {
    padding: 8px 6px;
  }

  .mobile-tab span {
    font-size: 11px;
  }

  .mobile-tab strong {
    font-size: 14px;
  }

  .mobile-queue__panel {
    padding: 4px;
    gap: 6px;
    border-radius: 14px;
  }

  .mobile-queue__header {
    padding: 2px 0 0;
  }

  .mobile-queue__header h3 {
    font-size: 18px;
  }
}
