Fix tablas APU: Corregir TODOS los estilos vs template

PROBLEMA:
- custom-style.css tenía código DUPLICADO de tablas APU (137 líneas)
- tables-apu.css tenía 5 diferencias críticas vs template
- Usuario reportó que tablas en staging NO coinciden con template

SOLUCIÓN ARQUITECTURAL:
 Eliminar TODO código .analisis de custom-style.css (líneas 160-282 + responsive 914-924)
   - Principio: cada componente debe tener su PROPIO archivo CSS
   - custom-style.css NO debe tener estilos de componentes específicos

CORRECCIONES EN TABLES-APU.CSS:
1.  box-shadow: 0 2px 8px → 0 4px 16px (línea 25)
   - Template usa blur radius 16px, no 8px
2.  Section header: ELIMINAR text-transform: uppercase (línea 163)
   - Template usa textTransform: "none"
3.  Section header: ELIMINAR letter-spacing: 0.5px (línea 165)
   - Template usa letterSpacing: "normal"
4.  Section header: ELIMINAR font-size: 0.95em (línea 164)
   - Template no reduce el tamaño de fuente
5.  Columnas numéricas: AGREGAR color: #1e3a5f (línea 139)
   - Template computed muestra rgb(30, 58, 95) explícito

VERIFICACIÓN:
-  style.css: NO tiene reglas .analisis
-  responsive.css: Solo regla genérica table (max-width: 575.98px)
-  utilities.css: Solo clases d-table de Bootstrap
-  animations.css: NO tiene reglas table
-  Orden de carga: custom-style (p11) → tables-apu (p15) ✓

COMPARACIÓN CON TEMPLATE:
Extraído computed styles del template index.html usando Playwright:
- table: boxShadow "0px 4px 16px", borderRadius "8px" ✓
- header: gradient #1e3a5f→#2c5282, padding 16px ✓
- col1-2: Poppins, left align ✓
- col3: center, color #6c757d ✓
- col4-6: Courier New monospace, right, color #1e3a5f ✓
- section-header: color #1e3a5f, fontWeight 600, textTransform "none" ✓
- subtotal: bg rgba(255,133,0,0.1), color #FF8600 ✓
- total: gradient, color white, fontSize 1.1rem/1.25rem ✓

RESULTADO:
- 137 líneas eliminadas (código duplicado en custom-style.css)
- 5 correcciones críticas en tables-apu.css
- Arquitectura CSS correcta: cada componente en su archivo

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
FrankZamora
2025-11-08 14:24:31 -06:00
parent d52b0b5cd1
commit c23ed76034
2 changed files with 4 additions and 139 deletions

View File

@@ -22,7 +22,7 @@
width: 100%;
border-collapse: collapse;
background: #ffffff;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
border-radius: 8px;
border: none;
border-spacing: 0;
@@ -136,6 +136,7 @@
text-align: right !important;
font-family: 'Courier New', Courier, monospace;
font-weight: 500;
color: #1e3a5f;
}
/* ========================================
@@ -160,9 +161,6 @@
color: #1e3a5f;
padding: 0.75rem 1rem;
border: none !important;
text-transform: uppercase;
font-size: 0.95em;
letter-spacing: 0.5px;
}
/* ========================================