/* Panel de Nostra Pizza — fondo blanco con los colores de la página, barra negra, terracota y rojo del toldo. Archivo condensada + Barlow */
:root {
  --bg: #fff;
  --card: #fff;
  --card-2: #f7f3ee;
  --field: #fbf9f6;
  --hi: #fff;
  --line: #e9e2d9;
  --line-2: #f1ece5;
  --tint: #f3eee8;
  --tint-2: #e8e1d8;
  --shadow: 0 1px 2px rgba(36, 28, 23, .04), 0 12px 28px -22px rgba(36, 28, 23, .28);
  --ink: #1d1713;
  --ink-2: #3b2a22;
  --soft: #6f5a4a;
  --mute: #9a8573;
  --side: #0b0908;
  --tan: #e3a46f;
  --tan-d: #9d3933;
  --tan-bg: rgba(227, 164, 111, .28);
  --tan-line: rgba(157, 57, 51, .3);
  --red: #9d3933;
  --red-bg: rgba(157, 57, 51, .12);
  --ok: #1d7a3e;
  --ok-bg: rgba(29, 122, 62, .14);
  --warn: #8a520a;
  --warn-bg: rgba(163, 98, 12, .14);
  --blue: #2b6fd6;
  --blue-bg: rgba(43, 111, 214, .12);
  --blue-ink: #1b3f78;
  --violet: #6a4fd8;
  --orange: #e8693a;
  --teal: #16a37f;
  --pink: #e07aa5;
  --display: "Archivo", "Arial Narrow", "Arial Black", Arial, sans-serif;
  --sans: "Barlow", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --side-w: 272px;
  --r: 18px;
}
*, *::before, *::after { box-sizing: border-box; }
html, * { -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background-color: var(--bg); touch-action: manipulation; overscroll-behavior-x: none; }
/* el panel no se agranda: sin doble toque ni pellizco (el pellizco de iPhone se frena en admin.js) */
* { touch-action: manipulation; }
body { margin: 0; min-height: 100vh; min-height: 100dvh; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.45; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3, h4, p, dl, dd, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
svg { flex-shrink: 0; }
:focus:not(:focus-visible) { outline: none; }
:focus-visible { outline: 2px solid var(--tan-d); outline-offset: 2px; }
html:not(.kbd) :focus-visible { outline: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.no-scroll { overflow: hidden; }

/* =================== LOGIN =================== */
.is-locked { background: var(--bg); }
/* Recargando con la sesión abierta: en vez de la pantalla de entrada, solo el logo (y si tarda) hasta confirmar la sesión */
html.np-boot .login, html.np-boot .lbar { visibility: hidden; }
html.np-boot body.is-locked::after { content: ""; position: fixed; top: 50%; left: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%; background: url(../logo/nostra-badge.svg?v=2) center / contain no-repeat; animation: boot-in .45s cubic-bezier(.2, 1.4, .4, 1) .12s both, boot-glow 1.1s ease-in-out .57s infinite; }
/* el logo entra girando un poco con rebote y después "respira" con la luz cálida del cartel mientras espera */
@keyframes boot-in { from { opacity: 0; transform: scale(.5) rotate(-25deg); } to { opacity: 1; transform: none; } }
@keyframes boot-glow { 0%, 100% { transform: none; box-shadow: 0 0 0 0 rgba(255, 194, 74, 0); } 50% { transform: scale(1.06); box-shadow: 0 0 34px 6px rgba(255, 194, 74, .45); } }
@media (prefers-reduced-motion: reduce) { html.np-boot body.is-locked::after { animation: fade .3s ease .2s both; } }
.lbar { position: fixed; top: 0; left: 0; right: 0; z-index: 10; padding-top: env(safe-area-inset-top); background: rgba(21, 17, 14, .96); }
.lbar__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 1160px; height: 64px; margin: 0 auto; padding: 0 max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left)); }
.lbar__brand { display: flex; align-items: center; gap: 12px; min-width: 0; color: #fff; text-decoration: none; }
.lbar__logo { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 42px; height: 42px; border: 1px solid rgba(227, 164, 111, .4); border-radius: 50%; background: #0b0908; }
.lbar__logo img { width: 100%; height: auto; }
.lbar__name { font-family: var(--display); font-weight: 800; font-stretch: 75%; font-variation-settings: "wdth" 75; font-size: 1.4rem; line-height: 1; text-transform: uppercase; white-space: nowrap; }
.lbar__name small { display: block; margin-top: 4px; color: var(--tan); font-family: var(--sans); font-weight: 600; font-size: .66rem; letter-spacing: .3em; }
.lbar__btn { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 999px; color: #fff; font-weight: 600; font-size: .9rem; text-decoration: none; transition: background-color .2s, border-color .2s; }
.lbar__btn svg { width: 17px; height: 17px; }
@media (hover: hover) and (pointer: fine) { .lbar__btn:hover { border-color: var(--tan); background: rgba(227, 164, 111, .12); } }
@media (max-width: 420px) { .lbar__btn { padding: 0 12px; font-size: .84rem; } .lbar__name { font-size: 1.25rem; } }
.lbar__acts { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
/* celulares angostos: los dos botones quedan solo con el ícono, para que entren al lado del logo */
@media (max-width: 460px) { .lbar__acts .lbar__btn { width: 40px; padding: 0; justify-content: center; } .lbar__acts .lbar__btn span { display: none; } }

.login { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 100vh; min-height: 100dvh; padding: calc(88px + env(safe-area-inset-top)) 16px max(24px, env(safe-area-inset-bottom)); }
.login__card { width: min(100%, 420px); padding: 34px 28px 26px; border: 1px solid var(--line); border-radius: 24px; background: var(--card); box-shadow: 0 30px 60px -34px rgba(60, 35, 15, .35); text-align: center; animation: cardIn .5s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes cardIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.login__logo { display: flex; align-items: center; justify-content: center; width: 92px; height: 92px; margin: 0 auto 16px; border-radius: 50%; background: var(--side); box-shadow: 0 0 0 5px var(--tan-bg); }
.login__logo img { width: 100%; height: auto; }
.login__kicker { display: block; color: var(--tan-d); font-weight: 700; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; }
.login__title { margin-top: 6px; font-family: var(--display); font-weight: 800; font-stretch: 70%; font-variation-settings: "wdth" 70; font-size: 2.3rem; line-height: 1; text-transform: uppercase; }
.login__lead { margin-top: 8px; color: var(--soft); font-size: .95rem; }
.login__form { margin-top: 24px; text-align: left; }
.login__form.is-shake { animation: shake .42s cubic-bezier(.36, .07, .19, .97); }
@keyframes shake { 15%, 85% { transform: translateX(-2px); } 30%, 70% { transform: translateX(5px); } 45%, 55% { transform: translateX(-7px); } 50% { transform: translateX(7px); } }
.login__error { min-height: 1.4em; margin: 10px 0 4px; color: var(--red); font-size: .88rem; font-weight: 500; }
.login__link { display: block; margin: 20px auto 0; padding: 4px 6px; border: 0; background: none; color: var(--ink-2); font-size: .92rem; font-weight: 500; text-decoration: underline; text-decoration-color: var(--tan-line); text-underline-offset: 3px; }
.login__help { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line-2); color: var(--soft); font-size: .84rem; }
.login__help a { font-weight: 600; }
.login__back { display: inline-block; margin-top: 12px; color: var(--soft); font-size: .88rem; text-decoration: none; }
.login__back:hover { color: var(--ink); }
.lcredit { margin-top: 18px; color: var(--soft); font-size: .8rem; text-align: center; }
.lcredit a { font-weight: 600; }
.lfield { display: block; }
.lfield__label { display: block; margin-bottom: 7px; font-weight: 600; font-size: .9rem; }
.lfield__wrap { position: relative; display: block; }
.lfield__ico { position: absolute; top: 50%; left: 14px; width: 19px; height: 19px; color: var(--mute); transform: translateY(-50%); pointer-events: none; }
.lfield__input { width: 100%; height: 50px; padding: 0 48px 0 44px; border: 1px solid var(--line); border-radius: 14px; background: var(--field); font-size: 16px; transition: border-color .2s, box-shadow .2s; }
.lfield__input:focus { border-color: var(--ink); background: var(--hi); outline: none; box-shadow: 0 0 0 3px rgba(21, 17, 14, .08); }
.lfield__input.is-invalid { border-color: var(--red); }
.lfield__input--code { padding: 0 16px; font-size: 20px; font-weight: 600; letter-spacing: .3em; text-align: center; }
.lfield__eye { position: absolute; top: 50%; right: 6px; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 0; border-radius: 10px; background: none; color: var(--soft); transform: translateY(-50%); }
.lfield__eye svg { width: 20px; height: 20px; }
.lfield__eye .eye-shut, .lfield__eye.is-on .eye-open { display: none; }
.lfield__eye.is-on .eye-shut { display: block; }
.lcheck { display: flex; align-items: center; gap: 10px; margin-top: 14px; color: var(--ink-2); font-size: .92rem; cursor: pointer; }
.lcheck input { width: 18px; height: 18px; margin: 0; accent-color: var(--ink); }
.lbtn { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; height: 50px; border: 0; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 700; font-size: 1rem; transition: background-color .2s, opacity .2s; }
.lbtn:disabled { opacity: .55; cursor: default; }
.lbtn.is-loading span { opacity: 0; }
.lbtn.is-loading::after { content: ""; position: absolute; width: 20px; height: 20px; border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.lbtn--line { margin-top: 10px; border: 1px solid var(--ink); background: transparent; color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .lbtn:not(:disabled):hover { background: var(--red); } .lbtn--line:not(:disabled):hover { background: var(--ink); color: #fff; } }
.auth { margin-top: 14px; text-align: left; }
.auth__help { margin-top: 8px; color: var(--soft); font-size: .84rem; }
.auth__msg { min-height: 1.2em; margin-top: 8px; font-size: .88rem; }
.auth__msg.is-bad { color: var(--red); }
.auth__msg.is-info { color: var(--blue-ink); }
.auth__msg.is-ok { color: var(--ok); font-weight: 600; }

/* =================== ESTRUCTURA =================== */
.app { min-height: 100vh; min-height: 100dvh; }
.side { position: fixed; top: 0; bottom: 0; left: 0; z-index: 40; display: flex; flex-direction: column; width: var(--side-w); padding: max(18px, env(safe-area-inset-top)) 12px max(14px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left)); background: var(--side); color: #fff; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #3a322c transparent; }
.side__top { display: flex; align-items: center; justify-content: space-between; padding: 0 6px; }
.side__brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.side__logo { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; border: 1px solid rgba(227, 164, 111, .45); border-radius: 50%; background: #0b0908; }
.side__logo img { width: 100%; height: auto; }
.side__name { font-family: var(--display); font-weight: 800; font-stretch: 72%; font-variation-settings: "wdth" 72; font-size: 1.55rem; line-height: .95; letter-spacing: .005em; text-transform: uppercase; }
.side__name small { display: block; margin-top: 4px; color: rgba(255, 255, 255, .55); font-family: var(--sans); font-weight: 600; font-size: .64rem; letter-spacing: .3em; }
.side__close { display: none; align-items: center; justify-content: center; width: 40px; height: 40px; border: 0; border-radius: 12px; background: rgba(255, 255, 255, .08); color: #fff; }
.side__close svg { width: 20px; height: 20px; }
.role { display: flex; align-items: center; gap: 11px; margin: 16px 0 6px; padding: 11px 14px; border-radius: 14px; background: var(--bg); color: var(--ink); }
.role__ico { display: flex; color: var(--red); }
.role__ico svg { width: 21px; height: 21px; }
.role__txt { line-height: 1.15; }
.role__txt b { display: block; font-family: var(--display); font-weight: 800; font-stretch: 72%; font-variation-settings: "wdth" 72; font-size: 1.2rem; letter-spacing: .01em; text-transform: uppercase; }
.role__txt small { color: var(--soft); font-weight: 500; font-size: .78rem; }
.nav { display: flex; flex-direction: column; gap: 2px; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; }
.nav ::selection { background: transparent; }
.nav__group { margin: 16px 12px 6px; color: rgba(255, 255, 255, .48); font-weight: 700; font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; }
.nav__item { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 48px; padding: 0 14px; border: 0; border-radius: 12px; background: none; color: rgba(255, 255, 255, .9); font-weight: 600; font-size: 1.1rem; text-align: left; transition: background-color .15s, color .15s; }
.nav__item svg { width: 22px; height: 22px; flex-shrink: 0; opacity: .85; }
.nav__item span:not(.nbadge) { flex: 1; }
.nav__item.is-active { background: var(--bg); color: var(--ink); }
.nav__item.is-active svg { opacity: 1; color: var(--red); }
@media (hover: hover) and (pointer: fine) { .nav__item:not(.is-active):hover { background: rgba(255, 255, 255, .07); color: #fff; } }
.nbadge { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; background: var(--red); color: #fff; font-weight: 700; font-size: .8rem; line-height: 1; }
.side__foot { margin-top: auto; padding-top: 16px; }
.side__foot::before { content: ""; display: block; height: 1px; margin: 0 4px 14px; background: rgba(255, 255, 255, .1); }
.avisos { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 0 14px; border-radius: 12px; background: #000; color: #fff; border: 1px solid rgba(255, 255, 255, .28); font-weight: 700; font-size: 1.05rem; text-align: left; transition: background-color .2s; }
.avisos svg { width: 19px; height: 19px; }
.avisos + .avisos { margin-top: 12px; }
.app-install--panel { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 46px; margin-top: 12px; padding: 0 14px; border: 1px solid rgba(255, 255, 255, .45); border-radius: 12px; background: transparent; color: #fff; font: inherit; font-weight: 700; font-size: .92rem; text-align: left; cursor: pointer; }
.app-install--panel[hidden] { display: none; }
.app-install--panel svg { width: 18px; height: 18px; }
/* "Instalar el panel como app" en la tarjeta del inicio de sesión (aparece solo donde se puede instalar) */
.app-install--login { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 48px; margin-top: 18px; padding: 0 16px; border: 1.5px solid var(--tan); border-radius: 14px; background: rgba(227, 164, 111, .1); color: var(--ink); font: inherit; font-weight: 700; font-size: 1rem; cursor: pointer; }
.app-install--login[hidden] { display: none; }
.app-install--login svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--tan); }
@media (hover: hover) and (pointer: fine) { .app-install--login:hover { background: rgba(227, 164, 111, .2); } }
/* Pasos para instalar el panel (iPhone, Android, PC) */
.inst__intro { margin: 0 0 14px; }
.inst { counter-reset: inst; list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.inst li { counter-increment: inst; position: relative; padding-left: 40px; line-height: 1.55; }
.inst li::before { content: counter(inst); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; background: #1b1512; color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .9rem; }
.inst__k { display: inline-flex; align-items: center; gap: 5px; padding: 1px 8px; border: 1px solid rgba(0, 0, 0, .18); border-radius: 8px; background: rgba(0, 0, 0, .04); font-weight: 700; white-space: nowrap; vertical-align: middle; }
.inst__k svg { width: 17px; height: 17px; flex: none; color: #0a84ff; }
.inst__note { margin: 16px 0 0; padding: 10px 12px; border-radius: 10px; background: rgba(227, 164, 111, .16); font-size: .92rem; line-height: 1.5; }
.avisos[aria-pressed="true"] { background: #fff; color: #000; border-color: #fff; }
.avisos[aria-pressed="true"] svg { color: var(--red); animation: ring 2.4s ease-in-out infinite; transform-origin: 50% 10%; }
#sonidoTap { margin-top: 8px; }
#sonidoTap[aria-pressed="true"] svg { animation: none; }
@keyframes ring { 0%, 88%, 100% { transform: rotate(0); } 91% { transform: rotate(14deg); } 94% { transform: rotate(-12deg); } 97% { transform: rotate(6deg); } }
.side__row { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin-top: 14px; }
.side__ghost { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 12px; border: 0; border-radius: 12px; background: rgba(255, 255, 255, .08); color: #fff; font-weight: 600; font-size: .9rem; text-decoration: none; white-space: nowrap; transition: background-color .15s; }
.side__ghost svg { width: 17px; height: 17px; }
@media (hover: hover) and (pointer: fine) { .side__ghost:hover { background: rgba(255, 255, 255, .15); } .avisos:hover { background: #222; } .avisos[aria-pressed="true"]:hover { background: #eee; } }
.side__credit { margin: 14px 6px 0; color: rgba(255, 255, 255, .5); font-size: .76rem; }
.side__credit b, .side__credit a { color: rgba(255, 255, 255, .82); font-weight: 600; text-decoration: none; }

.mtop { display: none; }
.scrim { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 35; background: rgba(21, 17, 14, .45); animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }

.main { min-height: 100vh; margin-left: var(--side-w); padding: 40px clamp(20px, 4vw, 56px) 96px; }
.view { width: 100%; max-width: 1120px; margin: 0 auto; animation: viewIn .28s ease backwards; }
@keyframes viewIn { from { opacity: 0; transform: translateY(6px); } }

@media (max-width: 1023px) {
  .mtop { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 10px; height: calc(66px + env(safe-area-inset-top)); padding: env(safe-area-inset-top) max(12px, env(safe-area-inset-right)) 0 max(12px, env(safe-area-inset-left)); background: var(--side); color: #fff; }
  .mtop__btn { position: relative; display: flex; align-items: center; justify-content: center; width: 50px; height: 50px; border: 0; border-radius: 14px; background: rgba(255, 255, 255, .08); color: #fff; touch-action: manipulation; }
  .mtop__btn svg { width: 27px; height: 27px; }
  .mtop::after { content: ""; flex-shrink: 0; width: 50px; } /* mismo ancho que el botón del menú: el logo queda centrado */
  .mtop__brand { display: flex; flex: 1; align-items: center; justify-content: center; gap: 9px; min-width: 0; text-decoration: none; }
  .mtop__brand img { width: 34px; height: auto; }
  .mtop__brand span { font-family: var(--display); font-weight: 800; font-stretch: 72%; font-variation-settings: "wdth" 72; font-size: 1.35rem; line-height: .95; text-transform: uppercase; white-space: nowrap; }
  .mtop__brand small { display: block; color: rgba(255, 255, 255, .55); font-family: var(--sans); font-weight: 600; font-size: .58rem; letter-spacing: .3em; }
  .side { width: min(390px, 92vw); transform: translateX(-102%); transition: transform .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s; box-shadow: none; }
  .side.is-open { transform: none; box-shadow: 20px 0 50px -20px rgba(0, 0, 0, .5); }
  .side__close { display: flex; }
  .main { margin-left: 0; padding: 26px max(16px, env(safe-area-inset-right)) 110px max(16px, env(safe-area-inset-left)); }
}

/* =================== TIPOGRAFÍA Y BLOQUES =================== */
.h1 { font-family: var(--display); font-weight: 800; font-stretch: 66%; font-variation-settings: "wdth" 66; font-size: clamp(2.3rem, 4.4vw, 3rem); line-height: .95; letter-spacing: .005em; text-transform: uppercase; }
.h2 { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; font-stretch: 68%; font-variation-settings: "wdth" 68; font-size: 1.6rem; line-height: 1; letter-spacing: .01em; text-transform: uppercase; }
.h2 .dot { width: 11px; height: 11px; border-radius: 3px; background: var(--c, var(--ink)); }
.h3 { font-weight: 700; font-size: 1.15rem; line-height: 1.25; }
.muted { color: var(--soft); }
.vhead { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.vhead .h1 { margin: 0; }
.vhead + .info, .h1 + .info { margin-top: 0; }
.h1 + * { margin-top: 18px; }
.stack > * + * { margin-top: 16px; }

.info { display: flex; gap: 12px; max-width: 760px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); color: var(--ink-2); font-size: .95rem; line-height: 1.5; }
.info__i { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 20px; height: 20px; margin-top: 1px; border-radius: 50%; background: var(--ink); color: #fff; font-family: Georgia, serif; font-weight: 700; font-style: italic; font-size: .78rem; }
.info b { color: var(--ink); font-weight: 700; }
.info a { color: var(--ink); font-weight: 700; text-underline-offset: 2px; cursor: pointer; }
.info--gray { border-color: transparent; background: var(--tint); color: var(--soft); font-size: .88rem; }
.info--gray .info__i { background: var(--mute); }
.info--tan { border-color: var(--tan-line); background: var(--tan-bg); }
.info--tan .info__i { background: var(--tan-d); }
.info--red { border: 2px solid rgb(200, 38, 26); background: rgb(255, 238, 235); color: rgb(130, 22, 14); }
.info--red b { color: rgb(160, 24, 14); }
.info--red .info__i { background: rgb(200, 38, 26); }
.info + .info { margin-top: 12px; }

.card { padding: 20px; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); }
.card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.card__head .right { display: flex; align-items: center; gap: 6px; color: var(--soft); font-size: .95rem; }
.card__head .right strong { font-family: var(--display); font-weight: 800; font-stretch: 75%; font-variation-settings: "wdth" 75; font-size: 1.6rem; }
.card__head .btn.right, .card__head .btn.right:not(:disabled):hover { background: #000; border-color: #000; color: #fff; }
.sub { margin: 18px 0 10px; color: var(--soft); font-weight: 700; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; }
.sep { height: 1px; margin: 18px 0; border: 0; background: var(--line-2); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: start; }
@media (max-width: 1180px) { .grid4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 900px) { .grid2 { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .grid4 { grid-template-columns: 1fr; } }
.mt { margin-top: 16px; }
.mt-l { margin-top: 26px; }

/* =================== BOTONES =================== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border: 1px solid var(--ink); border-radius: 999px; background: var(--ink); color: #fff; font-weight: 700; font-size: .95rem; line-height: 1.1; text-decoration: none; white-space: nowrap; transition: background-color .15s, color .15s, border-color .15s, opacity .15s; }
.btn svg { width: 18px; height: 18px; }
.btn:disabled { opacity: .45; cursor: default; }
.btn--line { background: transparent; color: var(--ink); }
.btn--sm { min-height: 36px; padding: 0 14px; font-size: .88rem; }
.btn--sm svg { width: 16px; height: 16px; }
.btn--tan { border-color: var(--tan); background: var(--tan); color: var(--ink); }
.btn--red { border-color: var(--red); background: var(--red); }
.btn--redline { border-color: rgba(157, 57, 51, .45); background: transparent; color: var(--red); }
.btn--light { border-color: var(--bg); background: var(--bg); color: var(--ink); }
.btn--ghost-l { border-color: rgba(255, 255, 255, .35); background: transparent; color: #fff; }
.btn--big { min-height: 50px; padding: 0 28px; border-radius: 14px; font-size: 1rem; }
@media (hover: hover) and (pointer: fine) {
  .btn:not(:disabled):hover { background: #2e2621; border-color: #2e2621; }
  .btn--line:not(:disabled):hover { background: var(--ink); border-color: var(--ink); color: #fff; }
  .btn--tan:not(:disabled):hover { background: #ecb586; border-color: #ecb586; }
  .btn--red:not(:disabled):hover { background: #a92b17; border-color: #a92b17; }
  .btn--redline:not(:disabled):hover { background: var(--red); border-color: var(--red); color: #fff; }
  .btn--light:not(:disabled):hover { background: var(--tan); border-color: var(--tan); color: var(--ink); }
  .btn--ghost-l:not(:disabled):hover { background: rgba(255, 255, 255, .12); border-color: #fff; }
}
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 0; border-radius: 10px; background: none; color: var(--mute); transition: background-color .15s, color .15s; }
.icon-btn svg { width: 19px; height: 19px; }
@media (hover: hover) and (pointer: fine) { .icon-btn:hover { background: var(--red-bg); color: var(--red); } }
.link { padding: 0; border: 0; background: none; color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.dl-btn { display: inline-flex; align-items: center; gap: 8px; padding: 6px 2px; border: 0; background: none; font-weight: 600; font-size: .95rem; }
.dl-btn svg { width: 17px; height: 17px; }

/* =================== FILTROS =================== */
.filters { display: flex; align-items: center; gap: 12px 18px; flex-wrap: wrap; margin: 18px 0; }
.filters .grow { flex: 1; }
.fgroup { display: flex; align-items: center; gap: 12px; }
.flabel { color: var(--soft); font-weight: 700; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; }
.select { position: relative; display: inline-flex; }
.select select { min-width: 168px; height: 42px; padding: 0 40px 0 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--field); font-weight: 600; font-size: .95rem; -webkit-appearance: none; appearance: none; cursor: pointer; }
.select::after { content: ""; position: absolute; top: 50%; right: 17px; width: 7px; height: 7px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.seg { display: inline-flex; gap: 2px; padding: 4px; border-radius: 999px; background: var(--tint); }
.seg button { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 0 14px; border: 0; border-radius: 999px; background: none; color: var(--soft); font-weight: 600; font-size: .94rem; white-space: nowrap; transition: background-color .15s, color .15s; }
.seg button.is-on { background: var(--hi); color: var(--ink); box-shadow: 0 1px 3px rgba(60, 35, 15, .14); }
.seg--lg button { min-height: 42px; padding: 0 20px; font-size: 1rem; }
/* en celular, si los nombres de los locales no entran, la barra se desliza de costado (sin correr la página) */
.fgroup { min-width: 0; max-width: 100%; }
.seg { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
/* Botones para elegir local (Todos / Nostra Sarmiento / Nostra Patricias): el elegido en negro con letra blanca */
.seg--suc button.is-on { background: #1d1713; color: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .25); }
.seg--suc button.is-on .cnt { background: rgba(255, 255, 255, .22); color: #fff; }
@media (hover: hover) and (pointer: fine) { .seg--suc button:not(.is-on):hover { color: #1d1713; } }
.cnt { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--tint-2); color: var(--ink-2); font-weight: 700; font-size: .72rem; }
.cnt--red { background: var(--red); color: #fff; }
.cnt--ink { background: var(--ink); color: #fff; }
.search { position: relative; display: flex; align-items: center; min-width: 240px; }
.search svg { position: absolute; left: 15px; width: 17px; height: 17px; color: var(--soft); pointer-events: none; }
.search input { width: 100%; height: 42px; padding: 0 16px 0 42px; border: 1px solid var(--line); border-radius: 999px; background: var(--field); font-size: 16px; }
.search input:focus, .select select:focus { border-color: var(--ink); outline: none; }
.search--sq input { border-radius: 12px; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 18px 0; }
.toolbar .search { width: min(100%, 340px); }
.toolbar__r { display: flex; gap: 10px; flex-wrap: wrap; margin-left: auto; }

.tabs { display: flex; gap: 26px; margin: 22px 0 0; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { display: inline-flex; align-items: center; gap: 8px; padding: 10px 0 12px; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; background: none; color: var(--soft); font-weight: 600; font-size: 1.02rem; white-space: nowrap; }
.tabs button.is-on { border-bottom-color: var(--ink); color: var(--ink); }
.tabs button.is-on .cnt:not(.cnt--red) { background: var(--ink); color: #fff; }

/* =================== KPIs =================== */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.kpis--3 { grid-template-columns: repeat(3, 1fr); }
.kpi { min-width: 0; padding: 18px 18px 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.kpi__l { display: block; color: var(--soft); font-weight: 700; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }
.kpi__n { display: block; margin-top: 4px; font-family: var(--display); font-weight: 800; font-stretch: 68%; font-variation-settings: "wdth" 68; font-size: 2.35rem; line-height: 1.05; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi__s { display: block; margin-top: 4px; color: var(--soft); font-size: .9rem; }
.kpi--c { border-left: 4px solid var(--c); }
.kpi--c .kpi__l { color: var(--c); }
.kpi--dark { border-color: var(--ink); background: var(--ink); color: #fff; }
.kpi--dark .kpi__l, .kpi--dark .kpi__s { color: rgba(255, 255, 255, .7); }
.up { color: var(--ok); font-weight: 600; }
.down { color: var(--red); font-weight: 600; }
.kpi--sm .kpi__n { font-size: 2rem; }
@media (max-width: 1100px) { .kpis { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) { .kpis--3 { grid-template-columns: 1fr 1fr; } .kpis--3 .kpi:first-child { grid-column: 1 / -1; } }
@media (max-width: 380px) { .kpi__n { font-size: 2rem; } .kpi { padding: 14px; } }
.hi-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.hi { padding: 16px 16px 14px; border-radius: 16px; background: var(--ink); color: #fff; }
.hi__l { color: var(--tan); font-weight: 700; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }
.hi__v { margin-top: 2px; font-weight: 700; font-size: 1.2rem; }
.hi__s { color: rgba(255, 255, 255, .72); font-size: .88rem; }
@media (max-width: 1100px) { .hi-cards { grid-template-columns: 1fr 1fr; } }

/* =================== INICIO =================== */
.wx { display: flex; align-items: center; gap: 18px 34px; flex-wrap: wrap; padding: 16px 20px; }
.wx__time strong { display: block; font-family: var(--display); font-weight: 800; font-stretch: 70%; font-variation-settings: "wdth" 70; font-size: 2.3rem; line-height: 1; }
.wx__time span { display: block; margin-top: 4px; color: var(--soft); font-size: .95rem; }
.wx__now { display: flex; align-items: center; gap: 12px; }
.wx__ico { width: 40px; height: 40px; color: var(--ink); }
.wx__ico .f { fill: var(--tan); stroke: var(--ink); }
.wx__temp { font-family: var(--display); font-weight: 800; font-stretch: 72%; font-variation-settings: "wdth" 72; font-size: 2rem; }
.wx__desc b { display: block; font-weight: 600; font-size: 1.02rem; }
.wx__desc small { color: var(--soft); font-size: .88rem; }
.wx__load { color: var(--mute); font-size: .92rem; }
.wx__next { display: flex; flex-direction: column; gap: 6px; }
.wx__next small { color: var(--soft); font-weight: 700; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; }
.wx__chips { display: flex; gap: 8px; flex-wrap: wrap; }
.wx__chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; background: var(--card-2); border: 1px solid var(--line-2); color: var(--soft); font-size: .9rem; }
.wx__chip svg { width: 18px; height: 18px; }
.wx__chip b { color: var(--ink); }
.alert { display: flex; align-items: center; gap: 16px; width: 100%; margin-top: 14px; padding: 15px 18px; border: 1px solid var(--tan-line); border-radius: 16px; background: var(--tan-bg); text-align: left; }
.alert > span:first-child { flex: 1; }
.alert b { display: block; color: #6e2a1f; font-weight: 700; font-size: 1.05rem; }
.alert small { display: block; color: #5f3a2c; font-size: .93rem; }
.alert__go { font-weight: 700; color: #6e2a1f; white-space: nowrap; }
.wx + .kpis, .alert + .kpis { margin-top: 14px; }
.kpis + .grid2 { margin-top: 16px; }
.mini-list > li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.mini-list > li:last-child { border-bottom: 0; }
.mini-list .grow { flex: 1; min-width: 0; }
.mini-list b { display: block; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-list small { color: var(--soft); font-size: .88rem; }
.mini-list .price { font-weight: 600; white-space: nowrap; }
.code { font-family: var(--display); font-weight: 800; font-stretch: 70%; font-variation-settings: "wdth" 70; font-size: 1.15rem; color: var(--red); letter-spacing: .02em; }
.st-pending { color: var(--warn); font-weight: 600; font-style: normal; }
.st-done { color: var(--ok); font-weight: 600; font-style: normal; }
.st-cancel { color: var(--red); font-weight: 600; font-style: normal; }
.thumb { flex-shrink: 0; width: 44px; height: 44px; border-radius: 10px; background: var(--card-2) center / cover no-repeat; border: 1px solid var(--line-2); object-fit: cover; }
.thumb--lg { width: 58px; height: 58px; border-radius: 12px; }
.today-list li { display: flex; align-items: center; gap: 10px; padding: 5px 0; font-size: 1.02rem; }
.shortcuts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.shortcut { display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--card-2); font-weight: 700; font-size: 1rem; text-align: left; transition: border-color .15s, background-color .15s; }
.shortcut span:first-child { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 32px; height: 32px; border-radius: 9px; background: var(--ink); color: var(--tan); }
.shortcut svg { width: 17px; height: 17px; }
@media (hover: hover) and (pointer: fine) { .shortcut:hover { border-color: var(--ink); background: var(--card); } }
@media (max-width: 480px) { .shortcuts { grid-template-columns: 1fr; } }
.empty-s { padding: 18px 0 6px; color: var(--soft); }
.empty-s a, .empty-s button { color: var(--ink); font-weight: 600; }
.empty { padding: 40px 20px; color: var(--soft); text-align: center; }
.empty b { display: block; margin-bottom: 4px; color: var(--ink); font-size: 1.05rem; }

/* =================== BADGES Y SWITCH =================== */
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 7px; background: var(--tint); color: var(--ink-2); font-weight: 700; font-size: .74rem; line-height: 1.5; white-space: nowrap; vertical-align: middle; }
.tag svg { width: 12px; height: 12px; }
.tag--ok { background: var(--ok-bg); color: var(--ok); }
.tag--tan { background: var(--tan-bg); color: #7a3326; }
.tag--warn { background: var(--warn-bg); color: var(--warn); }
.tag--red { background: var(--red-bg); color: var(--red); }
.tag--blue { background: var(--blue-bg); color: var(--blue-ink); }
.sw { display: inline-flex; align-items: center; gap: 9px; padding: 4px 2px; border: 0; background: none; font-weight: 700; font-size: .92rem; white-space: nowrap; }
.sw__track { position: relative; width: 46px; height: 28px; border-radius: 999px; background: rgba(29, 23, 19, .2); transition: background-color .2s; }
.sw__knob { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--card); box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .2s cubic-bezier(.3, .7, .3, 1.2); }
.sw.is-on .sw__track { background: var(--ok); }
.sw.is-on .sw__knob { transform: translateX(18px); }
.sw__txt { min-width: 80px; color: var(--warn); text-align: left; }
.sw.is-on .sw__txt { color: var(--ok); }
.sw--big .sw__track { width: 52px; height: 30px; }
.sw--big .sw__knob { width: 24px; height: 24px; }
.sw--big.is-on .sw__knob { transform: translateX(22px); }
.sw--big { white-space: normal; text-align: left; }
.sw--big .sw__track { flex-shrink: 0; }
.sw--big .sw__txt { font-size: 1.05rem; min-width: 0; }

/* =================== FILAS (carta, portadas, sucursales…) =================== */
.grp { display: flex; align-items: baseline; gap: 10px; margin: 26px 0 10px; font-family: var(--display); font-weight: 800; font-stretch: 68%; font-variation-settings: "wdth" 68; font-size: 1.65rem; line-height: 1; text-transform: uppercase; }
.grp small { color: var(--soft); font-family: var(--sans); font-weight: 500; font-size: .92rem; text-transform: none; }
.grp small a { color: var(--soft); }
.rows { display: flex; flex-direction: column; gap: 10px; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; min-height: 78px; padding: 10px 14px 10px 8px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.row__info { flex: 1 1 240px; min-width: 0; }
.row__t { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-weight: 700; font-size: 1.05rem; line-height: 1.25; }
.row__s { color: var(--soft); font-size: .92rem; line-height: 1.35; }
.row__s + .row__s { margin-top: 1px; }
.row__s.clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.row__act { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; max-width: 100%; margin-left: auto; }
.row.is-off { border-style: dashed; background: var(--tint); }
.row.is-off .row__t, .row.is-off .row__s { color: var(--mute); }
.row.is-off .thumb, .row.is-off .ltr { opacity: .55; }
.row.is-drag { position: relative; z-index: 2; border-color: var(--ink); box-shadow: 0 16px 34px -14px rgba(40, 25, 10, .4); }
.drag { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 26px; height: 44px; border: 0; border-radius: 8px; background: none; color: var(--mute); cursor: grab; touch-action: none; }
.drag svg { width: 16px; height: 16px; }
.drag:active { cursor: grabbing; }
.drag--none { visibility: hidden; }
.ltr { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 58px; height: 58px; border-radius: 12px; background: var(--tint); color: var(--ink-2); font-family: var(--display); font-weight: 800; font-stretch: 70%; font-variation-settings: "wdth" 70; font-size: 1.5rem; }
.ltr--sm { width: 44px; height: 44px; font-size: 1.2rem; border-radius: 10px; }
.offhead { display: flex; align-items: center; gap: 10px; margin: 28px 0 10px; color: var(--soft); font-weight: 700; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; }
.offhead::after { content: ""; flex: 1; height: 1px; background: var(--line); }
@media (max-width: 760px) {
  .row { flex-wrap: wrap; align-items: flex-start; gap: 10px 12px; padding: 12px 12px 12px 6px; }
  .row__info { flex-basis: calc(100% - 110px); }
  .row__act { width: 100%; justify-content: flex-end; flex-wrap: wrap; padding-left: 34px; }
  .row .sw { margin-right: auto; }
}

/* =================== PEDIDOS (ticket) =================== */
.tickets { display: flex; flex-direction: column; gap: 22px; margin-top: 18px; }
.tk { position: relative; display: grid; grid-template-columns: 208px minmax(0, 1fr); border-radius: 20px; background: var(--card); box-shadow: 0 1px 0 var(--line), 0 0 0 1px var(--line); }
.tk__stub { position: relative; display: flex; flex-direction: column; padding: 22px 22px 20px; border-radius: 20px 0 0 20px; background: var(--tan); color: var(--ink); }
.tk__stub::before, .tk__stub::after { content: ""; position: absolute; right: -9px; width: 18px; height: 18px; border-radius: 50%; background: var(--bg); z-index: 1; }
.tk__stub::before { top: -9px; }
.tk__stub::after { bottom: -9px; }
.tk__perf { position: absolute; top: 12px; bottom: 12px; right: -1px; border-right: 2px dashed rgba(21, 17, 14, .28); }
.tk__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.tk__code { font-family: var(--display); font-weight: 800; font-stretch: 66%; font-variation-settings: "wdth" 66; font-size: 2rem; line-height: 1; letter-spacing: .02em; }
.tk__sel { position: relative; display: block; width: 26px; height: 26px; flex-shrink: 0; cursor: pointer; }
.tk__sel input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.tk__sel span { display: flex; align-items: center; justify-content: center; width: 26px; height: 26px; border: 2px solid currentColor; border-radius: 8px; opacity: .75; transition: background-color .15s; }
.tk__sel svg { width: 16px; height: 16px; opacity: 0; }
.tk__sel input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; opacity: 1; }
.tk__sel input:checked + span svg { opacity: 1; }
.tk__sel input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.tk__when { margin-top: 12px; font-weight: 700; font-size: 1rem; }
.tk__ago { font-size: .88rem; opacity: .7; }
.tk__state { display: flex; align-items: center; gap: 6px; margin-top: 14px; font-weight: 700; font-size: .92rem; }
.tk__state svg { width: 16px; height: 16px; }
.tk__total { margin-top: auto; padding-top: 22px; font-family: var(--display); font-weight: 800; font-stretch: 68%; font-variation-settings: "wdth" 68; font-size: 2.3rem; line-height: 1; white-space: nowrap; }
.tk--done .tk__stub { background: var(--ink); color: #fff; }
.tk--done .tk__perf { border-color: rgba(255, 255, 255, .35); }
.tk--cancel .tk__stub { background: #cbb39a; color: #4e3f35; }
.tk--cancel .tk__total { text-decoration: line-through; text-decoration-thickness: 2px; }
.tk--cancel .tk__main { color: var(--soft); }
.tk--cancel .tk__head h3 { color: var(--soft); }
.tk__main { display: flex; flex-direction: column; min-width: 0; }
.tk__head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 18px 22px 16px 30px; border-bottom: 1px solid var(--line-2); }
.tk__head h3 { font-weight: 700; font-size: 1.2rem; }
.tk__head .icon-btn { margin-left: auto; }
.wa { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; background: rgba(29, 122, 62, .14); color: #17703a; font-weight: 700; font-size: .9rem; text-decoration: none; white-space: nowrap; }
.wa svg { width: 15px; height: 15px; }
@media (hover: hover) and (pointer: fine) { .wa:hover { background: rgba(29, 122, 62, .24); } }
.tk__grid { display: grid; grid-template-columns: minmax(200px, .8fr) minmax(0, 1.4fr); gap: 20px 26px; padding: 20px 22px 20px 30px; }
.meta { display: flex; gap: 10px; margin-bottom: 14px; line-height: 1.35; }
.meta > svg { width: 18px; height: 18px; margin-top: 1px; color: var(--ink-2); }
.meta b { font-weight: 700; }
.meta small { display: block; color: var(--soft); font-size: .93rem; }
.meta .tag { margin-left: 4px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 0 13px; border: 1px solid var(--line); border-radius: 999px; background: var(--field); font-weight: 700; font-size: .92rem; text-decoration: none; white-space: nowrap; transition: border-color .15s, background-color .15s; }
.chip svg { width: 16px; height: 16px; }
.chip--dash { border-style: dashed; border-color: rgba(29, 23, 19, .25); }
@media (hover: hover) and (pointer: fine) { .chip:hover { border-color: var(--ink); } }
.items { padding: 12px 16px; border-radius: 14px; background: var(--card-2); }
.it { display: flex; align-items: center; gap: 10px; padding: 5px 0; font-size: 1rem; }
.it__q { display: flex; align-items: center; justify-content: center; flex-shrink: 0; min-width: 24px; height: 24px; padding: 0 5px; border-radius: 6px; background: var(--ink); color: #fff; font-weight: 700; font-size: .8rem; }
.it__n { min-width: 0; overflow-wrap: anywhere; }
.it__dots { flex: 1; min-width: 16px; height: 1px; border-bottom: 2px dotted rgba(29, 23, 19, .25); transform: translateY(4px); }
.it__p { font-weight: 700; white-space: nowrap; }
.it--ship { color: var(--soft); font-size: .95rem; }
.it--ship .it__q { visibility: hidden; }
.it--ship .it__p { font-weight: 500; }
.tk--cancel .it__q { background: #7d6656; }
.tk__right > * + * { margin-top: 12px; }
.note { display: flex; gap: 10px; overflow-wrap: anywhere; padding: 12px 16px; border-radius: 12px; background: var(--blue-bg); color: var(--blue-ink); font-size: .96rem; }
.note svg { width: 18px; height: 18px; margin-top: 1px; }
.note b { font-weight: 700; }
.tk__foot { display: flex; align-items: center; justify-content: flex-end; gap: 12px; flex-wrap: wrap; margin-top: auto; padding: 16px 22px 18px 30px; border-top: 1px solid var(--line-2); background: var(--tint); border-radius: 0 0 20px 0; }
.tk__by { flex: 1; color: var(--soft); font-size: .95rem; }
.tk__foot .btn--big { min-width: 200px; }
.tk__foot .btn--big svg { width: 18px; height: 18px; }
@media (max-width: 1100px) { .tk__grid { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .tk { grid-template-columns: 1fr; }
  .tk__stub { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "top top" "when total" "state total"; align-items: end; gap: 0 12px; padding: 16px 18px; border-radius: 20px 20px 0 0; }
  .tk__stub::before, .tk__stub::after { top: auto; bottom: -9px; right: auto; }
  .tk__stub::before { left: -9px; }
  .tk__stub::after { right: -9px; }
  .tk__perf { top: auto; left: 14px; right: 14px; bottom: -1px; border-right: 0; border-bottom: 2px dashed rgba(21, 17, 14, .28); }
  .tk__top { grid-area: top; }
  .tk__when { grid-area: when; margin-top: 8px; }
  .tk__ago { display: none; }
  .tk__state { grid-area: state; margin-top: 2px; }
  .tk__total { grid-area: total; padding-top: 0; font-size: 2rem; }
  .tk__code { font-size: 1.8rem; }
  .tk__head, .tk__grid, .tk__foot { padding-left: 18px; padding-right: 18px; }
  .tk__foot { border-radius: 0 0 20px 20px; }
  .tk__foot .btn--big { flex: 1; min-width: 0; padding: 0 12px; }
  .tk__by { flex-basis: 100%; }
}
.more { display: flex; justify-content: center; margin-top: 20px; }
.selbar { position: fixed; left: 50%; bottom: max(20px, env(safe-area-inset-bottom)); z-index: 50; display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 20px; border-radius: 999px; background: var(--ink); color: #fff; box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .5); transform: translateX(-50%); animation: up .25s ease; }
@media (min-width: 1024px) { .selbar { left: calc(50% + var(--side-w) / 2); } }
@keyframes up { from { opacity: 0; transform: translate(-50%, 12px); } }
.selbar__n { margin-right: 6px; white-space: nowrap; }
.selbar__x { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .1); color: #fff; }
.selbar__x svg { width: 18px; height: 18px; }
@media (max-width: 480px) { .selbar { left: 12px; right: 12px; transform: none; justify-content: space-between; padding-left: 14px; } @keyframes up { from { opacity: 0; } } .selbar .btn { padding: 0 10px; } }

/* =================== GRÁFICOS =================== */
.stackbar { display: flex; gap: 3px; height: 12px; border-radius: 999px; overflow: hidden; background: var(--tint); }
.stackbar span { height: 100%; }
.stackbar span:first-child { border-radius: 999px 0 0 999px; }
.stackbar span:last-child { border-radius: 0 999px 999px 0; }
.stackbar span:only-child { border-radius: 999px; }
.legend3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 14px; }
.legend3 b { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 1.05rem; }
.legend3 small { display: block; padding-left: 18px; color: var(--soft); font-size: .92rem; }
.legend3 a, .legend3 button { color: var(--soft); }
.ldot { display: inline-block; flex-shrink: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.lsq { display: inline-block; flex-shrink: 0; width: 11px; height: 11px; border-radius: 3px; background: var(--c); }
@media (max-width: 700px) { .legend3 { grid-template-columns: 1fr; gap: 8px; } }
.plist > li + li { margin-top: 14px; }
.pl__top { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.pl__top span:nth-child(2) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl__bar { height: 8px; margin: 6px 0 4px; border-radius: 999px; background: var(--tint); overflow: hidden; }
.pl__bar span { display: block; height: 100%; min-width: 4px; border-radius: 999px; background: var(--c); }
.pl__sub { color: var(--soft); font-size: .9rem; }
.ranks > li { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; background: var(--card-2); }
.ranks > li + li { margin-top: 8px; }
.ranks .n { color: var(--mute); font-weight: 700; }
.ranks b { font-weight: 700; }
.ranks .r { margin-left: auto; color: var(--soft); font-size: .92rem; white-space: nowrap; }
.ranks .r b { color: var(--ink); }
.ranks .wa { padding: 2px 9px; font-size: .84rem; }
@media (max-width: 520px) { .ranks > li { flex-wrap: wrap; } .ranks .r { margin-left: 22px; width: 100%; } }
.chart-note { display: flex; align-items: center; gap: 8px; margin-top: 12px; color: var(--soft); font-size: .92rem; }
.vc { position: relative; padding-left: 58px; }
.vc__plot { position: relative; height: 210px; }
.vc--sm .vc__plot { height: 170px; }
.vc__grid { position: absolute; top: 0; right: 0; bottom: 0; left: 0; }
.vc__line { position: absolute; left: 0; right: 0; border-top: 1px solid var(--line-2); }
.vc__line span { position: absolute; right: calc(100% + 10px); top: -9px; color: var(--soft); font-size: .8rem; white-space: nowrap; }
.vc__bars { position: absolute; top: 0; right: 0; bottom: 0; left: 0; display: flex; align-items: flex-end; gap: var(--gap, 6px); padding: 0 4px; }
.vc__col { position: relative; display: flex; align-items: flex-end; justify-content: center; flex: 1; height: 100%; min-width: 0; }
.vc__bar { display: block; width: 100%; max-width: 40px; min-height: 0; border-radius: 4px 4px 0 0; background: var(--c); transition: filter .15s; }
.vc__bar.is-lt { background: var(--cl); }
.vc__col:hover .vc__bar { filter: brightness(.92); }
.vc__tip { position: absolute; bottom: calc(100% + 6px); left: 50%; z-index: 3; padding: 5px 9px; border-radius: 8px; background: var(--ink); color: #fff; font-size: .8rem; white-space: nowrap; transform: translateX(-50%); opacity: 0; pointer-events: none; transition: opacity .12s; }
.vc__col:hover .vc__tip { opacity: 1; }
.vc__x { display: flex; gap: var(--gap, 6px); margin-top: 8px; padding: 0 4px; }
.vc__x span { flex: 1; min-width: 0; color: var(--soft); font-size: .8rem; text-align: center; white-space: nowrap; overflow: visible; }
.vc__x span.h { visibility: hidden; }
.hb > li { display: grid; grid-template-columns: 130px 1fr; align-items: center; gap: 12px; padding: 5px 0; }
.hb__n { overflow: hidden; color: var(--ink-2); font-weight: 600; font-size: .92rem; text-align: right; text-overflow: ellipsis; white-space: nowrap; }
.hb__t { display: flex; align-items: center; gap: 8px; }
.hb__b { height: 24px; min-width: 4px; border-radius: 4px; background: var(--c); }
.hb__b.is-lt { background: var(--cl); }
.hb__v { color: var(--soft); font-size: .86rem; white-space: nowrap; }
@media (max-width: 480px) { .hb > li { grid-template-columns: 96px 1fr; } }
.daynote { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr 2fr; gap: 12px; align-items: end; padding: 16px; border: 1px solid var(--line); border-radius: 14px; }
.daynote .btn { grid-column: 1; justify-self: start; }
@media (max-width: 900px) { .daynote { grid-template-columns: 1fr 1fr; } .daynote .f--wide { grid-column: 1 / -1; } }
.notes-list li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line-2); font-size: .94rem; }
.notes-list li:last-child { border-bottom: 0; }
.notes-list .grow { flex: 1; color: var(--soft); }
.notes-list b { color: var(--ink); }

/* =================== CLIENTES =================== */
.tbl { margin-top: 12px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); overflow: hidden; }
.tbl__h, .tbl__r { display: grid; grid-template-columns: 52px minmax(0, 2.6fr) 150px 90px 110px 100px; gap: 14px; align-items: center; padding: 0 22px; }
.tbl__h { min-height: 44px; border-bottom: 1px solid var(--line); background: var(--card-2); color: var(--soft); font-weight: 600; font-size: .86rem; }
.tbl__h span:nth-child(n+4), .tbl__r > :nth-child(n+4) { text-align: right; }
.tbl__r { min-height: 76px; padding-top: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--line-2); }
.tbl__r:last-child { border-bottom: 0; }
.av { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; background: var(--tan); color: var(--ink); font-family: var(--display); font-weight: 800; font-stretch: 72%; font-variation-settings: "wdth" 72; font-size: 1.35rem; }
.av--ink { background: var(--ink); color: var(--tan); }
.av--sm { width: 34px; height: 34px; border-radius: 50%; font-size: 1.05rem; }
.cl__n { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-weight: 700; font-size: 1.05rem; }
.cl__s { color: var(--soft); font-size: .92rem; }
.num b { display: block; font-weight: 700; font-size: 1.05rem; }
.num small { color: var(--soft); font-size: .84rem; }
.num small i { color: var(--warn); font-style: normal; font-weight: 700; }
/* Clientes en blanco y negro (sin naranja ni verde) */
[data-view="clientes"] .av { background: var(--ink); color: #fff; }
[data-view="clientes"] .tag--tan { background: var(--ink); color: #fff; }
[data-view="clientes"] .num small i { color: var(--ink); }
/* Foto: varón azul suave, mujer rosa suave (según el nombre); el nombre va en negro */
[data-view="clientes"] .av--m { background: #d6e6f8; color: #1f5591; }
[data-view="clientes"] .av--f { background: #f9d9e7; color: #ad346b; }
[data-view="clientes"] .cl__t { color: #111; }
@media (max-width: 900px) {
  .tbl__h { display: none; }
  .tbl__r { grid-template-columns: 44px repeat(3, minmax(0, 1fr)); grid-template-areas: "av n n n" "av wa wa wa" "av p g u"; gap: 4px 12px; padding: 14px 16px; }
  .tbl__r > :nth-child(1) { grid-area: av; align-self: start; }
  .tbl__r > :nth-child(2) { grid-area: n; }
  .tbl__r > :nth-child(3) { grid-area: wa; margin: 4px 0 6px; }
  .tbl__r > :nth-child(4) { grid-area: p; text-align: left; }
  .tbl__r > :nth-child(5) { grid-area: g; text-align: left; }
  .tbl__r > :nth-child(6) { grid-area: u; text-align: left; }
}
.pager { display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; margin-top: 18px; }
.pager__box { display: inline-flex; align-items: center; gap: 4px; padding: 6px; border: 1px solid var(--line); border-radius: 999px; background: var(--field); }
.pager button { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-width: 38px; height: 38px; padding: 0 10px; border: 0; border-radius: 999px; background: none; font-weight: 700; font-size: .92rem; }
.pager button svg { width: 15px; height: 15px; }
.pager button.is-on { background: var(--ink); color: #fff; }
.pager button:disabled { color: var(--mute); cursor: default; }
.pager__info { width: 100%; color: var(--soft); font-size: .86rem; text-align: center; }
.pager--top { margin: 0 0 16px; }
@media (pointer: coarse) { .pager button { min-width: 44px; height: 44px; } }
@media (max-width: 480px) { .pager__t { display: none; } .pager__box { gap: 2px; padding: 4px; } .pager button { min-width: 40px; padding: 0 8px; } }
@media (max-width: 360px) { .pager button { min-width: 36px; padding: 0 5px; } }

/* =================== PRECIOS =================== */
.bulk { padding: 18px 20px; border-radius: 18px; background: var(--ink); color: #fff; }
/* Precios en blanco y negro (sin naranja) */
.bulk .btn--tan { border-color: #fff; background: #fff; color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .bulk .btn--tan:not(:disabled):hover { border-color: #e6e1dc; background: #e6e1dc; } }
.bulk .h2 { font-size: 1.45rem; }
.bulk__f { display: grid; grid-template-columns: 140px 1fr 160px auto; gap: 12px; align-items: end; margin-top: 12px; }
.bulk .f__l { color: #fff; }
.bulk .inp, .bulk select { border-color: transparent; color: var(--ink); }select option { color: var(--ink); background: var(--hi); }
.bulk p { margin-top: 10px; color: rgba(255, 255, 255, .78); font-size: .9rem; }
@media (max-width: 760px) { .bulk__f { grid-template-columns: 1fr 1fr; } .bulk__f .f--wide { grid-column: 1 / -1; order: -1; } .bulk__f .btn { grid-column: 1 / -1; } }
.ptable { border: 1px solid var(--line); border-radius: 18px; background: var(--card); overflow: hidden; }
.prow { display: grid; grid-template-columns: 26px 1fr auto 150px; gap: 12px; align-items: center; min-height: 62px; padding: 8px 18px 8px 10px; border-bottom: 1px solid var(--line-2); }
.prow:last-child { border-bottom: 0; }
.prow__n { font-weight: 600; font-size: 1rem; }
.prow__old { color: var(--mute); font-size: .92rem; white-space: nowrap; }
.money-in { position: relative; display: flex; align-items: center; }
.money-in span { position: absolute; left: 13px; color: var(--soft); font-weight: 600; pointer-events: none; }
.money-in input { width: 100%; height: 44px; padding: 0 14px 0 30px; border: 1px solid var(--line); border-radius: 12px; background: var(--field); font-weight: 700; font-size: 16px; text-align: right; }
.money-in input:focus { border-color: var(--ink); outline: none; }
.money-in input.is-ch { border-color: var(--ink); border-width: 2px; background: #fff; color: var(--ink); }
@media (max-width: 520px) { .prow { grid-template-columns: 1fr 120px; padding-left: 16px; } .prow > :first-child { display: none; } .prow__old { grid-column: 1; grid-row: 2; margin-top: -8px; } .prow .money-in { grid-row: 1 / 3; grid-column: 2; } }
.savebar { position: sticky; bottom: 0; z-index: 20; display: flex; align-items: center; justify-content: flex-end; gap: 14px; flex-wrap: wrap; margin-top: 22px; padding: 14px 0 max(14px, env(safe-area-inset-bottom)); background: linear-gradient(180deg, rgba(255, 255, 255, 0), var(--bg) 30%); }
.savebar span { color: var(--soft); font-size: .95rem; }
.savebar span.is-ch { color: var(--ink); font-weight: 700; }
.prsuc { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 120px), 1fr)); gap: 10px; margin: 18px 0 4px; }
.prsuc__b { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 8px 16px; border: 2px solid var(--line); border-radius: 16px; background: var(--card); color: var(--soft); font: inherit; font-weight: 800; font-size: 1.05rem; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s; }
@media (max-width: 420px) { .prsuc__b { min-height: 50px; padding: 8px 10px; font-size: .95rem; gap: 6px; } }
.prsuc__b span { min-width: 0; overflow-wrap: anywhere; }
.prsuc__b.is-on { border-color: var(--ink); background: var(--ink); color: #fff; }
.prsuc__b.is-on .cnt { background: #fff; color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .prsuc__b:not(.is-on):hover { border-color: var(--ink); color: var(--ink); } }
/* Portadas › Ubicación: datos del local elegido (dirección y horario que se ven con sus fotos) */
.ubic { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin: 12px 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.ubic__d { display: flex; flex-direction: column; gap: 2px; min-width: 0; margin: 0; }
.ubic__d span { color: var(--soft); overflow-wrap: anywhere; }
.ubic .btn { flex: none; }
@media (max-width: 480px) { .ubic .btn { width: 100%; } }
.bulk summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; list-style: none; cursor: pointer; }
.bulk summary::-webkit-details-marker { display: none; }
.bulk__hd .h2 { font-size: 1.15rem; }
.bulk__tg { flex: none; width: 30px; height: 30px; border-radius: 50%; background: rgba(255, 255, 255, .14); position: relative; }
.bulk__tg::before, .bulk__tg::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; background: #fff; border-radius: 2px; transition: transform .2s; }
.bulk__tg::after { transform: rotate(90deg); }
.bulk[open] .bulk__tg::after { transform: rotate(0); }
div.bulk { margin: 14px 0 6px; padding: 14px 18px; }
.prfind { display: flex; flex-direction: column; gap: 12px; margin: 22px 0 6px; }
.prfind .search { width: min(100%, 420px); }
.prcat { display: flex; gap: 8px; flex-wrap: wrap; }
.prcat .chip { color: var(--ink); font-family: inherit; cursor: pointer; }
.prcat .chip.is-on { border-color: var(--ink); background: var(--ink); color: #fff; }
.prcat .chip.is-on .cnt { background: rgba(255, 255, 255, .22); color: #fff; }
/* Carta: filtros rápidos (categoría + Disponibles/Agotados) */
.kfil { display: flex; flex-direction: column; gap: 10px; margin: -4px 0 8px; }
.kfil .prcat + .prcat { padding-top: 10px; border-top: 1px dashed var(--line, rgba(0, 0, 0, .12)); }
.prow__n { min-width: 0; overflow-wrap: anywhere; }
.prow__cmp { display: block; margin-top: 2px; color: var(--mute); font-weight: 500; font-size: .82rem; }

/* =================== FORMULARIOS =================== */
.f { display: block; min-width: 0; }
.f__l { display: block; margin-bottom: 6px; font-weight: 700; font-size: .92rem; }
/* campo obligatorio vacío al guardar (Nombre y apellido del pedido): borde y fondo en rojo clarito */
.f.is-err .f__l { color: var(--red); }
.f.is-err input { border-color: var(--red) !important; background: #fdecec !important; box-shadow: 0 0 0 3px rgba(220, 38, 38, .12); }
.f.is-err input::placeholder { color: #c0504d; }
.f__l small { color: var(--soft); font-weight: 500; }
.f__h { margin-top: 6px; color: var(--soft); font-size: .86rem; }
.inp, .f select, .f textarea { width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--field); font-weight: 600; font-size: 16px; line-height: 1.3; }
.f textarea { min-height: 84px; resize: vertical; font-weight: 500; }
.f select { padding-right: 36px; -webkit-appearance: none; appearance: none; background: var(--field) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2315110e' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 12px center / 15px no-repeat; }
.inp:focus, .f select:focus, .f textarea:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px rgba(21, 17, 14, .07); }
.inp::placeholder, .f textarea::placeholder { color: var(--mute); font-weight: 500; }
.inp.is-bad { border-color: var(--red); }
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fgrid--3 { grid-template-columns: 1fr 1fr 1fr; }
.fgrid .f--wide { grid-column: 1 / -1; }
@media (max-width: 560px) { .fgrid, .fgrid--3 { grid-template-columns: 1fr; } }
.form > * + * { margin-top: 14px; }
.pills { display: flex; gap: 8px; flex-wrap: wrap; }
.pill { position: relative; display: inline-flex; align-items: center; gap: 9px; min-height: 42px; padding: 0 16px 0 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--field); color: var(--soft); font-weight: 600; cursor: pointer; transition: border-color .15s, color .15s; }
.pill input { position: absolute; opacity: 0; pointer-events: none; }
.pill i { display: flex; align-items: center; justify-content: center; width: 18px; height: 18px; border: 1.5px solid rgba(29, 23, 19, .35); border-radius: 5px; }
.pill i svg { width: 13px; height: 13px; opacity: 0; color: #fff; }
.pill:has(input:checked) { border-color: var(--ink); color: var(--ink); }
.pill.is-on { border-color: var(--ink); color: var(--ink); }
.pill input:checked + i { border-color: var(--ink); background: var(--ink); }
.pill input:checked + i svg { opacity: 1; }
.pill input[type="radio"] + i { border-radius: 50%; }
.pill input:focus-visible + i { outline: 2px solid var(--tan-d); outline-offset: 2px; }
.addrow { display: flex; gap: 10px; margin-top: 10px; max-width: 460px; }
.addrow .inp { flex: 1; }
.set { display: grid; grid-template-columns: 220px 1fr; gap: 20px 32px; padding: 22px 24px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); }
.set + .set { margin-top: 14px; }
.set__l b { display: block; font-size: 1.12rem; font-weight: 700; }
.set__l small { display: block; margin-top: 4px; color: var(--soft); font-size: .92rem; }
@media (max-width: 860px) { .set { grid-template-columns: 1fr; gap: 14px; padding: 18px; } }
.pic { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pic__img { display: flex; align-items: center; justify-content: center; width: 86px; height: 86px; border-radius: 14px; background: var(--card-2); border: 1px solid var(--line); color: var(--mute); overflow: hidden; }
.pic__img img { width: 100%; height: 100%; object-fit: cover; }
.pic__img svg { width: 28px; height: 28px; }
.pic__btns { display: flex; flex-direction: column; gap: 8px; }
.gal { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.gal button { flex-shrink: 0; width: 56px; height: 56px; padding: 0; border: 2px solid transparent; border-radius: 10px; background: var(--card-2) center / cover no-repeat; }
.gal button.is-on { border-color: var(--ink); }
.gal__l { margin-top: 10px; color: var(--soft); font-size: .84rem; }
.danger { padding: 22px 24px; border: 1.5px dashed rgba(157, 57, 51, .45); border-radius: 18px; background: var(--red-bg); }
.danger h3 { color: var(--red); font-weight: 700; font-size: 1.15rem; }
.dev { padding: 22px 24px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); }
.dev h3, .danger h3 { margin-bottom: 6px; }
.dev p, .danger p { max-width: 640px; color: var(--ink-2); }
.split { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.foot-credit { margin-top: 26px; color: var(--soft); font-size: .86rem; text-align: center; }
.foot-credit a { color: var(--soft); font-weight: 600; }
.foot-credit b { color: var(--ink-2); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: var(--field); }
.qty button { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border: 0; border-radius: 50%; background: none; font-weight: 700; font-size: 1.1rem; }
.qty button:disabled { color: rgba(29, 23, 19, .22); }
.qty b { min-width: 22px; text-align: center; }
.pick > li { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line-2); }
.pick > li:last-child { border-bottom: 0; }
.pick .grow { flex: 1; min-width: 0; }
.pick b { display: block; font-weight: 600; }
.pick small { color: var(--soft); }
/* categorías del nuevo pedido: más grandes, en una franja marrón clarito para separarlas */
.pick__sec { margin: 18px 0 4px; padding: 8px 12px; border-radius: 10px; background: #efe2d1; color: #7a5534; font-weight: 800; font-size: .95rem; letter-spacing: .08em; text-transform: uppercase; }
/* Combinada en el nuevo pedido: se toca una pizza y después la otra (cada botón muestra el precio de su mitad) */
.pick__sec small { margin-left: 6px; font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: none; opacity: .8; }
.cmb__hint { margin: 8px 2px 10px; font-size: .9rem; color: var(--soft); }
.cmb__hint b { color: #7a5534; }
.cmb__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.cmb__p { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; min-height: 52px; padding: 8px 12px; border: 1.5px solid #e6d6c1; border-radius: 12px; background: #fff; color: inherit; font: inherit; text-align: left; cursor: pointer; transition: border-color .15s, background .15s; }
.cmb__p b { max-width: 100%; font-size: .92rem; line-height: 1.2; overflow-wrap: anywhere; }
.cmb__p small { font-size: .8rem; color: #7a5534; font-weight: 700; }
.cmb__p.is-on { border-color: #7a5534; background: #7a5534; color: #fff; }
.cmb__p.is-on small { color: #f3e6d6; }
.cmb__p:focus-visible { outline: 2px solid #7a5534; outline-offset: 2px; }
@media (hover: hover) { .cmb__p:not(.is-on):hover { border-color: #b8916b; background: #faf4ec; } }
.cmb__list:empty { display: none; }
.cmb__list { margin-top: 10px; }
@media (max-width: 380px) { .cmb__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cmb__p { padding: 8px 9px; } }
.pick-total { display: flex; justify-content: space-between; margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: var(--card-2); font-weight: 700; }
.codebox { padding: 20px; border-radius: 16px; background: var(--ink); color: #fff; text-align: center; }
.codebox strong { display: block; font-family: var(--display); font-weight: 800; font-stretch: 80%; font-variation-settings: "wdth" 80; font-size: 3rem; letter-spacing: .18em; line-height: 1.1; }
.codebox small { color: rgba(255, 255, 255, .7); }
.copyrow { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; }
.copyrow + .copyrow { margin-top: 8px; }
.copyrow div { flex: 1; min-width: 0; }
.copyrow small { display: block; color: var(--soft); font-size: .82rem; }
.copyrow code { display: block; overflow: hidden; font-family: var(--sans); font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }

/* =================== MODAL Y TOAST =================== */
.modal { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(21, 17, 14, .5); animation: fade .2s; }
.modal__box { display: flex; flex-direction: column; width: min(100%, 560px); max-height: min(90vh, 900px); border-radius: 22px; background: var(--card); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .5); animation: pop .25s cubic-bezier(.2, .8, .2, 1); }
.modal__box.is-wide { width: min(100%, 720px); }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.modal__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 18px 18px 12px 24px; }
.modal__title { font-family: var(--display); font-weight: 800; font-stretch: 68%; font-variation-settings: "wdth" 68; font-size: 1.8rem; line-height: 1; text-transform: uppercase; }
.modal__head .icon-btn:hover { background: var(--card-2); color: var(--ink); }
.modal__body { padding: 6px 24px 20px; overflow-y: auto; overscroll-behavior: contain; }
.modal__body > p { color: var(--ink-2); }
.modal__body > p + p { margin-top: 10px; }
.modal__foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 14px 24px 20px; border-top: 1px solid var(--line-2); }
.modal__foot .sp { flex: 1; }
.modal__err { margin-top: 12px; color: var(--red); font-weight: 600; font-size: .92rem; }
@media (max-width: 600px) {
  .modal { align-items: flex-end; padding: 0; }
  .modal__box, .modal__box.is-wide { width: 100%; max-height: 92vh; max-height: 92dvh; border-radius: 22px 22px 0 0; animation: sheet .3s cubic-bezier(.2, .8, .2, 1); }
  @keyframes sheet { from { transform: translateY(40px); opacity: 0; } }
  .modal__body { padding-left: 18px; padding-right: 18px; }
  .modal__head { padding-left: 18px; }
  .modal__foot { padding: 12px 18px max(16px, env(safe-area-inset-bottom)); }
  .modal__foot .btn { flex: 1; }
  .modal__foot .sp { display: none; }
  .modal__foot .btn--redline { flex-basis: 100%; order: 3; }
}
.toast { position: fixed; left: 50%; bottom: max(24px, env(safe-area-inset-bottom)); z-index: 200; max-width: calc(100% - 32px); padding: 12px 20px; border-radius: 14px; background: var(--ink); color: #fff; font-weight: 600; font-size: .95rem; box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .5); transform: translateX(-50%); animation: toast .25s ease; }
@keyframes toast { from { opacity: 0; transform: translate(-50%, 10px); } }
@media (min-width: 1024px) { .toast { left: calc(50% + var(--side-w) / 2); } }

/* =================== POP-UP =================== */
.pu { padding: 22px; border: 1px solid var(--line); border-radius: 20px; background: var(--card); }
.pu + .pu { margin-top: 18px; }
.pu__h { display: flex; gap: 14px; }
.pu__h b { display: block; font-weight: 700; font-size: 1.15rem; }
.pu__h .tags { display: flex; gap: 6px; flex-wrap: wrap; margin: 4px 0; }
.pu__h small { color: var(--ink-2); font-size: .95rem; }
.soft-box { margin-top: 14px; padding: 12px 16px; border-radius: 12px; background: var(--tint); color: var(--ink-2); font-size: .96rem; }
.blue-box { margin-top: 14px; padding: 12px 16px; border-radius: 12px; background: var(--blue-bg); color: var(--blue-ink); font-size: .96rem; }
.blue-box b { font-weight: 700; }
.pu .kpis { margin-top: 14px; }
.pu .kpi { border-radius: 14px; }
.kv > li { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line-2); font-size: .98rem; }
.kv > li:last-child { border-bottom: 0; }
.kv > li > :nth-child(2) { font-weight: 700; text-align: center; }
.kv > li > :nth-child(3) { color: var(--soft); font-size: .85rem; text-align: right; }
.kv > li > :nth-child(3) b { color: var(--ink); }
.pu__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
@media (max-width: 860px) { .pu__cols { grid-template-columns: 1fr; gap: 0; } .pu { padding: 16px; } }
.leg > li { display: flex; align-items: center; gap: 8px; padding: 3px 0; font-size: .94rem; color: var(--ink-2); }
.leg > li b { color: var(--ink); }
.week { position: relative; display: flex; align-items: flex-end; gap: 4px; height: 96px; padding: 6px; border-radius: 12px; background: var(--card-2); }
.week span { flex: 1; min-height: 2px; border-radius: 3px 3px 0 0; background: rgba(29, 23, 19, .22); }
.week span.is-after { background: var(--blue); }
.week i { position: absolute; top: 0; bottom: 0; border-left: 2px dashed var(--red); }
.week-x { display: flex; justify-content: space-between; margin-top: 6px; color: var(--soft); font-size: .8rem; }

/* =================== COMPUTADORAS =================== */
.pcs { padding: 20px 22px; border: 1px solid var(--line); border-left: 5px solid rgba(29, 23, 19, .22); border-radius: 18px; background: var(--card); }
.pcs.is-prot { border-left-color: var(--ok); }
.pcs + .pcs { margin-top: 16px; }
.pcs__h { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.pcs__h h2 { font-weight: 700; font-size: 1.3rem; }
.pcs__h p { margin-top: 4px; color: var(--ink-2); }
.pc { display: flex; align-items: center; gap: 14px; margin-top: 10px; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--card-2); }
.pc svg { width: 22px; height: 22px; color: var(--ink-2); }
.pc div { flex: 1; min-width: 0; }
.pc b { display: block; font-weight: 700; }
.pc small { color: var(--soft); font-size: .9rem; }
.total-pcs { display: flex; align-items: center; gap: 10px; margin: 18px 0 14px; font-size: 1.05rem; }
.total-pcs svg { width: 22px; height: 22px; }

/* =================== DELIVERY =================== */
.tcard { padding: 18px 20px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); }
.tcard p { margin-top: 8px; color: var(--ink-2); font-size: .95rem; }
.tcard + .tcard, .tcard + .filters { margin-top: 14px; }
.map { position: relative; height: 440px; border: 1px solid var(--line); border-radius: 14px; background: var(--tint); overflow: hidden; z-index: 0; }
/* el mapa maneja él mismo los gestos (arrastrar y pellizcar con dos dedos): sin esto el "manipulation" general le gana y el navegador hace zoom a la página */
.map.leaflet-container, .map.leaflet-container * { touch-action: none; }
.map.leaflet-container { overscroll-behavior: contain; }
@media (max-width: 760px) { .map { height: 340px; } }
.map__msg { display: flex; align-items: center; justify-content: center; height: 100%; color: var(--soft); }
.map-help { margin-top: 10px; color: var(--ink-2); font-size: .95rem; }
/* Editor de la forma de una zona: barra arriba del mapa (abajo en celular) y el mapa más alto mientras se edita */
.map.is-drawing { height: 600px; height: min(600px, 78vh); cursor: crosshair; }
.map.is-drawing .leaflet-grab { cursor: crosshair; }
.map.is-drawing .leaflet-dragging .leaflet-grab { cursor: move; }
.draw { position: absolute; top: 12px; left: 56px; right: 12px; z-index: 1000; display: flex; align-items: center; gap: 8px 12px; flex-wrap: wrap; padding: 10px 12px 10px 16px; border-radius: 14px; background: var(--ink); color: #fff; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .5); cursor: default; transition: opacity .15s; }
.map.is-moving .draw { opacity: .35; pointer-events: none; }
.draw__info { flex: 1 1 240px; min-width: 0; }
.draw__info p:first-child { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; font-size: .92rem; }
.draw p b { color: var(--tan); }
.draw__stat { color: rgba(255, 255, 255, .6); font-size: .8rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.draw__tip { margin-top: 3px; color: rgba(255, 255, 255, .75); font-size: .82rem; line-height: 1.35; }
.draw__tip.is-warn { color: #ffb4a8; font-weight: 700; }
.draw__tools, .draw__end { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.draw .btn:disabled { opacity: .38; cursor: default; }
.draw__ico { width: 36px; padding: 0; }
.draw__redo svg { transform: scaleX(-1); }
.draw__mag.is-on { border-color: var(--tan); color: var(--tan); }
@media (max-width: 760px) { .map.is-drawing { height: 74vh; height: 74svh; min-height: 420px; } }
@media (max-width: 600px) {
  .draw { left: 8px; right: 8px; top: auto; bottom: 24px; padding: 10px; gap: 8px; }
  .draw__info { flex-basis: 100%; }
  .draw__tools { flex: 1 1 100%; }
  .draw__end { flex: 1 1 100%; }
  .draw__end .btn { flex: 1; }
  .draw .btn--sm { min-height: 40px; }
  .draw__ico { width: 40px; }
}
/* Editor de la forma a pantalla completa: el mapa tapa todo (debajo quedan solo los avisos y las ventanas de confirmar) */
html.zfull, html.zfull body { overflow: hidden; overscroll-behavior: none; }
.map.is-drawing { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 90; width: auto; height: auto; min-height: 0; border: 0; border-radius: 0; }
.map.is-drawing .leaflet-top { top: env(safe-area-inset-top); }
.map.is-drawing .leaflet-left { left: env(safe-area-inset-left); }
.map.is-drawing .leaflet-bottom { bottom: env(safe-area-inset-bottom); }
.map.is-drawing .leaflet-right { right: env(safe-area-inset-right); }
.map.is-drawing .draw { top: calc(12px + env(safe-area-inset-top)); left: calc(56px + env(safe-area-inset-left)); right: calc(12px + env(safe-area-inset-right)); max-width: 1180px; margin: 0 auto; }
/* PC: la barra centrada arriba, con más aire */
@media (min-width: 1100px) { .map.is-drawing .draw { left: 72px; right: 72px; padding: 12px 14px 12px 20px; } }
/* celular parado: la barra abajo, a mano del pulgar (sobre la barra de inicio del iPhone) */
@media (max-width: 600px) {
  .map.is-drawing .draw { top: auto; left: calc(8px + env(safe-area-inset-left)); right: calc(8px + env(safe-area-inset-right)); bottom: calc(12px + env(safe-area-inset-bottom)); }
  .map.is-drawing .leaflet-bottom.leaflet-right { display: none; }
}
/* celular acostado (poco alto): barra compacta arriba, sin la ayuda larga, para que se vea el mapa */
@media (orientation: landscape) and (max-height: 500px) {
  .map.is-drawing .draw { top: calc(6px + env(safe-area-inset-top)); bottom: auto; left: calc(56px + env(safe-area-inset-left)); right: calc(8px + env(safe-area-inset-right)); padding: 6px 8px 6px 12px; gap: 6px 8px; }
  .map.is-drawing .draw__info { flex: 1 1 auto; }
  .map.is-drawing .draw__tip { display: none; }
  .map.is-drawing .draw__tools, .map.is-drawing .draw__end { flex: 0 0 auto; }
  .map.is-drawing .draw__end .btn { flex: 0 0 auto; }
  .map.is-drawing .draw .btn--sm { min-height: 36px; }
  .map.is-drawing .draw__ico { width: 36px; }
}

/* cartelito al tocar una zona del mapa */
.zpop-w .leaflet-popup-content-wrapper { border-radius: 14px; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .45); }
.zpop-w .leaflet-popup-content { margin: 12px 14px; }
.zpop { display: grid; gap: 2px; font-family: var(--sans); color: var(--ink); }
.zpop b { font-size: .98rem; }
.zpop span { color: var(--ink-2); font-size: .88rem; }
.zpop__b { display: flex; gap: 6px; margin-top: 8px; }
.zn { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 58px; height: 58px; border-radius: 12px; background: var(--c); color: #fff; font-family: var(--display); font-weight: 800; font-stretch: 72%; font-variation-settings: "wdth" 72; font-size: 1.6rem; }
.zprice { width: 120px; }
.zprice input { text-align: left; padding-left: 28px; }
.zlabel { padding: 2px 8px; border: 0; border-radius: 6px; background: rgba(255, 255, 255, .92); color: var(--ink); font: 700 12px/1.4 var(--sans); box-shadow: 0 1px 4px rgba(0, 0, 0, .2); white-space: nowrap; }
.zlabel::before { display: none; }
.local-pin { display: flex; align-items: center; justify-content: center; width: 34px !important; height: 34px !important; margin: -17px 0 0 -17px !important; border: 3px solid #fff; border-radius: 50%; background: var(--red); box-shadow: 0 4px 12px rgba(0, 0, 0, .35); }
.local-pin img { width: 100%; height: auto; }
/* puntos del editor: el área para agarrarlos es más grande que el punto (más todavía con el dedo) */
/* (con .map adelante: la hoja de Leaflet se carga después y les pone display: block, y el punto se veía como una rayita) */
.map .vtx { display: flex; align-items: center; justify-content: center; background: none; border: 0; cursor: grab; }
.vtx::before { flex: 0 0 auto; }
.vtx::before { content: ""; box-sizing: border-box; width: 14px; height: 14px; border: 3px solid var(--ink); border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .35); transition: transform .12s; }
.vtx.is-sel::before { width: 18px; height: 18px; border-color: #fff; background: var(--red); box-shadow: 0 0 0 3px rgba(217, 56, 41, .35), 0 1px 4px rgba(0, 0, 0, .35); }
.vtx--mid::before { width: 10px; height: 10px; border-width: 2px; background: rgba(255, 255, 255, .8); box-shadow: none; }
.vtx.leaflet-drag-target { cursor: grabbing; }
.map.is-moving .vtx--mid { opacity: 0; }
@media (hover: hover) and (pointer: fine) { .vtx:hover::before { transform: scale(1.25); } }
@media (pointer: coarse) { .vtx::before { width: 18px; height: 18px; } .vtx.is-sel::before { width: 22px; height: 22px; } .vtx--mid::before { width: 14px; height: 14px; } }
.leaflet-container { font-family: var(--sans); }

/* =================== HISTORIAL =================== */
.hist { margin-top: 18px; padding: 6px 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); }
.hist > li { display: flex; align-items: flex-start; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line-2); }
.hist > li:last-child { border-bottom: 0; }
.hist .grow { flex: 1; min-width: 0; }
.hist p { line-height: 1.4; }
.hist p b { font-weight: 700; }
.hist time { display: block; color: var(--mute); font-size: .9rem; }
.hist ul { margin-top: 8px; }
.hist ul li { position: relative; padding-left: 13px; color: var(--ink-2); font-size: .93rem; }
.hist ul li::before { content: ""; position: absolute; left: 0; top: .58em; width: 5px; height: 5px; border-radius: 50%; background: var(--ink); }
/* Historial en blanco y negro (sin naranja): la inicial de quién lo cambió va en blanco */
.hist .av--ink { background: var(--ink); color: #fff; }
.hist .tag { margin-left: 4px; }
@media (max-width: 600px) { .hist { padding: 2px 14px; } .hist > li { flex-wrap: wrap; } .hist .btn { margin-left: 46px; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* =================== AJUSTES FINOS =================== */
.set > * { min-width: 0; }
.filters .search { width: min(100%, 330px); }
/* Pedidos: buscador al lado del período (nombre, código o mesa) */
.filters .search--pq { flex: 1 1 300px; width: auto; min-width: 0; max-width: 520px; }
.search--pq input { background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .05); transition: border-color .15s, box-shadow .15s; }
.search--pq input:focus { box-shadow: 0 0 0 3px rgba(0, 0, 0, .08); }
@media (max-width: 600px) { .filters .search--pq { flex-basis: 100%; max-width: none; } }
@media (max-width: 374px) { .search--pq input { padding-right: 10px; } .search--pq input::placeholder { font-size: 14px; } }
.leaflet-container .local-pin img { width: 100% !important; height: auto !important; }
.row__act [data-act="zDraw"] { min-width: 118px; }
@media (min-width: 901px) { .daynote .f--wide { grid-column: span 2; } }
.nav__item { min-height: 48px; }
.nav__group { margin-top: 14px; }
.vc__tip { display: none; }
.vc__col:hover .vc__tip { display: block; opacity: 1; }
.vc__col:last-child .vc__tip, .vc__col:nth-last-child(2) .vc__tip { left: auto; right: 0; transform: none; }
@media (max-width: 760px) {
  .tk__head { position: relative; padding-right: 56px; }
  .tk__head .icon-btn { position: absolute; top: 14px; right: 12px; }
}

/* Panel conectado: una sucursal con acceso propio no ve lo de la carta ni los atajos del dueño */
.is-suc [data-owner] { display: none !important; }
.nav__group[hidden], .nav__item[hidden] { display: none !important; }

/* ===== Pedidos en preparación y de mesa ===== */
.tk__mesa { display: inline-flex; align-items: baseline; gap: 6px; align-self: flex-start; margin-bottom: 12px; padding: 4px 12px; border-radius: 10px; background: var(--ink); color: #fff; font-weight: 700; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; }
.tk__mesa b { font-family: var(--display); font-weight: 800; font-stretch: 70%; font-variation-settings: "wdth" 70; font-size: 1.7rem; line-height: 1; letter-spacing: 0; }
.meta--mesa b { color: var(--ink); }
@media (max-width: 760px) {
  .tk--mesa .tk__stub { grid-template-areas: "mesa mesa" "top top" "when total" "state total"; }
  .tk__mesa { grid-area: mesa; margin-bottom: 10px; }
}

/* ===== Mesas ===== */
.mesas { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; align-items: start; }
.mesa { padding: 14px 16px 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.mesa__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mesa__n { display: flex; align-items: baseline; gap: 6px; font-family: var(--display); font-weight: 800; font-stretch: 68%; font-variation-settings: "wdth" 68; font-size: 2.1rem; line-height: 1; }
.mesa__n small { font-family: var(--sans); font-weight: 700; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--soft); }
.mesa__st { padding: 3px 10px; border-radius: 999px; background: var(--ok-bg); color: var(--ok); font-weight: 700; font-size: .78rem; white-space: nowrap; }
.mesa__free { margin-top: 8px; color: var(--mute); font-size: .9rem; }
.mesa__btns { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
@media (max-width: 480px) { .mesas { grid-template-columns: 1fr; } }

.mesa__head { justify-content: flex-start; gap: 8px; }
.mesa__st { margin-left: auto; }
.mesa__head .icon-btn { width: 32px; height: 32px; margin-right: -6px; }
.mesa__name { margin-top: 4px; color: var(--soft); font-weight: 600; font-size: .9rem; overflow-wrap: anywhere; }
.mesa--off { background: var(--tint); }
.mesa--off .mesa__n { color: var(--mute); }
.mesa--off .mesa__st { background: var(--tint-2); color: var(--soft); }

/* =================== CAJA → COCINA =================== */
/* Estados nuevos del ticket: en la cocina (kitchen), preparando (prep) y listo (ready) */
/* Cada estado con su color: Nuevo azul marino · En la cocina ámbar claro · Preparando ámbar · Listo verde · Entregado negro */
.tk--pending .tk__stub { background: #1f3b5c; color: #fff; }
.tk--pending .tk__perf { border-color: rgba(255, 255, 255, .35); }
.tk--pending .tk__state { color: #a9cbef; }
.tk--pending .tk__sel input:checked + span { background: #fff; border-color: #fff; color: #1f3b5c; }
.tk--pending .tk__sel input:focus-visible + span { outline-color: #fff; }
.tk--pending .tk__mesa { background: #fff; color: #1f3b5c; }
.tk--pending .tk__foot .btn--tan { border-color: #1f3b5c; background: #1f3b5c; color: #fff; }
@media (hover: hover) and (pointer: fine) { .tk--pending .tk__foot .btn--tan:not(:disabled):hover { border-color: #2b5281; background: #2b5281; } }
.tk--kitchen .tk__stub { background: #fbe7b0; }
.tk--kitchen .tk__state { color: #7a5200; }
.tk--prep .tk__stub { background: #f4c552; }
.tk--prep .tk__state { color: #5e3d00; }
.tk--ready .tk__stub { background: #bfe5cb; }
.tk--ready .tk__state { color: #145c2e; }
.tk--ready { box-shadow: 0 0 0 2px var(--ok), 0 10px 30px -18px rgba(29, 122, 62, .6); }
.tk__by--k { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; color: var(--ink-2); }
/* Cartel del estado en la cocina (para la caja): mismos colores que el panel de la cocina */
.kst { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; font-weight: 800; font-size: 1rem; letter-spacing: .01em; line-height: 1.2; }
.kst i { flex-shrink: 0; width: 10px; height: 10px; border-radius: 50%; background: currentColor; }
.kst--kitchen { background: #fbe7b0; color: #6b4800; box-shadow: inset 0 0 0 1.5px #f4c552; }
.kst--prep { background: #e8772e; color: #fff; }
.kst--prep i { animation: kstPulse 1.4s ease-in-out infinite; }
.kst--ready { background: #1d7a3e; color: #fff; }
.kst__d { color: var(--soft); font-weight: 600; font-size: .88rem; }
@keyframes kstPulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .kst--prep i { animation: none; } }
.note--k { background: var(--warn-bg); color: #6b4108; }
@media (max-width: 760px) { .tk--pending .tk__foot .btn { flex-basis: 100%; } }
.alert--ok { border-color: rgba(29, 122, 62, .35); background: var(--ok-bg); }
.alert--ok b, .alert--ok .alert__go { color: #145c2e; }
.alert--ok small { color: #2c6b41; }
.alert + .alert { margin-top: 10px; }
.btn--ok { border-color: var(--ok); background: var(--ok); color: #fff; }
/* En curso separado en partes */
.psec { margin-top: 18px; }
.psec__h { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; margin-bottom: 10px; padding: 10px 14px; border-radius: 14px; background: var(--tint); }
.psec__h svg { width: 20px; height: 20px; flex-shrink: 0; }
.psec__h h2 { font-family: var(--display); font-weight: 800; font-stretch: 80%; font-variation-settings: "wdth" 80; font-size: 1.25rem; letter-spacing: .02em; text-transform: uppercase; }
.psec__h small { flex-basis: 100%; color: var(--soft); font-size: .88rem; }
.psec--ready .psec__h { background: var(--ok); color: #fff; }
.psec--ready .psec__h small { color: rgba(255, 255, 255, .88); }
.psec--new .psec__h { background: var(--red); color: #fff; }
.psec--new .psec__h small { color: rgba(255, 255, 255, .88); }
.psec--ready .psec__h .cnt, .psec--new .psec__h .cnt { background: var(--hi); color: var(--ink); }
.psec__empty { padding: 14px; border: 2px dashed var(--line); border-radius: 14px; color: var(--soft); font-size: .92rem; text-align: center; }

/* Acceso de la caja y de la cocina */
.accs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.acc { min-width: 0; margin: 0; padding: 14px 16px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--card-2); }
.acc > * + * { margin-top: 10px; }
.acc__t { display: flex; align-items: center; gap: 8px; padding: 0 6px; font-weight: 800; font-size: 1.05rem; }
.acc__t svg { width: 20px; height: 20px; color: var(--red); }
.acc .muted { font-size: .9rem; }
@media (max-width: 700px) { .accs { grid-template-columns: 1fr; } }

/* ===== Tablero de la cocina ===== */
.view[data-view="cocina"] { max-width: 1600px; }
.kds__head .h1 small { margin-left: 6px; color: var(--soft); font-family: var(--sans); font-weight: 600; font-size: 1rem; }
.kds__clock { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.kds__clock strong { font-family: var(--display); font-weight: 800; font-stretch: 70%; font-variation-settings: "wdth" 70; font-size: 2.2rem; line-height: 1; }
.kds__clock span { color: var(--soft); font-weight: 600; }
.kds__late { color: var(--red); }
.ksound { display: flex; align-items: center; gap: 14px; width: 100%; margin-bottom: 14px; padding: 14px 18px; border: 0; border-radius: 16px; background: var(--tan); color: var(--ink); text-align: left; cursor: pointer; }
.ksound svg { width: 26px; height: 26px; flex-shrink: 0; }
.ksound b { display: block; font-size: 1.05rem; }
.ksound small { font-size: .92rem; }
.kds__head + .info, .ksound + .info { margin: 0 0 14px; }
.kseg { display: flex; gap: 6px; margin-bottom: 14px; padding: 5px; border-radius: 16px; background: var(--tint); }
.kseg button { display: flex; flex: 1; align-items: center; justify-content: center; gap: 6px; min-width: 0; min-height: 46px; padding: 0 6px; border: 0; border-radius: 12px; background: none; color: var(--soft); font-weight: 700; font-size: .95rem; white-space: nowrap; cursor: pointer; }
.kseg button.is-on { background: var(--hi); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.kseg button svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--sl-400); }
.kseg .kseg__b--mesa svg { color: var(--ch-mesa); }
.kseg .kseg__b--retiro svg { color: var(--ch-ret); }
.kseg .kseg__b--delivery svg { color: var(--ch-del); }
.kseg button > span:not(.cnt) { white-space: normal; line-height: 1.15; text-align: center; }
.cnt--ok { background: var(--ok); color: #fff; }
.kds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
/* Listos e Historial: una sola lista, las comandas en grilla */
.kds--ready, .kds--hist { grid-template-columns: 1fr; }
.kds--ready .kcol { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); align-items: start; }
.kds--ready .kcol__empty { grid-column: 1 / -1; }
/* Historial: una línea larga por pedido, uno debajo del otro */
.khist { margin: 0; padding: 0; list-style: none; border-radius: 14px; background: var(--card); box-shadow: 0 0 0 1px rgba(21, 17, 14, .06); overflow: hidden; }
.khist__r { display: grid; grid-template-columns: 92px 84px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 14px; border-top: 1px solid var(--line); font-size: .95rem; }
.khist__r:first-child { border-top: 0; }
.khist__where { padding: 3px 8px; border-radius: 8px; background: var(--tint); font-weight: 700; font-size: .85rem; text-align: center; white-space: nowrap; }
.khist__where b { font-size: 1rem; }
.khist__code { font-family: var(--display); font-weight: 800; font-stretch: 70%; font-variation-settings: "wdth" 70; font-size: 1.05rem; letter-spacing: .02em; }
.khist__items { min-width: 0; font-weight: 600; overflow-wrap: anywhere; }
.khist__st { display: inline-flex; align-items: center; gap: 5px; color: var(--ok); font-weight: 700; font-size: .88rem; white-space: nowrap; }
.khist__st svg { width: 15px; height: 15px; flex-shrink: 0; }
.khist__st small { color: var(--soft); font-weight: 600; font-size: .82rem; }
.khist__r--cancel { color: var(--soft); }
.khist__r--cancel .khist__items { text-decoration: line-through; }
.khist__r--cancel .khist__st { color: var(--red); }
.kcol { display: flex; flex-direction: column; gap: 12px; min-width: 0; padding: 12px; border-radius: 20px; background: var(--tint); }
.kcol--ready { background: rgba(29, 122, 62, .12); }
.kcol--hist { background: var(--tint); }
.kc--done .kc__where, .kc--cancel .kc__where { background: var(--soft); }
.kc--done .kc__time { background: var(--ok-bg); color: var(--ok); }
.kc--cancel .kc__time { background: var(--red-bg); color: var(--red); }
.kc--done .kc__info b { color: var(--ok); }
.kc--cancel { opacity: .75; }
.kc--cancel .kc__info b { color: var(--red); }
.kc--done .kc__items li, .kc--cancel .kc__items li { font-size: 1rem; }
.kcol__h { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 6px 2px; }
.kcol__h h2 { font-family: var(--display); font-weight: 800; font-stretch: 80%; font-variation-settings: "wdth" 80; font-size: 1.25rem; letter-spacing: .02em; text-transform: uppercase; }
.kcol__empty { padding: 26px 14px; border: 2px dashed rgba(21, 17, 14, .14); border-radius: 14px; color: var(--soft); font-size: .95rem; text-align: center; }
.kc { display: flex; flex-direction: column; gap: 10px; min-width: 0; overflow-wrap: anywhere; padding: 14px 16px 16px; border-radius: 16px; background: var(--card); box-shadow: 0 1px 0 rgba(0, 0, 0, .05), 0 0 0 1px rgba(21, 17, 14, .06); }
.kc.is-late { box-shadow: 0 0 0 2px var(--red); }
.kc.is-new { box-shadow: 0 0 0 3px var(--red), 0 14px 30px -16px rgba(200, 54, 31, .7); animation: kcIn .5s cubic-bezier(.34, 1.4, .64, 1); }
@keyframes kcIn { from { opacity: 0; transform: scale(.96); } }
.kc__head { display: flex; align-items: center; gap: 10px; }
.kc__where { display: inline-flex; align-items: baseline; gap: 6px; padding: 5px 12px; border-radius: 10px; background: var(--ink); color: #fff; }
.kc__where b { font-weight: 800; font-size: 1rem; letter-spacing: .04em; text-transform: uppercase; }
.kc__where--mesa { background: var(--red); }
.kc__where--mesa small { font-weight: 700; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; }
.kc__where--mesa b { font-family: var(--display); font-stretch: 70%; font-variation-settings: "wdth" 70; font-size: 1.9rem; line-height: 1; letter-spacing: 0; }
.kc__id { display: flex; flex-direction: column; align-items: flex-end; margin-left: auto; line-height: 1.2; }
.kc__id > b { font-family: var(--display); font-weight: 800; font-stretch: 70%; font-variation-settings: "wdth" 70; font-size: 1.2rem; letter-spacing: .02em; }
.kc__time { display: inline-flex; align-items: center; gap: 4px; margin-top: 2px; padding: 2px 8px; border-radius: 999px; background: var(--ok-bg); color: var(--ok); font-weight: 700; font-size: .85rem; white-space: nowrap; }
.kc__time svg { width: 14px; height: 14px; }
.kc.is-warn .kc__time { background: var(--warn-bg); color: var(--warn); }
.kc.is-late .kc__time { background: var(--red); color: #fff; }
.kc--ready .kc__time { background: var(--tint); color: var(--soft); }
.kc__sub { color: var(--soft); font-weight: 600; font-size: .92rem; overflow-wrap: anywhere; }
.kc__items { margin: 0; padding: 0; list-style: none; }
.kc__items li { display: flex; align-items: baseline; gap: 10px; padding: 5px 0; border-bottom: 1px dashed var(--line); font-weight: 700; font-size: 1.15rem; line-height: 1.25; overflow-wrap: anywhere; }
.kc__items li:last-child { border-bottom: 0; }
.kc__items b { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; min-width: 32px; height: 30px; padding: 0 6px; border-radius: 8px; background: var(--ink); color: #fff; font-size: 1.05rem; }
.kc__items span { min-width: 0; }
.kc__note { padding: 8px 12px; border-radius: 10px; background: var(--warn-bg); color: #6b4108; font-weight: 600; font-size: .98rem; overflow-wrap: anywhere; }
.kc__note b { display: block; margin-bottom: 1px; color: var(--warn); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; }
.kc__note--caja { background: var(--blue-bg); color: var(--blue-ink); }
.kc__note--caja b { color: var(--blue); }
.kc__chg { display: flex; align-items: center; gap: 6px; color: var(--red); font-weight: 700; font-size: .88rem; }
.kc__chg svg { width: 15px; height: 15px; flex-shrink: 0; }
.kc__foot { display: flex; flex-direction: column; gap: 10px; padding-top: 4px; }
.kc__info { color: var(--soft); font-size: .86rem; }
.kc__btns { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.kc__btns .btn--big { flex: 1; min-width: 0; min-height: 56px; padding: 0 14px; font-size: 1.08rem; }
.kc__btns .btn--big svg { width: 20px; height: 20px; }
.kc--ready .kc__btns { justify-content: flex-end; }
/* Colores de la cocina (los mismos de la caja): Para empezar amarillo ámbar · Preparando naranja fuego · Listos verde */
.kcol--kitchen { background: #fdf3d6; }
.kcol--kitchen .kcol__h h2 { color: #7a5200; }
.kcol--prep { background: #fde3d0; }
.kcol--prep .kcol__h h2 { color: #9a3a0c; }
.kcol--kitchen .kcol__empty { border-color: rgba(122, 82, 0, .22); }
.kcol--prep .kcol__empty { border-color: rgba(154, 58, 12, .22); }
.kc--kitchen { border-top: 6px solid #f4c552; }
.kc--prep { border-top: 6px solid #e8772e; }
.kc--ready { border-top: 6px solid var(--ok); }
/* Empezar: naranja fuego · Listo para entregar: verde */
.kc--kitchen .kc__btns .btn--tan { border-color: #e8772e; background: #e8772e; color: #fff; }
.kc--prep .kc__btns .btn--big { border-color: #1d7a3e; background: #1d7a3e; color: #fff; }
@media (hover: hover) and (pointer: fine) {
  .kc--kitchen .kc__btns .btn--tan:not(:disabled):hover { border-color: #cf6220; background: #cf6220; }
  .kc--prep .kc__btns .btn--big:not(:disabled):hover { border-color: #166232; background: #166232; }
}
@media (max-width: 900px) and (min-width: 761px) { .kds { gap: 10px; } .kcol { padding: 8px; } .kc { padding: 12px; } .kc__items li { font-size: 1.05rem; } }
@media (max-width: 760px) {
  .kds { grid-template-columns: 1fr; }
  .kcol { padding: 8px; }
  .kds--ready .kcol, .kds--hist .kcol { padding: 0; background: none; }
  .khist__r { grid-template-columns: auto auto minmax(0, 1fr); gap: 4px 10px; padding: 10px 12px; }
  .khist__items { grid-column: 1 / -1; grid-row: 2; }
  .khist__st { justify-self: end; white-space: normal; flex-wrap: wrap; justify-content: flex-end; }
  .kds__clock strong { font-size: 1.8rem; }
}
/* celular: el ícono arriba y el nombre abajo (entra "Retiro en local" sin cortarse), el número en la esquina */
@media (max-width: 600px) {
  .kseg { gap: 4px; }
  .kseg button { position: relative; flex-direction: column; gap: 3px; min-height: 64px; padding: 6px 4px; font-size: .84rem; white-space: normal; }
  .kseg button .cnt { position: absolute; top: 5px; right: 5px; }
}
@media (max-width: 380px) { .kseg button { font-size: .85rem; gap: 4px; } .kc__where--mesa b { font-size: 1.6rem; } .kc__items li { font-size: 1.05rem; } }
@media (prefers-reduced-motion: reduce) { .kc.is-new { animation: none; } }

/* Tablets y celulares (caja y cocina): textos largos sin espacios (links, notas) nunca estiran la pantalla,
   y lo que se toca con el dedo tiene al menos 40px */
.view { overflow-wrap: break-word; }
.tk__left, .tk__right, .kcol { min-width: 0; }
@media (pointer: coarse) {
  .wa { min-height: 40px; padding: 6px 14px; }
  .drag { width: 40px; }
  .chip { min-height: 40px; }
}
/* celulares: las pestañas que no entran se deslizan; el borde se desvanece para que se note */
@media (max-width: 520px) {
  .tabs { gap: 18px; padding-right: 28px; -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent); }
  .tabs button { font-size: .97rem; }
}
/* Tablets: si los 3 botones del ticket no entran en una fila, "Mandar a la cocina" va arriba a lo ancho
   y "Entregado" / "Cancelado" parejos abajo (se mide el ticket, no la pantalla: sirve con o sin menú al costado) */
.tk { container-type: inline-size; }
@container (max-width: 900px) {
  .tk--pending .tk__foot { display: grid; grid-template-columns: 1fr; }
  .tk--pending .tk__foot .btn--tan { grid-column: 1 / -1; }
  .tk__foot .btn--big { min-width: 0; }
}

/* Tarjetas sobre el blanco: borde fino y sombra suave */
.card, .kpi:not(.kpi--dark), .row, .tk, .tbl, .ptable, .set, .dev, .pu, .pcs, .tcard, .hist, .mesa, .info:not(.info--gray), .login__card, .kc, .khist, .modal__box { box-shadow: var(--shadow); }
.tk { box-shadow: 0 0 0 1px var(--line), var(--shadow); }
.kc { box-shadow: 0 0 0 1px var(--line-2), var(--shadow); }
.modal__box { box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .55); }
.login__card { box-shadow: 0 30px 60px -34px rgba(36, 28, 23, .35); }
[data-sort="sucursales"] .row__act { flex-wrap: wrap; justify-content: flex-end; }

/* Cartel arriba cuando el sonido de los pedidos está pausado (tocándolo se activa) */
/* Cartel "sonido pausado": baja de arriba ~4 s, con la barrita que marca el tiempo */
.snd-off { position: fixed; top: calc(12px + env(safe-area-inset-top)); left: 50%; z-index: 9999; display: flex; align-items: center; gap: 12px; width: min(440px, calc(100vw - 24px)); padding: 12px 10px 14px 12px; border-radius: 18px; background: #16110e; color: #f6efe7; font-size: .9rem; line-height: 1.3; box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .06); overflow: hidden; opacity: 0; transform: translate(-50%, -24px) scale(.97); transition: opacity .3s, transform .35s cubic-bezier(.2, .9, .3, 1.2); }
.snd-off.is-on { opacity: 1; transform: translate(-50%, 0); }
.snd-off[hidden] { display: none; }
.snd-off__i { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 12px; background: rgba(255, 255, 255, .14); color: #fff; }
.snd-off__i svg { width: 21px; height: 21px; }
.snd-off__t { flex: 1; min-width: 0; color: rgba(246, 239, 231, .7); font-size: .84rem; }
.snd-off__t b { display: block; color: #fff; font-size: .95rem; }
.snd-off__b { flex: none; min-height: 40px; padding: 0 16px; border: 0; border-radius: 99px; background: #fff; color: #16110e; font: inherit; font-weight: 800; font-size: .9rem; cursor: pointer; touch-action: manipulation; }
.snd-off__b:active { transform: scale(.96); }
.snd-off__x { flex: none; width: 32px; height: 40px; margin-left: -4px; border: 0; background: none; color: rgba(246, 239, 231, .5); font-size: 1.4rem; line-height: 1; cursor: pointer; }
.snd-off__bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--tan); transform-origin: left; }
.snd-off.is-on .snd-off__bar { animation: sndBar 4s linear forwards; }
@keyframes sndBar { to { transform: scaleX(0); } }
@media (max-width: 359px) { .snd-off { gap: 9px; } .snd-off__i { display: none; } }
@media (prefers-reduced-motion: reduce) { .snd-off { transition: opacity .2s; } }

/* ===== Canales de pedido =====
   El color de la tarjeta dice el CANAL (lo primero que mira la caja); el estado va aparte en una pastilla blanca.
   Azul = mesa (salón) · Naranja = delivery · Verde = retiro en el local. Además del color, cada uno lleva su ícono y
   su nombre escrito, así no hay confusión aunque alguien no distinga bien los colores */
:root {
  --ch-mesa: #4f46e5; --ch-mesa-d: #4338ca; --ch-mesa-bg: #eef2ff;
  --ch-del: #ea580c; --ch-del-d: #c2410c; --ch-del-bg: #fff7ed;
  --ch-ret: #0d9488; --ch-ret-d: #0f766e; --ch-ret-bg: #f0fdfa;
}
.tk--ch-mesa { --ch: var(--ch-mesa); --ch-d: var(--ch-mesa-d); --ch-bg: var(--ch-mesa-bg); }
.tk--ch-delivery { --ch: var(--ch-del); --ch-d: var(--ch-del-d); --ch-bg: var(--ch-del-bg); }
.tk--ch-retiro { --ch: var(--ch-ret); --ch-d: var(--ch-ret-d); --ch-bg: var(--ch-ret-bg); }

/* Filtros por canal */
.chbar { display: flex; gap: 8px; margin-top: 16px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chbar::-webkit-scrollbar { display: none; }
.chbar__b { --c: var(--ink); --cb: var(--tint); display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; min-height: 44px; padding: 0 8px 0 16px; border: 2px solid transparent; border-radius: 999px; background: var(--cb); color: var(--c); font-weight: 700; font-size: .98rem; white-space: nowrap; transition: background-color .15s, border-color .15s, color .15s; }
.chbar__b svg { width: 19px; height: 19px; }
.chbar__n { display: inline-flex; align-items: center; justify-content: center; min-width: 28px; height: 28px; padding: 0 8px; border-radius: 999px; background: #fff; color: var(--c); font-size: .88rem; font-variant-numeric: tabular-nums; }
.chbar__b--mesa { --c: var(--ch-mesa); --cb: var(--ch-mesa-bg); }
.chbar__b--delivery { --c: var(--ch-del-d); --cb: var(--ch-del-bg); }
.chbar__b--retiro { --c: var(--ch-ret-d); --cb: var(--ch-ret-bg); }
.chbar__b--delivery.is-on { --c: var(--ch-del); }
.chbar__b--retiro.is-on { --c: var(--ch-ret); }
.chbar__b.is-on { background: var(--c); border-color: var(--c); color: #fff; }
.chbar__b.is-on .chbar__n { color: var(--c); }
.chbar__b:focus-visible { outline: 2px solid var(--c); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .chbar__b:not(.is-on):hover { border-color: var(--c); } }

/* Tarjeta: borde y talón del color del canal */
.tk[class*="tk--ch-"] { box-shadow: 0 0 0 2px var(--ch), 0 10px 26px -20px var(--ch); }
.tk[class*="tk--ch-"] .tk__stub { background: var(--ch); color: #fff; }
.tk[class*="tk--ch-"] .tk__perf { border-color: rgba(255, 255, 255, .45); }
.tk[class*="tk--ch-"] .tk__sel input:checked + span { background: #fff; border-color: #fff; color: var(--ch); }
.tk[class*="tk--ch-"] .tk__sel input:focus-visible + span { outline-color: #fff; }
.tk__ch { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; margin: -4px 0 14px; padding: 6px 12px 6px 9px; border-radius: 10px; background: rgba(0, 0, 0, .2); font-weight: 800; font-size: .86rem; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }
.tk__ch svg { width: 18px; height: 18px; flex-shrink: 0; }
.tk__ch b { font-family: var(--display); font-weight: 800; font-stretch: 70%; font-variation-settings: "wdth" 70; font-size: 1.7rem; line-height: .9; letter-spacing: 0; }
/* Estado: pastilla blanca con un punto del color del estado */
.tk[class*="tk--ch-"] .tk__state { align-self: flex-start; padding: 5px 12px 5px 10px; border-radius: 999px; background: #fff; color: var(--ink); font-size: .88rem; }
.tk[class*="tk--ch-"] .tk__state svg { color: var(--soft); }
.tk--pending .tk__state svg { color: #1f3b5c; }
.tk--kitchen .tk__state svg, .tk--prep .tk__state svg { color: #b07a00; }
.tk--ready[class*="tk--ch-"] .tk__state { background: #fff; color: #145c2e; box-shadow: 0 0 0 2px #2fbf68; }
.tk--ready[class*="tk--ch-"] .tk__state svg { color: #1d7a3e; }
/* Listo para entregar: resalta más (borde más grueso) */
.tk--ready[class*="tk--ch-"] { box-shadow: 0 0 0 4px var(--ch), 0 14px 34px -16px var(--ch); }
/* Historial: el entregado conserva el color del canal pero más apagado; el cancelado, gris */
.tk--done[class*="tk--ch-"] { box-shadow: 0 0 0 1px var(--line); }
.tk--done[class*="tk--ch-"] .tk__stub { background: var(--ch-d); }
.tk--cancel[class*="tk--ch-"] { box-shadow: 0 0 0 1px var(--line); }
.tk--cancel[class*="tk--ch-"] .tk__stub { background: #b9a898; color: #3f332b; }
.tk--cancel[class*="tk--ch-"] .tk__ch { background: rgba(0, 0, 0, .1); }

/* Lo principal del canal, grande: la mesa, la dirección o el nombre */
.tk__hero { display: flex; flex-direction: column; min-width: 0; flex: 1 1 260px; }
.tk__kick { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; color: var(--ch-d); font-weight: 800; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; }
.tk__kick .tag { letter-spacing: 0; text-transform: none; }
.tk__head h3.tk__big { margin-top: 2px; color: var(--ch-d); font-family: var(--display); font-weight: 800; font-stretch: 72%; font-variation-settings: "wdth" 72; font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.05rem); line-height: 1.08; overflow-wrap: anywhere; }
.tk--ch-mesa .tk__head h3.tk__big { font-size: clamp(2rem, 1.4rem + 2vw, 2.8rem); line-height: 1; }
.tk__sub { margin-top: 3px; color: var(--soft); font-weight: 600; font-size: .98rem; overflow-wrap: anywhere; }
.tk[class*="tk--ch-"] .tk__head { align-items: flex-start; background: var(--ch-bg); border-bottom-color: transparent; border-radius: 0 20px 0 0; }
.tk--cancel .tk__head { background: none; }
.tk--cancel .tk__head h3.tk__big, .tk--cancel .tk__kick { color: var(--soft); }

.btn--ch { border-color: var(--ch); background: var(--ch); color: #fff; }
.btn--wa { border-color: #1d7a3e; background: transparent; color: #17703a; }
@media (hover: hover) and (pointer: fine) {
  .btn--ch:not(:disabled):hover { border-color: var(--ch-d); background: var(--ch-d); }
  .btn--wa:not(:disabled):hover { background: rgba(29, 122, 62, .1); }
}
.ckline { display: flex; align-items: center; gap: 10px; font-weight: 600; cursor: pointer; }
.ckline input { width: 20px; height: 20px; accent-color: var(--ch-del); }

@media (max-width: 760px) {
  .tk[class*="tk--ch-"] .tk__stub { grid-template-areas: "ch ch" "top top" "when total" "state total"; }
  .tk__ch { grid-area: ch; margin: 0 0 10px; }
  .tk[class*="tk--ch-"] .tk__state { justify-self: start; margin-top: 6px; }
  .tk[class*="tk--ch-"] .tk__head { border-radius: 0; }
  .tk__hero { flex-basis: 100%; }
  .tk__foot .btn--wa { flex-basis: 100%; }
}
@media (max-width: 380px) {
  .chbar__b { min-height: 40px; padding-left: 12px; font-size: .9rem; }
  .tk__ch b { font-size: 1.45rem; }
  .tk__foot .btn--big { flex-basis: 100%; }
}

/* Caja: en un pedido listo, el estado de la cocina va en su renglón y los botones abajo, sin apretarse */
.tk--ready .tk__by--k { flex-basis: 100%; }

/* ===== Cocina: el canal manda el color de la comanda (los mismos de la caja) =====
   Las columnas quedan neutras (el estado lo dice su título) y los botones de paso, oscuros, para no confundirse con
   el naranja del delivery ni el verde del retiro */
.chbar--k { margin: 12px 0 4px; }
.kc--ch-mesa { --ch: var(--ch-mesa); --ch-d: var(--ch-mesa-d); --ch-bg: var(--ch-mesa-bg); }
.kc--ch-delivery { --ch: var(--ch-del); --ch-d: var(--ch-del-d); --ch-bg: var(--ch-del-bg); }
.kc--ch-retiro { --ch: var(--ch-ret); --ch-d: var(--ch-ret-d); --ch-bg: var(--ch-ret-bg); }
.kc[class*="kc--ch-"] { position: relative; overflow: hidden; padding-top: 0; border-top: 0; box-shadow: 0 0 0 2px var(--ch), 0 8px 22px -16px var(--ch); }
.kc[class*="kc--ch-"] .kc__head { margin: 0 -16px; padding: 10px 16px; background: var(--ch-bg); border-bottom: 1px solid color-mix(in srgb, var(--ch) 25%, transparent); }
.kc__where[class*="kc__where--"] { align-items: center; gap: 8px; padding: 7px 14px 7px 11px; border-radius: 12px; background: var(--ch); color: #fff; }
.kc__where[class*="kc__where--"] svg { width: 20px; height: 20px; flex-shrink: 0; }
.kc__where--delivery b, .kc__where--retiro b { font-size: 1.08rem; letter-spacing: .06em; }
.kc[class*="kc--ch-"] .kc__id > b { color: var(--ch-d); }
/* atrasada o recién llegada: el aviso rojo sigue mandando */
.kc[class*="kc--ch-"].is-late { box-shadow: 0 0 0 2px var(--ch), 0 0 0 5px var(--red); }
.kc[class*="kc--ch-"].is-new { box-shadow: 0 0 0 2px var(--ch), 0 0 0 6px var(--red), 0 14px 30px -16px rgba(200, 54, 31, .7); }
.kc--done[class*="kc--ch-"], .kc--cancel[class*="kc--ch-"] { box-shadow: 0 0 0 1px var(--line); }
.kc--done .kc__where[class*="kc__where--"] { background: var(--ch-d); }
.kc--cancel .kc__where[class*="kc__where--"] { background: var(--soft); }
.kcol--kitchen, .kcol--prep { background: var(--tint); }
.kcol--kitchen .kcol__h h2, .kcol--prep .kcol__h h2 { display: flex; align-items: center; gap: 8px; color: var(--ink); }
.kcol--kitchen .kcol__h h2::before, .kcol--prep .kcol__h h2::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: #e0a800; }
.kcol--prep .kcol__h h2::before { background: #e8772e; box-shadow: 0 0 0 4px rgba(232, 119, 46, .2); }
.kcol--kitchen .kcol__empty, .kcol--prep .kcol__empty { border-color: rgba(21, 17, 14, .14); }
.kc--kitchen .kc__btns .btn--tan, .kc--prep .kc__btns .btn--big { border-color: var(--ink); background: var(--ink); color: #fff; }
@media (hover: hover) and (pointer: fine) {
  .kc--kitchen .kc__btns .btn--tan:not(:disabled):hover, .kc--prep .kc__btns .btn--big:not(:disabled):hover { border-color: #3b2a22; background: #3b2a22; }
}
.khist__where--mesa { background: var(--ch-mesa-bg); color: var(--ch-mesa-d); }
.khist__where--delivery { background: var(--ch-del-bg); color: var(--ch-del-d); }
.khist__where--retiro { background: var(--ch-ret-bg); color: var(--ch-ret-d); }
@media (max-width: 900px) and (min-width: 761px) { .kc[class*="kc--ch-"] .kc__head { margin: 0 -12px; padding: 10px 12px; } }

/* ===== Flujo de pedidos: colores de cada paso (los mismos en caja y cocina) =====
   Rojo = nuevo (hay que mirarlo) · Ámbar = en la cocina / preparando · Verde = listo · Oscuro = entregado */
:root { --st-new: #d6342a; --st-new-bg: #fdecea; --st-cook: #b7791f; --st-cook-bg: #fdf3dc; --st-ready: #1d7a3e; --st-ready-bg: #e3f4e8; }

/* Pasos del pedido en cada ticket de la caja */
.steps { display: flex; margin: 0; padding: 12px 22px 10px 30px; list-style: none; border-bottom: 1px solid var(--line-2); counter-reset: paso; }
.steps__i { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; color: var(--mute); font-weight: 600; font-size: .8rem; text-align: center; }
.steps__i::before { content: ""; position: absolute; top: 6px; right: 50%; left: -50%; height: 3px; border-radius: 3px; background: #e6ddd2; }
.steps__i:first-child::before { display: none; }
.steps__i i { position: relative; z-index: 1; width: 15px; height: 15px; border-radius: 50%; background: #e6ddd2; box-shadow: 0 0 0 3px var(--card); }
.steps__i span { overflow: hidden; max-width: 100%; text-overflow: ellipsis; white-space: nowrap; }
.steps__i.is-done { color: var(--soft); }
.steps__i.is-done i, .steps__i.is-done::before, .steps__i.is-cur::before { background: var(--ink); }
.steps__i.is-cur { color: var(--ink); font-weight: 800; }
.steps__i.is-cur i { width: 17px; height: 17px; margin-top: -1px; }
.steps__i--pending.is-cur i { background: var(--st-new); box-shadow: 0 0 0 3px var(--card), 0 0 0 6px rgba(214, 52, 42, .22); }
.steps__i--kitchen.is-cur i, .steps__i--prep.is-cur i { background: var(--st-cook); box-shadow: 0 0 0 3px var(--card), 0 0 0 6px rgba(183, 121, 31, .22); }
.steps__i--ready.is-cur i { background: var(--st-ready); box-shadow: 0 0 0 3px var(--card), 0 0 0 6px rgba(29, 122, 62, .25); }
.steps__i--done.is-cur i { background: var(--ink); }
.steps__i--pending.is-cur { color: var(--st-new); }
.steps__i--kitchen.is-cur, .steps__i--prep.is-cur { color: var(--st-cook); }
.steps__i--ready.is-cur { color: var(--st-ready); }
.tk[class*="tk--ch-"] .steps { background: var(--card); }
.tk[class*="tk--ch-"] .tk__head { border-radius: 0; }
.tk[class*="tk--ch-"] .tk__main > :first-child { border-top-right-radius: 20px; }
@media (max-width: 760px) {
  .steps { padding: 12px 12px 10px; }
  /* en el celular solo se lee el paso actual (los demás quedan como puntitos) */
  .steps__i:not(.is-cur) span { visibility: hidden; }
  .steps__i.is-cur span { overflow: visible; }
  .tk[class*="tk--ch-"] .tk__main > :first-child { border-top-right-radius: 0; }
}

/* Pedido nuevo SIN VER: franja roja arriba del ticket + borde rojo que late, hasta que la caja toca «Ya lo vi» */
.tk--unseen { outline: 3px solid var(--st-new); outline-offset: 4px; animation: unseenPulse 1.6s ease-in-out infinite; }
@keyframes unseenPulse { 50% { outline-color: rgba(214, 52, 42, .25); } }
.tk--unseen.is-flash { animation: unseenPulse .4s ease-in-out 4; }
.tk__fresh { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; padding: 10px 14px 10px 30px; background: var(--st-new); color: #fff; }
.tk__fresh b { font-weight: 800; font-size: .95rem; letter-spacing: .06em; text-transform: uppercase; }
.tk__fresh-dot { width: 10px; height: 10px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 0 rgba(255, 255, 255, .7); animation: freshDot 1.4s ease-out infinite; }
@keyframes freshDot { 70%, 100% { box-shadow: 0 0 0 9px rgba(255, 255, 255, 0); } }
.tk__fresh-t { font-size: .9rem; opacity: .9; }
.tk__fresh-btn { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; min-height: 36px; padding: 0 14px; border: 0; border-radius: 999px; background: #fff; color: var(--st-new); font-weight: 800; font-size: .92rem; cursor: pointer; }
.tk__fresh-btn svg { width: 16px; height: 16px; }
@media (hover: hover) and (pointer: fine) { .tk__fresh-btn:hover { background: #ffe3df; } }
@media (max-width: 760px) { .tk__fresh { padding-left: 16px; } .tk__fresh-btn { margin-left: 0; } .tk--unseen { outline-offset: 2px; } }

/* Pastilla fija arriba (caja, en cualquier pantalla): de dónde es el pedido nuevo sin ver y lleva a él */
.newpill { position: -webkit-sticky; position: sticky; top: 14px; z-index: 20; display: flex; align-items: center; gap: 10px; width: fit-content; max-width: 100%; margin: 0 auto 18px; padding: 10px 10px 10px 16px; text-align: left; line-height: 1.25; border: 0; border-radius: 999px; background: var(--st-new); color: #fff; font-weight: 700; font-size: .98rem; box-shadow: 0 12px 30px -10px rgba(214, 52, 42, .7); cursor: pointer; animation: pillIn .3s ease; }
@keyframes pillIn { from { opacity: 0; transform: translateY(-8px); } }
.newpill__dot { width: 10px; height: 10px; flex-shrink: 0; border-radius: 50%; background: #fff; animation: freshDot 1.4s ease-out infinite; }
.newpill__go { display: inline-flex; align-items: center; gap: 2px; padding: 5px 8px 5px 12px; border-radius: 999px; background: rgba(255, 255, 255, .2); font-size: .88rem; }
.newpill__go svg { width: 16px; height: 16px; }
.newpill[hidden] { display: none; }
.newpill__go { flex-shrink: 0; }
@media (max-width: 1023px) { .newpill { top: calc(66px + env(safe-area-inset-top) + 10px); } }
/* Las dos pastillas (roja: nuevos · verde: listos para entregar) van juntas, una abajo de la otra
   (solo la barra de arriba de .main: .pills también son las opciones de los formularios) */
.main > .pills { position: -webkit-sticky; position: sticky; top: 14px; z-index: 20; display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 0 auto 18px; pointer-events: none; }
.main > .pills:not(:has(.newpill:not([hidden]))) { margin-bottom: 0; }
.main > .pills .newpill { position: static; margin: 0; pointer-events: auto; }
.newpill--ready > svg { width: 18px; height: 18px; flex-shrink: 0; }
.newpill--ready { background: var(--st-ready); box-shadow: 0 12px 30px -10px rgba(29, 122, 62, .75); }
/* listo por canal: mesa azul · retiro naranja · delivery violeta (para no confundirlos) */
.newpill--ready.newpill--mesa { background: #1d4ed8; box-shadow: 0 12px 30px -10px rgba(29, 78, 216, .75); }
.newpill--ready.newpill--retiro { background: #c2410c; box-shadow: 0 12px 30px -10px rgba(194, 65, 12, .75); }
.newpill--ready.newpill--delivery { background: #6d28d9; box-shadow: 0 12px 30px -10px rgba(109, 40, 217, .75); }
@media (max-width: 1023px) { .main > .pills { top: calc(66px + env(safe-area-inset-top) + 10px); } }
.psec__nv { padding: 3px 10px; border-radius: 999px; background: #fff; color: var(--st-new); font-weight: 800; font-size: .82rem; }

/* Listo: qué hacer según el canal, bien visible */
.kst--ready { font-size: 1.02rem; }

/* Cocina: comanda recién llegada y datos más legibles */
.kc__new { padding: 4px 10px; border-radius: 999px; background: var(--st-new); color: #fff; font-weight: 800; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; animation: kcNew 1.2s ease-in-out infinite; }
@keyframes kcNew { 50% { opacity: .55; } }
.kc__time { padding: 3px 10px; font-size: .95rem; }
.kc__time svg { width: 15px; height: 15px; }
.kc__info { font-size: .92rem; }
.kc__info b { color: var(--ink); }
.kc__items b { min-width: 36px; height: 34px; font-size: 1.15rem; }
.kc__items li { font-size: 1.22rem; }

@media (prefers-reduced-motion: reduce) {
  .tk--unseen, .tk--unseen.is-flash, .tk__fresh-dot, .newpill, .newpill__dot, .kc__new { animation: none; }
}


/* =====================================================================
   CAJA · PEDIDOS (rediseño): fondo gris claro, tarjetas blancas con borde fino y sombra suave,
   estado compacto con el tiempo, lo principal en grande y la acción principal sólida abajo a la derecha
   ===================================================================== */
:root {
  --sl-50: #f8fafc; --sl-100: #f1f5f9; --sl-200: #e2e8f0; --sl-300: #cbd5e1; --sl-400: #94a3b8;
  --sl-500: #64748b; --sl-600: #475569; --sl-700: #334155; --sl-800: #1e293b; --sl-900: #0f172a;
}
body[data-view="pedidos"], body[data-view="pedidos"] .main { background: #fff; }
body[data-view="pedidos"] .view { color: var(--sl-900); }
/* En compu (mouse, pantalla de 1024 px o más) la vista Pedidos se ve como con el zoom del navegador al 72 % (80 % × 90 %, el tamaño que eligió el dueño):
   entra todo sin achicar el navegador. En celular y tablet (táctil) queda al 100 % para que los botones se toquen bien.
   Navegadores viejos sin "zoom" la muestran al 100 %, sin romper nada. */
@media (min-width: 1024px) and (hover: hover) and (pointer: fine) {
  /* max-width compensa el zoom: ocupa todo el ancho libre (hasta ~1580 px reales) en vez de quedar en ~800 px */
  .view[data-view="pedidos"] { zoom: .72; max-width: 2200px; }
  /* textos más grandes (compensan el 72 %): filtros, buscador y títulos de Mesas del salón / Retiro */
  .view[data-view="pedidos"] .filters .flabel { font-size: 1.1rem; }
  .view[data-view="pedidos"] .filters .select select { min-height: 56px; padding-top: 0; padding-bottom: 0; font-size: 1.3rem; }
  .view[data-view="pedidos"] .filters .search { flex: 0 1 560px; width: 560px; max-width: 100%; }
  .view[data-view="pedidos"] .filters .search input { width: 100%; min-height: 56px; font-size: 1.3rem; }
  .view[data-view="pedidos"] .filters .search svg { width: 22px; height: 22px; }
  .view[data-view="pedidos"] .sal__h h2 { font-size: 1.95rem; }
  .view[data-view="pedidos"] .sal__h p { font-size: 1.2rem; }
  .view[data-view="pedidos"] .sal__leg li { padding: 8px 14px; font-size: 1.15rem; }
  .view[data-view="pedidos"] .sal__leg li::before { width: 13px; height: 13px; }
  .view[data-view="pedidos"] .vhead .toolbar__r { gap: 12px; }
  .view[data-view="pedidos"] .vhead .toolbar__r .btn { min-height: 62px; padding: 0 28px; gap: 10px; border-radius: 999px; font-size: 1.3rem; }
  .view[data-view="pedidos"] .vhead .toolbar__r .btn svg { width: 24px; height: 24px; }
  .view[data-view="pedidos"] .sal__grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 18px; }
}

/* Barra única: estado + canal (controles segmentados) */
.pbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 18px; }
.seg2 { display: flex; gap: 4px; max-width: 100%; padding: 4px; overflow-x: auto; border: 1px solid var(--sl-200); border-radius: 14px; background: #fff; scrollbar-width: none; box-shadow: 0 1px 2px rgba(15, 23, 42, .05); }
.seg2::-webkit-scrollbar { display: none; }
.seg2__b { --c: var(--sl-900); display: inline-flex; align-items: center; gap: 7px; flex-shrink: 0; min-height: 40px; padding: 0 12px 0 14px; border: 0; border-radius: 10px; background: transparent; color: var(--sl-600); font-weight: 700; font-size: .93rem; white-space: nowrap; cursor: pointer; transition: background-color .15s, color .15s; }
.seg2__b svg { width: 17px; height: 17px; }
.seg2__n { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; height: 22px; padding: 0 7px; border-radius: 999px; background: var(--sl-100); color: var(--sl-600); font-size: .78rem; font-variant-numeric: tabular-nums; }
.seg2__n--hot { background: #dc2626; color: #fff; }
.seg2__b.is-on { background: var(--c); color: #fff; box-shadow: 0 1px 3px rgba(15, 23, 42, .2); }
.seg2__b.is-on .seg2__n { background: rgba(255, 255, 255, .22); color: #fff; }.seg2__b--mesa { --c: var(--ch-mesa-d); }
.seg2__b--delivery { --c: var(--ch-del-d); }
.seg2__b--retiro { --c: var(--ch-ret-d); }
.seg2--ch .seg2__b:not(.is-on) svg { color: var(--c); }
@media (hover: hover) and (pointer: fine) { .seg2__b:not(.is-on):hover { background: var(--sl-100); color: var(--sl-900); } }
.seg2__b:focus-visible { outline: 2px solid var(--c); outline-offset: 1px; }
@media (min-width: 1100px) { .seg2--ch { margin-left: auto; } }
@media (max-width: 760px) { .seg2 { width: 100%; } .seg2__b { flex: 1 0 auto; justify-content: center; } }
body[data-view="pedidos"] .filters { margin-top: 12px; }

/* Secciones de En curso: título limpio con ícono y número */
/* Cada parte con su color, para no confundirlas: nuevos = rojo (atender ya) · listos = verde (entregar).
   No se usan azul, naranja ni verde agua: son los colores de mesa, delivery y retiro (la franja de cada tarjeta) */
.psec2 { margin-top: 26px; padding: 14px; border: 2px solid var(--sl-200); border-radius: 18px; background: var(--sl-50); }
.psec2--new { --sc: #dc2626; --sc-d: #b91c1c; border-color: #fecaca; background: #fef2f2; }
.psec2--ready { --sc: #16a34a; --sc-d: #15803d; border-color: #bbf7d0; background: #f0fdf4; }
.psec2--kitchen { --sc: #d97706; --sc-d: #b45309; border-color: #fde68a; background: #fffbeb; }
.psec2--cook { --sc: #d97706; --sc-d: #b45309; border-color: #fde68a; background: #fffbeb; }
/* mesas ya servidas que esperan el cobro: violeta (no es color de ningún canal) */
.psec2--cobrar { --sc: #7c3aed; --sc-d: #6d28d9; border-color: #ddd6fe; background: #f5f3ff; }
.psec2__h { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: -14px -14px 14px; padding: 10px 14px; border-radius: 16px 16px 0 0; background: var(--sc, var(--sl-700)); color: #fff; }
.psec2__ico { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; flex-shrink: 0; border-radius: 10px; background: rgba(255, 255, 255, .2); color: #fff; }
.psec2__ico svg { width: 19px; height: 19px; }
.psec2__h h2 { font-weight: 800; font-size: 1.15rem; letter-spacing: -.01em; color: #fff; }
.psec2__n { display: inline-flex; align-items: center; justify-content: center; min-width: 28px; height: 24px; padding: 0 8px; border-radius: 999px; background: #fff; color: var(--sc-d, var(--sl-700)); font-weight: 800; font-size: .85rem; }
.psec2__empty { background: rgba(255, 255, 255, .6); }
@media (max-width: 600px) { .psec2 { padding: 10px; border-radius: 16px; } .psec2__h { margin: -10px -10px 12px; padding: 9px 12px; border-radius: 14px 14px 0 0; } }
.psec2__nv { padding: 3px 10px; border: 1.5px solid #fff; border-radius: 999px; background: transparent; color: #fff; font-weight: 800; font-size: .78rem; }
.psec2__empty { padding: 14px 16px; border: 1px dashed var(--sl-300); border-radius: 12px; color: var(--sl-500); font-size: .92rem; }
.ocs { display: flex; flex-direction: column; gap: 14px; }

/* La tarjeta */
.oc--ch-mesa { --ch: var(--ch-mesa); --ch-d: var(--ch-mesa-d); --ch-bg: var(--ch-mesa-bg); }
.oc--ch-delivery { --ch: var(--ch-del); --ch-d: var(--ch-del-d); --ch-bg: var(--ch-del-bg); }
.oc--ch-retiro { --ch: var(--ch-ret); --ch-d: var(--ch-ret-d); --ch-bg: var(--ch-ret-bg); }
.oc { position: relative; overflow: hidden; border: 1px solid var(--sl-200); border-top: 4px solid var(--ch); border-radius: 16px; background: #fff; box-shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .04); color: var(--sl-900); }
.oc--ready { border-top-color: #22c55e; box-shadow: 0 0 0 2px #22c55e, 0 8px 24px -14px rgba(21, 128, 61, .55); }
/* Sin línea de color arriba (borde común); las listas llevan la línea verde */
.oc:not(.oc--ready) { border-top: 1px solid var(--sl-200); }
.oc--done, .oc--cancel { border-top-color: var(--sl-300); }
.oc--cancel { opacity: .8; }
.oc--cancel .oc__total { text-decoration: line-through; color: var(--sl-500); }

.oc__top { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; padding: 12px 14px 12px 18px; border-bottom: 1px solid var(--sl-100); background: var(--sl-50); }
.oc__code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-weight: 700; font-size: .95rem; color: var(--sl-700); letter-spacing: .02em; }
.oc__st { display: inline-flex; align-items: center; gap: 7px; padding: 4px 10px; border-radius: 999px; font-weight: 700; font-size: .84rem; white-space: nowrap; }
.oc__st i { width: 8px; height: 8px; flex-shrink: 0; border-radius: 50%; background: currentColor; }
.oc__st em { font-style: normal; font-weight: 600; opacity: .75; }
.oc__st em::before { content: "· "; }
.oc__st--new { background: #fee2e2; color: #b91c1c; }
.oc__st--new i { animation: freshDot 1.4s ease-out infinite; box-shadow: 0 0 0 0 rgba(220, 38, 38, .5); }
.oc__st--seen { background: var(--sl-100); color: var(--sl-700); }
.oc__st--cook { background: #fef3c7; color: #92400e; }
.oc__st--ready { background: #dcfce7; color: #166534; }
.oc__st--done { background: var(--sl-100); color: var(--sl-600); }
.oc__st--cancel { background: #fef2f2; color: #991b1b; }
/* 2026-11-13: estado y tiempo más grandes para ver cuál está atrasado; desde 20 min, rojo fuerte */
.oc__st { gap: 9px; padding: 7px 15px; font-size: 1.05rem; border: 1.5px solid currentColor; }
.oc__st i { width: 10px; height: 10px; }
.oc__st em { opacity: 1; font-weight: 900; font-size: 1.2em; font-variant-numeric: tabular-nums; }
.oc__st--late { background: #dc2626; color: #fff; border-color: #dc2626; }
@media (max-width: 480px) { .oc__st { font-size: .95rem; padding: 6px 12px; white-space: normal; } }
/* «Sumar algo más» del retiro: lo que sumó el cliente dentro del mismo pedido */
.oc__suma { display: flex; gap: 10px; padding: 12px 14px; border: 2px solid #16a34a; border-radius: 12px; background: #f0fdf4; color: #14532d; }
.oc__suma > svg { flex-shrink: 0; width: 22px; height: 22px; margin-top: 2px; }
.oc__suma b { display: block; font-size: 1.02rem; }
.oc__suma p { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; margin: 6px 0 0; }
.oc__suma em { font-style: normal; font-weight: 700; font-size: .82rem; color: #166534; }
.oc__suma span { padding: 2px 10px; border-radius: 999px; background: #16a34a; color: #fff; font-weight: 800; }
.oc__suma small { display: block; margin-top: 6px; font-size: .82rem; }
.pdt__suma { display: inline-flex; align-items: center; gap: 5px; margin: 4px auto 0; padding: 3px 10px; border-radius: 999px; background: #16a34a; color: #fff; font-weight: 800; font-size: .78rem; white-space: nowrap; }
.pdt__suma svg { width: 14px; height: 14px; }
.oc__code small { margin-right: 5px; font-family: var(--sans); font-weight: 600; font-size: .78rem; color: var(--sl-500); letter-spacing: 0; }
/* Número del pedido en el día: grande, en negro, para saber cuál entró primero */
.oc__num { display: inline-flex; align-items: baseline; gap: 6px; padding: 4px 12px 5px; border-radius: 10px; background: var(--sl-900); color: #fff; font-weight: 900; font-size: 1.4rem; line-height: 1.1; white-space: nowrap; font-variant-numeric: tabular-nums; }
.oc__num small { font-weight: 700; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; opacity: .8; }
.oc__grow { flex: 1; }
.oc__del { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; flex-shrink: 0; border: 0; border-radius: 8px; background: transparent; color: var(--sl-400); cursor: pointer; }
.oc__del svg { width: 17px; height: 17px; }
@media (hover: hover) and (pointer: fine) { .oc__del:hover { background: #fef2f2; color: #dc2626; } }

.oc__body { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 18px 28px; padding: 16px 18px 18px; }
.oc__col { min-width: 0; }
.oc__h { display: flex; align-items: baseline; gap: 8px; margin: 0 0 8px; color: var(--sl-500); font-weight: 800; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; }
.oc__h span { font-weight: 600; letter-spacing: 0; text-transform: none; font-size: .8rem; color: var(--sl-400); }
/* Los títulos "Datos del pedido" y "Pedido · N productos" más grandes y oscuros, para leerlos al toque */
.oc .oc__h { margin-bottom: 10px; color: var(--sl-800, #1e293b); font-size: .95rem; letter-spacing: .06em; }
.oc .oc__h span { color: var(--sl-600); font-size: .95rem; font-weight: 700; }
/* Ficha: etiqueta a la izquierda, dato a la derecha, una fila por dato */
.oc__ficha { margin: 0; border: 1px solid var(--sl-200); border-radius: 12px; overflow: hidden; }
.oc__row { display: grid; grid-template-columns: 96px minmax(0, 1fr); align-items: baseline; gap: 12px; padding: 8px 14px; border-bottom: 1px solid var(--sl-100); }
.oc__row:last-child { border-bottom: 0; }
.oc__row dt { color: var(--sl-500); font-weight: 600; font-size: .84rem; }
.oc__row dd { margin: 0; color: var(--sl-900); font-weight: 700; font-size: .98rem; overflow-wrap: anywhere; }
.oc__row dd small { display: block; margin-top: 1px; color: var(--sl-500); font-weight: 500; font-size: .82rem; }
/* De dónde es: arriba de la ficha, "MESA 2" / "RETIRO EN LOCAL" / "DELIVERY" en negro y negrita, resaltado en marrón clarito */
.oc__row--lugar { display: block; padding: 10px 14px; border-bottom: 1px solid #e3b98f; background: #f2d2b1; }
.oc__row--lugar dd { display: flex; align-items: center; gap: 9px; color: #000; font-weight: 900; font-size: 1.45rem; line-height: 1.15; letter-spacing: .03em; text-transform: uppercase; }
.oc__row--lugar svg { width: 22px; height: 22px; flex-shrink: 0; color: #000; }
.oc__none { color: var(--sl-400); font-weight: 500; font-style: italic; }
/* WhatsApp del cliente: botoncito verde tipo pastilla */
.oc__wa { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 6px 14px 6px 10px; border: 1px solid #86efac; border-radius: 999px; background: linear-gradient(180deg, #f0fdf4, #dcfce7); color: #166534; font-weight: 700; font-size: .95rem; font-variant-numeric: tabular-nums; letter-spacing: .01em; white-space: nowrap; text-decoration: none; box-shadow: 0 1px 2px rgba(22, 101, 52, .12); transition: background .15s, border-color .15s, box-shadow .15s, transform .1s; -webkit-tap-highlight-color: transparent; }
.oc__wa svg { width: 18px; height: 18px; flex-shrink: 0; color: #16a34a; }
.oc__wa:active { transform: scale(.97); }
.oc__wa:focus-visible { outline: 2px solid #16a34a; outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .oc__wa:hover { background: #dcfce7; border-color: #4ade80; box-shadow: 0 2px 6px rgba(22, 101, 52, .18); } }
/* Aclaraciones: a lo ancho, debajo de los datos y del pedido, para que no se pasen */
.oc__notes { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 8px; }
.oc__note { display: flex; gap: 10px; margin: 0; padding: 10px 14px; border: 1px solid #fde68a; border-left: 4px solid #f59e0b; border-radius: 10px; background: #fffbeb; color: #78350f; font-size: 1rem; overflow-wrap: anywhere; }
.oc__note svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; }
.oc__note b { display: block; margin-bottom: 1px; font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; }
.oc__note--k { border-color: #bfdbfe; border-left-color: #3b82f6; background: #eff6ff; color: #1e3a8a; }
.oc__order { border: 1px solid var(--sl-200); border-radius: 12px; background: var(--sl-50); overflow: hidden; }
.oc__items { margin: 0; padding: 4px 14px; list-style: none; }
.oc__sum { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 10px 14px; border-top: 2px solid var(--sl-200); background: #fff; }
.oc__sum span { color: var(--sl-600); font-weight: 800; font-size: .84rem; letter-spacing: .06em; text-transform: uppercase; }
.oc__total { font-weight: 800; font-size: 1.45rem; letter-spacing: -.01em; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--sl-900); }
.oc__items li { display: flex; align-items: baseline; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--sl-200); font-size: 1rem; }
.oc__items li:last-child { border-bottom: 0; }
.oc__items b { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; min-width: 26px; height: 24px; padding: 0 6px; border-radius: 6px; background: var(--sl-900); color: #fff; font-size: .82rem; }
.oc__items span { flex: 1; min-width: 0; font-weight: 600; overflow-wrap: anywhere; }
.oc__items em { font-style: normal; font-weight: 700; color: var(--sl-700); white-space: nowrap; font-variant-numeric: tabular-nums; }
.oc__items .is-ship { color: var(--sl-500); }
.oc__items .is-ship b { visibility: hidden; }
.oc__items .is-ship span, .oc__items .is-ship em { font-weight: 500; }

.oc__foot { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; padding: 12px 14px 12px 18px; border-top: 1px solid var(--sl-100); background: #fff; }
.oc__sec { display: flex; flex-wrap: wrap; gap: 4px; }
.ob2 { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent; color: var(--sl-600); font-weight: 600; font-size: .86rem; text-decoration: none; white-space: nowrap; cursor: pointer; }
.ob2 svg { width: 16px; height: 16px; color: var(--sl-400); }
@media (hover: hover) and (pointer: fine) { .ob2:hover { background: var(--sl-100); color: var(--sl-900); } .ob2:hover svg { color: var(--sl-600); } }
.oc__main { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.ob1 { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border: 1px solid transparent; border-radius: 12px; font-weight: 800; font-size: .97rem; white-space: nowrap; cursor: pointer; transition: background-color .15s, box-shadow .15s, transform .1s; }
.ob1 svg { width: 18px; height: 18px; }
.ob1:active { transform: scale(.98); }
.ob1--go { background: var(--sl-900); color: #fff; box-shadow: 0 1px 2px rgba(15, 23, 42, .2); }
.ob1--ch { background: var(--ch-d); color: #fff; box-shadow: 0 1px 2px rgba(15, 23, 42, .2); }
/* El botón de entregar en negro con letras blancas */
.oc .ob1--ch { background: var(--sl-900); color: #fff; }
@media (hover: hover) and (pointer: fine) { .oc .ob1--ch:hover { filter: none; background: var(--sl-700); } }
.ob1--ghost { min-height: 42px; padding: 0 14px; background: transparent; color: var(--sl-500); font-weight: 700; }
.ob1--wa { border-color: #86efac; background: #f0fdf4; color: #166534; }
@media (hover: hover) and (pointer: fine) {
  .ob1--go:hover { background: var(--sl-700); }
  .ob1--ch:hover { filter: brightness(1.1); }
  .ob1--ghost:hover { background: var(--sl-100); color: #b91c1c; }
  .ob1--wa:hover { background: #dcfce7; }
}
.ob1:focus-visible, .ob2:focus-visible { outline: 2px solid var(--sl-900); outline-offset: 2px; }
.oc__todo { padding: 6px 12px; border-radius: 10px; background: #dcfce7; color: #166534; font-weight: 800; font-size: .95rem; }
/* mesa servida por el mozo: tilde verde fuerte (la venta todavía no se cerró) */
.oc__todo--ok { display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: #16a34a; color: #fff; }
.oc__todo--ok svg { width: 17px; height: 17px; flex-shrink: 0; }
.oc--ready.oc--cobrar { border-top-color: #7c3aed; box-shadow: 0 0 0 2px #7c3aed, 0 8px 24px -14px rgba(109, 40, 217, .5); }
.oc__todo--pay { display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: #7c3aed; color: #fff; }
.oc__todo--pay svg { width: 17px; height: 17px; flex-shrink: 0; }
.oc__srv { display: inline-flex; align-items: center; gap: 5px; color: #166534; font-weight: 700; font-size: .88rem; }
.oc__srv svg { width: 15px; height: 15px; flex-shrink: 0; }
/* «Cobrar Mesa X»: mismo color que «Listo para servir» (.oc .ob1--ch) */
.oc__wait { display: inline-flex; align-items: center; gap: 8px; color: #92400e; font-weight: 700; font-size: .92rem; }
.oc__wait i { width: 8px; height: 8px; border-radius: 50%; background: #f59e0b; animation: kcNew 1.2s ease-in-out infinite; }
.oc__by { color: var(--sl-500); font-size: .9rem; }

/* Sin ver: borde rojo que late hasta «Ya lo vi» */
.oc--unseen { outline: 3px solid #dc2626; outline-offset: 3px; animation: unseenPulse 1.6s ease-in-out infinite; }
.oc--unseen.is-flash { animation: unseenPulse .4s ease-in-out 4; }
/* el pedido al que llevó la pastilla: titila en rojo y se apaga */
.oc.is-flash:not(.oc--unseen), .kc.is-flash { outline: 3px solid transparent; outline-offset: 3px; animation: ocFlash 2.4s ease-out; }
@keyframes ocFlash { 0%, 30%, 60% { outline-color: #dc2626; } 15%, 45%, 100% { outline-color: transparent; } }
@media (prefers-reduced-motion: reduce) { .oc.is-flash:not(.oc--unseen), .kc.is-flash { animation: none; } }

/* Tablet y celular */
@media (max-width: 900px) { .oc__body { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
  .oc__top { padding: 10px 12px; }
  .oc__body { gap: 14px; padding: 14px 14px 16px; }
  .oc__foot { padding: 10px 12px 12px; }
  .oc__sec { width: 100%; justify-content: space-between; }
  .ob2 { flex-direction: column; gap: 2px; min-height: 48px; padding: 4px 6px; font-size: .74rem; }
  .ob2 svg { width: 18px; height: 18px; }
  .oc__main { width: 100%; margin-left: 0; }
  .oc__main .ob1--go, .oc__main .ob1--ch { flex: 1 1 100%; min-height: 50px; order: 3; }
  .oc__main .ob1--ghost, .oc__main .ob1--wa { flex: 1; }
  .oc__todo { flex: 1 1 100%; text-align: center; }
  .oc__total { font-size: 1.3rem; }
  .oc__row { grid-template-columns: 78px minmax(0, 1fr); gap: 10px; padding: 8px 12px; }
  .oc__row--lugar dd { font-size: 1.25rem; }
}
@media (prefers-reduced-motion: reduce) { .oc--unseen, .oc--unseen.is-flash, .oc__st--new i, .oc__wait i { animation: none; } }
/* 2026-11-13: botones de abajo de la comanda más grandes (nuevos, en cocina y listos) */
.oc__foot { gap: 12px 18px; padding: 14px 16px 14px 18px; }
.oc .ob2 { min-height: 44px; padding: 0 14px; gap: 8px; border: 1px solid var(--sl-200); background: var(--sl-50); color: var(--sl-800); font-size: 1rem; font-weight: 700; border-radius: 10px; }
.oc .ob2 svg { width: 20px; height: 20px; color: var(--sl-600); }
.oc .ob1 { min-height: 54px; padding: 0 26px; font-size: 1.12rem; border-radius: 14px; }
.oc .ob1 svg { width: 22px; height: 22px; }
.oc .ob1--ghost { min-height: 50px; padding: 0 18px; font-size: 1.05rem; }
.oc .oc__wait { font-size: 1.08rem; padding: 8px 14px; border-radius: 999px; background: #fef3c7; }
.oc .oc__wait i { width: 10px; height: 10px; }
@media (max-width: 600px) {
  .oc .ob2 { flex-direction: column; gap: 3px; min-height: 58px; padding: 6px 4px; font-size: .86rem; flex: 1; }
  .oc .ob2 svg { width: 22px; height: 22px; }
  .oc__sec { gap: 6px; }
  .oc .ob1 { min-height: 54px; padding: 0 16px; font-size: 1.05rem; }
  .oc .oc__wait { flex: 1 1 100%; justify-content: center; font-size: 1rem; }
}
/* Tarjeta simple: nombre grande, de dónde es, el pedido, la aclaración y abajo pago · total · hora */
.oc__body--s { display: flex; flex-direction: column; gap: 14px; }
.oc__code--big { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 10px; background: var(--sl-900); color: #fff; font-size: 1.5rem; letter-spacing: .04em; white-space: nowrap; }
.oc__code--big small { margin-right: 2px; color: #fff; font-weight: 900; font-size: 1.15rem; letter-spacing: .06em; text-transform: uppercase; opacity: .85; }
.oc__code--big svg { width: 22px; height: 22px; flex-shrink: 0; }
.oc__who { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.oc__name { display: flex; align-items: center; gap: 10px; margin: 0; color: var(--sl-900); font-weight: 900; font-size: 1.9rem; line-height: 1.1; letter-spacing: -.01em; overflow-wrap: anywhere; text-transform: capitalize; }
.oc__name svg { width: 28px; height: 28px; flex-shrink: 0; padding: 5px; border-radius: 50%; background: var(--sl-100); color: var(--sl-700); box-sizing: content-box; }
.oc .oc__body--s .oc__h { align-items: center; }
.oc__body--s .oc__h svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--sl-600); }
.oc__tag { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 999px; background: #f2d2b1; color: #000; font-weight: 800; font-size: .95rem; white-space: nowrap; }
.oc__tag svg { width: 18px; height: 18px; flex-shrink: 0; }
/* Dirección del delivery: recuadro del color del canal con "Entregar en", la calle grande y la zona */
.oc__addr { display: flex; align-items: flex-start; gap: 12px; margin: 0; padding: 12px 16px; border-radius: 12px; border: 2px solid var(--ch, #e8590c); background: var(--ch-bg, #fff4e6); color: var(--sl-900, #0f172a); overflow-wrap: anywhere; }
.oc__addr svg { width: 26px; height: 26px; flex-shrink: 0; margin-top: 2px; color: var(--ch, #e8590c); }
.oc__addr > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.oc__addr small { color: var(--ch-d, #c2410c); font-weight: 900; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; }
.oc__addr b { font-weight: 800; font-size: 1.35rem; line-height: 1.2; }
.oc__addr em { font-style: normal; font-weight: 700; font-size: 1rem; color: var(--sl-700, #334155); }
/* Título "PEDIDO" como en la comanda de la cocina: cartel del color del canal, grande y en mayúsculas */
.oc .oc__body--s .oc__ped { display: inline-flex; align-items: center; gap: 10px; margin: 4px 0 8px; padding: 6px 18px 6px 12px; border-radius: 12px; background: var(--ch, #e8590c); color: #fff; font-weight: 900; font-size: 1.35rem; line-height: 1.1; letter-spacing: .14em; box-shadow: 0 6px 14px -8px var(--ch, #e8590c); }
.oc .oc__body--s .oc__ped svg { width: 24px; height: 24px; color: #fff; }
@media (max-width: 380px) {
  .oc .oc__body--s .oc__ped { font-size: 1.15rem; padding: 5px 14px 5px 10px; }
  .oc__addr { padding: 10px 12px; }
  .oc__addr b { font-size: 1.15rem; }
}
.oc .oc__body--s .oc__h { margin-bottom: 6px; }
.oc__items--s { padding: 0; }
.oc__items--s li { align-items: center; padding: 6px 0; border-bottom: 0; font-size: 1.4rem; }
.oc__items--s span { font-weight: 800; }
.oc__items--s b { min-width: 32px; height: 30px; font-size: 1rem; }
@media (max-width: 600px) { .oc__items--s li { font-size: 1.25rem; } }
.oc__meta { display: flex; flex-wrap: wrap; gap: 10px; }
.oc__meta > div { flex: 1 1 140px; display: flex; align-items: center; gap: 10px; min-width: 0; padding: 9px 12px; border: 1px solid var(--sl-200); border-radius: 10px; background: var(--sl-50); }
.oc__meta > div > svg { width: 20px; height: 20px; flex-shrink: 0; padding: 7px; border-radius: 8px; background: #fff; border: 1px solid var(--sl-200); color: var(--sl-700); box-sizing: content-box; }
.oc__meta > div > span { min-width: 0; }
.oc__meta small { display: block; color: var(--sl-500); font-weight: 700; font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; }
.oc__meta b { display: block; color: var(--sl-900); font-weight: 800; font-size: 1.05rem; overflow-wrap: anywhere; }
.oc__meta .oc__total { font-size: 1.05rem; }
@media (max-width: 600px) {
  .oc__name { font-size: 1.6rem; }
  .oc__name svg { width: 22px; height: 22px; }
  .oc__meta > div { flex-basis: 130px; }
  .oc__code--big { font-size: 1.25rem; padding: 5px 11px; }
  .oc__code--big small { font-size: .95rem; }
}
@media (max-width: 600px) {
  /* celular: arriba el código y borrar; abajo el estado */
  .oc__num, .oc__code { order: 1; }
  .oc__del { order: 2; margin-left: auto; margin-right: -6px; }
  .oc__grow { order: 3; flex: 0 0 100%; height: 0; }
  .oc__st { order: 4; }
}

/* =====================================================================
   COCINA (KDS): fondo gris claro, tarjetas blancas con franja del canal, mesa e ítems bien grandes
   y las comandas recién llegadas arriba con etiqueta NUEVO y un brillo los primeros 30 segundos
   ===================================================================== */
body[data-view="cocina"], body[data-view="cocina"] .main { background: #fff; }
.kcol--kitchen, .kcol--prep, .kcol--hist { border: 1px solid var(--sl-200); background: rgba(255, 255, 255, .6); }
.kcol--ready { border: 1px solid #bbf7d0; background: rgba(240, 253, 244, .8); }
.kcol__h h2 { color: var(--sl-900); }
.kc[class*="kc--ch-"] { border: 1px solid var(--sl-200); border-top: 6px solid var(--ch); background: #fff; box-shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .04); }
.kc[class*="kc--ch-"] .kc__head { border-bottom: 1px solid var(--sl-200); }
.kc__where[class*="kc__where--"] { padding: 6px 14px 6px 11px; }
.kc__where--mesa small { font-size: .85rem; }
.kc__where--mesa b { font-size: 2.5rem; line-height: .95; }
.kc__where--delivery b, .kc__where--retiro b { font-size: 1.3rem; }
.kc[class*="kc--ch-"] .kc__id > b { font-size: 1.15rem; }
.kc__time { font-size: 1.05rem; padding: 4px 11px; }
.kc__sub { font-size: 1rem; color: var(--sl-600); }
.kc__items li { padding: 7px 0; font-size: 1.35rem; line-height: 1.2; border-bottom-color: var(--sl-200); }
.kc__items b { min-width: 40px; height: 38px; border-radius: 9px; background: var(--sl-900); font-size: 1.25rem; }
/* atrasada: aro rojo (además del reloj en rojo) */
.kc[class*="kc--ch-"].is-late { box-shadow: 0 0 0 3px #dc2626; }
/* NUEVO: etiqueta roja grande + aro rojo; los primeros 30 s el aro brilla y late */
.kc__new { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; background: #dc2626; color: #fff; font-weight: 900; font-size: .95rem; letter-spacing: .1em; text-transform: uppercase; box-shadow: 0 4px 12px -4px rgba(220, 38, 38, .6); animation: none; }
.kc__new i { width: 9px; height: 9px; border-radius: 50%; background: #fff; animation: freshDot 1.4s ease-out infinite; }
.kc[class*="kc--ch-"].is-new { box-shadow: 0 0 0 3px #dc2626, 0 10px 26px -14px rgba(220, 38, 38, .6); }
.kc[class*="kc--ch-"].is-glow { animation: kGlow 1.1s ease-in-out infinite; }
@keyframes kGlow {
  0%, 100% { box-shadow: 0 0 0 3px #dc2626, 0 0 0 0 rgba(220, 38, 38, 0); }
  50% { box-shadow: 0 0 0 3px #f59e0b, 0 0 26px 8px rgba(245, 158, 11, .45); }
}
@media (max-width: 760px) { .kc__where--mesa b { font-size: 2.1rem; } .kc__items li { font-size: 1.2rem; } }
@media (prefers-reduced-motion: reduce) { .kc[class*="kc--ch-"].is-glow, .kc__new i { animation: none; } }
/* NUEVO como franja roja arriba de la comanda (de borde a borde) */
.kc__new { display: flex; align-items: center; gap: 9px; margin: 0 -16px; padding: 8px 16px; border-radius: 0; background: #dc2626; color: #fff; font-weight: 900; font-size: 1.05rem; letter-spacing: .14em; text-transform: uppercase; box-shadow: none; }
.kc__new small { margin-left: auto; font-weight: 600; font-size: .8rem; letter-spacing: .04em; text-transform: none; opacity: .9; }
.kc__where[class*="kc__where--"], .kc__where b { white-space: nowrap; }
.kc[class*="kc--ch-"] .kc__head { flex-wrap: wrap; row-gap: 8px; }
@media (max-width: 900px) and (min-width: 761px) { .kc__new { margin: 0 -12px; padding: 8px 12px; } }
@media (max-width: 380px) { .kc__where--delivery b, .kc__where--retiro b { font-size: 1.1rem; } }
.khist__r--ready { background: #f0fdf4; box-shadow: inset 4px 0 0 #16a34a; }
/* Cocina (mesa, retiro y delivery): igual que en la caja, sin azul/verde/naranja. "MESA 3" / "PARA RETIRAR" / "DELIVERY"
   en negro y negrita sobre marrón clarito, sin línea de color arriba y el código en negro */
.kc[class*="kc--ch-"] { border-top: 1px solid var(--sl-200); }
.kc[class*="kc--ch-"] .kc__head { background: var(--sl-50); }
.kc__where[class*="kc__where--"], .kc--done .kc__where[class*="kc__where--"] { border: 1px solid #e3b98f; background: #f2d2b1; color: #000; }
.kc__where[class*="kc__where--"] b { font-weight: 900; }
.kc__where.kc__where--mesa small { font-weight: 900; letter-spacing: .08em; }
.kc__where[class*="kc__where--"] svg { color: #000; }
.kc[class*="kc--ch-"] .kc__id > b { color: var(--sl-900); }
.khist__where--mesa, .khist__where--retiro, .khist__where--delivery { background: #f2d2b1; color: #000; }
/* Cocina: la barra Mesas · Retiro en local · Delivery · Historial igual que la de Pedidos: blanca, los canales en negro,
   el elegido con fondo negro y letras blancas, contadores grises (rojo si hay comandas sin empezar) */
.kseg { gap: 4px; padding: 4px; border: 1px solid var(--sl-200); border-radius: 14px; background: #fff; box-shadow: 0 1px 2px rgba(15, 23, 42, .05); }
.kseg button { border-radius: 10px; color: var(--sl-900); transition: background-color .15s, color .15s; }
.kseg .kseg__b--hist { color: var(--sl-600); }
.kseg button svg, .kseg .kseg__b--mesa svg, .kseg .kseg__b--retiro svg, .kseg .kseg__b--delivery svg { color: var(--sl-900); }
.kseg .kseg__b--hist svg { color: var(--sl-400); }
.kseg button.is-on { background: var(--sl-900); color: #fff; box-shadow: 0 1px 3px rgba(15, 23, 42, .2); }
.kseg button.is-on svg { color: #fff; }
.kseg .cnt { min-width: 24px; height: 22px; padding: 0 7px; background: var(--sl-100); color: var(--sl-600); font-size: .78rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.kseg .cnt.cnt--red { background: #dc2626; color: #fff; }
.kseg button.is-on .cnt { background: rgba(255, 255, 255, .22); color: #fff; }
@media (hover: hover) and (pointer: fine) { .kseg button:not(.is-on):hover { background: var(--sl-100); color: var(--sl-900); } }
.kseg button:focus-visible { outline: 2px solid var(--sl-900); outline-offset: 1px; }
/* Cocina: el número del pedido en el día, grande arriba a la derecha; el código abajo, más chico */
.kc[class*="kc--ch-"] .kc__id > b.kc__n, .kc__id > b.kc__n { font-family: var(--sans); font-stretch: 100%; font-variation-settings: normal; font-weight: 900; font-size: 1.9rem; line-height: 1; letter-spacing: -.01em; color: var(--sl-900); font-variant-numeric: tabular-nums; white-space: nowrap; }
.kc__code { margin-top: 2px; color: var(--sl-500); font-weight: 700; font-size: .82rem; letter-spacing: .04em; }
@media (max-width: 760px) { .kc[class*="kc--ch-"] .kc__id > b.kc__n, .kc__id > b.kc__n { font-size: 1.6rem; } }
/* Caja: una sola barra de pestañas (Mesas · Retiro en local · Delivery · Entregados · Cancelados · Historial) */
.seg2--main { width: 100%; }
.seg2--main .seg2__b { flex: 1 0 auto; justify-content: center; }
.seg2--main .seg2__b:not(.is-on) svg { color: var(--sl-400); }
.seg2--main .seg2__b--ch svg { width: 19px; height: 19px; stroke-width: 1.9; }
/* Mesas, Retiro en local y Delivery, todo en negro: texto e ícono, y elegido con fondo negro */
.seg2--main .seg2__b--ch { --c: var(--sl-900); color: var(--sl-900); }
.seg2--main .seg2__b--ch:not(.is-on) svg { color: var(--sl-900); }
.seg2--main .seg2__b--ch.is-on { color: #fff; }/* tablet y PC chica: arriba los 3 canales (lo que más se usa), abajo Entregados, Cancelados e Historial; todo a la vista */
@media (max-width: 1180px) {
  .seg2--main { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; }
  .seg2--main .seg2__b { min-width: 0; padding: 0 8px; }
  .seg2--main .seg2__b--ch { min-height: 46px; }
  /* Caja 1: arriba Retiro y Delivery (mitad y mitad), abajo Entregados, Cancelados e Historial */
  .seg2--main.seg2--c1 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .seg2--main.seg2--c1 .seg2__b--ch { grid-column: span 3; }
  .seg2--main.seg2--c1 .seg2__b:not(.seg2__b--ch) { grid-column: span 2; }
  /* Caja 2 (Mesas, Entregados, Cancelados, Historial): 4 pestañas en 2 y 2 */
  .seg2--main.seg2--c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .seg2--main .seg2__b { gap: 5px; padding: 0 5px; font-size: .86rem; }
  .seg2--main .seg2__b:not(.seg2__b--ch) svg { display: none; }
  .seg2--main .seg2__n { min-width: 22px; padding: 0 5px; }
}
/* celular: en los canales, el ícono arriba y el nombre abajo (entra "Retiro en local" sin cortarse) */
@media (max-width: 480px) {
  .seg2--main .seg2__b--ch { flex-direction: column; gap: 2px; min-height: 64px; padding: 6px 4px; line-height: 1.1; white-space: normal; text-align: center; font-size: .82rem; }
  .seg2--main .seg2__b--ch .seg2__n { position: absolute; top: 5px; right: 5px; height: 20px; min-width: 20px; font-size: .74rem; }
  .seg2--main .seg2__b--ch { position: relative; }
}
/* Mismo estilo que las pestañas de la Caja (Mesas · Retiro en local): activa en rojo, número en rosado */
.seg2--main .seg2__b.is-on, .seg2--main .seg2__b--ch.is-on { --c: #141414; background: #141414; color: #fff; box-shadow: 0 8px 18px -10px rgba(0, 0, 0, .6); }
.seg2--main .seg2__n--hot { background: #fde2e1; color: #9d3933; }
.seg2--main .seg2__b.is-on .seg2__n { background: rgba(255, 255, 255, .25); color: #fff; }
/* PC (la vista Pedidos va al 72 %): barra del ancho de sus pestañas, con el mismo tamaño en pantalla que la de la Caja */
@media (min-width: 1181px) and (hover: hover) and (pointer: fine) {
  .seg2--main { width: fit-content; gap: 6px; padding: 7px; border-radius: 22px; }
  .seg2--main .seg2__b { flex: 0 0 auto; gap: 10px; min-height: 64px; padding: 0 18px; border-radius: 17px; font-size: 1.32rem; font-weight: 800; }
  .seg2--main .seg2__b svg, .seg2--main .seg2__b--ch svg { width: 26px; height: 26px; }
  .seg2--main .seg2__n { min-width: 33px; height: auto; padding: 3px 10px; font-size: 1.08rem; }
}
@media (max-width: 380px) {
  .seg2--main .seg2__b:not(.seg2__b--ch) { gap: 3px; padding: 0 2px; font-size: .76rem; }
  .seg2--main .seg2__b:not(.seg2__b--ch) .seg2__n { min-width: 18px; height: 20px; padding: 0 4px; font-size: .72rem; }
}

/* =================== GALERÍA (fotos de los clientes) =================== */
.gfm { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin: 16px 0 0; padding: 0; list-style: none; }
.gfm__it { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); }
.gfm__img { display: block; width: 100%; aspect-ratio: 1; padding: 0; border: 0; background: #2a221c; cursor: zoom-in; }
.gfm__img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.gfm__body { display: flex; flex-direction: column; gap: 6px; flex: 1; padding: 14px; }
.gfm__meta { font-size: .9rem; color: var(--soft); }
.gfm__meta b { color: var(--ink); }
.gfm__txt { overflow-wrap: anywhere; line-height: 1.4; }
.gfm__txt span, .gfm__txt--soft { color: var(--soft); }
.gfm__por { font-size: .82rem; color: var(--soft); }
.gfm__acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 6px; }
.gfm__acts .btn { flex: 1 1 auto; }
.gfm__big { display: block; width: 100%; max-height: 70vh; max-height: 70dvh; object-fit: contain; border-radius: 12px; background: #2a221c; }
.gfm__p { margin-bottom: 14px; }
@media (max-width: 420px) { .gfm { grid-template-columns: 1fr; } }

/* ==== EMPLEADOS (dueño) Y MI TURNO (empleado) ==== */
/* Cada empleado es una tarjeta tipo comanda: borde punteado, sello de goma con cómo llegó y su lista de tareas */
/* Barra del día: navegación + resumen en números grandes */
.pe-bar { display: flex; flex-wrap: wrap; align-items: stretch; gap: 12px; margin-top: 16px; }
.pe-day { flex: 1 0 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px; padding: 6px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); box-shadow: var(--shadow); }
.pe-day .icon-btn { width: 40px; height: 40px; border-radius: 12px; color: var(--ink-2); }
.pe-day .icon-btn:not(:disabled):hover { background: var(--tint); }
.pe-day .icon-btn:disabled { opacity: .25; }
.pe-day .icon-btn svg { width: 18px; height: 18px; }
.pe-day__t { display: flex; flex-direction: column; min-width: 128px; margin: 0; padding: 0 6px; text-align: center; line-height: 1.1; }
.pe-day__t small { color: var(--tan-d); font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .16em; }
.pe-day__t b { font-family: var(--display); font-size: 1.2rem; font-stretch: 85%; font-weight: 800; white-space: nowrap; }
.pe-day .btn { margin: 0 4px; }
.pe-kpis { flex: 999 1 420px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; border: 1px solid var(--line); border-radius: 18px; background: var(--card); box-shadow: var(--shadow); overflow: hidden; }
.pe-kpi { min-width: 0; padding: 12px 16px; }
.pe-kpi + .pe-kpi { border-left: 1px solid var(--line-2); }
.pe-kpi dt { display: flex; align-items: center; gap: 6px; color: var(--mute); font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pe-kpi dt::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--tan); }
.pe-kpi--live dt::before { background: var(--ok); box-shadow: 0 0 0 3px var(--ok-bg); animation: pePulse 2s ease-in-out infinite; }
.pe-kpi--ok dt::before { background: var(--ok); }
.pe-kpi--bad dt::before { background: var(--red); }
.pe-kpi dd { margin: 4px 0 0; font-family: var(--display); font-size: 1.9rem; font-stretch: 78%; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.pe-kpi dd small { margin-left: 2px; color: var(--mute); font-size: .52em; font-weight: 700; }
.pe-kpi--bad dd { color: var(--red); }
@keyframes pePulse { 50% { opacity: .35; } }

/* Tarjeta de cada empleado: el color del estado tiñe la cabecera, el avatar y el chip */
.pe-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 14px; margin: 14px 0 0; padding: 0; list-style: none; }
.pe-card { --acc: var(--mute); --acc-bg: var(--tint); position: relative; display: flex; flex-direction: column; min-width: 0; padding: 18px; border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(180deg, var(--acc-bg), transparent 92px) var(--card); box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.pe-card--ok { --acc: var(--ok); --acc-bg: rgba(29, 122, 62, .07); }
.pe-card--bad { --acc: var(--red); --acc-bg: rgba(157, 57, 51, .07); }
.pe-card--wait { --acc: var(--warn); --acc-bg: rgba(163, 98, 12, .07); }
.pe-card--off { --acc-bg: rgba(154, 133, 115, .06); }
@media (hover: hover) { .pe-card:hover { transform: translateY(-2px); box-shadow: 0 1px 2px rgba(36, 28, 23, .05), 0 22px 36px -24px rgba(36, 28, 23, .35); } }
.pe-card__top { display: flex; align-items: center; gap: 12px; }
.pe-av { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 15px; background: var(--side); color: #f6efe7; font-family: var(--display); font-weight: 900; font-size: 1.25rem; box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--acc); }
.pe-card__name { margin: 0; font-family: var(--display); font-weight: 800; font-size: 1.15rem; font-stretch: 90%; line-height: 1.15; overflow-wrap: anywhere; }
.pe-card__sub { margin: 3px 0 0; color: var(--soft); font-size: .84rem; overflow-wrap: anywhere; }
.pe-state { flex: none; align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; max-width: 46%; padding: 5px 10px 5px 8px; border-radius: 99px; color: var(--acc); font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; line-height: 1.2; }
.pe-state::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pe-state--ok { background: var(--ok-bg); }
.pe-state--bad { background: var(--red-bg); }
.pe-state--wait { background: var(--warn-bg); }
.pe-state--off { background: var(--tint); }
.pe-times { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 16px 0 14px; }
.pe-times div { min-width: 0; padding: 9px 10px; border-radius: 12px; background: var(--field); box-shadow: inset 0 0 0 1px var(--line-2); }
.pe-times dt { color: var(--mute); font-size: .64rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.pe-times dd { margin: 3px 0 0; font-family: var(--display); font-weight: 800; font-size: 1.3rem; font-stretch: 80%; line-height: 1.1; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.pe-card { container-type: inline-size; }
@container (max-width: 340px) { .pe-times div { padding: 8px; } .pe-times dd { font-size: 1.08rem; white-space: nowrap; } .pe-live { font-size: .72rem; } }
.pe-live { display: inline-flex; align-items: center; color: var(--ok); font-family: var(--sans); font-size: .8rem; font-weight: 700; white-space: nowrap; }
.pe-live::before { content: ""; flex: none; width: 7px; height: 7px; margin-right: 5px; border-radius: 50%; background: var(--ok); animation: pePulse 1.6s infinite; }
.pe-prog__h { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 6px; color: var(--mute); font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.pe-prog__h b { color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: 0; }
.pe-prog { height: 5px; border-radius: 99px; background: var(--tint); overflow: hidden; }
.pe-prog span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--tan), var(--red)); transition: width .4s cubic-bezier(.2, .8, .2, 1); }
.pe-prog__t { margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--field); color: var(--soft); font-size: .84rem; font-weight: 600; }
.pe-mini { margin: 10px 0 0; padding: 0; list-style: none; font-size: .88rem; }
.pe-mini li { display: flex; align-items: center; gap: 9px; padding: 6px 0; border-top: 1px solid var(--line-2); color: var(--ink-2); font-weight: 600; overflow-wrap: anywhere; }
.pe-mini li:first-child { border-top: 0; }
.pe-mini i { flex: none; display: grid; place-items: center; width: 20px; height: 20px; border: 1.5px solid var(--tan-line); border-radius: 50%; }
.pe-mini i svg { width: 12px; height: 12px; stroke-width: 3; }
.pe-mini .is-on { color: var(--mute); text-decoration: line-through; text-decoration-color: var(--tan-line); }
.pe-mini .is-on i { border-color: var(--ok); background: var(--ok); color: #fff; }
.pe-mini time { flex: none; margin-left: auto; padding: 3px 8px; border-radius: 99px; background: var(--tint); color: var(--soft); font-size: .74rem; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pe-mini .is-on time { background: var(--ok-bg); color: var(--ok); }
.pe-mini .is-late { color: var(--red); }
.pe-mini .is-late i { border-color: var(--red); }
.pe-mini .is-late time { background: var(--red); color: #fff; }
/* Avisos al celular (tareas olvidadas) */
.pe-push { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 14px; margin: 16px 0 0; padding: 12px 16px; border: 1px solid var(--warn-bg); border-radius: 16px; background: linear-gradient(90deg, var(--warn-bg), transparent 70%); color: var(--ink-2); font-size: .9rem; }
.pe-push.is-on { border-color: var(--ok-bg); background: linear-gradient(90deg, var(--ok-bg), transparent 70%); }
.pe-push__t { display: flex; align-items: center; gap: 8px; flex: 1 1 220px; min-width: 0; margin: 0; overflow-wrap: anywhere; }
.pe-push__t svg { flex: none; width: 18px; height: 18px; color: var(--ok); }
/* avisos al celular del dueño (pestaña Empleados): solo en celulares y tablets, no en PC/notebook (mouse) */
@media (hover: hover) and (pointer: fine) { .pe-push { display: none; } .mt-wrap .pe-push { display: flex; } }
.pe-card__acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 16px; }
.pe-card__acts .btn { flex: 1 1 auto; justify-content: center; }

/* Tareas, movimientos y resumen del mes */
.pe-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 14px; margin-top: 14px; }
.pe-box { min-width: 0; padding: 18px; border-radius: 20px; }
.pe-box__h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.pe-box__h h2 { margin: 0; font-family: var(--display); font-size: 1.15rem; font-stretch: 88%; font-weight: 800; }
.pe-none { margin: 0; padding: 14px; border: 1px dashed var(--line); border-radius: 14px; color: var(--soft); font-size: .9rem; }
.pe-tl, .pe-mov { margin: 0; padding: 0; list-style: none; }
.pe-tl li { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-top: 1px solid var(--line-2); }
.pe-tl li:first-child { border-top: 0; padding-top: 2px; }
.pe-tl p { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.pe-tl span { display: block; color: var(--mute); font-size: .8rem; overflow-wrap: anywhere; }
.pe-tl .pe-dd { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 7px; }
.pe-dd i { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; background: var(--tint); color: var(--mute); font-size: .68rem; font-style: normal; font-weight: 700; opacity: .55; }
.pe-dd i.is-on { background: var(--side); color: #f6efe7; opacity: 1; }
.pe-tl .icon-btn { flex: none; }
.pe-tl .icon-btn:hover, .pe-mov .icon-btn:hover { background: var(--tint); color: var(--ink); }
/* línea de tiempo */
.pe-mov { max-height: 400px; overflow-y: auto; overscroll-behavior: contain; }
.pe-mov li { position: relative; display: flex; align-items: center; gap: 10px; padding: 8px 0 8px 22px; }
.pe-mov li::before { content: ""; position: absolute; left: 3px; top: 50%; z-index: 1; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; background: var(--card); box-shadow: inset 0 0 0 3px var(--tan); }
.pe-mov li::after { content: ""; position: absolute; left: 8px; top: 0; bottom: 0; width: 2px; background: var(--line-2); }
.pe-mov li:first-child::after { top: 50%; }
.pe-mov li:last-child::after { bottom: 50%; }
.pe-mov li:only-child::after { display: none; }
.pe-mov li.pe-mov--in::before { box-shadow: inset 0 0 0 6px var(--ok); }
.pe-mov li.pe-mov--out::before { box-shadow: inset 0 0 0 6px var(--red); }
.pe-mov time { flex: none; min-width: 50px; padding: 4px 7px; border-radius: 8px; background: var(--tint); font-weight: 700; font-size: .8rem; font-variant-numeric: tabular-nums; text-align: center; }
.pe-mov--in time { background: var(--ok-bg); color: var(--ok); }
.pe-mov--out time { background: var(--red-bg); color: var(--red); }
.pe-mov p { flex: 1; min-width: 0; margin: 0; font-size: .9rem; overflow-wrap: anywhere; }
.pe-mov p span { color: var(--mute); font-size: .8rem; }
.pe-mov .icon-btn { flex: none; width: 32px; height: 32px; }
.pe-tw { overflow-x: auto; }
.pe-tab { width: 100%; border-collapse: collapse; font-size: .9rem; }
.pe-tab th { padding: 8px 10px; border-bottom: 1px solid var(--line); color: var(--mute); font-size: .68rem; text-align: left; text-transform: uppercase; letter-spacing: .1em; white-space: nowrap; }
.pe-tab td { padding: 12px 10px; border-top: 1px solid var(--line-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pe-tab tr:first-child td { border-top: 0; }
@media (hover: hover) { .pe-tab tbody tr:hover td { background: var(--field); } }
.pe-tab td span { display: block; color: var(--mute); font-size: .76rem; }
.pe-tab .is-bad { color: var(--red); font-weight: 700; }
.pe-hbar { display: inline-block; width: 64px; height: 5px; margin-right: 8px; border-radius: 99px; background: var(--tint); vertical-align: middle; overflow: hidden; }
.pe-hbar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--tan), var(--red)); }
/* Celular y tablet chica: resumen 2×2 y la tabla pasa a fichas */
@media (max-width: 700px) {
  .pe-day { flex-basis: 100%; }
  .pe-day__t { flex: 1; min-width: 0; }
  .pe-kpis { flex-basis: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pe-kpi:nth-child(3) { border-left: 0; }
  .pe-kpi:nth-child(n + 3) { border-top: 1px solid var(--line-2); }
  .pe-tw { overflow: visible; }
  .pe-tab thead { display: none; }
  .pe-tab, .pe-tab tbody { display: block; }
  .pe-tab tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; padding: 14px 0; border-top: 1px solid var(--line-2); }
  .pe-tab tr:first-child { border-top: 0; padding-top: 4px; }
  .pe-tab td { padding: 0; border: 0; white-space: normal; }
  .pe-tab td:first-child { grid-column: 1 / -1; }
  .pe-tab td[data-l]::before { content: attr(data-l); display: block; margin-bottom: 2px; color: var(--mute); font-size: .64rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
}
.pe-link { padding: 0; border: 0; background: none; color: var(--ink-2); font: inherit; text-decoration: underline; cursor: pointer; }
.pe-p { margin: 0 0 12px; color: var(--soft); }
.pe-qrs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 14px; }
.pe-qr { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px; border: 1.5px dashed var(--line); border-radius: 14px; }
.pe-qr img { width: 100%; max-width: 260px; height: auto; }
.pe-qr__b { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.pe-nfc { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: var(--card-2); color: var(--ink-2); font-size: .88rem; line-height: 1.5; }

/* Mi turno: pensado para el celular, todo grande y a un toque */
.mt-wrap { max-width: 560px; margin: 0 auto; padding-bottom: max(24px, env(safe-area-inset-bottom)); }
.mt-head { padding: 4px 2px 2px; }
.mt-kick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; color: var(--mute); font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; }
.mt-kick em { padding: 4px 10px 3px; border: 1px solid var(--tan-line); border-radius: 99px; color: var(--tan-d); font-style: normal; font-weight: 700; letter-spacing: .1em; }
.mt-hola { margin: 12px 0 0; font-family: var(--display); font-size: clamp(2.2rem, 11vw, 3.1rem); font-stretch: 82%; font-weight: 900; line-height: .95; letter-spacing: -.01em; overflow-wrap: anywhere; }
.mt-hola span { display: block; margin-bottom: 4px; color: var(--soft); font-family: var(--sans); font-size: .42em; font-weight: 500; letter-spacing: 0; }
.mt-msg { display: flex; align-items: center; gap: 8px; margin: 16px 0 0; padding: 11px 14px; border-radius: 12px; background: var(--ok-bg); color: var(--ok); font-weight: 700; animation: mtIn .35s ease-out; }
.mt-msg svg { flex: none; width: 20px; height: 20px; stroke-width: 2.6; }
@keyframes mtIn { from { opacity: 0; transform: translateY(-6px); } }
/* El pase: tarjeta oscura con la fichada arriba y el horario abajo, separados por un corte troquelado */
.mt-pass { --acc: var(--tan); --acc-bg: rgba(227, 164, 111, .16); position: relative; margin-top: 20px; border-radius: 22px; background: radial-gradient(120% 90% at 100% 0, rgba(227, 164, 111, .16), transparent 55%), var(--side); color: #f6efe7; box-shadow: 0 24px 40px -28px rgba(11, 9, 8, .7); overflow: hidden; }
.mt-pass::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--acc); }
.mt-pass--ok { --acc: #4fbf78; --acc-bg: rgba(79, 191, 120, .16); }
.mt-pass--bad { --acc: #e8705f; --acc-bg: rgba(232, 112, 95, .16); }
.mt-pass--out { --acc: rgba(246, 239, 231, .55); --acc-bg: rgba(246, 239, 231, .08); }
.mt-pass__top { padding: 22px 22px 20px 24px; }
.mt-pass__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 10px; }
.mt-pass__lbl { margin: 0; color: rgba(246, 239, 231, .6); font-size: .74rem; font-weight: 600; text-transform: uppercase; letter-spacing: .16em; }
.mt-chip { display: inline-flex; align-items: center; gap: 7px; flex: none; padding: 5px 11px 5px 9px; border-radius: 99px; background: var(--acc-bg); color: var(--acc); font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; animation: mtIn .4s ease-out; }
.mt-chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px var(--acc-bg); }
.mt-pass--ok .mt-chip::before { animation: mtPulse 2s ease-in-out infinite; }
@keyframes mtPulse { 50% { box-shadow: 0 0 0 6px transparent; } }
.mt-pass__big { margin: 6px 0 0; font-family: var(--display); font-size: clamp(3.4rem, 19vw, 4.6rem); font-stretch: 75%; font-weight: 800; line-height: .95; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.mt-pass__big--txt { margin-top: 8px; font-size: clamp(2rem, 10vw, 2.6rem); font-stretch: 82%; }
.mt-pass__sub { margin: 10px 0 0; color: rgba(246, 239, 231, .72); font-size: .95rem; line-height: 1.45; }
.mt-pass__wait { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 120px; margin: 0; font-weight: 600; }
.mt-pass__wait .mt-spin { border-color: rgba(246, 239, 231, .2); border-top-color: var(--tan); }
.mt-pass__cut { position: relative; height: 0; margin: 0 22px; border-top: 1.5px dashed rgba(246, 239, 231, .18); }
.mt-pass__cut::before, .mt-pass__cut::after { content: ""; position: absolute; top: -11px; width: 22px; height: 22px; border-radius: 50%; background: var(--bg); }
.mt-pass__cut::before { left: -33px; }
.mt-pass__cut::after { right: -33px; }
.mt-pass__hor { display: flex; margin: 0; padding: 16px 22px 20px 24px; }
.mt-pass__hor div { flex: 1 1 0; min-width: 0; }
.mt-pass__hor div + div { padding-left: 14px; border-left: 1px solid rgba(246, 239, 231, .1); }
.mt-pass__hor div:not(:last-child) { padding-right: 14px; }
.mt-pass__hor dt { color: rgba(246, 239, 231, .5); font-size: .68rem; white-space: nowrap; font-weight: 600; text-transform: uppercase; letter-spacing: .14em; }
.mt-pass__hor dd { margin: 4px 0 0; color: var(--tan); font-family: var(--display); font-size: 1.45rem; font-stretch: 82%; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mt-pass__hor small { color: rgba(227, 164, 111, .7); font-size: .6em; font-weight: 700; }
.mt-pass__franco { margin: 0; padding: 16px 22px 20px 24px; color: var(--tan); font-weight: 700; }
.mt-spin { width: 26px; height: 26px; border: 3px solid var(--line); border-top-color: var(--red); border-radius: 50%; animation: mtSpin .8s linear infinite; }
@keyframes mtSpin { to { transform: rotate(360deg); } }
.mt-acts { display: grid; gap: 10px; margin-top: 14px; }
.mt-scanbtn { justify-content: flex-start; width: 100%; min-height: 60px; padding: 8px 22px 8px 8px; border-color: var(--red); border-radius: 18px; background: var(--red); font-size: 1.05rem; letter-spacing: .01em; white-space: normal; text-align: left; box-shadow: 0 14px 24px -18px rgba(157, 57, 51, .9); }
.mt-scanbtn:active, .mt-nfc:active { transform: scale(.985); }
.mt-scanbtn__i { display: grid; place-items: center; flex: none; width: 44px; height: 44px; margin-right: 6px; border-radius: 13px; background: rgba(255, 255, 255, .14); }
.mt-scanbtn svg, .mt-scan__x svg { width: 20px; height: 20px; flex: none; }
.mt-nfc { width: 100%; min-height: 52px; border-color: var(--line); border-radius: 18px; white-space: normal; }
.mt-nfc svg { width: 18px; height: 18px; flex: none; color: var(--tan-d); }
/* Escáner de QR a pantalla completa (cámara dentro del panel) */
.mt-scan { position: fixed; inset: 0; z-index: 9999; display: flex; flex-direction: column; align-items: center; justify-content: center; background: #000; overflow: hidden; }
.mt-scan video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mt-scan__frame { position: relative; width: min(68vw, 62dvh, 300px); aspect-ratio: 1; border: 3px solid #fff; border-radius: 22px; box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .5); }
.mt-scan.is-err .mt-scan__frame { display: none; }
.mt-scan__tip { position: relative; max-width: 420px; margin: 22px 20px 0; padding: 10px 16px; border-radius: 14px; background: rgba(0, 0, 0, .6); color: #fff; font-weight: 600; line-height: 1.4; text-align: center; }
.mt-scan__x { position: absolute; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translateX(-50%); border-color: #fff; background: #fff; color: var(--ink); }
@media (orientation: landscape) and (max-height: 500px) {
  .mt-scan__tip { margin-top: 10px; font-size: .9rem; }
  .mt-scan__x { bottom: auto; top: calc(14px + env(safe-area-inset-top)); left: auto; right: calc(14px + env(safe-area-inset-right)); transform: none; }
}
.mt-list { margin-top: 30px; }
.mt-list__h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 0 2px; }
.mt-list__h h2 { margin: 0; font-family: var(--display); font-size: 1.3rem; font-stretch: 85%; font-weight: 800; }
.mt-list__h span { color: var(--mute); font-weight: 600; font-variant-numeric: tabular-nums; }
.mt-list__h b { color: var(--ink); font-weight: 800; }
.mt-prog { height: 4px; margin: 12px 2px 0; border-radius: 99px; background: var(--tint); overflow: hidden; }
.mt-prog span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--tan), var(--red)); transition: width .4s cubic-bezier(.2, .8, .2, 1); }
.mt-list ul { margin: 14px 0 0; padding: 0; border: 1px solid var(--line); border-radius: 18px; background: var(--card); box-shadow: var(--shadow); list-style: none; overflow: hidden; }
.mt-list li + li { border-top: 1px solid var(--line); }
.mt-task { position: relative; display: flex; align-items: center; gap: 14px; width: 100%; min-height: 64px; padding: 14px 16px; border: 0; background: transparent; color: var(--ink); font: 600 1.02rem var(--sans); text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background .2s; }
.mt-task span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.mt-task i { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border: 1.5px solid var(--tan-line); border-radius: 50%; color: transparent; transition: background .2s, border-color .2s, color .2s; }
.mt-task i svg { width: 16px; height: 16px; stroke-width: 3; }
.mt-task time { flex: none; padding: 5px 10px; border-radius: 99px; background: var(--tint); color: var(--soft); font-size: .8rem; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mt-task.is-on { background: var(--field); }
.mt-task.is-on span { color: var(--mute); text-decoration: line-through; text-decoration-color: var(--tan-line); }
.mt-task.is-on i { border-color: var(--ok); background: var(--ok); color: #fff; animation: mtTick .3s ease-out; }
.mt-task.is-on time { background: var(--ok-bg); color: var(--ok); }
.mt-task.is-late::before { content: ""; position: absolute; inset: 12px auto 12px 0; width: 3px; border-radius: 0 3px 3px 0; background: var(--red); }
.mt-task.is-late i { border-color: var(--red); }
.mt-task.is-late time { background: var(--red); color: #fff; font-weight: 700; }
.mt-task:active { background: var(--tint); }
@keyframes mtTick { from { transform: scale(.4); } }
.mt-done { margin: 16px 0 0; font-family: var(--display); font-stretch: 85%; font-weight: 800; color: var(--ok); text-align: center; }
.mt-none { margin: 14px 0 0; padding: 18px; border: 1px dashed var(--line); border-radius: 18px; color: var(--soft); text-align: center; }
/* Avisos al celular dentro de Mi turno: discreto */
.mt-wrap .pe-push { margin: 24px 0 0; padding: 14px 16px; border: 0; border-radius: 16px; background: var(--field); color: var(--soft); font-size: .88rem; }
.mt-wrap .pe-push.is-on { border: 0; }
.mt-wrap .pe-push__t b { color: var(--ink); }
.mt-wrap .pe-push .lcheck { margin-top: 2px; color: var(--ink); }
@media (max-width: 380px) {
  .pe-card, .pe-box { padding: 14px; }
  .pe-kpi { padding: 10px 12px; }
  .pe-times div { padding: 8px; }
  .pe-times dd { font-size: 1.15rem; }
  .mt-pass__top { padding: 18px 18px 16px 20px; }
  .mt-pass__hor { padding: 14px 18px 16px 20px; }
  .mt-pass__hor div + div { padding-left: 10px; }
  .mt-pass__hor div:not(:last-child) { padding-right: 10px; }
  .mt-pass__hor div { flex: 1 1 auto; }
  .mt-pass__hor dt { font-size: .62rem; letter-spacing: .08em; }
  .mt-pass__hor dd { font-size: 1.2rem; }
  .mt-pass__cut { margin: 0 18px; }
  .mt-pass__cut::before { left: -29px; }
  .mt-pass__cut::after { right: -29px; }
}

/* ==== EMPLEADOS: pestañas Día / Semana / Sueldos ==== */
.pe-nav { flex: 0 1 340px; }
.pe-day.pe-nav .icon-btn { width: 40px; height: 40px; flex: none; border-radius: 50%; background: #2a1f1a; color: #fff; }
.pe-day.pe-nav .icon-btn:hover { background: #a3352b; }
.pe-day.pe-nav .icon-btn svg { width: 20px; height: 20px; stroke-width: 2.6; }
.pe-day.pe-nav .icon-btn:disabled { opacity: .3; }
.pe-bar .btn--sm { white-space: nowrap; }
.pe-bar__b { align-self: center; }
.pe-per { align-self: center; flex-wrap: wrap; border-radius: 18px; }
.pe-ley { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin: 0 0 12px; color: var(--soft); font-size: .8rem; }
.pe-ley i { display: inline-block; width: 12px; height: 12px; margin-right: -8px; border-radius: 4px; box-shadow: inset 0 0 0 1px currentColor; }
.pe-wkw { overflow-x: auto; overscroll-behavior-x: contain; margin: 0 -4px 12px; padding: 0 4px; }
.pe-wk { width: 100%; min-width: 720px; border-collapse: separate; border-spacing: 4px; table-layout: fixed; font-size: .85rem; }
.pe-wk th { color: var(--mute); font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; text-align: center; }
.pe-wk th small { display: block; color: var(--ink); font-size: 1rem; letter-spacing: 0; }
.pe-wk thead th:first-child, .pe-wk tbody th { width: 130px; text-align: left; }
.pe-wk thead th:last-child { width: 96px; }
.pe-wk th.is-hoy small { color: var(--red); }
.pe-wk tbody th { position: sticky; left: 0; z-index: 1; padding-right: 6px; background: var(--card); color: var(--ink); font-size: .9rem; text-transform: none; letter-spacing: 0; }
.pe-wk tbody th b, .pe-wk tbody th span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pe-wk tbody th span { color: var(--mute); font-size: .74rem; font-weight: 500; }
.pe-wk td { padding: 0; }
.pe-c { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; min-height: 54px; padding: 4px 2px; border: 0; border-radius: 12px; background: var(--field); color: var(--ink); font: inherit; line-height: 1.15; cursor: pointer; }
.pe-c b { font-size: .8rem; }
.pe-c small { font-size: .72rem; opacity: .85; }
.pe-c--ok, .pe-ley .pe-c--ok { background: var(--ok-bg); color: var(--ok); }
.pe-c--late, .pe-ley .pe-c--late { background: var(--warn-bg); color: var(--warn); }
.pe-c--bad, .pe-ley .pe-c--bad { background: var(--red-bg); color: var(--red); }
.pe-c--aus, .pe-ley .pe-c--aus { background: var(--blue-bg); color: var(--blue-ink); }
.pe-c--off, .pe-ley .pe-c--off { background: var(--tint); color: var(--mute); }
.pe-c--none { background: transparent; box-shadow: inset 0 0 0 1px var(--line-2); color: var(--mute); }
.pe-c:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.pe-wk__t { padding-left: 6px !important; }
.pe-wk__t b { display: block; font-family: var(--display); font-size: 1.1rem; font-weight: 800; }
.pe-wk__t span { color: var(--mute); font-size: .74rem; }
.pe-wk__t em { color: var(--red); font-style: normal; font-weight: 700; }
.pe-tot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; padding: 16px 18px; border-radius: 20px; }
.pe-tot small { display: block; color: var(--mute); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.pe-tot b { font-family: var(--display); font-size: 2rem; font-weight: 800; font-stretch: 85%; font-variant-numeric: tabular-nums; }
.pe-pay { display: flex; flex-direction: column; min-width: 0; padding: 18px; border-radius: 20px; }
.pe-times--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pe-times--4 dd { font-size: 1.05rem; }
.pe-times dd.is-bad { color: var(--red); }
.pe-cta { margin: 0; padding: 0; list-style: none; }
.pe-cta li { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-top: 1px solid var(--line-2); font-variant-numeric: tabular-nums; }
.pe-cta li:first-child { border-top: 0; }
.pe-cta span { flex: 1; min-width: 0; color: var(--soft); font-size: .9rem; }
.pe-cta__a b { color: var(--red); }
.pe-cta__a .icon-btn { width: 32px; height: 32px; }
.pe-cta__t { border-top: 2px solid var(--line) !important; }
.pe-cta__t span { color: var(--ink); font-weight: 700; }
.pe-cta__t b { font-family: var(--display); font-size: 1.5rem; font-weight: 800; }
.pe-al { margin: 6px 0 0; padding: 0; list-style: none; }
.pe-al li { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-top: 1px solid var(--line-2); font-size: .9rem; }
.pe-al span { flex: 1; min-width: 0; }
@media (max-width: 700px) {
  .pe-nav { flex-basis: 100%; }
  .pe-bar__b, .pe-per { flex: 1 1 100%; justify-content: center; }
  .pe-per button { flex: 1 1 auto; padding: 0 10px; font-size: .86rem; }
  .pe-tot .btn { flex: 1 1 100%; justify-content: center; }
  .pe-wk thead th:first-child, .pe-wk tbody th { width: 96px; }
}
@media (max-width: 380px) { .pe-times--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ==== EMPLEADOS: para revisar, tareas tarde y notas ==== */
.pe-ok { display: flex; align-items: center; gap: 10px; margin: 16px 0 0; padding: 12px 16px; border: 1px solid var(--ok-bg); border-radius: 16px; background: linear-gradient(90deg, var(--ok-bg), transparent 75%); color: var(--ink-2); font-size: .92rem; }
.pe-ok svg { flex: none; width: 18px; height: 18px; color: var(--ok); stroke-width: 3; }
.pe-raras { margin-top: 16px; padding: 16px 18px; border-radius: 20px; }
.pe-raras ul { margin: 0; padding: 0; list-style: none; }
.pe-rara { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 11px 0; border-top: 1px solid var(--line-2); }
.pe-rara:first-child { border-top: 0; padding-top: 2px; }
.pe-rara__d { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--warn); box-shadow: 0 0 0 4px var(--warn-bg); }
.pe-rara--bad .pe-rara__d { background: var(--red); box-shadow: 0 0 0 4px var(--red-bg); }
.pe-rara .grow { flex: 1 1 220px; min-width: 0; }
.pe-rara b { display: block; font-size: .95rem; overflow-wrap: anywhere; }
.pe-rara small { display: block; color: var(--soft); font-size: .84rem; overflow-wrap: anywhere; }
.pe-rara .btn { flex: none; }
.pe-raras__mas { margin-top: 6px; font-size: .88rem; }
.pe-n { display: inline-grid; place-items: center; min-width: 20px; height: 20px; margin-left: 4px; padding: 0 6px; border-radius: 99px; background: var(--tint); color: var(--ink-2); font-family: inherit; font-size: .72rem; font-weight: 800; font-stretch: normal; vertical-align: middle; }
.pe-n--bad { background: var(--red); color: #fff; }
.pe-mini .is-on.is-tarde { color: var(--warn); }
.pe-mini .is-on.is-tarde i { border-color: var(--warn); background: var(--warn); }
.pe-mini .is-on.is-tarde time { background: var(--warn-bg); color: var(--warn); }
.pe-tarde { color: var(--warn); font-style: normal; font-weight: 700; }
.pe-kpi__x { margin: 4px 0 0; color: var(--warn); font-size: .74rem; font-weight: 700; }
.pe-tab .is-warn { color: var(--warn); font-weight: 700; }
.pe-notas { margin: 6px 0 0; padding: 0; list-style: none; }
.pe-nota { display: flex; align-items: flex-start; gap: 10px; padding: 12px 0 12px 12px; border-top: 1px solid var(--line-2); border-left: 3px solid var(--blue); }
.pe-nota + .pe-nota { margin-top: 6px; }
.pe-nota--mal { border-left-color: var(--red); }
.pe-nota--bien { border-left-color: var(--ok); }
.pe-nota .grow { min-width: 0; }
.pe-nota p { margin: 0; overflow-wrap: anywhere; white-space: pre-line; }
.pe-nota small { color: var(--mute); font-size: .76rem; }
.pe-nota__h { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-bottom: 4px !important; }
.pe-nota__tag { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--blue-ink); }
.pe-nota--mal .pe-nota__tag { color: var(--red); }
.pe-nota--bien .pe-nota__tag { color: var(--ok); }
.pe-nota__h time { color: var(--mute); font-size: .78rem; }
.alert--bad { border-color: var(--red-bg); background: var(--red-bg); }
@media (max-width: 700px) {
  .pe-rara .btn { flex: 1 1 100%; justify-content: center; }
}

/* ==== EMPLEADOS: orden simple (pestañas arriba, títulos de sección, acciones en una fila) ==== */
.pe-sec { margin: 22px 0 0; color: var(--mute); font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .14em; }
.pe-sec + .pe-grid { margin-top: 10px; }
.pe-card__acts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.pe-card__acts .btn { min-width: 0; padding-inline: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pe-pay .pe-card__acts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@container (max-width: 300px) { .pe-card__acts { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pe-card__acts .btn:last-child:nth-child(3) { grid-column: 1 / -1; } }
.pe-tot__w { margin: 6px 0 0; color: var(--warn); font-size: .82rem; }
.pe-foot { margin: 28px 0 0; padding-top: 16px; border-top: 1px dashed var(--line); text-align: center; }
.pe-link--red { display: inline-flex; align-items: center; gap: 6px; color: var(--red); font-size: .85rem; text-decoration: none; opacity: .75; }
.pe-link--red svg { width: 14px; height: 14px; }
@media (hover: hover) { .pe-link--red:hover { opacity: 1; text-decoration: underline; } }
/* 5 pestañas: en pantallas angostas se deslizan de costado en vez de apretarse */

/* ==== EMPLEADOS: estilo de Ventas, colores con significado ====
   Verde = bien (vino, a tiempo, hecha) · ámbar = tarde · rojo = faltó o no cumplió · azul = vacaciones/enfermo/permiso · gris = franco.
   Las tarjetas quedan blancas; el color va solo en el estado, la barrita de arriba y los números importantes. */
.pe-box__h h2, .pe-raras h2, .pe-sec { display: flex; align-items: center; gap: 10px; margin: 0; color: var(--ink); font-family: var(--display); font-weight: 800; font-stretch: 68%; font-variation-settings: "wdth" 68; font-size: 1.45rem; line-height: 1; letter-spacing: .01em; text-transform: uppercase; }
.pe-box__h h2::before, .pe-raras h2::before, .pe-sec::before { content: ""; flex: none; width: 11px; height: 11px; border-radius: 3px; background: var(--c, var(--ink)); }
.pe-raras { --c: var(--red); }
.pe-sec { margin-top: 26px; }
.pe-card { background: var(--card); box-shadow: inset 0 3px 0 var(--acc), var(--shadow); }
.pe-card--off { --acc: var(--line); }
.pe-prog span, .pe-hbar i { background: var(--ok); }
.pe-mov--t time { background: var(--warn-bg); color: var(--warn); }
.pe-mov li.pe-mov--out::before { box-shadow: inset 0 0 0 6px var(--mute); }
.pe-mov--out time { background: var(--tint); color: var(--ink-2); }
.pe-c--off, .pe-ley .pe-c--off { background: transparent; box-shadow: inset 0 0 0 1px var(--line-2); color: var(--mute); }
.pe-c--bad { font-weight: 800; }

/* ==== SUELDOS (pestaña Sueldos de Empleados) ==== */
.ps-sum { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 14px 22px; margin-top: 14px; padding: 22px 24px; border-radius: 22px; background: radial-gradient(120% 140% at 0% 0%, #3a2a21 0%, var(--side) 60%); color: #f6efe7; box-shadow: 0 22px 40px -28px rgba(36, 28, 23, .6); }
.ps-sum small, .ps-sum dt { display: block; color: rgba(246, 239, 231, .6); font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; }
.ps-sum__main { min-width: 0; }
.ps-sum__main b { display: block; margin-top: 4px; font-family: var(--display); font-size: clamp(2rem, 6vw, 2.6rem); font-weight: 800; font-stretch: 85%; line-height: 1; font-variant-numeric: tabular-nums; }
.ps-sum__main p { margin: 6px 0 0; color: rgba(246, 239, 231, .72); font-size: .86rem; }
.ps-sum__k { display: flex; gap: 8px; margin: 0; }
.ps-sum__k div { min-width: 0; padding: 10px 14px; border-radius: 14px; background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.ps-sum__k dd { margin: 3px 0 0; font-family: var(--display); font-weight: 800; font-size: 1.1rem; font-stretch: 85%; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ps-sum__x { background: #f6efe7; color: var(--ink); }
.ps-sum__w { grid-column: 1 / -1; margin: 0; padding: 10px 12px; border-radius: 12px; background: rgba(240, 170, 60, .16); color: #f7d9a8; font-size: .85rem; }
.ps-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 310px), 1fr)); gap: 14px; margin: 12px 0 0; padding: 0; list-style: none; }
.ps-card { display: flex; flex-direction: column; min-width: 0; padding: 18px; border: 1px solid var(--line); border-radius: 20px; background: var(--card); box-shadow: var(--shadow); }
.ps-head { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.ps-head .pe-av { --acc: var(--line); }
.ps-rate { display: inline-block; margin-top: 5px; padding: 3px 9px; border-radius: 99px; background: var(--tint); color: var(--ink-2); font-size: .78rem; font-weight: 600; }
.ps-rate.is-warn { background: var(--warn-bg); color: var(--warn); }
.ps-step { display: flex; align-items: center; gap: 8px; margin: 14px 0 8px; color: var(--mute); font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; }
.ps-step i { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--ink); color: #fff; font-style: normal; font-size: .68rem; letter-spacing: 0; }
.ps-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.ps-stats div { min-width: 0; padding: 9px 6px; text-align: center; }
.ps-stats div + div { border-left: 1px solid var(--line); }
.ps-stats dt { color: var(--mute); font-size: .64rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.ps-stats dd { margin: 2px 0 0; font-family: var(--display); font-weight: 800; font-size: 1.15rem; font-stretch: 85%; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ps-stats dd.is-bad { color: var(--red); }
.ps-calc { margin: 0; padding: 0; list-style: none; }
.ps-calc li { display: flex; align-items: center; gap: 8px; padding: 9px 0; border-top: 1px dashed var(--line); font-variant-numeric: tabular-nums; }
.ps-calc li:first-child { border-top: 0; padding-top: 2px; }
.ps-calc span { flex: 1; min-width: 0; color: var(--ink-2); font-size: .92rem; font-weight: 600; }
.ps-calc small { display: block; color: var(--mute); font-size: .78rem; font-weight: 400; overflow-wrap: anywhere; }
.ps-calc b { font-weight: 700; white-space: nowrap; }
.ps-calc .is-adel b { color: var(--red); }
.ps-calc .is-none span, .ps-calc .is-none b { color: var(--mute); font-weight: 400; }
.ps-calc .icon-btn { width: 30px; height: 30px; flex: none; }
.ps-pay { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 14px 16px; border-radius: 16px; background: var(--ok-bg); color: var(--ok); }
.ps-pay span { flex: 1; min-width: 0; font-weight: 800; font-size: .95rem; }
.ps-pay small { display: block; margin-top: 2px; font-weight: 500; font-size: .78rem; opacity: .85; }
.ps-pay b { font-family: var(--display); font-weight: 800; font-size: 1.7rem; font-stretch: 85%; line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ps-card.is-neg .ps-pay { background: var(--red-bg); color: var(--red); }
.ps-acts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: auto; padding-top: 14px; }
.ps-acts .btn { min-width: 0; justify-content: center; padding-inline: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 860px) { .ps-sum { grid-template-columns: minmax(0, 1fr); } .ps-sum__k div { flex: 1; } .ps-sum__x { justify-content: center; } }
@media (max-width: 380px) { .ps-sum { padding: 18px; } .ps-card { padding: 14px; } .ps-stats dt { font-size: .58rem; letter-spacing: .04em; } .ps-stats dd { font-size: 1rem; } }

/* ==== DÍA (tarjetas de "Tu equipo hoy", usan .ps-* de SUELDOS) ==== */
.pd-card { padding: 18px; }
.pd-card .pe-av { --acc: inherit; }
.pd-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 12px; }
.pd-meta .pe-state { max-width: none; align-self: auto; }
.pd-meta .ps-rate { display: inline-flex; align-items: center; gap: 5px; margin: 0; }
.pd-meta .ps-rate svg { width: 13px; height: 13px; opacity: .7; }
.ps-step b { margin-left: auto; color: var(--ink); font-size: .74rem; letter-spacing: .04em; }
.pd-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pd-stats dd .pe-live { font-family: var(--sans); font-size: .8rem; }
.pd-card .pe-prog { margin: 0 0 8px; }
.pd-card .pe-prog__t { margin: 0; }
.pd-acts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: auto; padding-top: 14px; }
.pd-acts > button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; min-width: 0; min-height: 58px; padding: 8px 4px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font: inherit; font-size: .78rem; font-weight: 700; line-height: 1.15; text-align: center; cursor: pointer; transition: background .15s; }
.pd-acts > button + button { border-left: 0; }
.pd-acts > button:first-child { border-radius: 14px 0 0 14px; }
.pd-acts > button:last-child { border-radius: 0 14px 14px 0; }
.pd-acts svg { width: 17px; height: 17px; flex: none; }
.pd-acts span { display: flex; align-items: center; gap: 4px; }
.pd-acts .pe-n { font-style: normal; }
@media (hover: hover) { .pd-acts > button:hover { background: var(--tint); } }
.pd-acts > button:active { background: var(--tint); }
@media (max-width: 380px) { .pd-card { padding: 14px; } .pd-acts > button { font-size: .72rem; } }

/* ==== DÍA: tarjetas estilo vidrio esmerilado (blanco translúcido sobre fondo celeste suave) ==== */
.pe-grid:has(> .pd-card) { gap: 16px; padding: 16px; border-radius: 30px; background: radial-gradient(55% 75% at 100% 0%, rgba(147, 197, 253, .45), transparent 70%), radial-gradient(50% 70% at 0% 100%, rgba(191, 219, 254, .5), transparent 70%), linear-gradient(135deg, #f5f8fc, #e9f1fb); }
.pd-card { --ink: #0f1b2d; --ink-2: #2b3a4f; --soft: #5b6676; --mute: #8590a0; --line: rgba(15, 27, 45, .08); --line-2: rgba(15, 27, 45, .06); --tint: rgba(236, 241, 247, .9); --field: rgba(255, 255, 255, .55); --card: rgba(255, 255, 255, .6);
  padding: 22px; border: 1px solid rgba(255, 255, 255, .95); border-radius: 26px; color: var(--ink);
  background: linear-gradient(150deg, rgba(255, 255, 255, .9), rgba(246, 249, 253, .7));
  -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 0 0 1px rgba(15, 27, 45, .04), 0 18px 40px -22px rgba(30, 58, 95, .3); }
@media (hover: hover) { .pd-card:hover { transform: translateY(-3px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 0 0 1px rgba(15, 27, 45, .05), 0 26px 48px -24px rgba(30, 58, 95, .38); } }
.pd-card .ps-head { gap: 14px; padding-bottom: 4px; border-bottom: 0; }
.pd-card .pe-av { width: 48px; height: 48px; border-radius: 15px; background: rgba(255, 255, 255, .8); color: var(--ink); font-family: var(--sans); font-size: 1.15rem; box-shadow: inset 0 0 0 1px rgba(15, 27, 45, .08), 0 4px 10px -6px rgba(30, 58, 95, .35), 0 0 0 2px #fff, 0 0 0 3.5px var(--acc); }
.pd-card.pe-card--off .pe-av { box-shadow: inset 0 0 0 1px rgba(15, 27, 45, .08), 0 4px 10px -6px rgba(30, 58, 95, .35); }
.pd-card .pe-card__name { font-family: var(--sans); font-stretch: 100%; font-variation-settings: normal; font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; color: var(--ink); }
.pd-card .pe-card__sub { margin-top: 4px; color: var(--soft); font-size: .98rem; line-height: 1.4; }
.pd-card .ps-rate { background: rgba(255, 255, 255, .75); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); }
.pd-card .pe-state--off { color: var(--soft); box-shadow: inset 0 0 0 1px var(--line); }
.pd-card .ps-step { color: var(--mute); }
.pd-card .ps-step i { background: var(--ink); }
.pd-card .ps-stats { border-color: var(--line); border-radius: 16px; background: rgba(255, 255, 255, .55); }
.pd-card .pe-prog__t { border-radius: 14px; background: rgba(255, 255, 255, .6); box-shadow: inset 0 0 0 1px var(--line-2); }
.pd-card .pd-acts > button { background: rgba(255, 255, 255, .6); color: var(--ink); }
.pd-card .pd-acts > button:first-child { border-radius: 16px 0 0 16px; }
.pd-card .pd-acts > button:last-child { border-radius: 0 16px 16px 0; }
@media (hover: hover) { .pd-card .pd-acts > button:hover { background: rgba(255, 255, 255, .95); } }
.pd-card .pd-acts > button:active { background: rgba(255, 255, 255, .95); }
@media (max-width: 480px) { .pe-grid:has(> .pd-card) { padding: 10px; border-radius: 22px; } .pd-card .pe-card__name { font-size: 1.3rem; } }
@media (max-width: 380px) { .pd-card { padding: 16px; border-radius: 22px; } }

/* ==== TAREAS (pestaña Tareas de Empleados, usan .ps-rate de SUELDOS) ==== */
.pt-hint { margin: 4px 0 14px; color: var(--soft); font-size: .88rem; }
/* Tabla: Tarea · Empleado · Hora límite · Días · Editar. Cada empleado tiene su color (pt-k0…k7, "Todos" = pt-kx) */
.pt-table { container-type: inline-size; border: 1px solid var(--line); border-radius: 18px; background: var(--card); overflow: hidden; }
.pt-head, .pt-item { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(140px, .8fr) 214px 96px; align-items: center; gap: 16px; padding: 0 18px; }
.pt-head { min-height: 42px; border-bottom: 1px solid var(--line); background: var(--field); color: var(--mute); font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.pt-list { margin: 0; padding: 0; list-style: none; }
.pt-k0 { --pc: #c2412d; --pb: #fbe9e5; } .pt-k1 { --pc: #2f7d4f; --pb: #e4f3ea; } .pt-k2 { --pc: #2f5fa8; --pb: #e6edf8; } .pt-k3 { --pc: #a8720c; --pb: #f8eed8; }
.pt-k4 { --pc: #7a3f8f; --pb: #f1e6f5; } .pt-k5 { --pc: #0f7f88; --pb: #ddf2f3; } .pt-k6 { --pc: #b8406e; --pb: #f8e5ed; } .pt-k7 { --pc: #6f4a2a; --pb: #f1e9e1; }
.pt-kx { --pc: var(--ink-2); --pb: var(--tint); }
/* Pestañas por empleado (arriba de la tabla): se elige uno y se ven solo sus tareas */
.pt-emps { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.pt-emp { flex: none; display: flex; align-items: center; gap: 10px; min-height: 54px; padding: 8px 12px 8px 8px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); color: var(--ink); font: inherit; text-align: left; cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s; }
.pt-emp__t { min-width: 0; }
.pt-emp__t b { display: block; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .9rem; font-weight: 700; line-height: 1.2; }
.pt-emp__t small { display: block; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--soft); font-size: .72rem; }
.pt-emp em { flex: none; display: grid; place-items: center; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 99px; background: var(--tint); color: var(--soft); font-style: normal; font-size: .75rem; font-weight: 800; font-variant-numeric: tabular-nums; }
@media (hover: hover) { .pt-emp:hover { border-color: var(--pc); } }
.pt-emp.is-on { border-color: var(--pc); background: var(--pb); box-shadow: inset 0 -3px 0 var(--pc); }
.pt-emp.is-on .pt-av { background: var(--pc); color: #fff; box-shadow: none; }
.pt-emp.is-on em { background: var(--pc); color: #fff; }
.pt-emp:focus-visible { outline: 2px solid var(--pc); outline-offset: 2px; }
.pt-empty { margin: 0; }
@media (max-width: 560px) { .pt-emps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); } .pt-emp { min-width: 0; gap: 8px; padding: 7px 8px 7px 7px; } .pt-emp .pt-av { width: 30px; height: 30px; } .pt-emp__t { flex: 1; } .pt-emp__t b, .pt-emp__t small { max-width: none; } .pt-emp em { min-width: 22px; height: 22px; padding: 0 6px; } }
@media (max-width: 440px) { .pt-emps { grid-template-columns: minmax(0, 1fr); gap: 6px; } .pt-emp { min-height: 46px; } }
.pt-item { position: relative; min-height: 70px; padding-block: 12px; transition: background .15s; }
.pt-item + .pt-item { border-top: 1px solid var(--line-2); }
.pt-item::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: var(--pc); }
@media (hover: hover) { .pt-item:hover { background: var(--pb); } }
.pt-main { min-width: 0; }
.pt-name { margin: 0; font-weight: 700; font-size: .98rem; line-height: 1.3; color: var(--ink); overflow-wrap: anywhere; }
.pt-who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.pt-av { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--pb); color: var(--pc); font-family: var(--display); font-weight: 900; font-size: .95rem; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--pc) 22%, transparent); }
.pt-av svg { width: 16px; height: 16px; }
.pt-who__t { min-width: 0; }
.pt-who__t b { display: block; color: var(--ink); font-size: .9rem; font-weight: 700; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt-who__t small { display: inline-block; margin-top: 3px; padding: 1px 7px; border: 1px solid var(--line); border-radius: 6px; color: var(--soft); font-size: .7rem; font-weight: 600; line-height: 1.5; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt-pill { display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px; border-radius: 99px; background: var(--pb); color: var(--pc); font-size: .78rem; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pt-pill::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pt-pill.is-soft { background: var(--tint); color: var(--mute); }
.pt-days small { display: block; margin-bottom: 5px; color: var(--mute); font-size: .6rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
@container (min-width: 821px) { .pt-days small.pt-dl { display: none; } }
.pt-dd { display: flex; gap: 4px; }
.pt-dd i { display: grid; place-items: center; width: 26px; height: 26px; border: 1px solid var(--line); border-radius: 8px; background: transparent; color: var(--mute); font-style: normal; font-size: .7rem; font-weight: 800; }
.pt-dd i.is-on { border-color: transparent; background: var(--pc); color: #fff; }
.pt-ed { display: inline-flex; align-items: center; justify-content: center; gap: 6px; justify-self: end; min-height: 36px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink); font: inherit; font-size: .82rem; font-weight: 700; white-space: nowrap; cursor: pointer; transition: border-color .15s, background .15s, color .15s; }
.pt-ed svg { width: 15px; height: 15px; }
@media (hover: hover) { .pt-ed:hover { border-color: var(--pc); color: var(--pc); background: #fff; } }
.pt-ed:active { background: var(--pb); }
/* angosto (tablet vertical, celular): cada tarea pasa a ser una tarjetita, sin la fila de títulos */
@container (max-width: 820px) {
  .pt-head { display: none; }
  .pt-item { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "main ed" "hora hora" "days days"; gap: 12px 12px; padding: 16px 16px 16px 20px; }
  .pt-main { grid-area: main; } .pt-ed { grid-area: ed; align-self: start; } .pt-hora { grid-area: hora; } .pt-days { grid-area: days; }
  .pt-item::before { top: 14px; bottom: 14px; }
}
@container (max-width: 380px) {
  .pt-item { grid-template-areas: "main ed" "hora hora" "days days"; padding: 14px 12px 14px 16px; }
  .pt-hora { justify-self: start; }
  .pt-ed span { display: none; } .pt-ed { width: 36px; padding: 0; }
  .pt-dd { gap: 3px; } .pt-dd i { width: 100%; max-width: 30px; height: 26px; flex: 1; }
}

/* Empleados → Resumen de 30 días: una tarjeta por empleado (estado · asistencia · tareas · horas) */
.pr-top { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-bottom: 18px; }
.pr-hint { margin: 8px 0 0; color: var(--soft); font-size: .92rem; }
.pr-hint .t-ok { color: var(--ok); } .pr-hint .t-warn { color: var(--warn); } .pr-hint .t-bad { color: var(--red); }
.pr-st { min-width: 0; margin: 0; }
.pr-st dt { color: var(--mute); font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.pr-st dd { margin: 3px 0 0; color: var(--ink); font-family: var(--display); font-size: 1.5rem; font-weight: 800; line-height: 1.05; font-variant-numeric: tabular-nums; }
.pr-st p { margin: 2px 0 0; color: var(--mute); font-size: .78rem; }
.pr-st.is-bad dd { color: var(--red); } .pr-st.is-warn dd { color: var(--warn); }
.pr-tot { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 0; border: 1px solid var(--line); border-radius: 16px; background: var(--card-2); overflow: hidden; }
.pr-tot .pr-st { padding: 14px 16px; border-left: 1px solid var(--line); }
.pr-tot .pr-st:first-child { border-left: 0; }
.pr-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.pr-card { --c: var(--ok); --cb: var(--ok-bg); display: grid; grid-template-columns: minmax(200px, 1.15fr) minmax(0, 1fr) minmax(0, 1fr) minmax(150px, .8fr); border: 1px solid var(--line); border-left: 4px solid var(--c); border-radius: 18px; background: var(--card); box-shadow: var(--shadow); overflow: hidden; }
.pr-card.is-warn { --c: var(--warn); --cb: var(--warn-bg); } .pr-card.is-bad { --c: var(--red); --cb: var(--red-bg); } .pr-card.is-mute { --c: var(--tint-2); --cb: var(--tint); }
.pr-who { display: grid; grid-template-columns: auto minmax(0, 1fr); align-content: start; gap: 4px 12px; padding: 16px 18px; }
.pr-who b { display: block; font-size: 1.05rem; overflow-wrap: anywhere; }
.pr-who small { color: var(--mute); font-size: .78rem; }
.pr-av { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--ink); color: #fff; font-family: var(--display); font-weight: 800; font-size: 1.1rem; }
.pr-est { grid-column: 1 / -1; margin: 10px 0 0; color: var(--soft); font-size: .82rem; line-height: 1.35; }
.pr-est em { display: inline-block; margin: 0 6px 4px 0; padding: 3px 10px; border-radius: 99px; background: var(--cb); color: var(--c); font-style: normal; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.pr-card.is-mute .pr-est em { color: var(--soft); }
.pr-grp { min-width: 0; padding: 16px 18px; border-left: 1px solid var(--line-2); }
.pr-grp h3 { display: flex; align-items: center; gap: 6px; margin: 0 0 12px; color: var(--ink-2); font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.pr-grp h3 svg { width: 16px; height: 16px; color: var(--mute); }
.pr-grp dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; }
.pr-grp--h { background: var(--field); }
.pr-h { margin: 0 0 10px; color: var(--soft); }
.pr-h b { color: var(--ink); font-family: var(--display); font-size: 1.9rem; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.pr-bar { display: block; height: 7px; border-radius: 99px; background: var(--tint); overflow: hidden; }
.pr-bar i { display: block; height: 100%; border-radius: inherit; background: var(--ok); }
@media (max-width: 1180px) {
  .pr-card { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pr-who { grid-column: 1 / -1; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; border-bottom: 1px solid var(--line-2); }
  .pr-est { grid-column: auto; margin: 0; text-align: right; max-width: 260px; }
  .pr-grp:nth-of-type(2) { border-left: 0; }
  .pr-grp--h { grid-column: 1 / -1; display: grid; grid-template-columns: auto auto minmax(0, 1fr); align-items: center; gap: 14px; border-left: 0; border-top: 1px solid var(--line-2); }
  .pr-grp--h h3, .pr-h { margin: 0; }
}
@media (max-width: 760px) {
  .pr-tot { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pr-tot .pr-st { border-left: 0; border-top: 1px solid var(--line); }
  .pr-tot .pr-st:nth-child(even) { border-left: 1px solid var(--line); }
  .pr-tot .pr-st:first-child, .pr-tot .pr-st:nth-child(2) { border-top: 0; }
  .pr-tot .pr-st:last-child { grid-column: 1 / -1; border-left: 0; }
  .pr-who { grid-template-columns: auto minmax(0, 1fr); }
  .pr-est { grid-column: 1 / -1; text-align: left; max-width: none; margin-top: 6px; }
}
@media (max-width: 480px) {
  .pr-card { grid-template-columns: minmax(0, 1fr); }
  .pr-grp { border-left: 0; border-top: 1px solid var(--line-2); }
  .pr-who { border-bottom: 0; }
  .pr-grp--h { grid-template-columns: auto minmax(0, 1fr); }
  .pr-grp--h h3 { grid-column: 1 / -1; }
  .pr-who, .pr-grp { padding: 14px; }
  .pr-st dd { font-size: 1.3rem; }
}

/* ==== MODO NOCTURNO ==== */
/* Invierte el panel entero (cubre todos los colores fijos) y vuelve a dar vuelta lo que ya es oscuro o es foto */
html[data-theme="dark"] { filter: invert(.9) hue-rotate(180deg); background: #fff; }
html[data-theme="dark"] :is(img, video, canvas, iframe, picture, .side, .leaflet-container, .psec2__h, .mtop) { filter: invert(1) hue-rotate(180deg); }
html[data-theme="dark"] .side :is(img, video, canvas, picture) { filter: none; }
.avisos[aria-pressed="true"]#temaTap { color: #000; }

/* ==== PORTADAS (grupos Hero, Ubicación, Sobre nosotros) ==== */
.pgrp { margin-top: 34px; }
.pgrp:first-of-type { margin-top: 18px; }
.pgrp__t { margin: 0; font-size: 1.15rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }

/* ==== SUGERENCIAS (editor con vista previa de la tarjeta del carrito) ==== */
.modal__box.is-wide:has(.sgform) { width: min(100%, 900px); }
.sgform { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.sgform__main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.sgform__side { order: -1; }
@media (min-width: 860px) {
  .sgform { grid-template-columns: minmax(0, 1fr) 260px; gap: 24px; align-items: start; }
  .sgform__side { order: 0; position: sticky; top: 0; }
}
.sgprev__l { margin: 0 0 8px; color: var(--ink-2); font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
/* la misma tarjeta dorada del carrito de la página */
.sgprev { display: grid; grid-template-columns: minmax(0, 44%) minmax(0, 1fr); align-items: center; gap: 10px 12px; padding: 10px 12px 12px 10px; border: 1px solid rgba(150, 102, 18, .45); border-radius: 18px; background: linear-gradient(135deg, rgb(252, 229, 150) 0%, rgb(240, 196, 92) 48%, rgb(214, 152, 46) 100%); color: rgb(52, 32, 8); box-shadow: 0 1px 0 rgba(255, 255, 255, .7) inset, 0 12px 26px -10px rgba(150, 95, 10, .55); }
.sgprev.is-noimg { grid-template-columns: 1fr; }
.sgprev__media { aspect-ratio: 720 / 560; overflow: hidden; border-radius: 12px; background: rgba(110, 66, 6, .15); box-shadow: 0 6px 14px rgba(110, 66, 6, .3); }
.sgprev__media[hidden] { display: none; }
.sgprev__media { position: relative; background: #fff; }
.sgprev__media img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; }
.sgprev__media img.sgprev__blur { object-fit: cover; filter: blur(14px) saturate(1.1); transform: scale(1.25); opacity: .55; }
.sgprev__body { min-width: 0; }
.sgprev__k { margin: 0; font-size: 11px; font-weight: 700; letter-spacing: .06em; line-height: 1.25; text-transform: uppercase; color: rgb(122, 72, 6); overflow-wrap: anywhere; }
.sgprev__k span { color: rgb(42, 26, 8); }
.sgprev__k:empty { display: none; }
.sgprev__t { margin: 2px 0 0; font-weight: 800; font-size: 15px; line-height: 1.15; color: rgb(42, 26, 8); overflow-wrap: anywhere; }
.sgprev__p { margin: 6px 0 0; font-weight: 800; font-size: 20px; line-height: 1; color: rgb(42, 26, 8); }
.sgprev__btn { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; min-height: 40px; border-radius: 999px; background: rgb(42, 26, 8); color: rgb(252, 222, 140); font-weight: 700; font-size: 14px; }
/* celular: la vista previa arriba y más chica, para que los campos queden a mano */
@media (max-width: 859px) {
  .sgform__side { max-width: 360px; width: 100%; margin: 0 auto; }
}

/* ==== COCINA: comanda simple (Comanda · #código, sucursal y hora, cliente, tipo, productos y aclaraciones) ==== */
.kc[class*="kc--ch-"] .kc__head { flex-wrap: nowrap; align-items: center; gap: 8px; }
.kc__ttl { min-width: 0; font-weight: 900; font-size: 1.15rem; letter-spacing: .04em; text-transform: uppercase; color: var(--sl-900, #111); overflow-wrap: anywhere; }
.kc__head .kc__time { margin: 0 0 0 auto; flex-shrink: 0; }
.kc__meta { margin: -2px 0 0; font-style: italic; color: var(--sl-600, #555); font-size: .95rem; }
.kc__who { display: grid; gap: 4px; padding-bottom: 10px; border-bottom: 1px solid var(--sl-200, #ddd); }
.kc__who p { display: flex; align-items: center; gap: 8px; margin: 0; font-weight: 600; font-size: 1.05rem; overflow-wrap: anywhere; }
.kc__who b { font-weight: 900; font-size: 1.6rem; line-height: 1.15; letter-spacing: -.01em; color: var(--sl-900, #111); }
.kc__who .kc__ped { justify-self: start; display: inline-flex; align-items: center; gap: 10px; margin-top: 4px; padding: 6px 18px 6px 12px; border-radius: 12px; background: var(--ch, #e8590c); color: #fff; font-weight: 900; font-size: 1.35rem; line-height: 1.1; text-transform: uppercase; letter-spacing: .14em; box-shadow: 0 6px 14px -8px var(--ch, #e8590c); }
.kc__who .kc__ped svg { width: 24px; height: 24px; color: #fff; }
@media (max-width: 380px) { .kc__who .kc__ped { font-size: 1.15rem; padding: 5px 14px 5px 10px; } }
/* hora del pedido: en el encabezado, al lado de cuánto hace */
.kc__hora { margin-left: auto; flex-shrink: 0; font-weight: 800; font-size: 1rem; color: var(--sl-700, #444); font-variant-numeric: tabular-nums; }
.kc__head .kc__hora + .kc__time { margin-left: 0; }
.kc__who svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--ch-d, currentColor); }
.kc__acl { padding-top: 10px; border-top: 1px solid var(--sl-200, #ddd); }
.kc__acl h3 { display: flex; align-items: center; gap: 6px; margin: 0 0 4px; font-weight: 900; font-size: .95rem; letter-spacing: .06em; text-transform: uppercase; color: var(--warn, #b45309); }
.kc__acl h3 svg { width: 18px; height: 18px; flex-shrink: 0; }
.kc__acl p { margin: 0; font-weight: 700; font-size: 1.05rem; overflow-wrap: anywhere; }
@media (max-width: 380px) { .kc__ttl { font-size: 1rem; } .kc__who b { font-size: 1.4rem; } }
html.sin-tema #temaTap { display: none; }
/* comanda de la cocina: roja mientras es nueva (Para empezar) y con borde negro marcado cuando ya se está preparando */
.kds .kc--kitchen[class*="kc--ch-"] { border: 3px solid #dc2626; }
.kds .kc--prep[class*="kc--ch-"] { border: 3px solid #000; }
/* ==== PEDIDOS: avisar al delivery (pedido de delivery listo) y lista de deliverys en Delivery ==== */
.ordr { grid-column: 1 / -1; display: grid; gap: 8px; min-width: 0; }
.ordr .oc__h { margin: 0; }
.ordr__cli { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; min-width: 0; }
.ordr__cli > span { color: var(--sl-500, #64748b); font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.ordr__cli > b { font-size: 1.05rem; overflow-wrap: anywhere; }
.ordr__ok { display: flex; align-items: center; gap: 6px; margin: 0; color: #15803d; font-weight: 600; font-size: .95rem; }
.ordr__ok svg { width: 18px; height: 18px; flex-shrink: 0; }
.ordr__btn { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 0 16px; border: 0; border-radius: 12px; background: #e8772e; color: #fff; font: inherit; font-weight: 800; font-size: 1.02rem; cursor: pointer; }
.ordr__btn svg { width: 22px; height: 22px; flex-shrink: 0; }
.ordr__btn span { flex: 1; text-align: left; }
.ordr__btn i { width: 9px; height: 9px; border-right: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor; transform: translateY(-3px) rotate(45deg); transition: transform .2s; }
.ordr__btn.is-open i { transform: translateY(2px) rotate(-135deg); }
.ordr__list { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.ordr__list button { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; width: 100%; min-height: 48px; padding: 8px 14px; border: 1px solid var(--sl-200, #e2e8f0); border-radius: 12px; background: #fff; color: var(--sl-900, #0f172a); font: inherit; text-align: left; cursor: pointer; }
.ordr__list button:active { background: #fff7ed; }
@media (hover: hover) { .ordr__list button:hover { border-color: #e8772e; background: #fff7ed; } }
.ordr__list button > svg { width: 20px; height: 20px; flex-shrink: 0; color: #e8772e; }
.ordr__list b { flex: 1 0 auto; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 800; font-size: 1.02rem; }
.ordr__wa { display: inline-flex; align-items: center; gap: 5px; color: #15803d; font-weight: 700; font-size: .95rem; white-space: nowrap; }
.ordr__wa svg { width: 16px; height: 16px; }
.ordr__none { padding: 10px 12px; border-radius: 10px; background: #fff; color: var(--sl-600, #475569); font-size: .95rem; }
.rider__ic { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 40px; height: 40px; border-radius: 12px; background: #fff7ed; color: #e8772e; }
.rider__ic svg { width: 22px; height: 22px; }
/* ==== MOZO (mesas, pedidos listos para llevar) ==== */
.mz { max-width: 1080px; margin: 0 auto; padding-bottom: max(24px, env(safe-area-inset-bottom)); }
.mz-head { padding: 4px 2px 0; }
.mz-kick { margin: 0; color: var(--mute); font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; overflow-wrap: anywhere; }
.mz-title { margin: 8px 0 0; font-family: var(--display); font-size: clamp(1.9rem, 7vw, 2.8rem); font-stretch: 82%; font-weight: 900; line-height: 1; }
.mz-sub { margin: 8px 0 0; color: var(--soft); font-size: 1rem; line-height: 1.4; }
.mz-err { margin: 14px 0 0; padding: 11px 14px; border-radius: 12px; background: var(--red-bg); color: var(--red); font-weight: 700; }
.mz-sec { margin-top: 26px; }
.mz-h { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-family: var(--display); font-size: 1.15rem; font-weight: 800; }
.mz-h span { min-width: 26px; padding: 2px 8px; border-radius: 99px; background: var(--tint); color: var(--ink-2); font-family: var(--sans); font-size: .85rem; text-align: center; }
.mz-sec--ready .mz-h span { background: var(--ok); color: #fff; }
/* Mesas: botones grandes, fáciles de tocar con una mano */
.mz-mesas { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(104px, 30%), 1fr)); gap: 10px; }
.mz-mesa { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 104px; padding: 12px 6px; border: 2px solid var(--line); border-radius: 18px; background: var(--card); color: var(--ink); text-align: center; text-decoration: none; box-shadow: var(--shadow); -webkit-tap-highlight-color: transparent; touch-action: manipulation; transition: transform .12s, border-color .15s; }
.mz-mesa:active { transform: scale(.96); }
.mz-mesa:focus-visible { outline: 3px solid var(--tan); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .mz-mesa:hover { border-color: var(--tan); } }
.mz-mesa__k { color: var(--mute); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; }
.mz-mesa__n { font-family: var(--display); font-size: 2.3rem; font-weight: 900; line-height: 1; }
.mz-mesa__name { max-width: 100%; color: var(--soft); font-size: .8rem; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mz-mesa__st { margin-top: 4px; padding: 3px 9px; border-radius: 99px; background: var(--warn-bg); color: var(--warn); font-size: .72rem; font-weight: 800; }
.mz-mesa.is-busy { border-color: rgba(163, 98, 12, .35); }
.mz-mesa.is-ready { border-color: var(--ok); background: var(--ok-bg); }
.mz-mesa.is-ready .mz-mesa__st { background: var(--ok); color: #fff; }
/* el mozo dejó productos cargados en esa mesa y no los mandó a la caja */
.mz-mesa__draft { margin-top: 4px; max-width: 100%; padding: 3px 9px; border-radius: 99px; background: var(--red); color: #fff; font-size: .72rem; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Listos para llevar */
.mz-ready { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.mz-r { display: flex; flex-direction: column; padding: 16px; border: 2px solid var(--ok); border-radius: 18px; background: var(--card); box-shadow: var(--shadow); }
.mz-r.is-new { animation: mtIn .35s ease-out; }
.mz-r__top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.mz-r__mesa { margin: 0; font-family: var(--display); font-size: 1.6rem; font-weight: 900; line-height: 1.05; overflow-wrap: anywhere; }
.mz-r__code { flex: none; color: var(--mute); font-weight: 700; }
.mz-items { margin: 10px 0 0; padding: 0; list-style: none; }
.mz-items li { display: flex; gap: 8px; padding: 5px 0; border-top: 1px solid var(--line-2); font-size: 1rem; line-height: 1.3; }
.mz-items li:first-child { border-top: 0; }
.mz-items b { flex: none; min-width: 22px; color: var(--tan-d); }
.mz-r__by { margin: 8px 0 0; color: var(--mute); font-size: .85rem; }
.mz-r__btn { margin-top: auto; min-height: 52px; padding: 12px 16px; border: 0; border-radius: 14px; background: var(--ok); color: #fff; font: 800 1.02rem var(--sans); cursor: pointer; touch-action: manipulation; }
.mz-r .mz-items + .mz-r__btn, .mz-r__by + .mz-r__btn { margin-top: 14px; }
.mz-r__btn:disabled { opacity: .6; cursor: default; }
.mz-r__foot { display: flex; flex-direction: column; margin-top: auto; padding-top: 14px; }
.mz-r__foot .mz-r__btn { margin-top: 0; width: 100%; }
.mz-r .mz-r__mesa { color: var(--fd-ready); }
.mz-r--beb .mz-r__mesa { color: var(--fd-busy); }
/* En preparación */
.mz-curso { margin: 0; padding: 0; list-style: none; border: 1px solid var(--line); border-radius: 16px; background: var(--card); overflow: hidden; }
.mz-c { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-top: 1px solid var(--line-2); }
.mz-c:first-child { border-top: 0; }
.mz-c__main { flex: 1; min-width: 0; }
.mz-c__mesa { margin: 0; font-weight: 800; }
.mz-c__mesa small { color: var(--mute); font-weight: 600; }
.mz-c__que { margin: 2px 0 0; color: var(--soft); font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mz-c__st { flex: none; padding: 4px 10px; border-radius: 99px; background: var(--tint); color: var(--ink-2); font-size: .75rem; font-weight: 800; }
.mz-c__st.is-kitchen, .mz-c__st.is-prep { background: var(--warn-bg); color: var(--warn); }
.mz .pe-push { display: flex; margin: 24px 0 0; }
@media (min-width: 700px) { .mz-mesas { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; } .mz-mesa { min-height: 120px; } }
.mz-r__note { margin: 8px 0 0; padding: 8px 10px; border-radius: 10px; background: var(--warn-bg); color: var(--warn); font-size: .92rem; font-weight: 600; overflow-wrap: anywhere; }
.mz-r__note + .mz-r__btn { margin-top: 14px; }
/* Te llaman: la mesa tocó «Llamar al mozo» (quieren sumar algo al pedido) */
.mz-sec--call .mz-h span { background: var(--red); color: #fff; }
.mz-calls { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.mz-call { display: flex; flex-direction: column; padding: 16px; border: 2px solid var(--red); border-radius: 18px; background: var(--red-bg); box-shadow: var(--shadow); animation: mtIn .35s ease-out; }
.mz-call__top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.mz-call__mesa { margin: 0; font-family: var(--display); font-size: 1.6rem; font-weight: 900; line-height: 1.05; overflow-wrap: anywhere; }
.mz-call__t { flex: none; color: var(--red); font-size: .85rem; font-weight: 800; }
.mz-call__txt { margin: 6px 0 0; color: var(--ink-2); line-height: 1.35; overflow-wrap: anywhere; }
.mz-call__b { display: flex; gap: 8px; margin-top: 14px; }
.mz-call__go, .mz-call__ok { display: flex; align-items: center; justify-content: center; min-height: 52px; padding: 10px 14px; border-radius: 14px; font: 800 1rem var(--sans); text-align: center; text-decoration: none; cursor: pointer; touch-action: manipulation; }
.mz-call__go { flex: 1 1 auto; border: 0; background: var(--red); color: #fff; }
.mz-call__ok { flex: none; border: 2px solid var(--red); background: var(--card); color: var(--red); }
.mz-call__ok:disabled { opacity: .6; cursor: default; }
.mz-mesa.is-call { border-color: var(--red); background: var(--red-bg); animation: mzLlama 1.4s ease-in-out infinite; }
.mz-mesa.is-call .mz-mesa__st { background: var(--red); color: #fff; }
@keyframes mzLlama { 50% { box-shadow: 0 0 0 6px rgba(200, 40, 40, .18); } }
@media (prefers-reduced-motion: reduce) { .mz-mesa.is-call, .mz-call { animation: none; } }

/* ==== DOS CAJAS: etiqueta al lado del título (Caja 1 / Caja 2) ==== */
.cajatag { display: inline-flex; align-items: center; vertical-align: middle; margin-left: 10px; padding: 5px 12px; border-radius: 999px; background: var(--ink); color: #fff; font-family: inherit; font-size: .85rem; font-weight: 700; letter-spacing: .02em; line-height: 1.1; text-transform: none; white-space: nowrap; }
.cajatag--2 { background: var(--red); }
@media (max-width: 480px) { .cajatag { display: flex; width: max-content; max-width: 100%; margin: 6px 0 0; white-space: normal; } }

/* ==== EMPLEADOS: barra de secciones (Resumen · Tareas · Asistencia · Equipo · Horas · Locales) ====
   Estilo "segmented control" (como Linear / iOS / Material 3), íconos Lucide.
   Blanca con borde fino; la sección elegida es una píldora negra (como el botón "+ Empleado").
   En celular y tablet flota abajo con efecto vidrio (respeta la barra de inicio del iPhone). */
.pe-tabs { --pe-red: #2e2520; --pe-red-2: #0b0908; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; margin-top: 18px; padding: 6px; border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(180deg, #fff, #fbf8f4); box-shadow: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 1px 2px rgba(36, 28, 23, .05), 0 14px 30px -22px rgba(36, 28, 23, .35); }
.pe-tab { position: relative; display: flex; align-items: center; justify-content: center; gap: 9px; min-width: 0; min-height: 50px; padding: 8px 10px; border: 0; border-radius: 14px; background: none; color: var(--soft); font: 600 .92rem/1 var(--sans); letter-spacing: .01em; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; transition: color .2s, background-color .2s; }
.pe-tab__ic { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--tint); color: var(--ink-2); font-style: normal; transition: background-color .2s, color .2s, transform .25s cubic-bezier(.2, .8, .2, 1); }
.pe-tab svg { width: 18px; height: 18px; stroke-width: 2; }
.pe-tab span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pe-tab.is-on { background: linear-gradient(140deg, var(--pe-red), var(--pe-red-2)); color: #fff; box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 10px 20px -10px rgba(11, 9, 8, .7); animation: peTabIn .3s cubic-bezier(.2, .8, .2, 1); }
.pe-tab.is-on .pe-tab__ic { background: rgba(255, 255, 255, .16); color: #fff; }
@keyframes peTabIn { from { transform: scale(.94); opacity: .6; } }
.pe-tab:focus-visible { outline: 2px solid var(--pe-red); outline-offset: 2px; }
.pe-tab:active { transform: scale(.97); }
@media (hover: hover) { .pe-tab:not(.is-on):hover { background: var(--tint); color: var(--ink); } .pe-tab:not(.is-on):hover .pe-tab__ic { background: #fff; transform: translateY(-1px); } }
@media (prefers-reduced-motion: reduce) { .pe-tab.is-on { animation: none; } }
/* notebook angosta: solo el ícono chico al lado del nombre */
@media (min-width: 1024px) and (max-width: 1280px) { .pe-tab { flex-direction: column; gap: 4px; padding: 7px 2px; font-size: .82rem; } .pe-tab__ic { width: 30px; height: 26px; background: none; } }
.pe-panel { min-width: 0; }
.pe-sub { display: flex; width: max-content; max-width: 100%; margin-top: 18px; overflow-x: auto; scrollbar-width: none; }
.pe-sub::-webkit-scrollbar { display: none; }
.pe-sub button { flex: none; white-space: nowrap; }
.pe-sub + *, .pe-sub + .pe-bar + *, .pe-sub + .pe-raras + .pe-bar { margin-top: 14px; }
@media (max-width: 1023px) {
  .pe-tabs { position: fixed; left: max(10px, env(safe-area-inset-left)); right: max(10px, env(safe-area-inset-right)); bottom: max(10px, env(safe-area-inset-bottom)); z-index: 30; max-width: 640px; margin: 0 auto; gap: 2px; padding: 5px; border-color: rgba(29, 23, 19, .08); border-radius: 24px; background: rgba(255, 255, 255, .96); box-shadow: 0 1px 0 rgba(255, 255, 255, .8) inset, 0 20px 44px -14px rgba(29, 23, 19, .38), 0 2px 6px rgba(29, 23, 19, .06); }
  @supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) { .pe-tabs { background: rgba(255, 255, 255, .78); -webkit-backdrop-filter: blur(18px) saturate(1.7); backdrop-filter: blur(18px) saturate(1.7); } }
  .pe-tab { flex-direction: column; gap: 3px; min-height: 58px; padding: 6px 0 7px; border-radius: 19px; font-size: clamp(.6rem, 2.7vw, .76rem); letter-spacing: 0; }
  .pe-tab__ic { width: 30px; height: 26px; border-radius: 9px; background: none; }
  .pe-tab svg { width: clamp(19px, 5.6vw, 22px); height: clamp(19px, 5.6vw, 22px); }
  .pe-tab.is-on .pe-tab__ic { background: none; }
  body[data-view="personal"] .main { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
  .view[data-view="personal"] { animation: none; } /* la animación (transform) movería la barra fija */
  body[data-view="personal"] .toast, body[data-view="personal"] .selbar { bottom: calc(86px + env(safe-area-inset-bottom)); }
}
/* celular acostado: poco alto, la barra se achica (ícono al costado) */
@media (max-width: 1023px) and (max-height: 500px) and (orientation: landscape) {
  .pe-tab { flex-direction: row; gap: 6px; min-height: 42px; padding: 4px 2px; font-size: .74rem; }
  .pe-tab svg { width: 18px; height: 18px; }
  .pe-tab__ic { width: 22px; height: 22px; }
  body[data-view="personal"] .main { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
  body[data-view="personal"] .toast, body[data-view="personal"] .selbar { bottom: calc(66px + env(safe-area-inset-bottom)); }
}
/* Equipo: datos de cada uno */
.pq-dl { display: grid; gap: 8px; margin: 14px 0 0; }
.pq-dl > div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 8px; border-bottom: 1px dashed var(--line); }
.pq-dl dt { display: inline-flex; align-items: center; gap: 7px; flex: none; color: var(--soft); font-size: .82rem; }
.pq-dl dt svg { width: 16px; height: 16px; }
.pq-dl dd { margin: 0; min-width: 0; color: var(--ink); font-weight: 700; font-size: .9rem; text-align: right; overflow-wrap: anywhere; }
.pq-dl .is-warn { color: var(--warn); }
.pq-card .ps-head { align-items: flex-start; }
/* Locales: una tarjeta por sucursal */
.pl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 16px; margin: 18px 0 0; padding: 0; list-style: none; }
.pl-card { padding: 18px; }
.pl-h { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.pl-ic { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 15px; background: var(--side); color: var(--tan); }
.pl-ic svg { width: 24px; height: 24px; }
.pl-h h2 { margin: 0; font-family: var(--display); font-weight: 800; font-stretch: 68%; font-variation-settings: "wdth" 68; font-size: 1.35rem; line-height: 1; text-transform: uppercase; overflow-wrap: anywhere; }
.pl-h p { margin: 3px 0 0; color: var(--soft); font-size: .85rem; }
.pl-now { flex: none; margin: 0; text-align: center; }
.pl-now b { display: block; color: var(--ok); font-family: var(--display); font-weight: 800; font-size: 1.8rem; line-height: 1; }
.pl-now small { color: var(--mute); font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.pl-list { display: grid; gap: 4px; margin: 10px 0 0; padding: 0; list-style: none; }
.pl-list li { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 8px 0; }
.pl-list .pe-av { --acc: var(--line); width: 38px; height: 38px; border-radius: 12px; font-size: 1rem; }
.pl-list b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-list small { display: block; color: var(--soft); font-size: .8rem; }
.pl-list .grow, .pq-card .ps-head .grow { flex: 1; min-width: 0; }
.pl-list .pe-state { --acc: var(--mute); align-self: center; max-width: 42%; }
.pl-list .pe-state--ok { --acc: var(--ok); }
.pl-list .pe-state--bad { --acc: var(--red); }
.pl-list .pe-state--wait { --acc: var(--warn); }

/* ==== EMPLEADOS: Resumen (saludo, 4 números, en el local ahora, actividad) ==== */
.ph-hero { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 18px; padding: 24px clamp(18px, 3vw, 30px); border-radius: 22px; background: radial-gradient(120% 140% at 100% 0, rgba(227, 164, 111, .2), transparent 55%), var(--side); color: #f6efe7; box-shadow: 0 24px 40px -28px rgba(11, 9, 8, .7); overflow: hidden; }
.ph-hero__t { min-width: 0; }
.ph-eye { margin: 0 0 8px; color: var(--tan); font-size: .72rem; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; }
.ph-hero h2 { margin: 0; font-family: var(--display); font-weight: 800; font-stretch: 68%; font-variation-settings: "wdth" 68; font-size: clamp(1.7rem, 5.4vw, 2.5rem); line-height: .98; letter-spacing: .01em; text-transform: uppercase; overflow-wrap: anywhere; }
.ph-sub { margin: 8px 0 0; color: rgba(246, 239, 231, .62); font-size: .98rem; }
.ph-clock { flex: none; margin: 0; text-align: right; }
.ph-clock b { display: block; font-family: var(--display); font-weight: 700; font-size: clamp(1.8rem, 5vw, 2.6rem); line-height: 1; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.ph-clock small { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; color: rgba(246, 239, 231, .55); font-size: .68rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.ph-clock small::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #4fbf78; box-shadow: 0 0 0 3px rgba(79, 191, 120, .22); animation: phPulse 2s infinite; }
@keyframes phPulse { 50% { box-shadow: 0 0 0 6px rgba(79, 191, 120, 0); } }
.ph-back { flex: none; background: var(--tan); color: var(--ink); }
.ph-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 16px; }
.ph-k { --k: var(--mute); --k-bg: var(--tint); display: flex; flex-direction: column; min-width: 0; padding: 18px; border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(180deg, #fff, #fbf8f4); box-shadow: var(--shadow); }
.ph-k[role="button"] { cursor: pointer; transition: transform .2s, box-shadow .2s; }
@media (hover: hover) { .ph-k[role="button"]:hover { transform: translateY(-2px); box-shadow: 0 18px 30px -22px rgba(36, 28, 23, .45); } }
.ph-k--ok { --k: var(--ok); --k-bg: var(--ok-bg); }
.ph-k--tan { --k: var(--tan-d); --k-bg: var(--tan-bg); }
.ph-k--warn { --k: var(--warn); --k-bg: var(--warn-bg); }
.ph-k--bad { --k: var(--red); --k-bg: var(--red-bg); }
.ph-k__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.ph-k__l { margin: 4px 0 0; min-width: 0; color: var(--soft); font-size: .72rem; font-weight: 700; letter-spacing: .16em; line-height: 1.35; text-transform: uppercase; }
.ph-k__ic { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: var(--k-bg); color: var(--k); }
.ph-k__ic svg { width: 21px; height: 21px; stroke-width: 1.9; }
.ph-k__n { margin: 14px 0 0; color: var(--ink); font-family: var(--display); font-weight: 800; font-size: 2.6rem; line-height: 1; font-variant-numeric: tabular-nums; }
.ph-k--bad .ph-k__n, .ph-k--warn .ph-k__n { color: var(--k); }
.ph-k__s { margin: 8px 0 0; color: var(--soft); font-size: .86rem; }
.ph-box { margin-top: 16px; padding: 0; overflow: hidden; }
.ph-box__h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.ph-box__h h3 { display: flex; align-items: center; gap: 10px; margin: 0; font-family: var(--display); font-weight: 800; font-stretch: 68%; font-variation-settings: "wdth" 68; font-size: 1.35rem; line-height: 1; text-transform: uppercase; }
.ph-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--line); }
.ph-dot.is-live { background: var(--ok); box-shadow: 0 0 0 4px var(--ok-bg); }
.ph-count { display: grid; place-items: center; min-width: 34px; height: 34px; padding: 0 10px; border-radius: 99px; background: var(--ok-bg); color: var(--ok); font-weight: 800; }
.ph-list, .ph-act { margin: 0; padding: 0; list-style: none; }
.ph-list li, .ph-act li { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 14px 20px; border-top: 1px solid var(--line-2); }
.ph-list li:first-child, .ph-act li:first-child { border-top: 0; }
.ph-list .pe-av { --acc: var(--ok); width: 40px; height: 40px; border-radius: 13px; font-size: 1.05rem; }
.ph-list .grow, .ph-act .grow { flex: 1; min-width: 0; }
.ph-list b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ph-list small { color: var(--soft); font-size: .82rem; }
.ph-since { flex: none; color: var(--soft); font-size: .82rem; }
.ph-since b { display: inline; color: var(--ink); }
.ph-act__ic { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--tint); color: var(--ink-2); }
.ph-act__ic svg { width: 18px; height: 18px; stroke-width: 2.2; }
.ph-act--in .ph-act__ic { background: var(--ok-bg); color: var(--ok); }
.ph-act--t .ph-act__ic { background: var(--blue-bg); color: var(--blue); }
.ph-act p { margin: 0; color: var(--soft); line-height: 1.35; overflow-wrap: anywhere; }
.ph-act p b { color: var(--ink); }
.ph-act p small { display: block; color: var(--mute); font-size: .78rem; }
.ph-act time { flex: none; color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.ph-empty { display: flex; flex-direction: column; align-items: center; padding: 34px 20px 38px; text-align: center; }
.ph-empty span { display: grid; place-items: center; width: 72px; height: 72px; margin-bottom: 14px; border-radius: 50%; background: var(--tan-bg); color: var(--tan-d); }
.ph-empty svg { width: 30px; height: 30px; }
.ph-empty b { font-size: 1.1rem; }
.ph-empty p { margin: 6px 0 0; color: var(--soft); }
.ph-box + .pe-push, .ph-box + .pe-raras, .ph-box + section, .ph-box + .pr { margin-top: 16px; }
@media (max-width: 900px) { .ph-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }
@media (max-width: 480px) {
  .ph-hero { flex-direction: column; align-items: flex-start; padding: 22px 18px; }
  .ph-clock { text-align: left; }
  .ph-k { padding: 14px; border-radius: 18px; }
  .ph-k__l { font-size: .64rem; letter-spacing: .12em; }
  .ph-k__ic { width: 36px; height: 36px; border-radius: 11px; }
  .ph-k__ic svg { width: 18px; height: 18px; }
  .ph-k__n { margin-top: 10px; font-size: 2.1rem; }
  .ph-k__s { font-size: .78rem; }
  .ph-list li, .ph-act li { padding: 12px 16px; }
  .ph-box__h { padding: 16px; }
}
@media (max-width: 340px) { .ph-kpis { gap: 8px; } .ph-k { padding: 12px; } .ph-k__ic { display: none; } }

/* ==== EMPLEADOS: Asistencia (adentro ahora, filtros por fecha y empleado, llegadas y salidas por día) ==== */
.pa-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 20px; }
.pa-t { margin: 0; font-family: var(--display); font-weight: 800; font-stretch: 68%; font-variation-settings: "wdth" 68; font-size: clamp(1.8rem, 5vw, 2.3rem); line-height: 1; text-transform: uppercase; }
.pa-sub { margin: 6px 0 0; color: var(--soft); }
.pa-reg { flex: none; }
.pa-in { margin-top: 16px; padding: 18px 20px; }
.pa-lab { display: flex; align-items: center; gap: 10px; margin: 0; color: var(--soft); font-size: .74rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.pa-lab b { color: var(--ink); }
.pa-none { margin: 10px 0 0; color: var(--soft); }
.pa-people { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.pa-people li { display: flex; align-items: center; gap: 10px; min-width: 0; max-width: 100%; padding: 6px 14px 6px 6px; border: 1px solid var(--line); border-radius: 99px; background: var(--ok-bg); }
.pa-people .pe-av { --acc: var(--ok); width: 32px; height: 32px; border-radius: 50%; font-size: .9rem; box-shadow: none; }
.pa-people b { display: block; font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pa-people small { display: block; color: var(--soft); font-size: .76rem; }
.pa-fil { display: grid; gap: 16px; margin-top: 16px; padding: 18px 20px; }
.pa-modo { display: flex; width: 100%; }
.pa-modo button { flex: 1 1 0; justify-content: center; }
.pa-modo .pe-n { margin-left: 6px; }
.pa-dates { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pa-f { display: grid; gap: 7px; min-width: 0; }
.pa-f > span:first-child { color: var(--mute); font-size: .7rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.pa-f .inp, .pa-f select { width: 100%; min-width: 0; font-size: 16px; }
.pa-f input[type="date"] { min-height: 48px; -webkit-appearance: none; appearance: none; }
.pa-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pa-chip { min-height: 40px; padding: 0 16px; border: 1px solid var(--line); border-radius: 99px; background: #fff; color: var(--soft); font: 700 .8rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; cursor: pointer; touch-action: manipulation; transition: background-color .2s, color .2s, border-color .2s; }
.pa-chip.is-on { border-color: var(--ink); background: var(--ink); color: #fff; }
@media (hover: hover) { .pa-chip:not(.is-on):hover { border-color: var(--ink-2); color: var(--ink); } }
.pa-day .ph-box__h h3 { font-size: 1.2rem; }
.pa-cnt { flex: none; color: var(--soft); font-size: .8rem; text-align: right; }
.pa-del { flex: none; width: 34px; height: 34px; opacity: .55; }
@media (hover: hover) { .pa-del:hover { opacity: 1; } }
.pa-empty-b { margin-top: 18px; }
.pa-fil + .pe-raras, .pa-fil + .pe-ok, .pa-fil + .ph-box { margin-top: 16px; }
@media (max-width: 480px) {
  .pa-head { align-items: flex-start; }
  .pa-reg { width: 100%; justify-content: center; }
  .pa-in, .pa-fil { padding: 16px; }
  .pa-dates { gap: 10px; }
  .pa-chip { flex: 1 1 0; padding: 0 8px; letter-spacing: .06em; }
  .pa-cnt { font-size: .72rem; }
}
.pa-sel { display: flex; width: 100%; } .pa-sel select { width: 100%; min-width: 0; font-size: 16px; }
.pa-chip { white-space: nowrap; }
@media (max-width: 380px) {
  .pa-dates { grid-template-columns: 1fr; }
  .pa-chips { gap: 6px; }
  .pa-chip { min-height: 38px; padding: 0 4px; font-size: .7rem; letter-spacing: .03em; }
  .pa-in, .pa-fil { padding: 14px; }
}
.pa-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.pa-head + .pa-in { margin-top: 16px; }
@media (max-width: 480px) { .pa-btns { width: 100%; } .pa-btns .btn { flex: 1 1 100%; justify-content: center; } }

/* Registrar fichada: Entrada / Salida como selector */
.pa-tipo { display: inline-flex; margin: 4px 0 14px; }
.pa-tipo label { display: inline-flex; align-items: center; min-height: 42px; padding: 0 22px; border-radius: 999px; color: var(--soft); font-weight: 700; font-size: .95rem; cursor: pointer; transition: background-color .15s, color .15s; }
.pa-tipo label.is-on { background: var(--ink); color: #fff; box-shadow: 0 6px 14px -8px rgba(11, 9, 8, .6); }
.pa-tipo input { position: absolute; opacity: 0; pointer-events: none; }
.pa-tipo label:focus-within { outline: 2px solid var(--ink); outline-offset: 2px; }
.pa-dh .inp, input[name="motivo"] { font-size: 16px; }
@media (max-width: 380px) { .pa-dh { grid-template-columns: 1fr; } }

/* ==== EMPLEADOS: Equipo (buscador, activos/inactivos, tarjeta por persona) ==== */
.pq-search { position: relative; display: block; }
.pq-search svg { position: absolute; left: 16px; top: 50%; width: 19px; height: 19px; color: var(--mute); transform: translateY(-50%); pointer-events: none; }
.pq-search .inp { width: 100%; min-height: 50px; padding-left: 46px; font-size: 16px; }
.pq-k { margin-left: 6px; padding: 2px 7px; border-radius: 99px; background: var(--tint-2); color: var(--soft); font-size: .72rem; font-weight: 800; }
.is-on .pq-k { background: var(--ink); color: #fff; }
.pq-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 14px; margin: 16px 0 0; padding: 0; list-style: none; }
.pq-c { display: flex; flex-direction: column; gap: 14px; min-width: 0; padding: 18px; border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(180deg, #fff, #fbf8f4); box-shadow: var(--shadow); }
.pq-c[hidden] { display: none; }
.pq-c.is-off { opacity: .78; }
.pq-top { display: flex; align-items: center; gap: 14px; min-width: 0; }
.pq-top .grow { flex: 1; min-width: 0; }
.pq-av { flex: none; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: radial-gradient(circle at 30% 25%, #3a2c24, var(--side)); color: var(--tan); font-family: var(--display); font-weight: 800; font-size: 1.35rem; box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--tan-line); }
.pq-c.is-off .pq-av { color: rgba(246, 239, 231, .55); box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--line); }
.pq-n { margin: 0; color: var(--ink); font-weight: 800; font-size: 1.15rem; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pq-s { margin: 3px 0 0; color: var(--soft); font-size: .86rem; overflow-wrap: anywhere; }
.pq-u { display: flex; align-items: center; gap: 9px; margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--tint); color: var(--ink-2); font-size: .9rem; }
.pq-u i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--mute); }
.pq-u.is-ok { background: var(--ok-bg); color: var(--ok); font-weight: 700; }
.pq-u.is-ok i { background: var(--ok); box-shadow: 0 0 0 3px rgba(29, 122, 62, .18); }
.pq-u.is-mute { color: var(--soft); }
.pq-a { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: auto; }
.pq-b { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; padding: 0 14px; border: 1px solid transparent; border-radius: 12px; background: none; color: var(--ink); font: 700 .78rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; cursor: pointer; touch-action: manipulation; transition: background-color .15s, color .15s, border-color .15s; }
.pq-b svg { width: 16px; height: 16px; }
.pq-b--off { border-color: rgba(157, 57, 51, .45); color: var(--red); }
.pq-b--on { border-color: var(--ok); color: var(--ok); }
@media (hover: hover) { .pq-b:hover { background: var(--tint); } .pq-b--off:hover { background: var(--red-bg); } .pq-b--on:hover { background: var(--ok-bg); } }
.pq-none { margin-top: 16px; }
.pq-none[hidden] { display: none; }
@media (max-width: 380px) { .pq-a { justify-content: stretch; } .pq-b { flex: 1 1 auto; padding: 0 10px; letter-spacing: .06em; } .pq-av { width: 46px; height: 46px; font-size: 1.15rem; } }
@media (max-width: 480px) { .pq-a { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; } .pq-b { padding: 0 6px; letter-spacing: .04em; font-size: .74rem; } .pq-b svg { width: 14px; height: 14px; } }

/* Editar empleado: contraseña con dado para inventarla */
.pq-pass { display: flex; gap: 8px; }
.pq-pass .inp { flex: 1; min-width: 0; font-size: 16px; letter-spacing: .04em; }
.pq-dice { flex: none; display: grid; place-items: center; width: 52px; border: 1px solid var(--ink); border-radius: 12px; background: #fff; color: var(--ink); cursor: pointer; transition: background-color .15s, color .15s, transform .2s; }
.pq-dice svg { width: 21px; height: 21px; }
.pq-dice:active { transform: rotate(-12deg) scale(.95); }
@media (hover: hover) { .pq-dice:hover { background: var(--ink); color: #fff; } }
.pq-pass .inp { font-weight: 700; letter-spacing: .3em; }
.pq-pass .inp::placeholder { font-weight: 400; letter-spacing: .02em; }
.inp[hidden] { display: none; }

/* ==== EMPLEADOS: Horas (período, números, por empleado, gráfico por día) ==== */
.hr-k { display: flex; flex-wrap: wrap; gap: 8px; }
.hr-k .pa-chip { flex: 0 1 auto; }
.hr-rg { margin: 0; color: var(--soft); font-weight: 600; }
.hr-rg span { color: var(--mute); margin: 0 4px; }
.hr-emps { margin: 0; padding: 0; list-style: none; }
.hr-emps > li { border-top: 1px solid var(--line-2); }
.hr-emps > li:first-child { border-top: 0; }
.hr-emp { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 4px 12px; width: 100%; padding: 16px 20px 22px; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
@media (hover: hover) { .hr-emp:hover { background: var(--card-2); } }
.hr-emp .pq-av { width: 44px; height: 44px; font-size: 1.1rem; }
.hr-emp b { display: block; color: var(--ink); font-size: 1.02rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hr-emp small { display: block; color: var(--soft); font-size: .8rem; }
.hr-t { text-align: right; }
.hr-t b { font-family: var(--display); font-weight: 800; font-size: 1.2rem; }
.hr-chev { display: grid; place-items: center; width: 26px; height: 26px; color: var(--mute); transition: transform .2s; }
.hr-chev svg { width: 18px; height: 18px; }
.is-open .hr-chev { transform: rotate(90deg); color: var(--ink); }
.hr-bar-t { grid-column: 1 / -1; display: block; height: 6px; margin-top: 8px; border-radius: 99px; background: var(--tint); overflow: hidden; }
.hr-bar-t i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--tan), var(--tan-d)); }
.hr-det { margin: 0 20px 16px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.hr-row { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.4fr; gap: 8px; align-items: baseline; padding: 11px 14px; border-top: 1px solid var(--line-2); font-size: .9rem; }
.hr-row:first-child { border-top: 0; }
.hr-row span:last-child { text-align: right; }
.hr-row small { color: var(--mute); }
.hr-row--h { background: var(--card-2); color: var(--mute); font-size: .66rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.hr-none { margin: 0 20px 16px; color: var(--soft); }
.hr-plot { padding: 18px 20px 16px; }
.hr-bars { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); align-items: end; gap: clamp(2px, 1vw, 8px); height: 190px; padding-bottom: 2px; border-bottom: 1px solid var(--line); }
.hr-bar { position: relative; display: flex; align-items: flex-end; height: 100%; min-width: 0; padding: 0; border: 0; background: none; cursor: pointer; touch-action: manipulation; }
.hr-bar i { display: block; width: 100%; border-radius: 8px 8px 3px 3px; background: linear-gradient(180deg, var(--tan), var(--tan-d)); transition: filter .15s, transform .15s; transform-origin: bottom; }
.hr-bar.is-on i { filter: brightness(.85); box-shadow: 0 0 0 2px var(--ink); }
@media (hover: hover) {
  .hr-bar:hover i { filter: brightness(.9); }
  .hr-bar:hover::after { content: attr(data-t); position: absolute; bottom: calc(100% + 6px); left: 50%; z-index: 2; padding: 6px 10px; border-radius: 8px; background: var(--ink); color: #fff; font-size: .78rem; font-weight: 600; white-space: nowrap; transform: translateX(-50%); pointer-events: none; }
}
.hr-ax { display: flex; justify-content: space-between; gap: 10px; margin-top: 8px; color: var(--mute); font-size: .8rem; }
.hr-cap { margin: 12px 0 0; color: var(--soft); font-size: .88rem; }
.hr-sue { margin: 20px 0 0; text-align: center; }
@media (max-width: 480px) {
  .hr-emp { padding: 14px 16px 20px; gap: 4px 10px; }
  .hr-det { margin: 0 12px 14px; }
  .hr-row { grid-template-columns: 1.25fr .9fr .9fr 1.2fr; gap: 6px; padding: 10px; font-size: .82rem; }
  .hr-plot { padding: 14px 14px 12px; }
  .hr-bars { height: 150px; }
  .hr-k .pa-chip { flex: 1 1 auto; }
}

/* Cargando: brillo que pasa (en vez de un cartel) */
@keyframes skShine { to { background-position: -200% 0; } }
.sk i, .sk-row i { display: block; border-radius: 8px; background: linear-gradient(90deg, var(--tint) 0%, var(--line-2) 40%, var(--tint) 80%) 0 0 / 200% 100%; animation: skShine 1.2s linear infinite; }
.ph-k.sk { gap: 12px; min-height: 140px; }
.ph-k.sk i:nth-child(1) { width: 60%; height: 12px; }
.ph-k.sk i:nth-child(2) { width: 45%; height: 34px; }
.ph-k.sk i:nth-child(3) { width: 70%; height: 10px; }
.sk-row { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-top: 1px solid var(--line-2); }
.sk-row:first-child { border-top: 0; }
.sk-row .sk-av { flex: none; width: 42px; height: 42px; border-radius: 50%; }
.sk-row span { flex: 1; display: grid; gap: 8px; }
.sk-row span i:first-child { width: 55%; height: 12px; }
.sk-row span i:last-child { width: 35%; height: 10px; }
.sk-box { margin-top: 16px; }
@media (prefers-reduced-motion: reduce) { .sk i, .sk-row i { animation: none; } }

/* ==== EMPLEADOS: Locales → pantalla del local (QR que cambia cada 30 s) ==== */
.pl-pan { margin-top: 14px; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--card-2); }
.pl-pan > p { display: flex; align-items: center; gap: 12px; margin: 0; }
.pl-pan .grow { flex: 1; min-width: 0; }
.pl-pan b { display: block; font-size: .95rem; }
.pl-pan small { display: block; color: var(--soft); font-size: .8rem; }
.pl-pan__ic { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--side); color: var(--tan); }
.pl-pan__ic svg { width: 19px; height: 19px; }
.pl-tag { flex: none; padding: 5px 10px; border-radius: 99px; background: var(--warn-bg); color: var(--warn); font-style: normal; font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.pl-tag.is-ok { background: var(--ok-bg); color: var(--ok); }
.pl-pan__b { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.pl-b { border-color: var(--ink); background: #fff; text-decoration: none; }
@media (hover: hover) { .pl-b:hover { background: var(--ink); color: #fff; } }
.pl-acc { position: relative; display: grid; gap: 4px; margin: 12px 0; padding: 14px 52px 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--field); }
.pl-acc small { color: var(--mute); font-size: .7rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.pl-acc b { font-size: .92rem; overflow-wrap: anywhere; }
.pl-acc .icon-btn { position: absolute; top: 50%; right: 8px; transform: translateY(-50%); }
.pl-accqr { display: grid; place-items: center; padding: 14px; border-radius: 16px; background: #fff; }
.pl-accqr img, .pl-accqr canvas { width: 200px !important; height: 200px !important; }
.pl-warn { margin: 12px 0 0; color: var(--warn); font-size: .88rem; }
.pl-ed { flex: none; align-self: flex-start; }
@media (max-width: 380px) { .pl-h { flex-wrap: wrap; } }

/* ==== EMPLEADOS: barra de secciones en celular y tablet, pegada abajo (estilo app, Material 3 / iOS) ====
   Ocupa todo el ancho, fondo sólido y borde arriba: no flota sobre el contenido al subir o bajar.
   La sección elegida lleva una píldora negra detrás del ícono y el nombre en negrita. */
@media (max-width: 1023px) {
  .pe-tabs { left: 0; right: 0; bottom: 0; max-width: none; margin: 0; gap: 0;
    padding: 6px max(6px, env(safe-area-inset-right), calc((100vw - 720px) / 2)) max(8px, env(safe-area-inset-bottom)) max(6px, env(safe-area-inset-left), calc((100vw - 720px) / 2));
    border: 0; border-top: 1px solid var(--line); border-radius: 0; background: rgba(255, 255, 255, .98); box-shadow: 0 -8px 24px -18px rgba(29, 23, 19, .35); }
  @supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) { .pe-tabs { background: rgba(255, 255, 255, .92); -webkit-backdrop-filter: blur(16px) saturate(1.6); backdrop-filter: blur(16px) saturate(1.6); } }
  .pe-tab, .pe-tab.is-on { flex-direction: column; gap: 4px; min-height: 58px; padding: 4px 0 2px; border-radius: 0; background: none; box-shadow: none; animation: none; color: var(--soft); font-size: clamp(.62rem, 2.75vw, .78rem); font-weight: 600; letter-spacing: 0; }
  .pe-tab.is-on { color: var(--ink); font-weight: 800; }
  .pe-tab__ic, .pe-tab.is-on .pe-tab__ic { width: clamp(46px, 13vw, 60px); height: 32px; border-radius: 16px; background: none; color: inherit; transition: background-color .2s, color .2s; }
  .pe-tab.is-on .pe-tab__ic { background: var(--ink); color: #fff; animation: peTabIn .25s cubic-bezier(.2, .8, .2, 1); }
  .pe-tab svg { width: 21px; height: 21px; }
  .pe-tab:active { transform: none; }
  .pe-tab:active .pe-tab__ic { background: var(--tint); }
  .pe-tab.is-on:active .pe-tab__ic { background: var(--ink); }
  body[data-view="personal"] .main { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  body[data-view="personal"] .toast, body[data-view="personal"] .selbar { bottom: calc(84px + env(safe-area-inset-bottom)); }
}
@media (max-width: 1023px) and (max-height: 500px) and (orientation: landscape) {
  .pe-tab, .pe-tab.is-on { flex-direction: row; gap: 6px; min-height: 44px; padding: 2px; font-size: .76rem; }
  .pe-tab__ic, .pe-tab.is-on .pe-tab__ic { width: 40px; height: 28px; border-radius: 14px; }
  .pe-tab svg { width: 18px; height: 18px; }
  body[data-view="personal"] .main { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  body[data-view="personal"] .toast, body[data-view="personal"] .selbar { bottom: calc(62px + env(safe-area-inset-bottom)); }
}
@media (max-width: 359px) { .pe-tab, .pe-tab.is-on { font-size: .6rem; } .pe-tab__ic, .pe-tab.is-on .pe-tab__ic { width: 42px; } }
.view[data-view="personal"] > .pe-tabs:first-child, .view[data-view="personal"] > .alert:first-child + .pe-tabs { margin-top: 0; }

/* ==== MI TURNO (empleado): reloj, estado, botón grande para marcar, Hoy e historial ==== */
.mt2 { max-width: 520px; }
.mt2-top { display: flex; align-items: center; gap: 12px; margin-top: 4px; }
.mt2-top img { width: 44px; height: 44px; }
.mt2-top .grow { flex: 1; min-width: 0; }
.mt2-top b { display: block; font-family: var(--display); font-weight: 800; font-stretch: 72%; font-variation-settings: "wdth" 72; font-size: 1.2rem; line-height: 1; text-transform: uppercase; }
.mt2-top small { display: block; margin-top: 3px; color: var(--tan-d); font-size: .68rem; font-weight: 700; letter-spacing: .26em; text-transform: uppercase; }
.mt2-clock { margin-top: clamp(18px, 4vh, 34px); text-align: center; }
.mt-clock { margin: 0; color: var(--ink); font-family: var(--display); font-weight: 600; font-stretch: 88%; font-variation-settings: "wdth" 88; font-size: clamp(3.2rem, 17vw, 5.2rem); line-height: 1; letter-spacing: .01em; font-variant-numeric: tabular-nums; }
.mt-date { margin: 8px 0 0; color: var(--soft); font-size: 1.05rem; }
.mt2-hola { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: clamp(18px, 3.5vh, 30px); }
.mt2-hola p { margin: 0; color: var(--ink-2); font-size: 1.15rem; }
.mt-st { display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px; border-radius: 99px; background: var(--tint); color: var(--soft); font-size: .74rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.mt-st::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--mute); }
.mt-st.is-in { background: var(--ok-bg); color: var(--ok); }
.mt-st.is-in::before { background: var(--ok); box-shadow: 0 0 0 3px rgba(29, 122, 62, .2); }
.mt-big { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; width: 100%; min-height: clamp(150px, 24vh, 200px); margin-top: clamp(18px, 3.5vh, 28px); padding: 22px; border: 0; border-radius: 26px; background: radial-gradient(120% 120% at 50% 0, rgba(227, 164, 111, .28), transparent 60%), var(--side); color: #fff; font: inherit; cursor: pointer; touch-action: manipulation; box-shadow: 0 26px 50px -24px rgba(11, 9, 8, .75), inset 0 0 0 1px rgba(227, 164, 111, .25); transition: transform .15s; }
.mt-big:active { transform: scale(.98); }
.mt-big b { font-family: var(--sans); font-weight: 800; font-size: 1.15rem; letter-spacing: .2em; text-transform: uppercase; }
.mt-big__ic { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; background: var(--tan); color: var(--side); box-shadow: 0 10px 22px -10px rgba(227, 164, 111, .8); }
.mt-big__ic svg { width: 32px; height: 32px; stroke-width: 1.8; }
.mt-big.is-out { background: radial-gradient(120% 120% at 50% 0, rgba(232, 112, 95, .25), transparent 60%), var(--side); }
.mt-big.is-out .mt-big__ic { background: #e8705f; color: #fff; }
.mt-big.is-busy { cursor: default; }
.mt-big__sub { margin: 12px 0 0; color: var(--soft); font-size: .92rem; text-align: center; }
.mt2 .mt-nfc { width: 100%; margin-top: 12px; justify-content: center; }
.mt-hoy { margin-top: 22px; border: 1px solid var(--line); border-radius: 20px; background: var(--card); box-shadow: var(--shadow); overflow: hidden; }
.mt-hoy__h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line-2); }
.mt-hoy__h h2 { margin: 0; font-family: var(--display); font-weight: 800; font-stretch: 68%; font-variation-settings: "wdth" 68; font-size: 1.4rem; line-height: 1; text-transform: uppercase; }
.mt-hoy__h small { display: block; margin-top: 4px; color: var(--soft); font-size: .82rem; }
.mt-hoy__h > b { flex: none; font-family: var(--display); font-weight: 800; font-size: 1.3rem; }
.mt-hoy__none { margin: 0; padding: 26px 18px; color: var(--soft); text-align: center; }
.mt-pares { margin: 0; padding: 6px 18px 10px; list-style: none; }
.mt-pares li { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; padding: 9px 0; border-top: 1px solid var(--line-2); font-variant-numeric: tabular-nums; }
.mt-pares li:first-child { border-top: 0; }
.mt-pares b { font-size: 1.08rem; }
.mt-pares small { color: var(--mute); font-size: .82rem; }
.mt-io { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--tint); color: var(--ink-2); }
.mt-io svg { width: 15px; height: 15px; stroke-width: 2.2; }
.mt-io--in { background: var(--ok-bg); color: var(--ok); }
.mt-arr { color: var(--mute); font-style: normal; }
.mt-now { color: var(--ok); font-style: normal; font-weight: 700; font-size: .88rem; }
.mt-late { margin-left: auto; color: var(--warn); font-style: normal; font-size: .8rem; font-weight: 700; }
.mt-histbtn { width: 100%; justify-content: center; margin-top: 14px; min-height: 52px; border-color: var(--tan-d); letter-spacing: .14em; text-transform: uppercase; font-size: .86rem; }
.mt2 .mt-list { margin-top: 26px; }
/* historial */
.mt-hk { margin-bottom: 14px; }
.mt-hrg { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--card-2); }
.mt-hrg span { color: var(--soft); font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.mt-hrg b { flex: none; font-family: var(--display); font-weight: 800; font-size: 1.4rem; }
.mt-hd { margin-top: 14px; }
.mt-hd__h { display: flex; justify-content: space-between; gap: 10px; padding: 0 2px 4px; }
.mt-hd__h span { color: var(--soft); }
.mt-hd .mt-pares { padding: 0 2px; }
/* escáner */
.mt-scan { justify-content: flex-start; gap: 0; padding: max(14px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); background: var(--bg); color: var(--ink); overflow-y: auto; }
.mts-h { display: flex; align-items: center; justify-content: space-between; width: 100%; max-width: 520px; min-height: 52px; }
.mts-h h2 { margin: 0; font-family: var(--display); font-weight: 800; font-stretch: 70%; font-variation-settings: "wdth" 70; font-size: 1.5rem; text-transform: uppercase; }
.mt-scan .mt-scan__x { position: static; transform: none; }
.mts-cam { position: relative; display: grid; place-items: center; width: 100%; max-width: 520px; aspect-ratio: 3 / 4; max-height: 62dvh; margin-top: 10px; border-radius: 24px; background: #000; overflow: hidden; }
.mt-scan .mts-cam video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mt-scan .mt-scan__frame { position: relative; width: 68%; aspect-ratio: 1; border: 0; border-radius: 0; box-shadow: none; }
.mt-scan__frame i { position: absolute; width: 18%; height: 18%; border: 4px solid var(--tan); }
.mt-scan__frame i:nth-child(1) { top: 0; left: 0; border-right: 0; border-bottom: 0; border-top-left-radius: 14px; }
.mt-scan__frame i:nth-child(2) { top: 0; right: 0; border-left: 0; border-bottom: 0; border-top-right-radius: 14px; }
.mt-scan__frame i:nth-child(3) { bottom: 0; left: 0; border-right: 0; border-top: 0; border-bottom-left-radius: 14px; }
.mt-scan__frame i:nth-child(4) { bottom: 0; right: 0; border-left: 0; border-top: 0; border-bottom-right-radius: 14px; }
.mt-scan .mt-scan__tip { margin: 16px 0 0; padding: 0; background: none; color: var(--ink-2); text-align: center; }
.mt-scan.is-err .mt-scan__tip { color: var(--red); }
.mts-manual { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; min-height: 44px; padding: 0 12px; border: 0; background: none; color: var(--soft); font: 600 .92rem var(--sans); cursor: pointer; }
.mts-manual svg { width: 18px; height: 18px; }
.mts-form { display: grid; gap: 12px; width: 100%; max-width: 520px; margin-top: 8px; text-align: center; }
.mts-form[hidden] { display: none; }
.mts-form p { margin: 0; color: var(--ink-2); }
.mts-form .inp { min-height: 56px; font-size: 1.6rem; text-align: center; letter-spacing: .3em; font-weight: 700; }
.mts-form .btn { min-height: 52px; justify-content: center; letter-spacing: .16em; text-transform: uppercase; }
.mt-scan.is-manual .mts-cam, .mt-scan.is-manual .mt-scan__tip, .mt-scan.is-manual .mts-manual { display: none; }
.mt-scan.is-manual .mts-form { margin-top: 24px; }
@media (orientation: landscape) and (max-height: 560px) { .mts-cam { aspect-ratio: auto; height: 58dvh; } .mt-clock { font-size: 3rem; } .mt-big { min-height: 120px; } }
.mt2-hola small { color: var(--mute); font-size: .9rem; }
.mt2 .mt2-clock { margin-top: clamp(8px, 2vh, 20px); }
.mt-scan.is-manual.is-err .mt-scan__tip { display: block; margin: 8px 0 0; font-size: .88rem; }

/* ==== EMPLEADOS POR LOCAL (Hoy · Semana · Tareas · Equipo) ==== */
/* Elegir el local: Nostra Sarmiento | Nostra Patricias (cada uno con su equipo, nunca se mezclan) */
.pe-loc { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 6px; margin: 0 0 14px; padding: 6px; border-radius: 18px; background: var(--tint); }
.pe-loc__b { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 8px 12px; border: 0; border-radius: 13px; background: transparent; color: var(--soft); font: 700 .95rem/1.2 var(--sans); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.pe-loc__b svg { flex: none; width: 19px; height: 19px; }
.pe-loc__b span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pe-loc__b.is-on { background: var(--ink); color: var(--card); box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .5); }
.pe-loc__b:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
/* Hoy: pasar de día */
.ph-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0 0; }
.ph-nav b { font-size: 1rem; }
.pe-sec small { margin-left: 4px; color: var(--mute); font-family: var(--sans); font-size: .78rem; font-weight: 500; font-stretch: 100%; font-variation-settings: normal; letter-spacing: 0; text-transform: none; }
.pe-qr { margin-top: 14px; }
/* Semana: la planilla (como la del dueño: Descansa en rojo) */
.pe-wk__how { margin: 0 0 10px; }
.pe-wk { min-width: 940px; }
.pe-wk thead th { font-size: .74rem; }
.pe-wk th small { font-size: .9rem; }
.pe-c { min-height: 66px; text-align: center; line-height: 1.25; }
.pe-c small { margin-top: 2px; }
.pe-c--off, .pe-ley .pe-c--off { background: #c8312a; box-shadow: none; color: #fff; }
.pe-c--off b { text-transform: uppercase; letter-spacing: .03em; }
.pe-c--bad, .pe-ley .pe-c--bad { background: var(--ink); color: var(--card); }
.pe-c--plan, .pe-ley .pe-c--plan { background: var(--card); box-shadow: inset 0 0 0 1.5px var(--line-2); color: var(--ink); }
.pe-c--plan b { font-weight: 700; }
.pe-c--wait, .pe-ley .pe-c--wait { background: var(--warn-bg); color: var(--warn); }
.pe-c--none { background: transparent; }
.pe-c.is-hoy { box-shadow: inset 0 0 0 2px var(--red); }
@media (hover: hover) and (pointer: fine) { .pe-c:hover { filter: brightness(.96); } }
/* Un día de un empleado */
.pe-dd { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; margin: 0 0 14px; }
.pe-dd div { padding: 10px 12px; border-radius: 12px; background: var(--field); }
.pe-dd dt { color: var(--mute); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.pe-dd dd { margin: 2px 0 0; font-size: 1.05rem; font-weight: 800; }
.pe-dd-msg { margin: 0 0 14px; padding: 10px 12px; border-radius: 12px; background: var(--tint); font-size: .9rem; }
.pe-dd-msg.is-bad { background: var(--red-bg); color: var(--red); }
.pe-dd-t { margin: 6px 0 0; padding-left: 18px; font-size: .92rem; }
.pe-dd-t small { color: var(--mute); }
.pe-opc .pill { min-height: 44px; }
/* 4 secciones (Hoy · Semana · Tareas · Equipo) */
.pe-tabs { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
.view[data-view="personal"] > .pe-loc:first-child + .pe-tabs { margin-top: 0; }
.pe-wk { min-width: 860px; }
.pe-wk thead th:first-child, .pe-wk tbody th { width: 112px; }
.pe-wk thead th:last-child { width: 88px; }

/* ==== SALÓN (Pedidos → Salón 1: grilla de mesas) ==== */
.sal { margin-top: 18px; padding: 18px; border: 1px solid var(--sl-200); border-radius: 18px; background: #fff; box-shadow: 0 1px 2px rgba(15, 23, 42, .04); }
.sal + .sal { margin-top: 14px; }
.sal__h { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 16px; margin-bottom: 16px; }
.sal__h h2 { margin: 0; font-size: 1.25rem; line-height: 1.15; color: var(--sl-900); }
.sal__h h2 span { color: var(--sl-500, #64748b); font-weight: 600; }
.sal__h p { margin: 4px 0 0; font-size: .82rem; color: var(--sl-500, #64748b); }
.sal__leg { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.sal__leg li { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: var(--sl-50); border: 1px solid var(--sl-200); font-size: .75rem; font-weight: 600; color: var(--sl-900); }
.sal__leg li::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--c); }
.sal__leg b { font-variant-numeric: tabular-nums; }
.sal__lg--free, .sal__m--free { --c: #16a34a; --c2: #15803d; }
.sal__lg--new, .sal__m--new { --c: #dc2626; --c2: #b91c1c; }
.sal__lg--cook, .sal__m--cook { --c: #f59e0b; --c2: #d97706; }
.sal__lg--ready, .sal__m--ready { --c: #2563eb; --c2: #1d4ed8; }
.sal__m--off { --c: #94a3b8; --c2: #64748b; }
.sal__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 16px; }
.sal__m { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; aspect-ratio: 1 / 1; min-width: 0; padding: 12px 8px; border: 0; border-radius: 16px;
  background: linear-gradient(160deg, var(--c), var(--c2)); color: #fff; font: inherit; cursor: pointer; text-align: center;
  box-shadow: 0 6px 14px -6px var(--c2), inset 0 1px 0 rgba(255, 255, 255, .18); transition: transform .15s, box-shadow .15s; -webkit-tap-highlight-color: transparent; }
.sal__m svg { width: 42px; height: 42px; stroke-width: 2; }
.sal__n { font-size: 2.1rem; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.sal__st { font-size: .84rem; font-weight: 600; opacity: .92; line-height: 1.15; }
.sal__nm { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .76rem; opacity: .8; }
.sal__m:focus-visible { outline: 3px solid var(--sl-900); outline-offset: 3px; }
.sal__m.is-on { box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--c2), 0 10px 20px -8px var(--c2); transform: translateY(-2px); }
.sal__m--off { opacity: .75; }
.sal__dot { position: absolute; top: 11px; right: 11px; width: 11px; height: 11px; border-radius: 50%; background: #fff; animation: salPulse 1.4s ease-in-out infinite; }
@keyframes salPulse { 50% { opacity: .25; transform: scale(.7); } }
@media (hover: hover) { .sal__m:hover { transform: translateY(-3px); box-shadow: 0 12px 22px -8px var(--c2), inset 0 1px 0 rgba(255, 255, 255, .18); } }
@media (prefers-reduced-motion: reduce) { .sal__dot { animation: none; } .sal__m { transition: none; } }
.sal__x { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; padding: 6px 12px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .22); color: inherit; font: inherit; font-size: .78rem; font-weight: 700; cursor: pointer; }
.sal__x svg { width: 15px; height: 15px; }
.psec2--mesa .psec2__h { background: var(--sl-900); color: #fff; }
@media (max-width: 600px) {
  .sal { padding: 12px; border-radius: 16px; }
  .sal__h h2 { font-size: 1.08rem; }
  .sal__grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 10px; }
  .sal__m { border-radius: 12px; }
  .sal__m svg { width: 30px; height: 30px; }
  .sal__n { font-size: 1.55rem; }
  .sal__st { font-size: .7rem; }
}
/* Retiro en local: tarjetas de pedidos (como las mesas, una por pedido abierto) */
.pdg__tt { display: flex; align-items: center; gap: 12px; }
.pdg__hi { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 14px; background: #fff1ec; color: #c2410c; }
.pdg__hi svg { width: 24px; height: 24px; }
.pdg__lg--new, .pdt--new { --c: #ef4444; --c2: #b91c1c; }
.pdg__lg--cook, .pdt--cook { --c: #2563eb; --c2: #1e40af; }
.pdg__lg--ready, .pdt--ready { --c: #16a34a; --c2: #15803d; }
.pdg__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 18px; }
.pdt { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; gap: 9px; min-width: 0; padding: 20px 14px 14px; border: 0; border-radius: 18px;
  background: radial-gradient(120% 70% at 85% 0%, rgba(255, 255, 255, .16), transparent 60%), linear-gradient(160deg, var(--c), var(--c2)); color: #fff; font: inherit; text-align: center; cursor: pointer;
  box-shadow: 0 10px 22px -10px var(--c2), inset 0 1px 0 rgba(255, 255, 255, .2); transition: transform .15s, box-shadow .15s; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.pdt__ic { display: grid; place-items: center; width: 62px; height: 62px; border-radius: 50%; background: rgba(255, 255, 255, .16); }
.pdt__ic svg { width: 30px; height: 30px; }
.pdt__cd { font-size: 1.45rem; font-weight: 800; letter-spacing: .02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.pdt__st { padding: 5px 14px; border-radius: 999px; background: rgba(255, 255, 255, .88); color: var(--c2); font-size: .82rem; font-weight: 800; line-height: 1.2; }
.pdt__nm { display: flex; align-items: center; justify-content: center; gap: 6px; max-width: 100%; font-size: .9rem; opacity: .95; }
.pdt__nm span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pdt__nm svg, .pdt__ft svg { flex: none; width: 15px; height: 15px; }
.pdt__ft { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; margin-top: 4px; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, .22); font-size: .85rem; }
.pdt__ft > span { display: inline-flex; align-items: center; gap: 5px; }
.pdt__ft > span:last-child { font-weight: 800; }
.pdt:focus-visible { outline: 3px solid var(--sl-900); outline-offset: 3px; }
.pdt.is-on { box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--c2), 0 12px 24px -10px var(--c2); transform: translateY(-2px); }
@media (hover: hover) { .pdt:hover { transform: translateY(-3px); box-shadow: 0 14px 26px -10px var(--c2), inset 0 1px 0 rgba(255, 255, 255, .2); } }
@media (prefers-reduced-motion: reduce) { .pdt { transition: none; } }
.pdg__sel { margin-top: 16px; scroll-margin-top: 90px; }
@media (max-width: 600px) {
  .pdg__hi { width: 40px; height: 40px; border-radius: 12px; }
  .pdg__grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
  .pdt { gap: 7px; padding: 16px 10px 12px; border-radius: 16px; }
  .pdt__ic { width: 50px; height: 50px; }
  .pdt__ic svg { width: 24px; height: 24px; }
  .pdt__cd { font-size: 1.2rem; }
  .pdt__st { padding: 4px 10px; font-size: .72rem; }
  .pdt__nm, .pdt__ft { font-size: .78rem; }
}
@media (max-width: 340px) { .pdg__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } }
@media (max-width: 340px) { .sal__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; } .sal__nm { display: none; } }

/* ==== SALÓN · ventanita de comensales (mesa libre → Registrar) ==== */
.modal__box:has(.pax) { width: min(100%, 360px); }
.modal__box:has(.pax) .modal__head { border-bottom: 0; padding-bottom: 0; }
.modal__box:has(.pax) .modal__title { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--sl-500); }
.modal__box:has(.pax) .modal__foot { flex-direction: column-reverse; align-items: stretch; gap: 6px; border-top: 0; padding-top: 4px; }
.modal__box:has(.pax) .modal__foot .sp { display: none; }
.modal__box:has(.pax) .modal__foot .btn[type="submit"] { justify-content: center; min-height: 52px; border-radius: 14px; background: linear-gradient(160deg, #16a34a, #15803d); border-color: #15803d; color: #fff; font-size: 1rem; letter-spacing: .06em; text-transform: uppercase; box-shadow: 0 10px 22px -10px #15803d; }
.modal__box:has(.pax) .modal__foot .btn[type="submit"]::before { content: "✓"; margin-right: 8px; font-weight: 800; }
.modal__box:has(.pax) .modal__foot .btn--line { justify-content: center; border-color: transparent; background: none; color: var(--sl-500); box-shadow: none; }
.pax { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 4px 0 6px; }
.pax__ico { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; background: var(--sl-50); border: 1px solid var(--sl-200); color: var(--sl-900); }
.pax__ico svg { width: 32px; height: 32px; }
.pax__t { margin: 12px 0 2px; font-size: 1.9rem; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; color: var(--sl-900); line-height: 1.05; }
.pax__s { margin: 0 0 14px; font-size: .82rem; color: var(--sl-500); }
.pax__b { display: grid; place-items: center; width: 52px; height: 52px; border: 1px solid var(--sl-200); border-radius: 16px; background: var(--sl-50); color: var(--sl-900); cursor: pointer; transition: background .15s, transform .1s; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.pax__b svg { width: 24px; height: 24px; stroke-width: 2.2; }
.pax__b--up svg { transform: rotate(-90deg); }
.pax__b--dn svg { transform: rotate(90deg); }
.pax__b:active { transform: scale(.94); }
.pax__b:disabled { opacity: .35; cursor: default; }
.pax__b:focus-visible { outline: 3px solid #16a34a; outline-offset: 2px; }
@media (hover: hover) { .pax__b:not(:disabled):hover { background: var(--sl-200); } }
.pax__l { margin: 12px 0 0; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--sl-500); }
.pax__n { display: block; font-size: 4.6rem; font-weight: 800; line-height: 1; color: var(--sl-900); font-variant-numeric: tabular-nums; }
.pax__h { display: inline-flex; align-items: center; gap: 6px; margin: 4px 0 12px; font-size: .8rem; color: var(--sl-500); }
.pax__h svg { width: 16px; height: 16px; }
/* celular acostado (poco alto): el contador en fila ▼ 2 ▲ para que entre todo sin scroll */
@media (max-height: 520px) {
  .pax { display: grid; grid-template-areas: "t t t" "s s s" "dn n up" "h h h"; grid-template-columns: auto auto auto; justify-content: center; align-items: center; column-gap: 22px; padding: 0; }
  .pax__ico, .pax__l { display: none; }
  .pax__t { grid-area: t; margin: 0; font-size: 1.3rem; }
  .pax__s { grid-area: s; margin: 0 0 4px; }
  .pax__n { grid-area: n; font-size: 2.8rem; min-width: 1.6em; }
  .pax__b { width: 46px; height: 46px; }
  .pax__b--up { grid-area: up; }
  .pax__b--dn { grid-area: dn; }
  .pax__h { grid-area: h; justify-self: center; margin: 2px 0 0; }
  .modal__box:has(.pax) .modal__head { padding-top: 10px; }
  .modal__box:has(.pax) .modal__body { padding-top: 0; padding-bottom: 4px; }
  .modal__box:has(.pax) .modal__foot { flex-direction: row-reverse; padding-top: 6px; padding-bottom: max(10px, env(safe-area-inset-bottom)); }
  .modal__box:has(.pax) .modal__foot .btn { flex: 1; min-height: 46px; }
}

/* ==== SALÓN · carta de la mesa (pantalla tipo caja: carta con fotos + Orden actual al costado) ==== */
#posRoot:empty { display: none; }
.pos { position: fixed; inset: 0; z-index: 90; display: flex; flex-direction: column; background: var(--sl-50); color: var(--sl-900); animation: fade .18s;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) 0 env(safe-area-inset-left); }
.pos__top { display: flex; align-items: center; gap: 14px; padding: 14px 24px; background: #fff; border-bottom: 1px solid var(--sl-200); }
.pos__back { display: inline-flex; align-items: center; gap: 4px; min-height: 42px; padding: 0 14px 0 8px; border: 1px solid var(--sl-200); border-radius: 12px; background: #fff; color: var(--sl-900); font: inherit; font-weight: 700; font-size: .9rem; cursor: pointer; }
.pos__back svg { width: 20px; height: 20px; }
.pos__ttl { min-width: 0; flex: 1; }
.pos__ttl h2 { margin: 0; font-size: 1.55rem; line-height: 1.1; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pos__ttl p { margin: 2px 0 0; font-size: .82rem; color: var(--sl-500); }
.pos__sum { text-align: right; }
.pos__sum small { display: block; font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--sl-500); }
.pos__sum b { font-size: 1.6rem; font-weight: 800; color: #dc2626; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pos__main { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 20px; width: 100%; max-width: 1640px; margin: 0 auto; padding: 20px 24px; }
.pos__l { min-height: 0; display: flex; flex-direction: column; padding: 18px; border: 1px solid var(--sl-200); border-radius: 18px; background: #fff; }
.pos__lh { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.pos__lh h3 { margin: 0; font-size: 1.2rem; font-weight: 800; }
.pos__lh p { margin: 2px 0 0; font-size: .82rem; color: var(--sl-500); }
.pos__flt { display: flex; flex-wrap: wrap; gap: 10px; }
.pos__q { min-width: 200px; }
.pos__q input, .pos__flt select { font-size: 16px; }
.pos__flt select { min-height: 44px; min-width: 210px; padding: 0 38px 0 14px; border: 1.5px solid var(--sl-300, #cbd5e1); border-radius: 12px; background-color: #fff; color: var(--sl-900); font-family: inherit; font-weight: 600; cursor: pointer; }
.pos__flt select:focus { outline: none; border-color: var(--sl-900); box-shadow: 0 0 0 3px rgba(15, 23, 42, .12); }
.pos__grid { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); grid-auto-rows: max-content; align-content: start; gap: 14px; padding: 2px 4px 8px 2px; }
.posp { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 0; border: 1px solid var(--sl-200); border-radius: 16px; background: #fff; color: inherit; font: inherit; text-align: left; cursor: pointer; overflow: hidden;
  transition: transform .15s, box-shadow .15s, border-color .15s; -webkit-tap-highlight-color: transparent; }
.posp[hidden] { display: none; }
.posp__img { position: relative; flex: none; display: grid; place-items: center; width: 100%; aspect-ratio: 1 / 1; background: var(--sl-100, #f1f5f9); color: var(--sl-400, #94a3b8); overflow: hidden; }
.posp__img img { width: 100%; height: 100%; object-fit: contain; }
.posp__img > svg { width: 44px; height: 44px; stroke-width: 1.5; }
.posp__tag { position: absolute; top: 8px; right: 8px; max-width: calc(100% - 16px); padding: 3px 10px; border-radius: 999px; background: rgba(255, 255, 255, .92); color: var(--sl-700); font-size: .68rem; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; box-shadow: 0 1px 4px rgba(0, 0, 0, .12); }
.posp__n { position: absolute; top: 8px; left: 8px; display: grid; place-items: center; min-width: 28px; height: 28px; padding: 0 7px; border-radius: 999px; background: #16a34a; color: #fff; font-weight: 800; font-size: .85rem; box-shadow: 0 4px 10px -3px #15803d; }
.posp__n[hidden] { display: none; }
.posp__b { display: flex; flex-direction: column; gap: 6px; flex: 1; padding: 10px 12px 12px; }
.posp__name { font-size: .9rem; font-weight: 700; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.posp__pr { margin-top: auto; font-size: 1.05rem; font-weight: 800; color: #dc2626; font-variant-numeric: tabular-nums; }
.posp.is-in { border-color: #16a34a; box-shadow: 0 0 0 2px #16a34a; }
.posp.is-off { cursor: not-allowed; opacity: .5; }
.posp.is-off .posp__pr { color: var(--sl-500); }
.posp--cmb .posp__img { background: radial-gradient(circle at 50% 42%, #fbf6ef 0%, #efe4d5 70%, #e6d6c2 100%); color: #c2410c; }
.posp--cmb .acb { width: 66%; }
@media (hover: hover) { .posp--cmb:hover .acb { transform: rotate(-8deg) scale(1.03); } }

/* Plato de la combinada (igual que .rv-cb__plate de la página): cada mitad es el mismo círculo recortado a la mitad,
   la foto redonda entera queda debajo y se ve solo su lado */
.acb { position: relative; display: block; width: 100%; aspect-ratio: 1; border-radius: 50%; container-type: inline-size; flex: none;
  background: radial-gradient(circle at 35% 30%, rgb(107, 45, 39) 0%, rgb(65, 22, 19) 55%, rgb(67, 55, 47) 100%);
  box-shadow: 0 12px 24px rgba(37, 29, 24, .32), 0 3px 0 rgba(214, 191, 167, .18) inset, 0 -4px 10px rgba(0, 0, 0, .25) inset; transition: transform .3s ease; }
@supports not (aspect-ratio: 1) { .acb { height: 0; padding-bottom: 100%; } }
.acb__half { position: absolute; inset: 4%; overflow: hidden; border-radius: 50%; background: rgb(46, 37, 31); cursor: inherit; }
.acb__half--l { -webkit-clip-path: inset(0 50% 0 0); clip-path: inset(0 50% 0 0); }
.acb__half--r { -webkit-clip-path: inset(0 0 0 50%); clip-path: inset(0 0 0 50%); }
.acb .acb__half img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; transform: scale(1.12); pointer-events: none; }
.acb .acb__half--l img.is-in { animation: acbInL .55s cubic-bezier(.2, .9, .3, 1.15) both; }
.acb .acb__half--r img.is-in { animation: acbInR .55s cubic-bezier(.2, .9, .3, 1.15) both; }
.acb .acb__half img.is-out { animation: acbOut .3s ease forwards; }
@keyframes acbInL { from { opacity: 0; transform: translateX(-38%) rotate(-50deg) scale(.8); } to { opacity: 1; transform: scale(1.12); } }
@keyframes acbInR { from { opacity: 0; transform: translateX(38%) rotate(50deg) scale(.8); } to { opacity: 1; transform: scale(1.12); } }
@keyframes acbOut { to { opacity: 0; transform: scale(.8); } }
/* mitad vacía: número y "mitad" en el centro de su lado */
.acb__ph { position: absolute; top: 50%; display: flex; flex-direction: column; align-items: center; gap: 3px; color: rgba(255, 236, 214, .72);
  font-size: 11px; font-size: max(7px, min(6.4cqw, 14px)); font-weight: 700; line-height: 1; letter-spacing: .1em; text-transform: uppercase; transform: translate(-50%, -50%); transition: opacity .25s; }
.acb__half--l .acb__ph { left: 27%; }
.acb__half--r .acb__ph { left: 73%; }
.acb__ph b { display: flex; align-items: center; justify-content: center; width: 1.9em; height: 1.9em; border: 1.5px dashed rgba(255, 236, 214, .6); border-radius: 50%; color: #fff; font-size: 1.15em; letter-spacing: 0; }
.acb__half.is-full .acb__ph { opacity: 0; }
.acb__cut { position: absolute; top: 4%; bottom: 4%; left: 50%; border-left: 2px dashed rgba(255, 236, 214, .55); transform: translateX(-1px); pointer-events: none; transition: opacity .3s; }
.acb.is-ready .acb__cut { opacity: .35; }
.acb.is-pop { animation: acbReady .5s ease; }
@keyframes acbReady { 40% { transform: scale(1.06); } }
/* ventanita de la combinada: el plato grande arriba, centrado, y abajo el nombre y el precio */
.posd__h.posd__h--cmb { flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.posd__img.posd__img--cmb { width: 100%; height: auto; padding: 16px 0; border-radius: 18px; background: radial-gradient(circle at 50% 45%, #fbf6ef 0%, #efe4d5 65%, #e6d6c2 100%); }
.posd__img--cmb .acb { width: 172px; }
.posd__img--cmb .acb__half { cursor: pointer; }
/* notebooks y pantallas bajas: plato un poco más chico para que entre la ventanita sin tanto scroll */
@media (max-height: 820px) and (min-height: 501px) { .posd__img--cmb .acb { width: 140px; } .posd__img.posd__img--cmb { padding: 10px 0; } }
@media (prefers-reduced-motion: reduce) { .acb, .acb.is-pop, .acb__half img { animation: none !important; transition: none !important; } }
.posp:focus-visible { outline: 3px solid var(--sl-900); outline-offset: 2px; }
@media (hover: hover) { .posp:not(.is-off):hover { transform: translateY(-3px); box-shadow: 0 14px 26px -14px rgba(15, 23, 42, .35); } }
.pos__none { margin: 24px 0; text-align: center; color: var(--sl-500); }
.pos__none[hidden] { display: none; }
/* Orden actual */
.pos__r { min-height: 0; display: flex; flex-direction: column; border: 1px solid var(--sl-200); border-radius: 18px; background: #fff; box-shadow: 0 10px 30px -18px rgba(15, 23, 42, .3); overflow: hidden; }
.pos__rh { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px 8px; }
.pos__rh h3 { margin: 0; font-size: 1.2rem; font-weight: 800; }
.pos__rx { display: none; }
.pos__rb { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 18px 12px; }
.pos__k { display: flex; justify-content: space-between; gap: 8px; margin: 12px 0 8px; font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--sl-500); }
.pos__k span { letter-spacing: 0; text-transform: none; font-weight: 600; }
.pose, .posls { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.pose li { padding: 10px 12px; border-radius: 12px; background: var(--sl-50); border: 1px solid var(--sl-200); }
.pose__h { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.pose p { margin: 4px 0 0; font-size: .8rem; color: var(--sl-600, #475569); }
.pose__st { padding: 2px 8px; border-radius: 999px; font-size: .68rem; font-weight: 700; background: #fef3c7; color: #92400e; }
.pose__st--pending { background: #fee2e2; color: #991b1b; }
.pose__st--ready { background: #dbeafe; color: #1e40af; }
.posl { padding: 12px; border-radius: 12px; background: #fffbeb; border: 1px solid #fde68a; }
.posl__m { display: flex; justify-content: space-between; gap: 10px; }
.posl__m b { font-size: .9rem; line-height: 1.3; }
.posl__pr { font-weight: 800; white-space: nowrap; font-variant-numeric: tabular-nums; }
.posl__obs { display: flex; gap: 6px; margin: 6px 0 0; font-size: .78rem; color: #92400e; }
.posl__obs svg { flex: none; width: 15px; height: 15px; margin-top: 1px; }
.posl__q { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.posl__k { font-size: .75rem; color: var(--sl-500); }
.posl__q small { font-size: .72rem; color: var(--sl-500); }
.posl__x { margin-left: auto; display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 10px; background: transparent; color: #b91c1c; cursor: pointer; }
.posl__x svg { width: 18px; height: 18px; }
@media (hover: hover) { .posl__x:hover { background: #fee2e2; } }
.pos__empty { display: grid; place-items: center; gap: 6px; padding: 28px 10px; border: 1.5px dashed var(--sl-200); border-radius: 14px; text-align: center; color: var(--sl-500); font-size: .85rem; }
.pos__empty svg { width: 32px; height: 32px; }
.pos__empty p { margin: 0; }
.pos__rf { padding: 14px 18px max(16px, env(safe-area-inset-bottom)); border-top: 1px solid var(--sl-200); }
.pos__tot { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; font-size: .85rem; color: var(--sl-500); }
.pos__tot b { font-size: 1.3rem; color: var(--sl-900); font-variant-numeric: tabular-nums; }
.pos__send { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 54px; border: 0; border-radius: 14px; background: linear-gradient(160deg, #16a34a, #15803d); color: #fff; font: inherit; font-size: 1.02rem; font-weight: 800; cursor: pointer; box-shadow: 0 12px 22px -12px #15803d; }
.pos__send svg { width: 20px; height: 20px; }
.pos__send:disabled { background: var(--sl-200); color: var(--sl-500); box-shadow: none; cursor: default; }
.pos__send:focus-visible, .pos__back:focus-visible { outline: 3px solid var(--sl-900); outline-offset: 2px; }
.pos__bar { display: none; }
/* Liberar mesa (arriba, al lado del total) */
.pos__free { display: inline-flex; align-items: center; gap: 8px; flex: none; min-height: 42px; padding: 0 16px; border: 0; border-radius: 12px; background: #475569; color: #fff; font: inherit; font-weight: 700; font-size: .88rem; cursor: pointer; box-shadow: 0 8px 16px -10px rgba(15, 23, 42, .6); transition: background .15s, transform .15s; }
.pos__free[hidden] { display: none; }
.pos__free svg { width: 18px; height: 18px; }
@media (hover: hover) { .pos__free:hover { background: #334155; } }
.pos__free:active { transform: scale(.97); }
/* Enviados a cocina: Solicitar cuenta + lo enviado producto por producto */
.pos__bill { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 52px; margin: 2px 0 12px; border: 0; border-radius: 14px; background: linear-gradient(160deg, #ef4444, #dc2626); color: #fff; font: inherit; font-size: 1rem; font-weight: 800; cursor: pointer; box-shadow: 0 12px 22px -12px #b91c1c; transition: transform .15s, box-shadow .15s; }
.pos__bill svg { width: 20px; height: 20px; }
.pos__bill[data-pos="kit"] { min-height: 46px; background: #fff; color: #b91c1c; box-shadow: inset 0 0 0 2px #fca5a5; font-size: .92rem; }
@media (hover: hover) { .pos__bill:hover { box-shadow: 0 14px 26px -12px #b91c1c; transform: translateY(-1px); } }
.pos__bill:active { transform: scale(.98); }
.pos__bill:focus-visible, .pos__free:focus-visible { outline: 3px solid var(--sl-900); outline-offset: 2px; }
.posxs { display: flex; flex-direction: column; gap: 8px; margin: 0 0 4px; padding: 0; list-style: none; }
.posx { padding: 12px 14px; border-radius: 12px; background: #ecfdf3; border: 1px solid #bbf7d0; }
.posx--pending { background: #fffbeb; border-color: #fde68a; }
.posx--ready, .posx--served { background: #eff6ff; border-color: #bfdbfe; }
.posx.is-new { animation: posxIn .55s cubic-bezier(.2, .9, .25, 1.15) both; }
@keyframes posxIn { from { opacity: 0; transform: translateY(10px) scale(.97); } }
.posx__m { display: flex; justify-content: space-between; gap: 10px; }
.posx__m b { font-size: .9rem; line-height: 1.3; overflow-wrap: anywhere; }
.posx__pr { font-weight: 800; white-space: nowrap; font-variant-numeric: tabular-nums; }
.posx__s { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 10px; margin-top: 6px; font-size: .75rem; color: var(--sl-500); }
.posx__st { font-weight: 700; color: #15803d; }
.posx--pending .posx__st { color: #b45309; }
.posx--ready .posx__st, .posx--served .posx__st { color: #1d4ed8; }
/* agregar a la orden: la foto vuela hasta la orden, la orden rebota y la fila nueva se ilumina */
.pos-fly { position: fixed; z-index: 200; display: grid; place-items: center; border-radius: 18px; overflow: hidden; background: #fff7ed; color: #c2410c; pointer-events: none; box-shadow: 0 18px 34px -12px rgba(15, 23, 42, .5), 0 0 0 3px #fff; will-change: transform, opacity; }
.pos-fly img { width: 100%; height: 100%; object-fit: cover; }
.pos-fly svg { width: 50%; height: 50%; }
.is-bump { animation: posBump .45s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes posBump { 30% { transform: scale(1.04); } 60% { transform: scale(.99); } }
.pos__sum b.is-bump { display: inline-block; animation-name: posBumpTot; }
@keyframes posBumpTot { 30% { transform: scale(1.14); color: #16a34a; } }

.posl.is-hit { animation: poslHit 1.1s ease-out; }
@keyframes poslHit { 0% { background: #dcfce7; border-color: #4ade80; box-shadow: 0 0 0 3px rgba(74, 222, 128, .35); } 100% { background: #fffbeb; border-color: #fde68a; box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); } }
.posp__n:not([hidden]) { animation: posN .4s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes posN { from { transform: scale(.4); } }
/* ventanita del producto */
.modal__box:has(.posd) { width: min(100%, 440px); }
.modal__box:has(.posd) .modal__title { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--sl-500); }
.modal__box:has(.posd) .modal__head { border-bottom: 0; padding-bottom: 0; }
.modal__box:has(.posd) .modal__foot { border-top: 0; }
.modal__box:has(.posd) .modal__foot .btn[type="submit"] { flex: 1.4; min-height: 50px; border-radius: 14px; background: #ea580c; border-color: #ea580c; box-shadow: 0 10px 20px -10px #c2410c; }
.modal__box:has(.posd) .modal__foot .btn--line { flex: 1; min-height: 50px; border-radius: 14px; border-color: transparent; background: none; color: var(--sl-500); }
.modal__box:has(.posd) .modal__foot .sp { display: none; }
.posd__h { display: flex; gap: 14px; align-items: flex-start; }
.posd__img { flex: none; display: grid; place-items: center; width: 96px; height: 96px; border-radius: 16px; background: var(--sl-100, #f1f5f9); color: #c2410c; overflow: hidden; }
.posd__img img { width: 100%; height: 100%; object-fit: contain; }
.posd__img svg { width: 40px; height: 40px; }
.posd__h h3 { margin: 4px 0 0; font-size: 1.2rem; font-weight: 800; line-height: 1.2; }
.posd__pr { margin: 4px 0 0; font-size: 1.35rem; font-weight: 800; color: #dc2626; }
.posd__d { margin: 4px 0 0; font-size: .8rem; color: var(--sl-500); }
.posd__mit { margin-top: 14px; }
.posd__k { display: block; margin: 16px 0 8px; font-size: .78rem; font-weight: 700; color: var(--sl-600, #475569); }
.posd__k small { font-weight: 500; color: var(--sl-500); }
.posd__q { display: flex; align-items: center; justify-content: center; gap: 22px; }
.posd__q button { display: grid; place-items: center; width: 52px; height: 52px; border: 1px solid var(--sl-200); border-radius: 14px; background: var(--sl-50); color: var(--sl-900); font-size: 1.6rem; font-weight: 600; cursor: pointer; touch-action: manipulation; }
.posd__q button:disabled { opacity: .35; cursor: default; }
.posd__q output { min-width: 2ch; text-align: center; font-size: 2.6rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.posd textarea { width: 100%; padding: 12px 14px; border: 1.5px solid var(--sl-200); border-radius: 12px; font: inherit; font-size: 16px; resize: vertical; background: var(--sl-50); }
.posd textarea:focus { outline: none; border-color: var(--sl-900); background: #fff; }
.sal__x--add { background: #16a34a; }
/* notebook / tablet acostada */
@media (max-width: 1200px) { .pos__main { grid-template-columns: minmax(0, 1fr) 330px; gap: 14px; padding: 14px; } .pos__grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); } }
/* tablet parada y celular: la carta ocupa todo; la Orden actual se abre con la barra de abajo */
@media (max-width: 900px) {
  .pos__top { padding: 10px 14px; gap: 10px; }
  .pos__ttl h2 { font-size: 1.2rem; }
  .pos__sum b { font-size: 1.2rem; }
  .pos__main { grid-template-columns: 1fr; padding: 12px 12px 0; }
  .pos__l { padding: 12px; border-radius: 16px 16px 0 0; padding-bottom: 84px; }
  .pos__r { position: fixed; z-index: 2; inset: auto 0 0 0; max-height: calc(100dvh - 70px); border-radius: 22px 22px 0 0; transform: translateY(105%); transition: transform .25s cubic-bezier(.2, .8, .2, 1); visibility: hidden; }
  .pos.is-ord .pos__r { transform: none; visibility: visible; }
  .pos.is-ord::after { content: ""; position: fixed; inset: 0; z-index: 1; background: rgba(15, 23, 42, .45); }
  .pos__rx { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 12px; background: var(--sl-50); color: var(--sl-900); cursor: pointer; }
  .pos__rx svg { width: 20px; height: 20px; }
  .pos__bar { position: fixed; z-index: 2; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); display: none; align-items: center; gap: 12px; min-height: 56px; padding: 0 18px; border: 0; border-radius: 16px; background: var(--sl-900); color: #fff; font: inherit; font-weight: 700; box-shadow: 0 16px 30px -12px rgba(15, 23, 42, .6); cursor: pointer; }
  .pos__bar.is-on { display: flex; }
  .pos.is-ord .pos__bar { display: none; }
  .pos__bar b { margin-left: auto; font-variant-numeric: tabular-nums; }
  .pos__barn { display: grid; place-items: center; min-width: 30px; height: 30px; padding: 0 8px; border-radius: 999px; background: #16a34a; font-weight: 800; }
  .pos__lh { margin-bottom: 10px; }
  .pos__lh > div:first-child p { display: none; }
  .pos__flt { width: 100%; }
  .pos__q { flex: 1 1 160px; min-width: 0; }
  .pos__flt select { flex: 1 1 160px; min-width: 0; }
}
@media (max-width: 600px) {
  .pos__back span { display: none; }
  .pos__back { padding: 0 10px; }
  .pos__main { padding: 8px 8px 0; }
  .pos__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .pos__sum small { font-size: .6rem; }
  .pos__free { width: 42px; padding: 0; justify-content: center; }
  .pos__free span { display: none; }
  .pos__ttl p { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .posp__b { padding: 8px 10px 10px; }
  .posp__name { font-size: .84rem; }
  .posp__pr { font-size: .95rem; }
  .posd__img { width: 76px; height: 76px; }
  .posd__img--cmb .acb { width: 148px; }
  .posd__img.posd__img--cmb { padding: 12px 0; }
}
/* celular acostado: poco alto */
@media (max-height: 500px) and (max-width: 950px) {
  .pos__top { padding: 6px 12px; }
  .pos__ttl p { display: none; }
  .pos__main { display: block; overflow-y: auto; overscroll-behavior: contain; }
  .pos__l { min-height: 0; }
  .pos__grid { overflow: visible; }
  .pos__grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .posp__img { aspect-ratio: 1 / 1; }
  .pos__lh > div:first-child { display: none; }
  .posd__img { display: none; }
  .posd__h.posd__h--cmb { flex-direction: row; text-align: left; }
  .posd__img.posd__img--cmb { display: grid; width: 96px; height: 96px; padding: 6px; }
  .posd__img--cmb .acb { width: 100%; }
  .posd__k { margin: 8px 0 4px; }
  .posd__q button { width: 44px; height: 44px; }
  .posd__q output { font-size: 2rem; }
}
@media (prefers-reduced-motion: reduce) { .pos, .pos__r, .posp { animation: none; transition: none; } }
.pos__note { margin: 8px 0 0; text-align: center; font-size: .75rem; color: var(--sl-500); }

/* ==== SALÓN · mesas por cobrar y cuenta de la mesa (la caja cobra y cierra) ==== */
.sal__lg--pay, .sal__m--pay { --c: #dc2626; --c2: #b91c1c; }
.sal__st--pay { font-size: .88rem; font-weight: 800; opacity: 1; letter-spacing: .01em; }
.sal__m--pay .sal__nm { opacity: .92; font-weight: 600; }
.cob { margin: 0 0 14px; padding: 16px; border: 2px solid #fecaca; border-radius: 16px; background: linear-gradient(180deg, #fff5f5, #fff); }
.cob__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.cob__k { margin: 0 0 6px; font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--sl-500); }
.cob__tot { margin: 0; font-size: 2.1rem; font-weight: 800; line-height: 1.05; color: #b91c1c; font-variant-numeric: tabular-nums; }
.cob__sub { margin: 4px 0 14px; font-size: .84rem; color: var(--sl-600); }
.cob__badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: #dc2626; color: #fff; font-size: .78rem; font-weight: 800; }
.cob__badge svg { width: 16px; height: 16px; }
.cob__pays { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; margin-bottom: 14px; }
.cob__p { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 52px; padding: 6px 10px; border: 1.5px solid var(--sl-200); border-radius: 12px; background: #fff; color: var(--sl-900); font: inherit; font-weight: 700; font-size: .92rem; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.cob__p small { font-size: .66rem; font-weight: 700; color: #b91c1c; text-transform: uppercase; letter-spacing: .06em; }
.cob__p.is-on { border-color: var(--sl-900); background: var(--sl-900); color: #fff; }
.cob__p.is-on small { color: #fecaca; }
.cob__p:focus-visible, .cob__go:focus-visible { outline: 3px solid #16a34a; outline-offset: 2px; }
.cob__go { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 54px; border: 0; border-radius: 14px; background: linear-gradient(160deg, #16a34a, #15803d); color: #fff; font: inherit; font-size: 1rem; font-weight: 800; cursor: pointer; box-shadow: 0 12px 22px -12px #15803d; }
.cob__go svg { width: 20px; height: 20px; stroke-width: 2.4; }
@media (max-width: 600px) { .cob { padding: 12px; } .cob__tot { font-size: 1.7rem; } .cob__pays { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.psec2--mesa { scroll-margin-top: 84px; }

/* ==== CAJA · «Agregado» en la barra de abajo al sumar un producto ==== */
.pos__ok { display: inline-flex; align-items: center; gap: 6px; color: #4ade80; }
.pos__ok svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 24; stroke-dashoffset: 24; animation: posOkTick .35s .1s ease-out forwards; }
.pos__ok.is-in { animation: posOkIn .3s cubic-bezier(.3, 1.4, .5, 1); }
@keyframes posOkIn { from { opacity: 0; transform: translateY(6px); } }
@keyframes posOkTick { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .pos__ok.is-in, .pos__ok svg { animation: none; stroke-dashoffset: 0; } }

/* ==== CAJA · cobrar cuentas de las mesas ==== */
.cj { --cj-red: #9d3933; --cj-red2: #c2493f; --cj-ok: #16a34a; --cj-ok2: #15803d; max-width: none; }
.view[data-view="caja"] { max-width: 1640px; }
.cj__lead { margin: -10px 0 18px; color: var(--soft); font-size: .95rem; }
.cj__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.cjs { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); box-shadow: var(--shadow); }
.cjs__i { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 12px; background: var(--red-bg); color: var(--cj-red); }
.cjs__i svg { width: 22px; height: 22px; }
.cjs--tot .cjs__i { background: var(--tan-bg); color: #8a4a1c; }
.cjs--free .cjs__i { background: var(--ok-bg); color: var(--ok); }
.cjs p { margin: 0; min-width: 0; }
.cjs small { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.cjs b { display: block; font-family: var(--display); font-size: 1.35rem; line-height: 1.15; color: var(--ink); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.cj .filters { margin-bottom: 16px; }

/* tarjetas de las mesas por cobrar */
.cj__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
/* Caja: pestañas Mesas · Retiro en local */
.cjtabs { display: flex; gap: 6px; width: fit-content; max-width: 100%; margin: 0 0 18px; padding: 5px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); box-shadow: var(--shadow); }
.cjtab { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 18px; border: 0; border-radius: 12px; background: transparent; color: var(--soft); font: inherit; font-size: .95rem; font-weight: 800; cursor: pointer; white-space: nowrap; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.cjtab svg { flex: none; width: 19px; height: 19px; }
.cjtab.is-on { background: #141414; color: #fff; box-shadow: 0 8px 18px -10px rgba(0, 0, 0, .6); }
.cjtab__n { min-width: 24px; padding: 2px 7px; border-radius: 999px; background: var(--sl-100, #f1f5f9); color: var(--ink); font-size: .78rem; text-align: center; font-variant-numeric: tabular-nums; }
.cjtab__n.is-hot { background: #fde2e1; color: #9d3933; }
.cjtab.is-on .cjtab__n { background: rgba(255, 255, 255, .25); color: #fff; }
.cjtab:focus-visible { outline: 3px solid var(--tan); outline-offset: 2px; }
@media (hover: hover) { .cjtab:not(.is-on):hover { background: var(--sl-50, #f8fafc); color: var(--ink); } }
@media (max-width: 480px) { .cjtabs { width: 100%; } .cjtab { flex: 1; justify-content: center; padding: 0 10px; font-size: .86rem; } }
/* Caja: pestañas + buscador del pedido (nombre o número) al costado; en pantallas angostas pasa abajo */
.cjbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0 0 18px; }
.cjbar .cjtabs { margin: 0; }
.cjq { position: relative; display: flex; align-items: center; flex: 1 1 260px; max-width: 380px; min-width: 0; }
.cjq svg { position: absolute; left: 15px; width: 19px; height: 19px; color: var(--mute); pointer-events: none; }
.cjq input { width: 100%; min-height: 56px; padding: 0 14px 0 44px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); box-shadow: var(--shadow); color: var(--ink); font: inherit; font-size: 16px; font-weight: 600; }
.cjq input::placeholder { color: var(--mute); font-weight: 500; }
.cjq input:focus { outline: none; border-color: #141414; box-shadow: 0 0 0 3px rgba(20, 20, 20, .12); }
@media (max-width: 560px) { .cjq { flex-basis: 100%; max-width: none; } }
.cjm--ret .cjm__h { background: linear-gradient(150deg, #ea7a2e, #c2410c 70%); }
.cjm--ret { box-shadow: 0 2px 4px rgba(36, 28, 23, .05), 0 18px 34px -24px rgba(194, 65, 12, .55); }

.cjm { display: flex; flex-direction: column; overflow: hidden; border-radius: 20px; background: var(--card); border: 1px solid var(--line); box-shadow: 0 2px 4px rgba(36, 28, 23, .05), 0 18px 34px -24px rgba(157, 57, 51, .55); animation: cjIn .35s ease both; }
.cjm__h { position: relative; display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 16px 16px 18px; background: linear-gradient(150deg, var(--cj-red2), var(--cj-red) 70%); color: #fff; }
.cjm__h::after { content: ""; position: absolute; inset: auto 0 0; height: 6px; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .22) 0 10px, transparent 10px 20px); }
.cjm__h h3 { margin: 0; font-family: var(--display); font-size: 1.55rem; font-weight: 800; line-height: 1.05; letter-spacing: .01em; text-transform: uppercase; }
.cjm__pax { display: flex; align-items: center; gap: 6px; margin: 6px 0 0; font-size: .82rem; font-weight: 600; opacity: .92; }
.cjm__pax svg { width: 16px; height: 16px; }
.cjm__t { display: inline-flex; align-items: center; gap: 5px; flex: none; padding: 5px 9px; border-radius: 999px; background: rgba(255, 255, 255, .2); font-size: .76rem; font-weight: 800; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cjm__t svg { width: 14px; height: 14px; stroke-width: 2.2; }
.cjm__b { display: flex; flex-direction: column; flex: 1; padding: 16px; }
.cjm__nm { margin: 0 0 8px; font-size: .8rem; font-weight: 600; color: var(--soft); overflow-wrap: anywhere; }
.cjm__k { margin: 0; font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.cjm__tot { margin: 2px 0 6px; font-family: var(--display); font-size: 2rem; font-weight: 800; line-height: 1.1; color: var(--cj-red); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.cjm__s { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; margin: 0 0 16px; font-size: .8rem; color: var(--soft); }
.cjm__st { padding: 3px 8px; border-radius: 999px; background: var(--warn-bg); color: var(--warn); font-size: .72rem; font-weight: 800; }
.cjm__st.is-ok { background: var(--ok-bg); color: var(--ok); }
.cjm__go, .cjp__go { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 50px; margin-top: auto; border: 0; border-radius: 14px; background: linear-gradient(160deg, var(--cj-ok), var(--cj-ok2)); color: #fff; font: inherit; font-size: 1rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; box-shadow: 0 12px 22px -14px var(--cj-ok2); transition: transform .15s ease, filter .15s ease; -webkit-tap-highlight-color: transparent; }
.cjm__pr { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 44px; margin-top: 8px; border: 0; border-radius: 14px; background: var(--card); color: var(--cj-red); box-shadow: inset 0 0 0 2px var(--line); font: inherit; font-size: .86rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.cjm__pr svg { width: 18px; height: 18px; stroke-width: 2.1; }
.cjm__pr:active { transform: scale(.98); }
@media (hover: hover) { .cjm__pr:hover { box-shadow: inset 0 0 0 2px var(--cj-red); } }
.cjm__pr:focus-visible { outline: 3px solid var(--tan); outline-offset: 2px; }
/* Cancelar pedido (retiro/delivery en la cocina): secundario, gris, se pone rojo al pasar */
.cjm__pr--x { color: var(--soft); }
@media (hover: hover) { .cjm__pr--x:hover { color: var(--cj-red); background: var(--red-bg); box-shadow: inset 0 0 0 2px var(--cj-red); } }
.cjm__go svg, .cjp__go svg { width: 20px; height: 20px; stroke-width: 2.3; }
.cjm__go:active, .cjp__go:active { transform: scale(.98); }
@media (hover: hover) { .cjm__go:hover, .cjp__go:hover { filter: brightness(1.07); } }
.cjm__go:focus-visible, .cjp__go:focus-visible, .cjp__m:focus-visible, .cjp__bills button:focus-visible, .cjc__back:focus-visible { outline: 3px solid var(--tan); outline-offset: 2px; }
.cj__empty { display: grid; justify-items: center; gap: 6px; padding: 48px 20px; border: 2px dashed var(--line); border-radius: var(--r); text-align: center; color: var(--soft); }
.cj__empty span { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--ok-bg); color: var(--ok); }
.cj__empty span svg { width: 28px; height: 28px; stroke-width: 2.2; }
.cj__empty b { font-size: 1.1rem; color: var(--ink); }
.cj__empty p { margin: 0; max-width: 360px; }
@keyframes cjIn { from { opacity: 0; transform: translateY(8px); } }

/* cuenta de la mesa: detalle a la izquierda, pago a la derecha */
.cjc__top { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.cjc__back { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin: 0 0 14px; padding: 5px 16px 5px 5px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink); font: inherit; font-size: .92rem; font-weight: 600; cursor: pointer; box-shadow: 0 1px 2px rgba(36, 28, 23, .06); transition: border-color .15s ease, background .15s ease, transform .15s ease; -webkit-tap-highlight-color: transparent; }
.cjc__back svg { flex: none; width: 34px; height: 34px; padding: 7px; border-radius: 50%; background: var(--cj-red); color: #fff; transition: transform .15s ease; }
.cjc__back b { font-weight: 800; }
@media (hover: hover) { .cjc__back:hover { border-color: var(--tan); background: var(--red-bg); } .cjc__back:hover svg { transform: translateX(-2px); } }
.cjc__back:active { transform: scale(.97); }
@media (prefers-reduced-motion: reduce) { .cjc__back, .cjc__back svg { transition: none; } }
.cjc__tt { flex: 1; min-width: 200px; }
.cjc__tt .h1 { margin: 0; }
.cjc__tt .h1 span { color: var(--soft); }
.cjc__tt p { margin: 4px 0 0; color: var(--soft); font-size: .9rem; }
.cjc__tt p.cjc__who { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 4px; color: var(--ink); font-size: 1rem; }
.cjc__who b { font-weight: 800; overflow-wrap: anywhere; }
.cjc__who svg { flex: none; width: 18px; height: 18px; color: #9d3933; }
.cjc__code { padding: 3px 10px; border-radius: 999px; background: #fde2e1; color: #9d3933; font-size: .85rem; font-weight: 800; letter-spacing: .03em; font-variant-numeric: tabular-nums; }
.cjc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 400px); gap: 20px; align-items: start; }
.cjc__ord, .cjc__pay { border: 1px solid var(--line); border-radius: 20px; background: var(--card); box-shadow: var(--shadow); }
.cjc__ord { padding: 18px; }
.cjc__pay { position: sticky; top: 16px; padding: 18px; }
.cjc__h { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.cjc__h svg { width: 22px; height: 22px; color: var(--cj-red); }
.cjc__h h2 { margin: 0; flex: 1; font-family: var(--display); font-size: 1.15rem; font-weight: 800; text-transform: uppercase; letter-spacing: .02em; }
.cjc__h span { font-size: .82rem; font-weight: 700; color: var(--mute); }
.cjo__l { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.cjo { padding: 14px; border: 1px solid var(--line-2); border-radius: 16px; background: var(--card-2); }
.cjo__h { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin-bottom: 10px; }
.cjo__n { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--cj-red); color: #fff; font-size: .85rem; font-weight: 800; }
.cjo__h b { font-size: .98rem; }
.cjo__h small { color: var(--mute); font-weight: 600; font-variant-numeric: tabular-nums; }
.cjo__st { margin-left: auto; padding: 3px 9px; border-radius: 999px; background: var(--warn-bg); color: var(--warn); font-size: .72rem; font-weight: 800; }
.cjo__st--ready { background: var(--blue-bg); color: var(--blue-ink); }
.cjo__st.is-srv { background: var(--ok-bg); color: var(--ok); }
.cjo__it { margin: 0; padding: 0; list-style: none; }
.cjo__it > li { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 10px 2px; border-top: 1px dashed var(--line); }
.cjo__it > li > div { min-width: 0; }
.cjo__it p { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.cjo__it p b { color: var(--cj-red); }
.cjo__it small { display: block; margin-top: 2px; font-size: .78rem; color: var(--mute); }
.cjo__it > li > span { flex: none; font-weight: 800; font-variant-numeric: tabular-nums; }
.cjo__obs, .cjo__note { display: flex !important; align-items: flex-start; gap: 5px; color: var(--warn) !important; font-weight: 600; }
.cjo__obs svg, .cjo__note svg { flex: none; width: 14px; height: 14px; margin-top: 2px; }
.cjo__note { margin: 4px 0 0; font-size: .8rem; }
.cjo__sub { display: flex; justify-content: space-between; margin: 6px 0 0; padding-top: 10px; border-top: 1px solid var(--line); font-size: .9rem; color: var(--soft); }
.cjo__sub b { color: var(--ink); font-variant-numeric: tabular-nums; }
.cjo__pago { display: flex; align-items: center; gap: 8px; margin: 14px 0 0; padding: 12px 14px; border-radius: 14px; background: var(--tan-bg); color: var(--ink-2); font-size: .9rem; }
.cjo__pago svg { flex: none; width: 18px; height: 18px; color: var(--cj-red); }
.cjp__tot { padding: 16px; border-radius: 16px; background: linear-gradient(160deg, #fbeee1, #f6e2cf); border: 1px solid var(--tan-line); }
.cjp__tot small { font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #8a4a1c; }
.cjp__tot > b { display: block; margin-top: 4px; font-family: var(--display); font-size: 2.5rem; font-weight: 800; line-height: 1.05; color: var(--cj-red); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.cjp__tot p { margin: 8px 0 0; font-size: .82rem; color: var(--soft); }
.cjp__k { display: block; margin: 18px 0 8px; font-size: .74rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--soft); }
.cjp__ms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.cjp__m { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 76px; padding: 10px 8px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--card); color: var(--ink); font: inherit; font-weight: 700; font-size: .9rem; text-align: center; cursor: pointer; box-shadow: 0 1px 2px rgba(36, 28, 23, .05); transition: border-color .15s ease, background .15s ease; -webkit-tap-highlight-color: transparent; }
.cjp__m svg { width: 24px; height: 24px; color: var(--soft); }
.cjp__m span { overflow-wrap: anywhere; }
.cjp__m small { margin-top: -2px; padding: 1px 7px; border-radius: 999px; background: var(--tan-bg); color: #8a4a1c; font-size: .6rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.cjp__m.is-on { border-color: var(--cj-red); background: var(--red-bg); color: var(--cj-red); box-shadow: 0 0 0 2px var(--cj-red) inset; }
.cjp__m.is-on svg { color: var(--cj-red); }
/* aviso por WhatsApp al cliente: casilla igual a los métodos de pago, centrada debajo de QR y Tarjeta */
.cjp__xtra { display: flex; justify-content: center; margin-top: 10px; }
.cjp__wa { width: calc((100% - 10px) / 2); }
.cjp__m.cjp__wa svg { color: #25d366; }
.cjp__wa small { background: #e3f6ea; color: #1e6b3a; }
.cjp__wa.is-done { border-color: #9fd8b3; background: #f3fbf6; }
.cjp__wa.is-done small { background: #25d366; color: #fff; }
@media (hover: hover) { .cjp__m.cjp__wa:hover { border-color: #25d366; } }
.cjp__wa:focus-visible { outline: 3px solid #25d366; outline-offset: 2px; }
@media (hover: hover) { .cjp__m:not(.is-on):hover { border-color: var(--tan); } }
.cjp__in { display: flex; align-items: center; gap: 6px; min-height: 52px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--field); }
.cjp__in:focus-within { border-color: var(--cj-red); }
.cjp__in span { font-weight: 800; color: var(--soft); }
.cjp__in input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--ink); font: inherit; font-size: 1.25rem; font-weight: 800; font-variant-numeric: tabular-nums; outline: 0; }
.cjp__bills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.cjp__bills button { min-height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink); font: inherit; font-size: .88rem; font-weight: 700; cursor: pointer; font-variant-numeric: tabular-nums; }
.cjp__bills button.is-on { border-color: var(--ink); background: var(--ink); color: #fff; }
.cjp__vu { display: flex; align-items: baseline; justify-content: space-between; margin: 12px 0 0; padding: 12px 14px; border-radius: 12px; background: var(--ok-bg); color: var(--ok); }
.cjp__vu span { font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.cjp__vu b { font-family: var(--display); font-size: 1.4rem; font-variant-numeric: tabular-nums; }
.cjp__vu.is-bad { background: var(--red-bg); color: var(--cj-red); }
.cjp__go { margin-top: 18px; min-height: 56px; }
.cjp__nt { margin: 10px 0 0; text-align: center; font-size: .78rem; color: var(--mute); }

@media (max-width: 1100px) {
  .cjc { grid-template-columns: minmax(0, 1fr); }
  .cjc__pay { position: static; order: -1; }
}
@media (max-width: 640px) {
  .cj__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .cjs--tot { grid-column: 1 / -1; order: -1; }
  .cjs { padding: 12px; gap: 10px; }
  .cjs__i { width: 36px; height: 36px; }
  .cjs b { font-size: 1.15rem; }
  .cj__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .cjm { border-radius: 16px; }
  .cjm__h { flex-direction: column; gap: 8px; padding: 12px 12px 14px; }
  .cjm__h h3 { font-size: 1.2rem; }
  .cjm__pax { font-size: .74rem; }
  .cjm__b { padding: 12px; }
  .cjm__tot { font-size: 1.4rem; }
  .cjm__s { margin-bottom: 12px; font-size: .74rem; }
  .cjm__go { min-height: 44px; font-size: .88rem; }
  .cjc__ord, .cjc__pay { padding: 14px; border-radius: 16px; }
  .cjc__top .btn { width: 100%; justify-content: center; }
  .cjp__tot > b { font-size: 2rem; }
  .cjo { padding: 12px; }
}
@media (max-width: 359px) {
  .cj__grid { grid-template-columns: minmax(0, 1fr); }
  .cjm__h { flex-direction: row; }
}
@media (prefers-reduced-motion: reduce) { .cjm { animation: none; } .cjm__go, .cjp__go, .cjp__m { transition: none; } }

/* ==== MOZO · mesas con el diseño de la Caja (tarjetas .cjm) ==== */
.mz { --cj-red: #9d3933; --cj-red2: #c2493f; --cj-ok: #16a34a; --cj-ok2: #15803d; }
.mz-stats { margin: 22px 0 0; }
.mz-m { color: var(--ink); text-decoration: none; -webkit-tap-highlight-color: transparent; touch-action: manipulation; transition: transform .12s, box-shadow .15s; }
.mz-m:active { transform: scale(.98); }
.mz-m:focus-visible { outline: 3px solid var(--tan); outline-offset: 3px; }
.mz-m .cjm__h > span:first-child { min-width: 0; }
.mz-m__t { display: block; font-family: var(--display); font-size: 1.55rem; font-weight: 800; line-height: 1.05; letter-spacing: .01em; text-transform: uppercase; }
.mz-m .cjm__pax, .mz-m .cjm__nm, .mz-m .cjm__s { display: flex; }
.mz-m .cjm__nm { display: block; }
.mz-m .cjm__go { margin-top: auto; }
.mz-m.is-free .cjm__h { background: linear-gradient(150deg, #8a7a6c, #6b5d51 70%); }
.mz-m.is-free .cjm__go { background: var(--card); color: var(--cj-red); box-shadow: inset 0 0 0 2px var(--cj-red); }
.mz-m.is-ready { border-color: var(--ok); box-shadow: 0 0 0 2px var(--ok), var(--shadow); }
.mz-m.is-ready .cjm__h { background: linear-gradient(150deg, var(--cj-ok), var(--cj-ok2) 70%); }
.mz-m.is-call { border-color: var(--red); animation: cjIn .35s ease both, mzLlama 1.4s ease-in-out infinite; }
.cjm__st.is-call { background: var(--red); color: #fff; }
.mz-m__draft { align-self: flex-start; max-width: 100%; margin: -6px 0 14px; padding: 3px 9px; border-radius: 99px; background: var(--red); color: #fff; font-size: .72rem; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (hover: hover) and (pointer: fine) { .mz-m:hover { box-shadow: 0 2px 4px rgba(36, 28, 23, .05), 0 22px 38px -22px rgba(157, 57, 51, .7); } }
@media (min-width: 641px) { .mz-grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; } }
@media (max-width: 640px) {
  .mz-m__t { font-size: 1.2rem; }
  .mz-m__draft { margin: -4px 0 10px; }
  .mz-m__lg { display: none; }
}
@media (max-width: 359px) { .mz-m__t { font-size: 1.1rem; } }
@media (prefers-reduced-motion: reduce) { .mz-m.is-call { animation: none; } }
/* COCINA · ticket automático (en el equipo de la cocina) */
.kauto { display: flex; align-items: center; gap: 12px; width: 100%; margin-bottom: 14px; padding: 12px 16px; border: 1.5px dashed var(--line); border-radius: 16px; background: var(--card); color: var(--ink); text-align: left; font: inherit; cursor: pointer; touch-action: manipulation; }
.kauto.is-on { border-style: solid; border-color: var(--ok); background: var(--ok-bg); }
.kauto svg { flex: none; width: 24px; height: 24px; }
.kauto.is-on svg { color: var(--ok); }
.kauto b { display: block; font-size: 1rem; }
.kauto small { display: block; color: var(--soft); font-size: .88rem; }
.kauto:focus-visible { outline: 3px solid var(--tan); outline-offset: 2px; }
/* MOZO · mesas con el diseño del salón (colores: libre, ocupada, para llevar, pide la cuenta, te llama) */
.mz-salh { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; margin-bottom: 12px; }
.mz-salh .mz-h { margin: 0; }
.mz-sal .sal__m { color: #fff; text-decoration: none; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.mz-sal .sal__m:active { transform: scale(.96); }
.mz-sal .sal__m.mz-llama { animation: mzLlama 1.4s ease-in-out infinite; }
.cjm__st.is-bill { background: var(--red); color: #fff; }
@media (prefers-reduced-motion: reduce) { .mz-sal .sal__m.mz-llama { animation: none; } }
/* Abrir mesa · datos del cliente (para mandarle promos) */
.pax__cli { display: grid; gap: 12px; margin-top: 6px; padding-top: 14px; border-top: 1px dashed var(--sl-200); text-align: left; }
.pax__cli .f { margin: 0; }
.pax__cli input { width: 100%; min-height: 50px; padding: 12px 18px; border: 1.5px solid var(--sl-200, #dfe3ea); border-radius: 16px; background: #fff; font-size: 16px; transition: border-color .15s, box-shadow .15s, background-color .15s; }
.pax__cli input:focus { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(21, 17, 14, .07); outline: none; }
/* campo que falta: borde rojo suave y redondeado, sin líneas duras */
.pax__cli .f.is-err input { border: 1.5px solid #e5484d !important; background: #fff5f5 !important; box-shadow: 0 0 0 4px rgba(229, 72, 77, .12); }
.pax__cli .f.is-err input::placeholder { color: #d77a7d; }
.pax__cli .f.is-err .f__l { color: #d1343a; }
.pax ~ .modal__err, .pax__cli ~ .modal__err { display: flex; align-items: center; gap: 8px; margin-top: 14px; padding: 10px 14px; border-radius: 14px; background: #fff1f1; color: #c62a30; font-size: .9rem; line-height: 1.35; }
.pax__cli ~ .modal__err[hidden] { display: none; }
@media (max-height: 520px) { .pax__cli { grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 4px; padding-top: 8px; } .pax__cli .f__l { margin-bottom: 3px; font-size: .82rem; } .pax__cli input { min-height: 42px; } }
@media (max-height: 520px) and (max-width: 520px) { .pax__cli { grid-template-columns: 1fr; } }

/* ==== COCINA: barra de locales del dueño (Sarmiento | Patricias) ==== */
.kd-loc { margin: 0 0 14px; }
.kd-loc .pe-loc__b .cnt { flex: none; }
.kd-loc .pe-loc__b.is-on .cnt { box-shadow: 0 0 0 2px var(--ink); }
.kd-loc .kd-pre { font-style: normal; }
@media (max-width: 560px) { .kd-loc .kd-pre { display: none; } .kd-loc .pe-loc__b { gap: 6px; padding: 8px; } }
@media (max-width: 380px) { .kd-loc .pe-loc__b svg { display: none; } }

/* ==== CAJA: tres pestañas (Mesas · Retiro · Delivery) y el local, sin pasarse del ancho en celular ==== */
@media (max-width: 560px) {
  .cj .filters .fgroup { flex-wrap: wrap; min-width: 0; max-width: 100%; }
  .cj .seg--suc { display: flex; width: 100%; max-width: 100%; }
  .cj .seg--suc button { flex: 1 1 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .cjtabs { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); width: 100%; }
  .cjtab { flex-direction: column; gap: 3px; min-height: 58px; padding: 6px 4px; font-size: .78rem; line-height: 1.15; white-space: normal; text-align: center; position: relative; }
  .cjtab span { min-width: 0; }
  .cjtab__n { position: absolute; top: 4px; right: 4px; min-width: 20px; padding: 1px 5px; font-size: .7rem; }
}

/* ==== RETIRO EN LOCAL (otros locales): globito verde que late cuando hay un pedido listo para entregar ==== */
.seg2--main .seg2__n--ok, .seg2__n--ok { background: #16a34a; color: #fff; animation: retOk 1.2s ease-in-out infinite; }
@keyframes retOk { 0%, 100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, .55); } 50% { box-shadow: 0 0 0 6px rgba(22, 163, 74, 0); } }
@media (prefers-reduced-motion: reduce) { .seg2__n--ok { animation: none; } }
/* pedido listo para entregar: encabezado verde */
.cjm--listo .cjm__h { background: linear-gradient(150deg, #22c55e, #15803d 70%); }
.cjm--listo { box-shadow: 0 2px 4px rgba(36, 28, 23, .05), 0 18px 34px -24px rgba(21, 128, 61, .6); }
/* Caja › Retiro en local: en la cocina (ámbar) y listo para cobrar (verde, con franja y punto que late) */
.cjm__st.is-cook { background: #fef3c7; color: #92400e; }
.cjm--listo { border-color: #86efac; }
.cjm--listo .cjm__tot { color: #15803d; }
.cjm__ok { display: flex; align-items: center; gap: 7px; margin: 0; padding: 9px 16px; background: #dcfce7; color: #166534; font-size: .8rem; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; border-bottom: 1px solid #bbf7d0; }
.cjm__ok svg { width: 15px; height: 15px; flex: none; }
.cjm__ok small { margin-left: auto; font-size: .72rem; font-weight: 700; text-transform: none; letter-spacing: 0; color: #15803d; }
.cjm__okdot { width: 8px; height: 8px; flex: none; border-radius: 50%; background: #16a34a; animation: retOk 1.2s ease-in-out infinite; }
/* franja del estado: el texto en un renglón (con … si no entra) y la hora a la derecha */
.cjm__ok > span:not(.cjm__okdot) { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.cjm__ok small { flex: none; white-space: nowrap; }
.cjm__ok--new { background: #ffedd5; color: #9a3412; border-bottom-color: #fed7aa; }
.cjm__ok--new .cjm__okdot { background: #ea580c; }
.cjm__ok--cook { background: #fef3c7; color: #92400e; border-bottom-color: #fde68a; }
.cjm__ok--cook .cjm__okdot { background: #d97706; animation: none; }
.cjm.is-flash { animation: cjFlash 2.4s ease-out; }
@keyframes cjFlash { 0%, 40% { box-shadow: 0 0 0 4px #22c55e, 0 18px 34px -18px rgba(21, 128, 61, .7); transform: scale(1.02); } 100% { box-shadow: 0 2px 4px rgba(36, 28, 23, .05), 0 18px 34px -24px rgba(21, 128, 61, .6); transform: none; } }
@media (prefers-reduced-motion: reduce) { .cjm__okdot, .cjm.is-flash { animation: none; } }

/* ==== SEMÁFORO Y MACHETE (los mismos colores en caja, cocina y mozo) ====
   nuevo rojo · en cocina ámbar · listo / pide la cuenta verde · comiendo azul · libre gris */
:root { --sem-new: #dc2626; --sem-new2: #b91c1c; --sem-cook: #f59e0b; --sem-cook2: #d97706; --sem-ready: #16a34a; --sem-ready2: #15803d; --sem-eat: #2563eb; --sem-eat2: #1d4ed8; --sem-free: #a8a29e; --sem-free2: #78716c; }
/* solo en el local con el diseño nuevo (Nostra Patricias): clase .sem-nuevo en la caja, el salón, la cocina y el mozo */
.sem-nuevo :is(.sal__lg--free, .sal__m--free) { --c: var(--sem-free); --c2: var(--sem-free2); }
.sem-nuevo :is(.sal__lg--new, .sal__m--new) { --c: var(--sem-new); --c2: var(--sem-new2); }
.sem-nuevo :is(.sal__lg--cook, .sal__m--cook) { --c: var(--sem-cook); --c2: var(--sem-cook2); }
.sem-nuevo :is(.sal__lg--ready, .sal__m--ready, .sal__lg--pay, .sal__m--pay) { --c: var(--sem-ready); --c2: var(--sem-ready2); }
.sem-nuevo :is(.sal__lg--eat, .sal__m--eat) { --c: var(--sem-eat); --c2: var(--sem-eat2); }
.sem-nuevo .sal__m--off { --c: #cbd5e1; --c2: #94a3b8; }
/* Caja: franja azul «Comiendo», Cobrar en línea mientras no pidan la cuenta, ayudas y Avisar por WhatsApp */
.cjm__ok--eat { background: #dbeafe; color: #1e3a8a; border-bottom-color: #bfdbfe; }
.cjm__ok--eat .cjm__okdot { background: var(--sem-eat); animation: none; }
.sem-nuevo .cjm__ok--new { background: #fee2e2; color: #991b1b; border-bottom-color: #fecaca; }
.sem-nuevo .cjm__ok--new .cjm__okdot { background: var(--sem-new); }
.cjm__go.cjm__go--line { background: var(--card); color: var(--ink-2); box-shadow: inset 0 0 0 2px var(--line); }
/* retiro: el cliente sumó algo desde su casa (ya va en el total) */
.cjm__sumo { display: flex; align-items: flex-start; gap: 9px; margin: -6px 0 12px; padding: 10px 12px; border: 1.5px solid #f59e0b; border-radius: 12px; background: #fffbeb; color: #78350f; text-align: left; }
.cjm__sumo > svg { flex: none; width: 20px; height: 20px; margin-top: 1px; color: #d97706; }
.cjm__sumo div { min-width: 0; display: grid; gap: 2px; }
.cjm__sumo b { font-size: .86rem; }
.cjm__sumo span { font-size: .84rem; font-weight: 700; overflow-wrap: anywhere; }
.cjm__sumo small { font-size: .74rem; opacity: .85; }
.cjm__help { margin: 8px 0 0; font-size: .78rem; line-height: 1.35; color: var(--soft); text-align: center; }
.cjm__wa { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 46px; margin: 10px 0 0; border: 0; border-radius: 14px; background: #25d366; color: #fff; font: inherit; font-size: .9rem; font-weight: 800; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.cjm__wa svg { width: 19px; height: 19px; }
.cjm__wa.is-done { background: var(--card); color: #15803d; box-shadow: inset 0 0 0 2px #86efac; font-weight: 700; }
.cjm__wa + .cjm__help + .cjm__go, .cjm__wa + .cjm__go { margin-top: 10px; }
/* Cocina: columnas con su color, «Agregado» y la ayuda debajo del botón */
.sem-nuevo .kcol--kitchen .kcol__h h2::before, .sem-nuevo .kcol--prep .kcol__h h2::before { content: ""; display: inline-block; width: 12px; height: 12px; border-radius: 50%; vertical-align: .08em; background: var(--sem-new); }
.sem-nuevo .kcol--prep .kcol__h h2::before { background: var(--sem-cook); }
.kc__add { margin-left: 8px; padding: 2px 8px; border-radius: 999px; background: #fee2e2; color: #991b1b; font-style: normal; font-size: .72rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; vertical-align: middle; }
.kc__help { margin: 8px 0 0; font-size: .8rem; line-height: 1.3; color: var(--soft); text-align: center; }
/* Mozo: bebidas para llevar (azul) y ayudas */
.mz-sec--beb .mz-h span { background: var(--sem-eat); color: #fff; }
.mz-r--beb { border-color: var(--sem-eat); }
.mz-r--beb .mz-r__btn { background: var(--sem-eat); }
.mz-help { margin: 8px 0 0; font-size: .8rem; line-height: 1.3; color: var(--soft); text-align: center; }
/* Machete «¿Cómo se usa?» */
.mach { margin: 0 0 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--card-2); }
.mach__s { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 14px; cursor: pointer; list-style: none; -webkit-tap-highlight-color: transparent; }
.mach__s::-webkit-details-marker { display: none; }
.mach__s > svg { width: 22px; height: 22px; flex: none; color: var(--tan-d); }
.mach__s > span { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.mach__s b { font-size: .95rem; color: var(--ink); }
.mach__s small { font-size: .78rem; color: var(--soft); }
.mach__t { margin-left: auto; flex: none; padding: 6px 12px; border-radius: 999px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); font-style: normal; font-size: .78rem; font-weight: 700; color: var(--ink-2); }
.mach__b { padding: 0 14px 14px; }
.mach__sem { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; padding: 0; list-style: none; }
.mach__sem li { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); font-size: .75rem; font-weight: 700; color: var(--ink-2); }
.mach__sem li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.sem--new { --c: var(--sem-new); } .sem--cook { --c: var(--sem-cook); } .sem--ready { --c: var(--sem-ready); } .sem--eat { --c: var(--sem-eat); } .sem--free { --c: var(--sem-free); }
.mach__l { margin: 0; padding-left: 22px; display: grid; gap: 6px; font-size: .9rem; line-height: 1.4; color: var(--ink-2); }
.mach__l b { color: var(--ink); }
@media (max-width: 480px) { .mach__s small { display: none; } .mach__l { font-size: .86rem; } }
/* Caja: la cabecera de la tarjeta con el color del semáforo (ámbar en cocina, azul comiendo, rojo nuevo) */
.cjm--cook .cjm__h { background: linear-gradient(150deg, var(--sem-cook), var(--sem-cook2) 70%); }
.cjm--eat .cjm__h { background: linear-gradient(150deg, var(--sem-eat), var(--sem-eat2) 70%); }
.cjm--new .cjm__h { background: linear-gradient(150deg, var(--sem-new), var(--sem-new2) 70%); }
.cjm--cook .cjm__tot { color: var(--sem-cook2); }
.cjm--eat .cjm__tot { color: var(--sem-eat2); }
.sem-nuevo .kc.kc--prep { border-color: var(--sem-cook2); }

/* ==== CAJA · Dividir pago (dos medios) ==== */
.cjp__spgo { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 48px; margin-top: 12px; padding: 0 14px; border: 1.5px dashed var(--line); border-radius: 14px; background: transparent; color: var(--ink); font: inherit; font-weight: 700; font-size: .92rem; cursor: pointer; }
.cjp__spgo svg { width: 20px; height: 20px; color: var(--soft); }
@media (hover: hover) { .cjp__spgo:hover { border-color: var(--tan); } }
.cjp__sp { margin-top: 12px; padding: 14px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--card); }
.cjp__sph { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.cjp__sph b { font-size: 1rem; }
.cjp__sph button { min-height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--soft); font: inherit; font-size: .82rem; font-weight: 700; cursor: pointer; }
.cjp__sp .cjp__in input { font-size: max(16px, 1.25rem); }
.cjp__sp .cjp__ms { margin-top: 2px; }
.cjp__sp .cjp__m { min-height: 60px; }
.cjp__spr { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 14px; margin: 12px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--tan-bg); color: #8a4a1c; font-size: .9rem; font-weight: 600; }
.cjp__spr.is-ok { background: var(--ok-bg); color: var(--ok); }
.cjp__spr b { font-variant-numeric: tabular-nums; }
.cjp__spgo:focus-visible, .cjp__sph button:focus-visible { outline: 3px solid var(--tan); outline-offset: 2px; }

/* Mozo de Patricias: los contadores de arriba con los colores del semáforo (Libres gris · Ocupadas azul · Piden cuenta verde) */
.sem-nuevo .mz-stats .cjs { border-left: 5px solid var(--c); }
.sem-nuevo .mz-stats .cjs--free { --c: var(--sem-free); }
.sem-nuevo .mz-stats .cjs--pay { --c: var(--sem-eat); }
.sem-nuevo .mz-stats .cjs--tot { --c: var(--sem-ready); }
.sem-nuevo .mz-stats .cjs__i { background: var(--c); color: #fff; }

/* Caja › cuenta de la mesa: cancelar un pedido que sigue en la cocina */
.cjo__x { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; margin-top: 10px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 999px; background: transparent; color: var(--cj-red); font: inherit; font-size: .85rem; font-weight: 700; cursor: pointer; }
.cjo__x svg { width: 16px; height: 16px; }
@media (hover: hover) { .cjo__x:hover { border-color: var(--cj-red); background: var(--red-bg); } }
.cjo__x:focus-visible { outline: 3px solid var(--cj-red); outline-offset: 2px; }

/* ==== SEMÁFORO: «Pide la cuenta» con su propio color (violeta), así no se confunde con «Para llevar» (verde) ====
   Patricias, en las 3 pantallas: grilla de Mesas, tarjetas de Caja y panel del mozo */
:root { --sem-pay: #7c3aed; --sem-pay2: #6d28d9; }
.sem-nuevo :is(.sal__lg--pay, .sal__m--pay) { --c: var(--sem-pay); --c2: var(--sem-pay2); }
.sem--pay { --c: var(--sem-pay); }
.sem-nuevo .mz-stats .cjs--pay { --c: var(--sem-pay); }
.cjm.cjm--pay { border-color: #c4b5fd; box-shadow: 0 2px 4px rgba(36, 28, 23, .05), 0 18px 34px -24px rgba(109, 40, 217, .6); }
.cjm.cjm--pay .cjm__h { background: linear-gradient(150deg, var(--sem-pay), var(--sem-pay2) 70%); }
.cjm.cjm--pay .cjm__tot { color: var(--sem-pay2); }
.cjm__ok.cjm__ok--pay { background: #ede9fe; color: #4c1d95; border-bottom-color: #ddd6fe; }
.cjm__ok--pay .cjm__okdot { background: var(--sem-pay); }
.cjm.cjm--ready { border-color: #86efac; }
.cjm.cjm--ready .cjm__h { background: linear-gradient(150deg, var(--sem-ready), var(--sem-ready2) 70%); }
.cjm.cjm--ready .cjm__tot { color: var(--sem-ready2); }

/* ==== Carta de la mesa (mozo y caja) en celular y tablet: letras y tamaños a medida ====
   Celular: sin el título «Seleccionar productos», buscador y categoría completos, fotos más bajas (entran más productos) */
@media (max-width: 600px) {
  .pos__l { padding: 10px 10px 84px; }
  .pos__lh { margin-bottom: 8px; }
  .pos__lh > div:first-child { display: none; }
  .pos__flt { gap: 8px; flex-wrap: nowrap; }
  .pos__q { flex: 1 1 55%; min-width: 0; }
  .pos__q input { min-width: 0; width: 100%; }
  .pos__flt select { flex: 1 1 45%; min-width: 0; min-height: 44px; padding: 0 30px 0 12px; background-position: right 10px center; text-overflow: ellipsis; }
  .posp__img { aspect-ratio: 4 / 3; }
  .posp--cmb .acb { width: 58%; }
  .posp__tag { top: 6px; right: 6px; padding: 2px 8px; font-size: .64rem; }
  .posp__n { top: 6px; left: 6px; min-width: 26px; height: 26px; font-size: .8rem; }
  .posp__b { gap: 4px; padding: 8px 10px 10px; }
  .posp__name { font-size: .82rem; line-height: 1.25; }
  .posp__pr { font-size: .92rem; }
  .pos__ttl h2 { font-size: 1.1rem; }
  .pos__ttl p { font-size: .76rem; }
  .pos__sum b { font-size: 1.1rem; }
  .pos__bar { min-height: 52px; padding: 0 14px; font-size: .95rem; }
}
/* celulares angostos (iPhone SE, Galaxy Fold cerrado o letra del sistema agrandada): buscador y categoría uno arriba del otro */
@media (max-width: 339px) {
  .pos__flt { flex-wrap: wrap; }
  .pos__q, .pos__flt select { flex: 1 1 100%; }
  .pos__top { gap: 8px; padding: 8px 10px; }
  .pos__sum small { letter-spacing: .04em; }
  .pos__grid { gap: 8px; }
  .posp__b { padding: 7px 8px 9px; }
  .posp__name { font-size: .78rem; }
  .posp__pr { font-size: .88rem; }
}
/* tablet parada: tarjetas un poco más chicas para ver 4 por fila */
@media (min-width: 601px) and (max-width: 900px) {
  .pos__grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
  .posp__img { aspect-ratio: 4 / 3; }
  .posp--cmb .acb { width: 58%; }
}

/* ==== MOZO / CAJA: FOTOS DE LA CARTA (tarjetas .posp) ==== */
/* Producto recortado (botella, lata: fondo blanco o transparente) → entero, centrado y con aire para que no lo tape la etiqueta.
   Foto común (horizontal o cuadrada, la marca posImg en admin.js) → llena el recuadro. Igual en todos los tamaños */
.posp__img { background: #f8fafc; }
.posp__img img { box-sizing: border-box; padding: clamp(26px, 16%, 40px) 10% 8%; object-fit: contain; object-position: center; }
.posp__img img.is-foto { padding: 0; object-fit: cover; }

/* ==== COCINA SENCILLA (Patricias): una sola lista «Para hacer» en grilla y un solo botón verde «Listo» ==== */
.kds--todo { grid-template-columns: 1fr; }
.kds--todo .kcol--todo { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); align-items: start; background: #fdf3d6; }
.kds--todo .kcol__h, .kds--todo .kcol__empty { grid-column: 1 / -1; }
.kds--todo .kcol__h h2 { color: #7a5200; }
.kds.kds--todo .kc__btns .btn--big { border-color: #1d7a3e; background: #1d7a3e; color: #fff; }
@media (hover: hover) { .kds.kds--todo .kc__btns .btn--big:not(:disabled):hover { border-color: #166232; background: #166232; } }
@media (max-width: 760px) { .kds--todo .kcol--todo { padding: 8px; } }

/* 2026-11-13: sin pestaña Caja en el menú (el cobro se abre desde Pedidos) */
.nav__item[data-tab="caja"] { display: none !important; }

/* ==== CAJA · Cobrar (pasos numerados, vuelto claro, pago dividido en dos renglones) ==== */
.cjp__tot p { margin: 8px 0 0; font-size: .86rem; color: #8a4a1c; }
.cjp__tot p b { color: var(--cj-red); }
.cjp__step { display: flex; align-items: center; gap: 10px; margin: 20px 0 10px; font-size: .95rem; font-weight: 800; color: var(--ink); }
.cjp__step > span { display: inline-grid; place-items: center; flex: 0 0 26px; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #fff; font-size: .8rem; font-weight: 800; }
.cjp__step label { cursor: pointer; }
.cjp__m small { font-size: .62rem; }
.cjp__ok { position: absolute; top: 7px; right: 7px; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--cj-red); }
.cjp__m .cjp__ok svg { width: 13px; height: 13px; color: #fff; stroke-width: 3; }
/* WhatsApp: aviso al cliente, separado de los medios de pago */
.cjp__wa { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; margin-top: 12px; padding: 10px 14px; border: 1.5px solid #bfe6cc; border-radius: 14px; background: #f3fbf6; color: var(--ink); font: inherit; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.cjp__wa > svg:first-child { flex: 0 0 26px; width: 26px; height: 26px; color: #25d366; }
.cjp__wa > span { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.cjp__wa b { font-size: .92rem; }
.cjp__wa small { margin: 1px 0 0; padding: 0; background: none; color: var(--soft); font-size: .78rem; font-weight: 600; text-transform: none; letter-spacing: 0; }
.cjp__wa > svg:last-child:not(:first-child) { flex: 0 0 20px; width: 20px; height: 20px; color: #1e6b3a; stroke-width: 2.6; }
.cjp__wa.is-done { border-color: #9fd8b3; background: #e8f7ee; }
.cjp__wa.is-done small { background: none; color: #1e6b3a; }
@media (hover: hover) { .cjp__wa:hover { border-color: #25d366; } }
/* Efectivo: vuelto grande */
.cjp__in input { font-size: max(16px, 1.25rem); }
.cjp__in input::placeholder { font-size: 1rem; font-weight: 600; color: var(--mute); }
.cjp__vu { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 2px 10px; padding: 14px 16px; }
.cjp__vu b { font-size: 1.7rem; }
.cjp__vu small { grid-column: 1 / -1; font-size: .8rem; font-weight: 600; opacity: .9; }
.cjp__vu.is-wait { background: var(--field); color: var(--soft); border: 1.5px dashed var(--line); }
.cjp__tip { display: flex; align-items: flex-start; gap: 10px; margin: 14px 0 0; padding: 12px 14px; border-radius: 12px; background: var(--tan-bg); color: #6e3a14; font-size: .88rem; line-height: 1.4; }
.cjp__tip svg, .cjp__spr > svg { flex: 0 0 18px; width: 18px; height: 18px; margin-top: 1px; }
/* Botón dividir: claro como pregunta */
.cjp__spgo { justify-content: flex-start; margin-top: 14px; color: var(--soft); font-weight: 600; }
.cjp__spgo b { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
/* Pago dividido */
.cjp__sp { margin-top: 14px; padding: 14px; border-color: var(--tan-line); background: #fffaf5; }
.cjp__sph { margin-bottom: 12px; }
.cjp__sph b { display: flex; align-items: center; gap: 8px; }
.cjp__sph b svg { width: 20px; height: 20px; color: var(--cj-red); }
.cjp__sph button { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 14px 0 6px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink); font-size: .84rem; font-weight: 700; box-shadow: 0 1px 2px rgba(36, 28, 23, .06); transition: border-color .15s ease, background .15s ease, color .15s ease; -webkit-tap-highlight-color: transparent; }
.cjp__sph button svg { box-sizing: content-box; width: 12px; height: 12px; padding: 6px; border-radius: 7px; background: var(--field); color: var(--soft); stroke-width: 2.6; transition: background .15s ease, color .15s ease; }
@media (hover: hover) { .cjp__sph button:hover { border-color: var(--cj-red); color: var(--cj-red); } .cjp__sph button:hover svg { background: var(--red-bg); color: var(--cj-red); } }
.cjp__sph button:active { transform: scale(.97); }
.cjp__row { display: grid; grid-template-columns: 26px minmax(0, 1fr) minmax(0, 1.25fr); align-items: center; gap: 10px; }
.cjp__rn { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #fff; font-size: .8rem; font-weight: 800; }
.cjp__rl { display: flex; align-items: center; gap: 6px; min-width: 0; margin: 0; font-size: .95rem; }
.cjp__rl b { overflow-wrap: anywhere; }
.cjp__rl svg { flex: 0 0 20px; width: 20px; height: 20px; color: var(--cj-red); }
.cjp__row .cjp__in { min-height: 48px; }
.cjp__sp > .cjp__bills { margin: 8px 0 0 36px; }
.cjp__row--b { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); }
.cjp__rv { margin: 0; padding: 0 14px; min-height: 48px; display: flex; align-items: center; justify-content: flex-end; border-radius: 14px; background: var(--field); font-family: var(--display); font-size: 1.25rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.cjp__q { margin: 12px 0 8px 36px; font-size: .86rem; font-weight: 700; color: var(--soft); }
.cjp__ms--sm { margin-left: 36px; }
.cjp__ms--sm .cjp__m { min-height: 56px; flex-direction: row; gap: 8px; font-size: .86rem; }
.cjp__ms--sm .cjp__m svg { width: 20px; height: 20px; }
.cjp__spr { align-items: flex-start; justify-content: flex-start; flex-wrap: nowrap; gap: 10px; line-height: 1.4; }
.cjp__spr.is-bad { background: var(--red-bg); color: var(--cj-red); }
.cjp__spr ul { flex: 1; margin: 0; padding: 0; list-style: none; }
.cjp__spr li { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; }
.cjp__spr li.cjp__sum { margin-top: 4px; padding-top: 7px; border-top: 1px solid rgba(29, 122, 62, .3); font-weight: 800; }
.cjp__sum span { display: inline-flex; align-items: center; gap: 6px; }
.cjp__sum svg { width: 16px; height: 16px; stroke-width: 2.8; }
/* Botón final: dice qué se cobra y cómo */
.cjp__go { flex-direction: row; min-height: 62px; padding: 8px 16px; text-transform: none; letter-spacing: 0; }
.cjp__go > span { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; text-align: left; }
.cjp__go b { font-size: 1.1rem; letter-spacing: .02em; text-transform: uppercase; }
.cjp__go small { font-size: .82rem; font-weight: 600; opacity: .92; overflow-wrap: anywhere; }
.cjp__go.is-off { background: var(--field); color: var(--soft); box-shadow: inset 0 0 0 1.5px var(--line); }
@media (max-width: 400px) {
  .cjp__row { grid-template-columns: 26px minmax(0, 1fr); }
  .cjp__row .cjp__in, .cjp__row .cjp__rv { grid-column: 2; }
  .cjp__q, .cjp__ms--sm, .cjp__sp > .cjp__bills { margin-left: 0; }
  .cjp__ms--sm { grid-template-columns: minmax(0, 1fr); }
}

/* ==== VOLVER A IMPRIMIR (se sumaron productos después de imprimir la comanda) ==== */
.oc__reimp { display: flex; gap: 10px; align-items: flex-start; margin: 8px 0 0; padding: 12px 14px; border-radius: 12px;
  background: #fef2f2; border: 2px solid #dc2626; color: #7f1d1d; font-size: .95rem; line-height: 1.35; animation: reimpPulse 1.6s ease-in-out 3; }
.oc__reimp svg { width: 22px; height: 22px; flex-shrink: 0; color: #dc2626; }
.oc__reimp b { display: block; font-size: 1.05rem; color: #b91c1c; }
.ob2--hot { background: #dc2626 !important; border-color: #dc2626 !important; color: #fff !important; }
.ob1--reimp { background: #dc2626 !important; border-color: #dc2626 !important; color: #fff !important; }
@keyframes reimpPulse { 50% { box-shadow: 0 0 0 5px rgba(220, 38, 38, .25); } }
@media (prefers-reduced-motion: reduce) { .oc__reimp { animation: none; } }

/* ==== EMPLEADOS: planilla de la semana responsive ====
   Si entra a lo ancho es tabla; si no (celular, tablet, panel angosto) cada empleado es una tarjeta con sus 7 días */
.pe-wkw { container-type: inline-size; }
.pe-c__d { display: none; }
.pe-wk__t span, .pe-wk__t em { display: block; }
@container (max-width: 879px) {
  .pe-wkw { overflow: visible; margin: 0 0 12px; padding: 0; }
  .pe-wk, .pe-wk tbody { display: block; width: 100%; min-width: 0; }
  .pe-wk thead { display: none; }
  .pe-wk tr { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; margin: 0 0 10px; padding: 12px; border: 1px solid var(--line-2); border-radius: 16px; background: var(--card); }
  .pe-wk tbody th { position: static; grid-column: 1 / -1; display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 8px; width: auto; padding: 0; text-align: left; }
  .pe-wk tbody th b { font-size: 1rem; }
  .pe-wk td { min-width: 0; }
  .pe-wk__t { order: -1; grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; padding: 0 0 4px !important; border-bottom: 1px solid var(--line-2); }
  .pe-wk__t b { font-size: 1rem; }
  .pe-wk tbody th { order: -2; }
  .pe-c { min-height: 64px; padding: 6px 3px; border-radius: 10px; }
  .pe-c__d { display: block; margin-bottom: 3px; font-style: normal; font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; opacity: .75; white-space: nowrap; }
  .pe-c.is-hoy .pe-c__d { opacity: 1; }
  .pe-c b { font-size: .74rem; }
  .pe-c small { font-size: .66rem; }
}
@container (max-width: 520px) {
  .pe-wk tr { grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 10px; }
  .pe-c { min-height: 60px; }
}
@container (max-width: 330px) {
  .pe-wk tr { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ==== CONTROL DE EMPLEADOS 2 ====
   Minimalista: blanco, grises y un color por estado (verde a horario, ámbar tarde, rojo faltó, gris-azul libre) */
.ce { --ce-ok: #22a06b; --ce-ok-bg: #e9f7f0; --ce-late: #d18a00; --ce-late-bg: #fff5e0; --ce-bad: #e5484d; --ce-bad-bg: #fdecec; --ce-lib: #7c8aa0; --ce-lib-bg: #eef1f6; --ce-line: #ebedf0; --ce-ink: #16191d; --ce-soft: #5f6670; --ce-mute: #949aa3; --ce-bg: #f6f7f9;
  max-width: 1180px; margin: 0 auto; color: var(--ce-ink); }
.ce .grow { flex: 1; min-width: 0; }
.ce-top { display: flex; align-items: flex-start; gap: 12px; margin: 0 0 16px; }
.ce-t { margin: 0; font-family: var(--display); font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 800; line-height: 1.05; letter-spacing: -.01em; text-transform: uppercase; }
.ce-sub { margin: 6px 0 0; color: var(--ce-soft); font-size: .95rem; }
.ce-qr { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border: 1px solid var(--ce-line); border-radius: 999px; background: #fff; color: var(--ce-soft); font: 600 .86rem var(--sans); cursor: pointer; }
.ce-qr svg { width: 17px; height: 17px; }
@media (hover: hover) { .ce-qr:hover { color: var(--ce-ink); border-color: #d5d9df; } }
.pe-tabs.ce2-tabs { grid-template-columns: repeat(5, minmax(0, 1fr)) !important; margin: 0 0 18px; }
.ce-body { display: grid; gap: 14px; min-width: 0; }
.ce-h { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 16px; }
.ce-h h2 { margin: 0; font-size: 1.35rem; font-weight: 800; }
.ce-h p { margin: 4px 0 0; color: var(--ce-soft); font-size: .92rem; max-width: 62ch; }
.ce-card { min-width: 0; padding: 16px; border: 1px solid var(--ce-line); border-radius: 16px; background: #fff; box-shadow: 0 1px 2px rgba(16, 24, 40, .04); }
.ce-card__h { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; }
.ce-card__h h3 { flex: 1; min-width: 0; margin: 0; font-size: 1rem; font-weight: 800; }
.ce-card__h h3 small { display: block; color: var(--ce-mute); font-size: .78rem; font-weight: 500; }
.ce-card__h > span:last-child { color: var(--ce-mute); font-size: .8rem; font-weight: 600; white-space: nowrap; }
.ce-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.ce-seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 12px; background: var(--ce-bg); }
.ce-seg button { min-height: 38px; padding: 0 14px; border: 0; border-radius: 9px; background: none; color: var(--ce-soft); font: 600 .88rem var(--sans); cursor: pointer; white-space: nowrap; }
.ce-seg button.is-on { background: #fff; color: var(--ce-ink); box-shadow: 0 1px 3px rgba(16, 24, 40, .12); }
.ce-seg button small { margin-left: 4px; color: var(--ce-mute); font-weight: 600; }
.ce-tol { display: inline-flex; align-items: center; gap: 6px; margin: 0; color: var(--ce-soft); font-size: .88rem; }
.ce-tol svg { width: 16px; height: 16px; }
.ce-link { padding: 0; border: 0; background: none; color: var(--ce-ink); font: 700 .88rem var(--sans); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.ce-sel { display: inline-flex; align-items: center; gap: 8px; color: var(--ce-soft); font-size: .86rem; font-weight: 600; }
.ce-sel select { min-width: 180px; min-height: 40px; font-size: 16px; }
/* números grandes */
.ce-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.ce-kpi { position: relative; display: grid; gap: 2px; align-content: start; min-width: 0; padding: 16px; border: 1px solid var(--ce-line); border-radius: 16px; background: #fff; color: inherit; font: inherit; text-align: left; cursor: pointer; box-shadow: 0 1px 2px rgba(16, 24, 40, .04); transition: border-color .15s, transform .15s; }
.ce-kpi::before { content: ""; position: absolute; left: 0; top: 16px; bottom: 16px; width: 3px; border-radius: 0 3px 3px 0; background: var(--k); }
.ce-kpi__ic { display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 6px; border-radius: 10px; background: var(--kb); color: var(--k); }
.ce-kpi__ic svg { width: 18px; height: 18px; }
.ce-kpi__l { color: var(--ce-soft); font-size: .86rem; font-weight: 600; }
.ce-kpi__n { font-family: var(--display); font-size: 2.1rem; font-weight: 800; line-height: 1.1; }
.ce-kpi__s { color: var(--ce-mute); font-size: .78rem; }
.ce-kpi--ok { --k: var(--ce-ok); --kb: var(--ce-ok-bg); }
.ce-kpi--late { --k: var(--ce-late); --kb: var(--ce-late-bg); }
.ce-kpi--bad { --k: var(--ce-bad); --kb: var(--ce-bad-bg); }
.ce-kpi--lib { --k: var(--ce-lib); --kb: var(--ce-lib-bg); }
@media (hover: hover) { .ce-kpi:hover { border-color: #d5d9df; transform: translateY(-1px); } }
.ce-kpi:focus-visible, .ce-row:focus-visible, .ce-tab tr:focus-visible { outline: 2px solid var(--ce-ink); outline-offset: 2px; }
.ce-grid2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 14px; }
/* listas */
.ce-list { margin: 0; padding: 0; list-style: none; }
.ce-list > li + li { border-top: 1px solid var(--ce-line); }
.ce-row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 58px; padding: 8px 4px; border: 0; border-radius: 10px; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
@media (hover: hover) { .ce-row:hover { background: var(--ce-bg); } }
.ce-row b, .ce-emp b, .ce-lib b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .95rem; }
.ce-row small, .ce-emp small, .ce-lib small { display: block; color: var(--ce-mute); font-size: .8rem; line-height: 1.3; }
.ce-av { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--ce-bg); color: var(--ce-soft); font-weight: 800; font-size: .9rem; }
.ce-av svg { width: 18px; height: 18px; }
.ce-chip { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 0 10px; border-radius: 999px; background: var(--cb, var(--ce-bg)); color: var(--cc, var(--ce-soft)); font-size: .8rem; font-weight: 700; white-space: nowrap; }
.ce-chip i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.ce-chip--ok { --cc: #15804f; --cb: var(--ce-ok-bg); }
.ce-chip--late { --cc: #a36a00; --cb: var(--ce-late-bg); }
.ce-chip--bad { --cc: #c9343a; --cb: var(--ce-bad-bg); }
.ce-chip--lib { --cc: #56637a; --cb: var(--ce-lib-bg); }
.ce-chip--wait, .ce-chip--plan { --cc: var(--ce-soft); --cb: var(--ce-bg); }
.ce-none { margin: 4px 0; color: var(--ce-mute); font-size: .9rem; }
.ce-empty { display: grid; justify-items: center; gap: 6px; padding: 28px 12px; color: var(--ce-soft); text-align: center; }
.ce-empty span { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--ce-bg); }
.ce-empty svg { width: 22px; height: 22px; }
.ce-empty p { margin: 0; font-size: .9rem; }
/* para revisar */
.ce-alert { border-color: #f6d4d5; background: #fffafa; }
.ce-alert h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-size: 1rem; }
.ce-alert h3 svg { width: 18px; height: 18px; color: var(--ce-bad); }
.ce-alert h3 em { padding: 1px 8px; border-radius: 999px; background: var(--ce-bad); color: #fff; font-size: .75rem; font-style: normal; }
.ce-alert ul { margin: 0; padding: 0; list-style: none; }
.ce-alert li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid #f6e3e3; }
.ce-alert li p { flex: 1; min-width: 0; margin: 0; }
.ce-alert li b { display: block; font-size: .92rem; }
.ce-alert li small { color: var(--ce-soft); font-size: .82rem; }
/* gráfico */
.ce-chart { position: relative; height: 240px; }
.ce-ley { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 10px 0 0; color: var(--ce-soft); font-size: .8rem; }
.ce-ley i { display: inline-block; width: 10px; height: 10px; margin-right: -8px; border-radius: 3px; background: var(--cc); }
/* tabla por empleado */
.ce-tw { overflow-x: auto; }
.ce-tab { width: 100%; border-collapse: collapse; font-size: .9rem; font-variant-numeric: tabular-nums; }
.ce-tab th { padding: 8px 10px; border-bottom: 1px solid var(--ce-line); color: var(--ce-mute); font-size: .72rem; font-weight: 700; text-align: center; text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; }
.ce-tab th:first-child { text-align: left; }
.ce-tab td { padding: 10px; border-bottom: 1px solid var(--ce-line); text-align: center; }
.ce-tab tr:last-child td { border-bottom: 0; }
.ce-tab td:first-child { display: flex; align-items: center; gap: 10px; text-align: left; }
.ce-tab td:first-child span { min-width: 0; }
.ce-tab td:first-child b { display: block; }
.ce-tab td b { font-size: 1rem; }
.ce-tab td small { display: block; color: var(--ce-mute); font-size: .74rem; }
.ce-tab tbody tr { cursor: pointer; }
@media (hover: hover) { .ce-tab tbody tr:hover td { background: var(--ce-bg); } }
.t-ok { color: #15804f; }
.t-late { color: #a36a00; }
.t-bad { color: #c9343a; }
.t-0 { color: var(--ce-mute); }
/* filtros */
.ce-fil { display: grid; gap: 10px; }
.ce-fil__r { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.ce-day h3 { margin: 0 0 4px; color: var(--ce-soft); font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
/* días libres */
.ce-form h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 1.05rem; }
.ce-form h3 svg { width: 18px; height: 18px; }
.ce-form__g { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ce-f { display: grid; gap: 6px; min-width: 0; }
.ce-f > span { color: var(--ce-soft); font-size: .84rem; font-weight: 700; }
.ce-f .inp { width: 100%; min-height: 44px; font-size: 16px; }
.ce-f--w { grid-column: 1 / -1; }
.ce-tipos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.ce-tipo { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 6px 10px; border: 1px solid var(--ce-line); border-radius: 12px; background: #fff; color: var(--ce-soft); font: 700 .88rem var(--sans); text-align: center; cursor: pointer; }
.ce-tipo i { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--tc); }
.ce-tipo.is-on { border-color: var(--tc); background: var(--tb); color: var(--ce-ink); box-shadow: 0 0 0 1px var(--tc) inset; }
.ce-tipo--franco, .ce-tag--franco, .ce-tag--feriado { --tc: #7c8aa0; --tb: #eef1f6; }
.ce-tipo--enf, .ce-tag--enf { --tc: #e5484d; --tb: #fdecec; }
.ce-tipo--perm, .ce-tag--perm { --tc: #d18a00; --tb: #fff5e0; }
.ce-tipo--vac, .ce-tag--vac { --tc: #2f7de1; --tb: #eaf2fd; }
.ce-form__b { display: flex; justify-content: flex-end; margin-top: 14px; }
.ce-form__b .btn { min-width: 160px; justify-content: center; }
.ce-lib { display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 8px 4px; }
.ce-tag { flex: none; padding: 4px 10px; border-radius: 999px; background: var(--tb); color: var(--ce-ink); font-size: .78rem; font-weight: 700; box-shadow: inset 3px 0 0 var(--tc); }
.ce-fijos ul { margin: 0; padding-left: 18px; color: var(--ce-soft); font-size: .9rem; line-height: 1.7; }
/* tareas */
.ce-prog { height: 6px; margin: 0 0 6px; border-radius: 99px; background: var(--ce-bg); overflow: hidden; }
.ce-prog span { display: block; height: 100%; border-radius: inherit; background: var(--ce-ok); }
.ce-chk { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border: 2px solid #d5d9df; border-radius: 8px; color: #fff; }
.ce-chk svg { width: 15px; height: 15px; stroke-width: 3; }
.ce-chk--ok { border-color: var(--ce-ok); background: var(--ce-ok); }
.ce-chk--late { border-color: var(--ce-late); background: var(--ce-late); }
.ce-chk--bad { border-color: var(--ce-bad); }
/* equipo */
.ce-tolc { display: flex; align-items: center; gap: 14px; }
.ce-tolc__ic { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--ce-bg); }
.ce-tolc__ic svg { width: 20px; height: 20px; }
.ce-tolc p { margin: 0; }
.ce-tolc b { display: block; font-size: 1rem; }
.ce-tolc small { display: block; color: var(--ce-soft); font-size: .84rem; }
.ce-emp { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; padding: 12px 4px; }
.ce-emp__b { display: flex; flex-wrap: wrap; gap: 6px; }
.ce-foot { margin: 0; text-align: center; }
.ce-tolp .pill { min-height: 44px; }
.ce-qrb { display: grid; gap: 8px; margin: 12px 0; }
.ce-qrb .btn { justify-content: center; min-height: 46px; }
.ce-qrn { color: var(--ce-soft); }
/* responsive */
@media (max-width: 1100px) { .ce-grid2 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 860px) {
  .ce-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ce-tipos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .ce-qr span { display: none; }
  .ce-qr { width: 42px; padding: 0; justify-content: center; }
  .ce-card { padding: 14px 12px; border-radius: 14px; }
  .ce-kpi { padding: 14px 12px; }
  .ce-kpi__n { font-size: 1.8rem; }
  .ce-bar, .ce-fil__r { align-items: stretch; }
  .ce-seg { display: flex; width: 100%; }
  .ce-seg button { flex: 1 1 auto; padding: 0 8px; font-size: .84rem; }
  .ce-sel { width: 100%; }
  .ce-sel select { flex: 1; min-width: 0; }
  .ce-form__g > .ce-f:first-child { grid-column: 1 / -1; }
  .ce-form__b .btn { width: 100%; }
  .ce-chart { height: 200px; }
  .ce-tab thead { display: none; }
  .ce-tab, .ce-tab tbody { display: block; }
  .ce-tab tr { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; padding: 12px 0; border-bottom: 1px solid var(--ce-line); }
  .ce-tab tr:last-child { border-bottom: 0; }
  .ce-tab td { padding: 0; border: 0; }
  .ce-tab td:first-child { grid-column: 1 / -1; }
  .ce-tab td[data-l]::before { content: attr(data-l); display: block; color: var(--ce-mute); font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
  .ce-emp__b { width: 100%; }
  .ce-emp__b .btn { flex: 1 1 auto; justify-content: center; }
  .ce-alert li { flex-wrap: wrap; }
  .ce-alert li .btn { width: 100%; justify-content: center; }
  .ce-tolc { flex-wrap: wrap; }
  .ce-tolc .btn, .ce-h .btn { width: 100%; justify-content: center; }
}
@media (max-width: 400px) {
  .ce-row { flex-wrap: wrap; gap: 6px 10px; }
  .ce-row .grow { flex: 1 1 calc(100% - 50px); }
  .ce-row .ce-chip { margin-left: 46px; }
  .ce-chip { padding: 0 8px; font-size: .74rem; }
}
@media (max-width: 359px) { .ce-kpis { gap: 8px; } .ce-kpi__l { font-size: .8rem; } }
@media (max-width: 1023px) { .pe-tabs.ce2-tabs .pe-tab span { font-size: clamp(.56rem, 2.5vw, .76rem); } }
@media (max-width: 400px) {
  .ce-form__g { grid-template-columns: minmax(0, 1fr); }
  .ce .pe-loc__b svg { display: none; }
  .ce .pe-loc__b { padding: 8px 6px; font-size: .88rem; }
}

/* ==== CONTROL DE EMPLEADOS 2: pantalla del empleado ==== */
.et { --ce-ok: #22a06b; --ce-ok-bg: #e9f7f0; --ce-late: #d18a00; --ce-late-bg: #fff5e0; --ce-bad: #e5484d; --ce-line: #ebedf0; --ce-ink: #16191d; --ce-soft: #5f6670; --ce-mute: #949aa3; --ce-bg: #f6f7f9;
  display: grid; gap: 14px; max-width: 560px; margin: 0 auto; padding-bottom: env(safe-area-inset-bottom); color: var(--ce-ink); }
.et-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.et-hola { margin: 0; font-family: var(--display); font-size: clamp(1.6rem, 7vw, 2.1rem); font-weight: 800; line-height: 1.05; }
.et-fecha { margin: 4px 0 0; color: var(--ce-soft); font-size: .92rem; }
.et-fecha b { color: var(--ce-ink); font-variant-numeric: tabular-nums; }
.et-st { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--ce-bg); color: var(--ce-soft); font-size: .82rem; font-weight: 700; white-space: nowrap; }
.et-st i { width: 8px; height: 8px; border-radius: 50%; background: #c3c8cf; }
.et-st.is-in { background: var(--ce-ok-bg); color: #15804f; }
.et-st.is-in i { background: var(--ce-ok); box-shadow: 0 0 0 4px rgba(34, 160, 107, .18); }
.et-card { padding: 18px; border: 1px solid var(--ce-line); border-radius: 20px; background: #fff; box-shadow: 0 1px 2px rgba(16, 24, 40, .04); }
.et-pasos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 16px; padding: 0; list-style: none; }
.et-paso { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 10px 12px; border-radius: 14px; background: var(--ce-bg); color: var(--ce-mute); }
.et-paso i { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #fff; border: 2px solid #d5d9df; font-style: normal; font-weight: 800; font-size: .9rem; }
.et-paso i svg { width: 15px; height: 15px; stroke-width: 3; }
.et-paso span { min-width: 0; }
.et-paso b { display: block; color: var(--ce-soft); font-size: .92rem; }
.et-paso small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .78rem; }
.et-paso.is-on { background: #fff; box-shadow: inset 0 0 0 2px var(--ce-ink); color: var(--ce-soft); }
.et-paso.is-on i { border-color: var(--ce-ink); background: var(--ce-ink); color: #fff; }
.et-paso.is-on b { color: var(--ce-ink); }
.et-paso.is-ok i { border-color: var(--ce-ok); background: var(--ce-ok); color: #fff; }
.et-paso.is-ok b { color: var(--ce-ink); }
.et-btn { display: grid; justify-items: center; gap: 6px; width: 100%; padding: 22px 16px; border: 0; border-radius: 18px; background: var(--ce-ok); color: #fff; font: inherit; cursor: pointer; box-shadow: 0 10px 24px -12px rgba(34, 160, 107, .8); -webkit-tap-highlight-color: transparent; transition: transform .1s; }
.et-btn.is-out { background: var(--ce-ink); box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .6); }
.et-btn:active { transform: scale(.98); }
.et-btn__ic { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: rgba(255, 255, 255, .18); }
.et-btn__ic svg { width: 28px; height: 28px; }
.et-btn b { font-family: var(--display); font-size: clamp(1.35rem, 6vw, 1.7rem); font-weight: 800; letter-spacing: .01em; text-transform: uppercase; }
.et-btn small { opacity: .85; font-size: .86rem; }
.et-btn.is-busy { background: var(--ce-bg); color: var(--ce-soft); box-shadow: none; cursor: default; }
.et-fin { display: grid; justify-items: center; gap: 4px; padding: 18px 12px; border-radius: 18px; background: var(--ce-ok-bg); color: #15804f; text-align: center; }
.et-fin > svg { width: 34px; height: 34px; stroke-width: 2.5; }
.et-fin b { font-size: 1.2rem; }
.et-fin small { color: var(--ce-soft); font-size: .9rem; }
.et-link { display: inline-flex; align-items: center; justify-content: center; gap: 6px; margin-top: 6px; padding: 6px; border: 0; background: none; color: var(--ce-ink); font: 700 .9rem var(--sans); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.et-link svg { width: 16px; height: 16px; }
.et-hist { justify-self: center; margin: 0; }
.et-msg { display: flex; align-items: center; gap: 8px; margin: 0; padding: 12px 14px; border-radius: 14px; background: var(--ce-ok-bg); color: #15804f; font-weight: 700; }
.et-msg svg { flex: none; width: 18px; height: 18px; }
.et-franco { margin: 0 0 14px; color: var(--ce-soft); text-align: center; }
.et-th { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 10px; }
.et-th h2 { margin: 0; font-size: 1.15rem; font-weight: 800; }
.et-th span { color: var(--ce-soft); font-size: .9rem; font-weight: 700; }
.et-prog { height: 8px; margin: 0 0 12px; border-radius: 99px; background: var(--ce-bg); overflow: hidden; }
.et-prog span { display: block; height: 100%; border-radius: inherit; background: var(--ce-ok); transition: width .3s; }
.et-tasks { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.et-task { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 60px; padding: 10px 14px; border: 1px solid var(--ce-line); border-radius: 14px; background: #fff; color: var(--ce-ink); font: inherit; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.et-task i { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border: 2px solid #c9ced6; border-radius: 9px; color: transparent; }
.et-task i svg { width: 18px; height: 18px; stroke-width: 3; }
.et-task span { flex: 1; min-width: 0; font-size: 1rem; font-weight: 700; }
.et-task small { display: block; color: var(--ce-mute); font-size: .82rem; font-weight: 500; }
.et-task.is-on { background: var(--ce-bg); border-color: transparent; }
.et-task.is-on i { border-color: var(--ce-ok); background: var(--ce-ok); color: #fff; }
.et-task.is-on span { color: var(--ce-soft); }
.et-tt { font-style: normal; }
.et-task.is-on .et-tt { text-decoration: line-through; text-decoration-color: rgba(0, 0, 0, .3); }
.et-task.is-on small { text-decoration: none; }
.et-task.is-late { border-color: #f6d4d5; background: #fffafa; }
.et-task.is-late small { color: #c9343a; font-weight: 700; }
.et-task:active { transform: scale(.99); }
.et-sub { margin: 14px 0 8px; color: var(--ce-mute); font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.et-done { display: flex; align-items: center; gap: 8px; margin: 0; padding: 12px; border-radius: 12px; background: var(--ce-ok-bg); color: #15804f; font-weight: 700; }
.et-done svg { width: 18px; height: 18px; }
.et-none { margin: 0; color: var(--ce-mute); }
@media (max-width: 359px) {
  .et-pasos { grid-template-columns: 1fr; }
  .et-card { padding: 14px; }
  .et-h { flex-wrap: wrap; }
}
@media (max-height: 500px) and (orientation: landscape) { .et-btn { padding: 14px; } .et-btn__ic { width: 44px; height: 44px; } }
.et .mt-clock, .et .mt-date { all: unset; font: inherit; color: inherit; }
.et .mt-clock { font-weight: 800; color: var(--ce-ink); font-variant-numeric: tabular-nums; }

/* ==== CONTROL DE EMPLEADOS 2: planilla de la semana (Asistencia) ==== */
.ce-seg--vista button { display: inline-flex; align-items: center; gap: 6px; }
.ce-seg--vista svg { width: 16px; height: 16px; }
.ce-wk-top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ce-wk-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ce-wk-nav p { min-width: 190px; margin: 0; text-align: center; }
.ce-wk-nav small { display: block; color: var(--ce-mute); font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.ce-wk-nav b { font-size: 1.05rem; }
.ce-wk-ley { margin: 0; }
.ce-wk-ley i.ce-wk-ley--plan { background: #fff; box-shadow: inset 0 0 0 1.5px #c9ced6; }
.ce-wk-card { padding: 12px; }
.ce-wkw { container-type: inline-size; }
.ce-wk { width: 100%; border-collapse: separate; border-spacing: 5px; table-layout: fixed; }
.ce-wk thead th { padding: 4px 2px 6px; color: var(--ce-mute); font-size: .7rem; font-weight: 700; text-align: center; text-transform: uppercase; letter-spacing: .06em; }
.ce-wk thead th small { display: block; margin-top: 2px; color: var(--ce-ink); font-size: .95rem; letter-spacing: 0; }
.ce-wk thead th.is-hoy, .ce-wk thead th.is-hoy small { color: var(--ce-ink); }
.ce-wk thead th.is-hoy small::after { content: " · hoy"; color: var(--ce-ok); font-size: .75rem; }
.ce-wk thead th:first-child { width: 150px; text-align: left; }
.ce-wk thead th:last-child { width: 96px; }
.ce-wk tbody th { padding: 0 4px 0 0; text-align: left; font-weight: 400; }
.ce-wk tbody th { display: table-cell; }
.ce-wk tbody th > span { display: inline-block; vertical-align: middle; max-width: calc(100% - 44px); margin-left: 8px; }
.ce-wk tbody th .ce-av { display: inline-grid; vertical-align: middle; }
.ce-wk tbody th b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .92rem; }
.ce-wk tbody th small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ce-mute); font-size: .76rem; }
.ce-wk td { padding: 0; }
.ce-wc { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; width: 100%; min-height: 64px; padding: 6px 4px; border: 0; border-radius: 12px; background: var(--wb); color: var(--wc); font: inherit; line-height: 1.15; text-align: center; cursor: pointer; transition: filter .15s; }
.ce-wc b { font-size: .84rem; font-weight: 800; }
.ce-wc small { font-size: .72rem; opacity: .85; }
.ce-wc__d { display: none; font-style: normal; font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; opacity: .7; }
.ce-wc--ok { --wb: #e3f5ec; --wc: #127247; }
.ce-wc--late { --wb: #fff1d6; --wc: #94600a; }
.ce-wc--bad { --wb: #e5484d; --wc: #fff; }
.ce-wc--lib { --wb: #eceff4; --wc: #56637a; }
.ce-wc--wait { --wb: #e8f1fe; --wc: #1d5bb8; }
.ce-wc--wait small { color: #3f74c4; opacity: 1; }
.ce-wc--plan { --wb: #fff; --wc: var(--ce-ink); box-shadow: inset 0 0 0 1.5px #d5d9df; }
.ce-wc--plan small { color: var(--ce-mute); opacity: 1; }
.ce-wc--none { --wb: transparent; --wc: #c9ced6; cursor: default; }
.ce-wc.is-hoy { outline: 2px solid var(--ce-ink); outline-offset: 1px; }
@media (hover: hover) { .ce-wc:not(.ce-wc--none):hover { filter: brightness(.96); } }
.ce-wc:focus-visible { outline: 2px solid var(--ce-ink); outline-offset: 2px; }
.ce-wt { padding-left: 6px !important; }
.ce-wt b { display: block; font-family: var(--display); font-size: 1.1rem; font-weight: 800; }
.ce-wt span { display: grid; gap: 1px; }
.ce-wt em { font-size: .76rem; font-style: normal; font-weight: 700; }
.ce-wk-tip { display: flex; align-items: center; gap: 6px; margin: 8px 4px 0; color: var(--ce-mute); font-size: .82rem; }
.ce-wk-tip svg { flex: none; width: 14px; height: 14px; }
/* sin lugar a lo ancho (celular, tablet, notebook chica): una tarjeta por empleado con sus 7 días */
@container (max-width: 899px) {
  .ce-wk, .ce-wk tbody { display: block; }
  .ce-wk thead { display: none; }
  .ce-wk tr { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; margin: 0 0 10px; padding: 12px; border: 1px solid var(--ce-line); border-radius: 14px; }
  .ce-wk tr:last-child { margin-bottom: 0; }
  .ce-wk tbody th { order: -2; grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; padding: 0; }
  .ce-wk tbody th > span { max-width: none; margin: 0; min-width: 0; }
  .ce-wt { order: -1; grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 0 0 6px !important; border-bottom: 1px solid var(--ce-line); }
  .ce-wt b { font-size: 1rem; }
  .ce-wt b::after { content: " trabajadas"; font-family: var(--sans); font-size: .78rem; font-weight: 500; color: var(--ce-mute); }
  .ce-wt span { display: flex; flex-wrap: wrap; gap: 10px; }
  .ce-wc { min-height: 62px; padding: 6px 2px; border-radius: 10px; }
  .ce-wc__d { display: block; }
  .ce-wc b { font-size: .76rem; }
  .ce-wc small { font-size: .66rem; }
  .ce-wk-card { padding: 10px; }
}
@container (max-width: 520px) { .ce-wk tr { grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 10px; } }
@container (max-width: 330px) { .ce-wk tr { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) {
  .ce-wk-nav { width: 100%; justify-content: space-between; }
  .ce-wk-nav p { flex: 1; min-width: 0; }
  .ce-wk-nav .btn { width: 100%; justify-content: center; }
  .ce-seg--vista button { justify-content: center; }
}
.ce-wk tbody th { white-space: nowrap; }
@container (max-width: 899px) { .ce-wk tbody th { white-space: normal; } }

/* «Por llegar» (hoy le toca y todavía no marcó): azul, distinto de todo lo demás */
.ce-chip--wait { --cc: #1d5bb8; --cb: #e8f1fe; }
.ce-wk-ley i.ce-wk-ley--wait { background: #2f7de1; }

/* ==== MESAS ESTILO FUDO (Nostra Patricias, 2026-11-17) ====
   Pedidos › Mesas de la caja y el panel del mozo: áreas, grilla de mesas (cuadradas o redondas) y la mesa elegida al costado.
   Clases .fd* (salón), .fdm (mesa), .fdd/.fdo (mesa elegida), .fdc (cobrar), .fde (editar mesas), .pos--fd (carta) */
.fd, .mo, .mz { /* semáforo: libre gris · nuevo rojo · cocina ámbar · para llevar verde · comiendo azul · pide la cuenta violeta */
  --fd-free: #57534e; --fd-free-bg: #f5f5f4; --fd-free-ln: #d6d3d1;
  --fd-new: #c81e1e; --fd-new-bg: #fdecec; --fd-new-ln: #ef8a8a;
  --fd-cook: #a85a07; --fd-cook-bg: #fff4e0; --fd-cook-ln: #f5b546;
  --fd-ready: #127a3a; --fd-ready-bg: #dcf5e5; --fd-ready-ln: #22a355;
  --fd-busy: #1d4ed8; --fd-busy-bg: #eaf0fe; --fd-busy-ln: #93b1f3;
  --fd-pay: #6d28d9; --fd-pay-bg: #f2ebfe; --fd-pay-ln: #b195f2; }
.fd {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 460px); gap: 20px; align-items: start; margin-top: 6px; }
.fd__sal { min-width: 0; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--card-2); }
.fd__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.fd__areas { display: inline-flex; flex-wrap: wrap; gap: 4px; max-width: 100%; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.fd__area { min-height: 40px; padding: 0 16px; border: 0; border-radius: 9px; background: transparent; color: var(--soft); font: 800 .84rem/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.fd__area.is-on { background: var(--ink); color: #fff; }
.fd__tools { display: flex; flex-wrap: wrap; gap: 6px; }
.fd__tool { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 12px; border: 1px solid transparent; border-radius: 10px; background: transparent; color: var(--ink-2); font: 700 .82rem/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.fd__tool svg { width: 15px; height: 15px; flex: none; }
.fd__tool:hover { background: #fff; border-color: var(--line); }
.fd__tool--add { border-color: var(--tan-d); background: #fff; color: var(--tan-d); }
.fd__alert { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; padding: 10px 14px; border-radius: 12px; background: var(--fd-new-bg); color: var(--fd-new); font-size: .86rem; }
.fd__alert svg { width: 18px; height: 18px; flex: none; animation: fdRing 1.6s ease-in-out infinite; }
.fd__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 12px; }
.fd__empty { padding: 30px 12px; border: 1.5px dashed var(--line); border-radius: 14px; text-align: center; color: var(--mute); font-size: .88rem; }
.fd__empty b { display: block; margin-bottom: 4px; color: var(--ink-2); }
.fdm { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-width: 0; aspect-ratio: 1 / 1; padding: 10px 8px; border: 1.5px solid var(--fd-free-ln); border-radius: 14px; background: var(--fd-free-bg); color: var(--fd-free); font: inherit; text-align: center; text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: transform .12s, box-shadow .12s; }
.fdm:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
@media (hover: hover) { .fdm:hover { transform: translateY(-2px); box-shadow: 0 10px 18px -12px rgba(36, 28, 23, .45); } }
.fdm:active { transform: scale(.97); }
.fdm--r { border-radius: 50%; }
.fdm__n { font: 800 2rem/1 var(--display); letter-spacing: -.01em; }
.fdm__st { font: 800 .74rem/1.15 var(--sans); letter-spacing: .08em; text-transform: uppercase; }
.fdm__tot { font: 800 1.08rem/1 var(--sans); color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.fdm__x { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .8rem; font-weight: 600; color: var(--soft); }
.fdm--r .fdm__x, .fdm--r .fdm__tot { max-width: 78%; }
.fdm__dot { position: absolute; top: 9px; right: 9px; width: 10px; height: 10px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px rgba(255, 255, 255, .9); animation: fdPulse 1.4s ease-in-out infinite; }
.fdm--r .fdm__dot { top: 13%; right: 13%; }
.fdm--new { border-color: var(--fd-new-ln); background: var(--fd-new-bg); color: var(--fd-new); }
.fdm--cook { border-color: var(--fd-cook-ln); background: var(--fd-cook-bg); color: var(--fd-cook); }
.fdm--ready { border-color: var(--fd-ready-ln); background: var(--fd-ready-bg); color: var(--fd-ready); }
.fdm--pay { border-color: var(--fd-pay-ln); background: var(--fd-pay-bg); color: var(--fd-pay); }
.fdm--new, .fdm--ready, .fdm--pay { border-width: 2px; }
.fdm--busy { border-color: var(--fd-busy-ln); background: var(--fd-busy-bg); color: var(--fd-busy); }
.fdm--off { border-style: dashed; border-color: var(--line); background: #fff; color: var(--mute); opacity: .7; }
.fdm.is-on { border-color: var(--ink); box-shadow: 0 0 0 2px var(--ink); }
.fd__leg { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 16px 0 0; padding: 0; list-style: none; font-size: .86rem; color: var(--soft); }
.fd__leg li { display: inline-flex; align-items: center; gap: 6px; }
.fd__leg li::before { content: ""; width: 14px; height: 14px; flex: none; border: 1.5px solid; border-radius: 4px; }
.fd__lg--free::before { border-color: var(--fd-free-ln); background: var(--fd-free-bg); }
.fd__lg--new::before { border-color: var(--fd-new-ln); background: var(--fd-new-bg); }
.fd__lg--cook::before { border-color: var(--fd-cook-ln); background: var(--fd-cook-bg); }
.fd__lg--ready::before { border-color: var(--fd-ready-ln); background: var(--fd-ready-bg); }
.fd__lg--busy::before { border-color: var(--fd-busy-ln); background: var(--fd-busy-bg); }
.fd__lg--pay::before { border-color: var(--fd-pay-ln); background: var(--fd-pay-bg); }
/* leyenda con el color fuerte de cada estado (se distingue de un vistazo) */
.fd__leg { font-weight: 600; color: var(--ink-2); }
.fd__leg li::before { width: 16px; height: 16px; border-width: 2px; }
.fd__lg--free::before { background: var(--fd-free-ln); border-color: var(--fd-free-ln); }
.fd__lg--new::before { background: var(--fd-new); border-color: var(--fd-new); }
.fd__lg--cook::before { background: var(--fd-cook-ln); border-color: var(--fd-cook-ln); }
.fd__lg--ready::before { background: var(--fd-ready-ln); border-color: var(--fd-ready-ln); }
.fd__lg--busy::before { background: var(--fd-busy); border-color: var(--fd-busy); }
.fd__lg--pay::before { background: var(--fd-pay); border-color: var(--fd-pay); }
.fd__lg--sel::before { border: 2px solid var(--ink); background: #fff; }
/* caja: 3 estados (libre verde · ocupada naranja · pide la cuenta rojo · la elegida con borde naranja) */
.fd .fdm.fdm--c-free { border: 2px solid #2f9e4f; background: #d7f0dd; color: #1d6b34; }
.fd .fdm.fdm--c-ocu { border: 2px solid #e07a1f; background: #fde0bf; color: #9a4a0e; }
.fd .fdm.fdm--c-pay { border: 2px solid #d63333; background: #fbcfcf; color: #a81c1c; }
.fd .fdm.fdm--c-free.is-on, .fd .fdm.fdm--c-ocu.is-on, .fd .fdm.fdm--c-pay.is-on { border-color: #e07a1f; box-shadow: 0 0 0 3px #e07a1f; }
.fd__leg--c { font-weight: 500; }
.fd__leg--c li::before { border-radius: 5px; }
.fd__leg--c li.fd__lg--c-free::before { border: 2px solid #2f9e4f !important; background: #bfe6c9 !important; }
.fd__leg--c li.fd__lg--c-ocu::before { border: 2px solid #e07a1f !important; background: #fbd3a8 !important; }
.fd__leg--c li.fd__lg--c-pay::before { border: 2px solid #d63333 !important; background: #f6b8b8 !important; }
.fd__leg--c li.fd__lg--c-sel::before { border: 3px solid #e07a1f !important; background: #fff !important; }
@keyframes fdPulse { 50% { transform: scale(.7); opacity: .55; } }
@keyframes fdRing { 0%, 60%, 100% { transform: rotate(0); } 10%, 30% { transform: rotate(-14deg); } 20%, 40% { transform: rotate(14deg); } }
@media (prefers-reduced-motion: reduce) { .fdm__dot, .fd__alert svg { animation: none; } .fdm { transition: none; } }

/* mesa elegida (al costado; en celular y tablet, abajo de la grilla) */
.fd__det { position: sticky; top: 16px; min-width: 0; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: var(--shadow); overflow: hidden; scroll-margin-top: 80px; }
.fd__none { display: grid; place-items: center; align-content: center; gap: 10px; min-height: 340px; padding: 24px; text-align: center; color: var(--mute); font-size: 1rem; }
.fd__none svg { width: 34px; height: 34px; color: var(--tan); }
.fd__none p { margin: 0; }
.fdd { display: flex; flex-direction: column; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); }
.fdd__h { display: flex; align-items: flex-start; gap: 10px; padding: 20px 20px 16px; border-bottom: 1px solid var(--line-2); background: var(--card-2); }
.fdd__tt { flex: 1; min-width: 0; }
.fdd__tt h2 { margin: 0; font: 800 1.7rem/1.1 var(--display); overflow-wrap: anywhere; }
.fdd__tt p { margin: 5px 0 0; font-size: .95rem; color: var(--soft); overflow-wrap: anywhere; }
.fdd__badge { flex: none; padding: 7px 12px; border-radius: 999px; font: 800 .76rem/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; background: var(--fd-busy-bg); color: var(--fd-busy); }
.fdd__badge--new { background: var(--fd-new-bg); color: var(--fd-new); }
.fdd__badge--cook { background: var(--fd-cook-bg); color: var(--fd-cook); }
.fdd__badge--ready { background: var(--fd-ready-bg); color: var(--fd-ready); }
.fdd__badge--pay { background: var(--fd-pay-bg); color: var(--fd-pay); }
.fdd__x { flex: none; display: grid; place-items: center; width: 40px; height: 40px; margin: -4px -6px 0 0; border: 0; border-radius: 10px; background: transparent; color: var(--soft); cursor: pointer; }
.fdd__x:hover { background: var(--tint); }
.fdd__x svg { width: 22px; height: 22px; }
.fdd__new { margin: 14px 18px 0; padding: 14px; border: 1.5px solid var(--fd-new-ln); border-radius: 12px; background: var(--fd-new-bg); }
.fdd__new p { margin: 0 0 12px; font-size: .95rem; color: var(--ink-2); }
.fdd__new b { display: block; color: var(--fd-new); font-size: 1.05rem; }
.fdd__go { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 54px; padding: 0 14px; border: 0; border-radius: 12px; background: var(--fd-new); color: #fff; font: 800 1.02rem/1.1 var(--sans); cursor: pointer; }
.fdd__go svg { width: 18px; height: 18px; flex: none; }
.fdd__k { margin: 18px 20px 8px; font: 800 .8rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--tan-d); }
.fdd__l { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; margin: 0; padding: 0 18px 4px; list-style: none; }
.fdo { margin-bottom: 12px; padding: 14px 16px; border: 1px solid var(--line); border-left: 4px solid var(--fd-busy-ln); border-radius: 10px; background: #fff; }
.fdo--pending { border-left-color: var(--fd-new); }
.fdo--kitchen, .fdo--prep { border-left-color: var(--fd-cook-ln); }
.fdo--ready { border-left-color: var(--fd-ready-ln); }
.fdo__h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-size: .92rem; color: var(--soft); }
.fdo__h b { color: var(--ink); font-size: 1.02rem; }
.fdo__st { margin-left: auto; font: 800 .76rem/1.2 var(--sans); font-style: normal; letter-spacing: .08em; text-transform: uppercase; color: var(--fd-busy); }
.fdo--pending .fdo__st { color: var(--fd-new); }
.fdo--kitchen .fdo__st, .fdo--prep .fdo__st { color: var(--fd-cook); }
.fdo--ready .fdo__st { color: var(--fd-ready); }
.fdo__it { margin: 6px 0 0; padding: 0; list-style: none; }
.fdo__it li { display: flex; align-items: baseline; gap: 10px; padding: 7px 0; border-top: 1px dashed var(--line-2); font-size: 1.05rem; }
.fdo__it li:first-child { border-top: 0; }
.fdo__q { flex: none; min-width: 26px; font-weight: 800; color: var(--tan-d); }
.fdo__nm { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.fdo__nm small { display: block; font-size: .88rem; color: var(--soft); }
.fdo__it b { flex: none; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fdo__note { display: flex; gap: 6px; margin: 8px 0 0; font-size: .9rem; color: var(--soft); }
.fdo__note svg { width: 14px; height: 14px; flex: none; margin-top: 1px; }
.fdo__acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.fdo__b { display: inline-flex; align-items: center; gap: 5px; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--soft); font: 700 .92rem/1 var(--sans); cursor: pointer; }
.fdo__b svg { width: 17px; height: 17px; }
.fdo__b--ok { border-color: var(--fd-ready-ln); background: var(--fd-ready-bg); color: var(--fd-ready); }
.fdd__tot { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 8px 18px 0; padding: 16px 2px 6px; border-top: 1px solid var(--line); }
.fdd__tot span { font: 800 .86rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--soft); }
.fdd__tot b { font: 800 2.1rem/1 var(--display); font-variant-numeric: tabular-nums; }
.fdd__acts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 18px 0; }
.fdd__b { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 50px; padding: 0 10px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink-2); font: 700 .98rem/1.1 var(--sans); cursor: pointer; }
.fdd__b svg { width: 19px; height: 19px; flex: none; }
.fdd__b:hover { border-color: var(--ink-2); }
.fdd__pay { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 12px 18px 18px; min-height: 62px; padding: 0 16px; border: 0; border-radius: 14px; background: var(--ink); color: #fff; font: 800 1.15rem/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
.fdd__pay svg { width: 22px; height: 22px; flex: none; color: var(--tan); }
.fdd__pay:hover { background: #000; }

/* mozo: mismas mesas, sin el costado */
.fd--mz { display: block; margin: 0; }
.fd--mz .fd__sal { padding: 14px; }

/* cobrar (ventana) */
.fdc__tot { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--card-2); }
.fdc__tot span { font: 700 .7rem/1.2 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--soft); }
.fdc__tot b { font: 800 1.7rem/1 var(--display); font-variant-numeric: tabular-nums; white-space: nowrap; }
.fdc__warn { display: flex; gap: 8px; margin: 10px 0 0; padding: 9px 12px; border-radius: 10px; background: var(--warn-bg); color: var(--warn); font-size: .8rem; }
.fdc__warn svg { width: 16px; height: 16px; flex: none; margin-top: 1px; }
.fdc__k { display: flex; align-items: center; gap: 8px; margin: 18px 0 8px; font: 700 .7rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--tan-d); }
.fdc__k span { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--tan-bg); color: var(--tan-d); font-size: .7rem; letter-spacing: 0; }
.fdc__k small { text-transform: none; letter-spacing: 0; color: var(--mute); font-weight: 600; }
.fdc__k2 { margin: 0 0 8px; font: 700 .7rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--soft); }
.fdc__row { padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.fdc__row + .fdc__row { margin-top: 8px; }
.fdc__row[hidden], .fdc__ef[hidden] { display: none; }
.fdc__ms { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.fdc__m { display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink-2); font: 600 .84rem/1.1 var(--sans); cursor: pointer; }
.fdc__m svg { width: 16px; height: 16px; flex: none; color: var(--soft); }
.fdc__m.is-on { border-color: var(--tan-d); background: var(--tan-bg); color: var(--ink); font-weight: 800; }
.fdc__m.is-on svg { color: var(--tan-d); }
.fdc__m:disabled { opacity: .35; cursor: not-allowed; }
.fdc__in { display: flex; align-items: center; gap: 6px; min-height: 48px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--field); }
.fdc__in:focus-within { border-color: var(--ink-2); }
.fdc__in span { color: var(--soft); font-weight: 700; }
.fdc__in input { flex: 1; min-width: 0; border: 0; background: transparent; font: 700 16px/1 var(--sans); text-align: right; color: var(--ink); font-variant-numeric: tabular-nums; }
.fdc__in input:focus { outline: none; }
.fdc__in input[readonly] { color: var(--soft); }
.fdc__more { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; min-height: 40px; padding: 0 12px; border: 1px solid var(--tan-line); border-radius: 10px; background: #fff; color: var(--tan-d); font: 700 .74rem/1.1 var(--sans); letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
.fdc__more svg { width: 15px; height: 15px; flex: none; }
.fdc__more.is-on svg { transform: rotate(45deg); }
.fdc__vu { margin: 8px 2px 0; font-size: .82rem; color: var(--mute); }
.fdc__vu.is-ok { color: var(--ok); }
.fdc__vu.is-ok b { font-size: 1.1rem; }
.fdc__vu.is-bad { color: var(--red); }

/* editar mesas (ventana) */
.fde__area { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; margin-bottom: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; }
.fde__area .f { flex: 1 1 220px; margin: 0; }
.fde__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; margin-top: 12px; }
.fde__m { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 6px 8px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.fde__m > b { font: 800 1.3rem/1 var(--display); }
.fde__m.is-out { border-style: dashed; background: var(--red-bg); }
.fde__m.is-out > b { color: var(--red); text-decoration: line-through; }
.fde__f { display: flex; gap: 6px; }
.fde__f button { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 9px; background: #fff; cursor: pointer; }
.fde__f button.is-on { border-color: var(--ink); background: var(--tint); }
.fde__sq, .fde__ci { width: 14px; height: 14px; border: 2px solid var(--ink-2); }
.fde__ci { border-radius: 50%; }
.fde__q { min-height: 32px; padding: 0 8px; border: 0; background: transparent; color: var(--red); font: 700 .66rem/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.fde__q:disabled { color: var(--mute); cursor: not-allowed; }

/* carta de la mesa estilo Fudo: categorías con su color y tarjetas con foto, descripción y precio */
.pos--fd .pos__flt select { display: none; }
.pos__cats { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.pos__cat { flex: none; min-height: 40px; padding: 0 14px; border: 1px solid var(--sl-200); border-left: 4px solid var(--c); border-radius: 8px; background: #fff; color: var(--sl-700); font: 700 .74rem/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; cursor: pointer; white-space: nowrap; }
.pos__cat.is-on { border-color: var(--c); background: #fdf6ef; background: color-mix(in srgb, var(--c) 14%, #fff); color: var(--sl-900); }
.pos--fd .pos__grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.pos--fd .posp { flex-direction: row; align-items: stretch; min-height: 120px; border-left: 4px solid var(--c); border-radius: 12px; }
.pos--fd .posp__img { width: 78px; height: 78px; aspect-ratio: auto; margin: 12px 0 12px 12px; border-radius: 10px; }
.pos--fd .posp__img > svg { width: 30px; height: 30px; }
.pos--fd .posp__tag { display: none; }
.pos--fd .posp__n { top: 4px; left: 4px; min-width: 24px; height: 24px; font-size: .78rem; }
.pos--fd .posp__b { min-width: 0; gap: 4px; padding: 12px; }
.posp__d { display: none; }
.pos--fd .posp__d { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: .74rem; line-height: 1.3; color: var(--sl-500); }
.pos--fd .posp__pr { color: var(--sl-900); }

@media (max-width: 1100px) {
  .fd { grid-template-columns: minmax(0, 1fr); }
  .fd__det { position: static; }
  .fdd { max-height: none; }
  .fdd__l { overflow: visible; }
  .fd__none { min-height: 120px; }
}
@media (max-width: 760px) {
  .fd__sal { padding: 12px; border-radius: 14px; }
  .fd__bar { margin-bottom: 12px; }
  .fd__areas { display: flex; flex-wrap: nowrap; width: 100%; overflow-x: auto; scrollbar-width: none; }
  .fd__area { flex: none; }
  .fd__tools { width: 100%; }
  .fd__tool { flex: 1 1 auto; justify-content: center; padding: 0 8px; }
  .fd__grid { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
  .fdm__n { font-size: 1.7rem; }
  .fdm__st { font-size: .68rem; }
  .fdm__tot { font-size: .98rem; }
  .fd__leg { gap: 6px 12px; font-size: .72rem; }
  .pos__cats { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
  .pos--fd .pos__grid { grid-template-columns: minmax(0, 1fr); }
  .pos--fd .posp { min-height: 104px; }
  .pos--fd .posp__img { width: 68px; height: 68px; }
  .fdc__m { flex: 1 1 calc(50% - 6px); }
}
@media (max-width: 360px) {
  .fd__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .fdm { padding: 6px 4px; }
  .fdm__n { font-size: 1.45rem; }
  .fdm__st { font-size: .6rem; }
  .fdm__tot { font-size: .86rem; }
  .fdm__x { font-size: .7rem; }
  .fdd__acts { grid-template-columns: 1fr; }
}

/* ==== MOSTRADOR: Retiro en local estilo Fudo (Nostra Patricias, 2026-11-17) ====
   Pedidos › Retiro en local: En curso · A entregar · Cerradas (últimas 5) y el pedido elegido al costado */
.mo__main { display: grid; gap: 14px; min-width: 0; }
.mo__top { display: flex; justify-content: flex-end; }
.mo__new { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 22px; border: 0; border-radius: 10px; background: var(--tan); color: #fff; font: 800 .9rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; cursor: pointer; box-shadow: 0 8px 18px -12px rgba(36, 28, 23, .6); }
.mo__new svg { width: 18px; height: 18px; }
.mo__new:hover { filter: brightness(.95); }
.mos { min-width: 0; border: 1px solid var(--line); border-radius: 14px; background: #fff; overflow: hidden; }
.mos__h { display: flex; align-items: center; gap: 8px; padding: 14px 16px; border-bottom: 1px solid var(--line-2); background: var(--card-2); }
.mos__h h3 { margin: 0; font: 800 .8rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.mos__n { display: inline-grid; place-items: center; min-width: 24px; height: 22px; padding: 0 7px; border-radius: 999px; background: var(--tint); color: var(--soft); font: 800 .76rem/1 var(--sans); }
.mos__e { margin: 0; padding: 26px 16px; text-align: center; color: var(--mute); font-size: .95rem; }
.mos__l { display: grid; }
.mor { display: grid; grid-template-columns: 96px 86px minmax(0, 1fr) auto 110px; align-items: center; gap: 10px; width: 100%; min-height: 58px; padding: 8px 16px 8px 14px; border: 0; border-left: 5px solid var(--line); border-top: 1px solid var(--line-2); background: #fff; color: var(--ink); font: 600 .98rem/1.2 var(--sans); text-align: left; cursor: pointer; }
.mos__l .mor:first-child { border-top: 0; }
.mor:hover { background: var(--card-2); }
.mor.is-on { background: #f6ede2; box-shadow: inset 0 0 0 2px var(--tan); }
.mor--new { border-left-color: var(--fd-new); }
.mor--cook { border-left-color: var(--fd-cook-ln); }
.mor--ready { border-left-color: #d9a54f; background: #fbf5ec; }
.mor--done { border-left-color: var(--fd-ready); }
.mor--cancel { color: var(--mute); }
.mor__n { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-variant-numeric: tabular-nums; }
.mor__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--fd-new); box-shadow: 0 0 0 3px var(--fd-new-bg); flex: none; }
.mor__h { display: grid; gap: 2px; color: var(--soft); font-variant-numeric: tabular-nums; }
.mor__h small { font-size: .74rem; color: var(--mute); }
.mor__nm { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; min-width: 0; overflow-wrap: anywhere; }
.mor__suma { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 999px; background: var(--fd-ready-bg); color: var(--fd-ready); font: 800 .7rem/1 var(--sans); font-style: normal; }
.mor__suma svg { width: 13px; height: 13px; }
.mor__st { justify-self: end; padding: 6px 10px; border-radius: 999px; font: 800 .7rem/1 var(--sans); font-style: normal; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; background: var(--tint); color: var(--soft); }
.mor__st--new { background: var(--fd-new-bg); color: var(--fd-new); }
.mor__st--cook { background: var(--fd-cook-bg); color: var(--fd-cook); }
.mor__st--ready { background: #f6ead8; color: #9a6514; }
.mor__st--done { background: var(--fd-ready-bg); color: var(--fd-ready); }
.mor__tot { justify-self: end; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }

.mo__badge--new { background: var(--fd-new-bg); color: var(--fd-new); }
.mo__badge--cook { background: var(--fd-cook-bg); color: var(--fd-cook); }
.mo__badge--ready { background: #f6ead8; color: #9a6514; }
.mo__badge--done { background: var(--fd-ready-bg); color: var(--fd-ready); }
.mo__badge--cancel { background: var(--tint); color: var(--soft); }
.mod__b { display: grid; align-content: start; gap: 10px; padding: 18px 18px 6px; overflow-y: auto; min-height: 0; }
.mod__k { margin: 6px 0 0; font: 800 .76rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--soft); }
.mod__k--tan { color: var(--tan); }
.mod__in { width: 100%; min-height: 48px; font-size: 16px; }
.mod__ro { margin: 0; font-weight: 700; }
.mod__tel { display: flex; align-items: center; gap: 6px; margin: 0; color: var(--soft); font-size: .9rem; }
.mod__tel svg { width: 16px; height: 16px; color: #1f9d55; }
.mod__l { display: grid; margin: 0; padding: 0; list-style: none; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.moi { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 6px 10px; border-top: 1px solid var(--line-2); }
.moi:first-child { border-top: 0; }
.moi--desc { color: var(--fd-ready); }
.moi__q { display: inline-flex; align-items: center; gap: 2px; flex: none; }
.moi__q button { display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 8px; background: transparent; color: var(--soft); font: 700 1.2rem/1 var(--sans); cursor: pointer; }
.moi__q button:hover { background: var(--tint); color: var(--ink); }
.moi__q b { min-width: 22px; text-align: center; font-variant-numeric: tabular-nums; }
.moi__q--ro b { min-width: 30px; padding: 4px 0; border-radius: 8px; background: var(--tint); }
.moi__nm { flex: 1 1 auto; min-width: 0; display: grid; gap: 2px; font-weight: 600; overflow-wrap: anywhere; }
.moi__nm small { color: var(--mute); font-weight: 500; font-size: .8rem; }
.moi__pr { flex: none; font-variant-numeric: tabular-nums; white-space: nowrap; }
.moi__del { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border: 0; border-radius: 8px; background: transparent; color: var(--soft); cursor: pointer; }
.moi__del:hover { background: var(--fd-new-bg); color: var(--fd-new); }
.moi__del svg { width: 18px; height: 18px; }
.mod__suma { display: flex; gap: 8px; margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--fd-ready-bg); color: var(--fd-ready); font-size: .9rem; }
.mod__suma svg { width: 18px; height: 18px; flex: none; }
.mod__add { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; border: 1px solid var(--tan); border-radius: 10px; background: #fff; color: var(--ink-2); font: 800 .86rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; cursor: pointer; }
.mod__add svg { width: 18px; height: 18px; }
.mod__add:hover { background: #fbf5ee; }
.mod__tot { display: grid; gap: 4px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--card-2); }
.mod__tot p { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0; min-height: 40px; font-size: .95rem; color: var(--ink-2); }
.mod__tot b { font-variant-numeric: tabular-nums; }
.mod__sel select { min-width: 140px; height: 40px; border-radius: 8px; font-size: 16px; }
.mod__tot p.mod__total { margin-top: 4px; padding-top: 10px; border-top: 1px solid var(--line); }
.mod__total span { font: 800 .8rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--soft); }
.mod__total b { font: 800 1.9rem/1 var(--display); color: var(--ink); }
.mod__f { display: grid; gap: 10px; padding: 14px 18px 18px; border-top: 1px solid var(--line-2); }
.mod__go { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 52px; padding: 0 14px; border: 0; border-radius: 10px; font: 800 .9rem/1.1 var(--sans); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.mod__go svg { width: 18px; height: 18px; flex: none; }
.mod__go--new { background: var(--fd-new); color: #fff; }
.mod__go--line { border: 1px solid var(--tan); background: #fbf3e8; color: var(--ink-2); }
.mod__go--line:hover { background: #f6e8d4; }
.mod__go--cmd { background: #c8913b; color: #1d1713; letter-spacing: .12em; }
.mod__go--cmd:hover { background: #b07a28; }
.mod__go--cmd span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mod__go--rdy { background: #0e7490; color: #fff; box-shadow: 0 2px 0 #0b5568; }
.mod__go--rdy:hover { background: #0b6680; }
.mod__go--wa { background: #1f9d55; color: #fff; text-transform: none; letter-spacing: 0; font-size: 1rem; }
.mod__go--wa.is-done { background: #fff; color: #1f7a45; border: 1px solid #9fd8b5; }
.mod__help { display: flex; align-items: flex-start; gap: 6px; margin: -2px 2px 0; color: var(--soft); font-size: .86rem; line-height: 1.35; }
.mod__help svg { width: 16px; height: 16px; flex: none; margin-top: 1px; }
.mod__pay { display: flex; gap: 10px; }
.mod__pay .fdd__pay { flex: 1 1 auto; margin: 0; min-height: 56px; background: var(--tan); font-size: 1rem; }
.mod__pay .fdd__pay svg { color: #fff; }
.mod__pay .fdd__pay:hover { background: #8a5f2c; }
.mod__x { display: grid; place-items: center; flex: none; width: 56px; border: 1px solid #f0b4b4; border-radius: 10px; background: #fff; color: var(--fd-new); cursor: pointer; }
.mod__x svg { width: 22px; height: 22px; }
.mod__x:hover { background: var(--fd-new-bg); }
.mod__cer { display: flex; align-items: center; gap: 8px; margin: 0; padding: 12px 14px; border-radius: 10px; background: var(--fd-ready-bg); color: var(--fd-ready); font-weight: 700; }
.mod__cer svg { width: 18px; height: 18px; flex: none; }

@media (max-width: 760px) {
  .mo__top { justify-content: stretch; }
  .mo__new { flex: 1 1 auto; justify-content: center; }
  .mor { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "n nm tot" "h nm st"; gap: 4px 10px; padding: 10px 12px; }
  .mor__n { grid-area: n; }
  .mor__h { grid-area: h; font-size: .82rem; }
  .mor__nm { grid-area: nm; }
  .mor__tot { grid-area: tot; }
  .mor__st { grid-area: st; }
  .mod__b { padding: 14px 14px 4px; }
  .mod__f { padding: 12px 14px 14px; }
  .mod__total b { font-size: 1.6rem; }
}
@media (max-width: 360px) {
  .moi { gap: 6px; padding: 6px; }
  .moi__q button, .moi__del { width: 32px; height: 32px; }
  .mod__sel select { min-width: 112px; }
}
.mo__new, .mod__pay .fdd__pay { background: #c08a3e; }
.mo__new:hover, .mod__pay .fdd__pay:hover { background: #a8762f; filter: none; }
@media (max-width: 1100px) { .mo__det:has(> .fd__none) { display: none; } }
.mod__b { display: flex; flex-direction: column; flex: 1 1 auto; }
.mod__b > * { flex: none; }
.mod__f { flex: none; }
.moi--suma { background: #e9f8ee; box-shadow: inset 4px 0 0 #2fa862; }
.moi--suma .moi__q--ro b, .moi--suma .moi__q b { background: #c9efd6; color: #0f6b33; }
.moi__new { display: inline-flex; align-items: center; gap: 4px; justify-self: start; margin-top: 2px; padding: 3px 8px; border-radius: 999px; background: #2fa862; color: #fff; font: 800 .72rem/1.1 var(--sans); font-style: normal; letter-spacing: .02em; }
.moi__new svg { width: 13px; height: 13px; flex: none; }
/* Nostra Patricias: Mesas (Fudo) y Retiro en local (Mostrador) se ven al 100 % en compu, más grandes,
   aunque el resto de Pedidos siga al 72 % (1 / .72 = 1.389 deshace ese zoom solo acá) */
@media (min-width: 1024px) and (hover: hover) and (pointer: fine) {
  .view[data-view="pedidos"] .fd--pt { zoom: 1.18; }
}
@media (min-width: 1600px) and (hover: hover) and (pointer: fine) {
  .view[data-view="pedidos"] .fd--pt { zoom: 1.389; }
}

/* Mostrador: lo que el cliente agregó con el pedido ya en la cocina (comanda aparte y su propio estado) */
.mag { display: grid; gap: 8px; padding: 12px 14px; border: 2px solid #e8a3a3; border-radius: 12px; background: #fff3f3; }
.mag--cook { border-color: #f0c27d; background: #fff8ec; }
.mag__h { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0; color: #9b1c1c; font-size: .95rem; }
.mag--cook .mag__h { color: #8a4b05; }
.mag__h svg { width: 18px; height: 18px; flex: none; }
.mag__st { margin-left: auto; padding: 5px 10px; border-radius: 999px; background: #c81e1e; color: #fff; font: 800 .72rem/1 var(--sans); font-style: normal; letter-spacing: .06em; text-transform: uppercase; }
.mag--cook .mag__st { background: #a85a07; }
.mag__l { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; font-size: 1rem; font-weight: 600; }
.mag__l b { display: inline-block; min-width: 26px; }
.mag__go { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 12px; border: 0; border-radius: 10px; background: #c81e1e; color: #fff; font: 800 .9rem/1.15 var(--sans); text-align: center; cursor: pointer; }
.mag__go svg { width: 18px; height: 18px; flex: none; }
.mag__go--ok { background: #127a3a; }
.mag__help { margin: 0; color: var(--soft); font-size: .82rem; line-height: 1.35; }
.mod__help--warn { padding: 10px 12px; border-radius: 10px; background: #fff8ec; color: #8a4b05; margin: 0; }

/* ==== COBRAR (ventana nueva, 2026-11-17): un botón por medio y «Mitad y mitad»; cada medio muestra lo suyo ==== */
.fdc2 .fdc__k { margin: 16px 0 8px; }
.fdc2__modos { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; }
.fdc2__modo { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 76px; padding: 10px 8px; border: 2px solid var(--line); border-radius: 14px; background: #fff; color: var(--ink-2); font: 800 .95rem/1.15 var(--sans); text-align: center; cursor: pointer; }
.fdc2__modo svg { width: 24px; height: 24px; color: var(--soft); }
.fdc2__modo small { display: block; margin-top: 2px; font: 600 .74rem/1 var(--sans); color: var(--mute); }
.fdc2__modo:hover { border-color: #d8c3a8; }
.fdc2__modo.is-on { border-color: #c08a3e; background: #fbf1e3; color: var(--ink); box-shadow: 0 0 0 3px rgba(192, 138, 62, .18); }
.fdc2__modo.is-on svg { color: #a8762f; }
.fdc2__modo--div { border-style: dashed; }
.fdc2__box { display: grid; gap: 10px; margin-top: 14px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.fdc2__box--ef { border-color: #9fd8b5; background: #f2fbf5; }
.fdc2__box--tr { border-color: #b9cdf2; background: #f3f7ff; }
.fdc2__bt { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 1.02rem; color: var(--ink); }
.fdc2__bt svg { width: 20px; height: 20px; flex: none; color: var(--soft); }
.fdc2__bt b { font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.fdc2__lbl { font: 800 .74rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--soft); }
.fdc2__in { min-height: 56px; background: #fff; }
.fdc2__in input { font-size: 1.35rem; }
.fdc2__bills { display: flex; flex-wrap: wrap; gap: 6px; }
.fdc2__bill { min-height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink-2); font: 700 .9rem/1 var(--sans); font-variant-numeric: tabular-nums; cursor: pointer; }
.fdc2__bill:hover { border-color: var(--ink-2); }
.fdc2__vu { margin: 0; padding: 12px 14px; border-radius: 10px; background: #fff; color: var(--mute); font-size: .95rem; }
.fdc2__vu.is-ok { background: #1f9d55; color: #fff; font-size: 1.05rem; }
.fdc2__vu.is-ok b { font-size: 1.5rem; }
.fdc2__vu.is-bad { background: #fdecec; color: #c81e1e; font-weight: 700; }
.fdc2__alias { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-radius: 12px; background: #fff; border: 1px solid #b9cdf2; }
.fdc2__alias div { display: grid; gap: 2px; min-width: 0; }
.fdc2__alias small, .fdc2__tit small { font: 800 .7rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--soft); }
.fdc2__alias b { font: 800 1.5rem/1.1 var(--sans); color: #1d4ed8; overflow-wrap: anywhere; }
.fdc2__copy { display: inline-flex; align-items: center; gap: 6px; flex: none; min-height: 42px; padding: 0 14px; border: 0; border-radius: 10px; background: #1d4ed8; color: #fff; font: 800 .88rem/1 var(--sans); cursor: pointer; }
.fdc2__copy svg { width: 16px; height: 16px; }
.fdc2__tit { display: grid; gap: 4px; margin: 0; }
.fdc2__tit b { font-size: 1.05rem; overflow-wrap: anywhere; }
.fdc2__tip { display: flex; align-items: flex-start; gap: 6px; margin: 0; color: var(--soft); font-size: .86rem; line-height: 1.35; }
.fdc2__tip svg { width: 16px; height: 16px; flex: none; margin-top: 1px; }
.fdc2__div { display: grid; gap: 10px; margin-top: 14px; }
.fdc2__part { display: grid; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.fdc2__pk { display: flex; align-items: center; gap: 8px; margin: 0; font: 800 .78rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.fdc2__pk span { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #c08a3e; color: #fff; font-size: .75rem; }
.fdc2__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.fdc2__chip { display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink-2); font: 700 .9rem/1 var(--sans); cursor: pointer; }
.fdc2__chip svg { width: 16px; height: 16px; color: var(--soft); }
.fdc2__chip.is-on { border-color: #c08a3e; background: #fbf1e3; color: var(--ink); font-weight: 800; }
.fdc2__chip:disabled { opacity: .35; cursor: not-allowed; }
.fdc2__rest { margin: 0; font-size: 1rem; color: var(--ink-2); }
.fdc2__rest b { font-size: 1.3rem; font-variant-numeric: tabular-nums; color: var(--ink); }
@media (max-width: 420px) {
  .fdc2__modos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fdc2__modo { min-height: 66px; font-size: .88rem; }
  .fdc2__alias { flex-wrap: wrap; }
  .fdc2__alias b { font-size: 1.25rem; }
}

/* ==== BARRA (barman) ==== tragos que la caja mandó con la comanda; «Listo» avisa al mozo */
.br { max-width: 1100px; margin: 0 auto; padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
.br-head { margin: 0 0 16px; }
.br-kick { margin: 0; color: var(--mute); font-weight: 700; font-size: .9rem; }
.br-title { margin: 2px 0 6px; font-family: var(--display); font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 900; line-height: 1.05; display: flex; align-items: center; gap: 10px; }
.br-title span { min-width: 1.6em; padding: 2px 10px; border-radius: 999px; background: var(--sem-new); color: #fff; font: 800 1.1rem var(--sans); text-align: center; }
.br-sub { margin: 0; color: var(--soft); line-height: 1.4; }
.br-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.br-c { display: flex; flex-direction: column; padding: 16px; border: 3px solid var(--sem-new); border-radius: 18px; background: var(--card); box-shadow: var(--shadow); animation: mtIn .35s ease-out; }
.br-c.is-late { background: var(--red-bg); }
.br-c__top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.br-c__who { margin: 0; font-family: var(--display); font-size: 1.7rem; font-weight: 900; line-height: 1.05; overflow-wrap: anywhere; color: var(--sem-new2); }
.br-c__t { flex: none; color: var(--mute); font-weight: 800; }
.br-c.is-late .br-c__t { color: var(--sem-new2); }
.br-c__meta { margin: 4px 0 0; color: var(--mute); font-size: .9rem; }
.br-c__meta b { color: var(--sem-cook2); }
.br-items { margin: 10px 0 0; padding: 0; list-style: none; }
.br-items li { display: flex; gap: 10px; align-items: baseline; padding: 7px 0; border-top: 1px solid var(--line-2); font-size: 1.25rem; font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; }
.br-items b { flex: none; min-width: 1.8em; font-size: 1.4rem; font-weight: 900; color: var(--ink); }
.br-c__note { margin: 8px 0 0; padding: 8px 10px; border-radius: 10px; background: var(--tint); font-size: .95rem; line-height: 1.3; overflow-wrap: anywhere; }
.br-c__btn { margin-top: auto; min-height: 60px; padding: 14px 16px; border: 0; border-radius: 14px; background: var(--sem-ready); color: #fff; font: 900 1.25rem var(--sans); cursor: pointer; touch-action: manipulation; }
.br-items + .br-c__btn, .br-c__note + .br-c__btn { margin-top: 16px; }
.br-c__btn:active { background: var(--sem-ready2); }
.br-c__btn:disabled { opacity: .6; cursor: default; }
.br-empty { padding: 36px 18px; border: 2px dashed var(--line); border-radius: 18px; background: var(--card); color: var(--soft); text-align: center; line-height: 1.4; }
.br-empty b { display: block; margin-bottom: 4px; font-size: 1.3rem; color: var(--sem-ready2); }
.br-done { margin-top: 22px; }
.br-h { margin: 0 0 8px; font-size: 1rem; font-weight: 800; color: var(--mute); }
.br-done ul { margin: 0; padding: 0; list-style: none; border: 1px solid var(--line); border-radius: 14px; background: var(--card); overflow: hidden; }
.br-done li { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; padding: 10px 14px; border-top: 1px solid var(--line-2); color: var(--soft); }
.br-done li:first-child { border-top: 0; }
.br-done li b { color: var(--sem-ready2); }
.br-done li span { flex: 1 1 160px; min-width: 0; overflow-wrap: anywhere; }
.br-done li small { color: var(--mute); }
@media (max-height: 480px) and (orientation: landscape) { .br-c__who { font-size: 1.4rem; } .br-c__btn { min-height: 52px; } }
/* Empleados: días sin clic (PE_DIA_EDIT = false en admin.js) */
.ce-wc.ce-wc--fija { cursor: default; }
.ce-wc.ce-wc--fija:hover { filter: none; }
/* Empleados, modo simple: cada día solo nombre y fecha, todos iguales (sin colores ni «hoy») */
.ce-wk--sim thead { display: none; }
.ce-wc.ce-wc--sim { min-height: 52px; background: #fff; color: var(--ce-ink); box-shadow: inset 0 0 0 1.5px #d5d9df; outline: 0; cursor: default; }
.ce-wc.ce-wc--sim:hover { filter: none; }
.ce-wc.ce-wc--sim b { font-size: .8rem; }
.ce-wc.ce-wc--sim small { opacity: .7; }
/* Empleados: sin «Días libres» quedan 4 pestañas (Resumen, Asistencia, Tareas, Equipo) */
.pe-tabs.ce2-tabs { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
/* Pedidos › Retiro en local (Patricias): «Pedidos ya» y «Nuevo pedido» negros con letra blanca */
.btn.btn--negro { background: #111; color: #fff; border: 1.5px solid #111; box-shadow: none; }
.btn.btn--negro svg { color: #fff; stroke: currentColor; }
.btn.btn--negro:hover { background: #2a2a2a; border-color: #2a2a2a; color: #fff; filter: none; }

/* ==== FILTRO DE PRODUCTOS (Nuevo pedido / Pedidos ya / Sumar productos) ==== */
/* buscador + categorías en botones, fijos arriba del modal mientras se baja por la lista */
.pkf { position: sticky; top: -6px; z-index: 3; margin: 2px -24px 6px; padding: 8px 24px 10px; background: var(--card); border-bottom: 1px solid var(--line-2); }
.pkf__s { position: relative; display: flex; align-items: center; }
.pkf__s .ico, .pkf__s svg { position: absolute; left: 12px; width: 18px; height: 18px; color: var(--mute); pointer-events: none; }
.pkf__s input { width: 100%; min-height: 42px; padding: 8px 12px 8px 38px; border: 1px solid var(--line); border-radius: 12px; background: var(--field); color: var(--ink); font: inherit; font-size: 16px; }
.pkf__s input:focus { outline: 2px solid var(--tan); outline-offset: 0; border-color: transparent; }
.pkf__c { display: flex; gap: 8px; margin-top: 8px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding-bottom: 2px; }
.pkf__c::-webkit-scrollbar { display: none; }
.pkf__b { flex: 0 0 auto; min-height: 38px; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--card-2); color: var(--ink-2); font: inherit; font-size: .9rem; font-weight: 700; white-space: nowrap; cursor: pointer; scroll-snap-align: start; transition: background .15s, color .15s, border-color .15s; -webkit-tap-highlight-color: transparent; }
.pkf__b:hover { border-color: var(--tan-line); }
.pkf__b:focus-visible { outline: 2px solid var(--tan); outline-offset: 2px; }
.pkf__b.is-on { background: var(--ink); border-color: var(--ink); color: var(--hi); }
.pkf__none { margin: 18px 0; color: var(--soft); text-align: center; }
[data-pkl] > [data-pkg]:first-child > .pick__sec, [data-pkl] > .cmb:first-child .pick__sec { margin-top: 6px; }
/* PC y tablet horizontal: las categorías en varias filas (sin deslizar) */
@media (min-width: 900px) and (hover: hover) { .pkf__c { flex-wrap: wrap; overflow: visible; } }
@media (max-width: 600px) { .pkf { margin-left: -18px; margin-right: -18px; padding-left: 18px; padding-right: 18px; } .pkf__b { min-height: 40px; } }

/* ==== RETIRO: COLORES PROPIOS (2026-11-18) ==== */
/* Retiro en local no usa los colores de Mesas (rojo nuevo · ámbar cocina · verde listo · azul comiendo), salvo el rojo
   de «nuevo», que en todo el panel significa «hay que hacer algo»:
   nuevo = rojo · en curso (cocina) = violeta · a entregar = turquesa · cerrada = gris */
.mo { --mo-cook: #5b3fc4; --mo-cook-bg: #f1edfd; --mo-cook-ln: #9b86ec; --mo-ent: #0a6b76; --mo-ent-bg: #e1f4f5; --mo-ent-ln: #17a2b0; --mo-done: #6f655c; --mo-done-bg: #efebe6; --mo-done-ln: #cfc6bc; }
.mo .mos__h > svg { width: 18px; height: 18px; flex: none; }
.mo .mos--cur .mos__h { background: var(--mo-cook-bg); border-bottom-color: color-mix(in srgb, var(--mo-cook-ln) 35%, transparent); }
.mo .mos--cur .mos__h, .mo .mos--cur .mos__h h3 { color: var(--mo-cook); }
.mo .mos--cur .mos__n { background: var(--mo-cook); color: #fff; }
.mo .mos--ent .mos__h { background: var(--mo-ent-bg); border-bottom-color: color-mix(in srgb, var(--mo-ent-ln) 35%, transparent); }
.mo .mos--ent .mos__h, .mo .mos--ent .mos__h h3 { color: var(--mo-ent); }
.mo .mos--ent .mos__n { background: var(--mo-ent); color: #fff; }
.mo .mos--cer .mos__h, .mo .mos--cer .mos__h h3 { color: var(--mo-done); }
/* filas: borde y fondo suave del color del estado */
.mo .mor--new { border-left-color: var(--fd-new); background: #fff8f8; }
.mo .mor--cook { border-left-color: var(--mo-cook-ln); }
.mo .mor--ready { border-left-color: var(--mo-ent-ln); background: #f3fbfb; }
.mo .mor--done { border-left-color: var(--mo-done-ln); }
.mo .mor:hover { background: var(--card-2); }
.mo .mor.is-on { background: #fff; box-shadow: inset 0 0 0 2px var(--ink); }
.mo .mor__st--cook, .mo .mo__badge--cook { background: var(--mo-cook-bg); color: var(--mo-cook); }
.mo .mor__st--ready, .mo .mo__badge--ready { background: var(--mo-ent); color: #fff; }
.mo .mor__st--done, .mo .mo__badge--done { background: var(--mo-done-bg); color: var(--mo-done); }
.mo .mor__st--new, .mo .mo__badge--new { background: var(--fd-new); color: #fff; }
/* de dónde vino el pedido: Caja o Página (neutro, para no sumar otro color) */
.mor__or { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--soft); font: 700 .7rem/1 var(--sans); font-style: normal; white-space: nowrap; }
.mor__or svg { width: 12px; height: 12px; }
.mor__or--web { border-style: dashed; }
/* Empleados › Planilla (modo simple): cada casillero = fecha + hora de entrada y salida; se toca para cambiar el horario de ese día */
.ce-wc.ce-wc--sim.ce-wc--h { min-height: 64px; gap: 1px; cursor: pointer; }
.ce-wc.ce-wc--h .ce-wc__d { display: block; margin-bottom: 2px; color: var(--ce-mute); opacity: 1; }
.ce-wc.ce-wc--h b { font-size: .95rem; font-variant-numeric: tabular-nums; }
.ce-wc.ce-wc--h small { font-variant-numeric: tabular-nums; }
.ce-wc.ce-wc--h.is-no { background: #f3f4f6; color: #8a93a3; box-shadow: inset 0 0 0 1.5px #e5e7eb; }
.ce-wc.ce-wc--h.is-no b { font-size: .74rem; font-weight: 700; }
.ce-wc.ce-wc--h.is-hoy { box-shadow: inset 0 0 0 2px var(--ce-ink); }
.ce-wc.ce-wc--h.is-hoy .ce-wc__d { color: var(--ce-ink); }
.ce-wc.ce-wc--h:focus-visible { outline: 2px solid var(--ce-ink); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .ce-wc.ce-wc--h:hover { box-shadow: inset 0 0 0 2px #9aa3b2; } .ce-wc.ce-wc--h.is-hoy:hover { box-shadow: inset 0 0 0 2px var(--ce-ink); } }
@media (max-width: 900px) { .ce-wc.ce-wc--h b { font-size: .84rem; } .ce-wc.ce-wc--h.is-no b { font-size: .68rem; } }
/* ventana para cambiar el horario de un día */
.ce-hno { display: flex; align-items: center; gap: 10px; min-height: 44px; margin: 0 0 10px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; font-weight: 600; }
.ce-hno input { width: 20px; height: 20px; accent-color: var(--ce-ink, #111); }
.ce-hno:has(input:checked) + .ce-hhs { opacity: .4; pointer-events: none; }
/* Tareas: flechas para ver otro día */
.ce-tdia { margin: 0 0 12px; }
/* Resumen: tarjeta de número sin clic (horas) */
div.ce-kpi { cursor: default; }
.ce-wk.ce-wk--sim tbody th { white-space: normal; }
.ce-wk.ce-wk--sim tbody th b { white-space: normal; overflow-wrap: anywhere; line-height: 1.2; }
@media (min-width: 901px) { .ce-wk.ce-wk--sim tbody th { width: 170px; } }
/* Mostrador: pedido de la página → «Cliente» con su WhatsApp y el botón para avisarle que pase a retirar */
.mod__cli { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0; padding: 8px 10px 8px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.mod__cli p { display: flex; flex-direction: column; min-width: 0; margin: 0; }
.mod__cli small { color: var(--mute); font: 700 .68rem/1.2 var(--sans); letter-spacing: .08em; text-transform: uppercase; }
.mod__cli b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .95rem; }
.mod__cliwa { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border: 0; border-radius: 999px; background: #1f9d55; color: #fff; font: 700 .85rem/1 var(--sans); cursor: pointer; }
.mod__cliwa svg { width: 18px; height: 18px; }
.mod__cliwa:hover { background: #18834a; }
.mod__cliwa.is-done { background: #e8f6ee; color: #18834a; }
.mod__cliwa:focus-visible { outline: 2px solid #1f9d55; outline-offset: 2px; }
/* Retiro: lo que sumó el cliente va abajo, en un solo bloque verde «Lo que sumó», con cada extra debajo de la pizza */
.moi-sh { display: flex; align-items: center; gap: 6px; padding: 8px 12px; border-top: 1px solid #bfe6cc; background: #2fa862; color: #fff; font: 800 .74rem/1.2 var(--sans); letter-spacing: .08em; text-transform: uppercase; list-style: none; }
.moi-sh svg { width: 15px; height: 15px; flex: none; }
.moi.moi--suma { background: #f1faf4; box-shadow: none; border-top-color: #d6efdf; }
.moi.moi--suma .moi__q b { background: #d7f1e0; color: #0f6b33; }
.moi.moi--ex { min-height: 44px; }
.moi.moi--ex .moi__nm { padding-left: 4px; color: #33503e; font-size: .92em; }
.moi__ex { margin-right: 6px; color: #2fa862; font-style: normal; font-weight: 800; }
.mag__l li.mag__ex { padding-left: 14px; color: #33503e; }
/* Cobrar (mesas y retiro en local): fondo negro y letras blancas */
.fdd__pay, .mod__pay .fdd__pay, .mo__new.fdd__pay { background: #111 !important; color: #fff !important; }
.fdd__pay svg, .mod__pay .fdd__pay svg { color: #fff !important; }
.fdd__pay:hover, .mod__pay .fdd__pay:hover { background: #000 !important; }
.moi.moi--ex { padding-left: 28px; }
.moi.moi--ex .moi__nm { display: flex; flex-direction: row; align-items: center; }
/* Mesas: lo que se sumó después (mozo o cliente con el QR) en verde, como en el retiro; extras debajo de la pizza */
.fdo.fdo--suma { border-color: #bfe6cc; border-left-color: #2fa862; background: #f1faf4; }
.fdo__tag { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; background: #2fa862; color: #fff !important; font: 800 .74rem/1.2 var(--sans) !important; letter-spacing: .06em; text-transform: uppercase; }
.fdo__tag svg { width: 14px; height: 14px; }
.fdo__sh { display: flex !important; align-items: center; gap: 6px; margin-top: 6px; padding: 6px 10px !important; border-radius: 8px; background: #2fa862; color: #fff; font: 800 .72rem/1.2 var(--sans); letter-spacing: .06em; text-transform: uppercase; }
.fdo__sh svg { width: 14px; height: 14px; }
.fdo__it li.fdo__su { background: #f1faf4; }
.fdo__it li.fdo__ex { padding-left: 22px; }
.fdo__ex .fdo__nm { display: flex; align-items: center; color: #33503e; }
.fdo__ex .fdo__nm i { margin-right: 6px; color: #2fa862; font-style: normal; font-weight: 800; }

/* «Descargar app» en la barra de arriba del inicio de sesión (al lado de «Ver la página") */
.lbar__btn.app-install--bar { cursor: pointer; font: inherit; font-weight: 600; font-size: .9rem; background: rgba(227, 164, 111, .16); border-color: var(--tan); }
.lbar__btn.app-install--bar[hidden] { display: none; }
.lbar__acts { display: flex; align-items: center; gap: 8px; }
/* un solo «Descargar app» en el inicio de sesión: el de la barra de arriba (en celular también con el texto) */
.app-install--login { display: none !important; }
@media (max-width: 460px) {
  .lbar__acts .lbar__btn.app-install--bar { width: auto; padding: 0 12px; }
  .lbar__acts .lbar__btn.app-install--bar span { display: inline; }
}
@media (max-width: 400px) { .lbar__name { font-size: 1.05rem; } .lbar__acts { gap: 6px; } .lbar__acts .lbar__btn.app-install--bar { padding: 0 10px; font-size: .8rem; } }
@media (max-width: 340px) { .lbar__acts .lbar__btn.app-install--bar span { display: none; } .lbar__acts .lbar__btn.app-install--bar { width: 40px; padding: 0; justify-content: center; } }

/* ==== MOSTRADOR (pestaña aparte, Nostra Patricias, 2026-11-18): como el Mostrador de Fudo ====
   listas en recuadros grises, encabezado en mayúsculas espaciadas, franja naranja a la izquierda y «+ Nuevo pedido» arriba */
.mo--m { --mm-or: #c2621f; --mm-or-bg: #fbeadf; }
.mo--m .mos { border: 1px solid #dcdcdc; border-radius: 6px; background: #fafafa; overflow: hidden; }
.mo--m .mos .mos__h, .mo--m .mos--cur .mos__h, .mo--m .mos--ent .mos__h { padding: 14px 16px; background: #fafafa; border-bottom: 1px solid #e3e3e3; color: #222; }
.mo--m .mos .mos__h > svg { display: none; }
.mo--m .mos .mos__h h3, .mo--m .mos--cur .mos__h h3, .mo--m .mos--ent .mos__h h3 { color: #222; font: 700 .74rem/1 var(--sans); letter-spacing: .2em; }
.mo--m .mos .mos__n, .mo--m .mos--cur .mos__n, .mo--m .mos--ent .mos__n { background: #e6e6e6; color: #555; min-width: 22px; height: 22px; font-size: .7rem; }
.mo--m .mos__e { padding: 26px 16px; background: #fafafa; color: #555; }
.mo--m .mor { min-height: 48px; background: #fafafa; border-left: 4px solid var(--mm-or); border-top: 1px solid #e3e3e3; font-weight: 500; }
.mo--m .mor--new { background: #fff8f8; border-left-color: var(--fd-new); }
.mo--m .mor--ready { border-left-color: var(--mo-ent-ln); }
.mo--m .mor--done { border-left-color: #cfcfcf; }
.mo--m .mor.is-on { background: #fff; box-shadow: inset 0 0 0 2px var(--mm-or); }
.mo--m .mor__n { font-weight: 700; }
.mo--m .mor__h { color: #444; }
.mo--m .mor__nm { color: #444; }
.mo--m .mor__st--cook { background: var(--mm-or-bg); color: var(--mm-or); font-weight: 600; letter-spacing: .1em; }
.mo--m .mor__tot { font-weight: 600; }
.mo--m .mo__top { display: flex; justify-content: flex-end; }
.mo--m .mo__new { min-height: 40px; padding: 0 22px; border-radius: 0; background: #111; color: #fff; font: 700 .82rem/1 var(--sans); letter-spacing: .2em; box-shadow: none; }
.mo--m .mo__new:hover { background: #333; }
.mo--m .mo__det { border: 1px solid #dcdcdc; border-radius: 6px; background: #fafafa; }
@media (max-width: 760px) { .mo--m .mo__top { justify-content: stretch; } .mo--m .mo__new { flex: 1 1 auto; justify-content: center; min-height: 48px; } }

/* ==== MESA ESTILO FUDO (2026-11-18): al tocar una mesa se abre la mesa en una ventana grande: a la izquierda la carta
   (buscador, categorías con color, títulos por sección) y a la derecha el panel de la mesa (.pfd: cliente y personas,
   adiciones, subtotal / descuento / total, «Quién hizo qué» y abajo Enviar o Cobrar) ==== */
.pos--fd { background: #fff; }
.pos--fd .pos__top { gap: 12px; padding: 14px 24px; padding-top: max(14px, env(safe-area-inset-top)); border-bottom: 1px solid var(--sl-200); }
.pos--fd .pos__ttl h2 { font-family: var(--display); font-size: 1.45rem; font-weight: 800; letter-spacing: .01em; }
.pos__close { display: grid; place-items: center; flex: none; width: 44px; height: 44px; margin-left: auto; border: 0; border-radius: 10px; background: transparent; color: var(--sl-900); cursor: pointer; }
.pos__close svg { width: 24px; height: 24px; }
@media (hover: hover) { .pos__close:hover { background: var(--sl-100); } }
.pos__close:focus-visible { outline: 3px solid var(--sl-900); outline-offset: 2px; }
.pos--fd .pos__main { grid-template-columns: minmax(0, 1fr) 430px; gap: 22px; max-width: none; padding: 20px 24px; }
.pos--fd .pos__l { padding: 0; border: 0; border-radius: 0; background: transparent; }
/* flex: none — en tablet parada y celular «.pos__q { flex: 1 1 … }» lo estiraba para abajo (huecos enormes arriba de la carta) */
.pos__q--fd { flex: none; width: 100%; min-width: 0; margin: 0 0 14px; }
.pos--fd .pos__cats { flex: none; }
.pos__q--fd input { height: 50px; border: 1px solid var(--sl-200); border-radius: 10px; background: var(--sl-50); }
.pos__q--fd input:focus { background: #fff; }
.pos--fd .pos__cats { margin-bottom: 16px; }
.pos--fd .pos__cat { min-height: 44px; padding: 0 18px; font-size: .76rem; }
.pos--fd .pos__grid { padding: 2px 4px 24px 2px; }
.pos__sh { grid-column: 1 / -1; margin: 10px 0 -2px; font: 700 .76rem/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--sl-700); }
.pos__sh:first-child { margin-top: 0; }
.pos__sh[hidden] { display: none; }
.pos--fd .posp { min-height: 112px; box-shadow: 0 1px 2px rgba(15, 23, 42, .05); }
.pos--fd .posp__name { font-size: .92rem; }
.pos--fd .posp__pr { font-size: 1.02rem; font-weight: 600; color: var(--red); }
/* panel de la mesa */
.pos--fd .pos__r { border: 1px solid var(--sl-200); border-radius: 14px; background: #faf8f5; box-shadow: none; }
.pfd { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.pfd__h { display: flex; align-items: center; gap: 10px; padding: 16px 18px; border-bottom: 1px solid var(--sl-200); background: var(--tint); }
.pfd__tt { flex: 1; min-width: 0; }
.pfd__tt h3 { margin: 0; font-size: 1.15rem; font-weight: 800; color: var(--ink); }
.pfd__tt p { margin: 2px 0 0; font-size: .8rem; color: var(--sl-500); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pfd__st { flex: none; padding: 6px 11px; border-radius: 999px; background: #eceae7; color: #57534e; font: 800 .66rem/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; }
.pfd__st--new { background: #fee2e2; color: #b91c1c; }
.pfd__st--cook { background: #fdecc8; color: #a15c07; }
.pfd__st--ready { background: #dcfce7; color: #15803d; }
.pfd__st--busy { background: #dbeafe; color: #1d4ed8; }
.pfd__st--pay { background: #ede9fe; color: #6d28d9; }
.pfd__b { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 14px; padding: 16px 18px; overflow-y: auto; overscroll-behavior: contain; }
.pfd__f { display: grid; grid-template-columns: minmax(0, 1fr) 96px; gap: 10px; }
.pfd__l { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.pfd__l span { font: 800 .74rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }
.pfd__l input { width: 100%; height: 46px; padding: 0 12px; border: 1px solid var(--sl-200); border-radius: 8px; background: #fff; color: var(--ink); font: 500 16px var(--sans); }
.pfd__l--pax input { text-align: center; font-weight: 700; }
.pfd__l input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(29, 23, 19, .1); }
.pfd__k { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin: 2px 0 -4px; font: 800 .72rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.pfd__k span { font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--sl-500); }
.pfd__vacio { display: flex; flex-direction: column; gap: 4px; padding: 26px 14px; border: 1.5px dashed var(--sl-300, #cbd5e1); border-radius: 10px; text-align: center; font-size: .92rem; color: var(--ink-2); }
.pfd__vacio small { font-size: .78rem; color: var(--sl-500); }
.pfd__new { display: flex; flex-direction: column; gap: 10px; padding: 12px; border: 1px solid #fecaca; border-radius: 10px; background: #fef2f2; }
.pfd__new p { margin: 0; font-size: .84rem; color: #7f1d1d; }
.pfd__new b { display: block; font-size: .92rem; color: #b91c1c; }
.pfd__new button { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; border: 0; border-radius: 8px; background: #b91c1c; color: #fff; font: 700 .9rem var(--sans); cursor: pointer; }
.pfd__new svg { width: 18px; height: 18px; }
.pfd__pend { padding: 10px; border: 1px solid #f1d3ad; border-radius: 10px; background: #fff7ec; }
.pfd__pk { display: flex; align-items: center; gap: 6px; margin: 0 0 8px; font: 800 .7rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: #9a4d0b; }
.pfd__pk svg { width: 15px; height: 15px; }
.pos--fd .pfd .posl, #fdDet .pfd .posl, #moDet .pfd .posl { padding: 10px 12px; border: 1px solid var(--sl-200); border-radius: 8px; background: #fff; }
.pfi__r { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.pfi__n { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: .9rem; font-weight: 600; line-height: 1.3; color: var(--ink); overflow-wrap: anywhere; }
.pfi__n small { display: flex; align-items: flex-start; gap: 4px; font-size: .76rem; font-weight: 500; color: #92400e; }
.pfi__n small svg { flex: none; width: 13px; height: 13px; margin-top: 2px; }
.pfi b { flex: none; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pfi__c { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.pfi__c small { font-size: .74rem; color: var(--sl-500); }
.pfi__c .posl__x { width: 40px; height: 40px; }
.pfd__env { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.pfo { border: 1px solid var(--sl-200); border-left: 4px solid #57534e; border-radius: 10px; background: #fff; overflow: hidden; }
.pfo--pending { border-left-color: #dc2626; }
.pfo--kitchen, .pfo--prep { border-left-color: #d97706; }
.pfo--ready { border-left-color: #16a34a; }
.pfo--served { border-left-color: #2563eb; }
.pfo.is-new { animation: posxIn .55s cubic-bezier(.2, .9, .25, 1.15) both; }
.pfo__h { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; padding: 8px 12px; border-bottom: 1px solid var(--sl-100, #f1f5f9); background: #fcfbfa; font-size: .74rem; color: var(--sl-500); }
.pfo__st { padding: 3px 8px; border-radius: 999px; background: #eceae7; color: #44403c; font-weight: 800; font-size: .64rem; letter-spacing: .06em; text-transform: uppercase; }
.pfo--pending .pfo__st { background: #fee2e2; color: #b91c1c; }
.pfo--kitchen .pfo__st, .pfo--prep .pfo__st { background: #fdecc8; color: #a15c07; }
.pfo--ready .pfo__st { background: #dcfce7; color: #15803d; }
.pfo--served .pfo__st { background: #dbeafe; color: #1d4ed8; }
.pfo__it { margin: 0; padding: 4px 12px; list-style: none; }
.pfo__it .pfi { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: 10px; padding: 7px 0; border-top: 1px dashed var(--sl-200); }
.pfo__it .pfi:first-child { border-top: 0; }
.pfi__q { display: grid; place-items: center; min-width: 26px; height: 24px; padding: 0 6px; border-radius: 6px; background: var(--tint); font-weight: 800; font-size: .8rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.pfo__note { display: flex; gap: 6px; margin: 0; padding: 0 12px 8px; font-size: .78rem; color: #92400e; }
.pfo__note svg { flex: none; width: 14px; height: 14px; margin-top: 2px; }
.pfo__acts { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 12px 10px; }
.pfo__b { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 12px; border: 1px solid var(--sl-200); border-radius: 8px; background: #fff; color: var(--sl-700); font: 700 .8rem var(--sans); cursor: pointer; }
.pfo__b svg { width: 15px; height: 15px; }
.pfo__b--ok { border-color: #16a34a; background: #16a34a; color: #fff; }
@media (hover: hover) { .pfo__b:not(.pfo__b--ok):hover { border-color: #fca5a5; color: #b91c1c; } .pfo__b--ok:hover { background: #15803d; } }
.pfd__tot { padding: 6px 14px; border: 1px solid var(--sl-200); border-radius: 10px; background: #fff; }
.pfd__tot p { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 0; padding: 8px 0; font-size: .9rem; color: var(--ink-2); }
.pfd__tot b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.pfd__dsc label { display: inline-flex; align-items: center; gap: 6px; }
.pfd__dsc i { font-style: normal; font-weight: 800; color: var(--sl-500); }
.pfd__dsc .select { width: 170px; max-width: 55%; }
.pfd__dsc select { width: 100%; min-width: 0; height: 40px; padding: 0 34px 0 12px; border: 1px solid var(--sl-200); border-radius: 8px; background: var(--sl-50); color: var(--ink); font: 600 16px var(--sans); appearance: none; -webkit-appearance: none; }
.pfd__dsc select:disabled { opacity: .55; }
.pfd__tot .pfd__dm { color: #15803d; }
.pfd__tot .pfd__tt2 { margin-top: 4px; padding: 12px 0 8px; border-top: 1px solid var(--sl-200); }
.pfd__tt2 span { font: 800 .74rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }
.pfd__tt2 b { font-size: 1.7rem; font-weight: 800; color: var(--ink); }
.pfd__log { border: 1px solid var(--sl-200); border-radius: 10px; background: #fff; }
.pfd__log summary { display: flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 14px; list-style: none; font: 800 .72rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--red); cursor: pointer; }
.pfd__log summary::-webkit-details-marker { display: none; }
.pfd__log summary svg { width: 16px; height: 16px; }
.pfd__log summary em { font-style: normal; color: var(--sl-500); }
.pfd__log summary::after { content: ""; width: 8px; height: 8px; margin: -4px 2px 0 auto; border-right: 2px solid var(--sl-700); border-bottom: 2px solid var(--sl-700); transform: rotate(45deg); transition: transform .2s; }
.pfd__log[open] summary::after { margin-top: 4px; transform: rotate(-135deg); }
.pfd__log summary:focus-visible { outline: 3px solid var(--sl-900); outline-offset: -3px; border-radius: 10px; }
.pfd__log ol { margin: 0; padding: 0 14px 12px; list-style: none; }
.pfd__log li { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 8px; padding: 7px 0; border-top: 1px dashed var(--sl-200); font-size: .82rem; color: var(--ink-2); }
.pfd__log time { font-weight: 700; color: var(--sl-500); font-variant-numeric: tabular-nums; }
.pfd__nada { margin: 0; padding: 0 14px 12px; font-size: .82rem; color: var(--sl-500); }
.pfd__ft { padding: 14px 18px; padding-bottom: max(14px, env(safe-area-inset-bottom)); border-top: 1px solid var(--sl-200); background: #fff; }
.pfd__btns { display: flex; gap: 10px; }
.pfd__go { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 16px; border: 0; border-radius: 10px; background: var(--ink); color: #fff; font: 800 .86rem/1.15 var(--sans); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; transition: background-color .15s, transform .1s; }
.pfd__go svg { flex: none; width: 20px; height: 20px; }
.pfd__go b { font-size: 1.02rem; letter-spacing: 0; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pfd__go--pay { background: var(--red); }
.pfd__go--on { background: #15803d; }
.pfd__go:disabled { background: var(--sl-200); color: var(--sl-500); cursor: default; }
.pfd__go:not(:disabled):active { transform: scale(.98); }
@media (hover: hover) { .pfd__go:not(:disabled):hover { background: #000; } .pfd__go--pay:not(:disabled):hover { background: #7e2a25; } }
.pfd__ic { display: grid; place-items: center; flex: none; width: 56px; height: 56px; border: 1.5px solid var(--sl-200); border-radius: 10px; background: #fff; color: var(--sl-700); cursor: pointer; }
.pfd__ic svg { width: 21px; height: 21px; }
.pfd__ic--red { border-color: #f5b5ae; color: #c0392b; }
@media (hover: hover) { .pfd__ic:hover { border-color: var(--ink); color: var(--ink); } .pfd__ic--red:hover { border-color: #c0392b; background: #fef2f2; color: #c0392b; } }
.pfd__go:focus-visible, .pfd__ic:focus-visible, .pfo__b:focus-visible, .pfd__new button:focus-visible { outline: 3px solid var(--sl-900); outline-offset: 2px; }
.pfd__note { margin: 8px 0 0; font-size: .74rem; text-align: center; color: var(--sl-500); }
/* compu y notebook: ventana grande sobre el panel, con aire alrededor */
@media (min-width: 1024px) and (min-height: 640px) {
  .pos--fd { inset: 24px 32px; border-radius: 14px; box-shadow: 0 0 0 100vmax rgba(21, 17, 14, .55), 0 30px 60px -20px rgba(0, 0, 0, .5); overflow: hidden; }
}
@media (min-width: 1900px) { .pos--fd { inset: 32px max(32px, calc((100vw - 1840px) / 2)); } }
@media (max-width: 1200px) { .pos--fd .pos__main { grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; padding: 16px; } }
/* tablet parada y celular: la mesa se abre desde la barra de abajo (hoja que sube) */
@media (max-width: 900px) {
  .pos--fd .pos__main { grid-template-columns: minmax(0, 1fr); padding: 12px 12px 0; }
  .pos--fd .pos__l { padding-bottom: 84px; }
  .pos--fd .pos__r { border-radius: 18px 18px 0 0; background: #faf8f5; }
  .pfd__h { padding: 14px 14px 12px; border-radius: 18px 18px 0 0; }
  .pfd__b { padding: 14px; }
  .pfd__ft { padding-left: 14px; padding-right: 14px; }
  .pos--fd .pos__top { padding: 10px 14px; padding-top: max(10px, env(safe-area-inset-top)); }
}
@media (max-width: 400px) {
  .pfd__f { grid-template-columns: minmax(0, 1fr) 78px; }
  .pfd__go { gap: 8px; padding: 0 10px; font-size: .78rem; letter-spacing: .04em; }
  .pfd__ic { width: 50px; height: 56px; }
  .pfd__btns { gap: 8px; }
  .pfd__dsc .select { width: 140px; }
}
@media (max-width: 340px) { .pfd__go svg { display: none; } .pfd__st { padding: 5px 8px; font-size: .6rem; } }
/* celular acostado: poco alto */
@media (max-height: 500px) and (max-width: 950px) {
  .pos--fd .pos__top { padding-top: 6px; padding-bottom: 6px; }
  .pos--fd .pos__ttl h2 { font-size: 1.1rem; }
  .pfd__go { min-height: 48px; }
  .pfd__ic { height: 48px; }
  .pfd__h { padding-top: 10px; padding-bottom: 10px; }
  .pfd__ft { padding-top: 10px; padding-bottom: max(10px, env(safe-area-inset-bottom)); }
  .pfd__note { display: none; }
}

/* ==== MESA: COMANDAR Y COBRAR estilo Fudo (2026-11-18) — panel de la mesa en la caja (posPaintFd) ==== */
.pfd__btns--2 { flex-direction: column; gap: 10px; }
.pfd__row { display: flex; gap: 10px; }
.pfd__btns--2 .pfd__go { min-height: 50px; background: #c8913b; color: #1d1713; font-size: .82rem; letter-spacing: .12em; }
.pfd__btns--2 .pfd__ic { height: 50px; }
.pfd__btns--2 .pfd__go--cmd.is-all:disabled { background: #fff; color: #1d1713; border: 1.5px solid #c8913b; }
.pfd__btns--2 .pfd__go--cmd.is-all svg { color: #15803d; }
.pfd__btns--2 .pfd__go:disabled:not(.is-all) { background: var(--sl-200); color: var(--sl-500); }
.pfd__ic:disabled { opacity: .45; cursor: default; }
@media (hover: hover) { .pfd__btns--2 .pfd__go:not(:disabled):hover { background: #b07a28; } }
@media (max-width: 400px) { .pfd__btns--2 .pfd__go { letter-spacing: .05em; } .pfd__row { gap: 8px; } .pfd__btns--2 { gap: 8px; } }
@media (max-height: 500px) and (max-width: 950px) { .pfd__btns--2 { gap: 6px; } .pfd__btns--2 .pfd__go, .pfd__btns--2 .pfd__ic { min-height: 42px; height: 42px; } }

/* ==== MESA COMPACTA (2026-11-18): cada producto en un renglón y menos espacios, para ver todo sin bajar ==== */
.pfd__h { padding: 12px 16px; }
.pfd__b { gap: 10px; padding: 12px 16px; }
.pfd__l { gap: 4px; }
.pfd__l input { height: 40px; }
.pfd__pend { padding: 0; overflow: hidden; }
.pfd__pk { margin: 0; padding: 8px 12px; }
.pfd__pend .posls { margin: 0; padding: 0; list-style: none; background: #fff; border-top: 1px solid #f1d3ad; }
.pos--fd .pfd .pfi--add, #fdDet .pfd .pfi--add, #moDet .pfd .pfi--add { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 8px; padding: 6px 6px 6px 10px; border: 0; border-top: 1px solid var(--sl-200); border-radius: 0; background: #fff; }
.pos--fd .pfd .pfi--add:first-child, #fdDet .pfd .pfi--add:first-child, #moDet .pfd .pfi--add:first-child { border-top: 0; }
.pfi--add .qty { border: 0; background: none; }
.pfi--add .qty button { width: 30px; height: 30px; font-size: 1rem; }
.pfi--add .qty b { min-width: 18px; font-size: .9rem; }
.pfi--add .pfi__n { font-size: .88rem; }
.pfi--add .pfi__cu { color: var(--sl-500); }
.pfi--add b { font-size: .9rem; }
.pfi--add .posl__x { width: 34px; height: 34px; margin: 0; }
.pfo__h { padding: 6px 12px; }
.pfo__it .pfi { padding: 5px 0; }
.pfd__tot { padding: 2px 14px; }
.pfd__tot p { padding: 6px 0; }
.pfd__dsc select { height: 36px; }
.pfd__tot .pfd__tt2 { padding: 8px 0 6px; }
.pfd__tt2 b { font-size: 1.4rem; }
.pfd__log summary { min-height: 40px; }
.pfd__ft { padding-top: 10px; padding-bottom: max(10px, env(safe-area-inset-bottom)); }
.pfd__btns--2 { gap: 8px; }
.pfd__btns--2 .pfd__go { min-height: 46px; }
.pfd__btns--2 .pfd__ic { height: 46px; }
@media (max-width: 360px) { .pos--fd .pfd .pfi--add, #fdDet .pfd .pfi--add, #moDet .pfd .pfi--add { gap: 4px; padding-left: 4px; } .pfi--add .qty button { width: 28px; } }
.pfd__b > * { flex-shrink: 0; }
.pfd__h { padding-top: 10px; padding-bottom: 10px; }
.pos--fd .pfd .pfi--add, #fdDet .pfd .pfi--add, #moDet .pfd .pfi--add { padding-top: 3px; padding-bottom: 3px; }
.pfd__pk { padding: 6px 12px; }
.pfd__tot p { padding: 4px 0; }
.pfd__tot .pfd__tt2 { padding: 6px 0 4px; }
.pfd__tt2 b { font-size: 1.3rem; }
/* pantalla ancha (notebook y PC): Comandar · Cobrar en una sola fila */
@media (min-width: 1201px) {
  .pfd__btns--2 { flex-direction: row; }
  .pfd__btns--2 .pfd__row { flex: 1; min-width: 0; gap: 6px; }
  .pfd__btns--2 .pfd__go { gap: 6px; padding: 0 8px; font-size: .76rem; letter-spacing: .04em; }
  .pfd__btns--2 .pfd__go svg { width: 17px; height: 17px; }
  .pfd__btns--2 .pfd__ic { width: 44px; }
}
/* tablet acostada (901–1200): también en una fila, sin el ícono adentro del botón */
@media (min-width: 901px) and (max-width: 1200px) {
  .pfd__btns--2 { flex-direction: row; }
  .pfd__btns--2 .pfd__row { flex: 1; min-width: 0; gap: 5px; }
  .pfd__btns--2 .pfd__go { padding: 0 6px; font-size: .7rem; letter-spacing: .02em; }
  .pfd__btns--2 .pfd__go svg { display: none; }
  .pfd__btns--2 .pfd__ic { width: 40px; }
}
@media (max-height: 500px) and (min-width: 560px) and (max-width: 950px) {
  .pfd__btns--2 { flex-direction: row; }
  .pfd__btns--2 .pfd__row { flex: 1; min-width: 0; gap: 6px; }
  .pfd__btns--2 .pfd__go { padding: 0 8px; font-size: .74rem; letter-spacing: .04em; }
}

/* ==== MESA AL COSTADO DEL SALÓN (2026-11-18): el panel de la mesa (.pfd) dentro de #fdDet, igual que en la ventana ==== */
.fd__det:has(.pfd) { background: #faf8f5; }
.fd__det .pfd { height: auto; }
.fd__det .pfd__b { overflow: visible; }
.pfd__add { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid var(--ink); border-radius: 8px; background: #fff; color: var(--ink); font: 800 .8rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; cursor: pointer; transition: background-color .15s; }
.pfd__add svg { width: 18px; height: 18px; }
.pfd__add:hover { background: var(--tint); }
.pfd__dsc select optgroup { font-weight: 700; }

/* ==== MOZO: SUMAR ALGO Y COBRAR (2026-11-18) — panel de la mesa del mozo: total, «Sumar algo» y abajo «Cobrar» ==== */
.pfd__mzb { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; width: 100%; }
.pfd__mzb .pfd__go { width: 100%; }
.pfd__go--sum { border: 2px solid var(--sl-300, #cbd5e1); background: #fff; color: var(--sl-900, #0f172a); }
@media (hover: hover) { .pfd__go--sum:not(:disabled):hover { background: var(--sl-50, #f8fafc); } }
@media (max-height: 500px) { .pfd__mzb { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ==== MOSTRADOR: NUEVO PEDIDO CON LA CARTA (2026-11-18) — solo bebidas, venta rápida (posOpen con mo) ==== */
.pfd--moe { position: relative; display: grid; place-items: center; min-height: 100%; }
.pfd--moe > .pos__rx { position: absolute; top: 10px; right: 10px; }
.pfd__moe { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 24px 16px; text-align: center; color: var(--ink-2, #475569); font-size: .9rem; }
.pfd__moe svg { width: 34px; height: 34px; color: var(--accent, #c8892b); margin-bottom: 6px; }
.pfd__moe b { font-size: 1.05rem; font-weight: 600; color: var(--ink, #1d1713); }
.pfd--mo .posls { margin: 4px 0 0; }

/* ==== MOSTRADOR: VENTA RÁPIDA EN LA PESTAÑA (2026-11-18) — bebidas a la izquierda, pedido + «Cobrar» a la derecha ==== */
.mo--pos { align-items: start; }
.mcp { min-width: 0; }
.mcp__q { display: flex; width: 100%; min-width: 0; margin: 0 0 12px; }
.mcp__q input { width: 100%; height: 48px; font-size: 16px; border: 1px solid var(--sl-200); border-radius: 10px; background: var(--sl-50, #f8fafc); }
.mcp__q input:focus { background: #fff; }
.mcp__cats { margin-bottom: 12px; }
.mcp__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 12px; }
.mcp__grid .pos__sh { grid-column: 1 / -1; margin: 6px 0 -2px; }
.mcp .posp { flex-direction: row; align-items: stretch; min-height: 104px; border-left: 4px solid var(--c); border-radius: 12px; box-shadow: 0 1px 2px rgba(15, 23, 42, .05); }
.mcp .posp[hidden] { display: none; }
.mcp .posp__img { width: 72px; height: 72px; aspect-ratio: auto; margin: 14px 0 14px 12px; border-radius: 10px; }
.mcp .posp__img img { padding: 6px; }
.mcp .posp__img img.is-foto { padding: 0; object-fit: cover; }
.mcp .posp__n { top: 4px; left: 4px; min-width: 24px; height: 24px; font-size: .78rem; }
.mcp .posp__b { min-width: 0; gap: 4px; padding: 12px; }
.mcp .posp__name { font-size: .92rem; }
.mcp .posp__d { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: .74rem; line-height: 1.3; color: var(--sl-500); }
.mcp .posp__pr { font-size: 1.02rem; font-weight: 600; color: var(--red, #b91c1c); }
.mcp .posp:active:not(.is-off) { transform: scale(.98); }
/* panel del pedido */
.mcp__r { background: #faf8f5; }
.mcp__e { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 300px; padding: 24px 16px; text-align: center; color: var(--ink-2, #475569); font-size: .9rem; }
.mcp__e svg { width: 34px; height: 34px; color: var(--accent, #c8892b); margin-bottom: 6px; }
.mcp__e b { font-size: 1.05rem; font-weight: 600; color: var(--ink, #1d1713); }
.mcp__p { display: flex; flex-direction: column; max-height: calc(100dvh - 140px); }
.mcp__h { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 18px; border-bottom: 1px solid var(--line); background: #fff; }
.mcp__h h3 { margin: 0; font-size: 1.05rem; }
.mcp__h p { margin: 2px 0 0; color: var(--mute); font-size: .82rem; }
.mcp__clr { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid #f3c9c9; border-radius: 10px; background: #fff; color: #c62828; cursor: pointer; }
.mcp__clr svg { width: 18px; height: 18px; }
.mcp__l { flex: 1; min-height: 0; overflow-y: auto; margin: 0; padding: 8px 12px; list-style: none; }
.mcp__i { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 10px; padding: 10px 4px; border-bottom: 1px dashed var(--line); }
.mcp__i:last-child { border-bottom: 0; }
.mcp__i .qty { display: inline-flex; align-items: center; gap: 2px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.mcp__i .qty button { width: 36px; height: 36px; border: 0; background: none; font-size: 1.1rem; font-weight: 700; cursor: pointer; color: var(--ink, #1d1713); }
.mcp__i .qty b { min-width: 20px; text-align: center; }
.mcp__n { min-width: 0; font-weight: 600; font-size: .92rem; overflow-wrap: anywhere; }
.mcp__n small { display: block; font-weight: 400; color: var(--mute); font-size: .74rem; }
.mcp__pr { font-variant-numeric: tabular-nums; white-space: nowrap; }
.mcp__x { display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 8px; background: none; color: var(--mute); cursor: pointer; }
.mcp__x svg { width: 16px; height: 16px; }
.mcp__f { padding: 14px 16px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: #fff; }
.mcp__tot { display: flex; justify-content: space-between; align-items: baseline; margin: 0 0 12px; font-size: 1rem; }
.mcp__tot b { font-size: 1.5rem; font-variant-numeric: tabular-nums; }
.mcp__go { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 56px; border: 0; border-radius: 12px; background: #16a34a; color: #fff; font: 700 1.05rem/1 var(--sans); cursor: pointer; box-shadow: 0 8px 18px -10px #15803d; }
.mcp__go svg { width: 20px; height: 20px; }
.mcp__go:disabled { opacity: .6; cursor: wait; }
@media (hover: hover) { .mcp__go:hover { background: #15803d; } .mcp__x:hover { background: #fde8e8; color: #c62828; } }
/* tablet y celular: el pedido arriba de las bebidas no; va abajo pero fijo con el botón Cobrar a la vista */
@media (max-width: 1100px) {
  .mo--pos .mcp__r { position: sticky; bottom: 0; top: auto; z-index: 5; order: 2; box-shadow: 0 -10px 24px -14px rgba(0, 0, 0, .3); }
  .mo--pos .mcp__e { min-height: 0; padding: 14px; flex-direction: row; gap: 10px; }
  .mo--pos .mcp__e svg { width: 24px; height: 24px; margin: 0; }
  .mo--pos .mcp__e span { display: none; }
  .mcp__p { max-height: 55dvh; }
}
@media (max-width: 760px) {
  .mcp__grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .mcp .posp { min-height: 88px; }
  .mcp .posp__img { width: 60px; height: 60px; margin: 12px 0 12px 10px; }
  .mcp__h { padding: 12px 14px; }
  .mcp__i { gap: 8px; }
  .mcp__i .qty button { width: 34px; height: 34px; }
  .mcp__p { max-height: none; }
  .mcp__l { max-height: 24dvh; }
  .mcp__f { padding-top: 10px; }
  .mcp__tot { margin-bottom: 8px; }
  .mcp__go { min-height: 50px; }
}
@media (min-width: 540px) and (max-width: 760px) { .mcp__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-height: 500px) and (orientation: landscape) { .mo--pos .mcp__r { position: static; } .mcp__p { max-height: none; } .mcp__l { max-height: none; } }

/* ==== COBRADO: animación al cobrar (mozo y caja, 2026-11-18) ==== */
.cobro-ok{position:fixed;inset:0;z-index:9999;display:grid;place-items:center;padding:16px;background:rgba(20,14,10,.55);animation:cobroIn .25s ease both;cursor:pointer}
.cobro-ok.is-out{animation:cobroOut .3s ease both}
.cobro-ok__c{background:#fff;color:#1d1510;border-radius:22px;padding:28px 32px 24px;min-width:min(300px,100%);max-width:420px;text-align:center;box-shadow:0 20px 60px rgba(0,0,0,.35);animation:cobroPop .45s cubic-bezier(.2,1.4,.4,1) both}
.cobro-ok svg{width:96px;height:96px;display:block;margin:0 auto 10px}
.cobro-ok circle{fill:#2e9d5b;stroke:#2e9d5b;stroke-width:2;transform-origin:center;animation:cobroCirc .4s ease-out both}
.cobro-ok path{fill:none;stroke:#fff;stroke-width:4.5;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:40;stroke-dashoffset:40;animation:cobroTick .35s .3s ease-out forwards}
.cobro-ok__t{margin:0;font-size:clamp(26px,6vw,34px);font-weight:800;letter-spacing:.01em;color:#2e9d5b}
.cobro-ok__s{margin:6px 0 0;font-size:17px}
.cobro-ok__v{margin:10px 0 0;padding:8px 12px;border-radius:12px;background:#fff6dc;font-size:17px}
@keyframes cobroIn{from{opacity:0}to{opacity:1}}
@keyframes cobroOut{to{opacity:0}}
@keyframes cobroPop{from{transform:scale(.6);opacity:0}to{transform:none;opacity:1}}
@keyframes cobroCirc{from{transform:scale(0)}to{transform:none}}
@keyframes cobroTick{to{stroke-dashoffset:0}}
@media (prefers-reduced-motion:reduce){.cobro-ok,.cobro-ok__c,.cobro-ok circle{animation:none}.cobro-ok path{animation:none;stroke-dashoffset:0}}
/* animación: la bebida vuela al pedido */
.mcfly { position: fixed; z-index: 9999; pointer-events: none; will-change: transform, opacity; border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 18px 32px -12px rgba(15, 23, 42, .45), 0 0 0 2px rgba(22, 163, 74, .55); }
.mcfly .posp__img { width: 100% !important; height: 100% !important; margin: 0 !important; border-radius: inherit; }
.mcp .posp__n:not([hidden]) { animation: none; }
@keyframes mcTap { 0% { transform: scale(1); } 35% { transform: scale(.95); } 100% { transform: scale(1); } }
.mcp__i.is-bump { animation: mcRow .7s ease-out; }
@keyframes mcRow { 0% { background: rgba(22, 163, 74, .22); transform: scale(1.025); } 100% { background: transparent; transform: scale(1); } }
.mcp__tot b.is-bump { display: inline-block; animation: mcTot .45s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes mcTot { 0% { transform: scale(1); } 40% { transform: scale(1.14); color: #16a34a; } 100% { transform: scale(1); } }
.mcp__r.is-got { animation: mcGot .5s ease-out; }
@keyframes mcGot { 0% { box-shadow: 0 0 0 0 rgba(22, 163, 74, .45); } 100% { box-shadow: 0 0 0 14px rgba(22, 163, 74, 0); } }
@media (prefers-reduced-motion: reduce) { .mcp .posp.is-tap, .mcp__i.is-bump, .mcp__tot b.is-bump, .mcp__r.is-got { animation: none; } }

/* ==== MESA: «LO QUE SUMÓ» EN VERDE (como Retiro en local, 2026-11-19) ==== */
.pfo.pfo--suma { border-color: #bfe6cc; border-left-color: #2fa862; background: #f1faf4; }
.pfo--suma .pfo__h { background: #e6f6ec; }
.pfo__it .moi-sh { margin: 6px -12px 0; }
.pfo__it .pfi--su { background: #f1faf4; }
.pfd__b > .mod__suma { margin: 0; }

/* ==== MESA «COMIENDO» EN AZUL (todo listo, 2026-11-19) ==== */
.fd .fdm.fdm--c-eat { border: 2px solid #2563eb; background: #dbeafe; color: #1d4ed8; }
.fd .fdm.fdm--c-eat.is-on { border-color: #e07a1f; box-shadow: 0 0 0 3px #e07a1f; }
/* Tablet de la cocina de Patricias (solo mesas), estilo Fudo: tarjetas en grilla, la más nueva arriba */
/* 2 columnas: Nuevos (izquierda, rojo) · En preparación (derecha, ámbar); en celular angosto una abajo de la otra */
.kds.kds--todo.kds--tab { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.kds--tab .kcol { display: flex; flex-direction: column; gap: 12px; padding: 10px; border-radius: 18px; border: 0; }
.kds--tab .kcol--kn { background: #fde8e8; }
.kds--tab .kcol--kp { background: #fdf3d6; }
.kds--tab .kcol__h h2 { display: flex; align-items: center; gap: 8px; }
.kds--tab .kcol__h h2::before { content: ""; width: 12px; height: 12px; border-radius: 50%; flex: none; }
.kds--tab .kcol--kn .kcol__h h2 { color: #a81c1c; }
.kds--tab .kcol--kn .kcol__h h2::before { background: #dc2626; }
.kds--tab .kcol--kp .kcol__h h2 { color: #7a5200; }
.kds--tab .kcol--kp .kcol__h h2::before { background: #e0a21f; }
.kds--tab .kcol--kp .kc[class*="kc--ch-"] { border: 3px solid #e0a21f; }
@media (max-width: 600px) { .kds.kds--todo.kds--tab { grid-template-columns: 1fr; } }
.kds--tab .kc { margin: 0; border-radius: 14px; }
.kds--tab .kc.is-ini { box-shadow: inset 6px 0 0 #e0a21f; }
.kds--tab .kc .btn--big { width: 100%; min-height: 56px; font-size: 1.15rem; }
/* Patricias: la cocina terminó la mesa en la tablet (falta que la caja toque «Listo para entregar») */
.fd .fdm.fdm--kok { border: 2px solid #1d7a3a; background: #2f9e4f; color: #fff; }
.fd .fdm.fdm--kok.is-on { border-color: #e07a1f; box-shadow: 0 0 0 3px #e07a1f; }
.fd__leg--c li.fd__lg--c-eat::before { border: 2px solid #2563eb !important; background: #bfdbfe !important; }

/* ==== MESA: LO QUE SUMÓ EN LA MISMA TARJETA (2026-11-19) ==== */
.pfo.pfo--next { border-bottom: 0; border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.pfo.pfo--cont { margin-top: -10px; border-top: 0; border-top-left-radius: 0; border-top-right-radius: 0; }
.pfo--cont .pfo__h:not(.pfo__sh) { background: #f1faf4; border-bottom: 0; padding-top: 6px; padding-bottom: 2px; }
.pfo--cont .pfo__it .pfi { background: #f1faf4; margin: 0 -12px; padding-left: 12px; padding-right: 12px; }
.pfo--cont .pfo__it { padding-top: 0; }
.pfo--cont .pfo__acts { padding-top: 8px; }
.pfo__h.pfo__sh { gap: 6px; padding: 8px 12px; border: 0; background: #2fa862; color: #fff; font: 800 .74rem/1.2 var(--sans); letter-spacing: .08em; text-transform: uppercase; }
.pfo__sh svg { width: 15px; height: 15px; flex: none; }
.pfo__sh em, .moi-sh b { margin-left: auto; font-style: normal; letter-spacing: .02em; }

/* ==== CIERRE DE CAJA (2026-11-19, solo Nostra Patricias) — abrir, ingresos/retiros y cerrar contando a ciegas ==== */
.cc { display: grid; gap: 14px; max-width: 720px; margin: 0 auto; min-width: 0; }
.cc-card { min-width: 0; padding: 20px; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); box-shadow: var(--shadow); }
.cc-h { margin: 0; font-family: var(--display); font-size: 1.25rem; line-height: 1.15; color: var(--ink); }
.cc-p { margin: 4px 0 0; color: var(--soft); font-size: .92rem; line-height: 1.4; }
.cc-k { display: flex; justify-content: space-between; gap: 8px; margin: 0 0 10px; font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--mute); }
.cc-k span { text-transform: none; letter-spacing: 0; font-weight: 600; }
.cc-ico { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 10px; border-radius: 50%; background: var(--tint); color: var(--ink-2); }
.cc-ico svg { width: 28px; height: 28px; }
.cc-start { text-align: center; }
.cc-lbl { display: block; margin: 18px 0 8px; font-weight: 700; color: var(--ink); text-align: left; }
.cc-in { display: flex; align-items: center; gap: 6px; height: 60px; padding: 0 16px; border: 2px solid var(--line); border-radius: 14px; background: var(--field); }
.cc-in:focus-within { border-color: var(--ink); background: #fff; }
.cc-in span { font-size: 1.4rem; font-weight: 700; color: var(--mute); }
.cc-in input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; font-size: 1.7rem; font-weight: 800; color: var(--ink); outline: none; }
.cc-in--sm { height: 46px; padding: 0 10px; border-width: 1px; }
.cc-in--sm span { font-size: 1rem; }
.cc-in--sm input { font-size: 1.05rem; }
.cc-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.cc-chip { min-height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font: inherit; font-weight: 700; color: var(--ink-2); cursor: pointer; }
.cc-chip.is-on { border-color: var(--ink); background: var(--ink); color: #fff; }
.cc-big { width: 100%; min-height: 56px; margin-top: 18px; font-size: 1.05rem; border-radius: 14px; }
.cc-big svg { width: 20px; height: 20px; }
.cc-big--close { margin-top: 0; border-color: var(--red); background: var(--red); }
/* caja abierta */
.cc-now__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.cc-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--ok-bg); color: var(--ok); font-weight: 800; font-size: .88rem; }
.cc-pill i { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(29, 122, 62, .18); }
.cc-now__d { margin: 0; color: var(--soft); font-size: .92rem; }
.cc-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr)); gap: 10px; margin-top: 14px; }
.cc-kpis > div { padding: 12px 14px; border-radius: 12px; background: var(--card-2); min-width: 0; }
.cc-kpis small { display: block; font-size: .78rem; color: var(--mute); }
.cc-kpis b { display: block; margin-top: 2px; font-size: 1.3rem; color: var(--ink); overflow-wrap: anywhere; }
.cc-kpis .cc-kpi--own { background: var(--blue-bg); }
.cc-kpis .cc-kpi--own b { color: var(--blue-ink); }
.cc-mov-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.cc-mov-btns .btn { min-height: 50px; white-space: normal; border-radius: 12px; }
.cc-mov-btns svg { width: 18px; height: 18px; flex: none; }
.cc-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.cc-list > li { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 0; border-top: 1px solid var(--line-2); }
.cc-list > li:first-child { border-top: 0; }
.cc-list > li > span:nth-child(2) { flex: 1; min-width: 0; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.cc-list small { display: block; font-weight: 500; font-size: .8rem; color: var(--mute); }
.cc-list b { white-space: nowrap; font-size: 1.02rem; }
.cc-mi { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 10px; background: var(--tint); color: var(--ink-2); }
.cc-mi svg { width: 18px; height: 18px; }
.cc-mv--in .cc-mi { background: var(--ok-bg); color: var(--ok); }
.cc-mv--in b { color: var(--ok); }
.cc-mv--out .cc-mi { background: var(--red-bg); color: var(--red); }
.cc-mv--out b { color: var(--red); }
.cc-del { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border: 0; border-radius: 10px; background: none; color: var(--mute); cursor: pointer; }
.cc-del svg { width: 18px; height: 18px; }
.cc-warn { display: flex; align-items: flex-start; gap: 10px; margin: 0; padding: 12px 14px; border-radius: 12px; background: var(--warn-bg); color: var(--warn); font-weight: 600; font-size: .92rem; }
.cc-warn svg { width: 20px; height: 20px; flex: none; }
/* contar */
.cc-sh { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
.cc-n { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 800; }
.cc-seg { display: flex; width: 100%; }
.cc-seg button { flex: 1; min-height: 44px; }
.cc-bills { display: grid; gap: 8px; margin-top: 14px; }
.cc-b { display: grid; grid-template-columns: minmax(70px, 1fr) auto minmax(80px, 1fr); align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: var(--card-2); }
.cc-b__v { font-weight: 800; color: var(--ink); }
.cc-b__s { text-align: right; color: var(--soft); white-space: nowrap; }
.cc-st { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 12px; background: #fff; overflow: hidden; }
.cc-st button { width: 46px; height: 46px; border: 0; background: none; font-size: 1.4rem; font-weight: 700; color: var(--ink); cursor: pointer; touch-action: manipulation; }
.cc-st button:active { background: var(--tint); }
.cc-st input { width: 56px; height: 46px; border: 0; border-left: 1px solid var(--line-2); border-right: 1px solid var(--line-2); text-align: center; font-size: 1.1rem; font-weight: 800; color: var(--ink); background: none; outline: none; }
.cc-b--x { grid-template-columns: minmax(70px, 1fr) minmax(0, 190px); }
.cc-tot { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-top: 14px; padding: 14px 16px; border-radius: 14px; background: var(--ink); color: #fff; }
.cc-tot span { font-weight: 700; }
.cc-tot b { font-size: 1.8rem; font-family: var(--display); }
.cc-checks > li { padding: 0; }
.cc-ck { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 60px; padding: 8px 4px; border: 0; background: none; font: inherit; text-align: left; cursor: pointer; }
.cc-ck i { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border: 2px solid var(--line); border-radius: 8px; color: transparent; }
.cc-ck i svg { width: 18px; height: 18px; }
.cc-ck.is-on i { border-color: var(--ok); background: var(--ok); color: #fff; }
.cc-ck > span { flex: 1; min-width: 0; font-weight: 700; color: var(--ink); }
.cc-ck.is-on small { color: var(--ok); }
.cc-ta { width: 100%; min-height: 64px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--field); font: inherit; font-size: 16px; resize: vertical; }
.cc-foot { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: center; }
.cc-foot .cc-big { margin-top: 0; }
.cc-foot > .btn--line { min-height: 56px; border-radius: 14px; }
/* resultado */
.cc-res { text-align: center; border-width: 2px; }
.cc-res--ok { border-color: var(--ok); background: linear-gradient(var(--ok-bg), transparent 140px), var(--card); }
.cc-res--ok .cc-ico { background: var(--ok); color: #fff; }
.cc-res--bad { border-color: var(--red); background: linear-gradient(var(--red-bg), transparent 140px), var(--card); }
.cc-res--bad .cc-ico { background: var(--red); color: #fff; }
.cc-res--over { border-color: #d48a1a; background: linear-gradient(var(--warn-bg), transparent 140px), var(--card); }
.cc-res--over .cc-ico { background: #d48a1a; color: #fff; }
.cc-res__t { margin: 0; font-family: var(--display); font-size: clamp(1.6rem, 6vw, 2.2rem); color: var(--ink); }
.cc-vs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 0 6px; }
.cc-vs > div { padding: 12px; border-radius: 12px; background: #fff; border: 1px solid var(--line); min-width: 0; }
.cc-vs small { display: block; color: var(--mute); font-size: .8rem; }
.cc-vs b { font-size: 1.35rem; overflow-wrap: anywhere; }
.cc-calc { margin: 10px 0 0; padding: 0; list-style: none; text-align: left; }
.cc-calc li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 2px; color: var(--soft); border-top: 1px dashed var(--line); }
.cc-calc li:first-child { border-top: 0; }
.cc-calc li.is-t { color: var(--ink); font-weight: 800; border-top: 1px solid var(--ink); }
.cc-nota { display: flex; gap: 8px; margin: 12px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--card-2); color: var(--ink-2); }
.cc-nota svg { width: 18px; height: 18px; flex: none; }
/* historial (dueño) */
.cc-hist { display: grid; gap: 8px; }
.cc-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 56px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font: inherit; text-align: left; cursor: pointer; }
.cc-row__t { min-width: 0; }
.cc-row__t b { display: block; color: var(--ink); }
.cc-row__t small { display: block; color: var(--mute); font-size: .8rem; overflow-wrap: anywhere; }
.cc-dif { flex: none; padding: 5px 10px; border-radius: 999px; font-weight: 800; font-size: .84rem; white-space: nowrap; }
.cc-dif.is-ok { background: var(--ok-bg); color: var(--ok); }
.cc-dif.is-bad { background: var(--red-bg); color: var(--red); }
.cc-dif.is-over { background: var(--warn-bg); color: var(--warn); }
/* contar: guía, billetes marcados, sí/no por medio y barra fija abajo (2026-11-20) */
.cc-guide { padding: 14px 16px; border-radius: var(--r); background: var(--blue-bg); color: var(--blue-ink); }
.cc-guide > b { display: block; margin-bottom: 8px; }
.cc-guide ol { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 0; padding: 0; list-style: none; font-weight: 600; }
.cc-guide li { display: flex; align-items: center; gap: 8px; }
.cc-guide li span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--blue-ink); color: #fff; font-size: .8rem; font-weight: 800; }
.cc-seg button { min-width: 0; white-space: normal; line-height: 1.15; padding: 6px 8px; }
.cc-tip { margin: 14px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--warn-bg); color: var(--ink-2); font-size: .92rem; line-height: 1.4; }
.cc-b { border: 2px solid transparent; transition: border-color .15s, background .15s; }
.cc-b.is-on { border-color: var(--ok); background: var(--ok-bg); }
.cc-b__v { display: flex; flex-direction: column; font-size: 1.15rem; line-height: 1.15; }
.cc-b__v i { font-style: normal; font-weight: 600; font-size: .74rem; color: var(--mute); }
.cc-b--x .cc-b__v { font-size: .95rem; }
.cc-b.is-on .cc-b__s { color: var(--ok); font-weight: 800; }
.cc-st button[data-cc="b+"] { background: var(--ink); color: #fff; }
.cc-st button[data-cc="b+"]:active { background: var(--ink-2); }
.cc-mds { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.cc-md { padding: 12px; border: 2px solid var(--line); border-radius: 14px; background: var(--card-2); transition: border-color .15s, background .15s; }
.cc-md.is-ok { border-color: var(--ok); background: var(--ok-bg); }
.cc-md.is-no { border-color: var(--red); background: var(--red-bg); }
.cc-md.is-falta { border-color: #d48a1a; box-shadow: 0 0 0 4px rgba(212, 138, 26, .25); animation: ccShake .4s; }
@keyframes ccShake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.cc-md__top { display: flex; align-items: center; gap: 12px; }
.cc-md__t { flex: 1; min-width: 0; }
.cc-md__t b { display: block; color: var(--ink); }
.cc-md__t small { display: block; color: var(--soft); font-size: .82rem; line-height: 1.3; }
.cc-md__m { font-size: 1.25rem; white-space: nowrap; color: var(--ink); }
.cc-md__q { margin: 10px 0 6px; font-weight: 700; color: var(--ink); font-size: .9rem; }
.cc-md__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cc-yn { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; padding: 0 10px; border: 2px solid var(--line); border-radius: 12px; background: #fff; font: inherit; font-weight: 800; color: var(--ink-2); cursor: pointer; touch-action: manipulation; }
.cc-yn svg { width: 18px; height: 18px; }
.cc-yn--si.is-on { border-color: var(--ok); background: var(--ok); color: #fff; }
.cc-yn--no.is-on { border-color: var(--red); background: var(--red); color: #fff; }
.cc-lbl--0 { margin-top: 0; }
.cc-ta.is-req { border: 2px solid var(--red); background: #fff; }
.cc-foot--fix { position: sticky; bottom: 0; z-index: 5; grid-template-columns: 1fr auto minmax(0, 1.3fr); margin: 0 -6px; padding: 10px 6px calc(10px + env(safe-area-inset-bottom)); background: var(--bg, #f6f2ec); border-top: 1px solid var(--line); }
.cc-foot__sum { min-width: 0; }
.cc-foot__sum small { display: block; font-size: .78rem; color: var(--mute); font-weight: 700; }
.cc-foot__sum b { display: block; font-family: var(--display); font-size: 1.5rem; color: var(--ink); white-space: nowrap; }
.cc-conf { margin: 0; padding: 0; list-style: none; }
.cc-conf li { display: flex; justify-content: space-between; gap: 10px; padding: 10px 2px; border-top: 1px solid var(--line-2); }
.cc-conf li:first-child { border-top: 0; font-size: 1.1rem; }
.cc-conf b.is-ok { color: var(--ok); }
.cc-conf b.is-no { color: var(--red); }
.cc-conf__w { margin: 10px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--warn-bg); color: var(--warn); font-weight: 600; }
.cc-conf__n { margin: 10px 0 0; color: var(--soft); }
.cc--m { max-width: none; }
.cc--m .cc-card { box-shadow: none; }
@media (max-width: 480px) {
  .cc-card { padding: 16px 14px; }
  .cc-b { grid-template-columns: 1fr auto; }
  .cc-b__s { grid-column: 1 / -1; margin-top: -4px; text-align: left; font-size: .85rem; }
  .cc-b--x { grid-template-columns: 1fr; }
  .cc-mov-btns { grid-template-columns: 1fr; }
  .cc-tot b { font-size: 1.5rem; }
  .cc-foot--fix { grid-template-columns: auto 1fr; }
  .cc-foot--fix .cc-foot__sum { grid-column: 1 / -1; display: flex; align-items: baseline; justify-content: space-between; }
  .cc-foot__sum b { font-size: 1.3rem; }
  .cc-md__btns { grid-template-columns: 1fr; }
}
@media (max-width: 360px) {
  .cc-st button { width: 40px; }
  .cc-st input { width: 46px; }
  .cc-foot { grid-template-columns: 1fr; }
  .cc-foot.cc-foot--fix { grid-template-columns: auto 1fr; }
  .cc-foot--fix .btn--line { padding: 0 12px; }
  .cc-vs { grid-template-columns: 1fr; }
}

/* ==== PRÁCTICA: BORRAR TODO (cajas de Nostra Patricias) ==== */
.nav__practica { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; margin: 2px 0 6px; padding: 8px 14px; border: 1.5px dashed rgba(255, 120, 110, .7); border-radius: 12px; background: rgba(220, 60, 50, .12); color: #ffb3ab; font-weight: 700; font-size: .92rem; line-height: 1.2; text-align: left; }
.nav__practica svg { width: 20px; height: 20px; flex-shrink: 0; }
.nav__practica[hidden] { display: none !important; }
@media (hover: hover) and (pointer: fine) { .nav__practica:hover { background: rgba(220, 60, 50, .25); color: #fff; } }
.cc-warn--lock { background: var(--red-bg); color: var(--red); }

/* ==== MESA: IMPRIMIR DE NUEVO LA COMANDA (2026-11-19) ==== */
.pfd__btns--2 .pfd__ic--re { display: flex; align-items: center; gap: 6px; width: auto; flex: 1 1 0; min-width: 0; padding: 0 10px; font-weight: 700; font-size: .7rem; line-height: 1.15; text-align: left; letter-spacing: .02em; }
.pfd__btns--2 .pfd__ic--re svg { flex: none; width: 19px; height: 19px; }
.pfd__btns--2 .pfd__row .pfd__go--cmd.is-all { flex: 1 1 0; min-width: 0; }
@media (max-width: 400px) { .pfd__btns--2 .pfd__ic--re { padding: 0 6px; font-size: .64rem; gap: 4px; } }

/* ==== VOLVER A IMPRIMIR LA COMANDA (2026-11-19) — mesa (caja) y retiro/mostrador ==== */
/* mesa: siempre 2 filas (Todo enviado | Volver a imprimir · Cobrar | liberar), en cualquier pantalla */
.pfd__btns--2 { flex-direction: column !important; }
.pfd__btns--2 .pfd__row { flex: none !important; width: 100%; }
.pfd__btns--2 .pfd__go svg { display: block !important; }
.pfd__btns--2 .pfd__row .pfd__go--cmd, .pfd__btns--2 .pfd__ic--re { flex: 1 1 0; min-width: 0; }
.pfd__btns--2 .pfd__ic--re { display: flex; align-items: center; justify-content: center; gap: 8px; width: auto; height: auto; min-height: 46px; padding: 6px 10px; border: 1.5px solid #c8913b; background: #fff; color: var(--ink); font: 800 .74rem/1.15 var(--sans); letter-spacing: .05em; text-transform: uppercase; text-align: center; text-wrap: balance; }
.pfd__btns--2 .pfd__ic--re svg { flex: none; width: 18px; height: 18px; color: #c8913b; }
.pfd__btns--2 .pfd__ic--re:disabled { border-color: var(--sl-200); }
.pfd__btns--2 .pfd__ic--re:disabled svg { color: var(--sl-500); }
@media (hover: hover) { .pfd__btns--2 .pfd__ic--re:not(:disabled):hover { background: #fbf3e8; border-color: #b07a28; color: var(--ink); } }
.pfd__btns--2 .pfd__go { padding: 0 10px; font-size: .78rem; letter-spacing: .06em; }
.pfd__btns--2 .pfd__row > .pfd__ic:not(.pfd__ic--re) { width: 50px; }
@media (max-width: 400px) {
  .pfd__btns--2 .pfd__ic--re { gap: 5px; padding: 4px 6px; font-size: .66rem; letter-spacing: .02em; }
  .pfd__btns--2 .pfd__ic--re svg { width: 16px; height: 16px; }
  .pfd__btns--2 .pfd__go { gap: 6px; padding: 0 6px; font-size: .7rem; letter-spacing: .03em; }
  .pfd__btns--2 .pfd__row > .pfd__ic:not(.pfd__ic--re) { width: 46px; }
}
@media (max-height: 500px) and (max-width: 950px) {
  .pfd__btns--2 .pfd__ic--re, .pfd__btns--2 .pfd__go { min-height: 40px; height: auto; }
  .pfd__btns--2 .pfd__row > .pfd__ic:not(.pfd__ic--re) { height: 40px; }
}
/* retiro y mostrador: botón secundario, más bajo que el principal */
.mod__go--re { min-height: 44px; font-size: .8rem; letter-spacing: .06em; background: #fff; text-wrap: balance; text-align: center; }
.mod__go--re svg { flex: none; color: #c8913b; }
@media (max-width: 400px) { .mod__go--re { font-size: .72rem; letter-spacing: .03em; padding: 0 10px; } }

/* ==== RETIRO EN LOCAL: NUEVO PEDIDO ESTILO MESA FUDO (2026-11-19) ==== */
.pfd__f:has(.pfd__l--tel) { grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); }
@media (max-width: 380px) { .pfd__f:has(.pfd__l--tel) { grid-template-columns: 1fr; } }

/* ==== RETIRO: PEDIDO SIN ENVIAR (queda al cerrar la ventana, 2026-11-19) ==== */
.rd__row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; width: 100%; margin: 0 0 12px; padding: 12px 14px; border: 1.5px dashed #e0a458; border-radius: 12px; background: #fff7ec; color: #8a4b08; font: inherit; text-align: left; cursor: pointer; }
.rd__row svg { width: 18px; height: 18px; flex: none; }
.rd__row b { font-weight: 700; }
.rd__row span { margin-left: auto; font-weight: 600; }
.rd__row.is-on { border-style: solid; background: #fdecc8; }
.fd__det .rd { height: 100%; }
@media (max-width: 480px) { .rd__row span { margin-left: 0; width: 100%; } }

/* ==== RETIRO: ETIQUETA «PEDIDOS YA» (2026-11-19) ==== */
.mor__or--py { border-color: #1d1713; background: #1d1713; color: #fff; }
.mor__or--py svg { color: #fbbf24; }

/* ==== TABLET DE LA COCINA: COMANDA ESTILO FUDO (2026-11-20) ==== */
.kds--tab .kcol { gap: 10px; }
.kds--tab .kcol > .kt + .kt { margin-top: 0; }
.kt { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 0 0 12px; border: 2px solid #e5e1dc; border-radius: 16px; background: #fff; box-shadow: 0 2px 8px rgba(21, 17, 14, .06); overflow: hidden; }
.kt > *:not(.kt__h) { margin-left: 14px; margin-right: 14px; }
.kt__h { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 10px; padding: 10px 14px; background: #c81e1e; color: #fff; }
/* el color lo da el ESTADO (igual que las columnas): rojo = nuevo, ámbar = en preparación; de dónde viene lo dice el texto (MESA n / RETIRO) */
.kt { border-color: #f3b4b4; }
.kt.is-ini { border-color: #e0a21f; }
.kt.is-ini .kt__h { background: #a85d00; }
.kt__where { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.kt__where svg { width: 22px; height: 22px; flex: none; }
.kt__where b { font-family: var(--display); font-weight: 800; font-stretch: 75%; font-variation-settings: "wdth" 75; font-size: 1.7rem; line-height: 1; letter-spacing: .02em; text-transform: uppercase; overflow-wrap: break-word; }
.kt__time { display: inline-flex; align-items: center; gap: 5px; flex: none; padding: 4px 11px; border-radius: 999px; background: rgba(255, 255, 255, .2); font-weight: 800; font-size: 1rem; white-space: nowrap; }
.kt__time svg { width: 16px; height: 16px; }
.kt.is-warn .kt__time { background: #fde047; color: #3d2a00; }
.kt.is-late .kt__time { background: #fff; color: #c81e1e; animation: kcNew 1.2s ease-in-out infinite; }
.kt.is-warn { border-color: #fbbf24; }
.kt.is-late { border-color: #dc2626; }
.kt__sub { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; color: #5b524b; font-weight: 700; font-size: .95rem; }
.kt__sub span:last-child { color: #8a8079; font-weight: 600; }
.kt__tag { align-self: flex-start; padding: 3px 12px; border-radius: 999px; background: #dc2626; color: #fff; font-weight: 800; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }
.kt__tag--agregado { background: #7c3aed; }
.kt__tag--cambio { background: #ea580c; }
.kt.is-new { box-shadow: 0 0 0 4px rgba(220, 38, 38, .25); }
.kt__items { margin-top: 0; margin-bottom: 0; padding: 0; list-style: none; }
.kt__items li { display: flex; align-items: flex-start; gap: 12px; padding: 7px 0; border-bottom: 1px dashed #e5e1dc; font-weight: 800; font-size: 1.3rem; line-height: 1.2; overflow-wrap: anywhere; }
.kt__items li:last-child { border-bottom: 0; }
.kt__items b { display: inline-flex; align-items: center; justify-content: center; flex: none; min-width: 38px; height: 36px; padding: 0 6px; border-radius: 9px; background: #15110e; color: #fff; font-size: 1.2rem; }
.kt__items span { min-width: 0; padding-top: 4px; }
.kt__items .kt__ex { padding: 3px 0 3px 18px; border-bottom: 0; font-weight: 700; font-size: 1.05rem; color: #5b524b; }
.kt__items .kt__ex b { min-width: 34px; height: 26px; border-radius: 7px; background: #f1ede8; color: #15110e; font-size: .95rem; }
.kt__items .kt__ex span { padding-top: 2px; }
.kt__acl { padding: 8px 12px; border-radius: 10px; background: #fff4d6; color: #5c3d00; font-weight: 700; font-size: 1.05rem; overflow-wrap: anywhere; }
.kt__acl b { display: block; color: #b45309; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; }
.kt__btn { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 60px; padding: 0 16px; border: 0; border-radius: 12px; background: #a85d00; color: #fff; font: inherit; font-weight: 800; font-size: 1.2rem; cursor: pointer; touch-action: manipulation; }
.kt__btn svg { width: 22px; height: 22px; }
.kt__btn--ok { background: #1d7a3e; }
.kt__btn:disabled { opacity: .55; }
.kt.is-ini { border-color: #e0a21f; }
.kt.is-ini.is-warn { border-color: #fbbf24; }
.kt.is-ini.is-late { border-color: #dc2626; }
/* herramientas de la tablet (pantalla completa y menú): solo en horizontal */
.kt-tools { display: none; }
.kt-tool { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border: 2px solid #e5e1dc; border-radius: 12px; background: #fff; color: #15110e; font: inherit; font-weight: 700; font-size: .95rem; cursor: pointer; }
.kt-tool svg { width: 20px; height: 20px; }
.kt-tool--menu { padding: 0 11px; }
/* tablet en horizontal: sin barra de arriba ni menú, las comandas ocupan todo el ancho */
@media (orientation: landscape) {
  body.kt-tab:not(.kt-nav) .mtop, body.kt-tab:not(.kt-nav) .side, body.kt-tab:not(.kt-nav) .scrim { display: none !important; }
  body.kt-tab:not(.kt-nav) .main { margin-left: 0; padding: max(10px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) max(14px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left)); }
  body.kt-tab .view[data-view="cocina"] { max-width: none; }
  body.kt-tab .kds__head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
  body.kt-tab .kds__head .h1 { font-size: 1.6rem; }
  body.kt-tab .kt-tools { display: inline-flex; gap: 8px; order: 3; }
  body.kt-tab .kds__clock { margin-left: auto; }
  body.kt-tab .kseg { margin-bottom: 10px; }
  body.kt-tab .kds--tab { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  body.kt-tab .kds--tab .kcol--kn, body.kt-tab .kds--tab .kcol--kp { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); align-content: start; align-items: start; }
  body.kt-tab .kds--tab .kcol__h, body.kt-tab .kds--tab .kcol__empty { grid-column: 1 / -1; }
  body.kt-tab .kt__where b { font-size: 1.5rem; }
  body.kt-tab .kt__items li { font-size: 1.2rem; }
}
@media (orientation: landscape) and (max-height: 500px) {
  body.kt-tab .kds__head .h1 { font-size: 1.3rem; }
  body.kt-tab .kt-tool span { display: none; }
}
@media (max-width: 600px) { .kt__where b { font-size: 1.4rem; } .kt__items li { font-size: 1.15rem; } }

/* ==== TABLET DE LA COCINA: ENTREGADOS (2026-11-20) — abajo de Nuevos / En preparación, para avisarle al mozo ==== */
.kds--tab .kcol--kd { grid-column: 1 / -1; background: #e3f3e8; }
.kds--tab .kcol--kd .kcol__h h2 { color: #14532d; }
.kds--tab .kcol--kd .kcol__h h2::before { background: #16a34a; }
.ktd { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 10px; }
.ktd__c { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 0 0 10px; border: 2px solid #16a34a; border-radius: 14px; background: #fff; overflow: hidden; }
.ktd__c > *:not(.ktd__h) { margin: 0 12px; }
.ktd__h { display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: #1f5fae; color: #fff; }
.ktd__h { background: #1d7a3e; }
.ktd__h svg { width: 20px; height: 20px; flex: none; }
.ktd__h b { min-width: 0; font-family: var(--display); font-weight: 800; font-stretch: 75%; font-variation-settings: "wdth" 75; font-size: 1.6rem; line-height: 1; letter-spacing: .02em; text-transform: uppercase; overflow-wrap: anywhere; }
.ktd__de { color: #15110e; font-weight: 800; font-size: 1.05rem; overflow-wrap: anywhere; }
.ktd__it { color: #5b524b; font-weight: 600; font-size: .92rem; line-height: 1.3; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ktd__f { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 4px 8px; margin-top: auto !important; color: #8a8079; font-weight: 700; font-size: .85rem; }
.ktd__f em { padding: 2px 10px; border-radius: 999px; background: #16a34a; color: #fff; font-style: normal; font-weight: 800; }
.ktd__c.is-ya { border-color: #d6d0c9; opacity: .7; }
.ktd__c.is-ya .ktd__h { background: #8a8079; }
.ktd__c.is-ya .ktd__f em { background: #e5e1dc; color: #5b524b; }
@media (orientation: landscape) and (max-height: 500px) { .ktd { grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr)); } .ktd__h b { font-size: 1.35rem; } }

/* ==== COBRAR: VENTANA ESTILO FUDO (2026-11-20) — 1 · medio a la izquierda, 2 · qué hacer a la derecha (clases .cbr-) ==== */
.modal__box:has(.cbr) { width: min(100%, 880px); }
.modal__box:has(.cbr) .modal__body { padding-top: 2px; }
.modal__box:has(.cbr) .modal__foot .btn { min-height: 52px; border-radius: 14px; }
.modal__box:has(.cbr) .modal__foot .btn[type="submit"] { padding: 0 24px; background: linear-gradient(160deg, #16a34a, #15803d); border-color: #15803d; color: #fff; font-size: 1rem; box-shadow: 0 10px 22px -12px #15803d; }
.modal__box:has(.cbr) .modal__foot .btn[type="submit"]::before { content: "✓"; margin-right: 8px; font-weight: 800; }
.cbr-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-radius: 16px; background: #1f1a17; color: #fff; }
.cbr-top small { font: 800 .72rem/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .65); }
.cbr-top b { font: 800 clamp(1.7rem, 4vw, 2.3rem)/1 var(--display); font-variant-numeric: tabular-nums; white-space: nowrap; }
.cbr-grid { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 18px; margin-top: 16px; align-items: start; }
.cbr-k { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font: 800 .74rem/1.2 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.cbr-k span { display: grid; place-items: center; flex: none; width: 22px; height: 22px; border-radius: 50%; background: #c08a3e; color: #fff; font-size: .74rem; letter-spacing: 0; }
.cbr-modos { display: grid; gap: 8px; }
.cbr-m { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 62px; padding: 10px 40px 10px 10px; border: 2px solid var(--line); border-radius: 14px; background: #fff; color: var(--ink-2); text-align: left; cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s; }
.cbr-m i { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 11px; background: #f5efe7; color: var(--soft); }
.cbr-m i svg { width: 21px; height: 21px; }
.cbr-m span { display: grid; gap: 3px; min-width: 0; }
.cbr-m b { font: 800 .98rem/1.15 var(--sans); color: var(--ink); }
.cbr-m small { font: 600 .76rem/1.2 var(--sans); color: var(--mute); }
.cbr-m::after { content: ""; position: absolute; right: 14px; top: 50%; width: 18px; height: 18px; margin-top: -9px; border: 2px solid var(--line); border-radius: 50%; background: #fff; box-sizing: border-box; }
.cbr-m--div { border-style: dashed; }
@media (hover: hover) { .cbr-m:hover { border-color: #d8c3a8; } }
.cbr-m.is-on { border-color: #c08a3e; border-style: solid; background: #fbf1e3; box-shadow: 0 0 0 3px rgba(192, 138, 62, .16); }
.cbr-m.is-on i { background: #c08a3e; color: #fff; }
.cbr-m.is-on::after { border-color: #c08a3e; background: #c08a3e; box-shadow: inset 0 0 0 3px #fff; }
.cbr-main { display: grid; gap: 12px; min-width: 0; }
.cbr-main > *, .cbr-box > * { min-width: 0; }
.cbr-box { display: grid; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.cbr-box--ef { border-color: #b7e2c6; background: #f4fbf6; }
.cbr-box--tr { border-color: #c4d5f5; background: #f5f8ff; }
.cbr-box .cbr-k { margin-bottom: 0; }
.cbr-sub { display: flex; align-items: center; gap: 8px; margin: 0; font-size: .95rem; color: var(--ink-2); }
.cbr-sub svg { width: 18px; height: 18px; flex: none; color: var(--soft); }
.cbr-sub b { color: var(--ink); font-variant-numeric: tabular-nums; }
.cbr-in { display: flex; align-items: center; gap: 8px; min-height: 64px; padding: 0 16px; border: 2px solid var(--line); border-radius: 14px; background: #fff; cursor: text; }
.cbr-in:focus-within { border-color: #15803d; box-shadow: 0 0 0 3px rgba(21, 128, 61, .14); }
.cbr-in span { font: 800 1.3rem/1 var(--sans); color: var(--soft); }
.cbr-in input { flex: 1; width: 0; min-width: 0; border: 0; background: transparent; font: 800 1.9rem/1 var(--sans); text-align: right; color: var(--ink); font-variant-numeric: tabular-nums; }
.cbr-in input::placeholder { color: #cfc6bb; }
.cbr-in input:focus { outline: none; }
.cbr-in--s { flex: 1; min-height: 52px; }
.cbr-in--s input { font-size: 1.35rem; }
.cbr-bills { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.cbr-bill { min-height: 46px; padding: 0 12px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); font: 800 .95rem/1 var(--sans); font-variant-numeric: tabular-nums; cursor: pointer; }
.cbr-bill--j { border-color: #15803d; color: #15803d; }
@media (hover: hover) { .cbr-bill:hover { border-color: var(--ink-2); } }
.cbr-bill:active { transform: scale(.97); }
.cbr-bill.is-on { border-color: #15803d; background: #15803d; color: #fff; }
.cbr-vu { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; padding: 12px 16px; border: 1.5px dashed #c9d9cd; border-radius: 14px; background: #fff; color: var(--mute); font-size: .9rem; line-height: 1.35; }
.cbr-vu small { font: 800 .78rem/1.2 var(--sans); letter-spacing: .1em; text-transform: uppercase; }
.cbr-vu b { font: 800 1.9rem/1 var(--display); font-variant-numeric: tabular-nums; white-space: nowrap; }
.cbr-vu.is-ok { border: 0; background: #15803d; color: #fff; }
.cbr-vu.is-ok small { color: rgba(255, 255, 255, .8); }
.cbr-vu.is-jus { border: 0; background: #dcf3e3; color: #15803d; }
.cbr-vu.is-jus b { font-size: 1.4rem; }
.cbr-vu.is-bad { border: 0; background: #fdecec; color: #c81e1e; }
.cbr-amt { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 12px 16px; border-radius: 12px; background: #f5efe7; }
.cbr-box--tr .cbr-amt { background: #e8effd; }
.cbr-amt small { font: 700 .82rem/1.2 var(--sans); color: var(--soft); }
.cbr-amt b { font: 800 1.6rem/1 var(--display); font-variant-numeric: tabular-nums; white-space: nowrap; }
.cbr-alias { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border: 1px solid #c4d5f5; border-radius: 14px; background: #fff; }
.cbr-alias div { display: grid; gap: 3px; min-width: 0; }
.cbr-alias small { font: 800 .7rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--soft); }
.cbr-alias b { font: 800 1.45rem/1.15 var(--sans); color: #1d4ed8; overflow-wrap: anywhere; }
.cbr-alias em { font: 600 .84rem/1.3 var(--sans); font-style: normal; color: var(--ink-2); overflow-wrap: anywhere; }
.cbr-copy { display: inline-flex; align-items: center; gap: 6px; flex: none; min-height: 46px; padding: 0 16px; border: 0; border-radius: 12px; background: #1d4ed8; color: #fff; font: 800 .9rem/1 var(--sans); cursor: pointer; }
.cbr-copy svg { width: 17px; height: 17px; }
.cbr-tip { display: flex; align-items: flex-start; gap: 8px; margin: 0; color: var(--soft); font-size: .88rem; line-height: 1.4; }
.cbr-tip svg { width: 17px; height: 17px; flex: none; margin-top: 1px; }
.cbr-tip--warn { padding: 10px 12px; border-radius: 10px; background: #fff7e6; color: #92560b; }
.cbr-steps { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; counter-reset: cbr; }
.cbr-steps li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; font-size: .95rem; color: var(--ink-2); counter-increment: cbr; }
.cbr-steps li::before { content: counter(cbr); display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 50%; background: #1f1a17; color: #fff; font: 800 .8rem/1 var(--sans); }
.cbr-part { display: grid; gap: 10px; }
.cbr-pk { display: flex; align-items: center; gap: 8px; margin: 0; font: 800 .8rem/1.2 var(--sans); color: var(--ink-2); }
.cbr-pk span { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; background: #1f1a17; color: #fff; font-size: .72rem; }
.cbr-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.cbr-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink-2); font: 700 .9rem/1 var(--sans); cursor: pointer; }
.cbr-chip svg { width: 16px; height: 16px; color: var(--soft); }
.cbr-chip.is-on { border-color: #c08a3e; background: #fbf1e3; color: var(--ink); font-weight: 800; }
.cbr-chip.is-on svg { color: #a8762f; }
.cbr-chip:disabled { opacity: .35; cursor: not-allowed; }
.cbr-row { display: flex; gap: 8px; align-items: stretch; }
.cbr-row .cbr-bill { flex: none; min-height: 52px; }
.cbr-bar { height: 10px; border-radius: 99px; background: #e8dccb; overflow: hidden; }
.cbr-bar i { display: block; height: 100%; border-radius: 99px; background: #c08a3e; transition: width .2s; }
.cbr-rest { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0; padding: 12px 16px; border-radius: 12px; background: #f5efe7; color: var(--ink-2); font-weight: 600; }
.cbr-div .cbr-rest + .cbr-rest { margin-top: 8px; }
.cbr-div .cbr-rest > span { flex: 1; min-width: 0; }
.cbr-div .cbr-rest > svg { flex: none; width: 18px; height: 18px; }
.cbr-div .cbr-rest--in { padding: 8px 8px 8px 16px; cursor: text; }
.cbr-div .cbr-rest--in > .cbr-in { flex: 0 1 190px; min-height: 50px; padding: 0 12px; }
.cbr-div .cbr-rest--in .cbr-in input { font-size: 1.4rem; }
.cbr-div .cbr-tip { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.cbr-rest b { font: 800 1.45rem/1 var(--display); color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 760px) {
  .cbr-top { padding: 12px 16px; }
  .cbr-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; margin-top: 12px; }
  .cbr-modos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cbr-m { min-height: 56px; gap: 8px; padding: 8px 30px 8px 8px; }
  .cbr-m i { width: 34px; height: 34px; }
  .cbr-m b { font-size: .9rem; }
  .cbr-m small { display: none; }
  .cbr-m::after { right: 9px; width: 15px; height: 15px; margin-top: -7.5px; }
  .cbr-box { padding: 14px; }
  .cbr-in { min-height: 56px; }
  .cbr-in input { font-size: 1.6rem; }
  .cbr-vu b { font-size: 1.6rem; }
  .cbr-bills { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cbr-alias { flex-wrap: wrap; }
  .cbr-alias b { font-size: 1.25rem; }
  .cbr-copy { flex: 1; justify-content: center; }
  .modal__box:has(.cbr) .modal__foot .btn[type="submit"] { flex: 2; padding: 0 12px; font-size: .92rem; }
}
@media (max-width: 360px) { .cbr-m { padding-right: 8px; } .cbr-m::after { display: none; } .cbr-m i { width: 30px; height: 30px; } }

/* ==== RETIRO: SEMÁFORO Y PASOS PARA EL CAJERO (2026-11-20) ====
   Como en Fudo, un color por paso y el mismo en la lista, el título y el panel:
   rojo = nuevo (hay que mandarlo) · ámbar = en cocina (esperar) · verde = para entregar (avisar y cobrar) · gris = cerrada.
   El panel muestra los 4 pasos arriba y «Ahora: …» con lo que tiene que hacer la caja. Reemplaza el violeta/turquesa del 2026-11-18 */
.mo { --mo-cook: #b45309; --mo-cook-bg: #fef3dc; --mo-cook-ln: #f59e0b; --mo-ent: #15803d; --mo-ent-bg: #e3f6e9; --mo-ent-ln: #22a355; --mo-done: #6f655c; --mo-done-bg: #efebe6; --mo-done-ln: #cfc6bc; }
.mo .mos--cur .mos__h > svg { color: var(--mo-cook-ln); }
.mo .mor--cook { background: #fffcf5; }
.mo .mor--ready { background: #f4fbf6; }
.mo .mor--done { color: var(--soft); }
.mo .mor.is-on { background: #fff; box-shadow: inset 0 0 0 2px var(--ink), 0 6px 16px -10px rgba(36, 28, 23, .45); }
/* reloj: amarillo a los 10 min, rojo a los 15 */
.mor--warn .mor__h small { padding: 2px 6px; border-radius: 6px; background: #fef3dc; color: #b45309; font-weight: 800; justify-self: start; }
.mor--late .mor__h small { padding: 2px 6px; border-radius: 6px; background: #c81e1e; color: #fff; font-weight: 800; justify-self: start; }

/* panel: la cabecera toma el color del paso */
.mod { --st: var(--mo-done); --st-bg: var(--mo-done-bg); --st-ln: var(--mo-done-ln); }
.mod--new { --st: #c81e1e; --st-bg: #fdecec; --st-ln: #ef8a8a; }
.mod--cook { --st: var(--mo-cook); --st-bg: var(--mo-cook-bg); --st-ln: var(--mo-cook-ln); }
.mod--ready { --st: var(--mo-ent); --st-bg: var(--mo-ent-bg); --st-ln: var(--mo-ent-ln); }
.mod > .fdd__h { background: var(--st-bg); border-bottom: 0; box-shadow: inset 0 5px 0 var(--st-ln); }
.mod > .fdd__h .fdd__badge { background: var(--st); color: #fff; }
/* los 4 pasos */
.mst { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; padding: 12px 14px 10px; list-style: none; background: var(--st-bg); counter-reset: none; }
.mst__i { position: relative; display: grid; justify-items: center; gap: 5px; min-width: 0; text-align: center; color: var(--mute); font: 700 .72rem/1.15 var(--sans); }
.mst__i::before { content: ""; position: absolute; top: 13px; right: 50%; width: 100%; height: 3px; background: #ddd5cc; z-index: 0; }
.mst__i:first-child::before { display: none; }
.mst__i i { position: relative; z-index: 1; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 2px solid #ddd5cc; background: #fff; color: var(--mute); font: 800 .8rem/1 var(--sans); font-style: normal; }
.mst__i span { overflow-wrap: anywhere; }
.mst__i.is-ok { color: var(--ink-2); }
.mst__i.is-ok::before, .mst__i.is-now::before { background: var(--st-ln); }
.mst__i.is-ok i { border-color: var(--st-ln); background: var(--st-ln); color: #fff; }
.mst__i.is-now { color: var(--st); font-weight: 800; }
.mst__i.is-now i { width: 30px; height: 30px; margin-top: -1px; border-color: var(--st); background: var(--st); color: #fff; box-shadow: 0 0 0 4px #fff, 0 0 0 6px var(--st-ln); }
/* «Ahora: …» lo que tiene que hacer la caja */
.mod__now { display: flex; align-items: center; gap: 10px; margin: 0; padding: 10px 18px; border-top: 1px solid color-mix(in srgb, var(--st-ln) 40%, transparent); border-bottom: 1px solid var(--line-2); background: #fff; color: var(--ink-2); font-size: .92rem; line-height: 1.3; }
.mod__now b { flex: none; padding: 4px 9px; border-radius: 6px; background: var(--st); color: #fff; font: 800 .68rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; }
/* botón del paso: rojo para mandar a la cocina, verde para listo, verde WhatsApp para avisar */
.mod__go.mod__go--cmd { background: #c81e1e; color: #fff; box-shadow: 0 2px 0 #9b1515; }
.mod__go.mod__go--cmd:hover { background: #ad1818; }
.mod__go.mod__go--rdy { background: #15803d; color: #fff; box-shadow: 0 2px 0 #0f5f2d; }
.mod__go.mod__go--rdy:hover { background: #126c34; }
.mod__go.mod__go--wa { min-height: 52px; text-transform: none; letter-spacing: 0; }
.mod__go.mod__go--wa svg { width: 20px; height: 20px; }
.mod__go.mod__go--wa span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mod--ready .mod__pay .fdd__pay { min-height: 60px; font-size: 1.08rem; }
@media (max-width: 600px) {
  .mst { padding: 10px 8px 8px; }
  .mst__i { font-size: .66rem; }
  .mod__now { padding: 9px 14px; font-size: .88rem; }
}

/* ==== RETIRO: BUSCADOR EN «A ENTREGAR» (2026-11-20) ==== */
.mo .mos--ent .mos__h { flex-wrap: wrap; }
.mo .mos__q { margin: 0 0 0 auto; flex: 0 1 280px; min-width: 0; display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; border: 1px solid color-mix(in srgb, var(--mo-ent-ln, #2e7d32) 40%, transparent); border-radius: 999px; background: #fff; color: var(--soft); }
.mo .mos__q svg { width: 16px; height: 16px; flex: none; }
.mo .mos__q input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: 500 16px/1 var(--sans); color: var(--ink); padding: 0; }
.mo .mos__q:focus-within { border-color: var(--mo-ent-ln, #2e7d32); box-shadow: 0 0 0 3px color-mix(in srgb, var(--mo-ent-ln, #2e7d32) 18%, transparent); }
.mo .mor[hidden] { display: none; }
@media (max-width: 560px) { .mo .mos__q { flex: 1 1 100%; margin-left: 0; } }

/* ==== TABLET DE LA COCINA: LO QUE SE SUMÓ (2026-11-20) ==== */
.kt__tag--se-sumo { background: #16a34a; }
.kt__lbl { margin: 4px 0 0; font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #6b625b; }
.kt__items--ya { opacity: .55; }
.kt__items--ya li { font-size: 1.05rem; }
.kt__sum { margin-top: 6px; padding: 6px 10px 4px; border: 3px solid #16a34a; border-radius: 12px; background: #ecfdf3; }
.kt__sum .kt__lbl { margin-top: 0; color: #15803d; font-size: .9rem; }
.kt__sum .kt__items li { border-bottom-color: #bbe5c9; }
.kt__sum .kt__items b { background: #16a34a; }

/* ==== AVISO ROJO: LA COCINA TERMINÓ (2026-11-20) ====
   Caja 1 de Patricias: la tablet tocó «Entregado» en un retiro → aviso rojo fijo arriba hasta marcar «Listo para entregar» */
.newpill.kokpill { background: #d6342a; padding: 10px 10px 10px 16px; border-radius: 16px; max-width: min(560px, 100%); animation: pillIn .3s ease, kokLat 1.2s ease-in-out infinite; }
.kokpill__t { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.kokpill__t small { font-size: .82rem; font-weight: 600; opacity: .92; overflow-wrap: anywhere; }
.kokpill__t b { font-size: 1.08rem; letter-spacing: .01em; }
@keyframes kokLat { 0%, 100% { box-shadow: 0 12px 30px -10px rgba(214, 52, 42, .7), 0 0 0 0 rgba(214, 52, 42, .55); } 50% { box-shadow: 0 12px 30px -10px rgba(214, 52, 42, .7), 0 0 0 10px rgba(214, 52, 42, 0); } }
.mod__kok { margin: 0 0 6px; text-align: center; font-weight: 800; color: #d6342a; font-size: 1rem; }
.mod__go.mod__go--kok { animation: kokLat 1.2s ease-in-out infinite; outline: 3px solid #d6342a; outline-offset: 2px; }
.mo .mor--kok, .mor--kok { border-left-color: #d6342a; }
.mo .mor__st--kok, .mor__st--kok { background: #d6342a; color: #fff; }
@media (prefers-reduced-motion: reduce) { .newpill.kokpill, .mod__go.mod__go--kok { animation: none; } }

/* ==== MESA: PAPAS Y ADEREZOS (hamburguesas, lomitos, sándwiches) ==== */
.posad__row { display: flex; flex-wrap: wrap; gap: 8px; }
.posad__row--2 { display: grid; grid-template-columns: 1fr 1fr; }
.posad__b { min-height: 48px; padding: 8px 14px; border: 2px solid var(--sl-200); border-radius: 14px; background: #fff; color: var(--sl-900); font: inherit; font-size: .95rem; font-weight: 700; cursor: pointer; touch-action: manipulation; transition: background .15s, border-color .15s, color .15s; }
.posad__b small { display: block; white-space: nowrap; font-weight: 600; color: var(--sl-500); }
.posad__b--s { flex: 1 1 calc(33.333% - 8px); min-width: 96px; }
.posad__b.is-on { border-color: #ea580c; background: #fff1e6; color: #9a3412; }
.posad__b.is-on small { color: #9a3412; }
.posad__b.is-on::before { content: "✓ "; }
@media (max-width: 400px) { .posad__b--s { flex-basis: calc(50% - 8px); } .posad__b { min-height: 44px; font-size: .9rem; } }
@media (max-height: 500px) and (orientation: landscape) { .posad__b { min-height: 38px; padding: 4px 10px; } }

/* ==== BARRA: NUEVOS ARRIBA (2026-11-20) ==== */
.br-g { display: flex; align-items: center; gap: 10px; margin: 18px 0 10px; font: 900 1.25rem var(--display); line-height: 1.1; }
.br-g span { min-width: 30px; padding: 3px 10px; border-radius: 999px; font: 900 1rem var(--sans); text-align: center; color: #fff; }
.br-g--new { color: var(--sem-new2); }
.br-g--new span { background: var(--sem-new); }
.br-g--old { margin-top: 28px; padding-top: 16px; border-top: 2px dashed var(--line); color: var(--soft); font-size: 1.05rem; }
.br-g--old span { background: var(--mute); }
.br-c { position: relative; }
.br-c.is-new { animation: mtIn .35s ease-out, brPulso 1.4s ease-in-out 3; }
.br-c__new { align-self: flex-start; margin: 0 0 8px; padding: 4px 12px; border-radius: 999px; background: var(--sem-new); color: #fff; font: 900 .85rem var(--sans); letter-spacing: .08em; }
.br-c.is-old { border-color: var(--line); border-width: 2px; }
.br-c.is-old .br-c__who { color: var(--ink); font-size: 1.4rem; }
.br-c.is-old.is-late { border-color: var(--sem-new); border-width: 3px; }
@keyframes brPulso { 50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--sem-new) 30%, transparent), var(--shadow); } }
@media (prefers-reduced-motion: reduce) { .br-c.is-new { animation: none; } }
@media (max-width: 420px) { .br-g { font-size: 1.1rem; } .br-g--old { font-size: .98rem; } }

/* ==== MOZO: EXTRA QUESO / EXTRA JAMÓN EN LA PIZZA (2026-11-20) ==== */
.pospx { display: grid; gap: 8px; margin-bottom: 4px; }
.pospx .posd__k { margin-bottom: 0; }
.pospx__b { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 52px; padding: 8px 10px 8px 14px; border: 2px solid var(--sl-200); border-radius: 14px; background: #fff; color: var(--sl-900); font: inherit; font-size: .98rem; font-weight: 700; text-align: left; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; transition: background .15s, border-color .15s, color .15s; }
.pospx__n { min-width: 0; overflow-wrap: anywhere; }
.pospx__n small { display: block; font-weight: 600; color: var(--sl-500); }
.pospx__go { flex: 0 0 auto; padding: 8px 12px; border-radius: 999px; background: #ea580c; color: #fff; font-size: .88rem; font-weight: 800; white-space: nowrap; }
.pospx__b.is-on { border-color: #16a34a; background: #effcf3; color: #14532d; }
.pospx__b.is-on .pospx__n small { color: #166534; }
.pospx__b.is-on .pospx__go { background: #16a34a; }
@media (hover: hover) { .pospx__b:hover { border-color: #ea580c; } .pospx__b.is-on:hover { border-color: #15803d; } }
@media (max-width: 360px) { .pospx__b { min-height: 48px; font-size: .9rem; padding-left: 10px; } .pospx__go { padding: 7px 10px; font-size: .8rem; } }
@media (max-height: 500px) and (orientation: landscape) { .pospx { gap: 6px; } .pospx__b { min-height: 42px; padding-top: 4px; padding-bottom: 4px; } }

/* ==== TABLET DE LA COCINA: TURNO EN ORDEN DE LLEGADA (2026-11-20, estilo Fudo) ==== */
.kt__ord { flex: none; display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 8px; border-radius: 12px; background: #fff; color: #1a1a1a; font-family: var(--display); font-weight: 800; font-size: 1.45rem; line-height: 1; box-shadow: 0 2px 6px rgba(0, 0, 0, .18); }
.kt__h .kt__where { flex: 1 1 auto; }
.kcol__ord { margin-left: 4px; font-family: inherit; font-size: .78rem; font-weight: 600; letter-spacing: 0; text-transform: none; opacity: .75; }
@media (max-width: 600px) { .kt__ord { min-width: 34px; height: 34px; font-size: 1.2rem; } .kcol__ord { display: none; } }

/* ==== FACTURACIÓN ARCA (2026-11-20, solo el dueño) ====
   pestaña «Facturación ARCA» (renderArca), tarjeta en Inicio (.arca-tile) y botón en Cierre de caja (.arca-go) */
.arca-fis { display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
.arca-fis__i, .arca-tile__i { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--blue-bg); color: var(--blue); }
.arca-fis__i svg, .arca-tile__i svg { width: 22px; height: 22px; }
.arca-fis__t { flex: 1; min-width: 0; }
.arca-fis__t b, .arca-tile__t b { display: block; font-size: 1rem; }
.arca-fis__t small, .arca-tile__t small { display: block; color: var(--mute); font-size: .86rem; line-height: 1.35; }
.arca-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 16px 0 6px; }
.arca-nav { display: flex; align-items: center; gap: 6px; }
.arca-nav .icon-btn[disabled] { opacity: .35; pointer-events: none; }
.arca-date { width: auto; min-width: 150px; min-height: 44px; }
.arca-chips { display: flex; gap: 6px; }
.arca-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; margin: 14px 0; }
.arca-h { margin: 0; font-family: var(--display); font-size: 1.35rem; }
.arca-sub { margin: 2px 0 0; color: var(--mute); font-size: .9rem; }
.arca-st { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--card-2); color: var(--ink-2); font-weight: 700; font-size: .86rem; }
.arca-st svg { width: 16px; height: 16px; flex: none; }
.arca-st.is-ok { background: var(--ok-bg); color: var(--ok); }
.arca-st.is-warn { background: var(--warn-bg); color: var(--warn); }
.arca-st.is-live { background: var(--blue-bg); color: var(--blue); }
.arca-st.is-live i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: arcaLat 1.4s ease-in-out infinite; }
@keyframes arcaLat { 50% { opacity: .25; } }
.arca-head + .cc-warn { margin-bottom: 14px; }
.arca-btns { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 10px; }
.arca-big { display: flex; align-items: center; gap: 12px; min-height: 72px; padding: 12px 16px; border: 0; border-radius: 14px; background: var(--ok); color: #fff; font: inherit; text-align: left; cursor: pointer; transition: transform .12s, filter .12s; }
.arca-big:hover { filter: brightness(1.06); }
.arca-big:active { transform: scale(.98); }
.arca-big svg { width: 26px; height: 26px; flex: none; }
.arca-big b { display: block; font-size: 1rem; }
.arca-big small { display: block; opacity: .88; font-size: .84rem; }
.arca-big--2, .arca-big--3 { background: var(--card-2); color: var(--ink); border: 1px solid var(--line); }
.arca-big--2 small, .arca-big--3 small { color: var(--mute); opacity: 1; }
.arca-sub-btn { width: 100%; min-height: 48px; margin-top: 12px; justify-content: center; }
.arca-note { margin: 10px 0 0; font-size: .88rem; }
.arca-tw { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -4px; }
.arca-tb { width: 100%; border-collapse: collapse; font-size: .92rem; }
.arca-tb th { padding: 8px 6px; text-align: left; font-size: .74rem; text-transform: uppercase; letter-spacing: .03em; color: var(--mute); border-bottom: 1px solid var(--line); white-space: nowrap; }
.arca-tb td { padding: 8px 6px; border-bottom: 1px solid var(--line-2, var(--line)); vertical-align: top; }
.arca-tb .n { text-align: right; white-space: nowrap; }
.arca-tb tr.is-neg td { color: var(--red); }
.arca-tb tfoot td { font-weight: 800; border-top: 2px solid var(--ink); border-bottom: 0; }
.arca-cps > summary { cursor: pointer; list-style: none; }
.arca-cps > summary::-webkit-details-marker { display: none; }
.arca-cps[open] > summary { margin-bottom: 8px; }
.arca-tile { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; padding: 14px 16px; margin-bottom: 14px; }
.arca-tile__t { flex: 1; min-width: 200px; }
.arca-tile__t .arca-st { margin-top: 6px; }
.arca-tile__b { display: flex; flex-wrap: wrap; gap: 8px; }
.arca-go { display: flex; align-items: center; gap: 12px; width: 100%; margin: 0 0 14px; padding: 12px 16px; border: 1px solid var(--blue); border-radius: 14px; background: var(--blue-bg); color: var(--blue-ink, var(--blue)); font: inherit; text-align: left; cursor: pointer; }
.arca-go svg { width: 24px; height: 24px; flex: none; }
.arca-go span { flex: 1; }
.arca-go b { display: block; }
.arca-go small { display: block; opacity: .85; }
.arca-go i { font-style: normal; font-size: 1.6rem; line-height: 1; }
@media (max-width: 900px) {
  .arca-btns { grid-template-columns: 1fr; }
  .arca-big { min-height: 62px; }
}
@media (max-width: 600px) {
  .arca-fis { flex-wrap: wrap; }
  .arca-fis .btn { width: 100%; justify-content: center; }
  .arca-bar > .seg, .arca-nav { width: 100%; }
  .arca-bar > .seg button { flex: 1; }
  .arca-nav .arca-date { flex: 1; min-width: 0; }
  .arca-bar .fgroup { width: 100%; }
  .arca-h { font-size: 1.15rem; }
  .arca-tb { font-size: .84rem; }
  .arca-tb th, .arca-tb td { padding: 7px 4px; }
  .arca-tile__b, .arca-tile__b .btn { width: 100%; }
  .arca-tile__b .btn { justify-content: center; }
}

/* ==== FACTURACIÓN ARCA: FACTURA C DEL DÍA POR LOCAL (2026-11-20) ====
   botones de local con su CUIT (.arca-loc), la factura campo por campo con Copiar (.arca-fc, .arca-f, .arca-cp),
   tarjeta de Inicio por local (.arca-tile__l) */
.arca-locs { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin-bottom: 12px; }
.arca-loc { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-height: 64px; padding: 12px 16px; border: 2px solid var(--line); border-radius: 14px; background: var(--card); color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.arca-loc b { font-size: 1rem; }
.arca-loc small { color: var(--mute); font-size: .85rem; }
.arca-loc.is-on { border-color: var(--ink); background: var(--ink); color: #fff; }
.arca-loc.is-on small { color: rgba(255,255,255,.75); }
.arca-loc__n { position: absolute; top: 10px; right: 12px; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px; background: var(--warn); color: #fff; font-weight: 800; font-size: .8rem; display: grid; place-items: center; }
.arca-fc { margin-top: 14px; padding: 0; overflow: hidden; border: 2px solid var(--ok); }
.arca-fc.is-done { border-color: var(--line); }
.arca-fc__h { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; background: var(--ok-bg); }
.arca-fc.is-done .arca-fc__h { background: var(--card-2); }
.arca-fc__k { margin: 0; font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--ok); }
.arca-fc__t { margin: 2px 0; font-family: var(--display); font-size: 2.2rem; line-height: 1; }
.arca-fc__h small { color: var(--mute); }
.arca-open { min-height: 48px; padding: 0 20px; }
.arca-fc > .cc-warn { margin: 12px 18px 0; }
.arca-how { margin: 14px 18px 4px; color: var(--ink-2); font-size: .92rem; }
.arca-steps { list-style: none; margin: 0; padding: 4px 18px 18px; }
.arca-steps > li { padding: 12px 0; border-bottom: 1px dashed var(--line); }
.arca-steps > li:last-child { border-bottom: 0; padding-bottom: 0; }
.arca-steps .arca-how { margin: 4px 0 0; }
.arca-step { margin: 0 0 6px; font-weight: 800; font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; color: var(--mute); }
.arca-f { display: grid; grid-template-columns: minmax(130px, 200px) 1fr auto; align-items: center; gap: 4px 12px; padding: 6px 0; }
.arca-f__l { color: var(--mute); font-size: .88rem; }
.arca-f__v { font-weight: 600; word-break: break-word; }
.arca-f__v small { display: block; color: var(--mute); font-weight: 400; font-size: .82rem; }
.arca-cp { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 104px; min-height: 40px; padding: 0 12px; border: 1px solid var(--blue); border-radius: 10px; background: var(--blue-bg); color: var(--blue); font: inherit; font-weight: 700; font-size: .88rem; cursor: pointer; }
.arca-cp svg { width: 16px; height: 16px; }
.arca-cp:active { transform: scale(.96); }
.arca-cp--x { visibility: hidden; min-height: 0; border: 0; padding: 0; }
.arca-dl2 { display: flex; flex-wrap: wrap; gap: 10px; }
.arca-dl2 .btn { min-height: 48px; }
.card .arca-dl2 { margin-top: 14px; }
.arca-cfg { margin: 0 0 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; }
.arca-cfg legend { padding: 0 6px; font-weight: 800; }
.arca-tile__h { display: flex; align-items: center; gap: 12px; width: 100%; }
.arca-tile__h b { flex: 1; font-size: 1.05rem; }
.arca-tile__l { list-style: none; margin: 0; padding: 0; width: 100%; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }
.arca-tile__l li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; }
.arca-tile__l .grow { flex: 1; min-width: 160px; }
.arca-tile__l b, .arca-tile__l small { display: block; }
.arca-tile__l small { color: var(--mute); font-size: .86rem; }
.arca-tile__l .arca-st { margin-top: 6px; }
@media (max-width: 600px) {
  .arca-locs { grid-template-columns: 1fr 1fr; }
  .arca-loc { padding: 10px 12px; }
  .arca-loc small { font-size: .78rem; }
  .arca-fc__h, .arca-steps { padding-left: 14px; padding-right: 14px; }
  .arca-how { margin-left: 14px; margin-right: 14px; }
  .arca-fc__t { font-size: 1.9rem; }
  .arca-open { width: 100%; justify-content: center; }
  .arca-f { grid-template-columns: 1fr auto; }
  .arca-f__l { grid-column: 1 / -1; font-size: .8rem; }
  .arca-cp { min-width: 92px; }
  .arca-dl2 .btn { flex: 1 1 100%; justify-content: center; }
  .arca-tile__l li .btn { width: 100%; justify-content: center; }
}
@media (max-width: 360px) { .arca-locs { grid-template-columns: 1fr; } }
