/* ============================================================
   TEMA v2 · 10 · COMPONENTES GLOBALES
   Botones, tarjetas, tablas, formularios, chips, modales, avisos,
   barra lateral, barra superior y barra inferior. Solo apariencia:
   las clases y el HTML son los de siempre.
   ============================================================ */

:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: none; }
::selection { background: color-mix(in srgb, var(--accent-solid) 30%, transparent); }
/* Ocultar la barra visual sin desactivar el scroll nativo (rueda, touchpad y touch). */
*, *::before, *::after { scrollbar-width: none !important; -ms-overflow-style: none !important; }
*::-webkit-scrollbar { display: none !important; width: 0 !important; height: 0 !important; }
body { font-feature-settings: "cv11", "ss01"; letter-spacing: -.003em; }
h1, h2, h3, h4 { letter-spacing: -.015em; }
.stat-value, .m-total, .m-num, .cmd-total b, .gb-total b, .pp-total b, .ch-value, table.data .num { font-variant-numeric: tabular-nums; }

/* ---------- Barra lateral ---------- */
.sidebar { background: var(--sb-bg); border-right: 0; box-shadow: 1px 0 0 rgba(255, 255, 255, .05); color: var(--text); }
.brand { border-bottom: 1px solid rgba(255, 255, 255, .07); padding: 21px 20px 19px; gap: 14px; }
.brand-mark, .login-brand .brand-mark {
  background: var(--accent-solid); color: #fbf3e8; font-family: var(--font-display); font-weight: 700;
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--gold) 75%, transparent), 0 6px 16px rgba(0, 0, 0, .35);
}
.brand-mark { border-radius: 12px; }
.brand-mark.brand-logo-wrap { width:64px; height:66px; padding:0; overflow:visible; flex:none; background:transparent; box-shadow:none; border-radius:0; }
.brand-logo { display:block; width:100%; height:100%; object-fit:contain; }
.brand-text strong { color: var(--text); font-family: var(--font-num); font-size: 22px; letter-spacing: .045em; line-height: 1.05; text-transform: uppercase; }
.brand-text small { color: var(--gold); letter-spacing: .08em; text-transform: uppercase; font-size: 10.5px; }
.brand-text .brand-location { color:var(--text-muted); font-size:13px; font-weight:650; letter-spacing:.01em; line-height:1.2; text-transform:none; }
.brand-text #brand-sub { color:var(--gold); font-size:9px; line-height:1.1; }
.nav { padding: 14px 12px; }
.nav-item { color: var(--text-muted); border-radius: 14px; padding: 12px 14px; gap: 14px; font-weight: 600; font-size: 15px; position: relative; transition: background .16s var(--ease), color .16s var(--ease), transform .16s var(--ease); }
.nav-item + .nav-item { margin-top: 4px; }
.nav-item .ico { width: 22px; height: 22px; }
.nav-item:hover { background: rgba(255, 255, 255, .07); color: var(--text); transform: translateX(2px); }
.nav-item.active { background: var(--accent-solid); color: #fffaf2; font-weight: 700; box-shadow: 0 6px 16px rgba(0, 0, 0, .3), inset 0 1px 0 rgba(255, 255, 255, .14); transform: none; }
.nav-item.active .ico { color: #fffaf2; }
.nav-item.active::before { display: none; }
.nav-admin-groups { display:grid; grid-template-columns:.95fr 1.3fr; gap:7px; margin: 4px 2px 14px; padding: 6px; border: 1px solid rgba(255,255,255,.1); border-radius: 14px; background: rgba(0,0,0,.2); box-shadow: inset 0 1px 2px rgba(0,0,0,.18); }
.nav-admin-group { min-width:0; min-height:48px; padding:8px 5px; color:#c6b8a7; font-family:var(--font-num); font-size:11.5px; font-weight:800; text-align:center; letter-spacing:.01em; line-height:1.05; white-space:nowrap; transition:color .15s, background .15s, box-shadow .15s; }
.nav-admin-group:hover { color: #fffaf2; background: rgba(255,255,255,.06); }
.nav-admin-group.active { color: #fffaf2; background: linear-gradient(145deg, var(--accent-solid), color-mix(in srgb, var(--accent-solid) 78%, #000)); box-shadow: 0 4px 10px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.13); }
.nav-admin-items { display: grid; gap: 7px; padding: 2px 1px 10px; }
.nav-admin-items .nav-item { min-height: 54px; padding: 13px 16px; font-size:16px; }
.nav-admin-items .nav-item .ico { width:23px; height:23px; }
.nav-admin-items .nav-item + .nav-item { margin-top: 0; }
.nav-admin-items .nav-item.active { box-shadow: 0 5px 14px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.12); }
.sidebar-foot { border-top: 1px solid rgba(255, 255, 255, .07); }
.ghost-line { background: transparent; border: 1px solid rgba(255, 255, 255, .13); color: var(--text-muted); border-radius: 14px; }
.ghost-line:hover { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .24); color: var(--text); }

@media (min-width: 1280px) {
  #app { --sidebar-w:286px; }
  .brand { padding:24px 20px 22px; }
  .brand-mark.brand-logo-wrap { width:70px; height:72px; }
  .brand-text strong { font-size:24px; }
  .brand-text .brand-location { font-size:14px; }
  .nav-admin-group { min-height:50px; font-size:12px; }
  .nav-admin-items .nav-item { min-height:56px; font-size:16.5px; }
}

@media (max-width: 640px) {
  .brand { padding:19px 18px 17px; }
  .brand-mark.brand-logo-wrap { width:60px; height:62px; }
  .brand-text strong { font-size:20px; }
  .brand-text .brand-location { font-size:12.5px; }
  .nav-admin-group { min-height:46px; font-size:10.75px; }
  .nav-admin-items .nav-item { min-height:52px; font-size:15.5px; }
}

/* ---------- Barra superior ---------- */
.topbar { padding: 14px 28px; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); border-bottom: 0; box-shadow: 0 1px 0 var(--border); }
.topbar::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 120px; height: 3px; background: var(--accent-solid); border-radius: 0 3px 0 0; }
.crumb b { font-family: var(--font-num); font-weight: 700; font-size: 25px; letter-spacing: .05em; text-transform: uppercase; line-height: 1.1; }
.crumb .crumb-link { font-family: var(--font-num); font-size: 19px; letter-spacing: .05em; text-transform: uppercase; }
.view-host { padding: 26px 28px 40px; max-width: 1500px; margin-inline: auto; }   /* centrado: en pantallas anchas ya no queda todo pegado a la izquierda */

/* ---------- Franja de título de cada pantalla ---------- */
.page-title {
  position: relative; overflow: hidden; margin-bottom: 22px; padding: 22px 28px;
  background: var(--hdr); color: var(--hdr-ink); border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
}
.page-title::after { content: ""; position: absolute; right: -40px; top: -60px; width: 220px; height: 220px; border-radius: 50%; border: 36px solid rgba(255, 255, 255, .06); pointer-events: none; }
.page-title h2 { font-family: var(--font-num); font-size: 38px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; line-height: 1.05; }
.page-title h2::after { content: ""; display: block; width: 44px; height: 3px; margin-top: 10px; border-radius: 3px; background: var(--gold); }
.page-title p { color: var(--hdr-mute); margin-top: 8px; font-size: 15px; }

/* ---------- Botones: teclas de POS (con volumen, se hunden al tocar) ---------- */
.btn {
  min-height: 46px; padding: 11px 20px; border-radius: 14px; font-weight: 700; font-size: 15px; letter-spacing: .005em;
  background: var(--surface); border: 1.5px solid var(--border-strong); color: var(--text);
  box-shadow: 0 3px 0 var(--border-strong); transition: transform .08s, box-shadow .08s, background .14s, border-color .14s, filter .14s;
}
.btn:hover { background: var(--surface-2); border-color: var(--text-soft); }
.btn:active { transform: translateY(3px); box-shadow: 0 0 0 var(--border-strong); }
.btn .ico { width: 19px; height: 19px; }
.btn-sm { min-height: 38px; padding: 8px 14px; font-size: 13.5px; border-radius: 12px; box-shadow: 0 2px 0 var(--border-strong); }
.btn-sm:active { transform: translateY(2px); }
.btn-lg { min-height: 58px; font-size: 18px; border-radius: 16px; }
.btn-primary { background: var(--accent-solid); border-color: var(--accent-solid); color: #fffaf2; box-shadow: 0 3px 0 color-mix(in srgb, var(--accent-solid) 62%, #000); }
.btn-primary:hover { background: var(--accent-solid); border-color: var(--accent-solid); filter: brightness(1.1); }
.btn-primary:active { box-shadow: 0 0 0 transparent; }
.btn-ok { background: var(--ok-solid); border-color: var(--ok-solid); color: #f6fff9; box-shadow: 0 3px 0 color-mix(in srgb, var(--ok-solid) 60%, #000); }
.btn-ok:hover { background: var(--ok-solid); filter: brightness(1.1); }
.btn-danger { background: var(--danger-solid); border-color: var(--danger-solid); color: #fff6f4; box-shadow: 0 3px 0 color-mix(in srgb, var(--danger-solid) 60%, #000); }
.btn-danger:hover { background: var(--danger-solid); filter: brightness(1.1); }
.btn-ghost { background: transparent; border-color: transparent; box-shadow: none; color: var(--text-muted); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); border-color: transparent; }
.btn-ghost:active { transform: none; }
.btn:disabled { opacity: .45; box-shadow: none; }
.icon-btn { width: 42px; height: 42px; border-radius: 13px; background: var(--surface); border: 1.5px solid var(--border-strong); transition: background .14s, color .14s, transform .08s; }
.icon-btn:hover { background: var(--accent-soft); color: var(--accent); }
.icon-btn:active { transform: scale(.94); }

/* ---------- Tarjetas ---------- */
.card { border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow-md); }
.card-pad { padding: 22px 24px; }
.card-head { background: color-mix(in srgb, var(--surface-2) 70%, var(--surface)); padding: 16px 24px; border-radius: var(--radius) var(--radius) 0 0; border-bottom: 1px solid var(--border); }
.card-head h3 { font-family: var(--font-num); font-size: 20px; letter-spacing: .05em; text-transform: uppercase; font-weight: 700; }

/* ---------- Tarjetas de dato (KPI) ---------- */
.stat { position: relative; overflow: hidden; border-radius: var(--radius); padding: 20px 22px; border: 1px solid var(--border); box-shadow: var(--shadow-md); background: var(--surface); transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.stat:hover { transform: translateY(-3px); box-shadow: var(--lift); }
.stat::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; width: auto; background: var(--gold); border-radius: 0; opacity: 1; bottom: auto; }
.stat.ok::after { background: var(--ok); } .stat.warn::after { background: var(--warn); } .stat.info::after { background: var(--info); }
.stat-top { font-size: 12px; letter-spacing: .1em; color: var(--text-muted); }
.stat-top .ico-wrap { width: 40px; height: 40px; border-radius: 50%; margin-left: auto; order: 2; background: var(--gold-soft); color: var(--gold); }
.stat.ok .ico-wrap { background: var(--ok-soft); color: var(--ok); } .stat.warn .ico-wrap { background: var(--warn-soft); color: var(--warn); } .stat.info .ico-wrap { background: var(--info-soft); color: var(--info); }
.stat-value { font-family: var(--font-num); font-size: 44px; font-weight: 700; letter-spacing: -.01em; line-height: 1.02; margin-top: 4px; }
.stat-foot { font-size: 13px; }

/* ---------- Tablas: filas como barras sueltas (solo escritorio; en celular siguen siendo tarjetas) ---------- */
@media (min-width: 641px) {
  .table-wrap { padding: 0 10px 6px; }
  table.data { border-collapse: separate; border-spacing: 0 7px; }
  table.data thead th { background: transparent; border: 0; padding: 12px 14px 4px; color: var(--text-soft); letter-spacing: .1em; font-size: 11px; }
  table.data tbody td { background: var(--surface-2); border: 0; border-top: 1px solid transparent; border-bottom: 1px solid transparent; padding: 13px 14px; transition: background .14s; }
  table.data tbody td:first-child { border-radius: 14px 0 0 14px; padding-left: 18px; }
  table.data tbody td:last-child { border-radius: 0 14px 14px 0; padding-right: 18px; }
  table.data tbody tr:hover td { background: color-mix(in srgb, var(--accent-soft) 75%, var(--surface)); }
  table.data tr:last-child td { border-bottom: 0; }
  table.data .num b, table.data .num { font-family: var(--font-num); font-size: 18px; font-weight: 700; letter-spacing: .01em; }
  table.data .name { font-weight: 700; }
}
table.data th.hide-sm, table.data td.hide-sm { display: table-cell; }   /* la regla vieja .hide-sm (inline-flex) rompía las celdas; en pantallas chicas sigue ganando display:none de styles.css */
.card > .table-wrap:first-child, .card > table:first-child { margin-top: 6px; }

/* ---------- Insignias ---------- */
.badge { padding: 5px 13px; font-size: 12.5px; font-weight: 750; letter-spacing: .015em; border: 1px solid color-mix(in srgb, currentColor 22%, transparent); }
.badge::before { width: 7px; height: 7px; }
.net-badge { border: 1px solid color-mix(in srgb, currentColor 22%, transparent); }

/* ---------- Formularios ---------- */
input, select, textarea {
  min-height: 50px; padding: 13px 16px; border-radius: 14px; border: 1.5px solid var(--border-strong);
  background: var(--surface); transition: border-color .14s, box-shadow .14s, background .14s;
}
html[data-theme="dark"] input, html[data-theme="dark"] select, html[data-theme="dark"] textarea { background: var(--bg); }
input::placeholder, textarea::placeholder { color: var(--text-soft); }
input:focus, select:focus, textarea:focus { border-color: var(--accent-solid); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent-solid) 20%, transparent); }
textarea { min-height: 84px; }
label.field > span:first-child { font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; font-weight: 750; color: var(--text-muted); margin-bottom: 8px; }
.hint { color: var(--text-muted); }
.form { gap: 18px; }
.form-error { border-radius: 14px; padding: 12px 14px; }
.check-line input, input[type="checkbox"], input[type="radio"] { min-height: 0; accent-color: var(--accent-solid); }

/* ---------- Pestañas / filtros / chips (base común; cada pantalla afina el suyo) ---------- */
.cat-tab, .sk-chip, .filtro-btn, .cmd-fbtn, .quick-chip, .gn-cat {
  border-radius: 999px; font-weight: 700; border: 1.5px solid var(--border-strong); background: var(--surface);
  transition: background .14s, border-color .14s, color .14s, transform .08s, box-shadow .14s;
}
.cat-tab:active, .sk-chip:active, .filtro-btn:active, .cmd-fbtn:active, .quick-chip:active, .gn-cat:active { transform: scale(.96); }
.cat-tab.on, .sk-chip.on, .gn-cat.on { background: var(--accent-solid); border-color: var(--accent-solid); color: #fffaf2; box-shadow: 0 6px 14px color-mix(in srgb, var(--accent-solid) 38%, transparent); }
.search input { padding-left: 42px; border-radius: 999px; }
.search .ico { left: 15px; width: 17px; height: 17px; }
.toolbar { gap: 12px; margin-bottom: 20px; }

/* ---------- Modales ---------- */
.modal-backdrop, .more-scrim, .scrim { background: var(--scrim); }
.modal { border-radius: 26px; border: 0; box-shadow: var(--shadow-lg); animation: pop .22s var(--ease); }
.modal-head { background: var(--hdr); color: var(--hdr-ink); border-radius: 26px 26px 0 0; padding: 18px 22px; border-bottom: 0; }
.modal-head h3 { font-family: var(--font-num); font-size: 23px; letter-spacing: .05em; text-transform: uppercase; font-weight: 700; color: var(--hdr-ink); }
.modal-head .icon-btn { background: rgba(255, 255, 255, .12); border: 0; color: var(--hdr-ink); }
.modal-head .icon-btn:hover { background: rgba(255, 255, 255, .22); color: var(--hdr-ink); }
.modal-body { padding: 24px; }
.modal-foot { padding: 16px 22px; background: color-mix(in srgb, var(--surface-2) 60%, var(--surface)); border-radius: 0 0 26px 26px; }
.modal-foot .btn { min-height: 50px; }

/* ---------- Avisos ---------- */
.toast { background: #1c1815; color: #f6eee2; border: 0; border-left: 5px solid var(--text-soft); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 14px 18px; font-weight: 600; }
.toast-success { border-left-color: var(--ok); } .toast-error { border-left-color: var(--danger); } .toast-info { border-left-color: var(--info); }
.result { border-radius: 16px; padding: 16px 18px; border: 1px solid color-mix(in srgb, currentColor 18%, transparent); }
.empty { border: 1.5px dashed var(--border-strong); border-radius: 22px; background: color-mix(in srgb, var(--surface) 70%, transparent); color: var(--text-muted); }
.empty .ico { color: var(--accent); opacity: .75; }
.pi.pi-pendiente { border-left: 4px solid var(--warn); padding-left: 10px; }
.pi.pi-error { border-left: 4px solid var(--danger); background: var(--danger-soft); padding-left: 10px; border-radius: 8px; }
.pi.pi-error .pi-sub { color: var(--danger); }

/* ---------- Rellenos sólidos con texto claro (contraste AA) ---------- */
.pp-head .pp-count, .ia-user, .ia-send, .filtro-btn.f-ocupada.on, .filtro-btn-link:hover { background: var(--accent-solid); border-color: var(--accent-solid); color: #fffaf2; }
.filtro-btn.f-libre.on, .cmd-fbtn.f-servido.on { background: var(--ok-solid); border-color: var(--ok-solid); color: #f6fff9; }
#agrupar.on { background: var(--info-solid); border-color: var(--info-solid); color: #f4f8ff; }

/* ---------- Barra inferior (celular) y menú Más ---------- */
@media (max-width: 640px), (max-width: 950px) and (max-height: 500px) {
  .bottom-nav { background: color-mix(in srgb, var(--sb-bg) 94%, transparent); backdrop-filter: blur(14px); border-top: 1px solid rgba(255, 255, 255, .08); box-shadow: 0 -10px 30px rgba(0, 0, 0, .25); --text: #f0eae2; --text-muted: #b6ab9d; }
  .bn-item { color: #b6ab9d; font-weight: 650; }
  .bn-item:active { background: rgba(255, 255, 255, .08); }
  .bn-item.active, .bn-item.open { color: #fffaf2; }
  .bn-item.active::before { top: 6px; left: 50%; right: auto; width: 46px; height: 30px; margin-left: -23px; border-radius: 999px; background: var(--accent-solid); z-index: 0; box-shadow: 0 4px 12px rgba(0, 0, 0, .35); }
  .bn-item .ico, .bn-item span { position: relative; z-index: 1; }
  .more-sheet { border-radius: 24px; border: 0; box-shadow: var(--shadow-lg); }
  .ms-item { border-radius: 16px; font-weight: 650; }
  .ms-item.active { background: var(--accent-soft); color: var(--accent); }
  .view-host { padding: 18px 14px; padding-bottom: calc(var(--bnav-h) + env(safe-area-inset-bottom) + 18px); }
  .topbar { padding: 12px 16px; }
  .crumb b { font-size: 22px; }
  .page-title { padding: 18px 20px; border-radius: 22px; margin-bottom: 16px; }
  .page-title h2 { font-size: 32px; }
}
@media (max-width: 900px) { .sidebar:not(.open) { box-shadow: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }

/* planilla de carne: el botón de anular queda al lado de los kg (antes caía debajo) */
.gb-detalle .icon-btn { display: inline-grid; vertical-align: middle; margin-left: 8px; width: 34px; height: 34px; }
.stat-value, .ch-value, .m-total { white-space: nowrap; }

/* Sin título repetido arriba: si la pantalla ya muestra su nombre en la tarjeta de título, la barra superior no lo repite.
   (Si la barra lleva una migaja de navegación —Configuración / Usuarios— se conserva.) */
.main:has(#view .page-title) .crumb > b:only-child,
html[data-route="paso"] .crumb > b:only-child { display: none; }
/* Estadísticas y Usuarios: queda solo el enlace "Configuración" (para volver); se oculta el nombre repetido y la barra separadora */
.main:has(#view .page-title) .crumb:has(.crumb-link) > b, .main:has(#view .page-title) .crumb:has(.crumb-link) > .crumb-sep { display: none; }

/* T13: filtros de Usuarios y de Gastos (chips + contador). */
.us-filtros, .gs-filtros2 { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.us-fl { font-size: 12px; font-weight: 800; letter-spacing: .08em; color: var(--text-soft); margin-left: 6px; }
.us-fl:first-child { margin-left: 0; }
.us-cuenta, .gs-cuenta { margin-left: auto; font-size: 13px; color: var(--text-soft); }
.gs-imp { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-soft); }
.gs-imp input { width: 120px; }

/* Operaciones de un turno anterior (retenidas), en la lista de «Operaciones sin sincronizar»: por mesa, lenguaje simple, descarte solo del administrador. */
.ops-ret { margin-top: 14px; }
.ops-ret h4 { margin: 0 0 4px; font-size: 15px; }
.ops-detalle summary { cursor: pointer; min-height: 32px; font-size: 13px; color: var(--text-soft); }
.ops-detalle ul { margin: 6px 0 0 18px; font-size: 13px; overflow-wrap: anywhere; }
.ops-ret-acc { display: flex; justify-content: flex-end; margin-top: 6px; }

/* ===== CELULAR · soluciones compartidas (tanda 19): ventanas, formularios y elementos flotantes sin cortes ni superposiciones ===== */
.modal { max-height: 94vh; max-height: 94dvh; }
.modal-head { gap: 10px; }
.modal-head h3 { min-width: 0; overflow-wrap: anywhere; }
.modal-body { overflow-x: hidden; overscroll-behavior: contain; }
.modal .field, .modal .form > * { min-width: 0; }
.modal select, .modal input:not([type="checkbox"]):not([type="radio"]), .modal textarea { max-width: 100%; min-width: 0; }
.modal-foot { flex-wrap: wrap; }
.modal-foot .btn { min-width: 0; }
@media (max-width: 640px) {
  .modal { max-height: 92vh; max-height: 92dvh; }
  .modal-backdrop { padding-top: env(safe-area-inset-top); }
  .modal-head { padding: 14px 16px; }
  .modal-head h3 { font-size: 19px; }
  .modal-body { padding: 16px; }
  .modal-foot { padding: 12px 14px calc(12px + env(safe-area-inset-bottom)); gap: 8px; }
  .modal-foot .btn { flex: 1 1 130px; min-height: 46px; padding-inline: 10px; line-height: 1.2; }
  /* botón de avisos: solo el ícono (el texto queda como etiqueta accesible) y fuera de la barra de «Cobrar» */
  .aviso-sonido { right: 10px; width: 44px; min-height: 44px; padding: 0; display: grid; place-items: center; font-size: 20px; bottom: calc(var(--bnav-h, 58px) + env(safe-area-inset-bottom) + 10px); }
  .aviso-sonido .as-txt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  html[data-route="pedido"] .aviso-sonido, html[data-route="paso"] .aviso-sonido { bottom: calc(var(--bnav-h, 58px) + env(safe-area-inset-bottom) + 84px); }
  /* cabecera de la mesa: filas ordenadas (título y estado · responsable y nombre · pedido y cuenta · personas) */
  .pedido-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 12px; }
  .pedido-head #mesa-titulo { flex: 1 1 0; min-width: 0; }
  .pedido-head #estado-badge { flex: none; max-width: 40%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .pedido-head .mozo-chip { min-width: 0; max-width: 100%; }
  .pedido-head #mozo-badge { white-space: normal; text-align: left; line-height: 1.15; height: auto; min-height: 38px; padding-block: 6px; }
  .pedido-head #nombre-btn { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .pedido-head #mesa-titulo:not(:has(.mesa-titulo-num)) { font-size: 26px; white-space: nowrap; }
  .pedido-head #mozo-badge { flex: 1 1 58%; }
  .pedido-head #nombre-btn { flex: 1 1 36%; }
  .pedido-head .ph-spacer { display: none; }
  .pedido-head #personas { flex: 1 0 100%; display: flex; justify-content: space-between; }
  .pedido-head #personas[hidden] { display: none; }
  .pedido-head #personas .ps-val { flex: 1; justify-content: center; }
}

/* Toques rápidos y repetidos: sin zoom por doble toque ni espera (tanda 23). Solo cambia cómo el navegador interpreta el toque; el aspecto no cambia. */
button, [role="button"], a, summary, label, select, .prod, .chip { touch-action: manipulation; }
