From a70cb8467c0a008cf9f3db1060396e14298af7a8 Mon Sep 17 00:00:00 2001 From: FrankZamora Date: Sat, 8 Nov 2025 15:17:55 -0600 Subject: [PATCH] Fix Tablas APU: Estilos para .analisis y quitar Courier New de .desglose MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PROBLEMA 1: Tabla .analisis sin estilos de header - La tabla .analisis no tiene tag , solo - CSS buscaba .analisis table thead tr th - Primera fila del tbody no se estilizaba como header SOLUCIÓN 1: - Nuevo selector: .analisis table tbody tr:first-child td - Aplica gradiente navy, texto blanco, centrado - Funciona para tablas sin PROBLEMA 2: Fuente Courier New en .desglose - Columnas numéricas de .desglose usaban Courier New - Usuario NO quiere fuente monospace en .desglose SOLUCIÓN 2: - Separados selectores de columnas numéricas: - .analisis: CON font-family Courier New (mantiene) - .desglose: SIN font-family (usa fuente por defecto) CAMBIOS CSS: - +11 líneas: Nuevo selector para primera fila .analisis - Refactor: Separar selectores .analisis y .desglose - .analisis mantiene Courier New - .desglose usa fuente estándar Archivo modificado: - wp-content/themes/apus-theme/assets/css/tables-apu.css 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- .../apus-theme/assets/css/tables-apu.css | 27 +++++++++++++++---- 1 file changed, 22 insertions(+), 5 deletions(-) diff --git a/wp-content/themes/apus-theme/assets/css/tables-apu.css b/wp-content/themes/apus-theme/assets/css/tables-apu.css index 65f2e55e..27f52ae7 100644 --- a/wp-content/themes/apus-theme/assets/css/tables-apu.css +++ b/wp-content/themes/apus-theme/assets/css/tables-apu.css @@ -101,6 +101,17 @@ z-index: 10; } +/* ESPECIAL: Primera fila de .analisis cuando NO tiene + (para tablas de resumen que solo tienen ) */ +.analisis table tbody tr:first-child td { + background: linear-gradient(135deg, #1e3a5f 0%, #2c5282 100%); + color: #ffffff; + font-weight: 600; + text-align: center !important; + padding: 1rem; + border: none; +} + /* ======================================== FILAS NORMALES ======================================== */ @@ -142,22 +153,28 @@ font-size: 0.9em; } -/* Columnas 4, 5, 6: Cantidad, Costo, Importe - derecha con fuente monospace */ +/* Columnas 4, 5, 6 en .analisis: Cantidad, Costo, Importe - con fuente monospace */ .analisis table td:nth-child(4), .analisis table td.c4, -.desglose table td.c4, .analisis table td:nth-child(5), .analisis table td.c5, -.desglose table td.c5, .analisis table td:nth-child(6), -.analisis table td.c6, -.desglose table td.c6 { +.analisis table td.c6 { text-align: right !important; font-family: 'Courier New', Courier, monospace; font-weight: 500; color: #1e3a5f; } +/* Columnas 4, 5, 6 en .desglose: Cantidad, Costo, Importe - SIN fuente monospace */ +.desglose table td.c4, +.desglose table td.c5, +.desglose table td.c6 { + text-align: right !important; + font-weight: 500; + color: #1e3a5f; +} + /* ======================================== HOVER EN FILAS DE DATOS ======================================== */