feat(padres): agregar opcion Ver motivo con modal explicativo para recargas SINPE rechazadas

This commit is contained in:
unknown
2026-10-08 13:38:27 -06:00
parent abee440e12
commit 186a0ebab9
5 changed files with 246 additions and 15 deletions
+68 -3
View File
@@ -12,7 +12,7 @@
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<meta name="apple-mobile-web-app-title" content="SiboPay">
<meta name="mobile-web-app-capable" content="yes">
<link rel="stylesheet" href="/css/styles.css?v=13.6">
<link rel="stylesheet" href="/css/styles.css?v=13.7">
<link rel="stylesheet" href="/css/desktop.css?v=2.2">
<style>
/* Transiciones suaves */
@@ -3341,6 +3341,71 @@
</div>
</div>
<!-- MODAL: VER MOTIVO DE RECHAZO SINPE (PORTAL DE PADRES) -->
<div class="modal-qr-backdrop" id="modalParentVerMotivoRechazo" style="display: none; z-index: 99999;" onclick="cerrarModalParentMotivoRechazo(event)">
<div class="modal-qr-card" onclick="event.stopPropagation()" style="max-width: 440px; text-align: left; padding: 22px; border-radius: 18px; box-shadow: 0 20px 25px -5px rgba(0,0,0,0.2), 0 8px 10px -6px rgba(0,0,0,0.2);">
<!-- Encabezado -->
<div style="display: flex; align-items: center; justify-content: space-between; border-bottom: 1.5px solid var(--border, #e2e8f0); padding-bottom: 10px; margin-bottom: 14px;">
<div style="display: flex; align-items: center; gap: 10px;">
<div style="width: 36px; height: 36px; border-radius: 10px; background: #fee2e2; color: #dc2626; display: flex; align-items: center; justify-content: center; font-size: 1.15rem; flex-shrink: 0;">
🚫
</div>
<div>
<h3 style="margin: 0; font-size: 1.05rem; font-weight: 900; color: #991b1b;">Recarga No Acreditada</h3>
<span style="font-size: 0.72rem; color: var(--text-muted, #64748b);">Detalle del rechazo reportado por la soda</span>
</div>
</div>
<button type="button" onclick="cerrarModalParentMotivoRechazo()" style="background: none; border: none; font-size: 1.3rem; color: var(--text-muted, #64748b); cursor: pointer; padding: 4px;" title="Cerrar">✕</button>
</div>
<!-- Resumen de Solicitud -->
<div style="background: rgba(148, 163, 184, 0.08); border: 1px solid var(--border, #e2e8f0); border-radius: 10px; padding: 10px 12px; margin-bottom: 12px; font-size: 0.80rem; line-height: 1.45;">
<div style="display: flex; justify-content: space-between;">
<span style="color: var(--text-muted, #64748b);">Estudiante:</span>
<strong id="parentMotivoEstudiante" style="color: var(--text-main, #0f172a);">-</strong>
</div>
<div style="display: flex; justify-content: space-between; margin-top: 3px;">
<span style="color: var(--text-muted, #64748b);">Monto Solicitado:</span>
<strong id="parentMotivoMonto" style="color: #0284c7; font-size: 0.92rem;">₡0</strong>
</div>
<div style="display: flex; justify-content: space-between; margin-top: 3px;">
<span style="color: var(--text-muted, #64748b);">Referencia / Cód:</span>
<strong id="parentMotivoComprobante" style="color: var(--text-main, #334155); font-family: monospace;">-</strong>
</div>
<div style="display: flex; justify-content: space-between; margin-top: 3px;">
<span style="color: var(--text-muted, #64748b);">Fecha de Solicitud:</span>
<span id="parentMotivoFecha" style="color: var(--text-muted, #64748b); font-size: 0.76rem;">-</span>
</div>
</div>
<!-- Caja del Motivo de Rechazo -->
<div style="background: #fff1f2; border: 1.5px solid #fecdd3; border-radius: 12px; padding: 12px 14px; margin-bottom: 12px;">
<div style="font-size: 0.72rem; font-weight: 800; color: #be123c; text-transform: uppercase; letter-spacing: 0.5px; display: flex; align-items: center; gap: 5px;">
<svg width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5"><circle cx="12" cy="12" r="10"/><line x1="12" y1="8" x2="12" y2="12"/><line x1="12" y1="16" x2="12.01" y2="16"/></svg>
<span>Motivo indicado por la soda:</span>
</div>
<div id="parentMotivoTexto" style="font-size: 0.88rem; font-weight: 800; color: #991b1b; margin-top: 5px; line-height: 1.45;">
Fondos no verificados en la cuenta bancaria de la soda.
</div>
</div>
<!-- Guía y Orientación para el Padre -->
<div style="font-size: 0.74rem; color: #64748b; line-height: 1.42; display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; background: #f8fafc; border: 1px solid #e2e8f0; margin-bottom: 16px;">
<span style="font-size: 1rem; line-height: 1.1;">ℹ️</span>
<span>
Si realizaste la transferencia correctamente desde tu banco, por favor comunícate con la administración de la soda escolar y presenta el comprobante oficial para su verificación manual.
</span>
</div>
<!-- Botón de Cerrar -->
<button type="button" onclick="cerrarModalParentMotivoRechazo()" class="btn-saas btn-saas-primary" style="width: 100%; height: 38px; font-weight: 800; font-size: 0.88rem; justify-content: center; cursor: pointer;">
Entendido
</button>
</div>
</div>
<!-- BARRA DE NAVEGACIÓN INFERIOR PWA (MÓVILES) -->
<nav class="pwa-bottom-nav" id="pwaBottomNav" style="display: none;">
<button class="pwa-nav-item active" id="pwaNavMenu" onclick="pwaNavigateTo('menu')">
@@ -3365,10 +3430,10 @@
</button>
</nav>
<script src="/js/dialogs.js?v=13.6"></script>
<script src="/js/dialogs.js?v=13.7"></script>
<script src="/js/sounds.js?v=9.6"></script>
<script src="/js/jsQR.js"></script>
<script src="/js/food-icons.js?v=1.1"></script>
<script src="/js/app.js?v=13.6"></script>
<script src="/js/app.js?v=13.7"></script>
</body>
</html>