From 050dc9d309e2442fbf4d9edb03afdc243b37fb1f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jorem=20Ju=C3=A1rez?= Date: Tue, 23 Jun 2026 11:53:00 -0600 Subject: [PATCH] feat(cobranza): desglose del total por tipo en el dashboard MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Bajo las tarjetas de Total acumulado / Interés moratorio agrega 4 mini- tarjetas (grid 2×2) con el saldo pendiente desglosado por tipo de cobro: Renta, Valor residual, Extraordinaria y Otros (personalizados). Cada una con acento de color del tipo; siempre visibles (incluso en $0). La suma de las cuatro coincide con el Total acumulado. renderStats acumula saldo por tipo (tipos desconocidos caen en Otros). Solo UI. Co-Authored-By: Claude Opus 4.8 (1M context) --- web/cobranza.html | 36 +++++++++++++++++++++++++++++++++++- 1 file changed, 35 insertions(+), 1 deletion(-) diff --git a/web/cobranza.html b/web/cobranza.html index 657ba5b..f640ee9 100644 --- a/web/cobranza.html +++ b/web/cobranza.html @@ -82,6 +82,21 @@ .stat-value.accent { color: var(--accent); } .stat-value.warning { color: var(--warning); } + /* Desglose del total por tipo de cobro */ + .summary-breakdown { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 1.4rem; } + .stat.mini { padding: 0.7rem 0.85rem; border-left: 3px solid var(--line); } + .stat.mini.renta { border-left-color: var(--renta); } + .stat.mini.vr { border-left-color: var(--vr); } + .stat.mini.extra { border-left-color: var(--extra); } + .stat.mini.otro { border-left-color: var(--otro); } + .stat.mini .stat-label { display: flex; align-items: center; gap: 6px; } + .stat.mini .dot { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 auto; } + .stat.mini.renta .dot { background: var(--renta); } + .stat.mini.vr .dot { background: var(--vr); } + .stat.mini.extra .dot { background: var(--extra); } + .stat.mini.otro .dot { background: var(--otro); } + .stat.mini .stat-value { font-size: 19px; margin-top: 3px; } + .section-label { font-size: 11px; font-weight: 700; color: var(--text-tertiary); text-transform: uppercase; letter-spacing: 0.9px; margin: 0 0 12px 2px; display: flex; align-items: center; gap: 7px; } .btn-wide, .btn, .btn-save, .btn-cliente, .dup-banner button, .undo-fab, .btn-cobro, .btn-pagado, .btn-edit { display: inline-flex; align-items: center; justify-content: center; gap: 8px; } .ic { flex: 0 0 auto; vertical-align: middle; } @@ -340,6 +355,13 @@
Interés moratorio
$0
+
+
Renta
$0
+
Valor residual
$0
+
Extraordinaria
$0
+
Otros
$0
+
+