@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap");

:root {
  --bg: #f5efe5;
  --surface: #ffffff;
  --surface-alt: #f7f2ea;
  --text: #0f1f2a;
  --muted: #5c6a73;
  --accent: #0a9396;
  --accent-strong: #045a60;
  --accent-soft: #d1f4ef;
  --danger: #b91c1c;
  --card: #ffffff;
  --border: #e6d9c6;
  --brand: #0a9396;
  --shadow-soft: 0 10px 26px rgba(15, 26, 36, 0.1);
  --shadow-card: 0 18px 42px rgba(15, 26, 36, 0.12);
}

body {
  font-family: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 12% 12%, #fff7ef 0%, transparent 45%),
    radial-gradient(circle at 85% 10%, rgba(10, 147, 150, 0.16) 0%, transparent 52%),
    linear-gradient(180deg, var(--bg) 0%, #fdf8f1 55%, #f4ede2 100%);
  color: var(--text);
}

h1,
h2,
h3,
.brand,
.nav-label {
  font-family: "Space Grotesk", "Manrope", sans-serif;
}

h1 {
  font-size: 28px;
}

h2 {
  font-size: 20px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(245, 239, 229, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(230, 217, 198, 0.7);
  box-shadow: 0 12px 28px rgba(15, 26, 36, 0.08);
}

.brand {
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.brand-logo {
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(15, 26, 36, 0.12);
}

.main-nav {
  gap: 14px;
}

.main-nav a {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(230, 217, 198, 0.8);
  transition: transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.main-nav a:hover {
  color: var(--accent-strong);
  border-color: var(--accent);
  box-shadow: 0 10px 18px rgba(15, 26, 36, 0.08);
  transform: translateY(-1px);
}

.main-nav a.is-active {
  background: linear-gradient(135deg, var(--accent) 0%, #6ec6ca 100%);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 12px 24px rgba(10, 147, 150, 0.25);
}

.content {
  padding: 28px;
}

.card,
.wizard-card,
.map-panel,
.rider-panel,
.rider-card,
.telephony-row,
.order-card,
.context-bar__item {
  border-radius: 16px;
  border: 1px solid rgba(230, 217, 198, 0.9);
  box-shadow: var(--shadow-soft);
}

.card {
  background: linear-gradient(180deg, #ffffff 0%, #fbf7f1 100%);
}

.order-card {
  background: #ffffff;
}

.status-pill {
  letter-spacing: 0.02em;
}

.pill {
  background: rgba(10, 147, 150, 0.1);
  color: var(--accent-strong);
}

button,
.button {
  background: linear-gradient(135deg, var(--accent) 0%, #5fd0c8 100%);
  border-radius: 12px;
  box-shadow: 0 12px 24px rgba(10, 147, 150, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

button:hover,
.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(10, 147, 150, 0.24);
  filter: saturate(1.05);
}

button:active,
.button:active {
  transform: translateY(0);
  box-shadow: 0 10px 20px rgba(10, 147, 150, 0.2);
}

button.danger,
.danger {
  background: linear-gradient(135deg, #b91c1c 0%, #ef4444 100%);
  box-shadow: 0 12px 24px rgba(185, 28, 28, 0.2);
}

.ghost-button,
.context-bar__btn.ghost {
  border-radius: 999px;
  border: 1px solid rgba(10, 147, 150, 0.45);
  color: var(--accent-strong);
  background: rgba(255, 255, 255, 0.8);
}

.ghost-button:hover {
  border-color: var(--accent);
}

select,
input,
textarea {
  border-radius: 12px;
  border: 1px solid rgba(230, 217, 198, 0.9);
  background: rgba(255, 255, 255, 0.9);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

select:focus,
input:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(10, 147, 150, 0.18);
}

.chip {
  border-radius: 999px;
  background: rgba(10, 147, 150, 0.12);
  color: var(--accent-strong);
}

.chip-ready {
  background: rgba(22, 163, 74, 0.16);
  color: #166534;
  border: 1px solid rgba(22, 163, 74, 0.3);
}

.chip-wip {
  background: rgba(245, 158, 11, 0.18);
  color: #92400e;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.station-switch {
  padding: 12px 14px;
}

.station-shift {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed rgba(148, 163, 184, 0.42);
}

.context-bar {
  background: rgba(245, 239, 229, 0.86);
  backdrop-filter: blur(10px);
}

.context-bar__btn {
  background: linear-gradient(135deg, var(--accent) 0%, #6ec6ca 100%);
  border-radius: 999px;
}

.call-pop {
  background: #0f1f2a;
  border-radius: 18px;
}

.kitchen-hero {
  background: linear-gradient(135deg, rgba(10, 147, 150, 0.18), rgba(255, 255, 255, 0.95));
  border: 1px solid rgba(10, 147, 150, 0.2);
  border-radius: 20px;
  padding: 20px 22px;
  box-shadow: var(--shadow-card);
  display: grid;
  gap: 16px;
}

.kitchen-hero__title h1 {
  margin: 0 0 6px;
}

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

.kitchen-stat {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(230, 217, 198, 0.85);
  border-radius: 16px;
  padding: 12px 14px;
  display: grid;
  gap: 6px;
}

.kitchen-stat span {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.kitchen-stat strong {
  font-size: 20px;
}

.kitchen-board {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  margin-top: 16px;
}

.kitchen-deadline-board {
  position: sticky;
  top: 88px;
  z-index: 20;
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border: 2px solid rgba(10, 147, 150, 0.4);
  background:
    radial-gradient(circle at 90% 20%, rgba(10, 147, 150, 0.2), transparent 45%),
    linear-gradient(135deg, #ffffff 0%, #ecfdfb 100%);
}

.kitchen-deadline-board__label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: var(--muted);
  font-weight: 700;
}

.kitchen-deadline-board__time {
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: clamp(48px, 10vw, 92px);
  line-height: 0.95;
  letter-spacing: 0.02em;
  color: #083344;
  font-weight: 700;
}

.kitchen-deadline-board__countdown {
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: clamp(26px, 5vw, 42px);
  line-height: 1;
  color: #0f766e;
  font-weight: 700;
}

.kitchen-deadline-board__meta {
  font-size: 14px;
  color: #155e75;
}

.kitchen-deadline-board__status {
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
}

.kitchen-deadline-board.is-due-soon {
  border-color: rgba(245, 158, 11, 0.75);
  background:
    radial-gradient(circle at 90% 20%, rgba(245, 158, 11, 0.2), transparent 50%),
    linear-gradient(135deg, #fff7ed 0%, #fffbeb 100%);
}

.kitchen-deadline-board.is-overdue {
  border-color: rgba(220, 38, 38, 0.85);
  background:
    radial-gradient(circle at 90% 20%, rgba(239, 68, 68, 0.25), transparent 50%),
    linear-gradient(135deg, #fef2f2 0%, #fff7ed 100%);
  animation: deadlinePulse 1.1s ease-in-out infinite;
}

.kitchen-board > section {
  display: grid;
  gap: 12px;
  align-content: start;
}

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

.kitchen-column__head h2 {
  margin: 0 0 4px;
}

.badge {
  background: rgba(10, 147, 150, 0.12);
  color: var(--accent-strong);
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 12px;
}

.ticket-card {
  background: #ffffff;
  border: 1px solid rgba(230, 217, 198, 0.9);
  border-radius: 18px;
  padding: 14px;
  display: grid;
  gap: 10px;
  box-shadow: var(--shadow-soft);
}

.ticket-card--due-soon {
  border-color: rgba(245, 158, 11, 0.65);
  box-shadow: 0 14px 28px rgba(245, 158, 11, 0.16);
}

.ticket-card--overdue {
  border-color: rgba(220, 38, 38, 0.75);
  box-shadow: 0 18px 34px rgba(220, 38, 38, 0.2);
}

.ticket-head h3 {
  margin: 0;
}

.ticket-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.kitchen-deadline {
  border: 2px solid rgba(10, 147, 150, 0.3);
  border-radius: 14px;
  padding: 10px 12px;
  background:
    linear-gradient(135deg, rgba(209, 250, 229, 0.58), rgba(236, 253, 245, 0.88));
  display: grid;
  gap: 2px;
}

.kitchen-deadline__label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 700;
}

.kitchen-deadline__time {
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: clamp(28px, 4.2vw, 44px);
  line-height: 0.95;
  color: #065f46;
}

.kitchen-deadline__countdown {
  font-size: 13px;
  color: #0f766e;
  font-weight: 700;
}

.kitchen-deadline.is-due-soon {
  border-color: rgba(245, 158, 11, 0.7);
  background:
    linear-gradient(135deg, rgba(255, 237, 213, 0.84), rgba(255, 251, 235, 0.95));
}

.kitchen-deadline.is-overdue {
  border-color: rgba(220, 38, 38, 0.76);
  background:
    linear-gradient(135deg, rgba(254, 226, 226, 0.86), rgba(255, 241, 242, 0.95));
}

.kitchen-deadline.is-overdue .kitchen-deadline__time {
  color: #b91c1c;
}

.kitchen-deadline.is-overdue .kitchen-deadline__countdown {
  color: #991b1b;
}

.ticket-items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.ticket-items > li {
  background: var(--surface-alt);
  border: 1px solid rgba(230, 217, 198, 0.7);
  border-radius: 12px;
  padding: 8px 10px;
}

.ticket-item__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.ticket-inline-form {
  margin: 0;
}

.danger-ghost {
  color: #991b1b;
  border-color: rgba(185, 28, 28, 0.42);
  background: rgba(254, 226, 226, 0.7);
  box-shadow: none;
}

.ticket-items > li ul {
  margin: 6px 0 0;
  padding-left: 16px;
  color: var(--muted);
}

.ticket-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.sync-state {
  border: 1px dashed rgba(148, 163, 184, 0.6);
  border-radius: 12px;
  padding: 8px 10px;
  background: rgba(248, 250, 252, 0.75);
}

.sync-state strong {
  display: block;
  font-size: 13px;
}

.sync-state p {
  margin: 4px 0 0;
  font-size: 12px;
}

.alert {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(230, 217, 198, 0.9);
  padding: 12px 14px;
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
}

.load-alert.is-warn {
  border-color: #f59e0b;
  background: rgba(245, 158, 11, 0.08);
}

.load-alert.is-high {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.08);
}

.station-grid {
  margin-top: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.station-block {
  border: 1px dashed rgba(148, 163, 184, 0.7);
  border-radius: 12px;
  padding: 8px 10px;
  background: rgba(248, 250, 252, 0.9);
}

.station-block ul {
  margin: 6px 0 0;
  padding-left: 16px;
}

.station-block .btn {
  margin-top: 8px;
  width: 100%;
}

.summary-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  margin: 16px 0 20px;
}

.summary-card {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(230, 217, 198, 0.85);
  border-radius: 16px;
  padding: 12px 14px;
  display: grid;
  gap: 6px;
}

.summary-card span {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

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

.category-card {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(230, 217, 198, 0.85);
  border-radius: 18px;
  padding: 16px;
  box-shadow: var(--shadow-soft);
  margin-bottom: 18px;
}

.category-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

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

.ingredient-card h3 {
  margin: 0;
}

.ingredient-meta {
  display: grid;
  gap: 8px;
  font-size: 13px;
  color: var(--text);
}

.ingredient-meta strong {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 2px;
}

.ingredient-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.table-card {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(230, 217, 198, 0.85);
  border-radius: 16px;
  padding: 8px 10px;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.table-card .table th {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  background: rgba(10, 147, 150, 0.08);
}

.table-card .table td,
.table-card .table th {
  padding: 10px;
}

.table-card .table tr:last-child td {
  border-bottom: none;
}

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

.product-card {
  display: grid;
  gap: 12px;
}

.product-meta {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.product-actions {
  display: flex;
  justify-content: flex-end;
}

.call-pop__btn {
  border-radius: 999px;
}

.call-pop__dismiss,
.call-pop__snooze {
  border-radius: 999px;
}

.ticket-print-wrap {
  display: flex;
  justify-content: center;
}

.ticket-print {
  width: min(100%, 780px);
  background: #ffffff;
  color: #111827;
  border: 1px solid #d1d5db;
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.12);
  display: grid;
  gap: 12px;
}

.ticket-print .muted {
  color: #4b5563;
}

.ticket-print__brand {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px dashed #9ca3af;
  padding-bottom: 10px;
}

.ticket-print__brand-main {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ticket-print__brand h1 {
  margin: 0;
  font-size: 20px;
  line-height: 1.1;
}

.ticket-print__brand p {
  margin: 2px 0 0;
  font-size: 12px;
}

.ticket-print__logo {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  object-fit: cover;
}

.ticket-print__meta {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

.ticket-print__meta div,
.ticket-print__stations,
.ticket-print__address,
.ticket-print__notes {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #f9fafb;
  padding: 8px 10px;
}

.ticket-print__meta span,
.ticket-print__stations span,
.ticket-print__address span,
.ticket-print__notes span {
  display: block;
  font-size: 11px;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}

.ticket-print__meta strong,
.ticket-print__stations strong,
.ticket-print__address strong {
  font-size: 14px;
}

.ticket-print__items {
  display: grid;
  gap: 8px;
}

.ticket-line {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 8px 10px;
  background: #ffffff;
}

.ticket-line__head {
  font-size: 15px;
  line-height: 1.3;
}

.ticket-line__mods {
  margin: 6px 0 0;
  padding-left: 16px;
  color: #374151;
  font-size: 13px;
  display: grid;
  gap: 2px;
}

.ticket-print__notes p {
  margin: 2px 0 0;
  color: #111827;
  font-size: 13px;
  line-height: 1.35;
}

.ticket-print__footer {
  border-top: 1px dashed #9ca3af;
  padding-top: 8px;
  font-size: 12px;
  color: #374151;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

@media (max-width: 720px) {
  .content {
    padding: 20px;
  }

  .kitchen-deadline-board {
    position: static;
    top: auto;
  }

  .main-nav a {
    padding: 6px 10px;
  }

  .ticket-print {
    padding: 12px;
  }

  .ticket-print__meta {
    grid-template-columns: 1fr 1fr;
  }
}

@keyframes deadlinePulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.18);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(220, 38, 38, 0.02);
  }
}

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

  .content {
    padding: 0 !important;
  }

  .ticket-print-wrap {
    display: block;
  }

  .ticket-print {
    width: 80mm;
    max-width: 80mm;
    border: none;
    border-radius: 0;
    box-shadow: none;
    margin: 0 auto;
    padding: 0;
    gap: 8px;
  }

  .ticket-print__brand h1 {
    font-size: 16px;
  }

  .ticket-print__logo {
    width: 34px;
    height: 34px;
  }

  .ticket-print__meta {
    grid-template-columns: 1fr 1fr;
    gap: 4px;
  }

  .ticket-print__meta div,
  .ticket-print__stations,
  .ticket-print__address,
  .ticket-print__notes,
  .ticket-line {
    border-radius: 0;
    border-color: #e5e7eb;
    background: #ffffff;
    padding: 6px 0;
  }

  .ticket-print__footer {
    border-top-color: #d1d5db;
    padding-top: 6px;
  }
}
