fix(sinpe): acomodar texto de aprobacion manual en diseno horizontal espacioso y habilitar en panel admin

This commit is contained in:
unknown
2026-10-07 00:30:51 -06:00
parent 440e0f4edb
commit 451d27d7df
3 changed files with 297 additions and 21 deletions
+39 -3
View File
@@ -541,7 +541,8 @@
</button>
<button class="admin-tab-btn" id="btnTabAdminRecarga" onclick="switchAdminTab('recarga')">
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect width="20" height="14" x="2" y="5" rx="2"/><line x1="2" x2="22" y1="10" y2="10"/></svg>
<span>Recarga Manual</span>
<span>Recargas & SINPE</span>
<span id="badgeAdminTabSinpeCount" style="background: #10b981; color: white; padding: 2px 7px; border-radius: 10px; font-size: 0.70rem; font-weight: 800; display: none; margin-left: 5px;">0</span>
</button>
<button class="admin-tab-btn" id="btnTabAdminMovimientos" onclick="switchAdminTab('movimientos')">
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M14 2v4a2 2 0 0 0 2 2h4"/><path d="M16 22h2a2 2 0 0 0 2-2V7.5L14.5 2H6a2 2 0 0 0-2 2v3"/><path d="m3 12.5 3 3 6-6"/></svg>
@@ -595,8 +596,43 @@
</div>
</div>
<!-- TAB 3: CARGA MANUAL DE DINERO -->
<div id="adminTabContentRecarga" class="admin-card" style="display: none; max-width: 550px; margin: 0 auto;">
<!-- TAB 3: CARGA MANUAL DE DINERO Y APROBACIÓN SINPE -->
<div id="adminTabContentRecarga" class="admin-card" style="display: none; max-width: 820px; margin: 0 auto;">
<!-- SECCIÓN 1: SOLICITUDES SINPE PENDIENTES DE APROBACIÓN -->
<div id="adminSinpeRequestsBox" style="margin-bottom: 24px; background: #ffffff; border: 1.5px solid #86efac; border-radius: 16px; padding: 18px 20px; box-shadow: 0 2px 10px rgba(16, 185, 129, 0.08);">
<div style="display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; flex-wrap: wrap; gap: 10px;">
<div style="display: flex; align-items: center; gap: 10px;">
<div style="width: 40px; height: 40px; border-radius: 12px; background: #ecfdf5; color: #10b981; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; border: 1.5px solid #a7f3d0; flex-shrink: 0;">
📱
</div>
<div>
<h4 style="margin: 0; font-size: 1.05rem; font-weight: 900; color: #0f172a; display: flex; align-items: center; gap: 8px;">
<span>Aprobar Recargas SINPE Móvil</span>
<span id="adminSinpeCountBadge" style="background: #10b981; color: white; font-size: 0.72rem; font-weight: 800; padding: 2px 8px; border-radius: 12px; display: none;">0</span>
</h4>
<p style="margin: 2px 0 0 0; font-size: 0.78rem; color: #64748b;">
Verifica las transferencias reportadas por los padres y acredita el saldo al instante.
</p>
</div>
</div>
<button type="button" onclick="loadAdminSinpeRequests()" class="btn-saas btn-saas-outline" style="height: 32px; padding: 0 12px; font-size: 0.78rem; font-weight: 700;">
<svg width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" style="display: inline-block; vertical-align: middle; margin-right: 4px;"><path d="M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8"/><path d="M21 3v5h-5"/><path d="M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16"/><path d="M3 21v-5h5"/></svg>
<span>Refrescar</span>
</button>
</div>
<div id="adminSinpeRequestsList" style="display: flex; flex-direction: column; gap: 12px;">
<!-- Solicitudes SINPE pendientes cargadas dinámicamente -->
</div>
</div>
<!-- SEPARADOR CON RECARGA EN EFECTIVO -->
<div style="text-align: center; margin: 26px 0 20px 0; position: relative;">
<hr style="border: none; border-top: 1px solid #e2e8f0; margin: 0;">
<span style="position: absolute; top: -10px; left: 50%; transform: translateX(-50%); background: var(--card-bg, #ffffff); padding: 0 14px; font-size: 0.78rem; font-weight: 800; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.5px;">O Recarga Manual en Efectivo</span>
</div>
<div style="text-align: center; margin-bottom: 18px;">
<div style="width: 48px; height: 48px; border-radius: 12px; background: rgba(2, 132, 199, 0.1); color: #0284c7; display: flex; align-items: center; justify-content: center; margin: 0 auto 8px;">
<svg width="26" height="26" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect width="20" height="14" x="2" y="5" rx="2"/><line x1="2" x2="22" y1="10" y2="10"/></svg>