/* ===== bloque <style> ===== */
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font:
    16px system-ui,
    sans-serif;
  /* iPhone/iPad de lado (muesca): viewport-fit=cover deja el contenido bajo la muesca; esto lo aparta (0 en los demás) */
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
}
/* Cabecera «Cartel»: rosado con crema que chorrea arriba (igual que la página de pedidos) */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  overflow: visible;
  position: sticky;
  top: 0;
  z-index: 25;
  min-height: 84px;
  padding: 22px clamp(14px, 3vw, 28px) 10px;
  background: linear-gradient(180deg, #ff5c97, #ff86b2);
  color: var(--t);
  box-shadow: 0 6px 18px rgba(122, 10, 46, 0.18);
}
header::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 22px;
  pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 22'%3E%3Cpath fill='%23fff7f2' d='M0 0h120v9c-5 0-6 9-13 9s-8-7-14-7-7 11-15 11-8-9-14-9-7 6-13 6-7-8-14-8-7 7-13 7-7-6-12-6-6-3-12-3V0z'/%3E%3C/svg%3E")
    repeat-x 0 0/120px 22px;
}
.tabs {
  display: flex;
  flex-wrap: wrap;
}
button {
  font: inherit;
  border: 0;
  color: #fff;
  cursor: pointer;
  padding: 10px 18px;
}
input,
select {
  font: inherit;
  width: 100%;
  margin: 4px 0;
  padding: 11px 13px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}
.grid button {
  background: var(--c);
  color: var(--t);
  border: 2px solid var(--l);
  border-radius: 18px;
  box-shadow: 0 3px 0 var(--l2);
  text-align: left;
}
.grid small {
  display: block;
}
.row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 6px;
}
#msg {
  position: fixed;
  bottom: calc(14px + var(--insignia, 0px));
  left: 50%;
  transform: translateX(-50%);
  border-radius: 20px;
  border: 2px solid var(--l);
  border-left: 6px solid var(--m);
  display: none;
  gap: 10px;
  justify-content: space-between;
  z-index: 30;
  background: #fff;
  color: var(--t);
  align-items: flex-start;
  width: min(560px, calc(100% - 24px));
  padding: 12px 14px;
  box-shadow:
    0 4px 0 var(--l2),
    0 12px 28px rgba(122, 10, 46, 0.16);
  /* entra deslizando desde abajo cada vez que say() lo muestra (display:none → flex) */
  animation: zf-msg 220ms var(--out) both;
}
@keyframes zf-msg {
  from {
    opacity: 0;
    transform: translate(-50%, 14px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}
#msg button {
  padding: 4px 9px;
  min-height: 36px;
}
.ov {
  position: fixed;
  inset: 0;
  background: rgba(90, 10, 38, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  z-index: 28 !important;
  animation: zf-fade 200ms ease-out both;
}
.ov[hidden] {
  display: none;
}
.ov .card {
  width: 100%;
  max-width: 440px;
  max-height: 90vh;
  overflow: auto;
  margin: 0;
  transform-origin: center;
  animation: zf-dlg 200ms ease-out both;
}
/* Diálogos (ask/choose/yes y #sheet): aparecen con opacidad y escala .96 → 1 */
@keyframes zf-dlg {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes zf-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
#login {
  max-width: 340px;
  margin: 12vh auto;
  padding: 24px;
}
.seg {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}
.seg button {
  flex: 1;
}
label {
  display: block;
  margin-top: 6px;
  font-size: 15.5px;
  font-weight: 700;
}
.ok {
  font-weight: 600;
}
.bad {
  font-weight: 600;
}
a.btn {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 999px;
  text-decoration: none;
  background: #fff;
  color: var(--r2);
  border: 2px solid var(--l);
  box-shadow: 0 3px 0 var(--l2);
  font-weight: 800;
}
.kv {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 12px;
}
h3 {
  margin: 8px 0;
}
.jsonout {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  border: 1px solid var(--l);
  border-radius: 10px;
  padding: 10px;
  max-height: 420px;
  overflow: auto;
}
.g2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.g2 input {
  margin: 0;
}
.chip {
  padding: 8px 14px;
  margin: 3px 3px 0 0;
  border-radius: 999px;
}
.qty {
  display: flex;
  align-items: center;
  gap: 10px;
}
.qty button {
  padding: 6px 12px;
}
#sheet {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 25;
  background: rgba(90, 10, 38, 0.45);
  backdrop-filter: blur(3px);
  animation: zf-fade 200ms ease-out both;
}
#sheet[hidden] {
  display: none;
}
#sbox {
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow: auto;
  overflow-x: hidden;
  margin: 0;
  border-radius: 24px 24px 0 0;
  padding-bottom: 0;
  transform-origin: center bottom;
  animation: zf-dlg 200ms ease-out both;
}
.st {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 6px 0;
}
.st i {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-style: normal;
  flex: none;
}
.st.done i {
  background: var(--green);
  color: #fff;
}
.st.now {
  font-weight: 700;
}
.st.now i {
  background: var(--r);
  color: #fff;
}
.nx {
  margin: 6px 0;
}
.ng > small {
  display: block;
  text-transform: uppercase;
  margin: 0 4px 4px;
  font-weight: 700;
}
.ng > div {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.kpis {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  margin-bottom: 10px;
}
.kpi[data-go] {
  cursor: pointer;
}
.kpi b {
  display: block;
}
.sg {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 10px;
  align-items: start;
}
.sb {
  padding: 8px 10px;
}
.dl {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 3px 0;
  border-bottom: 1px dashed var(--l);
}
.dl:last-child {
  border-bottom: 0;
}
.dl span {
  color: var(--m);
}
.dl b {
  text-align: right;
  white-space: nowrap;
}
.dl.hl {
  border-radius: 8px;
  padding: 5px 7px;
  border-bottom: 0;
  margin: 3px 0;
}
.stbar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}
.stbar .pill {
  padding: 5px 12px;
  border-radius: 999px;
  border: 2px solid var(--l);
}
.adgrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: 10px;
  align-items: start;
}
.adgrid > .card {
  margin-bottom: 0;
  min-width: 0;
  overflow-x: auto;
}
.adgrid > .card:has(#clh) {
  grid-column: 1/-1;
}
details.fold {
  border-top: 2px dashed var(--l);
  padding: 8px 0;
}
details.fold > summary {
  cursor: pointer;
  font-weight: 600;
}
details.fold[open] > summary {
  margin-bottom: 8px;
}
/* Encabezados de columna (Cocina / Caja) como sticker: píldora de color, un poco girada, contador blanco */
.sec {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  margin: 16px 0 12px;
  padding: 8px 10px 8px 16px;
  border-radius: 26px;
  background: var(--r2);
  color: #fff;
  border: 0;
  transform: rotate(-1deg);
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.15);
}
.sec b {
  min-width: 0;
  font-weight: 800;
  font-size: clamp(15px, 4.2vw, 17px);
}
.sec > span {
  flex: none;
  background: #fff;
  color: var(--r2);
  border-radius: 999px;
  padding: 1px 12px;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}
.t th,
.t td {
  padding: 6px 8px;
  text-align: left;
  border-bottom: 1px solid var(--l);
  color: var(--t);
}
.t th {
  color: var(--r2);
  font-weight: 800;
}
.t td:last-child,
.t th:last-child {
  text-align: right;
}
details.hp > summary {
  cursor: pointer;
  font-weight: 600;
}
.hp ol {
  margin: 6px 0;
  padding-left: 20px;
}
.ex {
  border-radius: 8px;
  padding: 6px 8px;
  margin-top: 6px;
}
.xg {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 6px;
  margin-top: 8px;
}
.xi {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  border-radius: 10px;
  padding: 6px 8px;
}
.stk {
  margin-top: 12px;
}
.duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: start;
}
@media (max-width: 860px) {
  .duo {
    grid-template-columns: 1fr;
  }
}
main.wide {
  max-width: 1200px;
}
.sec.k {
  background: var(--r);
}
.sec.k > span {
  color: var(--r);
}
.bad-field {
  border-color: var(--r) !important;
  box-shadow: 0 0 0 3px rgba(217, 0, 77, 0.3);
}
.tabs {
  background: var(--soft);
  padding: 5px;
  border-radius: 24px;
  margin-bottom: 22px;
}
.tabs button {
  background: transparent;
  box-shadow: none;
  border-radius: 999px;
}
.tabs button.on {
  background: var(--r);
  box-shadow: 0 3px 0 var(--rd);
}
.card h2,
.card h3 {
  color: var(--r2);
  letter-spacing: -0.2px;
}
.card h2 {
  font-size: 31px;
}
input:focus,
select:focus {
  outline: 0;
}
.grid {
  gap: 16px;
}
.row {
  padding: 13px 0;
  border-bottom: 1px solid var(--soft);
}
.badge,
.pill {
  border-radius: 99px;
  padding: 5px 10px;
}
.nx {
  border-radius: 12px;
  padding: 10px;
}
/* lenguaje visual del panel */
#app > h1,
h1 {
  color: var(--r2);
  letter-spacing: -0.6px;
}
.grid > .card:first-child {
  border-top: 4px solid var(--pk);
}
@media (max-width: 700px) {
  .tabs {
    overflow: auto;
    flex-wrap: nowrap;
  }
  .tabs button {
    white-space: nowrap;
  }
  .grid {
    display: block;
  }
  .row {
    gap: 10px;
    flex-wrap: wrap;
  }
  button {
    margin-top: 5px;
  }
}
/* ===== Menú por categorías y calculadora (igual que el formulario) ===== */
.guide {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 6px 0 4px;
}
.guide span {
  background: var(--soft);
  color: var(--r2);
  font-weight: 700;
  border-radius: 99px;
  padding: 5px 11px;
  border: 1.5px solid var(--l);
}
.cat {
  border: 2px solid var(--l);
  margin: 12px 0;
  overflow: hidden;
  background: #fff;
  scroll-margin-top: 90px;
}
.cat > .ch {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--t);
  box-shadow: none;
  padding: 16px;
  text-align: left;
  border-radius: 0;
  font-size: 18px;
  margin: 0;
}
.cb {
  padding: 6px 16px 16px;
  border-top: 2px dashed var(--l);
}
.lab {
  font-weight: 700;
  margin: 14px 0 8px;
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--t);
}
.lab i {
  font-style: normal;
  background: var(--r);
  color: #fff;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}
.opts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 8px;
}
.opt {
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: center;
  text-align: center;
  background: #fff;
  color: var(--t);
  border: 2px solid var(--l);
  box-shadow: 0 3px 0 var(--l2);
  padding: 12px 8px;
  margin: 0;
}
.opt span {
  color: var(--m);
  font-weight: 600;
}
.opt.on b,
.opt.on span {
  color: var(--r2);
}
.pr {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  border: 2px solid var(--l);
  padding: 12px 14px;
  margin-top: 14px;
}
.pr big {
  font-size: 26px;
  font-weight: 700;
  color: var(--r2);
}
.rq {
  border: 3px solid #ffadc9;
  border-radius: 20px;
  padding: 12px;
  margin: 12px 0;
  background: #fff7f9;
}
.rq.done {
  border-color: var(--green);
  background: #f1faf6;
}
.rq.shake {
  animation: sk 0.4s;
}
@keyframes sk {
  25% {
    transform: translateX(-7px);
  }
  75% {
    transform: translateX(7px);
  }
}
.rh {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
  font-size: 19px;
  color: var(--t);
}
.rn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--r);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex: none;
}
.done .rn {
  background: var(--green);
}
.rc {
  margin-left: auto;
  font-weight: 700;
  background: #fff;
  color: var(--t);
  border: 2px solid var(--l);
  border-radius: 99px;
  padding: 3px 11px;
  white-space: nowrap;
}
.done .rc {
  border-color: var(--green);
  color: var(--green);
}
.rq .chip {
  font-size: 16px;
  padding: 12px 17px;
}
.miss {
  background: #fff3d6;
  border: 2px solid #d99b1f;
  border-radius: 12px;
  padding: 10px 12px;
  color: #4d3300;
  margin-top: 12px;
  font-weight: 600;
}
button.inc {
  background: var(--l);
  color: var(--r2);
  box-shadow: none;
}
.calc {
  border: 2px solid var(--l);
  padding: 14px;
  margin: 12px 0;
}
.calc .cr {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px dashed var(--l2);
  color: var(--t);
}
.calc .big {
  font-size: 20px;
  font-weight: 700;
  padding: 12px;
  border-radius: 12px;
  margin-top: 10px;
  text-align: center;
}
.big.ok2 {
  background: #d9f1e5;
  color: #0b4f35;
}
.big.no {
  background: #fbdce4;
  color: #8f0f33;
}
.big.neu {
  background: var(--soft);
  color: var(--r2);
}
.calc .ex {
  background: #fff6dc;
  border: 1px dashed #d99b1f;
  border-radius: 10px;
  padding: 8px 10px;
  margin-top: 10px;
  color: #4d3300;
}
.stk {
  position: sticky;
  bottom: 0;
  background: #fff;
  padding: 12px 20px calc(12px + var(--insignia, 0px));
  margin: 14px -20px 0;
  border-top: 2px solid var(--l);
  z-index: 2;
}
@media (max-width: 700px) {
  .stk {
    padding: 12px 17px calc(12px + var(--insignia, 0px));
    margin: 14px -17px 0;
  }
  .opts {
    grid-template-columns: 1fr 1fr;
  }
  .pr {
    flex-direction: column;
    align-items: stretch;
  }
  .pr button {
    width: 100%;
  }
}
/* ===== Contraste: letras, cajas y botones ===== */
html,
body {
  color: var(--t);
}
h3,
h4 {
  color: var(--r2);
}
input::placeholder,
textarea::placeholder {
  color: #8f5068;
  opacity: 1;
}
select option {
  color: var(--t);
  background: #fff;
}
button:disabled,
button.g:disabled {
  opacity: 1;
  background: #f3e4e9;
  color: #6b4a56;
  box-shadow: none;
  cursor: not-allowed;
  border-color: #e8cdd6;
  transform: none;
}
.tabs button,
.ng button {
  color: var(--r2);
}
.tabs button.on,
.ng button.on {
  color: #fff;
}
.chip {
  border: 2px solid var(--l);
}
.chip:disabled {
  background: #f8edf1;
  color: #6b4a56;
  border: 2px dashed var(--l2);
  opacity: 1;
}
/* Etiquetas de estado: píldoras suaves (rosado = neutro, verde = pagado/ok, fresa = alerta) */
.badge {
  border: 1.5px solid var(--l);
}
.badge.bad {
  background: #ffe3ec;
  color: #8f0f33;
  border-color: #ff9fbf;
}
.kpi.w {
  background: #fff7f9;
  animation: kPulse 2.4s ease-in-out infinite;
}
/* «Siguiente:» y avisos de paso: nota ámbar suave */
.nx {
  background: var(--as);
  border: 1.5px solid #f3d29a;
  color: #4d3300;
}
.ex {
  background: var(--as);
  border: 1.5px dashed #e2b25c;
  color: #4d3300;
}
.xi {
  background: #fff;
  border: 1.5px solid var(--l);
}
.row {
  border-bottom-color: var(--soft);
}
.st.done {
  color: var(--t);
}
.st.now {
  color: var(--t);
}
.jsonout {
  color: var(--t);
}
details.hp > summary,
.hp summary,
details.fold > summary {
  color: var(--r2);
}
/* Píldora de sede/rol: blanca con texto vino */
#who {
  position: relative;
  font-weight: 800;
  text-transform: capitalize;
  font-size: 14.5px;
  background: #fff;
  border: 0;
  border-radius: 999px;
  color: var(--r2);
  box-shadow: 0 3px 0 rgba(122, 10, 46, 0.18);
  padding: 7px 13px;
}
.logo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff0f4;
  border: 2px solid #f4b6c6;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.logo svg {
  width: 34px;
  height: 34px;
  display: block;
}
.hl {
  display: inline-flex;
  align-items: center;
}
.wm {
  height: 54px;
  width: auto;
  display: block;
}
@media (max-width: 700px) {
  .wm {
    height: 46px;
  }
}
/* ===== Ajuste del logo (no se corta) ===== */
header .hl {
  overflow: visible;
  line-height: 0;
  align-items: center;
  position: relative;
}
header .wm {
  display: block;
}
/* ===== Navegación lateral (escritorio) / barra inferior (celular) ===== */
body:not(.hasnav) .side {
  display: none;
}
.side {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
/* Grupos y opciones del menú: píldoras blancas con borde y sombra sólida (estilo Cartel) */
.side .gh {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  background: #fff;
  color: var(--r2);
  border: 2px solid var(--l);
  box-shadow: 0 3px 0 var(--l2);
  border-radius: 999px;
  text-align: left;
  margin: 0;
  transform: none;
  padding: 4px 14px 4px 5px;
  transition:
    background-color 150ms ease-out,
    box-shadow 160ms var(--out),
    transform 160ms var(--out);
}
.side .gh .gic {
  flex: none;
}
.side .gh .nm {
  flex: 1;
}
.side .gh .chev {
  transition: transform 200ms var(--out);
  color: var(--r);
}
.side .grp.open .chev {
  transform: rotate(90deg);
}
.side .grp:not(.multi) .chev {
  display: none;
}
.side .gi {
  display: none;
  flex-direction: column;
  gap: 7px;
  margin-left: 22px;
  padding: 8px 0 6px 14px;
}
.side .grp.multi.open .gi {
  display: flex;
  animation: zfin 200ms var(--out);
}
.side .gi button {
  display: flex;
  gap: 8px;
  justify-content: flex-start;
  align-items: center;
  background: #fff;
  color: var(--r2);
  border: 2px solid var(--l);
  box-shadow: 0 3px 0 var(--l2);
  margin: 0;
  text-align: left;
  font-weight: 700;
  transform: none;
  position: relative;
  padding: 7px 14px;
  border-radius: 999px;
  transition:
    background-color 150ms ease-out,
    box-shadow 160ms var(--out),
    transform 160ms var(--out);
  font-size: 15.5px;
  min-height: 44px;
}
.side .gh:active,
.side .gi button:active {
  transform: translateY(2px) scale(0.98);
  box-shadow: 0 1px 0 var(--l2);
}
.nbadge {
  background: var(--r);
  color: #fff;
  font-weight: 800;
  border-radius: 99px;
  padding: 1px 7px;
  min-width: 20px;
  text-align: center;
}
.nbadge[hidden] {
  display: none;
}
@media (min-width: 960px) {
  body.hasnav #app {
    max-width: none;
    margin: 0;
    padding: 24px 36px 56px 286px;
  }
  body.hasnav #app > section {
    max-width: 1180px;
  }
  body.hasnav #app.wide > section {
    max-width: 1560px;
  }
  .side {
    position: fixed;
    top: var(--hh, 92px);
    left: 0;
    bottom: 0;
    overflow: auto;
    z-index: 15;
    margin: 0;
    border-radius: 0;
  }
}
@media (max-width: 959px) {
  body.hasnav #msg {
    bottom: calc(150px + var(--insignia, 0px));
  }
  .side {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 12;
    flex-direction: row;
    gap: 2px;
    padding: 6px 6px calc(6px + var(--insignia, 0px) + env(safe-area-inset-bottom, 0px));
    margin: 0;
    border-top: 2px solid var(--l);
    border-radius: 22px 22px 0 0;
  }
  .side .grp {
    flex: 1;
    min-width: 0;
  }
  /* en la barra inferior el grupo no lleva borde: solo el activo se pinta de fresa */
  .side .gh {
    flex-direction: column;
    gap: 2px;
    align-items: center;
    text-align: center;
    position: relative;
    background: transparent;
    border: 0;
    box-shadow: none;
    border-radius: 16px;
    padding: 6px 2px;
    transform: none;
  }
  .side .gh .chev {
    display: none;
  }
  .side .gh .nm {
    flex: none;
  }
  .side .gh .nbadge {
    position: absolute;
    top: 0;
    right: 12%;
  }
  .side .gi {
    display: none !important;
  }
  .side .grp.act.multi .gi {
    display: flex !important;
    flex-direction: row;
    position: fixed;
    left: 0;
    right: 0;
    bottom: calc(72px + var(--insignia, 0px) + env(safe-area-inset-bottom, 0px));
    border: 0;
    margin: 0;
    padding: 8px 10px;
    gap: 6px;
    overflow-x: auto;
    z-index: 11;
  }
  .side .gi button {
    white-space: nowrap;
    flex: none;
    padding: 7px 14px;
  }
}
/* ===== Estética v2: burbujas difuminadas, cabecera y menú ===== */
@keyframes zfin {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
/* Cabecera */
#who:empty {
  display: none;
}
#who::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 8px;
  background: #20b15a;
  box-shadow: 0 0 0 3px var(--gs);
}
/* Menú: grupos */
.side .gh .gic {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 19px;
}
.side .grp.act > .gh .nbadge {
  box-shadow: none;
}
/* Menú: subcategorías */
.side .gi button::before {
  content: '';
  position: absolute;
  left: -18px;
  top: 50%;
  width: 7px;
  height: 7px;
  margin-top: -3.5px;
  border-radius: 50%;
  background: var(--l2);
}
@media (min-width: 960px) {
  .side {
    gap: 8px;
    scrollbar-width: thin;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}
@media (max-width: 959px) {
  .side .gh .gic {
    width: auto;
    height: auto;
    font-size: 22px;
    border-radius: 0;
  }
  .side .grp.act > .gh .gic {
    border: 0;
  }
  .side .grp.act.multi .gi {
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    border-top: 2px solid var(--l);
    border-radius: 18px 18px 0 0;
  }
  .side .gi button::before {
    display: none;
  }
}
.dbox > .ch {
  cursor: default;
  transform: none;
}
.dbox .kpis {
  margin: 10px 0 0;
}
.dbox.rosa {
  border-color: var(--r);
}
.dbox.rosa > .ch {
  background: var(--soft);
  color: var(--r2);
}
.dbox.neutro {
  border-color: var(--l);
}
.dbox.neutro > .ch {
  background: #fff7f2;
  color: var(--t);
}
.dbox.verde {
  border-color: #8fd0a6;
}
.dbox.verde > .ch {
  background: var(--gs);
  color: var(--green);
}
.dbox.verde > .ch .sm {
  color: var(--green);
}
.kpi {
  transition:
    transform 160ms var(--out),
    box-shadow 160ms var(--out),
    border-color 150ms ease-out;
}
.kpi[data-go]:active {
  transform: translateY(2px) scale(0.98);
  box-shadow: 0 1px 0 var(--l2);
}
.dbox > .ch > span:first-child {
  display: inline-block;
  transition: transform 300ms var(--out);
}
@media (hover: hover) and (pointer: fine) {
  .kpi[data-go]:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 0 var(--l2);
    border-color: var(--pk);
  }
  .dbox:hover > .ch > span:first-child {
    transform: rotate(-10deg) scale(1.15);
  }
}
@keyframes dbIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes kIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.94);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes kPulse {
  0%,
  100% {
    box-shadow:
      0 3px 0 var(--l2),
      0 0 0 2px rgba(255, 92, 151, 0.25);
  }
  50% {
    box-shadow:
      0 3px 0 var(--l2),
      0 0 0 6px rgba(255, 92, 151, 0.12);
  }
}
@keyframes kChg {
  0% {
    background: var(--l);
    transform: scale(1.07);
  }
  100% {
    background: #fff;
    transform: none;
  }
}
@keyframes bPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.09);
  }
}
.kpi.chg {
  animation: kChg 1.2s ease;
}
.ent .dbox {
  animation: dbIn 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.ent .dbox:nth-child(2) {
  animation-delay: 0.12s;
}
.ent .dbox:nth-child(3) {
  animation-delay: 0.24s;
}
.ent .dbox:nth-child(4) {
  animation-delay: 0.36s;
}
.ent .kpi {
  animation: kIn 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.ent .kpi:nth-child(1) {
  animation-delay: 0.2s;
}
.ent .kpi:nth-child(2) {
  animation-delay: 0.25s;
}
.ent .kpi:nth-child(3) {
  animation-delay: 0.3s;
}
.ent .kpi:nth-child(4) {
  animation-delay: 0.35s;
}
.ent .kpi:nth-child(5) {
  animation-delay: 0.4s;
}
.ent .kpi:nth-child(6) {
  animation-delay: 0.45s;
}
.ent .kpi:nth-child(7) {
  animation-delay: 0.5s;
}
.ent .kpi:nth-child(8) {
  animation-delay: 0.55s;
}
@media (prefers-reduced-motion: reduce) {
  .ent .dbox,
  .ent .kpi,
  .kpi.w,
  .kpi.chg,
  .dbadge {
    animation: none !important;
  }
  .kpi,
  .dbox > .ch > span:first-child {
    transition: none;
  }
}
.dbadge {
  animation: bPulse 1.8s ease-in-out infinite;
  background: var(--r);
  color: #fff;
  font-weight: 800;
  border-radius: 99px;
  padding: 5px 12px;
  white-space: nowrap;
  box-shadow: 0 3px 0 var(--rd);
}
.cbtns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}
.cbtns button {
  width: 100%;
  margin: 0;
}
#cres {
  margin-top: 10px;
}
#cres:empty {
  display: none;
}
.ccd {
  border: 2px solid var(--green);
  background: var(--gs);
  border-radius: 18px;
  padding: 12px;
}
.cols2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 28px;
}
.cols2 .row {
  flex-wrap: nowrap;
  min-width: 0;
}
.cols2 .row > span {
  min-width: 0;
}
@media (max-width: 700px) {
  .cols2 {
    grid-template-columns: 1fr;
  }
}
.orow {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding-bottom: 10px;
  border-bottom: 2px dashed var(--l);
  margin-bottom: 12px;
}
/* Número del pedido (numeral + 4 letras) en letra Pacifico (solo en las pestañas de pedidos) */
#p-pedidos .orow > b:first-child,
#p-online .orow > b:first-child,
#p-entregas .orow > b:first-child {
  font: 400 21px/1.2 var(--fh);
  color: var(--r);
  letter-spacing: 0.01em;
}
.kd {
  background: var(--soft);
  color: var(--r2);
  border-radius: 99px;
  padding: 4px 12px;
}
.ogrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}
.obox {
  background: #fff;
  border: 2px solid var(--soft);
  border-radius: 18px;
  padding: 12px 14px;
}
.ot {
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--m);
  margin-bottom: 8px;
}
.oit {
  padding: 6px 0;
  border-bottom: 1px dashed var(--l);
}
.oit:last-child {
  border-bottom: 0;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}
.ol {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 5px 0;
}
.ol span {
  color: var(--m);
}
.ol b {
  text-align: right;
}
.opay {
  margin-bottom: 12px;
}
.pcs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.pc {
  flex: 1 1 130px;
  background: var(--soft);
  border-radius: 16px;
  padding: 9px 12px;
}
.onote {
  white-space: pre-line;
  margin-bottom: 12px;
}
@media (max-width: 700px) {
  .ogrid {
    grid-template-columns: 1fr;
  }
}
#msg .mi {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--soft);
  display: grid;
  place-items: center;
  font-size: 20px;
  line-height: 1;
}
#msg.ok .mi {
  background: var(--gs);
}
#msg.er .mi {
  background: #ffe3ec;
}
#msg .mb {
  flex: 1;
  min-width: 0;
}
#msg .mt {
  font-weight: 800;
  line-height: 1.3;
  padding-top: 2px;
}
#msg .ms {
  margin-top: 2px;
  overflow-wrap: anywhere;
}
#msg .ml {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed var(--l);
  line-height: 1.4;
}
#msg .li {
  flex: none;
  width: 20px;
  text-align: center;
}
#msg .lc {
  min-width: 0;
  overflow-wrap: anywhere;
}
#msg .la {
  margin-top: 2px;
  color: var(--m);
  font-weight: 600;
}
.obox.kit .oit > b {
  font-size: 17px;
}
.kq {
  color: var(--r);
}
.vt {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  margin-top: 6px;
  border: 1.5px dashed var(--l2);
  border-radius: 14px;
  background: var(--soft);
}
.vc {
  font-family: monospace;
  letter-spacing: 0.04em;
}
.vr {
  text-align: right;
}
.vr b {
  display: block;
  font-size: 17px;
}
.badge.okb {
  background: var(--gs);
  color: var(--green);
  border-color: #a9dcb9;
}
/* ===== Fondo animado visible: tarjetas, cabecera y menú translúcidos ===== */
#tag {
  flex: 1;
  min-width: 0;
  position: relative;
  text-align: center;
  padding: 2px 18px 4px;
  line-height: 1.3;
  transition:
    opacity 0.45s ease,
    transform 0.45s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  /* título del cartel en Pacifico; vino sobre el rosado para pasar 4.5:1 */
  color: var(--t);
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.4);
  font-family: var(--fh);
  font-weight: 400;
  font-size: clamp(18px, 2.2vw, 26px);
}
#tag.out {
  opacity: 0;
  transform: translateY(6px);
}
#tag small {
  display: block;
  font: 800 12px var(--fb);
  text-transform: uppercase;
  margin-top: 0;
  color: var(--t);
  text-shadow: none;
  letter-spacing: 0.14em;
}
@media (max-width: 700px) {
  #tag {
    display: none;
  }
}
/* ===== v2 · Legibilidad: tipografía Baloo 2 + textos más grandes ===== */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body,
button,
input,
select,
textarea {
  font-family: var(--fb);
}
body {
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}
input,
select,
textarea {
  font-size: 17px;
  font-weight: 600;
  min-height: 44px;
  border: 2px solid var(--l);
  border-radius: 14px;
  background: #fff;
  color: var(--t);
  box-shadow: none;
  transition:
    border-color 150ms ease-out,
    box-shadow 150ms ease-out;
}
/* Botones: píldora fresa con sombra sólida; al presionar baja 2px y la sombra queda en 1px */
button {
  font-size: 17px;
  font-weight: 800;
  min-height: 46px;
  border-radius: 999px;
  background: var(--r);
  box-shadow: 0 4px 0 var(--rd);
  transition:
    transform 160ms var(--out),
    box-shadow 160ms var(--out),
    background-color 150ms ease-out;
}
button:active {
  transform: translateY(2px) scale(0.98);
  box-shadow: 0 1px 0 var(--rd);
}
h1,
h2,
h3,
.card h2,
.card h3 {
  font-family: var(--fb);
  font-weight: 800;
}
.card h3 {
  line-height: 1.2;
  color: var(--r2);
  font-size: 19px;
  letter-spacing: -0.01em;
}
h4 {
  margin: 12px 0 4px;
  font-size: 19px;
  font-family: var(--fb);
  font-weight: 800;
  color: var(--r2);
}
b,
strong {
  font-weight: 800;
}
.sm,
.hint {
  font-size: 15.5px;
  line-height: 1.5;
}
details {
  font-size: 15.5px;
}
.badge,
.pill {
  font-size: 13.5px;
  font-weight: 800;
}
.chip {
  font-size: 16.5px;
  min-height: 46px;
  font-weight: 700;
}
.guide span {
  font-size: 14.5px;
}
.lab {
  font-size: 17px;
}
.opt b {
  font-size: 17px;
}
.opt span {
  font-size: 16px;
}
.rc {
  font-size: 15px;
}
.miss {
  font-size: 16.5px;
}
.calc .ex,
.ex {
  font-size: 15px;
}
.calc .cr {
  font-size: 16.5px;
}
.sv .fee {
  font-size: 14.5px;
}
.kv {
  font-size: 15.5px;
}
.jsonout {
  font-size: 14px;
}
.st i {
  background: var(--l);
  color: var(--t);
  font-size: 14px;
}
.ng button {
  padding: 8px 10px;
  font-size: 15.5px;
}
.kpi span {
  font-size: 14.5px;
  font-weight: 600;
}
.kpi b {
  font-size: 25px;
}
.sb h4 {
  margin: 0 0 4px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--m);
  font-size: 13.5px;
}
.dl {
  font-size: 15.5px;
}
.dl.hl b {
  font-size: 17.5px;
}
.stbar .pill {
  font-size: 14.5px;
}
table.t {
  width: 100%;
  border-collapse: collapse;
  font-size: 15.5px;
}
.side .gh {
  min-height: 48px;
}
.side .gh .chev {
  font-size: 13px;
}
.nbadge {
  font-size: 12.5px;
}
.dbadge {
  font-size: 14px;
}
.kd {
  font-size: 14px;
  font-weight: 800;
}
.ot {
  font-size: 13.5px;
}
.oit b {
  font-size: 17px;
}
.chips span {
  background: var(--soft);
  border: 1.5px solid var(--l);
  color: var(--t);
  border-radius: 99px;
  padding: 2px 10px;
  font-size: 14.5px;
  font-weight: 600;
}
.ol {
  font-size: 15.5px;
}
.pc span {
  display: block;
  color: var(--m);
  font-size: 13.5px;
}
.pc b {
  font-size: 17.5px;
}
.pc.big b {
  font-size: 23px;
}
.onote {
  font-size: 15.5px;
}
.orow b {
  margin-right: auto;
  font-size: 18px;
}
#msg .mt {
  font-size: 16.5px;
}
#msg .ms {
  font-size: 15.5px;
}
#msg .ml {
  font-size: 15px;
}
.tabs button {
  font-size: 15.5px;
}
@media (max-width: 959px) {
  .side .gh {
    min-height: 56px;
  }
  .side .gh .chev {
    font-size: 12px;
  }
}
@media (max-width: 700px) {
  body {
    font-size: 17px;
  }
}
.chips span.nn {
  background: #ffe3ec;
  color: #8f0f33;
  font-weight: 800;
  border: 1.5px solid #ff9fbf;
}
.rq.optq {
  border-color: var(--l);
  background: #fff;
}
.locok {
  display: flex;
  gap: 12px;
  align-items: center;
  border-radius: 16px;
  padding: 14px;
  margin-top: 10px;
  animation: lpop 0.5s ease both;
}
.locok .lk {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 26px;
  font-weight: 800;
}
.locok b {
  font-size: 18px;
}
@keyframes lpop {
  0% {
    transform: scale(0.85);
    opacity: 0;
  }
  60% {
    transform: scale(1.04);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}
.tstok {
  display: none;
  position: fixed;
  top: 96px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 60;
  background: #14744f;
  color: #fff;
  font-weight: 800;
  font-size: 18px;
  border-radius: 99px;
  padding: 14px 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}
#cmap {
  height: 62vh;
  min-height: 380px;
  border-radius: 14px;
  margin-top: 8px;
  background: #f3e6ea;
}
#cmres {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 4px;
}
#cmres button {
  text-align: left;
  width: 100%;
  background: var(--c);
  color: var(--t);
  border: 2px solid var(--l);
  border-radius: 16px;
  box-shadow: 0 3px 0 var(--l2);
}
.cmi {
  min-width: 210px;
  font-size: 15px;
  line-height: 1.4;
}
.cmi a {
  display: inline-block;
  margin-top: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
}
/* ===== Zona Fresa · panel «Cartel» (colores de la página de pedidos) =====
   Contraste verificado: fresa (--r) con texto blanco ≈ 5,2:1; vino (--t, --r2) sobre blanco ≥ 9:1;
   texto secundario (--m) sobre blanco ≈ 8:1; verde (--green) sobre --gs ≈ 5,7:1; ámbar (--amber) sobre --as ≈ 4,6:1. */
:root {
  color-scheme: light;
  /* alto de la insignia «Powered by Netlify» (plan gratis): lo de abajo se sube esto. Si se quita la insignia, poner 0px */
  --insignia: 0px;
  --r: #d9004d;
  --r2: #7a0a2e;
  --rd: #93002f;
  --pk: #ff5c97;
  --bg: #fff7f2;
  --t: #5a0a26;
  --m: #7d3a52;
  --c: #fff;
  --l: #ffd0de;
  --l2: #ffc2d4;
  --soft: #fff0f4;
  --green: #1f6b3a;
  --gs: #e3f5e9;
  --amber: #a65b10;
  --as: #fff2dc;
  --fb: 'Baloo 2', 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --fh: 'Pacifico', 'Brush Script MT', cursive;
  --out: cubic-bezier(0.23, 1, 0.32, 1);
  --shadow: 0 4px 0 var(--l2);
}
/* Fondo: crema con un rosado arriba; el canvas de triángulos (#zf-fondo, z-index -1) se pinta encima y sigue visible */
body {
  background:
    linear-gradient(180deg, #ffc4d8 0, #ffe6ee 240px, var(--bg) 520px) no-repeat,
    var(--bg);
  color: var(--t);
  font-family: var(--fb);
  line-height: 1.45;
}
/* logo en una píldora blanca */
header .hl {
  background: #fff;
  border: 0;
  border-radius: 16px;
  padding: 5px 12px;
  box-shadow: 0 3px 0 rgba(122, 10, 46, 0.18);
}
header .wm {
  height: 46px;
  width: auto;
  max-width: min(210px, 36vw);
  object-fit: contain;
}
main {
  max-width: 1600px;
  margin: 0 auto;
  padding: 22px 26px 56px;
}
body.hasnav #app {
  background: transparent;
}
/* Cambio de pestaña con show(id): fundido corto de la sección que aparece (refresh() no la vuelve a ocultar, así que no se repite) */
body.hasnav #app > section:not([hidden]) {
  animation: zf-fade 150ms ease-out both;
}
.tabs {
  gap: 8px;
}
.card {
  background: #fff;
  border: 2px solid var(--l);
  border-radius: 22px;
  padding: 18px;
  margin-bottom: 14px;
  box-shadow: 0 4px 0 var(--l2);
}
/* Pedido que espera cobro («Falta cobrar en caja» / «Falta confirmar transferencia»): borde punteado rosado.
   nextHint() marca ese aviso con .nx.pay */
.card:has(> .nx.pay) {
  border: 3px dashed transparent;
  background:
    linear-gradient(#fff, #fff) padding-box,
    repeating-linear-gradient(45deg, var(--pk) 0 10px, var(--l) 10px 20px) border-box;
}
.nx.pay {
  background: #ffe3ec;
  border-color: #ff9fbf;
  color: #8f0f33;
}
.sm,
.hint,
label,
.kpi span,
.kv span:nth-child(odd),
h5.lh,
.st,
.grid small {
  color: var(--m);
}
/* Secundarios: blancos con borde rosado y sombra rosada */
button.g {
  background: #fff;
  color: var(--r2);
  border: 2px solid var(--l);
  box-shadow: 0 3px 0 var(--l2);
}
button.g:active,
.chip:active,
.opt:active,
.grid button:active,
#cmres button:active {
  box-shadow: 0 1px 0 var(--l2);
}
button.on {
  background: var(--r);
  color: #fff;
}
@media (hover: hover) and (pointer: fine) {
  button:hover {
    background-color: #c40045;
  }
  button.g:hover,
  .grid button:hover,
  #cmres button:hover,
  .opt:hover,
  .chip:not(.on):hover,
  button.inc:hover {
    background-color: var(--soft);
    border-color: var(--l2);
  }
  button.on:hover {
    background-color: #c40045;
  }
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(217, 0, 77, 0.35);
  outline-offset: 2px;
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--pk);
  box-shadow: 0 0 0 3px rgba(255, 92, 151, 0.2);
}
.ng {
  background: #fff;
  border: 2px solid var(--l);
  border-radius: 20px;
  padding: 8px;
}
.ng > small {
  font-size: 12.5px;
  color: var(--m);
  letter-spacing: 0.08em;
}
.ng button {
  box-shadow: none;
}
.side {
  scrollbar-color: var(--l2) transparent;
}
.side .grp {
  border-radius: 24px;
}
.side .gh {
  font-family: var(--fb);
  font-size: 15px;
  font-weight: 800;
}
.side .gh .gic {
  background: var(--soft);
  border: 0;
  box-shadow: none;
}
/* grupo con varias opciones abierto: rosado suave; la opción elegida va en fresa */
.side .grp.act.multi > .gh {
  background: var(--soft);
  border-color: var(--pk);
}
.side .grp.act > .gh .gic {
  background: #fff;
}
.side .grp.act > .gh .chev {
  color: var(--r2);
}
/* grupo de una sola opción activo = opción activa: fresa con texto blanco */
.side .grp.act:not(.multi) > .gh,
.side .gi button.on {
  background: var(--r);
  border-color: var(--r);
  color: #fff;
  box-shadow: 0 3px 0 var(--rd);
}
.side .grp.act:not(.multi) > .gh .gic {
  background: rgba(255, 255, 255, 0.22);
}
.side .grp.act:not(.multi) > .gh:active,
.side .gi button.on:active {
  box-shadow: 0 1px 0 var(--rd);
}
.side .gi {
  border-left: 2px dotted var(--l2);
}
.side .gi button.on::before {
  background: var(--r);
  box-shadow: 0 0 0 3px var(--l);
}
@media (hover: hover) and (pointer: fine) {
  .side .grp:not(.act) > .gh:hover,
  .side .gi button:not(.on):hover {
    background: var(--soft);
  }
  .side .grp.act:not(.multi) > .gh:hover,
  .side .gi button.on:hover {
    background: #c40045;
  }
}
.side .nbadge {
  background: var(--r);
  box-shadow: none;
}
.side .grp.act > .gh .nbadge {
  background: #fff;
  color: var(--r);
  border: 1.5px solid var(--l);
}
.kpis {
  gap: 12px;
}
.kpi {
  border: 2px solid var(--l);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 3px 0 var(--l2);
  padding: 14px;
}
.kpi b {
  color: var(--r2);
  font-variant-numeric: tabular-nums;
}
.kpi.w {
  border-color: var(--pk);
}
.sg,
.adgrid,
.sb {
  background: #fff;
  border: 2px solid var(--l);
  border-radius: 20px;
}
.stbar .pill {
  background: #fff;
  border-color: var(--l);
  color: var(--r2);
}
.stbar .pill.okp {
  border-color: #a9dcb9;
  color: var(--green);
  background: var(--gs);
}
.stbar .pill.nop {
  border-color: #ff9fbf;
  color: #8f0f33;
  background: #ffe3ec;
}
.badge {
  background: var(--soft);
  color: var(--r2);
}
.chip {
  background: #fff;
  color: var(--r2);
  border-color: var(--l);
  box-shadow: 0 3px 0 var(--l2);
}
.chip.on {
  background: var(--r);
  border-color: var(--r);
  color: #fff;
  box-shadow: 0 3px 0 var(--rd);
}
.jsonout {
  background: #fff7f2;
  border-color: var(--l);
}
.dl {
  border-color: var(--l);
}
.dl.hl {
  background: var(--soft);
}
.dl.hl span {
  color: var(--t);
}
.cat {
  border-color: var(--l);
  border-radius: 22px;
  box-shadow: 0 4px 0 var(--l2);
}
.cat.open {
  border-color: var(--pk);
}
.cat > .ch {
  background: #fff;
}
.cat.open > .ch {
  background: var(--soft);
  color: var(--r2);
}
.opt {
  border-color: var(--l);
  border-radius: 18px;
}
.opt.on {
  border-color: var(--r);
  background: var(--soft);
  box-shadow: 0 3px 0 var(--r);
}
.pr,
.calc {
  background: var(--soft);
  border-color: var(--l);
  border-radius: 18px;
}
#flow {
  border: 2px solid var(--pk);
  background: #fff9fb;
}
#msg.ok {
  border-left-color: var(--green);
}
#msg.er {
  border-left-color: var(--r);
}
#sbox,
.ov .card,
#login {
  background: #fff;
  border-color: var(--l);
  box-shadow:
    0 4px 0 var(--l2),
    0 18px 40px rgba(122, 10, 46, 0.18);
}
.ok,
.locok b {
  color: var(--green);
}
.bad {
  color: #a8003c;
}
.locok {
  background: var(--gs);
  border: 2px solid #a9dcb9;
  box-shadow: none;
}
.locok .lk {
  background: var(--green);
}
.locok .sm {
  color: var(--green);
}
a {
  color: var(--r2);
}
/* menú lateral sin fondo propio: deja ver el fondo de triángulos («el pliegue») */
@media (min-width: 960px) {
  .side {
    width: 258px;
    background: transparent;
    border-right: 0;
    box-shadow: none;
    padding: 16px 12px 16px 16px;
  }
}
@media (max-width: 959px) {
  body.hasnav #app {
    padding-bottom: calc(156px + var(--insignia, 0px));
  }
  .side {
    -webkit-backdrop-filter: blur(1px);
    backdrop-filter: blur(1px);
    background: rgba(255, 255, 255, 0.97);
    border-color: var(--l);
    box-shadow: 0 -4px 18px rgba(122, 10, 46, 0.1);
  }
  .side .grp.act > .gh,
  .side .grp.act.multi > .gh {
    background: var(--r);
    color: #fff;
    box-shadow: 0 3px 0 var(--rd);
  }
  .side .grp.act > .gh .gic {
    background: transparent;
  }
  .side .grp.act.multi .gi {
    background: rgba(255, 247, 242, 0.97);
    border-color: var(--l);
    box-shadow: 0 -4px 14px rgba(122, 10, 46, 0.08);
  }
  .side .gi button {
    font-size: 15px;
    background: #fff;
  }
  main {
    padding: 16px 14px 44px;
  }
}
@media (max-width: 600px) {
  header {
    min-height: 72px;
    padding: 20px 12px 8px;
  }
  header .hl {
    padding: 4px 10px;
  }
  header .wm {
    height: 38px;
  }
  #who {
    font-size: 12px;
    padding: 6px 9px;
  }
  #tag {
    display: none;
  }
  .card {
    padding: 15px;
    border-radius: 20px;
  }
  .card h3 {
    font-size: 18px;
  }
  .kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .kpi b {
    font-size: 21px;
  }
  .adgrid {
    grid-template-columns: 1fr;
  }
}
/* Movimiento reducido: nada se desplaza ni escala; solo quedan fundidos cortos en diálogos, avisos y cambio de pestaña */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
  .ov:not([hidden]),
  .ov:not([hidden]) > .card,
  #sheet:not([hidden]),
  #sheet:not([hidden]) > #sbox,
  body.hasnav #app > section:not([hidden]) {
    animation: zf-fade 150ms ease-out both !important;
  }
  #msg {
    animation: zf-fade 150ms ease-out both !important;
  }
  button:active,
  .side .gh:active,
  .side .gi button:active,
  .kpi[data-go]:active {
    transform: none;
  }
}

/* ===== bloque <style> ===== */
/* Todo texto suelto sobre el fondo animado va dentro de un cuadro */
#onl > .sm,
#colk > .sm,
#colc > .sm,
#list > .sm,
#cajab > .sm,
#adm > .sm,
#ent > .sm,
#refundlist > .sm,
#represult > .sm,
#cmp > .sm,
#cardresult > .sm,
#addrresult > .sm,
#dash > .sm,
#help > .sm,
#onl > p,
#colk > p,
#colc > p,
#list > p,
#adm > p,
#ent > p,
#refundlist > p,
#represult > p,
#cmp > p {
  background: #fff;
  border: 2px solid var(--l);
  border-radius: 22px;
  padding: 14px 18px;
  margin: 0 0 12px;
  box-shadow: 0 4px 0 var(--l2);
  color: var(--t);
}
/* subtítulos de grupo (Por preparar, Mostrador…): píldora blanca */
h5.lh {
  margin: 12px 0 6px;
  text-transform: uppercase;
  display: inline-block;
  background: #fff;
  border: 2px solid var(--l);
  border-radius: 99px;
  padding: 5px 16px;
  color: var(--r2);
  font-size: 14px;
  letter-spacing: 0.04em;
  box-shadow: 0 3px 0 var(--l2);
}
#adm > .sb,
#ent > .sb {
  background: #fff;
}

/* ===== bloque <style id="zf-dash"> ===== */
/* ===== Dashboard: gráficas legibles (letra de tamaño fijo, sin escalado) ===== */
.kpi b {
  overflow-wrap: anywhere;
  line-height: 1.15;
}
#dsh .adgrid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
}
#dsh .adgrid > .card.wide {
  grid-column: 1/-1;
}
/* barras verticales */
#dsh .bc,
#dsh .bs,
#dsh .bx {
  display: flex;
  gap: 3px;
}
#dsh .bc {
  position: relative;
  align-items: flex-end;
  height: 220px;
  padding-top: 26px;
  margin-top: 6px;
  border-bottom: 2px solid var(--l2);
}
#dsh .bs {
  position: relative;
  height: 240px;
  padding: 24px 0;
  margin-top: 6px;
}
#dsh .bs::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  border-top: 2px solid var(--l2);
  z-index: 0;
}
#dsh .col {
  flex: 1 1 0;
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: 8px;
  position: relative;
  z-index: 1;
}
#dsh .bc .col {
  justify-content: flex-end;
  border-radius: 8px 8px 0 0;
}
#dsh .col:hover,
#dsh .col.tpon {
  background: var(--soft);
}
#dsh .up,
#dsh .dn {
  height: 50%;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
#dsh .up {
  justify-content: flex-end;
}
#dsh .dn {
  justify-content: flex-start;
}
#dsh .bb {
  display: block;
  flex: none;
  width: 78%;
  max-width: 60px;
  border-radius: 6px 6px 0 0;
  background: var(--r);
}
#dsh .dn .bb {
  border-radius: 0 0 6px 6px;
}
#dsh .bb.g {
  background: var(--green);
}
#dsh .bb.r {
  background: var(--r);
}
#dsh .col.pk .bb {
  background: var(--r2);
}
#dsh .bv {
  flex: none;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  color: var(--t);
  white-space: nowrap;
  margin: 0 0 4px;
}
#dsh .dn .bv {
  margin: 4px 0 0;
}
#dsh .bx {
  min-height: 22px;
  align-items: flex-start;
}
#dsh .bx span {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  justify-content: center;
  margin-top: 7px;
  font-size: 13px;
  line-height: 1;
  font-weight: 700;
  color: var(--m);
  white-space: nowrap;
}
#dsh .bxc {
  margin-top: 8px;
  text-align: center;
  font-size: 13px;
  color: var(--m);
  font-weight: 600;
}
@media (hover: hover) {
  #dsh .bc:hover .col,
  #dsh .bs:hover .col {
    opacity: 0.55;
  }
  #dsh .bc .col:hover,
  #dsh .bs .col:hover,
  #dsh .col.tpon {
    opacity: 1;
  }
}
/* barras horizontales (top productos, gastos) */
#dsh .hb .row {
  display: flex;
  flex-wrap: nowrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 0 0 5px;
  margin: 0;
  border: 0;
  font-size: 16px;
}
#dsh .hb .row span {
  min-width: 0;
  overflow-wrap: anywhere;
}
#dsh .hb .row b {
  white-space: nowrap;
  font-size: 16px;
}
#dsh .hbt {
  height: 14px;
  border-radius: 7px;
  background: var(--soft);
  overflow: hidden;
}
#dsh .hbt > i {
  display: block;
  height: 100%;
  border-radius: 7px;
  background: var(--r);
}
/* tabla por sede */
#dsh .dtb {
  font-size: 15px;
}
#dsh .dtb th {
  font-size: 13px;
  color: var(--m);
  font-weight: 700;
}
#dsh .dtb th,
#dsh .dtb td {
  padding: 10px 9px;
}
#dsh .dtb th:first-child,
#dsh .dtb td:first-child {
  position: sticky;
  left: 0;
  background: #fff;
  z-index: 1;
}
/* tooltip */
body #dtip {
  font-size: 14px;
  line-height: 1.4;
  min-width: 200px;
  max-width: 300px;
  padding: 11px 14px;
}
body #dtip .tt {
  font-size: 15px;
}
@media (max-width: 600px) {
  #dsh .bc {
    height: 190px;
  }
  #dsh .bs {
    height: 210px;
  }
  #dsh .bv {
    font-size: 12.5px;
  }
  #dsh .bx span,
  #dsh .bxc {
    font-size: 12.5px;
  }
}

/* ===== bloque <style> ===== */
/* barra superior en celular: el chip de usuario/sede se recorta con … en vez de ensanchar la página */
@media (max-width: 700px) {
  header {
    gap: 8px;
    max-width: 100%;
    box-sizing: border-box;
  }
  header .hl {
    flex: 0 0 auto;
  }
  header #who {
    flex: 0 1 auto;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    box-sizing: border-box;
  }
}

/* ===== bloque <style> ===== */
/* Cuadros de elección: quedan por encima de la barra superior y la lista larga se desplaza */
#dpk {
  max-height: 58vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 2px;
}
/* ---- Tarjeta de sellos (diseño 2026-11: "Fresas con crema", se adapta al ancho con container queries) ---- */
.zcw {
  container-type: inline-size;
  margin: 0 auto 14px;
  max-width: 760px;
}
.zc {
  --zb: #98002f;
  --zh: #ef0758;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  font-family: 'Baloo 2', 'Nunito', 'Trebuchet MS', sans-serif;
  color: #850b31;
  border-radius: 22px;
  border: 4px solid rgba(255, 255, 255, 0.9);
  padding: 16cqw 4cqw 4cqw;
  background: radial-gradient(
      ellipse at 50% 42%,
      rgba(255, 255, 255, 0.99) 0 18%,
      rgba(255, 245, 247, 0.94) 38%,
      transparent 62%
    ),
    linear-gradient(145deg, #ffb8d0 0%, #ff82b1 28%, #f92975 63%, #cf004d 100%);
  box-shadow:
    0 18px 40px rgba(126, 0, 49, 0.25),
    inset 0 0 0 2px rgba(255, 255, 255, 0.65),
    inset 0 -20px 35px rgba(141, 0, 49, 0.15);
}
.zc::before {
  content: '';
  position: absolute;
  inset: 9px;
  border: 2px solid rgba(255, 255, 255, 0.55);
  border-radius: 15px;
  pointer-events: none;
  z-index: 4;
}
.zc::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.65;
  background: radial-gradient(circle at 7% 34%, #fff 0 3px, transparent 4px),
    radial-gradient(circle at 14% 68%, #fff 0 2px, transparent 3px),
    radial-gradient(circle at 91% 37%, #fff 0 3px, transparent 4px),
    radial-gradient(circle at 85% 72%, #fff 0 2px, transparent 3px),
    radial-gradient(circle at 50% 7%, #fff 0 2px, transparent 3px);
}
.zc-drip {
  position: absolute;
  top: -4px;
  left: 0;
  width: 100%;
  height: 13cqw;
  max-height: 105px;
  z-index: 1;
  filter: drop-shadow(0 6px 4px rgba(167, 0, 60, 0.12));
}
.zc-drip svg {
  width: 100%;
  height: 100%;
  display: block;
}
.zc-brand {
  position: absolute;
  top: 3cqw;
  left: 3.5cqw;
  z-index: 5;
  color: #a3003d;
  background: #fffaf3;
  border: 2px solid #ffd1e0;
  border-radius: 12px;
  padding: 4px 9px;
  font-size: max(11px, 3.2cqw);
  font-weight: 800;
  box-shadow: 0 3px 0 rgba(125, 0, 42, 0.12);
  line-height: 1.2;
}
.zc-brand em {
  color: #ee145d;
  font-style: normal;
}
.zc-heart,
.zc-spark {
  position: absolute;
  z-index: 2;
  color: #fff;
  text-shadow: 0 2px 8px rgba(255, 255, 255, 0.65);
  user-select: none;
  pointer-events: none;
  line-height: 1;
  font-family: Arial, sans-serif;
}
.zc-heart {
  font-size: 10cqw;
}
.zc-spark {
  font-size: 6cqw;
}
.zc-heart.h1 {
  left: 4%;
  top: 17%;
  transform: rotate(-12deg);
}
.zc-heart.h2 {
  right: 4%;
  top: 17%;
  transform: rotate(12deg);
}
.zc-heart.h3 {
  left: 3%;
  bottom: 19%;
}
.zc-heart.h4 {
  right: 3%;
  bottom: 19%;
}
.zc-spark.s1 {
  left: 19%;
  top: 6%;
}
.zc-spark.s2 {
  right: 19%;
  top: 7%;
}
.zc-spark.s3 {
  left: 7%;
  top: 50%;
  font-size: 4.5cqw;
}
.zc-spark.s4 {
  right: 7%;
  top: 50%;
  font-size: 4.5cqw;
}
.zc-cup {
  display: none;
  position: absolute;
  z-index: 2;
  width: 20%;
  max-width: 240px;
  top: 19%;
  filter: drop-shadow(0 13px 10px rgba(113, 0, 35, 0.23));
}
.zc-cup.l {
  left: 1.5%;
  transform: rotate(-2deg);
}
.zc-cup.r {
  right: 1.5%;
  transform: scaleX(-1) rotate(-2deg);
}
.zc-cup svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
.zc-main {
  position: relative;
  z-index: 3;
  width: 100%;
}
.zc-rib {
  position: relative;
  display: inline-block;
  min-width: 78%;
  margin: 0 auto 4cqw;
  padding: 2.4cqw 5cqw 4cqw;
  background: linear-gradient(180deg, #ff1769 0%, #d9004d 88%);
  border-radius: 16px 16px 22px 22px;
  transform: perspective(500px) rotateX(-3deg);
  box-shadow:
    0 7px 0 #93002f,
    0 12px 18px rgba(111, 0, 39, 0.22),
    inset 0 3px 8px rgba(255, 255, 255, 0.45);
}
.zc-rib::before,
.zc-rib::after {
  content: '';
  position: absolute;
  z-index: -1;
  bottom: 6px;
  width: 9cqw;
  height: 12cqw;
  background: linear-gradient(180deg, #c90049, #93002f);
}
.zc-rib::before {
  left: -5cqw;
  clip-path: polygon(0 0, 100% 18%, 100% 100%, 35% 75%, 0 100%);
  transform: skewY(13deg);
}
.zc-rib::after {
  right: -5cqw;
  clip-path: polygon(0 18%, 100% 0, 100% 100%, 65% 75%, 0 100%);
  transform: skewY(-13deg);
}
.zc-rib h3 {
  margin: 0;
  font-family: 'Pacifico', 'Brush Script MT', cursive;
  font-size: 14.5cqw;
  line-height: 0.95;
  font-weight: 400;
  letter-spacing: -1px;
  color: #fffaf1;
  -webkit-text-stroke: 1px #9b0039;
  text-shadow:
    2px 3px 0 #b60042,
    4px 6px 0 #760027,
    0 0 15px rgba(255, 255, 255, 0.8);
}
.zc-rib h3 span {
  display: block;
  margin-top: 2px;
  font-size: 0.57em;
}
.zc-off {
  text-shadow: 0 1px 0 #fff;
}
.zc-off h4 {
  margin: 0;
  font-size: 7.6cqw;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #850b31;
}
.zc-sz {
  margin: 1cqw 0 0;
  font-size: 4.6cqw;
  line-height: 1.2;
  font-weight: 800;
}
.zc-sz strong {
  color: var(--zh);
}
.zc-and {
  display: flex;
  align-items: center;
  gap: 3cqw;
  width: 92%;
  margin: 1cqw auto 0;
  color: #87002d;
}
.zc-and i {
  height: 8px;
  flex: 1;
  background: radial-gradient(circle, #e80057 3px, transparent 4px) left center/16px 8px repeat-x;
}
.zc-and b {
  font-size: 7cqw;
  line-height: 1;
}
.zc-rw {
  margin: 1cqw auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2cqw;
  font-size: 6cqw;
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.4px;
}
.zc-claim {
  padding: 1cqw 5cqw 1.4cqw;
  color: #fff;
  border-radius: 50px;
  background: linear-gradient(180deg, #ff176a, #db004d);
  box-shadow:
    0 4px 0 #a40039,
    inset 0 2px 5px rgba(255, 255, 255, 0.4);
}
.zc-rw strong {
  color: #ec0757;
}
.zc-st {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 1.6cqw;
  width: 100%;
  margin: 6cqw 0 0;
  padding: 4cqw 0;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(255, 37, 113, 0.12), rgba(201, 0, 70, 0.2));
}
.zc-s {
  position: relative;
  width: 14.6cqw;
  max-width: 150px;
  aspect-ratio: 1;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #d90050;
  background: radial-gradient(circle at 35% 28%, #fffef9 0, #fff3e9 74%, #fbd5d6 100%);
  border: 3px dashed #d5004b;
  outline: 3px solid #fff8ef;
  outline-offset: 1px;
  box-shadow:
    0 8px 14px rgba(103, 0, 38, 0.22),
    inset 0 0 0 4px rgba(255, 255, 255, 0.8);
  font-size: 8.4cqw;
  line-height: 1;
  font-weight: 800;
}
.zc-s::before {
  content: '';
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(219, 0, 76, 0.17);
  border-radius: 50%;
}
.zc-s.on {
  color: #fff;
  background: radial-gradient(circle at 35% 25%, #ff8db7, #d90050 75%);
  border: 3px solid #fff8f0;
  animation: zcin 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.25) both;
  animation-delay: var(--d, 0s);
}
.zc-s.on::after {
  content: '✓';
  position: absolute;
  right: -2%;
  top: -2%;
  width: max(18px, 5.2cqw);
  height: max(18px, 5.2cqw);
  max-width: 30px;
  max-height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: #98002f;
  font:
    800 max(11px, 3cqw) / 1 Arial,
    sans-serif;
  border: 2px solid #fff;
}
@keyframes zcin {
  from {
    transform: scale(1.6) rotate(-20deg);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .zc-s.on {
    animation: none;
  }
}
.zc-note {
  position: relative;
  z-index: 4;
  width: 100%;
  margin-top: 4cqw;
  padding: 2cqw 3cqw;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2cqw;
  border-radius: 50px;
  color: #8d1235;
  background: linear-gradient(180deg, #fffdf7, #ffe8df);
  box-shadow:
    0 6px 12px rgba(99, 0, 31, 0.24),
    inset 0 2px 5px #fff;
  font-size: max(11.5px, 3.5cqw);
  font-weight: 800;
  line-height: 1.2;
}
.zc-note span {
  color: #e60051;
  font-family: Arial, sans-serif;
  font-size: 1.4em;
}
.zc-me {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 12px;
  margin-top: 12px;
  text-align: center;
}
.zc-me b {
  font-size: 16px;
  color: #7a1534;
}
.zc-me span {
  display: inline-block;
  background: #fff;
  color: #8d1736;
  font-weight: 800;
  font-size: 15px;
  border-radius: 99px;
  padding: 7px 15px;
  border: 2px solid #ffd1e0;
}
.zc-me span.ok {
  background: #d9004d;
  color: #fff;
  border-color: #d9004d;
}
/* Tarjeta horizontal (pantallas anchas): igual al diseño impreso, con los vasos a los lados */
@container (min-width:620px) {
  .zc {
    aspect-ratio: 1.5/1;
    justify-content: flex-start;
    padding: 5.5cqw 6cqw 2.8cqw;
    border-radius: 30px;
    border-width: 6px;
  }
  .zc::before {
    inset: 12px;
    border-radius: 22px;
  }
  .zc-brand {
    top: 2.2cqw;
    left: 3cqw;
    font-size: max(12px, 1.5cqw);
  }
  .zc-heart {
    font-size: 5.4cqw;
  }
  .zc-heart.h1,
  .zc-heart.h2 {
    top: 15%;
  }
  .zc-heart.h3,
  .zc-heart.h4 {
    bottom: 15%;
  }
  .zc-spark {
    font-size: 3cqw;
  }
  .zc-spark.s3,
  .zc-spark.s4 {
    font-size: 2.2cqw;
  }
  .zc-cup {
    display: block;
  }
  .zc-main {
    width: 66%;
  }
  .zc-rib {
    min-width: 76%;
    margin-bottom: 1.6cqw;
    padding: 1.1cqw 3cqw 1.9cqw;
  }
  .zc-rib::before,
  .zc-rib::after {
    width: 4.6cqw;
    height: 6cqw;
  }
  .zc-rib::before {
    left: -2.6cqw;
  }
  .zc-rib::after {
    right: -2.6cqw;
  }
  .zc-rib h3 {
    font-size: 7.3cqw;
  }
  .zc-off h4 {
    font-size: 3.9cqw;
  }
  .zc-sz {
    font-size: 2.3cqw;
    margin-top: 0.2cqw;
  }
  .zc-and {
    margin-top: 0.4cqw;
  }
  .zc-and b {
    font-size: 3.6cqw;
  }
  .zc-rw {
    flex-direction: row;
    justify-content: center;
    gap: 1.2cqw;
    font-size: 2.9cqw;
    margin-top: 0.4cqw;
  }
  .zc-claim {
    padding: 0.6cqw 2.2cqw 0.8cqw;
  }
  .zc-st {
    margin: auto 0 0;
    width: 86%;
    padding: 1.2cqw 0;
    gap: 2.2cqw;
  }
  .zc-s {
    width: 11cqw;
    font-size: 6cqw;
    border-width: 4px;
    outline-width: 4px;
  }
  .zc-s.on {
    border-width: 4px;
  }
  .zc-note {
    width: 86%;
    margin-top: 1.4cqw;
    padding: 0.9cqw 2cqw;
    font-size: max(12px, 1.6cqw);
    gap: 1.2cqw;
  }
}

/* ===== bloque <style> ===== */
#dsr button {
  flex: 1;
  min-width: 64px;
  margin-top: 0;
}
.dd {
  margin: 12px 0;
  background: #fff;
  border: 2px solid var(--l);
  border-radius: 20px;
  padding: 4px 14px 12px;
  box-shadow: 0 3px 0 var(--l2);
}
.dd > summary {
  cursor: pointer;
  color: var(--r2);
  font-weight: 800;
  padding: 10px 0;
  font-size: 1.05em;
}
.dd .kpi span,
.dd .kpi small {
  display: block;
}
.dd .kpi small {
  margin-top: 2px;
}
.dtb {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.dtb th,
.dtb td {
  padding: 7px 6px;
  text-align: right;
  border-top: 1px solid var(--l);
  white-space: nowrap;
}
.dtb th:first-child,
.dtb td:first-child {
  text-align: left;
}
.dtb tr[data-sede] {
  cursor: pointer;
}

/* ===== bloque <style> ===== */
#rkp button,
#rkc button {
  flex: 1;
  min-width: 70px;
  margin-top: 0;
}

/* ===== App instalable (PWA, 2026-11-30): chip «Instalar», instrucciones de iPhone y aviso de versión nueva ===== */
.appi {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  padding: 8px 8px 8px 10px;
  background: #fff;
  border: 2px dashed var(--l2);
  border-radius: 16px;
  color: var(--t);
}
.appi[hidden],
.apup[hidden] {
  display: none !important;
}
.appi img {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
}
.appt {
  flex: 1 1 150px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}
.appt small {
  color: var(--m);
  font-size: 13px;
  font-weight: 600;
}
.appi button {
  flex: none;
  width: auto;
  min-height: 40px;
  margin: 0;
  padding: 7px 16px;
}
.appi .appx {
  padding: 6px 12px;
  font-size: 20px;
  line-height: 1;
}
#login .appi {
  margin: 14px 0 0;
}
ol.appios {
  margin: 10px 0 16px;
  padding-left: 22px;
}
ol.appios li {
  margin: 6px 0;
}
.appsh {
  vertical-align: -4px;
  color: #007aff;
}
.apup {
  position: fixed;
  left: 50%;
  top: calc(10px + env(safe-area-inset-top, 0px));
  transform: translateX(-50%);
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: calc(100% - 24px);
  padding: 6px 6px 6px 16px;
  border-radius: 99px;
  background: var(--r2);
  color: #fff;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(90, 10, 38, 0.3);
}
.apup button {
  width: auto;
  min-height: 36px;
  margin: 0;
  padding: 6px 16px;
  border-radius: 99px;
  background: #fff;
  color: var(--r2);
  box-shadow: none;
}

/* ---------- Alertas del panel y notificaciones (js/08-alertas.js) · 2026-12-01 ---------- */
.za-ctl h3 {
  margin: 0 0 8px;
}
.za-sw {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-weight: 600;
  cursor: pointer;
}
.za-sw input {
  width: 22px;
  height: 22px;
  accent-color: var(--r);
  flex: none;
}
.za-ctl[hidden] {
  display: none;
}
.za-ctl #zaPushB {
  width: 100%;
  margin-top: 6px;
}
#zaToasts {
  position: fixed;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: min(560px, calc(100% - 20px));
  z-index: 45;
  display: grid;
  gap: 8px;
  pointer-events: none;
}
.za-toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  color: var(--t);
  border: 2px solid var(--l);
  border-left: 6px solid var(--r);
  border-radius: 18px;
  padding: 10px 12px;
  box-shadow:
    0 4px 0 var(--l2),
    0 12px 28px rgba(122, 10, 46, 0.2);
  animation: za-in 220ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
@keyframes za-in {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.za-ic {
  font-size: 26px;
  flex: none;
}
.za-tx {
  flex: 1;
  min-width: 0;
  display: grid;
}
.za-tx span {
  color: var(--m);
  font-size: 14px;
  overflow-wrap: anywhere;
}
.za-toast button {
  min-height: 40px;
  padding: 4px 12px;
  flex: none;
}
.za-toast .za-x {
  padding: 4px 10px;
}
.za-tocar {
  position: fixed;
  left: 50%;
  bottom: calc(70px + var(--insignia, 0px));
  transform: translateX(-50%);
  z-index: 46;
  border-radius: 99px;
  padding: 12px 20px;
  box-shadow: 0 8px 24px rgba(122, 10, 46, 0.35);
}
@media (prefers-reduced-motion: reduce) {
  .za-toast {
    animation: none;
  }
}

/* ===== Editar pedido (2026-12-01) ===== */
#p-nuevo.editando .seg,
#p-nuevo.editando #cuscard,
#p-nuevo.editando #dom,
#p-nuevo.editando #flow,
#p-nuevo.editando #paybox,
#p-nuevo.editando #sendsum {
  display: none !important;
}
.edban {
  background: var(--as);
  border: 2px solid var(--amber);
  color: var(--t);
}
.edban button {
  margin-top: 8px;
}
.badge.mod {
  background: var(--amber);
  color: #fff;
  font-weight: 800;
}
.edmod {
  margin: 8px 0;
  padding: 8px 12px;
  border-radius: 12px;
  background: var(--as);
  border: 2px solid var(--amber);
}
.edadd {
  color: var(--green);
  font-weight: 700;
}
.edrem {
  color: var(--r);
  font-weight: 700;
}
.edrem s {
  text-decoration-thickness: 2px;
}
.edrev {
  margin: 8px 0;
}
.edrev .edadd,
.edrev .edrem,
.edtot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 0;
}
.edtot {
  border-top: 1px dashed var(--l2);
  margin-top: 6px;
  padding-top: 8px;
}
.edh {
  padding: 6px 0;
  border-top: 1px dashed var(--l2);
}
.edh:first-of-type {
  border-top: 0;
}
#trmap {
  height: 320px;
  border-radius: 14px;
  margin-top: 8px;
  background: #f3e6ea;
}
#trmap[hidden] {
  display: none;
}
.trf {
  align-items: center;
  gap: 6px;
}
.fov {
  margin-top: 4px;
}

/* Inicio › Hoy · ¿Cómo pagaron hoy? (2026-12-02) */
.fpago {
  margin-top: 12px;
  max-width: 520px;
}
.fpago > b {
  display: block;
  margin-bottom: 4px;
}


/* Aviso: hoy en pausa por día reabierto (2026-12-02) */
#zaPausa {
  position: sticky;
  top: 0;
  z-index: 60;
  background: #fff3cd;
  color: #6b4a00;
  border-bottom: 2px solid #e0b84a;
  padding: 10px 14px;
  text-align: center;
  font-size: 15px;
}
#zaPausa button {
  margin-left: 8px;
  padding: 4px 12px;
}


/* ---------- Cuentas por quincena (js/09-cuentas.js) ---------- */
.cu-ch {
  justify-content: flex-start;
  flex-wrap: nowrap;
  overflow-x: auto;
  margin-bottom: 8px;
}
.cu-ch button {
  flex: 0 0 auto;
  white-space: nowrap;
}
.cu-neg b {
  color: var(--r);
}
.cu-av {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--as);
  color: var(--amber);
  font-weight: 700;
}
.cu-sc {
  overflow-x: auto;
  margin: 12px 0 8px;
}
.cu-t {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}
.cu-t th,
.cu-t td {
  padding: 9px 8px;
  border: 1px solid var(--l);
  text-align: right;
  white-space: nowrap;
}
.cu-t th {
  background: var(--r);
  color: #fff;
  text-align: center;
}
.cu-t td:last-child {
  min-width: 130px;
  text-align: left;
  white-space: normal;
}
.cu-t tbody tr:nth-child(even) {
  background: var(--soft);
}
.cu-t tr[data-d] {
  cursor: pointer;
}
.cu-t .cu-f {
  color: var(--m);
}
.cu-t tfoot td {
  background: var(--r2);
  color: #fff;
  font-weight: 800;
}
.cu-g {
  margin-top: 8px;
  color: var(--m);
}
@media (max-width: 560px) {
  .cu-t {
    font-size: 13px;
  }
  .cu-t th,
  .cu-t td {
    padding: 8px 4px;
  }
  .cu-t td:last-child {
    min-width: 84px;
    overflow-wrap: anywhere;
  }
  .cu-t tfoot td:first-child {
    white-space: normal;
  }
}
.cu-r {
  justify-content: space-between;
  flex-wrap: nowrap;
  padding: 3px 0;
}
