/* =============================================================
   reparto-ui.css  -  sistema visual unificado de la app de reparto
   Deriva de las clases .mc-* de Mi Cuenta (hdr.css). Prefijo .rp-*
   para no chocar con Bootstrap/Hyper ni con .mc-*.
   ============================================================= */

:root {
  --rp-surface: #ffffff;
  --rp-surface-2: #fbf7f5;
  --rp-surface-3: #f4ede9;
  --rp-ink: #2a2230;
  --rp-soft: #6c6070;
  --rp-mute: #9a8f98;
  --rp-line: #ece2dd;
  --rp-rust: #e24f30;
  --rp-rust-ink: #ffffff;
  --rp-ok: #1c8f61;
  --rp-ok-bg: #e4f2ea;
  --rp-warn: #b97d16;
  --rp-warn-bg: #f6ecd7;
  --rp-crit: #c5402f;
  --rp-crit-bg: #f7e5e1;
  --rp-info: #326a95;
  --rp-info-bg: #e2ecf3;
  --rp-shadow: 0 1px 2px rgba(42, 34, 48, 0.06), 0 8px 22px -12px rgba(42, 34, 48, 0.16);
  --rp-font: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --rp-surface: #221c26;
    --rp-surface-2: #1c171f;
    --rp-surface-3: #2a222e;
    --rp-ink: #f0eaee;
    --rp-soft: #b6aab3;
    --rp-mute: #897e8f;
    --rp-line: #332b38;
    --rp-rust: #f26a4d;
    --rp-rust-ink: #1a1016;
    --rp-ok: #34b382;
    --rp-ok-bg: #16302a;
    --rp-warn: #d9a03f;
    --rp-warn-bg: #322815;
    --rp-crit: #e06052;
    --rp-crit-bg: #34211f;
    --rp-info: #5a95c2;
    --rp-info-bg: #172a37;
    --rp-shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 10px 24px -14px rgba(0, 0, 0, 0.6);
  }
}
:root[data-theme="dark"] {
  --rp-surface: #221c26;
  --rp-surface-2: #1c171f;
  --rp-surface-3: #2a222e;
  --rp-ink: #f0eaee;
  --rp-soft: #b6aab3;
  --rp-mute: #897e8f;
  --rp-line: #332b38;
  --rp-rust: #f26a4d;
  --rp-rust-ink: #1a1016;
  --rp-ok: #34b382;
  --rp-ok-bg: #16302a;
  --rp-warn: #d9a03f;
  --rp-warn-bg: #322815;
  --rp-crit: #e06052;
  --rp-crit-bg: #34211f;
  --rp-info: #5a95c2;
  --rp-info-bg: #172a37;
  --rp-shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 10px 24px -14px rgba(0, 0, 0, 0.6);
}

.rp { font-family: var(--rp-font); color: var(--rp-ink); }
.rp *, .rp *::before, .rp *::after { box-sizing: border-box; }
.rp-num { font-variant-numeric: tabular-nums; }

/* ---- section head ---- */
.rp-sechead {
  display: flex; align-items: baseline; justify-content: space-between;
  margin: 4px 4px 10px;
}
.rp-sechead h3 {
  margin: 0; font-size: 13px; font-weight: 900;
  letter-spacing: 0.04em; text-transform: uppercase; color: var(--rp-ink);
}
.rp-sechead .rp-upd { font-size: 11px; font-weight: 700; color: var(--rp-mute); }

/* ---- banner "en ruta" ---- */
.rp-banner {
  background: var(--rp-surface);
  border: 1px solid var(--rp-line);
  border-radius: 14px;
  padding: 11px 13px;
  display: flex; align-items: center; gap: 10px;
  box-shadow: var(--rp-shadow);
  margin-bottom: 14px;
}
.rp-banner .rp-banner-dot {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--rp-ok-bg); color: var(--rp-ok);
  display: grid; place-items: center; flex-shrink: 0;
  font-weight: 900; font-size: 13px;
}
.rp-banner.stopped .rp-banner-dot { background: var(--rp-crit-bg); color: var(--rp-crit); }
.rp-banner .rp-banner-dot .mdi { font-size: 15px; line-height: 1; }
.rp-banner .rp-banner-txt { flex: 1; min-width: 0; }
.rp-banner .rp-banner-k {
  font-size: 10px; font-weight: 800; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--rp-mute);
}
.rp-banner .rp-banner-v { font-size: 13px; font-weight: 800; display: block; }

/* ---- progreso del recorrido ---- */
.rp-progress {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  background: var(--rp-surface);
  border: 1px solid var(--rp-line);
  border-radius: 16px;
  padding: 13px;
  box-shadow: var(--rp-shadow);
  margin-bottom: 16px;
}
.rp-progress > div { display: flex; flex-direction: column; gap: 3px; }
.rp-progress .rp-k {
  display: flex; align-items: center; gap: 5px;
  font-size: 10px; font-weight: 800; letter-spacing: 0.03em;
  text-transform: uppercase; color: var(--rp-mute);
}
.rp-progress .rp-k::before { content: ""; width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.rp-progress .done .rp-k::before { background: var(--rp-ok); }
.rp-progress .pend .rp-k::before { background: var(--rp-warn); }
.rp-progress .km .rp-k::before { background: var(--rp-info); }
.rp-progress .rp-v { font-size: 17px; font-weight: 900; letter-spacing: -0.02em; }

/* ---- lista de paradas dentro de #hdractivas (Bootstrap .row) ---- */
#hdractivas.row {
  margin-left: auto;
  margin-right: auto;
  max-width: 520px;
  row-gap: 0;
}
#hdractivas > [class*="col-"] {
  padding-left: 0;
  padding-right: 0;
  margin-bottom: 14px;
}
#hdractivas > [class*="col-"]:last-child { margin-bottom: 0; }

/* ---- tarjeta de parada ---- */
.rp-stops { display: flex; flex-direction: column; gap: 14px; }
.rp-stop {
  background: var(--rp-surface);
  border: 1px solid var(--rp-line);
  border-radius: 18px;
  box-shadow: var(--rp-shadow);
  overflow: hidden;
}
.rp-stop.next { border-color: color-mix(in srgb, var(--rp-rust) 55%, var(--rp-line)); }
.rp-stop-main { padding: 13px 14px 12px; }
.rp-stop-top { display: flex; align-items: center; gap: 8px; }
.rp-seq {
  width: 26px; height: 26px; border-radius: 9px;
  background: var(--rp-surface-3); color: var(--rp-soft);
  font-size: 13px; font-weight: 900;
  display: grid; place-items: center; flex-shrink: 0;
}
.rp-stop.next .rp-seq { background: var(--rp-rust); color: var(--rp-rust-ink); }
.rp-svc {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 10.5px; font-weight: 800; letter-spacing: 0.04em;
  text-transform: uppercase; padding: 3px 9px; border-radius: 999px;
  white-space: nowrap; flex-shrink: 0;
}
.rp-svc::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.rp-svc.entrega { color: var(--rp-ok); background: var(--rp-ok-bg); }
.rp-svc.retiro { color: var(--rp-warn); background: var(--rp-warn-bg); }
.rp-svc.colecta { color: var(--rp-rust); background: color-mix(in srgb, var(--rp-rust) 14%, transparent); }
/* REDISEÑO de tarjeta (a pedido, 2026-09-17 - mockup aprobado):
   - Código de Seguimiento sube a esta fila (antes vivía como chip suelto
     abajo, ahora es una referencia chica tipo "ghost" al lado del estado).
   - Código de Proveedor pasa al extremo derecho de esta misma fila (sigue
     con su margin-left:auto de siempre - antes empujaba el nombre del
     cliente, que ya no vive en esta fila).
   - El nombre del cliente se va a su propia línea como título de la
     tarjeta (ver .rp-stop-client más abajo) - ya no compite acá. */
.rp-stop-code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 10px; font-weight: 700; letter-spacing: 0.02em;
  color: var(--rp-mute); border: 1px solid var(--rp-line);
  border-radius: 999px; padding: 2px 8px; flex-shrink: 0;
}
.rp-stop-provcode {
  margin-left: auto; flex-shrink: 0;
  font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums;
  color: var(--rp-mute); background: var(--rp-surface-3);
  padding: 1px 6px; border-radius: 6px;
}
/* Origen/Destino: ahora es el antetítulo (arriba del nombre), chico y en
   mayúsculas - "de dónde viene" antes de "a quién se le entrega". */
.rp-stop-org {
  font-size: 10.5px; font-weight: 800; letter-spacing: 0.03em; text-transform: uppercase;
  color: var(--rp-mute); margin: 10px 0 0;
}
/* El nombre del cliente es el título real de la tarjeta - antes vivía
   apretado en la fila de arriba (margin-left:auto, ellipsis, max-width
   45%) peleando con el estado y el código de proveedor. */
.rp-stop-client {
  font-size: 15.5px; font-weight: 900; color: var(--rp-ink);
  line-height: 1.25; letter-spacing: -0.01em; margin: 2px 0 0;
}
.rp-stop-addr {
  font-size: 13px; font-weight: 700; color: var(--rp-soft);
  line-height: 1.4; margin: 8px 0 0;
  display: flex; gap: 6px;
}
.rp-stop-addr .rp-pin { flex-shrink: 0; margin-top: 2px; color: var(--rp-mute); }
.rp-stop-obs { font-size: 11.5px; font-weight: 600; color: var(--rp-mute); margin: 6px 0 0; line-height: 1.45; }
.rp-stop-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.rp-chip {
  font-size: 10.5px; font-weight: 800; letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 3px 8px; border-radius: 7px;
  background: var(--rp-surface-3); color: var(--rp-soft);
  display: inline-flex; align-items: center; gap: 5px;
}
.rp-chip.eta { background: var(--rp-info-bg); color: var(--rp-info); }
.rp-chip.eta.muted { opacity: 0.65; }
.rp-chip.cobranza { background: var(--rp-warn-bg); color: var(--rp-warn); }
/* Bultos + Repo fusionados en un solo chip (a pedido, 2026-09-17: "en
   lugar de +2 repo tal vez que diga 3 bultos (2 REPO)") - el total real
   primero, la parte de repo resaltada en rust dentro del mismo pill. */
.rp-chip-bultos b { color: var(--rp-rust); font-weight: 900; margin-left: 2px; }

.rp-stop-contact {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-top: 11px; padding-top: 11px;
  border-top: 1px solid var(--rp-line);
  font-size: 12.5px; font-weight: 800; color: var(--rp-soft);
}
.rp-stop-contact .rp-tel { display: inline-flex; align-items: center; gap: 6px; }
.rp-stop-contact .rp-tel svg { color: var(--rp-mute); flex-shrink: 0; }
.rp-stop-contact .rp-btn.wa { padding: 7px 14px; }

.rp-stop-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* tres botones del mismo ancho */
  gap: 8px;
  padding: 10px 12px 12px;
  border-top: 1px solid var(--rp-line);
  background: var(--rp-surface-2);
}
.rp-stop-actions > .rp-btn {
  min-width: 0; /* que no desborden la celda */
  padding-left: 6px;
  padding-right: 6px;
  font-size: 11.5px;
  gap: 4px;
}
.rp-stop-actions > .rp-btn.no svg { width: 13px; height: 13px; flex-shrink: 0; }
.rp-btn {
  -webkit-appearance: none; appearance: none;
  border: 0; margin: 0;
  font-family: var(--rp-font);
  text-decoration: none; text-align: center;
  font-size: 12px; font-weight: 800; letter-spacing: 0.02em;
  padding: 10px 8px; border-radius: 11px;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}
.rp-btn:focus-visible { outline: 2px solid var(--rp-rust); outline-offset: 2px; }
/* acción positiva (Entregar / Retirar / Aceptar): verde sólido */
.rp-btn.primary { background: var(--rp-ok); color: #fff; }
/* acción negativa (No entrega / Cancelar): rojo sólido */
.rp-btn.no { background: var(--rp-crit); color: #fff; }
.rp-btn.map { background: var(--rp-surface); border: 1px solid var(--rp-line); color: var(--rp-soft); }
.rp-btn.icon { padding: 10px 0; }
.rp-btn.wa { background: var(--rp-ok-bg); color: var(--rp-ok); }

/* ---- warehouse: hero de carga ---- */
.rp-wh-hero {
  background: var(--rp-surface);
  border: 1px solid var(--rp-line);
  border-radius: 18px;
  padding: 15px;
  box-shadow: var(--rp-shadow);
  margin-bottom: 14px;
}
.rp-wh-hero-top {
  display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px;
}
.rp-wh-hero-top .rp-k {
  font-size: 10.5px; font-weight: 800; letter-spacing: 0.09em;
  text-transform: uppercase; color: var(--rp-mute);
}
.rp-wh-hero-top .rp-r { font-size: 13px; font-weight: 900; }
.rp-wh-count { display: flex; align-items: baseline; gap: 8px; }
.rp-wh-count .rp-big { font-size: 40px; font-weight: 900; letter-spacing: -0.03em; line-height: 1; }
.rp-wh-count .rp-of { font-size: 16px; font-weight: 800; color: var(--rp-mute); }
.rp-wh-count .rp-lbl {
  margin-left: auto; align-self: center;
  font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em;
  padding: 4px 10px; border-radius: 999px;
  color: var(--rp-warn); background: var(--rp-warn-bg);
}
.rp-wh-count .rp-lbl.done { color: var(--rp-ok); background: var(--rp-ok-bg); }
.rp-wh-bar { margin-top: 12px; height: 8px; border-radius: 999px; background: var(--rp-surface-3); overflow: hidden; }
.rp-wh-bar > i { display: block; height: 100%; border-radius: 999px; background: var(--rp-ok); width: 0; }
.rp-wh-split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  margin-top: 13px; padding-top: 12px; border-top: 1px solid var(--rp-line);
}
.rp-wh-split > div { display: flex; flex-direction: column; gap: 2px; }
.rp-wh-split .rp-k {
  display: flex; align-items: center; gap: 5px;
  font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.03em; color: var(--rp-mute);
}
.rp-wh-split .rp-k::before { content: ""; width: 7px; height: 7px; border-radius: 50%; }
.rp-wh-split .esc .rp-k::before { background: var(--rp-ok); }
.rp-wh-split .fal .rp-k::before { background: var(--rp-crit); }
.rp-wh-split .rp-v { font-size: 15px; font-weight: 900; }

.rp-scan {
  -webkit-appearance: none; appearance: none; border: 0; margin: 0 0 8px;
  width: 100%;
  display: flex; align-items: center; justify-content: center; gap: 9px;
  background: var(--rp-rust); color: var(--rp-rust-ink);
  font-family: var(--rp-font);
  font-size: 14px; font-weight: 900; letter-spacing: 0.02em;
  padding: 14px; border-radius: 14px;
  cursor: pointer;
  box-shadow: var(--rp-shadow);
}
.rp-scan:focus-visible { outline: 2px solid var(--rp-ink); outline-offset: 2px; }
.rp-scan.stop { background: var(--rp-crit-bg); color: var(--rp-crit); box-shadow: none; }

.rp-manual { display: flex; gap: 8px; margin-bottom: 16px; }
.rp-manual input {
  flex: 1; min-width: 0;
  font-family: var(--rp-font);
  font-size: 14px; font-weight: 800; text-transform: uppercase;
  color: var(--rp-ink);
  background: var(--rp-surface);
  border: 1px solid var(--rp-line);
  border-radius: 11px;
  padding: 10px 12px;
}
.rp-manual input::placeholder { color: var(--rp-mute); font-weight: 700; text-transform: none; }
.rp-manual input:focus-visible { outline: 2px solid var(--rp-rust); outline-offset: 1px; }
.rp-manual button {
  -webkit-appearance: none; appearance: none;
  cursor: pointer;
  font-family: var(--rp-font);
  font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.03em;
  color: var(--rp-soft);
  border: 1px solid var(--rp-line); border-radius: 11px;
  padding: 10px 14px; background: var(--rp-surface);
}

.rp-wh-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; padding: 0; list-style: none; }
.rp-wh-row {
  display: flex; align-items: center; gap: 10px;
  background: var(--rp-surface);
  border: 1px solid var(--rp-line);
  border-radius: 12px;
  padding: 11px 12px;
}
.rp-wh-row .rp-st {
  width: 20px; height: 20px; border-radius: 50%;
  flex-shrink: 0; display: grid; place-items: center;
  font-size: 12px; font-weight: 900;
  background: var(--rp-surface-3); color: var(--rp-mute);
  border: 1.5px dashed var(--rp-mute);
}
.rp-wh-row.ok .rp-st { background: var(--rp-ok); color: var(--rp-surface); border: 0; }
.rp-wh-row.partial .rp-st { background: var(--rp-warn-bg); color: var(--rp-warn); border: 0; }
.rp-wh-row .rp-code { font-size: 13px; font-weight: 800; letter-spacing: 0.02em; }
.rp-wh-row:not(.ok) .rp-code { color: var(--rp-soft); }
.rp-wh-row .wh-trash-btn {
  -webkit-appearance: none; appearance: none;
  border: 0; background: transparent; padding: 4px; margin: 0 0 0 auto;
  color: var(--rp-mute); cursor: pointer;
  display: inline-flex; align-items: center;
}
.rp-wh-row .wh-trash-btn:hover, .rp-wh-row .wh-trash-btn:focus-visible { color: var(--rp-crit); }
.rp-wh-row .rp-mb + .wh-trash-btn { margin-left: 8px; }
.rp-wh-row .rp-who {
  margin-left: auto; font-size: 11px; font-weight: 700; color: var(--rp-mute);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 42%;
}
.rp-wh-row .rp-mb {
  font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.03em;
  color: var(--rp-info); background: var(--rp-info-bg);
  padding: 2px 6px; border-radius: 6px; flex-shrink: 0;
}
/* Bulto que ya venía escaneado (MercadoLibre / colecta): verde, sin tacho,
   con el chip pegado a la derecha para diferenciarlo de un escaneo hecho acá. */
.rp-wh-row.pre .rp-mb { margin-left: auto; background: var(--rp-ok-bg); color: var(--rp-ok); }
/* Bulto que todavía falta escanear en WePoint. */
.rp-wh-row.pending { opacity: 0.72; }
.rp-wh-row.pending .rp-st { background: var(--rp-surface-3); color: var(--rp-mute); border: 1.5px dashed var(--rp-mute); }

.rp-confirm {
  -webkit-appearance: none; appearance: none; border: 0; margin: 0;
  width: 100%; text-align: center;
  font-family: var(--rp-font);
  font-size: 14px; font-weight: 900; letter-spacing: 0.02em;
  padding: 14px; border-radius: 14px;
  cursor: not-allowed;
  background: var(--rp-surface-3); color: var(--rp-mute);
}
.rp-confirm.ready { background: var(--rp-ok); color: var(--rp-surface); cursor: pointer; }
.rp-confirm.ready:focus-visible { outline: 2px solid var(--rp-ink); outline-offset: 2px; }

/* ---- estados varios ---- */
.rp-alert {
  border-radius: 12px; padding: 12px 14px;
  font-weight: 700; font-size: 13px; line-height: 1.45;
  background: var(--rp-warn-bg); color: var(--rp-warn);
}
.rp-alert.crit { background: var(--rp-crit-bg); color: var(--rp-crit); }
.rp-empty {
  padding: 34px 18px; text-align: center;
  color: var(--rp-mute); font-weight: 700; font-size: 13px; line-height: 1.6;
}
.rp-empty .rp-empty-t { display: block; color: var(--rp-soft); font-size: 15px; font-weight: 900; margin-bottom: 6px; }
.rp-note {
  margin-top: 16px;
  font-size: 12px; line-height: 1.6; color: var(--rp-mute);
  border-left: 2px solid var(--rp-line);
  padding-left: 12px;
}
/* Variante compacta para arriba del panel (sin el margen de arriba). */
.rp-note--tight { margin-top: 2px; margin-bottom: 6px; }

.rp-skel {
  height: 118px; border-radius: 18px;
  background: var(--rp-surface-3);
  animation: rpPulse 1.2s ease-in-out infinite;
}
@keyframes rpPulse { 50% { opacity: 0.55; } }

@media (prefers-reduced-motion: reduce) {
  .rp *, .rp-wh-bar > i { transition: none !important; animation: none !important; }
}

/* =============================================================
   Colecta / escaneo de bultos  (tarjeta del envio + modal camara)
   ============================================================= */
.rp-colecta { padding: 2px 0 4px; }

.rp-colecta-metrics {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
  background: var(--rp-surface-2);
  border: 1px solid var(--rp-line);
  border-radius: 14px;
  padding: 11px 10px;
  margin-bottom: 12px;
}
.rp-colecta-metrics > div { display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; }
.rp-colecta-metrics .rp-k {
  font-size: 9.5px; font-weight: 800; letter-spacing: 0.03em;
  text-transform: uppercase; color: var(--rp-mute);
}
.rp-colecta-metrics .rp-v { font-size: 19px; font-weight: 900; letter-spacing: -0.02em; color: var(--rp-ink); line-height: 1; }
.rp-colecta-metrics .ok .rp-v   { color: var(--rp-ok); }
.rp-colecta-metrics .pend .rp-v { color: var(--rp-warn); }
.rp-colecta-metrics .rp-sub {
  font-size: 8.5px; font-weight: 900; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--rp-warn);
  background: var(--rp-warn-bg); border-radius: 999px;
  padding: 1px 6px; margin-top: 2px; line-height: 1.4;
}

/* boton secundario (ingresar a mano / ver faltantes): mismo tamaño que .rp-scan pero outline */
.rp-scan.rp-scan-alt {
  background: var(--rp-surface);
  color: var(--rp-soft);
  border: 1px solid var(--rp-line);
  box-shadow: none;
}
.rp-scan.rp-scan-alt:active { background: var(--rp-surface-3); }

.rp-colecta-scanned { margin-top: 4px; }
.rp-colecta-scanned .rp-k {
  font-size: 10px; font-weight: 800; letter-spacing: 0.03em;
  text-transform: uppercase; color: var(--rp-mute);
}

/* --- modal de escaneo --- */
#colectaScanModal .modal-content { border: 0; border-radius: 18px; overflow: hidden; }
#colectaScanModal .modal-header { border-bottom: 1px solid var(--rp-line); padding: 12px 16px; }
#colectaScanModal .modal-title { font-size: 15px; font-weight: 900; color: var(--rp-ink); display: flex; align-items: center; gap: 8px; }
#colectaScanModal .modal-body { padding: 12px 14px 8px; }
#colectaScanModal .modal-footer { border-top: 1px solid var(--rp-line); padding: 10px 14px; gap: 8px; }
#colectaScanModal .modal-footer .rp-scan { flex: 1; }

#colecta-qr-reader {
  width: 100%; aspect-ratio: 1 / 1; max-height: 62vh;
  border-radius: 16px; overflow: hidden; background: #000;
  position: relative;
}
#colecta-qr-reader video { width: 100% !important; height: 100% !important; object-fit: cover !important; display: block; }
#colecta-qr-reader img[alt="Info icon"], #colecta-qr-reader__dashboard { display: none !important; }

.rp-scan-hint { font-size: 12px; font-weight: 700; color: var(--rp-mute); text-align: center; margin: 8px 0 6px; }

.rp-scan-fb { min-height: 22px; text-align: center; margin-bottom: 6px; }
.rp-scan-fb .fb {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 800;
  padding: 4px 12px; border-radius: 999px;
}
.rp-scan-fb .fb.ok   { background: var(--rp-ok-bg);   color: var(--rp-ok); }
.rp-scan-fb .fb.dup  { background: var(--rp-info-bg); color: var(--rp-info); }
.rp-scan-fb .fb.err  { background: var(--rp-crit-bg); color: var(--rp-crit); }

.rp-scan-expected {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 12px; font-weight: 800; color: var(--rp-soft);
  padding: 8px 0 2px;
}
.rp-scan-expected .rp-k { font-size: 10px; color: var(--rp-mute); text-transform: uppercase; letter-spacing: 0.04em; }

/* --- botones Aceptar / Cancelar lado a lado --- */
.rp-acciones-2 {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 6px;
}
.rp-acciones-2 .rp-btn { margin: 0; }

/* --- leyenda de colores del select de bultos --- */
.rp-colecta-legend {
  display: flex; gap: 14px; flex-wrap: wrap;
  margin-top: 6px; font-size: 10.5px; font-weight: 700; color: var(--rp-mute);
}
.rp-colecta-legend span { display: inline-flex; align-items: center; gap: 5px; }
.rp-colecta-legend .dot { width: 9px; height: 9px; border-radius: 3px; display: inline-block; }
.rp-colecta-legend .dot.ml { background: var(--rp-warn); }
.rp-colecta-legend .dot.ok { background: var(--rp-ok); }

/* --- bulto confirmado por MercadoLibre: tag amarillo en el select2 --- */
.select2-selection__choice.rp-choice-ml,
li.select2-selection__choice.rp-choice-ml {
  background: var(--rp-warn-bg) !important;
  border: 1px solid var(--rp-warn) !important;
  color: var(--rp-warn) !important;
  font-weight: 800 !important;
}
.select2-selection__choice.rp-choice-ml::after {
  content: " · ML";
  font-size: 10px;
  opacity: 0.9;
}
.select2-selection__choice.rp-choice-ml .select2-selection__choice__remove { color: var(--rp-warn) !important; }
