@import url("admin.css?v=20260817f");

html {
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--dc-ink);
  background: var(--dc-paper);
}

.panel {
  background: var(--dc-white);
  border: 1px solid var(--dc-line);
  border-radius: var(--radius-card);
  box-shadow: var(--dc-shadow);
  overflow: hidden;
  box-sizing: border-box;
}

.panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--dc-line);
  font-family: var(--font-body);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--dc-navy);
  font-size: 0.88rem;
}

.panel__body {
  padding: 14px 16px;
}

.auth-gate {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background:
    radial-gradient(ellipse 70% 50% at 20% 0%, rgba(42, 157, 143, 0.18), transparent 55%),
    var(--dc-paper);
}

.auth-card {
  width: min(360px, calc(100% - 32px));
  background: var(--dc-white);
  border: 1px solid var(--dc-line);
  border-radius: var(--radius-card);
  box-shadow: var(--dc-shadow-lg);
  padding: 24px;
  display: grid;
  gap: 12px;
}

.auth-card h2 {
  margin: 0;
  font-family: var(--font-brand);
  color: var(--dc-teal);
}

.auth-hint,
.auth-error {
  margin: 0;
  font-size: 0.9rem;
  color: var(--dc-muted);
}

.auth-error {
  color: #b42318;
  min-height: 1.2em;
}

.auth-card label {
  display: grid;
  gap: 4px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--dc-muted);
}

.auth-card select,
.auth-card input {
  border: 1px solid var(--dc-line);
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  text-transform: none;
  letter-spacing: 0;
}

.auth-home {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  margin-top: 4px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--dc-line);
  background: var(--dc-surface, #f4f7f6);
  color: var(--dc-navy);
  text-decoration: none;
  text-align: center;
  font-weight: 700;
}

.auth-home:hover {
  border-color: var(--dc-teal);
  color: var(--dc-teal-deep, #1f7a70);
}

.auth-home small {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--dc-muted);
  text-transform: none;
  letter-spacing: 0;
}

.alert-bar {
  display: none;
  margin: 0 28px;
  max-width: 1480px;
  margin-inline: auto;
  margin-top: 12px;
  padding: 12px 16px;
  border-radius: 14px;
  background: #b42318;
  color: #fff;
  font-weight: 700;
  align-items: center;
  gap: 14px;
  border: 2px solid #8f1c14;
  box-shadow: 0 8px 22px rgba(180, 35, 24, 0.28);
}

.alert-bar.is-on {
  display: flex;
  animation: pulseAlert 1s ease infinite alternate;
}

.alert-bar__count {
  flex: 0 0 auto;
  min-width: 42px;
  height: 42px;
  padding: 0 10px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: #fff;
  color: #b42318;
  font-size: 1.25rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.alert-bar__text {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

@keyframes pulseAlert {
  from { transform: scale(1); }
  to { transform: scale(1.01); }
}

.estado-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.ticket {
  border: 1px dashed var(--dc-line);
  border-radius: var(--radius-sm);
  padding: 14px;
  background: var(--dc-white);
  font-family: var(--font-body);
}

.ticket h3 {
  margin: 0 0 8px;
  color: var(--dc-navy);
}

.mesas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  padding: 20px 28px 32px;
  max-width: 1400px;
  margin: 0 auto;
  align-items: start;
}

.mesa-card {
  border: 1px solid var(--dc-line);
  border-radius: 14px;
  background: #fff;
  padding: 14px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  min-height: 0;
  height: auto;
  align-self: start;
}

.mesa-card.is-libre {
  border-color: rgba(42, 157, 143, 0.35);
  background: rgba(42, 157, 143, 0.04);
}

.mesa-card .badge {
  align-self: flex-start;
  flex: 0 0 auto;
  width: fit-content;
  max-width: 100%;
  margin-top: 0;
}

.mesa-card.is-libre .badge {
  background: rgba(42, 157, 143, 0.16);
  color: var(--dc-teal-deep);
}

.mesa-card > a,
.mesa-card > .mesa-assign-btn,
.mesa-card .mesa-links {
  align-self: stretch;
}

.mesa-assign-btn {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  color: var(--dc-teal);
  font: inherit;
  font-weight: 700;
  font-size: 0.85rem;
  text-align: left;
  cursor: pointer;
}

.mesa-assign-btn:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.mesa-links .mesa-assign-btn {
  width: auto;
}

.mesa-modal[hidden] {
  display: none !important;
}

.mesa-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
}

.mesa-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 28, 46, 0.45);
}

.mesa-modal__panel {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  max-height: min(80vh, 640px);
  overflow: auto;
  background: #fff;
  border: 1px solid var(--dc-line);
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 18px 40px rgba(15, 28, 46, 0.18);
}

.mesa-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.mesa-modal__head h2 {
  margin: 0;
  font-size: 1.15rem;
  color: var(--dc-navy);
}

.mesa-modal__close {
  padding: 6px 12px;
  font-size: 0.78rem;
}

.mesa-modal__hint {
  margin: 0 0 12px;
  color: var(--dc-muted);
  font-size: 0.9rem;
}

.mesa-modal__list {
  display: grid;
  gap: 8px;
}

.deli-dialog[hidden] {
  display: none !important;
}

.deli-dialog {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 20px;
}

.deli-dialog__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 28, 46, 0.45);
}

.deli-dialog__panel {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  background: #fff;
  border: 1px solid var(--dc-line);
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 18px 40px rgba(15, 28, 46, 0.18);
}

.deli-dialog__panel h2 {
  margin: 0 0 8px;
  font-size: 1.12rem;
  color: var(--dc-navy);
}

.deli-dialog__panel p {
  margin: 0 0 18px;
  color: var(--dc-muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

.deli-dialog__panel.is-form {
  width: min(440px, 100%);
}

.deli-dialog__extra {
  margin: 0 0 14px;
}

.deli-dialog__error {
  margin: 0 0 12px !important;
  color: #b42318 !important;
  font-size: 0.88rem !important;
  min-height: 0;
}

.deli-dialog__fields {
  display: grid;
  gap: 10px;
}

.deli-dialog__field {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border: 1px solid var(--dc-line);
  border-radius: 12px;
  background: rgba(42, 157, 143, 0.04);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--dc-muted);
}

.deli-dialog__field-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.deli-dialog__field-head svg {
  width: 18px;
  height: 18px;
  color: var(--dc-teal-deep);
  flex: 0 0 auto;
}

.deli-dialog__field input {
  border: 1px solid var(--dc-line);
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  color: var(--dc-navy);
  background: #fff;
  width: 100%;
  box-sizing: border-box;
}

.deli-dialog__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.mesa-pedido-pick {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  width: 100%;
  border: 1px solid var(--dc-line);
  border-radius: 12px;
  background: rgba(42, 157, 143, 0.04);
  padding: 12px 14px;
  cursor: pointer;
  text-align: left;
  font: inherit;
}

.mesa-pedido-pick:hover {
  border-color: rgba(42, 157, 143, 0.55);
  background: rgba(42, 157, 143, 0.1);
}

.mesa-pedido-pick strong {
  color: var(--dc-navy);
  font-size: 0.98rem;
}

.mesa-pedido-pick small {
  color: var(--dc-muted);
}

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  background: rgba(42, 157, 143, 0.15);
  color: var(--dc-teal-deep);
  width: fit-content;
  height: auto;
  white-space: nowrap;
}

.mesa-card.is-ocupada,
.mesa-card.is-pedida {
  border-color: rgba(214, 69, 69, 0.4);
  background: rgba(214, 69, 69, 0.05);
}

.mesa-card.is-preparando {
  border-color: rgba(212, 160, 23, 0.55);
  background: rgba(212, 160, 23, 0.08);
}

.mesa-card.is-lista {
  border-color: rgba(42, 157, 143, 0.55);
  background: rgba(42, 157, 143, 0.08);
}

.mesa-card.is-servida {
  border-color: rgba(27, 58, 92, 0.35);
  background: rgba(27, 58, 92, 0.06);
}

.mesa-cliente {
  font-weight: 700 !important;
  color: var(--dc-navy) !important;
  font-size: 0.95rem !important;
}

.mesa-aviso-cliente {
  font-weight: 700 !important;
  color: #b42318 !important;
  background: rgba(214, 69, 69, 0.1);
  border-radius: 8px;
  padding: 4px 8px !important;
}

.mesa-abm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
  align-items: center;
  align-self: stretch;
}

.mesa-abm-actions .btn-desk {
  padding: 6px 12px;
  font-size: 0.78rem;
  line-height: 1.2;
  height: auto;
  min-height: 0;
  flex: 0 0 auto;
  border-radius: 999px;
}

.ticket-nota {
  margin: 12px 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(212, 160, 23, 0.12);
  border: 1px solid rgba(212, 160, 23, 0.35);
}

.ticket-nota strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #8a6a00;
}

.ticket-nota p {
  margin: 0;
  color: var(--dc-navy);
  font-weight: 600;
}

.asignar-mesa {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: end;
  margin: 12px 0;
  padding: 12px;
  border-radius: 12px;
  border: 1px dashed rgba(42, 157, 143, 0.45);
  background: rgba(42, 157, 143, 0.06);
}

.asignar-mesa label {
  display: grid;
  gap: 4px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--dc-muted);
  flex: 1 1 160px;
}

.asignar-mesa select {
  border: 1px solid var(--dc-line);
  border-radius: 10px;
  padding: 8px 10px;
  font: inherit;
  text-transform: none;
  letter-spacing: 0;
  background: #fff;
}

.asignar-mesa__hint {
  margin: 0;
  width: 100%;
  font-size: 0.85rem;
  color: var(--dc-muted);
}

.mesas-legend {
  max-width: 1400px;
  margin: 10px auto 0;
  padding: 0 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--dc-muted);
}

.flow-guide {
  max-width: 480px;
  margin: 16px auto 12px;
  padding: 16px 18px 14px;
  width: calc(100% - 32px);
  border: 1px solid rgba(42, 157, 143, 0.28);
  border-radius: var(--radius-card);
  background: rgba(42, 157, 143, 0.08);
  box-sizing: border-box;
  position: relative;
  text-align: left;
}

.flow-guide[hidden],
.flow-guide.is-dismissed {
  display: none !important;
}

.flow-guide__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  padding: 0;
  position: relative;
}

.flow-guide__head h2,
.flow-guide h2 {
  margin: 0;
  font-size: 1.02rem;
  color: var(--dc-navy);
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  text-align: left;
}

.flow-guide__icon {
  display: inline-flex;
  color: var(--dc-teal);
  flex: 0 0 auto;
}

.flow-guide__close {
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  color: var(--dc-teal-deep);
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 10px;
  margin: 0;
}

.flow-guide__close:hover {
  background: rgba(42, 157, 143, 0.14);
  color: var(--dc-navy);
}

.flow-guide__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  text-align: left;
  color: var(--dc-ink);
}

.flow-guide__list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  line-height: 1.4;
  font-weight: 600;
}

.flow-guide__step-ico {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: #1a5c52;
  color: #fff;
  display: grid;
  place-items: center;
  margin-top: 1px;
}

.flow-guide__step-ico svg {
  width: 15px;
  height: 15px;
}

.flow-guide strong {
  color: var(--dc-navy);
}

.flow-guide__hint {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0 0;
  padding-top: 10px;
  border-top: 1px dashed rgba(42, 157, 143, 0.28);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--dc-muted);
  text-align: left;
}

.flow-guide ol {
  margin: 0;
  padding: 0;
  color: var(--dc-muted);
  display: grid;
  gap: 4px;
  list-style: none;
  text-align: left;
}

/* Cortina de carga sutil */
.dc-loading {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  background: rgba(247, 248, 249, 0.42);
  backdrop-filter: blur(1.5px);
  -webkit-backdrop-filter: blur(1.5px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.dc-loading.is-on {
  opacity: 1;
  pointer-events: auto;
}

.dc-loading[hidden] {
  display: none !important;
}

.dc-loading.is-on[hidden] {
  display: grid !important;
}

.dc-loading__panel {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 18px 22px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(42, 157, 143, 0.18);
  box-shadow: 0 12px 32px rgba(21, 41, 62, 0.08);
}

.dc-loading__logo {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  animation: dc-loading-pulse 1.4s ease-in-out infinite;
}

.dc-loading__text {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 650;
  color: var(--dc-navy);
  letter-spacing: 0.02em;
}

.dc-loading__clock {
  width: 14px;
  height: 14px;
  border: 1.6px solid var(--dc-teal);
  border-radius: 50%;
  position: relative;
  flex: 0 0 auto;
}

.dc-loading__clock::before,
.dc-loading__clock::after {
  content: "";
  position: absolute;
  background: var(--dc-teal);
  left: 50%;
  top: 50%;
  transform-origin: bottom center;
  border-radius: 1px;
}

.dc-loading__clock::before {
  width: 1.5px;
  height: 4px;
  margin-left: -0.75px;
  margin-top: -4px;
  animation: dc-loading-hand 1.2s linear infinite;
}

.dc-loading__clock::after {
  width: 1.5px;
  height: 3px;
  margin-left: -0.75px;
  margin-top: -3px;
  animation: dc-loading-hand 6s linear infinite;
}

@keyframes dc-loading-pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.04);
    opacity: 0.88;
  }
}

@keyframes dc-loading-hand {
  to {
    transform: rotate(360deg);
  }
}

.dc-net-toast {
  position: fixed;
  left: 50%;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 140;
  margin: 0;
  max-width: min(92vw, 440px);
  padding: 12px 18px;
  border-radius: 999px;
  color: #fff;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  box-shadow: 0 10px 28px rgba(21, 41, 62, 0.22);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.dc-net-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.dc-net-toast.is-off {
  background: #b42318;
}

.dc-net-toast.is-on {
  background: #1b7a4d;
}

.dc-net-toast[hidden] {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .dc-loading,
  .dc-loading__logo,
  .dc-loading__clock::before,
  .dc-loading__clock::after,
  .dc-net-toast {
    animation: none;
    transition: none;
  }
}

.mesa-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.mesa-timeline {
  list-style: none;
  margin: 10px 0 4px;
  padding: 0;
  display: grid;
  gap: 4px;
}

.mesa-timeline__step {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--dc-muted);
  opacity: 0.55;
}

.mesa-timeline__step.is-done {
  opacity: 1;
  color: var(--dc-navy);
  font-weight: 600;
}

.mesa-timeline__hora {
  font-variant-numeric: tabular-nums;
  color: var(--dc-teal);
  font-weight: 600;
}

.mesa-group-title {
  margin: 12px 0 6px;
  padding: 0 2px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dc-navy);
}

.mesa-group-title:first-child {
  margin-top: 0;
}

.badge--servida {
  background: rgba(27, 58, 92, 0.12);
  color: var(--dc-navy);
}

.desk-header.staff-topbar,
.staff-topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 18px;
  padding: 0 22px;
  min-height: 64px;
  background: var(--dc-bar);
  border-bottom: 0;
  color: #fff;
  overflow: visible;
  position: relative;
  z-index: 30;
  margin-bottom: 12px;
}

body.page-comandas .desk-header.staff-topbar,
body.page-mesas .desk-header.staff-topbar,
body.page-cobranza .desk-header.staff-topbar {
  position: sticky;
  top: 0;
}

.staff-topbar__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.01em;
  flex: 0 0 auto;
}

.staff-topbar__logo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(42, 157, 143, 0.22);
  color: #7ee0d3;
}

.staff-topbar__logo svg {
  width: 20px;
  height: 20px;
}

.staff-topbar__logo img,
.staff-topbar__logo-img {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.staff-topbar__nav {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 6px;
  flex: 1 1 auto;
  min-width: 0;
  overflow: visible;
  position: relative;
}

.staff-topbar__indicator {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 0;
  border-radius: 3px 3px 0 0;
  background: #e8fffb;
  box-shadow: 0 0 10px rgba(232, 255, 251, 0.55);
  transform: translateX(0);
  transform-origin: left center;
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), width 0.2s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
  z-index: 2;
}

.staff-topbar__indicator.is-instant {
  transition: none;
}

.staff-topbar__indicator.is-hidden {
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  .staff-topbar__indicator {
    transition: none;
  }
}

.staff-topbar__link {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 76px;
  padding: 10px 12px 8px;
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 10px 10px 0 0;
  position: relative;
}

.staff-topbar__nav > .staff-topbar__link[data-nav="comandas"],
.staff-topbar__nav > .staff-topbar__link[data-nav="mesas"],
.staff-topbar__nav > .staff-topbar__link[data-nav="cobranza"] {
  flex: 1 1 0;
  max-width: 180px;
}

.staff-topbar__link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.staff-topbar__link.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.staff-topbar__link.is-active::after {
  display: none;
}

.staff-topbar__icon {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
}

.staff-topbar__icon svg {
  width: 20px;
  height: 20px;
}

.staff-topbar__badge {
  position: absolute;
  top: 4px;
  right: 10px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #b42318;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
  display: none;
  place-items: center;
  border: 2px solid var(--dc-bar);
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}

.staff-topbar__badge.is-on {
  display: inline-grid;
}

.staff-topbar__mesas-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.staff-topbar__live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e03131;
  box-shadow: 0 0 0 2px rgba(224, 49, 49, 0.28);
  animation: staffLiveBlink 1.15s ease-in-out infinite;
  flex: 0 0 auto;
}

@keyframes staffLiveBlink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .staff-topbar__live-dot {
    animation: none;
    opacity: 1;
  }
}

.staff-topbar__infos {
  position: static;
  left: auto;
  top: auto;
  transform: none;
  display: flex;
  flex-direction: row;
  flex: 1 0 auto;
  width: calc(100% + 44px);
  max-width: none;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  order: 20;
  z-index: 6;
  pointer-events: auto;
  margin: 0 -22px;
  padding: 8px 16px 10px;
  background: rgba(0, 0, 0, 0.16);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  box-sizing: border-box;
}

.staff-topbar__info {
  position: relative;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 4px 12px 4px 4px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.staff-topbar__info [data-nav-info-val] {
  display: inline-grid;
  place-items: center;
  min-width: 36px;
  height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  background: #fff;
  color: #0f3d3a;
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.18);
}

.staff-topbar__info small {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
}

.staff-topbar__info::after {
  content: attr(data-tip);
  position: absolute;
  left: 50%;
  top: calc(100% + 8px);
  right: auto;
  bottom: auto;
  transform: translateX(-50%) translateY(-4px);
  padding: 6px 8px;
  border-radius: 8px;
  background: #16324a;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.2;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.12s ease, transform 0.12s ease;
  z-index: 40;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.28);
}

.staff-topbar__info:hover::after,
.staff-topbar__info:focus-visible::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.staff-topbar__info--ocupadas [data-nav-info-val] {
  background: #fff;
  color: #0f3d3a;
}

.staff-topbar__info--cola [data-nav-info-val] {
  background: #f6d6d6;
  color: #9b3a3a;
}

.staff-topbar__info--ayudantes [data-nav-info-val] {
  background: #f6e3cc;
  color: #8a4b12;
}

.staff-topbar__more {
  position: relative;
  flex: 0 0 auto;
  display: flex;
  align-items: stretch;
  margin-left: 4px;
}

.staff-topbar__more-btn {
  appearance: none;
  position: relative;
  border: 0;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  width: 40px;
  min-width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
  align-self: center;
}

.staff-topbar__more-btn svg {
  width: 20px;
  height: 20px;
  display: block;
  fill: currentColor;
}

.staff-topbar__more-btn:hover,
.staff-topbar__more.is-open .staff-topbar__more-btn,
.staff-topbar__more.is-active .staff-topbar__more-btn {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
}

.staff-topbar__more.is-active .staff-topbar__more-btn {
  background: rgba(42, 157, 143, 0.35);
  box-shadow: 0 0 0 2px var(--dc-teal);
}

.staff-topbar__more.is-active .staff-topbar__more-btn::after {
  display: none;
}

.staff-topbar__more-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 60;
  min-width: 220px;
  padding: 8px;
  display: grid;
  gap: 2px;
  background: #fff;
  color: var(--dc-navy);
  border: 1px solid var(--dc-line, rgba(15, 61, 58, 0.16));
  border-radius: 12px;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.22);
  box-sizing: border-box;
  overflow: hidden;
}

.staff-topbar__more-menu[hidden] {
  display: none !important;
}

.staff-topbar__more-menu .staff-topbar__link {
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
  min-width: 0;
  max-width: 100%;
  width: auto;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--dc-navy);
  font-size: 0.88rem;
  flex: 0 0 auto;
  box-sizing: border-box;
}

.staff-topbar__more-menu .staff-topbar__link:hover {
  color: var(--dc-navy);
  background: #f4fbf9;
}

.staff-topbar__more-menu .staff-topbar__link.is-active {
  color: var(--dc-navy);
  background: rgba(42, 157, 143, 0.16);
}

.staff-topbar__more-menu .staff-topbar__link.is-active::after {
  display: none;
}

.staff-topbar__more-menu .staff-topbar__icon {
  color: var(--dc-teal-deep, #1f7a70);
}

.staff-topbar__aside {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.staff-topbar__filter {
  display: grid;
  gap: 2px;
  font-size: 0.7rem;
  color: #7dd3c7;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.staff-topbar__filter select {
  border: 1px solid rgba(125, 211, 199, 0.55);
  border-radius: 8px;
  padding: 6px 8px;
  background: rgba(255, 255, 255, 0.12);
  color: #e8fffb;
  font: inherit;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
}

.staff-topbar__filter select option {
  color: #1b3a5c;
  background: #fff;
  font-weight: 600;
}

.staff-topbar__user {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.staff-topbar__avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--dc-teal);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
}

.staff-topbar__user-text {
  display: grid;
  line-height: 1.15;
}

.staff-topbar__user-text strong {
  font-size: 0.82rem;
}

.staff-topbar__user-text small,
.staff-topbar #rolActual {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.72rem;
  text-transform: capitalize;
}

.staff-topbar__logout {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #fff !important;
  border-radius: 999px !important;
  padding: 8px 14px !important;
  font-size: 0.8rem !important;
}

.staff-topbar__logout:hover {
  background: rgba(255, 255, 255, 0.18) !important;
}

.comandas-filter {
  display: grid;
  justify-items: center;
  gap: 10px;
  width: calc(100% - 40px);
  max-width: 820px;
  margin: 12px auto 0;
  padding: 12px 14px 14px;
  box-sizing: border-box;
  background: var(--dc-surface, #fff);
  border: 1px solid var(--dc-line);
  border-radius: 16px;
  box-shadow: var(--dc-shadow);
}

.comandas-filter__invite {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--dc-navy);
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.2;
}

.comandas-filter__invite-ico {
  display: inline-flex;
  width: 18px;
  height: 18px;
  color: var(--dc-teal);
}

.comandas-filter__invite-ico svg,
.comandas-filter__ico svg {
  display: block;
  width: 100%;
  height: 100%;
}

.comandas-filter__chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  width: 100%;
}

.comandas-filter__chip {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  border: 1px solid var(--dc-line);
  background: #fff;
  color: var(--dc-navy);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
  line-height: 1.1;
}

.comandas-filter__ico {
  display: inline-flex;
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  color: var(--dc-teal);
}

.comandas-filter__chip:hover {
  border-color: rgba(42, 157, 143, 0.45);
  background: #f4fbf9;
}

.comandas-filter__chip.is-active {
  background: var(--dc-teal);
  border-color: transparent;
  color: #fff;
}

.comandas-filter__chip.is-active .comandas-filter__ico {
  color: #fff;
}

.comandas-filter__chip[data-filtro="takeaway"].is-active {
  background: #f3d2b0;
  border-color: transparent;
  color: #7a3d0b;
}

.comandas-filter__chip[data-filtro="takeaway"].is-active .comandas-filter__ico {
  color: #7a3d0b;
}

.fecha-toolbar-card {
  display: grid;
  justify-items: center;
  gap: 10px;
  width: calc(100% - 40px);
  max-width: 820px;
  margin: 12px auto 0;
  padding: 12px 14px 14px;
  box-sizing: border-box;
  background: var(--dc-surface, #fff);
  border: 1px solid var(--dc-line);
  border-radius: 16px;
  box-shadow: var(--dc-shadow);
}

.comandas-filter .fecha-toolbar {
  padding-top: 10px;
  border-top: 1px solid var(--dc-line);
}

.fecha-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  align-items: end;
  justify-content: center;
  width: 100%;
}

.fecha-toolbar label {
  display: grid;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--dc-muted);
}

.fecha-toolbar input[type="date"] {
  border: 1px solid var(--dc-line);
  border-radius: var(--radius-sm, 10px);
  padding: 10px 12px;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  min-width: 148px;
  background: var(--dc-white, #fff);
  color: var(--dc-ink);
}

.fecha-toolbar input[type="date"]:focus {
  outline: 2px solid rgba(42, 157, 143, 0.45);
  outline-offset: 1px;
}

.fecha-toolbar__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.fecha-chip {
  border: 1px solid rgba(42, 157, 143, 0.35) !important;
  color: var(--dc-teal-deep) !important;
  background: rgba(42, 157, 143, 0.08) !important;
}

.fecha-chip:hover {
  background: rgba(42, 157, 143, 0.16) !important;
  border-color: rgba(42, 157, 143, 0.55) !important;
}

.fecha-chip.is-active {
  background: var(--dc-teal) !important;
  border-color: var(--dc-teal) !important;
  color: #fff !important;
}

.staff-crumb {
  display: none;
}

@media (max-width: 900px) {
  .staff-topbar {
    flex-wrap: wrap;
    padding: 10px 14px 0;
    min-height: 0;
    margin-bottom: 10px;
  }

  .staff-topbar__nav {
    order: 3;
    width: 100%;
    justify-content: stretch;
    overflow: visible;
    gap: 4px;
  }

  .staff-topbar__link {
    min-width: 0;
    padding: 8px 8px;
  }

  .staff-topbar__nav > .staff-topbar__link[data-nav="comandas"],
  .staff-topbar__nav > .staff-topbar__link[data-nav="mesas"],
  .staff-topbar__nav > .staff-topbar__link[data-nav="cobranza"] {
    max-width: none;
  }

  .staff-topbar__infos {
    order: 4;
    gap: 8px;
    margin: 0 -14px;
    width: calc(100% + 28px);
    padding: 8px 12px 10px;
  }

  .staff-topbar__info {
    min-width: 0;
  }

  body.page-comandas .comandas-filter,
  .fecha-toolbar-card {
    width: calc(100% - 28px);
    margin-top: 10px;
    padding: 10px 12px 12px;
  }

  .fecha-toolbar input[type="date"] {
    min-width: 0;
    width: 100%;
  }

  .comandas-filter__chip {
    font-size: 0.74rem;
    padding: 7px 10px;
  }
}

.mesa-card strong {
  font-size: 1.3rem;
  color: var(--dc-navy);
}

.mesa-card small {
  color: var(--dc-muted);
}

.mesa-card a {
  color: var(--dc-teal);
  font-weight: 700;
  text-decoration: none;
  font-size: 0.85rem;
}

.badge--nuevo { background: rgba(214, 69, 69, 0.15); color: #b42318; }
.badge--prep { background: rgba(212, 160, 23, 0.2); color: #8a6a00; }
.badge--listo { background: rgba(42, 157, 143, 0.18); color: var(--dc-teal-deep); }

@media print {
  .desk-header,
  .alert-bar,
  .estado-actions,
  .asignar-mesa,
  #listaPedidos,
  .auth-gate,
  .flow-guide,
  .no-print {
    display: none !important;
  }

  .desk-layout {
    display: block;
    padding: 0;
  }

  .ticket {
    border: 0;
  }

  .ticket-nota {
    border: 1px solid #000;
    background: #fff;
  }
}
