/* CobroFlow · Cierre rápido del supervisor y "Cierres" del socio. CSS puro, móvil primero. */
.cr-caja { background: #fff; border: 2px solid #f59e0b; border-radius: 22px; padding: 16px; display: grid; gap: 14px; }
.cr-caja h3 { margin: 0; font: 900 17px/1.2 Inter, sans-serif; color: #0f172a; }
.cr-caja .cr-sub { margin: 2px 0 0; font-size: 13px; color: #64748b; }
.cr-estado { border-radius: 14px; padding: 10px 12px; font-size: 13.5px; font-weight: 700; background: #fef3c7; color: #92400e; }
.cr-estado.ok { background: #d1fae5; color: #065f46; }
.cr-estado.mal { background: #ffe4e6; color: #9f1239; }
.cr-campo { display: grid; gap: 6px; }
.cr-campo label { font-size: 13px; font-weight: 800; color: #334155; text-transform: uppercase; letter-spacing: .04em; }
.cr-campo input { width: 100%; box-sizing: border-box; min-height: 72px; border: 2px solid #cbd5e1; border-radius: 18px; padding: 0 16px; font-size: 34px; font-weight: 900; text-align: center; color: #0f172a; background: #f8fafc; outline: none; }
.cr-campo input:focus { border-color: #10b981; background: #fff; }
.cr-campo small { color: #64748b; font-size: 12px; text-align: center; }
.cr-lista { display: grid; gap: 10px; }
.cr-lista h4 { margin: 0; font: 800 13px Inter, sans-serif; text-transform: uppercase; letter-spacing: .04em; color: #334155; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.cr-todas { min-height: 44px; padding: 0 14px; border: 1px solid #10b981; color: #047857; background: #ecfdf5; border-radius: 12px; font-weight: 800; font-size: 13px; }
.cr-tarjeta { border: 1px solid #e2e8f0; border-radius: 18px; padding: 12px; display: grid; gap: 10px; background: #fff; }
.cr-tarjeta.validado { border-color: #6ee7b7; background: #f0fdf9; }
.cr-tarjeta.rechazado { border-color: #fda4af; background: #fff1f2; }
.cr-dato { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.cr-dato b { font-size: 16px; overflow-wrap: anywhere; } .cr-dato small { display: block; color: #64748b; font-size: 12.5px; overflow-wrap: anywhere; }
.cr-monto { font-size: 20px; font-weight: 900; color: #0f172a; flex: none; }
.cr-botones { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cr-botones button { min-height: 56px; border: 0; border-radius: 16px; font-size: 16px; font-weight: 900; color: #fff; }
.cr-botones .si { background: #059669; } .cr-botones .no { background: #e11d48; }
.cr-hecho { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-weight: 800; font-size: 14px; }
.cr-hecho button { min-height: 44px; padding: 0 14px; border: 1px solid #cbd5e1; background: #fff; border-radius: 12px; font-weight: 800; font-size: 13px; }
.cr-voucher { justify-self: start; min-height: 40px; padding: 0 12px; border: 1px solid #bae6fd; background: #f0f9ff; color: #0369a1; border-radius: 12px; font-weight: 800; font-size: 13px; }
.cr-emitir { width: 100%; min-height: 64px; border: 0; border-radius: 18px; background: #0f172a; color: #fff; font-size: 19px; font-weight: 900; }
.cr-emitir:disabled { background: #e2e8f0; color: #94a3b8; }
.cr-vacio { text-align: center; color: #64748b; padding: 14px 6px; font-size: 14px; }
.cr-detalle { border: 1px dashed #cbd5e1; border-radius: 16px; padding: 4px 12px; }
.cr-detalle > summary { min-height: 48px; display: flex; align-items: center; font-weight: 800; font-size: 14px; color: #475569; cursor: pointer; }
/* Resultado del cierre (supervisor) y tarjeta del socio */
.cr-tabla { display: grid; gap: 6px; }
.cr-fila { display: grid; hyphens: none; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 6px; align-items: center; font-size: 13px; padding: 8px 10px; border-radius: 12px; background: #f8fafc; }
.cr-fila.cab { background: none; font-size: 11px; font-weight: 800; text-transform: uppercase; color: #64748b; padding: 0 10px; }
.cr-fila span:not(:first-child) { text-align: right; font-variant-numeric: tabular-nums; }
.cr-fila .rojo { color: #e11d48; font-weight: 900; } .cr-fila .verde { color: #059669; font-weight: 800; }
.cr-cierre { border: 1px solid #e2e8f0; border-radius: 18px; padding: 12px; background: #fff; display: grid; gap: 10px; }
.cr-cierre.cuadra { border-color: #6ee7b7; } .cr-cierre.descuadre { border-color: #fda4af; background: #fff7f8; } .cr-cierre.pend { border-color: #fcd34d; }
.cr-cierre header { display: flex; justify-content: space-between; gap: 8px; align-items: center; flex-wrap: wrap; }
.cr-cierre header b { font-size: 15px; }
.cr-chip { display: inline-block; border-radius: 999px; padding: 3px 10px; font-size: 12px; font-weight: 800; background: #e2e8f0; color: #334155; }
.cr-chip.ok { background: #d1fae5; color: #065f46; } .cr-chip.mal { background: #ffe4e6; color: #9f1239; } .cr-chip.amar { background: #fef3c7; color: #92400e; }
.cr-nota { font-size: 12.5px; color: #475569; margin: 0; } .cr-nota.amar { color: #92400e; font-weight: 700; } .cr-nota.rojo { color: #be123c; font-weight: 700; }
.cr-socio { display: grid; gap: 10px; }
.cr-socio > h3 { margin: 0; font: 900 16px Inter, sans-serif; color: #0f172a; }
@media (max-width: 380px) { .cr-fila { font-size: 12px; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 4px; padding: 8px; } }
/* Placa con el código corto de cada persona (S01, I02, V03, C04…) */
.cf-placa { display: inline-flex; align-items: center; justify-content: center; min-width: 2.6em; padding: 2px 8px; margin-right: 6px; border-radius: 8px; font: 900 12px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .06em; color: #fff; background: #334155; border: 1px solid rgba(15, 23, 42, .25); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .18); vertical-align: middle; white-space: nowrap; }
.cf-placa.P { background: #4f46e5; } .cf-placa.I { background: #0d9488; } .cf-placa.S { background: #d97706; } .cf-placa.C { background: #0284c7; } .cf-placa.M { background: #0f172a; }
.cr-alerta { border-radius: 14px; padding: 10px 12px; font-size: 13.5px; font-weight: 800; display: flex; gap: 8px; align-items: flex-start; }
.cr-alerta.ROJO { background: #ffe4e6; color: #9f1239; border: 1px solid #fda4af; } .cr-alerta.AMBAR { background: #fef3c7; color: #92400e; border: 1px solid #fcd34d; } .cr-alerta.INFO { background: #f1f5f9; color: #475569; font-weight: 700; } .cr-alerta.OK { background: #ecfdf5; color: #065f46; font-weight: 700; }
.cr-frec { border: 1px solid #e2e8f0; border-radius: 14px; padding: 10px; display: grid; gap: 8px; background: #f8fafc; }
.cr-frec .fila { display: flex; gap: 8px; flex-wrap: wrap; } .cr-frec select { flex: 1 1 140px; min-height: 44px; border: 1px solid #cbd5e1; border-radius: 12px; padding: 0 10px; font-weight: 700; background: #fff; font-size: 14px; }
/* Bienvenida guiada del socio nuevo (onboarding) */
.ob-card { background: linear-gradient(160deg, #eef2ff, #ffffff 60%); border: 2px solid #c7d2fe; border-radius: 24px; padding: 18px; display: grid; gap: 14px; }
.ob-card > h2 { margin: 0; font: 900 21px/1.2 Inter, sans-serif; color: #1e1b4b; } .ob-card > p { margin: 0; color: #475569; font-size: 14px; }
.ob-progreso { display: flex; gap: 6px; } .ob-progreso i { flex: 1; height: 6px; border-radius: 99px; background: #e2e8f0; } .ob-progreso i.on { background: #4f46e5; }
.ob-paso { display: grid; grid-template-columns: 40px 1fr; gap: 12px; padding: 14px; border-radius: 18px; background: #fff; border: 1px solid #e2e8f0; }
.ob-paso.bloqueado { background: #f1f5f9; border-style: dashed; opacity: .75; } .ob-paso.hecho { border-color: #6ee7b7; background: #f0fdf9; }
.ob-num { width: 40px; height: 40px; border-radius: 99px; background: #4f46e5; color: #fff; display: grid; place-items: center; font: 900 18px Inter, sans-serif; }
.ob-paso.bloqueado .ob-num { background: #94a3b8; } .ob-paso.hecho .ob-num { background: #059669; }
.ob-paso h3 { margin: 0; font: 900 16px/1.25 Inter, sans-serif; color: #0f172a; } .ob-paso p { margin: 3px 0 0; font-size: 13px; color: #64748b; }
.ob-botones { display: grid; gap: 10px; margin-top: 12px; }
.ob-btn { min-height: 56px; width: 100%; border: 0; border-radius: 16px; font: 900 16px Inter, sans-serif; color: #fff; display: flex; align-items: center; justify-content: center; gap: 8px; }
.ob-btn.sup { background: #d97706; } .ob-btn.cob { background: #0284c7; } .ob-btn.ruta { background: #4f46e5; }
.ob-btn.hecho { background: #ecfdf5; color: #065f46; border: 1px solid #6ee7b7; justify-content: space-between; padding: 0 14px; font-size: 14px; }
.ob-btn.hecho button { border: 0; background: none; color: #047857; font-weight: 900; text-decoration: underline; min-height: 44px; }
.ob-btn.cerrado { background: #cbd5e1; color: #64748b; cursor: not-allowed; }
.ob-candado { font-size: 12.5px; color: #64748b; font-weight: 700; margin-top: 8px; }
.ob-activo > :not(.js-bienvenida) { display: none !important; }
button.ob-bloq { background: #cbd5e1 !important; color: #64748b !important; cursor: not-allowed; box-shadow: none !important; }
.ob-tip { position: fixed; z-index: 120; max-width: 260px; padding: 10px 12px; border-radius: 12px; background: #0f172a; color: #fff; font-size: 13px; font-weight: 700; line-height: 1.35; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.ob-tip::before { content: ''; position: absolute; top: -6px; left: var(--flecha, 24px); border: 6px solid transparent; border-top: 0; border-bottom-color: #0f172a; }
@media (min-width: 640px) { .ob-botones { grid-template-columns: 1fr 1fr; } }
/* Salida clara de modales + aviso de cambios sin guardar (navegacion.js) */
.cf-salir-barra { position: sticky; top: 0; z-index: 6; display: flex; justify-content: flex-start; padding: 0 0 10px; margin: -2px 0 6px; background: inherit; }
.cf-salir { min-height: 46px; padding: 0 18px; border: 0; border-radius: 14px; background: #e11d48; color: #fff; font: 900 15px Inter, sans-serif; display: inline-flex; align-items: center; gap: 8px; box-shadow: 0 4px 12px rgba(225, 29, 72, .3); }
.cf-salir:active { transform: scale(.97); }
.nav-conf { position: fixed; inset: 0; z-index: 130; background: rgba(15, 23, 42, .72); display: flex; align-items: center; justify-content: center; padding: 20px; }
.nav-conf-caja { background: #fff; border-radius: 22px; padding: 22px 18px 18px; width: 100%; max-width: 380px; display: grid; gap: 10px; text-align: center; box-shadow: 0 20px 50px rgba(0, 0, 0, .4); }
.nav-conf-ico { font-size: 34px; } .nav-conf-caja p { margin: 0 0 6px; font-size: 16px; font-weight: 800; color: #0f172a; line-height: 1.4; }
.nav-conf-caja button { min-height: 54px; border: 0; border-radius: 16px; font: 900 16px Inter, sans-serif; }
.nav-seguir { background: #4f46e5; color: #fff; } .nav-perder { background: #ffe4e6; color: #be123c; }
/* Supervisor: reporte del cobrador; socio: el juez (cobrador original vs supervisor) */
.cr-reporte { background: #f0f9ff; border: 1px solid #bae6fd; border-radius: 16px; padding: 12px; display: grid; gap: 4px; font-size: 14px; color: #0c4a6e; }
.cr-juez .cr-fila { grid-template-columns: 1.5fr 1fr 1fr 1.3fr; font-size: 12.5px; } .cr-juez .cr-fila.cab { font-size: 10px; }
.cr-juez .cr-fila.total { background: #e2e8f0; font-weight: 800; }
.cr-juez .cr-fila span:last-child { white-space: nowrap; }
/* Solicitudes pendientes: 0 = widget mínimo verde; > 0 = caja roja llamativa */
.sol-caja { border-radius: 24px; padding: 18px; }
.sol-mini { display: none; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; color: #065f46; }
.sol-caja.sol-cero { background: #ecfdf5; border: 1px solid #6ee7b7; padding: 9px 14px; box-shadow: none; }
.sol-caja.sol-cero > :not(.sol-mini) { display: none !important; } .sol-caja.sol-cero .sol-mini { display: flex; }
.sol-caja.sol-alerta { background: linear-gradient(135deg, #fff1f2, #ffe4e6); border: 3px solid #e11d48; box-shadow: 0 8px 24px rgba(225, 29, 72, .28); }
.sol-alerta h3 { color: #9f1239 !important; } .sol-alerta p, .sol-alerta .text-amber-800 { color: #be123c !important; }
.sol-alerta .bg-amber-500 { background: #e11d48 !important; }
.sol-alerta #badgeContadorSolicitudes { background: #e11d48 !important; color: #fff !important; animation: solPulso 1.6s ease-in-out infinite; }
@keyframes solPulso { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
#rsSolAlerta button { margin-left: auto; min-height: 44px; padding: 0 16px; border: 0; border-radius: 12px; background: #e11d48; color: #fff; font-weight: 900; }
/* «hidden» siempre gana sobre los display propios de estos componentes (si no, quedaban cajas vacías visibles) */
.cr-alerta.hidden, .cr-reporte.hidden, .cr-socio.hidden, .cr-lista.hidden, .cr-nota.hidden, .cr-estado.hidden, .cr-frec.hidden { display: none !important; }
/* Guía de pasos en la pestaña Rutas: primero el personal, después la ruta */
.gr-caja { background: #fff; border: 2px solid #c7d2fe; border-radius: 20px; padding: 16px; display: grid; gap: 12px; }
.gr-caja.todo-listo { border-color: #a7f3d0; }
.gr-titulo { margin: 0; font: 900 17px/1.3 Inter, sans-serif; color: #1e1b4b; }
.gr-pasos { display: grid; gap: 10px; }
@media (min-width: 1024px) { .gr-pasos { grid-template-columns: repeat(4, 1fr); } }
.gr-paso { display: grid; grid-template-columns: 38px 1fr; gap: 6px 10px; align-items: start; padding: 12px; border-radius: 16px; border: 1px solid #e2e8f0; background: #f8fafc; }
.gr-paso.ahora { border: 2px solid #4f46e5; background: #eef2ff; box-shadow: 0 6px 18px rgba(79, 70, 229, .18); }
.gr-paso.hecho { border-color: #6ee7b7; background: #f0fdf9; }
.gr-paso.bloqueado { border-style: dashed; opacity: .7; }
.gr-paso.opcional { background: #fff; }
.gr-num { width: 38px; height: 38px; border-radius: 99px; display: grid; place-items: center; background: #4f46e5; color: #fff; font: 900 17px Inter, sans-serif; }
.gr-paso.hecho .gr-num { background: #059669; } .gr-paso.bloqueado .gr-num { background: #94a3b8; } .gr-paso.opcional .gr-num { background: #64748b; }
.gr-txt b { font-size: 15px; color: #0f172a; } .gr-txt p { margin: 2px 0 0; font-size: 13px; color: #475569; line-height: 1.35; }
.gr-estado { display: block; margin-top: 4px; font-size: 12.5px; font-weight: 800; color: #4f46e5; } .gr-paso.hecho .gr-estado { color: #047857; } .gr-paso.bloqueado .gr-estado { color: #64748b; } .gr-paso.opcional .gr-estado { color: #64748b; }
.gr-btn { grid-column: 1 / -1; min-height: 48px; border: 0; border-radius: 14px; color: #fff; font: 900 15px Inter, sans-serif; }
.gr-btn.sup { background: #d97706; } .gr-btn.cob { background: #0284c7; } .gr-btn.ruta { background: #0f172a; } .gr-btn.vinc { background: #059669; }
.gr-paso.hecho .gr-btn { background: #fff; color: #0f172a; border: 1px solid #cbd5e1; }
.gr-nota { margin: 0; font-size: 13px; color: #334155; background: #fefce8; border: 1px solid #fde68a; border-radius: 12px; padding: 10px 12px; }
.gr-paso.hidden { display: none; }
/* Ventana grande de confirmación (reemplazar supervisor/cobrador) */
.cfm-fondo { position: fixed; inset: 0; z-index: 135; background: rgba(15, 23, 42, .75); display: flex; align-items: center; justify-content: center; padding: 18px; }
.cfm-caja { width: 100%; max-width: 440px; background: #fff; border-radius: 24px; padding: 22px 18px 18px; display: grid; gap: 12px; text-align: center; box-shadow: 0 20px 50px rgba(0, 0, 0, .45); max-height: 100%; overflow-y: auto; }
.cfm-ico { font-size: 44px; line-height: 1; }
.cfm-titulo { margin: 0; font: 900 22px/1.25 Inter, sans-serif; color: #0f172a; }
.cfm-cuerpo { display: grid; gap: 10px; }
.cfm-cambio { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 16px; padding: 12px; display: grid; gap: 6px; }
.cfm-rol { font-size: 13px; font-weight: 900; text-transform: uppercase; color: #64748b; letter-spacing: .06em; }
.cfm-fila { display: grid; gap: 4px; font-size: 18px; }
.cfm-antes { color: #9f1239; } .cfm-despues { color: #065f46; } .cfm-flecha { font-size: 20px; }
.cfm-preg { margin: 4px 0 0; font-size: 19px; color: #0f172a; }
.cfm-si, .cfm-no { min-height: 60px; border: 0; border-radius: 16px; font: 900 19px Inter, sans-serif; color: #fff; }
.cfm-si { background: #059669; box-shadow: 0 6px 16px rgba(5, 150, 105, .3); } .cfm-no { background: #e11d48; }
.cfm-salir { min-height: 54px; border: 2px solid #94a3b8; border-radius: 16px; background: #fff; color: #334155; font: 900 18px Inter, sans-serif; }
/* Franja fija de MODO PRUEBAS (sandbox): imposible de confundir con producción */
/* v77: la franja de Modo Pruebas es un BLOQUE NORMAL al inicio de la página: empuja la barra hacia abajo y nunca la tapa */
/* v82: antes de entrar, la barra de divisas no se muestra (la pantalla de acceso es solo una calculadora) */
body:has(#mainApp.hidden) #barraGlobal { display: none; }
body:has(#mainApp.hidden) #loginScreen { min-height: 100vh; }
#franjaSandbox { position: static; display: block; width: 100%; box-sizing: border-box; margin: 0; padding: 8px 12px; background: #dc2626; color: #fff; font: 900 13px/1.3 Inter, sans-serif; text-align: center; letter-spacing: .02em; overflow-wrap: anywhere; }

/* v120 — TRANSFERENCIA bien visible frente al EFECTIVO (insignias de alto contraste) y comparativo del arqueo */
.cf-badge-tr { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; background: #3730a3; color: #fff; font-weight: 900; font-size: 10px; letter-spacing: .04em; border: 1px solid #1e1b4b; white-space: nowrap; }
.cf-badge-tr-det { display: inline-block; margin-left: 4px; padding: 1px 6px; border-radius: 6px; background: #e0e7ff; color: #3730a3; font-weight: 800; font-size: 9px; }
.cf-badge-ef { display: inline-flex; align-items: center; gap: 3px; padding: 2px 8px; border-radius: 999px; background: #dcfce7; color: #166534; font-weight: 800; font-size: 10px; border: 1px solid #86efac; white-space: nowrap; }
.cf-fila-tr { border-left: 5px solid #4f46e5; background: #eef2ff; }
.cf-desglose { font-size: 11px; font-weight: 700; color: #334155; line-height: 1.9; }
.cf-oculto { display: inline-block; padding: 1px 8px; border-radius: 8px; background: #f1f5f9; color: #475569; font-size: 10px; font-weight: 800; border: 1px dashed #94a3b8; }
.cr-comparativo { margin-top: 10px; }
.cr-comparativo span { display: block; margin-top: 4px; }
