/* ==========================================================================
   IVOO Plus · Pago con gemas en caja — PROTOTIPO QA
   css/styles.css — Presentación. Usa SOLO los tokens de css/tokens_ivoo.css.
   Reglas de diseño y decisiones: docs/DESIGN_SYSTEM.md
   ========================================================================== */

/* Tipografía de títulos del proyecto (Guia_Diseño/03_Estilo_y_colores/Figtree-latin.woff2) */
@font-face {
  font-family: "Figtree";
  src: url("../assets/fonts/Figtree-latin.woff2") format("woff2");
  font-weight: 300 900;
  font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.45;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  /* Fondo de página: color + degradado suave en esquinas (04_Recursos/fondo_1280x720.webp) */
  background: var(--bg-page) url("../assets/img/fondo_1280x720.webp") center / cover fixed no-repeat;
}

button, input { font: inherit; color: inherit; }
code { font-family: Consolas, "Courier New", monospace; font-size: .95em; }
.muted { color: var(--text-muted); }
em.muted { font-style: normal; font-weight: 400; font-size: 11px; }

/* ---------- Estructura (referencia 1280 × 720) ---------- */
.layout { min-height: 100vh; }

.sidebar {
  position: fixed; inset: 0 auto 0 0;
  width: var(--menu-width);
  display: flex; flex-direction: column;
  background: var(--grad-menu);
  box-shadow: var(--shadow-menu);
  color: var(--text-on-menu);
  z-index: 10;
}
.sidebar__brand {
  height: 67px; display: flex; align-items: center; justify-content: center;
  border-bottom: 1px solid rgba(255, 255, 255, .16);
}
.sidebar__logo { width: 106px; height: auto; display: block; }
.sidebar__mobile-step { display: none; }
.sidebar__section { padding: 14px 10px; }
.sidebar__label {
  font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--teal-200); padding: 0 8px 8px;
}

.nav { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.nav__item {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 10px; border-radius: var(--radius-control);
  border: 1px solid transparent;
  font-size: 13px; color: var(--text-on-menu);
}
.nav__num {
  width: 20px; height: 20px; flex: none; border-radius: var(--radius-pill);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 10.5px; font-weight: 700;
  border: 1.5px solid rgba(255, 255, 255, .55);
}
.nav__num svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.nav__item.is-done { color: var(--teal-200); }
.nav__item.is-done .nav__num { background: rgba(255, 255, 255, .22); border-color: transparent; }
.nav__item.is-active {
  background: rgba(255, 255, 255, .2); border-color: rgba(255, 255, 255, .45);
  color: var(--text-on-menu-strong); font-weight: 700;
}
.nav__item.is-active .nav__num { background: var(--text-on-menu-strong); color: var(--teal-700); border-color: transparent; }
.nav__item.is-error .nav__num { background: var(--danger); border-color: transparent; color: #fff; }

.sidebar__user {
  margin-top: auto; display: flex; align-items: center; gap: 10px;
  padding: 14px 16px; border-top: 1px solid rgba(255, 255, 255, .16);
}
.sidebar__user b { display: block; font-size: 13px; color: var(--text-on-menu-strong); }
.sidebar__user span { font-size: 10.5px; color: var(--teal-200); }
.sidebar__avatar {
  width: 36px; height: 36px; border-radius: var(--radius-pill); flex: none;
  display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .2);
}
.sidebar__avatar svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; }
.sidebar__user > div { min-width: 0; flex: 1; }
.sidebar__user > div b, .sidebar__user > div span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar__logout {
  flex: none; width: 30px; height: 30px; border: 0; border-radius: var(--radius-pill); cursor: pointer;
  display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .12);
}
.sidebar__logout:hover, .sidebar__logout:focus-visible { background: rgba(255, 255, 255, .24); }
.sidebar__logout svg { width: 16px; height: 16px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.main { margin-left: 214px; padding: 8px 6px 24px 0; }

/* ---------- Encabezado: tarjeta 84 px + barra de 3 px ---------- */
.header {
  position: relative; overflow: hidden;
  min-height: 84px; padding: 14px 22px 17px;
  display: flex; align-items: center; gap: 18px;
  background: var(--grad-header);
  border: 1px solid var(--border); border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}
.header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: var(--grad-accent);
}
.header__title h1 { font: 600 22px/1.15 var(--font-title); color: var(--text); }
.header__title p { font: 500 12.5px/1.4 var(--font-title); color: var(--teal-450); margin-top: 3px; }
.header__desc {
  max-width: 290px; padding-left: 18px; border-left: 1px solid var(--border);
  font-size: 11px; color: var(--text-muted);
}
.header__meta { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.header__op { text-align: right; font-size: 11px; color: var(--text-muted); }
.header__op b { display: block; font-size: 13px; color: var(--text-soft); }
.header__progress { display: none; }

/* ---------- Contenido ---------- */
.content {
  display: grid; grid-template-columns: minmax(0, 1fr) 300px;
  gap: 10px; margin-top: 10px; align-items: start;
}
.content__main, .content__side { min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.no-qa .content { grid-template-columns: minmax(0, 1fr); }
.no-qa .content__side, .no-qa .chip--sim { display: none; }

/* ---------- Tarjeta (radio 12, borde #E1E5EC, sombra suave) ---------- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}
.panel { padding: 16px 18px; display: flex; flex-direction: column; gap: 14px; }
.card__head h2 { font: 700 15px/1.3 var(--font-body); color: var(--text); }
.card__sub { font-size: 11.5px; color: var(--text-muted); margin-top: 2px; }
.side .card__head h2 { font-size: 13px; }
.side .card__sub { font-size: 10.5px; }

/* ---------- Datos de lectura (fact) ---------- */
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.facts--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.facts--stack { grid-template-columns: 1fr; }
.fact {
  border: 1px solid var(--border); border-radius: var(--radius-control);
  padding: 7px 12px; background: var(--bg-card); min-width: 0;
}
.fact span {
  display: block; font-size: 10px; font-weight: 600; letter-spacing: .05em;
  text-transform: uppercase; color: var(--text-muted);
}
.fact strong { display: block; font-size: 13.5px; font-weight: 700; overflow-wrap: anywhere; }
.fact--accent { background: var(--bg-row-total); border-color: var(--border-teal); }
.fact--accent strong { color: var(--teal-450); }

/* ---------- Tarjetas KPI (principal + estatus) ---------- */
.kpis { display: grid; grid-template-columns: 1.2fr 1fr; gap: 10px; }
.kpi {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  padding: 12px 13px 10px; border-radius: var(--radius-card);
}
.kpi__lab {
  display: flex; align-items: center; gap: 8px;
  font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted);
}
.kpi__gl {
  width: 26px; height: 26px; border-radius: 9px; flex: none;
  display: flex; align-items: center; justify-content: center;
}
.kpi__gl svg { width: 15px; height: 15px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.kpi__val { font-size: 34px; font-weight: 700; line-height: 1.05; margin-top: 8px; letter-spacing: -.01em; }
.kpi__val small { font-size: 11px; font-weight: 600; letter-spacing: .04em; color: var(--text-muted); margin-left: 5px; }
/* Equivalencia: monto en USD grande y, al lado, su equivalente en gemas */
.kpi--status { container-type: inline-size; }
.kpi__val--eq { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 10px; white-space: nowrap; font-size: clamp(22px, 9cqi, 34px); }
.kpi__eq { display: inline-flex; align-items: baseline; gap: 8px; font-size: 14px; font-weight: 500; color: var(--text-muted); }
.kpi__eq b { font-size: clamp(18px, 6.6cqi, 26px); font-weight: 700; color: var(--text); letter-spacing: -.01em; }
.kpi__foot { font-size: 10.5px; color: var(--text-muted); margin-top: 8px; padding-top: 6px; border-top: 1px solid var(--border); }
.kpi__foot b { color: var(--text); font-weight: 600; }

.kpi--hero { background: var(--grad-hero); color: #fff; box-shadow: 0 8px 18px -10px rgba(11, 111, 115, .7); }
.kpi--hero .kpi__lab { color: var(--teal-200); }
.kpi--hero .kpi__gl { background: rgba(255, 255, 255, .2); }
.kpi--hero .kpi__val { font-size: 42px; margin-top: 6px; }
.kpi--hero .kpi__foot { color: var(--teal-200); border-top-color: rgba(255, 255, 255, .28); }
.kpi--hero .kpi__foot b { color: #fff; }
.kpi--hero .kpi__val small { font-size: 16px; letter-spacing: 0; color: var(--teal-200); margin-left: 8px; }
.client-top { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 10px; align-items: stretch; }
.client-top .kpi--hero { display: flex; flex-direction: column; justify-content: center; }
.kpi--hero { container-type: inline-size; }
.kpi--hero .kpi__val--eq { font-size: clamp(22px, 7.6cqi, 38px); }
.kpi--hero .kpi__eq b { font-size: clamp(16px, 5.8cqi, 26px); }
.kpi--hero .kpi__val--eq small { margin-left: -4px; }
.kpi--hero .kpi__eq { color: var(--teal-200); }
.kpi--hero .kpi__eq b { color: #fff; }
.kpis--single { grid-template-columns: 1fr; }

.kpi--status { border: 1px solid var(--border); background: linear-gradient(180deg, color-mix(in srgb, var(--c) 7%, #fff) 0%, #fff 55%); box-shadow: var(--shadow-card); }
.kpi--status::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--c), var(--c2)); }
.kpi--status .kpi__gl { background: linear-gradient(135deg, var(--c), var(--c2)); box-shadow: 0 4px 10px -3px color-mix(in srgb, var(--c2) 65%, transparent); }
.st-ok  { --c: var(--st-saludable); --c2: var(--st-saludable-2); }
.st-bad { --c: var(--st-obsoleto);  --c2: var(--st-obsoleto-2); }

/* ---------- Formularios ---------- */
.form { display: flex; flex-direction: column; gap: 14px; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.field { display: flex; flex-direction: column; gap: 5px; max-width: 360px; }
.form__row .field { max-width: none; }
.field__label { font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-table-head); }
.field input {
  width: 100%; height: 40px; padding: 0 12px;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-control);
  font-size: 15px; font-weight: 600; outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input::placeholder { color: var(--text-soft); font-weight: 400; }
.field input:focus { border-color: var(--teal-450); box-shadow: 0 0 0 3px var(--teal-50); }
.field__affix { position: relative; }
.field__affix > span { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-muted); font-weight: 600; font-size: 15px; }
.field__affix input { padding-left: 26px; }
.field__msg { font-size: 11px; color: var(--text-muted); }
.field--error input { border-color: var(--danger); }
.field--error input:focus { box-shadow: 0 0 0 3px color-mix(in srgb, var(--danger) 14%, transparent); }
.field--error .field__msg { color: var(--danger); font-weight: 600; }
.field--code input { width: 120px; height: 52px; text-align: center; font-size: 28px; letter-spacing: .35em; padding: 0 0 0 .35em; }
/* Código mostrado en caja (mismo espacio y medidas que el antiguo campo de código) */
.code-display {
  display: flex; align-items: center; justify-content: center;
  width: 120px; height: 52px; padding-left: .3em;
  background: var(--bg-row-total); border: 1px solid var(--border-teal); border-radius: var(--radius-control);
  font-size: 30px; font-weight: 700; letter-spacing: .3em; color: var(--teal-800);
}

/* ---------- Botones (radio 10 px) ---------- */
.actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 38px; padding: 0 18px;
  border-radius: var(--radius-control); border: 1px solid transparent;
  font-size: 12.5px; font-weight: 700; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, opacity .15s ease;
}
.btn:focus-visible { outline: 2px solid var(--teal-450); outline-offset: 2px; }
.btn--primary { background: var(--teal-450); border-color: var(--teal-450); color: #fff; }
.btn--primary:hover:not(:disabled) { background: var(--teal-700); border-color: var(--teal-700); }
.btn--secondary, .btn--ghost { background: var(--bg-card); border-color: var(--border); color: var(--teal-800); }
.btn--secondary:hover:not(:disabled), .btn--ghost:hover:not(:disabled) { background: var(--teal-50); color: var(--teal-450); border-color: var(--border-teal); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn--block { width: 100%; }

/* ---------- Alertas y notas ---------- */
.alert {
  display: flex; align-items: center; gap: 12px; padding: 9px 14px;
  border: 1px solid; border-radius: var(--radius-card);
}
.alert p { font-size: 12px; line-height: 1.4; }
.alert p b { font-weight: 700; }
.alert__icon { width: 26px; height: 26px; border-radius: 8px; flex: none; display: flex; align-items: center; justify-content: center; }
.alert__icon svg { width: 14px; height: 14px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.alert--warn { background: var(--warn-bg); border-color: var(--warn-border); }
.alert--warn .alert__icon { background: var(--warn-icon); }
.alert--info { background: var(--bg-note); border-color: var(--border-teal); }
.alert--info .alert__icon { background: var(--teal-450); }
.alert--danger { background: color-mix(in srgb, var(--danger) 6%, #fff); border-color: color-mix(in srgb, var(--danger) 28%, #fff); }
.alert--danger .alert__icon { background: var(--danger); }
.alert--success { background: var(--bg-row-total); border-color: var(--border-teal); }
.alert--success .alert__icon { background: var(--st-saludable-2); }

/* ---------- Chips (radio 12 px) ---------- */
.chip {
  display: inline-block; padding: 4px 12px; border-radius: 12px;
  border: 1px solid var(--border); background: #F6F7FA; color: var(--text-table-head);
  font-size: 10.7px; font-weight: 700; white-space: nowrap;
}
.chip--ok, .chip--state.chip--success, .chip--res-consumed { background: var(--teal-450); border-color: var(--teal-450); color: #fff; }
.chip--bad, .chip--state.chip--rejected, .chip--state.chip--error { background: color-mix(in srgb, var(--danger) 8%, #fff); border-color: color-mix(in srgb, var(--danger) 30%, #fff); color: var(--danger); }
.chip--res-held { background: var(--warn-bg); border-color: var(--warn-border); color: var(--warn-text); }
.chip--res-released { background: var(--teal-50); border-color: var(--border-teal); color: var(--teal-450); }
.chip--sim { background: var(--warn-bg); border-color: var(--warn-border); color: var(--warn-text); padding: 6px 14px; }

/* ---------- Tabla (ajustes de monto) ---------- */
.table { width: 100%; border-collapse: collapse; border: 1px solid var(--border); border-radius: var(--radius-card); overflow: hidden; font-size: 12px; }
.table th { background: var(--bg-table-head); color: var(--text-table-head); font-size: 9.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; text-align: left; padding: 7px 10px; }
.table td { padding: 7px 10px; border-top: 1px solid var(--border-row); }
.table .n { text-align: right; }

/* ---------- Carga ---------- */
.loading { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 34px 0 30px; color: var(--text-muted); font-size: 12.5px; }
.spinner {
  width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .45); border-top-color: #fff;
  animation: spin .8s linear infinite;
}
.spinner--lg { width: 34px; height: 34px; border-width: 3px; border-color: var(--teal-50); border-top-color: var(--teal-450); }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 2.4s; } }

/* ---------- Pantallas de resultado ---------- */
.result { align-items: stretch; }
.result__icon { width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; }
.result__icon svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.result--ok .result__icon { background: linear-gradient(135deg, var(--st-saludable), var(--st-saludable-2)); }
.result--bad .result__icon { background: linear-gradient(135deg, var(--st-obsoleto), var(--st-obsoleto-2)); }
.result__title { font: 600 20px/1.25 var(--font-title); }
.result--ok .result__title { color: var(--teal-450); }
.result--bad .result__title { color: var(--danger); }
.result__sim, .result__reason { font-size: 12px; color: var(--text-muted); margin-top: -6px; }
.result__sim { color: var(--warn-text); font-weight: 600; }

/* ---------- Panel QA (separado de la interfaz del cajero) ---------- */
.qa {
  display: flex; flex-direction: column; gap: 12px; padding: 14px;
  background: var(--warn-bg); border: 1px dashed var(--warn-icon); border-radius: var(--radius-card);
}
.qa__head { display: flex; gap: 10px; align-items: flex-start; }
.qa__head h2 { font-size: 13px; font-weight: 700; color: var(--warn-text); }
.qa__head p { font-size: 10.5px; color: var(--text-muted); }
.qa__badge { width: 26px; height: 26px; border-radius: 8px; flex: none; display: flex; align-items: center; justify-content: center; background: var(--warn-icon); color: #fff; font-size: 10px; font-weight: 700; }
.qa__block h3 { font-size: 10px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 6px; }
.qa__dl { display: grid; grid-template-columns: 1fr auto; gap: 3px 10px; font-size: 12px; background: var(--bg-card); border: 1px solid var(--warn-border); border-radius: var(--radius-control); padding: 8px 12px; }
.qa__dl dt { color: var(--text-muted); }
.qa__dl dd { font-weight: 700; text-align: right; }
.qa__list { list-style: none; display: flex; flex-direction: column; gap: 4px; margin-top: 6px; font-size: 11px; }
.qa__list .chip { padding: 1px 8px; font-size: 10px; }
.qa__fills { display: flex; flex-direction: column; gap: 6px; }
.qa__fill {
  text-align: left; padding: 6px 10px; cursor: pointer; font-size: 11.5px;
  background: var(--bg-card); border: 1px solid var(--warn-border); border-radius: var(--radius-control);
}
.qa__fill span { display: block; font-size: 10.5px; color: var(--text-muted); }
.qa__fill:hover:not(:disabled) { border-color: var(--warn-icon); }
.qa__fill:disabled { opacity: .5; cursor: not-allowed; }

.noscript { padding: 20px; text-align: center; }

/* ---------- Responsive ---------- */
@media (max-width: 1120px) {
  .content { grid-template-columns: 1fr; }
  .content__side { display: flex; }
  .header__desc { display: none; }
}

@media (max-width: 860px) {
  .sidebar { position: sticky; top: 0; inset: auto; width: auto; height: auto; flex-direction: row; }
  .sidebar__brand { height: 52px; width: 100%; justify-content: space-between; padding: 0 16px; border-bottom: 0; }
  .sidebar__logo { width: 84px; }
  .sidebar__mobile-step { display: inline-block; font-size: 12px; font-weight: 700; color: var(--text-on-menu-strong); }
  .sidebar__section, .sidebar__user { display: none; }
  .main { margin-left: 0; padding: 10px 16px 24px; }
  .header { flex-wrap: wrap; padding: 12px 16px 16px; gap: 10px; }
  .header__meta { margin-left: 0; width: 100%; justify-content: space-between; }
  .header__op { text-align: left; }
  .header__progress { display: block; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--bg-track); z-index: 1; }
  .header__progress span { display: block; height: 100%; background: var(--grad-accent); transition: width .3s ease; }
  .content__side { grid-template-columns: 1fr; }
  .facts--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .form__row, .facts, .facts--3, .kpis, .client-top { grid-template-columns: 1fr; }
  .field { max-width: none; }
  .actions { flex-direction: column-reverse; }
  .actions .btn { width: 100%; }
  .kpi--hero .kpi__val { font-size: 36px; }
}

/* ---------- Pantalla de compra aprobada (referencia enviada por Gustavo, 17/11/2026) ---------- */
.approved { align-items: center; text-align: center; padding: 28px 18px 22px; }
.approved__badge {
  width: 112px; height: 112px; border-radius: var(--radius-pill);
  display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--st-saludable) 14%, #fff);
}
.approved__badge span {
  width: 76px; height: 76px; border-radius: var(--radius-pill);
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--st-saludable), var(--st-saludable-2));
  box-shadow: 0 10px 22px -10px color-mix(in srgb, var(--st-saludable-2) 70%, transparent);
}
.approved__badge svg { width: 40px; height: 40px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.approved__title { font: 700 30px/1.15 var(--font-title); color: var(--teal-800); }
.approved__text { font-size: 15px; color: var(--text-muted); max-width: 340px; margin-top: -6px; }
.approved__sim { font-size: 11.5px; font-weight: 600; color: var(--warn-text); margin-top: -8px; }

.receipt {
  width: 100%; max-width: 420px; text-align: left;
  border: 1px solid var(--border); border-radius: var(--radius-card); overflow: hidden;
  background: var(--bg-card); box-shadow: var(--shadow-card);
}
.receipt__head {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; background: var(--bg-note); border-bottom: 1px solid var(--border-teal);
  font-size: 14px; font-weight: 700; color: var(--teal-800);
}
.receipt__gl {
  width: 26px; height: 26px; border-radius: 8px; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--st-saludable), var(--st-saludable-2));
}
.receipt__gl svg { width: 15px; height: 15px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.receipt__body { padding: 6px 14px 10px; }
.receipt__row { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: 13.5px; }
.receipt__row + .receipt__row { border-top: 1px solid var(--border-row); }
.receipt__row dt { color: var(--text-muted); }
.receipt__row dd { font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.actions--center { justify-content: center; width: 100%; max-width: 420px; }
.actions--center .btn { width: 100%; }

/* ---------- Acceso a caja (login con Windows) ---------- */
.access { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 16px; }
.access__wrap { width: 100%; max-width: 440px; }
.access__card { text-align: left; }
.access__logo {
  display: block; width: auto; height: 22px; max-width: 140px; object-fit: contain;
  margin-bottom: 16px; padding: 10px 14px; box-sizing: content-box;
  border-radius: var(--radius-control); background: var(--grad-menu);
}
.access .actions { justify-content: stretch; }
.access .actions .btn { width: 100%; }
.access [hidden] { display: none !important; }
.access .field { max-width: none; margin-top: 4px; }
.access .form .actions { margin-top: 12px; }
