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

:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;
  --brand: #0f766e;
  --brand-dark: #134e4a;
  --delivery: #0f766e;
  --pickup: #f97316;
  --dine: #4f46e5;
  --shadow-soft: 0 14px 30px rgba(15, 23, 42, 0.07);
  --shadow-hard: 0 22px 60px rgba(2, 6, 23, 0.16);
}

.kds-ticket[hidden],
.kds-rush__row[hidden],
.kds-filter-empty[hidden] {
  display: none !important;
}

.kds-filter-empty {
  min-height: 96px;
  display: grid;
  place-items: center;
  border: 1px dashed #cbd5e1;
  border-radius: 14px;
  color: #64748b;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.kds-operation-alert {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
  border-color: #fecaca;
  background: #fff1f2;
  color: #991b1b;
}

body {
  font-family: "Manrope", "Segoe UI", sans-serif;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 48%, #f1f5f9 100%);
  color: var(--text);
}

.kds-shell {
  min-height: 100vh;
  background:
    radial-gradient(circle at 8% 6%, rgba(15, 118, 110, 0.1), transparent 30%),
    linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
}

h1,
h2,
h3,
.kitchen-stat strong,
.kds-mode strong {
  font-family: "Space Grotesk", "Manrope", sans-serif;
  letter-spacing: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 14px 30px -26px rgba(15, 23, 42, 0.5);
}

.site-header--kds-focus {
  position: static;
  padding-block: 8px;
}

.site-header--kds-focus .brand {
  font-size: 13px;
}

.kds-focus .content {
  width: min(1800px, 100%);
  padding: 12px;
}

.kds-focus .kitchen-hero {
  border-radius: 14px;
  grid-template-columns: minmax(240px, .65fr) minmax(420px, 1fr);
  padding: 12px;
  box-shadow: 0 14px 40px rgba(15, 23, 42, .16);
}

.kds-focus .kitchen-hero h1 {
  font-size: clamp(24px, 3vw, 36px);
  margin: 4px 0 0;
}

.kds-focus .kitchen-hero .muted,
.kds-focus .kds-shift-rail,
.kds-focus .station-command,
.kds-focus .kds-ops-summary,
.kds-focus .load-alert {
  display: none;
}

.kds-focus .kitchen-stats {
  grid-template-columns: repeat(4, minmax(100px, 1fr));
}

.kds-focus .kitchen-stat {
  min-height: 74px;
  border-radius: 12px;
}

.kds-focus .kitchen-stat strong {
  font-size: 30px;
}

.kds-focus .kds-mode-strip {
  grid-template-columns: repeat(4, minmax(120px, 1fr));
}

.kds-focus .kds-mode {
  min-height: 64px;
  border-radius: 12px;
  padding: 10px 12px;
}

.kds-focus .kds-mode strong {
  font-size: 26px;
}

.kds-focus .station-switch {
  top: 0;
  border-radius: 12px;
  padding: 10px;
}

.main-nav a {
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(15, 23, 42, 0.04);
  font-weight: 900;
}

.main-nav a:hover {
  background: rgba(15, 118, 110, 0.12);
  color: var(--brand-dark);
}

.kitchen-hero {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(15, 118, 110, 0.22);
  background:
    radial-gradient(circle at 90% 10%, rgba(249, 115, 22, 0.22), transparent 34%),
    linear-gradient(135deg, #07111f 0%, #0f766e 100%);
  color: #e2e8f0;
  box-shadow: var(--shadow-hard);
  padding: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr);
  gap: 18px;
  align-items: center;
}

.kitchen-hero h1 {
  color: #ffffff;
  font-size: clamp(30px, 4vw, 46px);
}

.kitchen-hero .muted,
.kitchen-stat span {
  color: #cbd5e1;
}

.kitchen-stat {
  border-radius: 18px;
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.kitchen-stat strong {
  color: #ffffff;
  font-size: 36px;
  line-height: 0.9;
}

.kds-eyebrow {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  padding: 5px 9px;
  background: rgba(255, 255, 255, 0.12);
  color: #ccfbf1;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.kds-shift-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.kds-shift-card {
  display: grid;
  gap: 7px;
  min-height: 96px;
  padding: 13px;
  border-radius: 20px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
}

.kds-shift-card span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.kds-shift-card strong {
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.kds-shift-card small {
  color: var(--muted);
  line-height: 1.35;
}

.kds-shift-card--primary {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
}

.kds-shift-card--primary span,
.kds-shift-card--primary small {
  color: #cbd5e1;
}

.kds-mode-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.kds-mode {
  min-height: 86px;
  display: grid;
  gap: 4px;
  align-content: center;
  justify-items: start;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--text);
  box-shadow: var(--shadow-soft);
  padding: 12px 14px;
  text-align: left;
}

.kds-mode span {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
}

.kds-mode strong {
  font-size: 34px;
  line-height: 1;
}

.kds-mode.is-active {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
}

.kds-mode.is-active span {
  color: #cbd5e1;
}

.kds-mode--delivery {
  border-top: 4px solid var(--delivery);
}

.kds-mode--pickup {
  border-top: 4px solid var(--pickup);
}

.kds-mode--dine {
  border-top: 4px solid var(--dine);
}

.station-switch,
.card,
.ticket,
.ticket-card,
.station-block,
.kitchen-deadline-board {
  border-radius: 18px;
  border: 1px solid var(--border);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.station-switch {
  position: sticky;
  top: 68px;
  z-index: 45;
  display: grid;
  gap: 10px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
}

.station-command {
  display: grid;
  gap: 12px;
}

.station-command__head h2 {
  margin: 0;
}

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

.station-command__item {
  display: grid;
  gap: 8px;
  min-height: 124px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid var(--border);
  border-left: 5px solid #94a3b8;
  background: #f8fafc;
  color: var(--text);
  text-decoration: none;
}

.station-command__item.is-active {
  border-left-color: var(--brand);
  background: rgba(240, 253, 250, 0.95);
}

.station-command__item strong,
.station-command__item span {
  display: block;
}

.station-command__item strong {
  font-size: 15px;
}

.station-command__item span,
.station-command__meta {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

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

.station-command__numbers span {
  border-radius: 8px;
  background: #ffffff;
  padding: 6px;
  text-align: center;
  color: #334155;
}

.lucia-kds-bar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: minmax(320px, .85fr) minmax(360px, 1.15fr);
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(15, 23, 42, .14);
  border-radius: 14px;
  background: rgba(255, 255, 255, .95);
  box-shadow: 0 18px 40px rgba(15, 23, 42, .12);
  backdrop-filter: blur(12px);
}

.lucia-kds-bar__main,
.lucia-kds-bar__toggles,
.lucia-command-fallback,
.lucia-command-form {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.lucia-kds-bar__main {
  justify-content: space-between;
}

.lucia-status {
  display: grid;
  gap: 2px;
}

.lucia-status strong {
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 20px;
  line-height: 1;
}

.lucia-status span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.lucia-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #f8fafc;
  color: #0f172a;
  font-weight: 900;
}

.lucia-toggle input {
  width: 18px;
  height: 18px;
  accent-color: var(--brand);
}

.lucia-toggle--mode {
  min-width: 112px;
  justify-content: center;
}

.lucia-toggle--mode:has(input:checked) {
  background: #ecfdf5;
  border-color: rgba(20, 184, 166, .38);
  color: #115e59;
}

.lucia-command-fallback {
  justify-content: flex-end;
}

.lucia-command-fallback summary {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #f8fafc;
  color: #334155;
  cursor: pointer;
  font-weight: 900;
  list-style: none;
}

.lucia-command-fallback summary::-webkit-details-marker {
  display: none;
}

.lucia-command-fallback[open] {
  display: grid;
  justify-items: stretch;
}

.lucia-command-fallback[open] summary {
  justify-self: end;
}

.lucia-command-form input {
  min-width: 0;
  flex: 1;
  min-height: 46px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0 12px;
  font-size: 15px;
  font-weight: 700;
}

.lucia-command-form button,
.lucia-kds-bar .btn {
  border-radius: 10px;
  white-space: nowrap;
}

.lucia-popups {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 100;
  display: grid;
  gap: 10px;
  width: min(420px, calc(100vw - 32px));
  pointer-events: none;
}

.lucia-popup {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(15, 23, 42, .18);
  border-left: 6px solid #0f766e;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(2, 6, 23, .22);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .2s ease, transform .2s ease;
  pointer-events: auto;
}

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

.lucia-popup strong,
.lucia-popup span {
  grid-column: 1;
}

.lucia-popup strong {
  font-size: 18px;
}

.lucia-popup span {
  color: #334155;
  line-height: 1.35;
  font-weight: 750;
}

.lucia-popup button {
  grid-column: 2;
  grid-row: 1 / span 2;
  min-height: 36px;
  border-radius: 10px;
  padding: 0 10px;
  background: #f8fafc;
  color: #0f172a;
  border-color: var(--border);
  box-shadow: none;
}

.lucia-popup--station {
  border-left-color: #f97316;
}

.lucia-popup--ready {
  border-left-color: #16a34a;
}

.lucia-popup--error {
  border-left-color: #dc2626;
}

.lucia-popup--new {
  border-left-color: #2563eb;
}

.kds-ticket.is-lucia-focused {
  outline: 3px solid rgba(20, 184, 166, 0.72);
  box-shadow: 0 0 0 6px rgba(20, 184, 166, 0.14), var(--shadow);
}

.kds-ops-summary {
  border: 1px solid var(--border);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-soft);
  padding: 0;
}

.kds-ops-summary > summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
}

.kds-ops-summary > summary::-webkit-details-marker {
  display: none;
}

.kds-ops-summary > summary h2,
.kds-ops-summary > summary p {
  margin: 0;
}

.kds-ops-summary__body {
  padding: 0 16px 16px;
}

.kds-ops-summary .card {
  box-shadow: none;
}

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

.kds-column {
  min-width: 0;
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.kds-rush {
  grid-column: 1 / -1;
  display: grid;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  padding: 12px;
}

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

.kds-rush__head h2 {
  margin: 0;
}

.kds-rush__table {
  display: grid;
  gap: 4px;
  max-height: 420px;
  overflow: auto;
}

.kds-rush__row {
  display: grid;
  grid-template-columns: 0.75fr 0.65fr 0.65fr 1.2fr 1fr 0.9fr;
  gap: 8px;
  align-items: center;
  min-height: 38px;
  padding: 7px 9px;
  border-radius: 13px;
  background: #f8fafc;
  font-size: 12px;
}

.kds-rush__row--head {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #0f172a;
  color: #ffffff;
  font-weight: 800;
}

.kds-rush__row strong,
.kds-rush__row small {
  display: block;
}

.kds-rush__row small {
  color: var(--muted);
  font-size: 10px;
}

.kitchen-column__head {
  position: sticky;
  top: 152px;
  z-index: 3;
  margin: -12px -12px 0;
  padding: 14px 12px 12px;
  border-radius: 22px 22px 14px 14px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  background: rgba(248, 250, 252, 0.96);
  backdrop-filter: blur(10px);
}

.kds-ticket {
  position: relative;
  overflow: hidden;
  border-left: 7px solid var(--delivery);
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
  padding: 14px;
}

.kds-ticket--pickup {
  border-left-color: var(--pickup);
}

.kds-ticket--dine {
  border-left-color: var(--dine);
}

.ticket-head h3 {
  font-size: 42px;
  line-height: 0.9;
}

.ticket-meta {
  gap: 8px;
}

.kds-priority {
  border-color: transparent;
  font-weight: 800;
}

.kds-priority--advance {
  background: rgba(20, 184, 166, 0.16);
  color: #115e59;
}

.kds-priority--urgent {
  background: rgba(239, 68, 68, 0.13);
  color: #991b1b;
}

.kds-priority--wait {
  background: rgba(100, 116, 139, 0.14);
  color: #334155;
}

.kds-priority--group {
  background: rgba(14, 165, 233, 0.16);
  color: #075985;
}

.kds-priority--pickup_push {
  background: rgba(250, 204, 21, 0.28);
  color: #854d0e;
}

.kds-station-progress {
  background: rgba(15, 23, 42, 0.08);
  color: #334155;
  font-weight: 800;
}

.sync-state--blocked {
  border-color: rgba(220, 38, 38, .35);
  background: rgba(254, 226, 226, .8);
}

.auth-station-picker {
  min-width: 0;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #f8fafc;
}

.auth-station-picker legend {
  padding: 0 6px;
  font-weight: 950;
}

.auth-station-picker > p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 12px;
}

.auth-station-picker__grid,
.kds-active-stations-form__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(138px, 1fr));
  gap: 8px;
}

.auth-station-picker__grid label,
.kds-active-stations-form__grid label {
  display: flex;
  gap: 8px;
  align-items: center;
  min-height: 44px;
  padding: 9px 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  font-weight: 850;
  cursor: pointer;
}

.auth-station-picker__grid label:has(input:checked),
.kds-active-stations-form__grid label:has(input:checked) {
  border-color: rgba(13, 148, 136, .55);
  background: rgba(204, 251, 241, .7);
  color: #115e59;
}

.auth-station-picker__grid input,
.kds-active-stations-form__grid input {
  width: 18px;
  height: 18px;
  accent-color: #0f766e;
}

.kds-active-stations-form {
  display: grid;
  gap: 10px;
}

.kds-ops-hint {
  display: grid;
  gap: 2px;
  margin: 10px 0 12px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-left: 5px solid #94a3b8;
  border-radius: 8px;
  background: #f8fafc;
  color: #334155;
}

.kds-ops-hint strong {
  color: #0f172a;
  font-size: 13px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.kds-ops-hint span {
  font-size: 13px;
  line-height: 1.35;
}

.kds-ops-hint--advance {
  border-left-color: #14b8a6;
  background: rgba(240, 253, 250, 0.9);
}

.kds-ops-hint--urgent {
  border-left-color: #ef4444;
  background: rgba(254, 242, 242, 0.95);
}

.kds-ops-hint--wait {
  border-left-color: #94a3b8;
}

.kds-ops-hint--group {
  border-left-color: #0ea5e9;
  background: rgba(240, 249, 255, 0.95);
}

.kds-ops-hint--pickup_push {
  border-left-color: #facc15;
  background: rgba(254, 252, 232, 0.95);
}

.pill,
.chip,
.badge {
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #f1f5f9;
  color: #334155;
}

.pill-delivery {
  background: rgba(15, 118, 110, 0.12);
  color: var(--brand-dark);
}

.pill-pickup {
  background: rgba(249, 115, 22, 0.14);
  color: #9a3412;
}

.pill-dine-in {
  background: rgba(79, 70, 229, 0.14);
  color: #3730a3;
}

button,
.btn,
.button {
  min-height: 44px;
  border-radius: 14px;
  background: #0f172a;
  color: #ffffff;
  border: 1px solid #0f172a;
  box-shadow: 0 14px 24px -20px rgba(15, 23, 42, 0.7);
  font-weight: 800;
}

.ticket-actions button,
.ticket-actions .btn,
.ticket-inline-form button {
  min-height: 48px;
  padding-inline: 16px;
}

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

.ticket-items > li {
  padding: 12px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid rgba(226, 232, 240, 0.95);
  font-size: 15px;
  line-height: 1.25;
}

.ticket-item__top > span,
.ticket-items > li > span {
  font-weight: 900;
}

.ticket-items > li ul {
  margin-top: 8px;
  padding-left: 18px;
  color: #475569;
  font-size: 13px;
}

.sync-state,
.kitchen-deadline {
  border-radius: 16px;
}

@media (max-width: 1100px) {
  .kds-shift-rail,
  .kds-mode-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .kitchen-hero,
  .kitchen-board {
    grid-template-columns: 1fr;
  }

  .kitchen-column__head {
    top: 68px;
  }

  .lucia-kds-bar {
    grid-template-columns: 1fr;
  }

  .lucia-kds-bar__main {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 680px) {
  .kds-shift-rail,
  .kds-mode-strip {
    grid-template-columns: 1fr;
  }

  .content {
    padding: 16px;
  }

  .kds-focus .content {
    padding: 8px;
  }

  .kds-focus .kitchen-hero,
  .kds-focus .kds-mode-strip,
  .kds-focus .kitchen-stats {
    grid-template-columns: 1fr;
  }

  .lucia-command-form,
  .lucia-command-fallback,
  .lucia-kds-bar__toggles {
    align-items: stretch;
    flex-direction: column;
    width: 100%;
  }

  .lucia-toggle,
  .lucia-command-fallback summary,
  .lucia-command-form button,
  .lucia-kds-bar .btn {
    width: 100%;
    justify-content: center;
  }

  .kds-rush__row {
    grid-template-columns: 1fr 1fr;
  }

  .kds-rush__row--head {
    display: none;
  }
}

button:hover,
.btn:hover,
.button:hover {
  background: #020617;
  transform: translateY(-1px);
}

.btn.ghost,
.ghost,
.secondary {
  background: #ffffff;
  color: #0f172a;
  border-color: var(--border);
  box-shadow: none;
}

.danger-ghost {
  color: #b91c1c;
}

@media (max-width: 820px) {
  .kds-mode-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .kds-rush__row {
    grid-template-columns: 0.8fr 0.7fr 0.7fr 1fr;
  }

  .kds-rush__row span:nth-child(5),
  .kds-rush__row span:nth-child(6) {
    display: none;
  }
}

.auth-standard {
  min-height: calc(100vh - 170px);
  display: grid;
  place-items: center;
  padding: 32px 16px;
}

.auth-standard__card {
  width: min(480px, 100%);
  padding: 26px;
  border-radius: 30px;
  box-shadow: var(--shadow-hard);
}

.auth-standard__brand {
  display: flex;
  gap: 12px;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.auth-standard__brand img,
.auth-standard__mark {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  object-fit: cover;
}

.auth-standard__mark {
  display: grid;
  place-items: center;
  background: var(--ink);
  color: #fff;
  font-weight: 950;
}

.auth-standard__brand span,
.auth-standard__head span,
.auth-standard__foot {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}

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

.auth-standard__head h1 {
  margin: 8px 0;
  font-size: clamp(32px, 6vw, 54px);
  line-height: .9;
  letter-spacing: -.06em;
}

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

.kds-expedition {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(22, 163, 74, .22);
  border-radius: 28px;
  background:
    radial-gradient(circle at top left, rgba(34, 197, 94, .18), transparent 30%),
    linear-gradient(135deg, #f0fdf4, #ffffff);
  box-shadow: 0 22px 60px rgba(15, 23, 42, .1);
}

.kds-expedition__head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
}

.kds-expedition__head h2 {
  margin: 4px 0 0;
  font-size: clamp(26px, 4vw, 46px);
  line-height: .9;
  letter-spacing: -.06em;
}

.kds-expedition__head > strong {
  font-size: 46px;
  line-height: 1;
}

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

.kds-expedition__item {
  display: grid;
  gap: 5px;
  padding: 14px;
  border: 1px solid rgba(15, 23, 42, .1);
  border-radius: 20px;
  background: #fff;
}

.kds-expedition__item span {
  font-size: 24px;
  font-weight: 950;
}

.kds-expedition__item strong {
  color: #166534;
}

.kds-expedition__item small {
  color: var(--muted);
}

.help-hub {
  display: grid;
  gap: 16px;
}

.help-hero {
  padding: 24px;
  border: 1px solid rgba(14, 116, 144, .16);
  border-radius: 30px;
  background:
    radial-gradient(circle at top right, rgba(245, 158, 11, .18), transparent 34%),
    linear-gradient(135deg, #fff7ed, #ffffff);
  box-shadow: var(--shadow-hard);
}

.help-hero h1 {
  margin: 6px 0 8px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: .86;
  letter-spacing: -.075em;
}

.help-hero p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

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

.help-grid article {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: #fff;
}

.help-grid strong {
  display: block;
  margin-bottom: 7px;
  font-weight: 950;
}

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

@media (max-width: 900px) {
  .help-grid {
    grid-template-columns: 1fr;
  }
}

/* Zestia KDS compact operations layer */
:root {
  --kds-compact-bg: #f5f7fb;
  --kds-compact-surface: #ffffff;
  --kds-compact-border: #dbe3ee;
  --kds-compact-text: #111827;
  --kds-compact-muted: #64748b;
  --kds-compact-radius: 10px;
  --kds-compact-shadow: 0 10px 26px rgba(15, 23, 42, .08);
}

body.kds-shell {
  background: var(--kds-compact-bg);
  color: var(--kds-compact-text);
  letter-spacing: 0;
}

.kds-shell .site-header {
  min-height: 56px;
  padding: 8px 18px;
  border-bottom: 1px solid var(--kds-compact-border);
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 8px 22px rgba(15, 23, 42, .06);
}

.kds-shell .brand {
  gap: 9px;
}

.kds-shell .brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 8px;
}

.kds-shell .main-nav {
  gap: 5px;
}

.kds-shell .main-nav a {
  min-height: 32px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
}

.kds-shell .content {
  width: 100%;
  max-width: none;
  padding: 12px 16px 40px;
}

.kds-shell h1 {
  margin: 0;
  font-size: clamp(24px, 2vw, 34px);
  line-height: 1.05;
  letter-spacing: 0;
}

.kds-shell h2 {
  margin: 0 0 8px;
  font-size: clamp(18px, 1.35vw, 24px);
  line-height: 1.12;
  letter-spacing: 0;
}

.kds-shell h3 {
  margin: 0 0 7px;
  font-size: 16px;
  letter-spacing: 0;
}

.kds-dashboard,
.kds-grid,
.kds-columns,
.kds-stations,
.kds-expedition,
.kds-load-grid,
.kds-modes,
.kds-summary {
  gap: 10px;
}

.kds-hero,
.kds-toolbar,
.kds-panel,
.kds-section,
.kds-column,
.kds-card,
.ticket-card,
.help-hero,
.help-grid article {
  border: 1px solid var(--kds-compact-border);
  border-radius: var(--kds-compact-radius);
  background: var(--kds-compact-surface);
  box-shadow: var(--kds-compact-shadow);
}

.kds-hero,
.kds-toolbar,
.kds-panel,
.kds-section,
.kds-column,
.help-hero {
  padding: 14px;
}

.kds-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 0;
}

.kds-hero p,
.kds-panel p,
.kds-section p,
.muted {
  margin-top: 4px;
  line-height: 1.35;
}

.kds-stat,
.kds-mode,
.kds-load-card,
.kds-expedition__item {
  min-height: 72px;
  padding: 12px;
  border-radius: var(--kds-compact-radius);
}

.kds-stat strong,
.kds-mode strong,
.kds-expedition__item span {
  font-size: clamp(22px, 2.1vw, 32px);
  line-height: 1;
  letter-spacing: 0;
}

.ticket-card,
.kds-ticket {
  padding: 12px;
  border-radius: var(--kds-compact-radius);
  box-shadow: none;
}

.kds-ticket__head,
.ticket-head,
.ticket-meta,
.ticket-actions {
  gap: 8px;
}

.kds-ticket h3,
.ticket-card h3 {
  font-size: 18px;
  line-height: 1.05;
}

.kds-ticket li,
.ticket-card li,
.kds-ticket p,
.ticket-card p {
  font-size: 13px;
  line-height: 1.32;
}

.kds-ticket button,
.kds-shell button,
.kds-shell .btn,
.kds-shell .ghost-button {
  min-height: 34px;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0;
}

.kds-shell input,
.kds-shell select,
.kds-shell textarea {
  min-height: 36px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 14px;
  box-shadow: none;
}

.kds-shell table {
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border: 1px solid var(--kds-compact-border);
  border-radius: var(--kds-compact-radius);
}

.kds-shell th {
  padding: 8px 10px;
  font-size: 11px;
  letter-spacing: .04em;
}

.kds-shell td {
  padding: 8px 10px;
  font-size: 13px;
}

.help-hero h1 {
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.05;
  letter-spacing: 0;
}

.help-grid {
  gap: 10px;
}

.help-grid article {
  padding: 12px;
}

@media (max-width: 760px) {
  .kds-shell .content {
    padding: 10px;
  }

  .kds-shell .site-header,
  .kds-hero {
    align-items: stretch;
    flex-direction: column;
  }
}

/* Cocina: disponibilidad operativa, no configuracion de carta */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.product-card {
  display: grid;
  gap: 10px;
  min-height: 0;
}

.product-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

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

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

/* KDS operativo: comandas primero, resumen como apoyo */
.kds-focus .content {
  padding: 8px 12px 30px;
}

.kds-focus .kitchen-hero {
  grid-template-columns: minmax(220px, .48fr) minmax(520px, 1fr);
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
}

.kds-focus .kitchen-hero h1 {
  font-size: clamp(22px, 2.1vw, 34px);
}

.kds-focus .kitchen-stat {
  min-height: 58px;
  padding: 9px 10px;
}

.kds-focus .kitchen-stat strong,
.kds-focus .kds-mode strong {
  font-size: clamp(24px, 2.2vw, 34px);
}

.kds-focus .kds-mode-strip {
  gap: 6px;
}

.kds-focus .kds-mode {
  min-height: 56px;
  padding: 8px 10px;
}

.kds-focus .station-switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
}

.kds-focus .station-switch form,
.kds-focus .station-shift {
  margin: 0;
}

.kds-focus .station-shift {
  flex: 1;
  justify-content: flex-end;
  padding: 0;
  border-top: 0;
}

.kds-focus .station-shift > .muted {
  display: none;
}

.lucia-kds-bar {
  grid-template-columns: minmax(240px, .55fr) minmax(520px, 1fr);
  min-height: 58px;
  padding: 8px 10px;
}

.lucia-status strong {
  font-size: 18px;
}

.lucia-toggle,
.lucia-command-fallback summary {
  min-height: 38px;
}

.kitchen-deadline-board {
  position: static;
  min-height: 0;
  padding: 10px 12px;
  border-width: 1px;
}

.kitchen-deadline-board__time {
  font-size: clamp(30px, 3vw, 48px);
}

.kitchen-deadline-board__countdown {
  font-size: clamp(22px, 2.2vw, 32px);
}

.kds-rush {
  border-radius: 14px;
  padding: 10px;
}

.kds-rush__head p {
  display: none;
}

.kds-rush__table {
  max-height: 360px;
}

.kds-column {
  border-radius: 14px;
  padding: 10px;
  gap: 10px;
}

.kitchen-column__head {
  top: 68px;
  margin: -10px -10px 0;
  padding: 10px;
  border-radius: 13px 13px 10px 10px;
}

.kitchen-column__head h2 {
  margin: 0;
}

.kitchen-column__head .muted {
  display: none;
}

.kds-empty-column {
  min-height: 130px;
  display: grid;
  place-items: center;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  color: #64748b;
  font-weight: 900;
}

.kds-ticket {
  display: grid;
  gap: 9px;
  border-left-width: 6px;
  border-radius: 14px;
  padding: 10px;
}

.kds-ticket__head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
}

.kds-ticket .ticket-head h3,
.kds-ticket h3,
.ticket-card h3 {
  width: 54px;
  min-height: 54px;
  display: grid;
  place-items: center;
  margin: 0;
  border-radius: 9px;
  background: #101827;
  color: #ffffff;
  font-size: clamp(24px, 2vw, 34px);
  line-height: 1;
  letter-spacing: 0;
}

.kds-ticket__title {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.kds-ticket__title strong {
  overflow: hidden;
  color: #111827;
  font-size: 15px;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kds-ticket__title span {
  color: #64748b;
  font-size: 11px;
  font-weight: 850;
}

.kds-ticket .tag {
  align-self: start;
  white-space: nowrap;
}

.kds-ticket__scope {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 30px;
  padding: 6px 8px;
  border-radius: 9px;
  background: #f8fafc;
  color: #334155;
  font-size: 12px;
  font-weight: 900;
}

.kds-ticket__scope em {
  color: #9a3412;
  font-style: normal;
}

.kds-ticket__view-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 3px;
  border: 1px solid #dbe3ee;
  border-radius: 10px;
  background: #eef2f7;
}

.kds-ticket__view-switch button {
  min-height: 34px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #475569;
  box-shadow: none;
}

.kds-ticket__view-switch button.is-active {
  background: #101827;
  color: #ffffff;
}

.ticket-items {
  gap: 7px;
}

.ticket-items > li {
  padding: 9px 10px;
  border-color: #dbe3ee;
  background: #ffffff;
}

.ticket-items > li.is-other-station {
  border-style: dashed;
  background: #f8fafc;
  opacity: .84;
}

.ticket-item__top > span,
.ticket-items > li > span {
  color: #0f172a;
  font-size: 15px;
  font-weight: 950;
}

.ticket-item__stations {
  margin-top: 5px;
  color: #0f766e;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.kds-ticket__notes {
  margin: 0;
  padding: 8px 10px;
  border: 1px solid #fecaca;
  border-radius: 9px;
  background: #fff1f2;
  color: #9f1239;
  font-weight: 900;
}

.kds-ticket__actions {
  align-items: stretch;
  justify-content: flex-start;
}

.kds-ticket__actions form {
  margin: 0;
}

.kds-ticket__actions button,
.kds-ticket__actions .btn {
  min-height: 38px;
}

.kds-auto-note {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid rgba(22, 163, 74, .28);
  border-radius: 9px;
  background: #ecfdf5;
  color: #166534;
  font-size: 12px;
  font-weight: 950;
}

@media (min-width: 1500px) {
  .kitchen-board {
    grid-template-columns: repeat(3, minmax(310px, 1fr)) minmax(270px, .72fr);
    gap: 12px;
  }

  .kds-rush {
    grid-column: 4;
    grid-row: 1 / span 2;
    position: sticky;
    top: 8px;
    max-height: calc(100vh - 24px);
    overflow: hidden;
  }

  .kds-rush__table {
    max-height: calc(100vh - 130px);
  }

  .kds-rush__row {
    grid-template-columns: 60px 1fr 54px;
  }

  .kds-rush__row span:nth-child(4),
  .kds-rush__row span:nth-child(5),
  .kds-rush__row span:nth-child(6) {
    display: none;
  }
}

@media (max-width: 1499px) {
  .kitchen-board {
    grid-template-columns: repeat(3, minmax(280px, 1fr));
  }

  .kds-rush {
    grid-column: 1 / -1;
  }
}

@media (max-width: 1100px) {
  .kds-focus .kitchen-hero,
  .kds-focus .station-switch,
  .lucia-kds-bar {
    grid-template-columns: 1fr;
  }

  .kds-focus .station-switch {
    align-items: stretch;
    flex-direction: column;
  }

  .kitchen-board {
    grid-template-columns: 1fr;
  }
}

/* Revision KDS: primera pantalla solo trabajo */
.kds-focus .site-header {
  min-height: 46px;
  padding: 6px 14px;
}

.kds-focus .brand-logo {
  width: 32px;
  height: 32px;
}

.kds-focus .content {
  padding: 8px 12px 24px;
}

.kds-workbar {
  position: sticky;
  top: 0;
  z-index: 55;
  display: grid;
  grid-template-columns: minmax(190px, .66fr) minmax(430px, 1.5fr) minmax(245px, .86fr) minmax(205px, .7fr) auto;
  gap: 8px;
  align-items: stretch;
  margin-bottom: 8px;
  padding: 8px;
  border: 1px solid #dbe3ee;
  border-radius: 12px;
  background: rgba(248, 250, 252, .96);
  box-shadow: 0 12px 30px rgba(15, 23, 42, .08);
  backdrop-filter: blur(12px);
}

.kds-workbar__station,
.kds-workbar__counts,
.kds-workbar__deadline,
.kds-workbar__lucia,
.kds-tools-panel > summary {
  min-height: 52px;
  border: 1px solid #dbe3ee;
  border-radius: 10px;
  background: #ffffff;
}

.kds-workbar__station {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(130px, .85fr);
  gap: 8px;
  align-items: center;
  padding: 6px 8px;
}

.kds-workbar__station strong {
  overflow: hidden;
  color: #111827;
  font-size: 14px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kds-workbar__station select {
  width: 100%;
  min-height: 36px;
  font-size: 13px;
}

.kds-workbar__counts {
  display: grid;
  grid-template-columns: minmax(64px, .72fr) minmax(104px, 1.32fr) minmax(104px, 1.32fr) minmax(64px, .72fr);
  gap: 4px;
  padding: 4px;
}

.kds-workbar__filter {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
  align-items: center;
  min-height: 42px;
  padding: 6px 8px;
  border: 0;
  border-radius: 8px;
  background: #f8fafc;
  color: #334155;
  box-shadow: none;
}

.kds-workbar__filter span {
  overflow: hidden;
  font-size: 11px;
  font-weight: 950;
  text-align: left;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.kds-workbar__filter strong {
  color: #0f172a;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 24px;
  line-height: 1;
}

.kds-workbar__filter small {
  grid-column: 1 / -1;
  overflow: hidden;
  color: #64748b;
  font-size: 9px;
  font-weight: 850;
  line-height: 1;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kds-workbar__filter.is-active small {
  color: #cbd5e1;
}

.kds-workbar__filter.is-active {
  background: #0f172a;
  color: #ffffff;
}

.kds-workbar__filter.is-active strong {
  color: #ffffff;
}

.kds-workbar__deadline {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  gap: 2px 8px;
  align-content: center;
  padding: 6px 10px;
  box-shadow: none;
}

.kds-workbar__deadline .kitchen-deadline-board__label,
.kds-workbar__deadline .kitchen-deadline-board__status {
  color: #64748b;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.kds-workbar__deadline .kitchen-deadline-board__time {
  grid-row: 1 / span 2;
  color: #0f172a;
  font-size: 28px;
  line-height: 1;
}

.kds-workbar__deadline .kitchen-deadline-board__countdown {
  align-self: end;
  color: #0f766e;
  font-size: 15px;
  font-weight: 950;
}

.kds-workbar__deadline .kitchen-deadline-board__meta {
  overflow: hidden;
  align-self: start;
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kds-workbar__deadline .kitchen-deadline-board__status {
  grid-column: 1 / -1;
}

.kds-workbar__lucia {
  position: static;
  z-index: auto;
  display: grid;
  grid-template-columns: minmax(50px, .7fr) 52px 52px;
  gap: 3px;
  align-items: center;
  padding: 4px 6px;
  box-shadow: none;
  backdrop-filter: none;
}

.kds-workbar__lucia .lucia-status {
  min-width: 0;
}

.kds-workbar__lucia .lucia-status strong {
  overflow: hidden;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kds-workbar__lucia .lucia-status span {
  font-size: 10px;
}

.kds-workbar__lucia .lucia-toggle {
  min-width: 0;
  min-height: 40px;
  padding: 4px;
  gap: 4px;
  font-size: 11px;
}

.kds-workbar__lucia .lucia-toggle input {
  width: 16px;
  height: 16px;
}

.kds-tools-panel {
  position: relative;
  margin: 0;
  align-self: stretch;
}

.kds-tools-panel > summary {
  display: grid;
  place-items: center;
  padding: 0 12px;
  color: #0f172a;
  cursor: pointer;
  font-size: 13px;
  font-weight: 950;
  list-style: none;
  white-space: nowrap;
}

.kds-tools-panel > summary::-webkit-details-marker {
  display: none;
}

.kds-tools-panel[open] > summary {
  background: #0f172a;
  color: #ffffff;
}

.kds-tools-panel__body {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 80;
  display: grid;
  grid-template-columns: minmax(260px, .9fr) minmax(360px, 1.2fr);
  gap: 10px;
  width: min(920px, calc(100vw - 24px));
  padding: 10px;
  border: 1px solid #dbe3ee;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 28px 80px rgba(15, 23, 42, .22);
}

.kds-tools-card {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid #dbe3ee;
  border-radius: 10px;
  background: #f8fafc;
}

.kds-tools-card > strong {
  color: #0f172a;
  font-size: 13px;
  font-weight: 950;
}

.kds-tools-card--wide {
  grid-column: 1 / -1;
}

.kds-tools-panel .station-command__grid {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.kds-tools-panel .station-command__item {
  min-height: auto;
  padding: 8px;
}

.kds-focus .kitchen-board {
  margin-top: 0;
  height: calc(100vh - 126px);
  min-height: 520px;
  overflow: hidden;
}

.kds-focus .kds-column,
.kds-focus .kds-rush {
  max-height: 100%;
  min-height: 0;
  overflow: auto;
}

.kds-focus .kds-empty-column {
  min-height: calc(100vh - 250px);
}

.kds-focus .kitchen-column__head {
  top: 0;
}

.kds-focus .kds-rush {
  padding: 10px;
}

.kds-focus .kds-rush__head {
  min-height: 45px;
}

.kds-focus .kds-rush__table {
  max-height: none;
}

@media (min-width: 1500px) {
  .kds-focus .kitchen-board {
    grid-template-columns: repeat(3, minmax(320px, 1fr)) minmax(300px, .72fr);
  }

  .kds-focus .kds-rush {
    top: 0;
    max-height: 100%;
  }
}

@media (max-width: 1320px) {
  .kds-workbar {
    grid-template-columns: minmax(220px, 1fr) minmax(420px, 1.5fr) auto;
  }

  .kds-workbar__deadline,
  .kds-workbar__lucia {
    grid-column: span 1;
  }
}

@media (max-width: 980px) {
  .kds-workbar,
  .kds-workbar__station,
  .kds-workbar__counts,
  .kds-workbar__lucia {
    grid-template-columns: 1fr;
  }

  .kds-focus .kitchen-board {
    height: auto;
    overflow: visible;
  }

  .kds-tools-panel__body {
    position: static;
    width: 100%;
    margin-top: 8px;
    grid-template-columns: 1fr;
  }
}

/* Navegacion KDS en tablet: conserva todas las acciones visibles y mantiene
   un overflow horizontal perceptible y operable con teclado si hiciera falta. */
.zestia-ops-shell.zestia-ops-shell--kds .main-nav.zestia-ops-nav {
  max-width: 100%;
  padding-block-end: 3px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-padding-inline: 8px;
  scrollbar-width: thin;
  scrollbar-color: #94a3b8 #e2e8f0;
}

.zestia-ops-shell.zestia-ops-shell--kds .main-nav.zestia-ops-nav::-webkit-scrollbar {
  display: block;
  height: 5px;
}

.zestia-ops-shell.zestia-ops-shell--kds .main-nav.zestia-ops-nav::-webkit-scrollbar-track {
  border-radius: 999px;
  background: #e2e8f0;
}

.zestia-ops-shell.zestia-ops-shell--kds .main-nav.zestia-ops-nav::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #94a3b8;
}

@media (max-width: 1180px) {
  .zestia-ops-shell.zestia-ops-shell--kds .zestia-ops-status {
    width: 34px;
    min-width: 34px;
    min-height: 34px;
    justify-content: center;
    overflow: hidden;
    padding: 0;
    font-size: 0;
  }

  .zestia-ops-shell.zestia-ops-shell--kds .zestia-ops-header__actions {
    gap: 6px;
  }

  .zestia-ops-shell.zestia-ops-shell--kds .kds-fullscreen-toggle {
    padding-inline: 9px;
  }

  .zestia-ops-shell.zestia-ops-shell--kds .main-nav.zestia-ops-nav a {
    padding-inline: 9px;
    font-size: 12px;
  }
}

/* Zestia OS shell parity with negocio */
.kds-shell .site-header {
  min-height: 58px;
  padding: 7px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid #dfe3ea;
  background: #ffffff;
  box-shadow: 0 2px 7px rgba(15, 23, 42, .06);
}

.kds-focus .site-header {
  min-height: 58px;
  padding: 7px 18px;
}

.kds-product-brand,
.kds-shell .ops-product-brand {
  display: flex;
  min-width: 190px;
  align-items: center;
  gap: 10px;
}

.kds-product-brand .ops-product-brand__mark {
  display: none;
}

.kds-product-brand .ops-product-brand__copy {
  display: block;
  min-width: 0;
  line-height: 1;
}

.kds-product-brand .ops-product-brand__wordmark {
  display: block;
  color: #111827;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 25px;
  font-style: italic;
  font-weight: 950;
  letter-spacing: 0;
  line-height: .92;
  text-transform: uppercase;
  white-space: nowrap;
}

.kds-product-brand .ops-product-brand__wordmark span {
  color: #3454e8;
}

.kds-product-brand .ops-product-brand__copy small {
  display: block;
  max-width: min(360px, 48vw);
  margin-top: 5px;
  overflow: hidden;
  color: #6b7280;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.05;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.kds-shell .main-nav {
  margin-left: auto;
}

.kds-shell .main-nav a {
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid #dfe3ea;
  border-radius: 10px;
  background: #f8fafc;
  color: #111827;
  font-size: 13px;
  font-weight: 850;
  text-decoration: none;
}

.kds-focus .kitchen-board {
  height: calc(100vh - 138px);
}

.kds-fullscreen-toggle {
  min-height: 34px;
  margin-left: auto;
  padding: 0 12px;
  border: 1px solid #111827;
  border-radius: 10px;
  background: #111827;
  color: #ffffff;
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  white-space: nowrap;
}

.kds-fullscreen-toggle:hover,
.kds-fullscreen-toggle.is-active {
  border-color: #3454e8;
  background: #3454e8;
}

.kds-fullscreen-toggle + .main-nav {
  margin-left: 0;
}

.kds-shell.kds-browser-fullscreen {
  overflow: hidden;
}

.kds-browser-fullscreen .site-header {
  position: static;
}

.kds-browser-fullscreen .content {
  height: calc(100vh - 58px);
  height: calc(100dvh - 58px);
  padding: 8px 12px 12px;
  overflow: hidden;
}

.kds-browser-fullscreen .kitchen-board {
  height: calc(100vh - 132px);
  height: calc(100dvh - 132px);
  min-height: 0;
}

.kds-browser-fullscreen .kds-column,
.kds-browser-fullscreen .kds-rush {
  max-height: 100%;
  min-height: 0;
  overflow: auto;
}

@media (max-width: 680px) {
  .kds-shell .site-header {
    align-items: flex-start;
    padding: 8px 10px;
  }

  .kds-product-brand .ops-product-brand__wordmark {
    font-size: 22px;
  }

  .kds-product-brand .ops-product-brand__copy small {
    max-width: 78vw;
    font-size: 9px;
  }

  .kds-fullscreen-toggle {
    width: 100%;
    margin-left: 0;
  }
}

/* Fullscreen cocina: misma cabecera y misma navegacion, solo mas superficie de trabajo. */
.kds-shell.kds-browser-fullscreen,
.kds-shell.kds-focus {
  --kds-focus-header-height: 58px;
}

.kds-browser-fullscreen .site-header,
.kds-focus .site-header {
  position: relative;
  min-height: var(--kds-focus-header-height);
  padding: 7px 14px;
  overflow: hidden;
}

.kds-browser-fullscreen .kds-product-brand,
.kds-focus .kds-product-brand,
.kds-browser-fullscreen .ops-product-brand,
.kds-focus .ops-product-brand {
  min-width: 166px;
}

.kds-browser-fullscreen .ops-product-brand__wordmark,
.kds-focus .ops-product-brand__wordmark {
  font-size: 20px !important;
}

.kds-browser-fullscreen .ops-product-brand__copy small,
.kds-focus .ops-product-brand__copy small {
  max-width: 174px;
  margin-top: 3px;
  font-size: 9px;
}

.kds-browser-fullscreen .main-nav,
.kds-focus .main-nav {
  display: flex;
  flex: 1 1 auto;
  justify-content: flex-end;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.kds-browser-fullscreen .main-nav::-webkit-scrollbar,
.kds-focus .main-nav::-webkit-scrollbar {
  display: none;
}

.kds-browser-fullscreen .main-nav a,
.kds-focus .main-nav a {
  min-height: 32px;
  padding: 6px 9px;
  border-radius: 8px;
  font-size: 12px;
  white-space: nowrap;
}

.kds-browser-fullscreen .kds-fullscreen-toggle,
.kds-focus .kds-fullscreen-toggle {
  order: 3;
  min-height: 32px;
  margin-left: 0;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 11px;
}

.kds-browser-fullscreen .content {
  height: calc(100vh - var(--kds-focus-header-height));
  height: calc(100dvh - var(--kds-focus-header-height));
  padding: 8px 12px 12px;
  overflow: hidden;
}

.kds-browser-fullscreen .kitchen-board {
  height: calc(100vh - var(--kds-focus-header-height) - 74px);
  height: calc(100dvh - var(--kds-focus-header-height) - 74px);
  min-height: 0;
}

@media (max-width: 980px) {
  .kds-shell.kds-browser-fullscreen,
  .kds-shell.kds-focus {
    --kds-focus-header-height: 96px;
  }

  .kds-browser-fullscreen .site-header,
  .kds-focus .site-header {
    flex-wrap: wrap;
    align-items: center;
  }

  .kds-browser-fullscreen .main-nav,
  .kds-focus .main-nav {
    order: 4;
    flex-basis: 100%;
    justify-content: flex-start;
  }

  .kds-browser-fullscreen .kitchen-board {
    height: auto;
    overflow: visible;
  }
}
