*{box-sizing:border-box}body{margin:0;background:#101614;color:#f1efe7;font:18px system-ui;padding:20px}header{display:flex;align-items:center;justify-content:space-between;gap:12px}h1{margin:0;font-size:26px}h1 span{color:#d2af69}small,#connection{color:#bdc7c0;font-size:14px}button{font:inherit;border:1px solid #536057;background:#202d24;color:#f1efe7;border-radius:10px;padding:14px 20px;min-height:52px;cursor:pointer}button:disabled{opacity:.45;cursor:wait}nav{display:flex;gap:10px;flex-wrap:wrap;margin:20px 0}nav .active{background:#d2af69;color:#101614}main{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:18px;align-items:start}.ticket{background:#1a241d;border:1px solid #465448;border-top:5px solid #d2af69;border-radius:12px;padding:20px}.ticket.Preparando{border-top-color:#7cb7f4}.ticket.Listo{border-top-color:#73d79c}.ticket h2{margin:0 0 8px;font-size:26px}.meta{font-size:14px;color:#bcc9be}.item{border-bottom:1px solid #39453b;padding:16px 0;font-size:20px;font-weight:600}.note{background:#3b3020;color:#ffe1a2;border-radius:8px;padding:12px;font-size:18px;white-space:pre-wrap;overflow-wrap:anywhere}.action{margin-top:20px;width:100%;font-weight:700;background:#d2af69;color:#101614}.empty{padding:40px;text-align:center;color:#bdc7c0}#notice{color:#ffe1a2}#connection.offline{color:#ffb9a6}@media(max-width:500px){body{padding:12px}h1{font-size:21px}main{grid-template-columns:1fr}}

header>.yabpos-logo{width:64px;height:64px;object-fit:contain;border-radius:12px}

:root.kitchen-page[data-staff-theme] {
  --muted: #c0b8ad;
  --gold: #ffe1a2;
  --staff-red: #ffb9a6;
}

:root.kitchen-page body,
:root.kitchen-page[data-staff-theme] body {
  background: #000;
  color: #f8f4ee;
  font: 16px/1.4 system-ui, sans-serif;
  min-height: 100vh;
  padding: 24px;
}

.kitchen-page .kitchen-header {
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr);
  margin-bottom: 14px;
}

.kitchen-page .kitchen-heading,
.kitchen-page .kitchen-tools {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.kitchen-page .kitchen-heading {
  justify-content: space-between;
}

.kitchen-page .kitchen-heading h1 {
  font-size: 26px;
  line-height: 1.15;
}

.kitchen-page #kitchen-summary {
  color: #d4ccc1;
  font-size: 16px;
  margin: 0;
}

.kitchen-page #connection,
.kitchen-page #kitchen-tools small {
  color: #c0b8ad;
  font-size: 13px;
  margin: 0;
}

.kitchen-page #connection.offline {
  color: #ffb9a6;
}

.kitchen-page #kitchen-tools button,
.kitchen-page #filters button {
  background: #181818;
  border: 1px solid #48443f;
  color: #f8f4ee;
  font-size: 13px;
  min-height: 40px;
  padding: 8px 12px;
}

.kitchen-page #filters {
  display: none;
  margin: 0 0 12px;
}

.kitchen-page #filters button.active {
  background: #f6f1e9;
  color: #211b17;
}

.kitchen-page #notice {
  color: #ffe1a2;
  margin: 0 0 12px;
}

.kitchen-page #notice:empty {
  display: none;
}

.kitchen-page #orders {
  align-items: start;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.kitchen-page .kitchen-column {
  display: grid;
  gap: 9px;
  min-width: 0;
}

.kitchen-page .kitchen-column h2 {
  color: #d4ccc1;
  font-size: 15px;
  line-height: 1.3;
  margin: 0;
  text-transform: uppercase;
}

.kitchen-page .kitchen-card {
  --ticket-accent: #ab3e1d;
  background: #f5f0e8;
  border: 1px solid #ded6ca;
  border-top: 7px solid var(--ticket-accent);
  border-radius: 12px;
  color: #252019;
  display: grid;
  gap: 10px;
  overflow-wrap: anywhere;
  padding: 14px 15px;
}

.kitchen-page .kitchen-card.Preparando {
  --ticket-accent: #b7791f;
}

.kitchen-page .kitchen-card.Listo {
  --ticket-accent: #1c6845;
  background: #d9eee1;
  border-color: #c2dbcd;
  border-top-color: var(--ticket-accent);
}

.kitchen-page .kitchen-card-heading {
  align-items: baseline;
  display: flex;
  flex-wrap: wrap;
  gap: 3px 8px;
  justify-content: space-between;
}

.kitchen-page .kitchen-card-heading h3 {
  font-size: 21px;
  line-height: 1.2;
  margin: 0;
}

.kitchen-page .kitchen-timer {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.kitchen-page .Preparando .kitchen-timer {
  color: #764c0e;
}

.kitchen-page .kitchen-ready {
  color: #1a6341;
  font-size: 13px;
  font-weight: 700;
}

.kitchen-page .kitchen-items {
  display: grid;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.kitchen-page .kitchen-card-note {
  color: #923917;
  font-size: 15px;
  font-weight: 700;
  margin: 2px 0 0;
  white-space: pre-wrap;
}

:root.kitchen-page body .kitchen-card button.kitchen-action {
  background: #ab3e1d;
  border: 0;
  border-radius: 12px;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  min-height: 48px;
  padding: 10px 12px;
  width: 100%;
}

:root.kitchen-page body .kitchen-card.Preparando button.kitchen-action {
  background: #1c6845;
}

.kitchen-page .kitchen-card-footer {
  align-items: center;
  border-top: 1px solid #25201929;
  color: #5b5146;
  display: flex;
  flex-wrap: wrap;
  font-size: 12px;
  gap: 4px 8px;
  justify-content: space-between;
  padding-top: 7px;
}

.kitchen-page .kitchen-print-tools {
  min-width: 0;
}

:root.kitchen-page body .kitchen-print-tools .print-ticket {
  background: transparent;
  border: 1px solid #6b6057;
  border-radius: 7px;
  color: #3c332b;
  font-size: 12px;
  min-height: 40px;
  padding: 5px 9px;
}

:root.kitchen-page body .kitchen-card p.note {
  background: transparent;
  color: #923917;
  font-size: 13px;
  margin: 3px 0;
  padding: 0;
}

.kitchen-page .kitchen-empty {
  color: #c0b8ad;
  font-size: 14px;
  margin: 0;
}

@media (max-width: 680px) {
  :root.kitchen-page body,
  :root.kitchen-page[data-staff-theme] body {
    padding: 14px;
  }

  .kitchen-page #filters {
    display: flex;
    gap: 6px;
  }

  .kitchen-page #orders {
    grid-template-columns: minmax(0, 1fr);
  }

  .kitchen-page .kitchen-column:not(.is-selected) {
    display: none;
  }
}
