@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* ==========================================================================
   TEMA CLARO (LIGHT THEME) PROFESIONAL & MODERNO - RELOJ CHECADOR SAAS
   Diseño de alta gama inspirado en Tailwind UI, Linear y Stripe
   ========================================================================== */


/* ==========================================================================
   OPTIMIZACIÓN DE RESOLUCIÓN Y RENDERIZADO TIPOGRÁFICO DE ALTA DEFINICIÓN
   ========================================================================== */
html,
body,
table,
th,
td,
input,
button,
select,
textarea,
div,
span,
p,
a,
label {
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
  text-rendering: optimizeLegibility !important;
}

/* Tipografía Monospace Moderna y Tabular (Elimina Courier New pixelado en Windows) */
.font-mono,
[class*="font-mono"],
.tabular-nums,
#liveClock,
code,
pre,
kbd {
  font-family: 'JetBrains Mono', 'Cascadia Code', 'Segoe UI Mono', Consolas, 'SF Mono', Menlo, Monaco, monospace !important;
  font-feature-settings: "tnum" 1, "zero" 1 !important;
  font-variant-numeric: tabular-nums !important;
  letter-spacing: -0.01em !important;
}

/* 1. Canvas Global y Fondo Base (Luminoso & Ejecutivo estilo Imagen 4) */
html.light-theme,
html.light-theme body {
  background: radial-gradient(circle at 0% 0%, rgba(99, 102, 241, 0.05) 0%, transparent 45%),
              radial-gradient(circle at 100% 0%, rgba(16, 185, 129, 0.04) 0%, transparent 45%),
              #f4f6fb !important;
  background-attachment: fixed !important;
  color: #0f172a !important;
}

/* 2. Superficies, Tarjetas y Paneles Blancos con Elevación Suave */
html.light-theme .bg-slate-900,
html.light-theme .bg-slate-900\/90,
html.light-theme .bg-slate-900\/95,
html.light-theme .bg-slate-900\/80,
html.light-theme .bg-slate-900\/70,
html.light-theme .bg-slate-900\/60,
html.light-theme .bg-slate-900\/50 {
  background-color: #ffffff !important;
  color: #0f172a !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.04), 0 2px 6px -1px rgba(15, 23, 42, 0.02) !important;
}

/* Superficie secundaria (slate-950) */
html.light-theme .bg-slate-950,
html.light-theme .bg-slate-950\/90,
html.light-theme .bg-slate-950\/80,
html.light-theme .bg-slate-950\/70,
html.light-theme .bg-slate-950\/60,
html.light-theme .bg-slate-950\/50,
html.light-theme .bg-slate-950\/40 {
  background-color: #f8fafc !important; /* Slate 50 */
  border-color: #e2e8f0 !important;
}

/* 3. Bordes y Divisores Nítidos */
html.light-theme .border-slate-800,
html.light-theme .border-slate-800\/80,
html.light-theme .border-slate-800\/60,
html.light-theme .border-slate-800\/50,
html.light-theme .border-slate-800\/40,
html.light-theme .border-slate-700,
html.light-theme .border-slate-700\/80,
html.light-theme .border-slate-700\/60,
html.light-theme .border-slate-700\/50,
html.light-theme .divide-slate-800 > :not([hidden]) ~ :not([hidden]),
html.light-theme .divide-slate-700 > :not([hidden]) ~ :not([hidden]) {
  border-color: #e2e8f0 !important;
}

/* 4. Tipografía y Jerarquía Visual */
html.light-theme h1,
html.light-theme h2,
html.light-theme h3,
html.light-theme h4,
html.light-theme h5,
html.light-theme h6 {
  color: #0f172a !important; /* Slate 900 */
}

/* Reemplazo inteligente de texto blanco SOLO en contenedores sin fondo oscuro */
html.light-theme span.text-white:not(.btn-primary *):not(button *),
html.light-theme strong.text-white:not(.btn-primary *):not(button *),
html.light-theme b.text-white:not(.btn-primary *):not(button *),
html.light-theme p.text-white,
html.light-theme td.text-white,
html.light-theme div.text-white:not([class*="bg-"]) {
  color: #0f172a !important;
}

html.light-theme .text-slate-100,
html.light-theme .text-slate-200 {
  color: #0f172a !important; /* Slate 900 ultra-nítido */
}

html.light-theme .text-slate-300 {
  color: #1e293b !important; /* Slate 800 */
}

html.light-theme .text-slate-400 {
  color: #475569 !important; /* Slate 600 - Máximo contraste y nitidez AAA */
  font-weight: 500;
}

html.light-theme .text-slate-500 {
  color: #334155 !important; /* Slate 700 */
}

/* Encabezados de tabla nítidos en tema claro */
html.light-theme thead th,
html.light-theme th {
  color: #1e293b !important;
  font-weight: 700 !important;
  letter-spacing: 0.03em !important;
}

/* Cifras numéricas y horas en tablas con peso y claridad */
html.light-theme td.font-mono,
html.light-theme span.font-mono {
  font-weight: 600 !important;
}

/* Evitar texto pixelado en pantallas estándar 1080p */
html.light-theme .text-\[9px\] {
  font-size: 10px !important;
  font-weight: 600 !important;
}
html.light-theme .text-\[10px\] {
  font-size: 11px !important;
  font-weight: 500 !important;
}
html.light-theme .text-\[11px\] {
  font-size: 11.5px !important;
}

/* 5. REGLA DE ORO: BOTONES CON FONDO SÓLIDO SIEMPRE CONSERVAN TEXTO BLANCO */
html.light-theme .bg-emerald-600,
html.light-theme .bg-emerald-600 *,
html.light-theme .bg-emerald-500,
html.light-theme .bg-emerald-500 *,
html.light-theme .bg-indigo-600,
html.light-theme .bg-indigo-600 *,
html.light-theme .bg-indigo-500,
html.light-theme .bg-indigo-500 *,
html.light-theme .bg-blue-600,
html.light-theme .bg-blue-600 *,
html.light-theme .bg-rose-600,
html.light-theme .bg-rose-600 *,
html.light-theme .bg-rose-500,
html.light-theme .bg-rose-500 *,
html.light-theme .bg-purple-600,
html.light-theme .bg-purple-600 * {
  color: #ffffff !important;
}

/* Sombras ricas y táctiles para botones de acción */
html.light-theme .bg-emerald-600 {
  background-color: #059669 !important;
  box-shadow: 0 4px 14px 0 rgba(5, 150, 105, 0.3) !important;
}
html.light-theme .bg-emerald-600:hover {
  background-color: #047857 !important;
}

html.light-theme .bg-indigo-600 {
  background-color: #4f46e5 !important;
  box-shadow: 0 4px 14px 0 rgba(79, 70, 229, 0.3) !important;
}
html.light-theme .bg-indigo-600:hover {
  background-color: #4338ca !important;
}

html.light-theme .bg-blue-600 {
  background-color: #2563eb !important;
  box-shadow: 0 4px 14px 0 rgba(37, 99, 235, 0.3) !important;
}
html.light-theme .bg-blue-600:hover {
  background-color: #1d4ed8 !important;
}

/* Botones secundarios (slate-800) en tema claro */
html.light-theme .bg-slate-800 {
  background-color: #f1f5f9 !important; /* Slate 100 */
  color: #334155 !important;            /* Slate 700 */
  border-color: #cbd5e1 !important;     /* Slate 300 */
}

html.light-theme .bg-slate-800:hover {
  background-color: #e2e8f0 !important;
  color: #0f172a !important;
}

html.light-theme .bg-slate-800 * {
  color: #334155 !important;
}

/* 6. BANNER DE PRUEBA Y SUSCRIPCIÓN EN MODO CLARO (PASTEL ELEGANTE) */
html.light-theme .bg-gradient-to-r.from-purple-950,
html.light-theme [class*="from-purple-950"],
html.light-theme [class*="from-indigo-950"] {
  background: linear-gradient(135deg, #eef2ff 0%, #f5f3ff 50%, #faf5ff 100%) !important;
  border-color: #c7d2fe !important;
  color: #312e81 !important;
  box-shadow: 0 2px 8px -2px rgba(79, 70, 229, 0.1) !important;
}

html.light-theme .bg-gradient-to-r.from-purple-950 *,
html.light-theme [class*="from-purple-950"] * {
  color: #312e81 !important;
}

html.light-theme .bg-gradient-to-r.from-purple-950 button,
html.light-theme [class*="from-purple-950"] button {
  background: #4f46e5 !important;
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.25) !important;
}

html.light-theme .bg-gradient-to-r.from-purple-950 button * {
  color: #ffffff !important;
}

/* 7. TARJETAS DE ESTADÍSTICAS Y KPI */
html.light-theme .bg-slate-900.border.border-slate-800.rounded-3xl,
html.light-theme .bg-slate-900.border.border-slate-800.rounded-2xl {
  background-color: #ffffff !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px -1px rgba(0, 0, 0, 0.05) !important;
}

/* 8. PESTAÑAS DE NAVEGACIÓN (TABS) */
html.light-theme .tab-btn:not(.bg-emerald-600) {
  background-color: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  color: #475569 !important;
}

html.light-theme .tab-btn:not(.bg-emerald-600):hover {
  background-color: #f8fafc !important;
  color: #0f172a !important;
  border-color: #cbd5e1 !important;
}

/* 9. TABLA DE ASISTENCIA Y KÁRDEX */
html.light-theme thead th,
html.light-theme table th {
  background-color: #f8fafc !important;
  color: #475569 !important;
  border-bottom: 1px solid #e2e8f0 !important;
  font-weight: 700 !important;
}

html.light-theme tbody tr {
  border-bottom: 1px solid #f1f5f9 !important;
  transition: background-color 0.15s ease;
}

html.light-theme tbody tr:hover,
html.light-theme .hover\:bg-slate-900\/50:hover {
  background-color: #f8fafc !important;
}

/* 10. INSIGNIAS Y BADGES EN TEMA CLARO */
/* Verde - A Tiempo / Activo */
html.light-theme .bg-emerald-500\/10,
html.light-theme .bg-emerald-500\/20,
html.light-theme .bg-green-500\/10 {
  background-color: #ecfdf5 !important; /* Emerald 50 */
  border-color: #a7f3d0 !important;     /* Emerald 200 */
}
html.light-theme .text-emerald-400,
html.light-theme .text-emerald-300,
html.light-theme .text-emerald-500,
html.light-theme .text-green-400,
html.light-theme .text-green-300,
html.light-theme .text-green-500 {
  color: #065f46 !important; /* Emerald 800 de alto contraste */
  font-weight: 700 !important;
}

/* Ámbar - Retardo / Advertencia */
html.light-theme .bg-amber-500\/10,
html.light-theme .bg-amber-500\/20 {
  background-color: #fffbeb !important; /* Amber 50 */
  border-color: #fde68a !important;     /* Amber 200 */
}
html.light-theme .text-amber-400,
html.light-theme .text-amber-300,
html.light-theme .text-amber-500 {
  color: #92400e !important; /* Amber 800 de alta legibilidad */
  font-weight: 700 !important;
}

/* Rojo - Baja / Falta */
html.light-theme .bg-rose-500\/10,
html.light-theme .bg-rose-500\/20,
html.light-theme .bg-rose-600\/20,
html.light-theme .bg-red-500\/10 {
  background-color: #fff1f2 !important; /* Rose 50 */
  border-color: #fecdd3 !important;     /* Rose 200 */
}
html.light-theme .text-rose-400,
html.light-theme .text-rose-300,
html.light-theme .text-rose-500,
html.light-theme .text-red-400,
html.light-theme .text-red-500 {
  color: #9f1239 !important; /* Rose 800 de máxima nitidez */
  font-weight: 700 !important;
}

/* Azul - GPS */
html.light-theme .bg-blue-500\/10,
html.light-theme .bg-blue-500\/20 {
  background-color: #eff6ff !important; /* Blue 50 */
  border-color: #bfdbfe !important;     /* Blue 200 */
}
html.light-theme .text-blue-400,
html.light-theme .text-blue-300 {
  color: #1d4ed8 !important; /* Blue 700 */
}

/* Púrpura - Biometría / Facial */
html.light-theme .bg-purple-500\/10,
html.light-theme .bg-purple-500\/20,
html.light-theme .bg-indigo-500\/10,
html.light-theme .bg-indigo-500\/20 {
  background-color: #f5f3ff !important; /* Purple 50 */
  border-color: #ddd6fe !important;     /* Purple 200 */
}
html.light-theme .text-purple-400,
html.light-theme .text-purple-300,
html.light-theme .text-indigo-400,
html.light-theme .text-indigo-300 {
  color: #6b21a8 !important; /* Purple 700 */
}

/* 11. BOTONES DE ACCIÓN DE FILAS EN TABLA */
html.light-theme td button:has-text("📜"),
html.light-theme td a[href*="mi-asistencia"] {
  background-color: #eef2ff !important;
  color: #4338ca !important;
  border-color: #c7d2fe !important;
}

html.light-theme td button:has-text("✏️") {
  background-color: #fef3c7 !important;
  color: #b45309 !important;
  border-color: #fde68a !important;
}

html.light-theme td button:has-text("🗑️") {
  background-color: #fee2e2 !important;
  color: #b91c1c !important;
  border-color: #fecaca !important;
}

html.light-theme td button:has-text("💬 WA") {
  background-color: #dcfce7 !important;
  color: #15803d !important;
  border-color: #bbf7d0 !important;
}

/* 12. CAMPOS DE ENTRADA (INPUTS, SELECTS, TEXTAREAS) */
html.light-theme input:not([type="checkbox"]):not([type="radio"]),
html.light-theme select,
html.light-theme textarea {
  background-color: #ffffff !important;
  color: #0f172a !important;
  border-color: #cbd5e1 !important; /* Slate 300 */
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.04) !important;
}

html.light-theme input:focus,
html.light-theme select:focus,
html.light-theme textarea:focus {
  border-color: #6366f1 !important; /* Indigo 500 */
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15) !important;
  outline: none !important;
}

html.light-theme input::placeholder,
html.light-theme textarea::placeholder {
  color: #94a3b8 !important; /* Slate 400 */
}

/* 13. MODALES Y DIÁLOGOS EN TEMA CLARO */
html.light-theme .backdrop-blur-sm,
html.light-theme .backdrop-blur-md {
  background-color: rgba(15, 23, 42, 0.55) !important; /* Overlay oscuro elegante */
}

html.light-theme div[id*="Modal"] > div {
  background-color: #ffffff !important;
  border-color: #e2e8f0 !important;
  color: #0f172a !important;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
}

html.light-theme div[id*="Modal"] .bg-slate-900\/95,
html.light-theme div[id*="Modal"] .bg-slate-950\/90 {
  background-color: #ffffff !important;
  border-color: #e2e8f0 !important;
}

html.light-theme div[id*="Modal"] button:has-text("✕"),
html.light-theme div[id*="Modal"] button:has-text("×") {
  background-color: #f1f5f9 !important;
  color: #475569 !important;
}

html.light-theme div[id*="Modal"] button:has-text("✕"):hover,
html.light-theme div[id*="Modal"] button:has-text("×"):hover {
  background-color: #e2e8f0 !important;
  color: #0f172a !important;
}

/* 14. SOMBRAS SUAVES Y MODERNAS */
html.light-theme .shadow-2xl {
  box-shadow: 0 20px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04) !important;
}
html.light-theme .shadow-xl {
  box-shadow: 0 12px 20px -4px rgba(15, 23, 42, 0.07), 0 4px 6px -2px rgba(15, 23, 42, 0.03) !important;
}
html.light-theme .shadow-lg {
  box-shadow: 0 8px 16px -2px rgba(15, 23, 42, 0.06), 0 2px 4px -2px rgba(15, 23, 42, 0.02) !important;
}


/* ==========================================================================
   ELEVACIÓN VISUAL EJECUTIVA & MODO CLARO CORPORATIVO (LINEAR / STRIPE / APPLE)
   ========================================================================== */

/* 1. Fuente y números tabulares ejecutivos para horas y cifras */
.tabular-nums,
#liveClock,
.font-mono {
  font-feature-settings: "tnum" on, "zero" on;
  font-variant-numeric: tabular-nums;
}

/* 2. Banner de Periodo de Prueba en Modo Claro (Cálido, Ejecutivo y Elegante) */
html.light-theme #clientTrialBanner,
html.light-theme [id*="TrialBanner"] {
  background: linear-gradient(90deg, #fffbeb 0%, #fef3c7 50%, #fffbeb 100%) !important;
  border-bottom: 1px solid #fde68a !important;
  color: #92400e !important;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.03) !important;
}

html.light-theme #clientTrialBanner strong,
html.light-theme #clientTrialBanner span,
html.light-theme #clientTrialBanner #bannerTrialDaysText,
html.light-theme #clientTrialBanner #bannerTrialEndsText {
  color: #78350f !important;
}

html.light-theme #clientTrialBanner button {
  background: #d97706 !important;
  color: #ffffff !important;
  box-shadow: 0 1px 2px rgba(217, 119, 6, 0.3) !important;
  border: 1px solid #b45309 !important;
}

html.light-theme #clientTrialBanner button:hover {
  background: #b45309 !important;
}

/* 3. Pestañas de Navegación Ejecutivas (Tabs) */
html.light-theme .tab-btn {
  background-color: #ffffff !important;
  color: #475569 !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.04) !important;
  font-weight: 600 !important;
}

html.light-theme .tab-btn:hover {
  background-color: #f8fafc !important;
  color: #0f172a !important;
  border-color: #cbd5e1 !important;
}

html.light-theme .tab-btn.bg-emerald-600,
html.light-theme .tab-btn.tab-active {
  background-color: #0f172a !important; /* Estilo Linear / Stripe elegante */
  color: #ffffff !important;
  border-color: #0f172a !important;
  box-shadow: 0 2px 4px 0 rgba(15, 23, 42, 0.15) !important;
}

/* 4. Tarjetas de Métricas Ejecutivas */
html.light-theme .bg-slate-900.rounded-3xl,
html.light-theme .bg-slate-900.rounded-2xl {
  background-color: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px -1px rgba(0, 0, 0, 0.03) !important;
}

html.light-theme .bg-slate-900.rounded-3xl:hover,
html.light-theme .bg-slate-900.rounded-2xl:hover {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.04) !important;
}

/* 5. Celdas y Filas de Tabla en Modo Claro */
html.light-theme tr:hover {
  background-color: #f8fafc !important;
}

html.light-theme td {
  border-color: #f1f5f9 !important;
}

html.light-theme th {
  background-color: #f8fafc !important;
  color: #64748b !important;
  border-bottom: 1px solid #e2e8f0 !important;
}

/* 6. Badges y Chips de Estatus Profesionales en Modo Claro */
html.light-theme .bg-emerald-500\/10 {
  background-color: #ecfdf5 !important;
  color: #065f46 !important;
  border-color: #a7f3d0 !important;
}

html.light-theme .bg-amber-500\/10 {
  background-color: #fffbeb !important;
  color: #92400e !important;
  border-color: #fde68a !important;
}

html.light-theme .bg-rose-500\/10 {
  background-color: #fff1f2 !important;
  color: #9f1239 !important;
  border-color: #fecdd3 !important;
}

html.light-theme .bg-indigo-500\/10,
html.light-theme .bg-purple-500\/10 {
  background-color: #f5f3ff !important;
  color: #5b21b6 !important;
  border-color: #ddd6fe !important;
}

html.light-theme .bg-blue-500\/10 {
  background-color: #eff6ff !important;
  color: #1e40af !important;
  border-color: #bfdbfe !important;
}

/* 7. Iconos SVG Limpios y Nítidos */
.exec-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  flex-shrink: 0;
}


/* 8. Calendarios (Date & Time Pickers) Nítidos y Visibles en Modo Oscuro y Claro */
html:not(.light-theme) input[type="date"],
html:not(.light-theme) input[type="time"],
html:not(.light-theme) input[type="datetime-local"] {
  color-scheme: dark !important;
}

html:not(.light-theme) input[type="date"]::-webkit-calendar-picker-indicator,
html:not(.light-theme) input[type="time"]::-webkit-calendar-picker-indicator,
html:not(.light-theme) input[type="datetime-local"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.9;
}

html.light-theme input[type="date"],
html.light-theme input[type="time"],
html.light-theme input[type="datetime-local"] {
  color-scheme: light !important;
}

html.light-theme input[type="date"]::-webkit-calendar-picker-indicator,
html.light-theme input[type="time"]::-webkit-calendar-picker-indicator,
html.light-theme input[type="datetime-local"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.75;
}

/* ==========================================================================
   TARJETA EMPLEADO DEL MES Y CUADRO DE HONOR (MODO CLARO)
   ========================================================================== */
html.light-theme #cardEotm {
  background: linear-gradient(145deg, #fffbeb 0%, #ffffff 50%, #fef3c7 100%) !important;
  border-color: #fde68a !important; /* Amber 200 */
  box-shadow: 0 10px 25px -5px rgba(245, 158, 11, 0.12), 0 8px 10px -6px rgba(0, 0, 0, 0.04) !important;
}

html.light-theme #cardEotm .eotm-header-title {
  color: #b45309 !important; /* Amber 700 */
}

html.light-theme #eotmBadgeTop {
  background-color: #fef3c7 !important;
  color: #92400e !important;
  border-color: #fcd34d !important;
}

html.light-theme #eotmStarBox {
  background-color: #fef3c7 !important;
  border-color: #f59e0b !important;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.22) !important;
}

html.light-theme #eotmName {
  color: #0f172a !important; /* Slate 900 para máxima legibilidad */
}

html.light-theme #eotmDetails {
  color: #475569 !important; /* Slate 600 */
}

html.light-theme #eotmStatPill {
  background-color: #ecfdf5 !important; /* Emerald 50 */
  border-color: #a7f3d0 !important;     /* Emerald 200 */
  color: #047857 !important;            /* Emerald 700 */
}

html.light-theme #eotmStatPill span {
  color: #047857 !important;
}

html.light-theme #eotmDivider {
  border-color: #fde68a !important; /* Amber 200 */
}

html.light-theme #cardEotm .eotm-honor-title {
  color: #475569 !important; /* Slate 600 */
}

/* Items individuales del Cuadro de Honor */
html.light-theme #honorRollList .border-b {
  border-color: #f1f5f9 !important;
}

html.light-theme #honorRollList .honor-name {
  color: #0f172a !important;
}

html.light-theme #honorRollList .honor-branch {
  color: #64748b !important;
}

html.light-theme #honorRollList .honor-rank {
  color: #d97706 !important; /* Amber 600 */
}

html.light-theme #honorRollList .honor-badge-perfect {
  background-color: #ecfdf5 !important;
  color: #047857 !important;
  border: 1px solid #a7f3d0 !important;
}

html.light-theme #honorRollList .honor-badge-regular {
  background-color: #f8fafc !important;
  color: #475569 !important;
  border: 1px solid #e2e8f0 !important;
}

/* ==========================================================================
   MENÚ DE ACCIONES DE EMPRESA SUPERADMIN (MODO CLARO Y OSCURO)
   ========================================================================== */
html.light-theme #companyActionMenu {
  background-color: #ffffff !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05) !important;
}

html.light-theme #companyActionMenu > div:first-child {
  background-color: #f8fafc !important;
  border-color: #f1f5f9 !important;
}

html.light-theme #camCompanyName {
  color: #0f172a !important;
}

html.light-theme #camCompanyMeta {
  color: #64748b !important;
}

html.light-theme #companyActionMenu .text-slate-400 {
  color: #64748b !important;
}

html.light-theme #companyActionMenu button:not(#camBtnDelete),
html.light-theme #companyActionMenu a {
  color: #1e293b !important;
}

html.light-theme #companyActionMenu button:not(#camBtnDelete):hover,
html.light-theme #companyActionMenu a:hover {
  background-color: #f1f5f9 !important;
  color: #0f172a !important;
}

html.light-theme #companyActionMenu button:not(#camBtnDelete):hover .font-semibold,
html.light-theme #companyActionMenu a:hover .font-semibold {
  color: #0f172a !important;
}

html.light-theme #companyActionMenu .border-t {
  border-color: #f1f5f9 !important;
}

html.light-theme .btn-company-enter {
  background-color: #059669 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 6px -1px rgba(5, 150, 105, 0.2) !important;
}

html.light-theme .btn-company-enter:hover {
  background-color: #047857 !important;
}

html.light-theme .btn-company-actions {
  background-color: #f8fafc !important;
  color: #334155 !important;
  border-color: #cbd5e1 !important;
}

html.light-theme .btn-company-actions:hover {
  background-color: #e2e8f0 !important;
  color: #0f172a !important;
  border-color: #94a3b8 !important;
}

/* ==========================================================================
   MENÚ DE ACCIONES DE EMPLEADO (MODO CLARO Y OSCURO)
   ========================================================================== */
html.light-theme #employeeActionMenu {
  background-color: #ffffff !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05) !important;
}

html.light-theme #employeeActionMenu > div:first-child {
  background-color: #f8fafc !important;
  border-color: #f1f5f9 !important;
}

html.light-theme #eamEmployeeName {
  color: #0f172a !important;
}

html.light-theme #eamEmployeeMeta {
  color: #64748b !important;
}

html.light-theme #employeeActionMenu .text-slate-400 {
  color: #64748b !important;
}

html.light-theme #employeeActionMenu button:not(#eamBtnDelete),
html.light-theme #employeeActionMenu a {
  color: #1e293b !important;
}

html.light-theme #employeeActionMenu button:not(#eamBtnDelete):hover,
html.light-theme #employeeActionMenu a:hover {
  background-color: #f1f5f9 !important;
  color: #0f172a !important;
}

html.light-theme #employeeActionMenu button:not(#eamBtnDelete):hover .font-semibold,
html.light-theme #employeeActionMenu a:hover .font-semibold {
  color: #0f172a !important;
}

html.light-theme #employeeActionMenu .border-t {
  border-color: #f1f5f9 !important;
}

html.light-theme .btn-emp-kardex {
  background-color: #4f46e5 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.2) !important;
}

html.light-theme .btn-emp-kardex:hover {
  background-color: #4338ca !important;
}

html.light-theme .btn-employee-actions {
  background-color: #f8fafc !important;
  color: #334155 !important;
  border-color: #cbd5e1 !important;
}

html.light-theme .btn-employee-actions:hover {
  background-color: #e2e8f0 !important;
  color: #0f172a !important;
  border-color: #94a3b8 !important;
}


/* 14. EXPORTADORES CONTABLES (CONTPAQi Y ASPEL NOI) EN TEMA CLARO */
html.light-theme #contpaqiExportModal pre,
html.light-theme #aspelNoiExportModal pre {
  color: #0f172a !important;
}
html.light-theme #contpaqiExportModal .text-sky-300,
html.light-theme #contpaqiExportModal .text-sky-200 {
  color: #0369a1 !important; /* Sky 700 */
}
html.light-theme #aspelNoiExportModal .text-amber-300,
html.light-theme #aspelNoiExportModal .text-amber-200 {
  color: #b45309 !important; /* Amber 700 */
}
html.light-theme #contpaqiExportModal details,
html.light-theme #aspelNoiExportModal details {
  background-color: #f8fafc !important;
  border-color: #e2e8f0 !important;
}
html.light-theme #contpaqiExportModal details summary,
html.light-theme #aspelNoiExportModal details summary {
  color: #0f172a !important;
}
html.light-theme #contpaqiExportModal details div p,
html.light-theme #aspelNoiExportModal details div p {
  color: #334155 !important;
}

html.light-theme #aspelModeBtn-movimientos,
html.light-theme #aspelModeBtn-faltas,
html.light-theme #aspelModeBtn-prenomina,
html.light-theme #contpaqiModeBtn-dyh,
html.light-theme #contpaqiModeBtn-prenomina {
  background-color: #f8fafc !important;
  border-color: #e2e8f0 !important;
}

html.light-theme #aspelModeBtn-movimientos.bg-amber-500\/10,
html.light-theme #aspelModeBtn-faltas.bg-amber-500\/10,
html.light-theme #aspelModeBtn-prenomina.bg-amber-500\/10 {
  background-color: #fffbeb !important;
  border-color: #f59e0b !important;
}

html.light-theme #contpaqiModeBtn-dyh.bg-sky-500\/10,
html.light-theme #contpaqiModeBtn-prenomina.bg-sky-500\/10 {
  background-color: #f0f9ff !important;
  border-color: #0ea5e9 !important;
}


/* ==========================================================================
   HOTFIX DE ALTO CONTRASTE Y LEGIBILIDAD EN MODO CLARO (KIOSKO Y TARJETAS)
   Soluciona degradados oscuros retenidos y banners de telemetría ilegibles
   ========================================================================== */

/* 1. Eliminación de degradados oscuros en tarjetas y paneles en Modo Claro */
html.light-theme [class*="bg-gradient-to"][class*="from-slate-"],
html.light-theme [class*="bg-gradient-to"][class*="to-indigo-950"],
html.light-theme [class*="bg-gradient-to"][class*="to-slate-"],
html.light-theme [class*="from-slate-900"],
html.light-theme [class*="from-slate-950"],
html.light-theme [class*="via-slate-900"],
html.light-theme [class*="via-slate-950"],
html.light-theme [class*="to-slate-900"],
html.light-theme [class*="to-slate-950"],
html.light-theme [class*="to-indigo-950"],
html.light-theme #kioskSelfServiceCard {
  background-image: none !important;
  background-color: #ffffff !important;
  border-color: #cbd5e1 !important;
  box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.06) !important;
}

/* 2. Tarjeta Trámites y Permisos en Kiosko (Tema Claro) */
html.light-theme #kioskSelfServiceCard,
html.light-theme [class*="border-indigo-500\/30"].shadow-xl {
  background-image: none !important;
  background-color: #ffffff !important;
  border-color: #c7d2fe !important;
  box-shadow: 0 4px 18px -2px rgba(99, 102, 241, 0.12) !important;
}

html.light-theme #kioskSelfServiceCard h3,
html.light-theme [class*="border-indigo-500\/30"].shadow-xl h3 {
  color: #0f172a !important; /* Negro Slate 900 */
  font-weight: 800 !important;
}

html.light-theme #kioskSelfServiceCard .bg-indigo-500\/20,
html.light-theme [class*="border-indigo-500\/30"].shadow-xl .bg-indigo-500\/20 {
  background-color: #eef2ff !important;
  color: #4f46e5 !important;
  border-color: #c7d2fe !important;
}

html.light-theme #kioskSelfServiceCard p.text-indigo-300,
html.light-theme [class*="border-indigo-500\/30"].shadow-xl p.text-indigo-300 {
  color: #4338ca !important; /* Indigo 700 */
  font-weight: 700 !important;
}

html.light-theme #kioskSelfServiceCard span.text-indigo-300,
html.light-theme [class*="border-indigo-500\/30"].shadow-xl span.text-indigo-300 {
  background-color: #e0e7ff !important;
  color: #3730a3 !important; /* Indigo 800 */
  border-color: #c7d2fe !important;
  font-weight: 800 !important;
}

html.light-theme #kioskSelfServiceCard p.text-slate-400,
html.light-theme [class*="border-indigo-500\/30"].shadow-xl p.text-slate-400 {
  color: #334155 !important; /* Slate 700 de alto contraste */
  font-size: 11.5px !important;
  font-weight: 500 !important;
  line-height: 1.5 !important;
}

/* 3. Barra de Telemetría Biométrica en Vivo (Kiosko) */
html.light-theme #biometricLiveTelemetry {
  background-color: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
  box-shadow: 0 2px 8px -2px rgba(15, 23, 42, 0.06) !important;
}
html.light-theme #biometricLiveTelemetry #bioTelemetryText {
  color: #0f172a !important;
  font-weight: 600 !important;
}
html.light-theme #biometricLiveTelemetry.bg-amber-50 {
  background-color: #fffbeb !important;
  border-color: #f59e0b !important;
  color: #78350f !important;
}
html.light-theme #biometricLiveTelemetry.bg-amber-50 #bioTelemetryText {
  color: #78350f !important;
  font-weight: 700 !important;
}
html.light-theme #biometricLiveTelemetry.bg-emerald-50 {
  background-color: #ecfdf5 !important;
  border-color: #10b981 !important;
  color: #064e3b !important;
}
html.light-theme #biometricLiveTelemetry.bg-emerald-50 #bioTelemetryText {
  color: #064e3b !important;
  font-weight: 700 !important;
}
html.light-theme #biometricLiveTelemetry.bg-rose-50 {
  background-color: #fff1f2 !important;
  border-color: #f43f5e !important;
  color: #881337 !important;
}
html.light-theme #biometricLiveTelemetry.bg-rose-50 #bioTelemetryText {
  color: #881337 !important;
  font-weight: 700 !important;
}

/* Refinamiento de banners internos en Modal de Autoservicio (Modo Claro) */
html.light-theme [class*="bg-indigo-950"] {
  background-color: #eef2ff !important;
  border-color: #c7d2fe !important;
  color: #1e1b4b !important;
}
html.light-theme [class*="bg-indigo-950"] * {
  color: #1e1b4b !important;
}
html.light-theme [class*="bg-indigo-950"] button {
  background-color: #4f46e5 !important;
  color: #ffffff !important;
}
html.light-theme .text-amber-200 {
  color: #78350f !important;
  font-weight: 600 !important;
}
html.light-theme .bg-slate-800\/40 {
  background-color: #f1f5f9 !important;
}

/* Estado de Advertencia / Candado / Ya Checó (Ámbar) */
html.light-theme .bg-amber-950,
html.light-theme .bg-amber-950\/70,
html.light-theme .bg-amber-950\/80,
html.light-theme [class*="bg-amber-950"] {
  background-color: #fffbeb !important; /* Amber 50 cálido */
  background-image: none !important;
  border-color: #f59e0b !important;     /* Amber 500 */
  color: #78350f !important;            /* Amber 900 súper legible */
  box-shadow: 0 1px 3px rgba(245, 158, 11, 0.15) !important;
}

html.light-theme [class*="bg-amber-950"] *,
html.light-theme .bg-amber-950\/70 span,
html.light-theme .bg-amber-950\/70 div,
html.light-theme .bg-amber-950\/70 p {
  color: #78350f !important;
  font-weight: 700 !important;
}

/* Estado de Coincidencia Facial (Verde) */
html.light-theme .bg-emerald-950,
html.light-theme .bg-emerald-950\/80,
html.light-theme .bg-emerald-950\/70,
html.light-theme [class*="bg-emerald-950"] {
  background-color: #ecfdf5 !important; /* Emerald 50 */
  background-image: none !important;
  border-color: #10b981 !important;     /* Emerald 500 */
  color: #064e3b !important;            /* Emerald 900 */
  box-shadow: 0 1px 3px rgba(16, 185, 129, 0.15) !important;
}

html.light-theme [class*="bg-emerald-950"] *,
html.light-theme .bg-emerald-950\/80 span,
html.light-theme .bg-emerald-950\/80 div,
html.light-theme .bg-emerald-950\/80 p {
  color: #064e3b !important;
  font-weight: 700 !important;
}

/* Botón 'Calibrar Rostro' en Telemetría */
html.light-theme #biometricLiveTelemetry button,
html.light-theme [class*="bg-amber-950"] button,
html.light-theme [class*="bg-emerald-950"] button {
  background-color: #4f46e5 !important;
  color: #ffffff !important;
  border-color: #4338ca !important;
  font-weight: 700 !important;
  box-shadow: 0 1px 4px rgba(79, 70, 229, 0.3) !important;
}

html.light-theme #biometricLiveTelemetry button:hover,
html.light-theme [class*="bg-amber-950"] button:hover {
  background-color: #4338ca !important;
}

/* 4. Botones de Movimiento en Kiosko (Tema Claro) */
/* Botón SELECCIONADO (Activo) */
html.light-theme .type-btn.bg-emerald-600,
html.light-theme .type-btn.scale-105,
html.light-theme button.type-btn.bg-emerald-600 {
  background-color: #059669 !important;
  border: 2px solid #047857 !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  box-shadow: 0 10px 25px -5px rgba(5, 150, 105, 0.45), 0 0 0 3px rgba(16, 185, 129, 0.35) !important;
  transform: scale(1.04) !important;
}

/* Botones NO seleccionados (Inactivos) */
html.light-theme .type-btn.bg-slate-800,
html.light-theme button.type-btn.bg-slate-800 {
  background-color: #ffffff !important;
  border: 2px solid #cbd5e1 !important;
  color: #334155 !important;
  font-weight: 700 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
  transform: scale(1) !important;
}
html.light-theme .type-btn.bg-slate-800:hover,
html.light-theme button.type-btn.bg-slate-800:hover {
  background-color: #f8fafc !important;
  border-color: #94a3b8 !important;
  color: #0f172a !important;
}

/* 5. Banner de Seguridad Modo Kiosko Escapado */
#kioskEscapedOverlay {
  background-color: #d97706 !important;
  color: #ffffff !important;
}
