/* FullMenu POS — pensado para tablet (horizontal y vertical) y que también funcione en el celular */
html, body { height: 100%; }
body { overflow: hidden; background: var(--crema); -webkit-tap-highlight-color: transparent; user-select: none; }
input, textarea { user-select: text; }
.pos { height: 100vh; height: 100dvh; display: flex; flex-direction: column; }

/* Barra superior */
.pos-top { flex: none; display: flex; align-items: center; gap: 16px; padding: 10px 16px; background: var(--tinta); color: #F3E8DB; }
.pos-brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.pos-mark { width: 38px; height: 38px; border-radius: 11px; background: linear-gradient(135deg, var(--tomate), var(--grad-2, var(--azafran))); color: #fff; display: grid; place-items: center; font: 700 12px var(--f-texto); overflow: hidden; flex: none; }
.pos-mark img { width: 100%; height: 100%; object-fit: cover; background: #fff; }
.pos-brand b { display: block; font: 600 16px var(--f-titulo); color: #fff; white-space: nowrap; }
.pos-brand small { font-size: 12px; color: #B39E8C; }
.pos-tabs { display: flex; gap: 4px; margin: 0 auto; background: rgba(255,255,255,.06); padding: 4px; border-radius: 16px; }
.pos-tabs button { position: relative; display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; border-radius: 12px; font-weight: 600; font-size: 14.5px; color: #CDBBA9; transition: background .25s, color .25s; }
.pos-tabs button svg { font-size: 19px; }
.pos-tabs button.on { background: var(--tomate); color: #fff; box-shadow: 0 6px 16px rgba(0,0,0,.25); }
.badge { position: absolute; top: 3px; right: 4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--azafran); color: var(--tinta); font: 700 11px/18px var(--f-texto); font-style: normal; text-align: center; animation: pop .4s var(--spring); }
.badge[hidden], .badge:empty { display: none; }
.pos-sync { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: #B9E5C8; white-space: nowrap; }
.pos-sync .dot { width: 8px; height: 8px; border-radius: 50%; background: #5BD08A; box-shadow: 0 0 0 0 rgba(91,208,138,.6); animation: syncp 2.4s infinite; }
@keyframes syncp { 0% { box-shadow: 0 0 0 0 rgba(91,208,138,.6); } 70% { box-shadow: 0 0 0 8px rgba(91,208,138,0); } 100% { box-shadow: 0 0 0 0 rgba(91,208,138,0); } }
.pos-sync.ping .txt::after { content: " · pedido nuevo"; color: var(--azafran); font-weight: 700; }
.pos-clock { font: 600 15px var(--f-texto); font-variant-numeric: tabular-nums; color: #fff; }

.pos-main { flex: 1; min-height: 0; position: relative; }
.view-in { height: 100%; animation: fadeIn .3s; }
.pad { height: 100%; overflow-y: auto; padding: 18px 20px 40px; }
.row-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.pos-h { font-size: 22px; }
.lbl { display: block; font-size: 12.5px; font-weight: 700; color: var(--tinta-3); text-transform: uppercase; letter-spacing: .05em; margin: 16px 0 8px; }

/* ===== Vender ===== */
.sell { height: 100%; display: grid; grid-template-columns: minmax(0, 1fr) 380px; }
.catalog { display: flex; flex-direction: column; min-height: 0; min-width: 0; padding: 14px 16px 0; }
.cat-bar { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; }
.cats-scroll { flex: 1; min-width: 0; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.cats-scroll::-webkit-scrollbar { display: none; }
.cats-scroll .chip { height: 42px; padding: 0 16px; font-size: 14.5px; }
.pos-search { display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px; border-radius: 999px; background: var(--papel); border: 1px solid var(--linea-2); color: var(--tinta-3); width: 220px; flex: none; }
.pos-search input { border: 0; outline: 0; background: none; flex: 1; min-width: 0; color: var(--tinta); }
.pos-search.big { width: 100%; height: 50px; margin: 14px 0 8px; }
.prods { flex: 1; overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; align-content: start; padding-bottom: 12px; }
.prod {
  position: relative; display: grid; align-content: start; gap: 4px; text-align: left; min-height: 118px; padding: 14px 14px 12px;
  background: var(--papel); border-radius: 18px; box-shadow: var(--sombra-1); border-top: 4px solid var(--c); transition: transform .15s var(--ease), box-shadow .2s;
  touch-action: manipulation;
}
.prod:active { transform: scale(.95); }
.prod.bump { animation: tileBump .35s var(--spring); }
@keyframes tileBump { 40% { transform: scale(.93); } 100% { transform: scale(1); } }
.prod-em { font-size: 24px; line-height: 1; }
.prod b { font-size: 14.5px; line-height: 1.25; }
.prod-pr { font-weight: 700; color: var(--tomate-d); font-size: 14px; margin-top: auto; }
.prod-n { position: absolute; top: 10px; right: 10px; min-width: 26px; height: 26px; border-radius: 99px; background: var(--tinta); color: #fff; font-weight: 700; font-size: 13px; display: grid; place-items: center; animation: pop .35s var(--spring); }
.prod.off { opacity: .55; filter: grayscale(.8); }
.prod-off { position: absolute; inset: auto 10px 10px auto; background: var(--chile); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 99px; }
.hint { padding: 8px 0 12px; }
.empty { padding: 30px; text-align: center; grid-column: 1 / -1; }

/* Ticket */
.ticket { display: flex; flex-direction: column; min-height: 0; background: var(--papel); border-left: 1px solid var(--linea); }
.tk-head { padding: 14px 16px 10px; border-bottom: 1px solid var(--linea); display: grid; gap: 10px; }
.tk-title { display: flex; align-items: center; gap: 8px; }
.tk-title b { font: 600 19px var(--f-titulo); }
.tk-close { margin-left: auto; width: 34px; height: 34px; font-size: 16px; background: var(--crema); }
.tk-tipo { display: flex; }
.tk-tipo button { flex: 1; justify-content: center; }
.tk-meta { display: flex; gap: 8px; flex-wrap: wrap; }
.tk-pill { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 999px; background: var(--crema); font-weight: 600; font-size: 13.5px; }
.tk-pill.on { background: var(--azafran-s); color: #8A520B; }
.tk-items { flex: 1; overflow-y: auto; padding: 4px 16px; }
.tk-it { display: grid; grid-template-columns: 1fr auto auto; grid-template-areas: "n nota t" "n step step"; gap: 4px 6px; align-items: center; padding: 10px 0; border-bottom: 1px dashed var(--linea); animation: rise .3s var(--ease) both; }
.tk-it-n { grid-area: n; min-width: 0; }
.tk-it-n b { display: block; font-size: 14.5px; }
.tk-it-n span { font-size: 12.5px; color: var(--tinta-2); }
.tk-it-n em { color: var(--tomate-d); font-style: normal; font-weight: 600; }
.tk-nota { grid-area: nota; width: 32px; height: 32px; font-size: 15px; color: var(--tinta-3); }
.tk-it-t { grid-area: t; font-variant-numeric: tabular-nums; text-align: right; min-width: 82px; }
.tk-it .stepper { grid-area: step; justify-self: end; transform: scale(.82); transform-origin: right; }
.tk-it.sent .tk-it-n b::after { content: " · en cocina"; font: 600 11px var(--f-texto); color: var(--albahaca); }
.tk-empty { display: grid; justify-items: center; gap: 4px; padding: 50px 10px; text-align: center; }
.tk-empty span { font-size: 44px; }
.tk-tot { padding: 10px 16px; border-top: 1px solid var(--linea); display: grid; gap: 4px; font-size: 14px; }
.tk-tot div { display: flex; justify-content: space-between; color: var(--tinta-2); }
.tk-tot .ok { color: var(--albahaca); }
.tk-tot .big { color: var(--tinta); font-size: 20px; font-weight: 700; padding-top: 6px; }
.tk-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px 16px calc(14px + env(safe-area-inset-bottom)); }
.tk-acts .btn { height: 48px; padding: 0 10px; }
.tk-cobrar { grid-column: 1 / -1; height: 58px !important; font-size: 17px; }
.ticket-bar { display: none; }

/* ===== Cobrar ===== */
.sheet.sheet-wide { max-width: 880px; }
.pay { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 22px 24px; }
.pay-total { font: 700 44px var(--f-titulo); letter-spacing: -.02em; margin-top: 2px; }
.pay-split { margin-top: 2px; color: var(--tinta-2); }
.pay-met { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.pay-met button { display: grid; justify-items: center; gap: 4px; padding: 12px 4px; border-radius: 14px; border: 1.5px solid var(--linea-2); background: var(--papel); font-weight: 600; font-size: 13px; transition: all .2s; }
.pay-met button svg { font-size: 22px; color: var(--tinta-2); }
.pay-met button.on { border-color: var(--tomate); background: var(--tomate-s); color: var(--tomate-d); }
.pay-met button.on svg { color: var(--tomate); }
.people { display: flex; justify-content: space-between; align-items: center; background: var(--papel); border-radius: 14px; padding: 8px 8px 8px 14px; }
.people > span { display: inline-flex; gap: 8px; align-items: center; font-weight: 600; font-size: 14px; }
.earn { display: flex; align-items: center; gap: 8px; width: 100%; margin-top: 14px; background: var(--azafran-s); color: #8A520B; padding: 12px 14px; border-radius: 14px; font-size: 14px; font-weight: 500; text-align: left; }
.earn.ghost { background: var(--papel); color: var(--tinta-2); border: 1.5px dashed var(--linea-2); }
.pay-r { background: var(--papel); border-radius: 22px; padding: 18px; display: flex; flex-direction: column; }
.pay-rec { font: 700 34px var(--f-texto); font-variant-numeric: tabular-nums; }
.pay-cambio { font-size: 15px; color: var(--albahaca); margin: 2px 0 12px; min-height: 22px; }
.pay-cambio.falta { color: var(--chile); }
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 10px; }
.quick button { height: 40px; border-radius: 12px; background: var(--azafran-s); color: #8A520B; font-weight: 700; font-size: 13px; }
.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; flex: 1; }
.keypad button { min-height: 54px; border-radius: 14px; background: var(--crema); font: 600 22px var(--f-texto); transition: background .15s, transform .1s; }
.keypad button:active { background: var(--crema-2); transform: scale(.95); }
.pay-other { display: grid; justify-items: center; text-align: center; gap: 8px; margin: auto 0; padding: 20px 6px; }
.pay-other > svg { font-size: 46px; color: var(--tomate); }
.pay-other b { font-size: 17px; }
.pay-other .row2 { width: 100%; text-align: left; margin-top: 8px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.done-pay { padding: 26px 20px 10px; text-align: center; }
.done-pay h3 { font-size: 26px; margin-top: 12px; }
.cambio-big { font-size: 18px; margin-top: 4px; }
.cambio-big b { color: var(--albahaca); font-size: 24px; }
.receipt { margin: 18px auto 6px; max-width: 320px; background: #fff; padding: 18px 16px; text-align: left; font: 12.5px/1.5 ui-monospace, "Cascadia Mono", Consolas, monospace; color: #222; box-shadow: var(--sombra-1);
  border-radius: 4px 4px 0 0; border-bottom: 3px dashed var(--linea-2); }
.receipt span { display: block; }
.receipt .rc-name { display: block; text-align: center; font-size: 15px; }
.receipt > span:nth-child(2), .receipt > span:nth-child(3) { text-align: center; }
.receipt hr { border: 0; border-top: 1px dashed #999; margin: 8px 0; }
.receipt div { display: flex; justify-content: space-between; gap: 10px; }
.receipt .rc-tot { font-weight: 700; font-size: 14px; }

/* Hojas pequeñas */
.mesa-pick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 14px; }
.mesa-pick button { display: grid; justify-items: center; padding: 12px 4px; border-radius: 16px; border: 1.5px solid var(--linea-2); background: var(--papel); }
.mesa-pick b { font: 700 22px var(--f-titulo); }
.mesa-pick span { font-size: 11.5px; color: var(--tinta-2); }
.mesa-pick .busy { background: var(--tomate-s); border-color: transparent; }
.mesa-pick .on { border-color: var(--tinta); box-shadow: 0 0 0 1px var(--tinta); }
.cli-row { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 12px 4px; border-bottom: 1px dashed var(--linea-2); }
.cli-row .avatar { width: 40px; height: 40px; border-radius: 50%; color: #fff; display: grid; place-items: center; font-weight: 700; flex: none; }
.cli-row div { flex: 1; }
.cli-row div b { display: block; }
.cli-row div span { font-size: 13px; color: var(--tinta-2); }
.cli-row .pts { color: #8A520B; }
.chips-wrap { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.desc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.desc-grid button { display: grid; gap: 2px; padding: 16px; border-radius: 16px; background: var(--papel); border: 1.5px solid var(--linea-2); text-align: left; }
.desc-grid span { color: var(--albahaca); font-weight: 600; font-size: 13.5px; }
.sheet-title { font-size: 24px; padding-right: 40px; }

/* Canales */
.ch { display: inline-flex; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 99px; letter-spacing: .02em; white-space: nowrap; }
.ch-pos { background: var(--crema-2); color: var(--tinta-2); }
.ch-qr { background: #EEE7F3; color: var(--berenjena); }
.ch-web { background: #E3EEFC; color: #1f6fd6; }

/* ===== Mesas ===== */
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--tinta-2); }
.lg::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.lg.libre::before { background: var(--albahaca); } .lg.ocupada::before { background: var(--tomate); }
.lg.cuenta::before { background: var(--azafran); } .lg.reservada::before { background: var(--berenjena); }
.floor { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.mesa { position: relative; display: grid; gap: 3px; align-content: start; text-align: left; min-height: 140px; padding: 14px 16px; border-radius: 22px; background: var(--papel); box-shadow: var(--sombra-1); border: 2px solid transparent; transition: transform .2s var(--ease); animation: rise .4s var(--ease) both; }
.mesa:active { transform: scale(.96); }
.mesa-n { font: 700 32px var(--f-titulo); line-height: 1; }
.mesa-z { font-size: 12px; color: var(--tinta-2); display: inline-flex; gap: 4px; align-items: center; }
.mesa-t { font-size: 17px; margin-top: 8px; }
.mesa-s { font-size: 12.5px; color: var(--tinta-2); display: inline-flex; gap: 4px; align-items: center; }
.mesa.libre { border-color: var(--albahaca-s); }
.mesa.libre .mesa-n { color: var(--albahaca); }
.mesa.ocupada { background: var(--tomate-s); }
.mesa.ocupada .mesa-n { color: var(--tomate-d); }
.mesa.cuenta { background: var(--azafran-s); }
.mesa.reservada { background: #EEE7F3; }
.mesa.reservada .mesa-n { color: var(--berenjena); }
.mesa-flag { position: absolute; top: 12px; right: 12px; background: var(--azafran); color: var(--tinta); font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 99px; animation: pulseFlag 1.6s ease-in-out infinite; }
@keyframes pulseFlag { 50% { transform: scale(1.08); } }

/* ===== Pedidos ===== */
.peds { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.ped { background: var(--papel); border-radius: 20px; padding: 14px 16px; box-shadow: var(--sombra-1); display: grid; gap: 6px; animation: rise .4s var(--ease) both; border: 2px solid transparent; }
.ped.nuevo { border-color: var(--tomate); box-shadow: 0 0 0 4px var(--tomate-s); }
.ped-h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ped-h b { font-size: 16px; }
.ped-time { margin-left: auto; display: inline-flex; gap: 4px; align-items: center; }
.ped-q { font-size: 14px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.ped ul { list-style: none; margin: 0; padding: 0; font-size: 14px; color: var(--tinta-2); }
.ped em { color: var(--tomate-d); font-style: normal; }
.ped-f { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13.5px; margin-top: 4px; }
.st { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 99px; }
.st.ok { background: var(--albahaca-s); color: var(--albahaca); } .st.warn { background: var(--azafran-s); color: #A7650E; }
.st.bad { background: #FCE4E1; color: var(--chile); } .st.info { background: #E7EEF8; color: #2F5E9E; } .st.off { background: var(--crema-2); color: var(--tinta-2); }

/* ===== Cocina ===== */
.kds { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; align-items: start; }
.kds-card { background: var(--papel); border-radius: 20px; overflow: hidden; box-shadow: var(--sombra-1); display: grid; animation: rise .4s var(--ease) both; }
.kds-card header { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 12px 14px; background: var(--albahaca); color: #fff; }
.kds-card.warn header { background: var(--azafran); color: var(--tinta); }
.kds-card.late header { background: var(--chile); }
.kds-card header b { font-size: 17px; }
.kds-t { margin-left: auto; font-weight: 700; font-variant-numeric: tabular-nums; }
.kds-card .ch { background: rgba(255,255,255,.25); color: inherit; }
.kds-it { display: block; width: 100%; text-align: left; padding: 11px 14px; border-bottom: 1px dashed var(--linea); font-size: 15px; transition: background .2s, color .2s; }
.kds-it em { display: block; font-style: normal; color: var(--chile); font-size: 13px; font-weight: 600; }
.kds-it.done { color: var(--tinta-3); text-decoration: line-through; background: var(--albahaca-s); }
.kds-ok { margin: 10px 14px 14px; }

/* ===== Caja ===== */
.ckpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 14px; }
.ckpis div { background: var(--papel); border-radius: 18px; padding: 14px 16px; box-shadow: var(--sombra-1); display: grid; }
.ckpis span { font-size: 12.5px; color: var(--tinta-2); font-weight: 600; }
.ckpis b { font: 600 24px var(--f-titulo); white-space: nowrap; }
.ckpis small { font-size: 11.5px; color: var(--tinta-3); }
.cgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.card { background: var(--papel); border-radius: 20px; padding: 16px 18px; box-shadow: var(--sombra-1); }
.card h3 { font-size: 17px; margin-bottom: 10px; }
.hb { display: grid; grid-template-columns: 110px 1fr 100px; gap: 10px; align-items: center; font-size: 13.5px; padding: 5px 0; }
.hb div { height: 10px; border-radius: 99px; background: var(--crema-2); overflow: hidden; }
.hb i { display: block; height: 100%; background: var(--tomate); border-radius: 99px; animation: grow .9s var(--ease) both; transform-origin: left; }
@keyframes grow { from { transform: scaleX(0); } }
.hb b { text-align: right; font-variant-numeric: tabular-nums; }
.cobros > div { display: grid; grid-template-columns: 74px 56px 1fr auto 100px 96px; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px dashed var(--linea); font-size: 14px; }
.cobros .r { text-align: right; }
.den { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 14px; }
.den label { display: flex; align-items: center; justify-content: space-between; gap: 8px; background: var(--papel); border-radius: 12px; padding: 6px 6px 6px 14px; font-weight: 600; font-size: 14px; }
.den input { width: 80px; border: 1px solid var(--linea-2); border-radius: 10px; padding: 8px 10px; text-align: right; outline: none; }
.cuadre { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.cuadre div { background: var(--papel); border-radius: 14px; padding: 12px; display: grid; }
.cuadre span { font-size: 12px; color: var(--tinta-2); }
.cuadre b { font-size: 17px; }
.cuadre .ok b { color: var(--albahaca); } .cuadre .bad b { color: var(--chile); }

/* ===== Tablet vertical ===== */
@media (max-width: 1080px) {
  .pos-sync .txt { display: none; }
  .pos-tabs button { padding: 0 12px; }
  .sell { grid-template-columns: minmax(0, 1fr) 330px; }
  .pos-search { width: 170px; }
  .prods { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
}
@media (max-width: 900px) {
  .pos-tabs span { display: none; }
  .pos-tabs button { padding: 0 14px; }
  .pos-brand small { display: none; }
  .ckpis { grid-template-columns: repeat(2, 1fr); }
  .cgrid { grid-template-columns: 1fr; }
  .cobros > div { grid-template-columns: 64px 50px 1fr 90px; }
  .cobros > div > :nth-child(4), .cobros > div > :nth-child(5) { display: none; }
  .pay { grid-template-columns: 1fr; }
}

/* ===== Celular: pestañas abajo y ticket como hoja ===== */
@media (max-width: 700px) {
  .pos-top { padding: 8px 12px; gap: 10px; }
  .pos-tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; margin: 0; border-radius: 0; background: var(--tinta); padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); justify-content: space-around; }
  .pos-tabs button { flex-direction: column; gap: 2px; height: 52px; padding: 0 8px; font-size: 11px; flex: 1; }
  .pos-tabs span { display: block; }
  .pos-sync { margin-left: auto; }
  .pos-main { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .sell { grid-template-columns: minmax(0, 1fr); }
  .catalog { padding: 10px 12px 0; }
  .cat-bar { flex-direction: column-reverse; align-items: stretch; gap: 8px; }
  .pos-search { width: 100%; }
  .prods { grid-template-columns: repeat(2, 1fr); padding-bottom: 80px; }
  .prod { min-height: 104px; }
  .hint { display: none; }
  .ticket { position: fixed; inset: 0; z-index: 80; border: 0; transform: translateY(102%); transition: transform .4s var(--ease); }
  .ticket.open { transform: none; }
  .ticket-bar {
    display: flex; align-items: center; gap: 10px; position: fixed; left: 12px; right: 12px; bottom: calc(72px + env(safe-area-inset-bottom)); z-index: 60;
    height: 54px; padding: 0 18px 0 7px; border-radius: 999px; background: var(--tomate); color: #fff; font-weight: 600; box-shadow: var(--sombra-3);
    transform: translateY(160%); transition: transform .45s var(--spring);
  }
  .ticket-bar.show { transform: none; }
  .ticket-bar.bump { animation: tbump .4s var(--spring); }
  @keyframes tbump { 40% { transform: translateY(-5px) scale(1.03); } }
  .ticket-bar span:nth-child(2) { flex: 1; }
  .tb-n { width: 40px; height: 40px; border-radius: 50%; background: rgba(0,0,0,.2); display: grid; place-items: center; font-weight: 700; }
  .pad { padding: 14px 12px 30px; }
  .floor { grid-template-columns: repeat(2, 1fr); }
  .mesa { min-height: 128px; }
  .peds, .kds { grid-template-columns: 1fr; }
  .row-head .seg { max-width: 100%; overflow-x: auto; }
  .legend { gap: 10px; font-size: 12px; }
  .mesa-pick { grid-template-columns: repeat(3, 1fr); }
  .pay { padding: 18px 16px; }
  .pay-total { font-size: 38px; }
  .pay-met { grid-template-columns: repeat(2, 1fr); }
  .hb { grid-template-columns: 90px 1fr 84px; font-size: 12.5px; }
}
@media (min-width: 701px) { .tk-close { display: none; } }
.pos-sync.ping-menu .txt::after { content: " · menú actualizado"; color: var(--azafran); font-weight: 700; }
.hint a { color: var(--tomate-d); font-weight: 700; }

.pos-fm { width: 32px; height: 32px; border-radius: 9px; flex: none; }
@media (max-width: 700px) { .pos-fm { display: none; } }

/* ── Facturación electrónica en el POS ── */
.ecf-on { margin-left: 6px; font-size: 10.5px; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: var(--albahaca-s); color: var(--albahaca); text-transform: none; letter-spacing: 0; }
.ecf-rnc { margin-top: 10px; }
.ecf-hint { font-size: 12.5px; color: var(--tinta-2); margin-top: 6px; display: flex; gap: 6px; align-items: center; }
.ecf-hint svg { color: var(--albahaca); }
.receipt .rc-tipo { font-size: 12px; letter-spacing: .02em; text-transform: uppercase; }
.receipt .rc-qr { display: flex; gap: 12px; align-items: center; justify-content: flex-start; margin: 4px 0; }
.receipt .rc-qr > div:last-child { display: grid; gap: 1px; font-size: 11.5px; text-align: left; }
.receipt .rc-qr img, .receipt .rc-qr canvas { width: 92px; height: 92px; }
.rc-dgii { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 12px; color: #2F5E9E; justify-content: center; }
.rc-dgii.ok { color: var(--albahaca); }
.ecf-list { display: grid; }
.ecf-list > div { display: grid; grid-template-columns: 1.2fr 1.4fr auto auto 130px; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px dashed var(--linea-2); font-size: 13.5px; }
.ecf-list > div:last-child { border: 0; }
.ecf-list .r { text-align: right; }
@media (max-width: 760px) { .ecf-list > div { grid-template-columns: 1fr auto; } .ecf-list > div > span.muted { grid-column: 1; } }
