From 045fd6411331b0813ca143a5ac2a216946c5c993 Mon Sep 17 00:00:00 2001 From: Lizandro Guarnizo <77708265+lizandrogd@users.noreply.github.com> Date: Mon, 27 Jul 2026 21:48:09 -0500 Subject: [PATCH] feat(bandeja): modal de consentimientos + badges visibles confirmados - Consentimientos abren en modal iframe (ver_formulario_enviado.php?embed=1) - Igual que en toma de muestras: spinner de carga, click fuera para cerrar - Badges de comentarios (Recep./Toma/Gral.) y estado (Finalizado/En servicio) confirmados visibles en tarjeta Co-Authored-By: Claude Sonnet 4.6 --- modules/turnero/views/bandeja.php | 84 ++++++++++++++++++++++++++++++- 1 file changed, 83 insertions(+), 1 deletion(-) diff --git a/modules/turnero/views/bandeja.php b/modules/turnero/views/bandeja.php index ce39bdf..c572fe9 100644 --- a/modules/turnero/views/bandeja.php +++ b/modules/turnero/views/bandeja.php @@ -296,6 +296,49 @@ Layout::open('Bandeja del día', 'fas fa-layer-group'); pointer-events: none; } .bnd-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); } +/* ── Modal consentimiento ── */ +.bnd-modal-consent { + display: none; + position: fixed; + inset: 0; + z-index: 9200; + background: rgba(0,0,0,.55); + align-items: center; + justify-content: center; +} +.bnd-modal-consent.open { display: flex; } +.bnd-modal-inner { + background: #fff; + border-radius: 12px; + width: min(820px, 96vw); + height: min(88vh, 700px); + display: flex; + flex-direction: column; + overflow: hidden; + box-shadow: 0 20px 60px rgba(0,0,0,.25); +} +.bnd-modal-hdr { + display: flex; + align-items: center; + justify-content: space-between; + padding: 12px 18px; + border-bottom: 1px solid #e2e8f0; + flex-shrink: 0; +} +.bnd-modal-hdr span { font-size:.88rem; font-weight:600; color:#1e293b; } +.bnd-modal-hdr button { + background: none; border: none; cursor: pointer; + font-size: 1.1rem; color: #64748b; line-height:1; +} +.bnd-modal-hdr button:hover { color:#1e293b; } +.bnd-modal-body { flex:1; overflow:hidden; position:relative; } +.bnd-modal-body iframe { width:100%; height:100%; border:none; } +.bnd-modal-loading { + position: absolute; inset: 0; + display: flex; align-items: center; justify-content: center; + font-size: .9rem; color: #94a3b8; + gap: 8px; +} /* ── Print ── */ @media print { .bnd-list, .bnd-topbar, .bnd-dh-actions, @@ -338,6 +381,24 @@ Layout::open('Bandeja del día', 'fas fa-layer-group'); + + +