/* ============================================================
   VEPOX — Autorizar: la ventana única (js/modules/autorizar.js)
   Paleta de la caja nueva. Amarillo solo en "Autorizar"; rojo solo
   para el error. Teclado grande para el dedo, también con teclado físico.
   ============================================================ */
.au-raiz {
  --au-s1: var(--surface, #1a1d27);
  --au-s2: var(--surface2, #242835);
  --au-line: var(--border, #2e3345);
  --au-text: var(--text, #e1e4eb);
  --au-muted: var(--muted, #8b90a0);
  --au-acc: var(--brand-primary, #FDC80F);
  --au-acc-bg: rgba(253, 200, 15, .10);
  --au-ok: #4ade80;
  --au-bad: #ff8a8a;
  color: var(--au-text);
  font-family: 'DM Sans', sans-serif;
  font-variant-numeric: tabular-nums;
}
html:not([data-theme="dark"]) .au-raiz { --au-acc-bg: rgba(253, 200, 15, .18); --au-ok: #15803d; --au-bad: #b91c1c; }
.au-raiz *, .au-raiz *::before, .au-raiz *::after { box-sizing: border-box; }
.au-fondo { position: fixed; inset: 0; z-index: 10004; display: flex; align-items: center; justify-content: center; padding: 16px;
  background: rgba(8, 9, 12, .72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.au-card { width: 100%; max-width: 400px; max-height: calc(100vh - 32px); overflow-y: auto; background: var(--au-s1); border: 1px solid var(--au-line);
  border-radius: 18px; padding: 22px 22px 18px; box-shadow: 0 30px 80px rgba(0, 0, 0, .45); }
.au-cab { display: flex; align-items: center; gap: 8px; color: var(--au-muted); font-size: 13px; font-weight: 600; margin-bottom: 10px; }
.au-candado { width: 15px; height: 15px; background: currentColor; flex: 0 0 auto;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='11' width='16' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='11' width='16' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E") center / contain no-repeat; }
.au-titulo { display: flex; align-items: center; gap: 10px; font-size: 21px; font-weight: 700; line-height: 1.2; margin: 0; letter-spacing: -.2px; }
.au-titulo .au-candado { width: 17px; height: 17px; color: var(--au-muted); }
.au-monto { font-family: 'Bebas Neue', sans-serif; font-size: 42px; line-height: 1; margin-top: 8px; letter-spacing: .5px; }
.au-det { color: var(--au-muted); font-size: 13.5px; margin-top: 6px; }
.au-pide { font-size: 13.5px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--au-line); color: var(--au-muted); }
.au-sec { margin-top: 16px; }
.au-sec-t { font-size: 13px; font-weight: 600; color: var(--au-muted); margin-bottom: 8px; }
.au-chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.au-chip { border: 1px solid var(--au-line); background: transparent; color: var(--au-text); border-radius: 10px; padding: 10px 12px;
  font: 600 13.5px 'DM Sans', sans-serif; text-align: left; cursor: pointer; min-height: 44px; }
.au-chip:hover:not(.on) { border-color: var(--au-muted); }
.au-chip.on { border-color: var(--au-acc); background: var(--au-acc-bg); }
.au-otro { width: 100%; margin-top: 8px; border: 1px solid var(--au-line); background: var(--au-s2); color: var(--au-text); border-radius: 10px;
  padding: 11px 12px; font: 14px 'DM Sans', sans-serif; }
.au-puntos { display: flex; justify-content: center; gap: 14px; padding: 6px 0 2px; }
.au-punto { width: 13px; height: 13px; border-radius: 50%; border: 2px solid var(--au-muted); transition: background-color .1s, border-color .1s; }
.au-punto.on { background: var(--au-text); border-color: var(--au-text); }
.au-error { min-height: 20px; margin: 6px 0 4px; text-align: center; color: var(--au-bad); font-size: 13px; font-weight: 600; }
.au-teclado { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.au-tecla { height: 54px; border-radius: 12px; border: 0; background: var(--au-s2); color: var(--au-text); font: 600 22px 'DM Sans', sans-serif;
  cursor: pointer; transition: background-color .1s; }
.au-tecla:hover { background: var(--au-line); }
.au-tecla:active { transform: translateY(1px); }
.au-borrar { font-size: 13.5px; color: var(--au-muted); }
.au-acciones { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.au-btn { height: 48px; border-radius: 12px; border: 1px solid var(--au-line); background: transparent; color: var(--au-text);
  font: 700 14.5px 'DM Sans', sans-serif; cursor: pointer; }
.au-btn.acc { background: var(--au-acc); border-color: var(--au-acc); color: #111; }
.au-btn:disabled { opacity: .45; cursor: default; }
.au-raiz button:focus-visible, .au-otro:focus-visible { outline: 2px solid var(--au-acc); outline-offset: 2px; }
.au-sacude { animation: au-sacude .32s ease; }
@keyframes au-sacude { 20%, 60% { transform: translateX(-7px); } 40%, 80% { transform: translateX(7px); } }
.au-hecho { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 34px 22px; }
.au-check { position: relative; width: 56px; height: 56px; border-radius: 50%; background: var(--au-ok); animation: au-aparece .25s ease-out; }
.au-check::after { content: ''; position: absolute; left: 20px; top: 12px; width: 13px; height: 25px; border: solid #fff; border-width: 0 5px 5px 0; transform: rotate(45deg); }
.au-hecho-t { font-size: 18px; font-weight: 700; }
@keyframes au-aparece { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .au-sacude, .au-check { animation: none; } .au-punto, .au-tecla { transition: none; } }
@media (max-width: 480px) {
  .au-fondo { align-items: flex-end; padding: 0; }
  .au-card { max-width: none; border-radius: 18px 18px 0 0; max-height: 100vh; }
}

/* Aviso del cobro de un pedido rehecho (js/modules/rehacer.js) */
.cobro-traslado { margin: 0 0 12px; padding: 12px 14px; border-radius: 10px; border: 1px solid rgba(253, 200, 15, .55);
  background: rgba(253, 200, 15, .10); font-size: 13.5px; line-height: 1.45; color: var(--text, #e1e4eb); }
.cobro-traslado b { font-weight: 700; }

/* [13-10] La ventana de folio de boleta (index.html #folio-overlay, tributario.js). Mismo estilo que las demás; el folio
   en grande; los avisos adentro (sin alertas del navegador); abajo, separado, "Venta sin boleta" con PIN. */
.folio-card { max-width: 380px; text-align: left; }
.folio-num { width: 100%; height: 58px; margin-top: 16px; border: 1.5px solid var(--au-line); background: var(--au-s2); color: var(--au-text);
  border-radius: 12px; padding: 0 14px; font: 600 26px 'DM Sans', sans-serif; letter-spacing: 3px; text-align: center; font-variant-numeric: tabular-nums; }
.folio-num::placeholder { font-size: 16px; letter-spacing: .5px; font-weight: 500; color: var(--au-muted); }
.folio-num:focus { outline: none; border-color: var(--au-acc); }
.folio-num.mal { border-color: var(--au-bad); }
.folio-aviso { min-height: 20px; margin: 6px 2px 0; font-size: 13px; font-weight: 600; color: var(--au-bad); }
.folio-aviso.ojo { color: var(--au-acc); }
.folio-card .au-otro { margin-top: 6px; }
.folio-sin { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--au-line); }
.folio-sin[hidden] { display: none; }
.folio-sin small { font-size: 12px; color: var(--au-muted); text-align: right; }
.folio-sin-btn { display: inline-flex; align-items: center; gap: 7px; flex: none; height: 36px; padding: 0 12px; border-radius: 10px;
  border: 1px solid var(--au-line); background: transparent; color: var(--au-text); font: 600 13px 'DM Sans', sans-serif; cursor: pointer; }
.folio-sin-btn:hover { border-color: var(--au-muted); }
.folio-sin-btn .au-candado { width: 13px; height: 13px; color: var(--au-muted); }
