/* ================================================================
   OVERRIDES MODO OSCURO ÍTERA
   ================================================================
   Versión: 2.0 (actualizado para tema 1E202D-itera)
   Última actualización: 01/10/2025

   PROPÓSITO:
   - Combatir estilos inline hardcodeados (background: white, etc.)
   - Aplicar estilos a módulos custom ÍTERA (lawyer-card, jus-card, ius-card)
   - Máxima especificidad para calendario y otros componentes

   IMPORTANTE: Estos overrides son NECESARIOS y no pueden migrar
   al tema compilado porque combaten estilos inline específicos.
   ================================================================ */

/* ================================================================
   0. CLASES BOOTSTRAP OVERRIDE - Ambos Modos
   ================================================================ */

/* text-info en modo oscuro → Naranja Base ÍTERA */
body[data-theme="1E202D-itera"] .text-info,
body.theme-1E202D-itera .text-info {
    color: #e67a3d !important;  /* Naranja Base */
}

/* Resumen Financiero - Títulos unificados MODO OSCURO (todos naranja) */
body[data-theme="1E202D-itera"] .text-primary,
body[data-theme="1E202D-itera"] .text-success,
body[data-theme="1E202D-itera"] .text-warning,
body.theme-1E202D-itera .text-primary,
body.theme-1E202D-itera .text-success,
body.theme-1E202D-itera .text-warning {
    color: #e67a3d !important;  /* Naranja Base - todos unificados */
}

/* btn-success en modo oscuro → Naranja Intenso ÍTERA */
body[data-theme="1E202D-itera"] .btn-success,
body.theme-1E202D-itera .btn-success {
    background-color: #d64a0a !important;  /* Naranja Intenso */
    border-color: #d64a0a !important;
    color: #ffffff !important;
}

/* BOTÓN DE CAMBIO DE ESTADO DE TAREAS (Pendiente, En progreso, etc.) */
/* Estilo base */
body[data-theme="1E202D-itera"] [data-act="update-task-status"],
body[data-theme="1E202D-itera"] .task-status-change-btn,
body.theme-1E202D-itera [data-act="update-task-status"],
body.theme-1E202D-itera .task-status-change-btn {
    border-radius: 5px !important;
    padding: 4px 12px !important;
    display: inline-block !important;
}

/* Hover naranja para modo oscuro */
body[data-theme="1E202D-itera"] [data-act="update-task-status"]:hover,
body[data-theme="1E202D-itera"] .task-status-change-btn:hover,
body.theme-1E202D-itera [data-act="update-task-status"]:hover,
body.theme-1E202D-itera .task-status-change-btn:hover {
    background-color: #ff8c42 !important;  /* Naranja Hover */
    border-color: #ff8c42 !important;  /* Naranja Hover - borde */
    color: #ffffff !important;
    border-radius: 5px !important;
}

/* BOTÓN DE CAMBIO DE ESTADO DE TAREAS - MODO CLARO */
/* Hover verde para modo claro */
body[data-theme="1d2632"] [data-act="update-task-status"]:hover,
body[data-theme="1d2632"] .task-status-change-btn:hover,
body.theme-1d2632 [data-act="update-task-status"]:hover,
body.theme-1d2632 .task-status-change-btn:hover,
.color-1d2632 [data-act="update-task-status"]:hover,
.color-1d2632 .task-status-change-btn:hover {
    background-color: #089d73 !important;  /* Verde más oscuro */
    border-color: #089d73 !important;  /* Verde - borde */
    color: #ffffff !important;
    border-radius: 5px !important;
}

/* TODOS LOS BOTONES SUCCESS EN MODO OSCURO - REGLA GENERAL */
/* Border-radius 5px para TODOS los btn-success */
body[data-theme="1E202D-itera"] .btn-success,
body[data-theme="1E202D-itera"] .btn.btn-success,
body[data-theme="1E202D-itera"] a.btn-success,
body[data-theme="1E202D-itera"] button.btn-success,
body.theme-1E202D-itera .btn-success,
body.theme-1E202D-itera .btn.btn-success,
body.theme-1E202D-itera a.btn-success,
body.theme-1E202D-itera button.btn-success {
    border-radius: 5px !important;
    padding-left: 18px !important;
    padding-right: 18px !important;
}

/* HOVER NARANJA para TODOS los btn-success en modo oscuro */
body[data-theme="1E202D-itera"] .btn-success:hover,
body[data-theme="1E202D-itera"] .btn-success:active,
body[data-theme="1E202D-itera"] .btn-success:focus,
body[data-theme="1E202D-itera"] .btn.btn-success:hover,
body[data-theme="1E202D-itera"] .btn.btn-success:active,
body[data-theme="1E202D-itera"] .btn.btn-success:focus,
body[data-theme="1E202D-itera"] a.btn-success:hover,
body[data-theme="1E202D-itera"] a.btn-success:active,
body[data-theme="1E202D-itera"] a.btn-success:focus,
body[data-theme="1E202D-itera"] button.btn-success:hover,
body[data-theme="1E202D-itera"] button.btn-success:active,
body[data-theme="1E202D-itera"] button.btn-success:focus,
body.theme-1E202D-itera .btn-success:hover,
body.theme-1E202D-itera .btn-success:active,
body.theme-1E202D-itera .btn-success:focus,
body.theme-1E202D-itera .btn.btn-success:hover,
body.theme-1E202D-itera .btn.btn-success:active,
body.theme-1E202D-itera .btn.btn-success:focus,
body.theme-1E202D-itera a.btn-success:hover,
body.theme-1E202D-itera a.btn-success:active,
body.theme-1E202D-itera a.btn-success:focus,
body.theme-1E202D-itera button.btn-success:hover,
body.theme-1E202D-itera button.btn-success:active,
body.theme-1E202D-itera button.btn-success:focus {
    background-color: #ff8c42 !important;  /* Naranja Hover */
    border-color: #ff8c42 !important;
    color: #ffffff !important;
    box-shadow: none !important;
}

/* text-info en modo claro → Verde (resumen financiero) */
body[data-theme="1d2632"] .text-info,
body.theme-1d2632 .text-info,
.color-1d2632 .text-info {
    color: #0abb87 !important;  /* Verde Bootstrap */
}

/* Resumen Financiero - Títulos unificados MODO CLARO (todos verde) */
body[data-theme="1d2632"] .text-primary,
body[data-theme="1d2632"] .text-warning,
body.theme-1d2632 .text-primary,
body.theme-1d2632 .text-warning,
.color-1d2632 .text-primary,
.color-1d2632 .text-warning {
    color: #0abb87 !important;  /* Verde Bootstrap */
}

/* Mantener text-success en verde en modo claro (ya es verde por defecto) */
body[data-theme="1d2632"] .text-success,
body.theme-1d2632 .text-success,
.color-1d2632 .text-success {
    color: #0abb87 !important;  /* Verde Bootstrap */
}

/* btn-success en modo claro → Verde Bootstrap original */
body[data-theme="1d2632"] .btn-success,
body.theme-1d2632 .btn-success,
.color-1d2632 .btn-success {
    background-color: #0abb87 !important;  /* Verde Bootstrap */
    border-color: #0abb87 !important;
    color: #ffffff !important;
}

body[data-theme="1d2632"] .btn-success:hover,
body.theme-1d2632 .btn-success:hover,
.color-1d2632 .btn-success:hover {
    background-color: #089d73 !important;  /* Verde más oscuro */
    border-color: #089d73 !important;
    color: #ffffff !important;
}

body[data-theme="1d2632"] .btn-success:focus,
body[data-theme="1d2632"] .btn-success:active,
body.theme-1d2632 .btn-success:focus,
body.theme-1d2632 .btn-success:active,
.color-1d2632 .btn-success:focus,
.color-1d2632 .btn-success:active {
    background-color: #089d73 !important;
    border-color: #089d73 !important;
    color: #ffffff !important;
    box-shadow: 0 0 0 0.2rem rgba(10, 187, 135, 0.25) !important;
}

/* ================================================================
   1. COMBATIR ESTILOS INLINE - background: white
   ================================================================ */

/* Contenedores principales con bg-white - MODO OSCURO */
body[data-theme="1E202D-itera"] .bg-white,
body.theme-1E202D-itera .bg-white {
    background-color: #1a1a1a !important;
}

/* Contenedores principales con bg-white - MODO CLARO */
body[data-theme="1d2632"] .bg-white,
body.theme-1d2632 .bg-white,
.color-1d2632 .bg-white {
    background-color: #ffffff !important;
}

/* Override CUALQUIER estilo inline con background white - MODO OSCURO */
body[data-theme="1E202D-itera"] [style*="background: white"],
body[data-theme="1E202D-itera"] [style*="background:white"],
body[data-theme="1E202D-itera"] [style*="background-color: white"],
body[data-theme="1E202D-itera"] [style*="background-color:white"],
body.theme-1E202D-itera [style*="background: white"],
body.theme-1E202D-itera [style*="background:white"],
body.theme-1E202D-itera [style*="background-color: white"],
body.theme-1E202D-itera [style*="background-color:white"] {
    background: #1a1a1a !important;
}

/* Override CUALQUIER estilo inline con background white - MODO CLARO */
body[data-theme="1d2632"] [style*="background: white"],
body[data-theme="1d2632"] [style*="background:white"],
body[data-theme="1d2632"] [style*="background-color: white"],
body[data-theme="1d2632"] [style*="background-color:white"],
body.theme-1d2632 [style*="background: white"],
body.theme-1d2632 [style*="background:white"],
body.theme-1d2632 [style*="background-color: white"],
body.theme-1d2632 [style*="background-color:white"],
.color-1d2632 [style*="background: white"],
.color-1d2632 [style*="background:white"],
.color-1d2632 [style*="background-color: white"],
.color-1d2632 [style*="background-color:white"] {
    background: #ffffff !important;
}

/* ================================================================
   2. MÓDULOS CUSTOM ÍTERA - Valores Jurídicos (JUS/IUS/UMA)
   ================================================================ */

/* Título "Unidad Judicial de Servicio" - MODO OSCURO */
body[data-theme="1E202D-itera"] .legal-value-info h6,
body.theme-1E202D-itera .legal-value-info h6 {
    color: #d64a0a !important;  /* Naranja Destacado */
}

/* Título - MODO CLARO */
body[data-theme="1d2632"] .legal-value-info h6,
body.theme-1d2632 .legal-value-info h6,
.color-1d2632 .legal-value-info h6 {
    color: #212529 !important;  /* Texto oscuro Bootstrap */
}

/* Símbolo "$" - MODO OSCURO (verde JUS) */
body[data-theme="1E202D-itera"] .legal-value-info .currency-symbol,
body.theme-1E202D-itera .legal-value-info .currency-symbol {
    color: #83c340 !important;  /* Verde JUS */
}

/* Símbolo "$" - MODO CLARO (mantener verde) */
body[data-theme="1d2632"] .legal-value-info .currency-symbol,
body.theme-1d2632 .legal-value-info .currency-symbol,
.color-1d2632 .legal-value-info .currency-symbol {
    color: #27ae60 !important;  /* Verde original */
}

/* Valor numérico - MODO OSCURO (verde JUS en lugar de azul) */
body[data-theme="1E202D-itera"] .legal-value-info .amount-value,
body.theme-1E202D-itera .legal-value-info .amount-value {
    color: #83c340 !important;  /* Verde JUS */
}

/* Valor numérico - MODO CLARO (mantener azul) */
body[data-theme="1d2632"] .legal-value-info .amount-value,
body.theme-1d2632 .legal-value-info .amount-value,
.color-1d2632 .legal-value-info .amount-value {
    color: #2980b9 !important;  /* Azul original */
}

/* Badges JUS/IUS/UMA - MODO OSCURO (todos naranja rojizo) */
body[data-theme="1E202D-itera"] .legal-value-info .badge.bg-success,
body[data-theme="1E202D-itera"] .legal-value-info .badge.bg-primary,
body[data-theme="1E202D-itera"] .legal-value-info .badge.bg-warning,
body.theme-1E202D-itera .legal-value-info .badge.bg-success,
body.theme-1E202D-itera .legal-value-info .badge.bg-primary,
body.theme-1E202D-itera .legal-value-info .badge.bg-warning {
    background-color: #d63915 !important;
    border-color: #d63915 !important;
}

/* Badges - MODO CLARO (mantener colores originales) */
body[data-theme="1d2632"] .legal-value-info .badge.bg-success,
body.theme-1d2632 .legal-value-info .badge.bg-success,
.color-1d2632 .legal-value-info .badge.bg-success {
    background-color: #198754 !important;  /* Verde Bootstrap */
}

body[data-theme="1d2632"] .legal-value-info .badge.bg-primary,
body.theme-1d2632 .legal-value-info .badge.bg-primary,
.color-1d2632 .legal-value-info .badge.bg-primary {
    background-color: #0d6efd !important;  /* Azul Bootstrap */
}

body[data-theme="1d2632"] .legal-value-info .badge.bg-warning,
body.theme-1d2632 .legal-value-info .badge.bg-warning,
.color-1d2632 .legal-value-info .badge.bg-warning {
    background-color: #ffc107 !important;  /* Amarillo Bootstrap */
}

/* Links dentro de valores jurídicos - MODO OSCURO */
body[data-theme="1E202D-itera"] .legal-value-info a,
body.theme-1E202D-itera .legal-value-info a {
    color: #e67a3d !important;  /* Naranja Base */
}

body[data-theme="1E202D-itera"] .legal-value-info a:hover,
body.theme-1E202D-itera .legal-value-info a:hover {
    color: #d64a0a !important;  /* Naranja Destacado en hover */
}

/* Links - MODO CLARO */
body[data-theme="1d2632"] .legal-value-info a,
body.theme-1d2632 .legal-value-info a,
.color-1d2632 .legal-value-info a {
    color: #0d6efd !important;  /* Azul Bootstrap */
}

body[data-theme="1d2632"] .legal-value-info a:hover,
body.theme-1d2632 .legal-value-info a:hover,
.color-1d2632 .legal-value-info a:hover {
    color: #0a58ca !important;  /* Azul más oscuro en hover */
}

/* ================================================================
   2B. SELECCIÓN DE UNIDADES - Modal añadir servicio
   ================================================================ */

/* Alert info (bloque informativo UMA/CUSTOM) - MODO OSCURO */
body[data-theme="1E202D-itera"] .alert.alert-info,
body.theme-1E202D-itera .alert.alert-info {
    background-color: #1a1a1a !important;
    border-color: #2a2a2a !important;
    color: #e0e0e0 !important;
}

/* Texto muted dentro del alert - MODO OSCURO */
body[data-theme="1E202D-itera"] .alert.alert-info .text-muted,
body.theme-1E202D-itera .alert.alert-info .text-muted {
    color: #b0b0b0 !important;
}

/* Badges dentro del unit selection - MODO OSCURO (todos naranja destacado) */
body[data-theme="1E202D-itera"] .alert.alert-info .badge,
body[data-theme="1E202D-itera"] #unit_display_text .badge,
body.theme-1E202D-itera .alert.alert-info .badge,
body.theme-1E202D-itera #unit_display_text .badge {
    background-color: #d64a0a !important;  /* Naranja Destacado */
    border-color: #d64a0a !important;
    color: #ffffff !important;
}

/* Badges UMA/CUSTOM/IUS específicos - MODO CLARO (mantener colores originales) */
body[data-theme="1d2632"] .alert.alert-info .badge.bg-warning,
body.theme-1d2632 .alert.alert-info .badge.bg-warning,
.color-1d2632 .alert.alert-info .badge.bg-warning {
    background-color: #ffc107 !important;  /* Amarillo */
}

body[data-theme="1d2632"] .alert.alert-info .badge.bg-secondary,
body.theme-1d2632 .alert.alert-info .badge.bg-secondary,
.color-1d2632 .alert.alert-info .badge.bg-secondary {
    background-color: #6c757d !important;  /* Gris */
}

/* Input group "$" custom rate - MODO OSCURO */
body[data-theme="1E202D-itera"] #estimate_custom_rate_group .input-group-text,
body[data-theme="1E202D-itera"] #invoice_custom_rate_group .input-group-text,
body[data-theme="1E202D-itera"] #proposal_custom_rate_group .input-group-text,
body[data-theme="1E202D-itera"] #contract_custom_rate_group .input-group-text,
body[data-theme="1E202D-itera"] #order_custom_rate_group .input-group-text,
body.theme-1E202D-itera #estimate_custom_rate_group .input-group-text,
body.theme-1E202D-itera #invoice_custom_rate_group .input-group-text,
body.theme-1E202D-itera #proposal_custom_rate_group .input-group-text,
body.theme-1E202D-itera #contract_custom_rate_group .input-group-text,
body.theme-1E202D-itera #order_custom_rate_group .input-group-text {
    background-color: #d64a0a !important;  /* Naranja Destacado */
    border-color: #512b0f !important;
    color: #dddddd !important;
    font-weight: bold !important;
}

/* Input group "$" custom rate - MODO CLARO (mantener gris original) */
body[data-theme="1d2632"] #estimate_custom_rate_group .input-group-text,
body[data-theme="1d2632"] #invoice_custom_rate_group .input-group-text,
body[data-theme="1d2632"] #proposal_custom_rate_group .input-group-text,
body[data-theme="1d2632"] #contract_custom_rate_group .input-group-text,
body[data-theme="1d2632"] #order_custom_rate_group .input-group-text,
body.theme-1d2632 #estimate_custom_rate_group .input-group-text,
body.theme-1d2632 #invoice_custom_rate_group .input-group-text,
body.theme-1d2632 #proposal_custom_rate_group .input-group-text,
body.theme-1d2632 #contract_custom_rate_group .input-group-text,
body.theme-1d2632 #order_custom_rate_group .input-group-text,
.color-1d2632 #estimate_custom_rate_group .input-group-text,
.color-1d2632 #invoice_custom_rate_group .input-group-text,
.color-1d2632 #proposal_custom_rate_group .input-group-text,
.color-1d2632 #contract_custom_rate_group .input-group-text,
.color-1d2632 #order_custom_rate_group .input-group-text {
    background-color: #e9ecef !important;  /* Gris claro Bootstrap */
    border-color: #ced4da !important;
    color: #495057 !important;
}

/* Alert info - MODO CLARO (mantener celeste original) */
body[data-theme="1d2632"] .alert.alert-info,
body.theme-1d2632 .alert.alert-info,
.color-1d2632 .alert.alert-info {
    background-color: #d1ecf1 !important;
    border-color: #bee5eb !important;
    color: #0c5460 !important;
}

/* ================================================================
   2C. INVOICE VIEW - Botones de acción
   ================================================================ */

/* Botón "Marcar como no pagado" - Naranja ÍTERA */
.btn-warning.text-white.spinning-btn {
    background-color: #e67a3d !important;  /* Naranja Base */
    border-color: #e67a3d !important;
    color: #ffffff !important;
}

.btn-warning.text-white.spinning-btn:hover {
    background-color: #d64a0a !important;  /* Naranja Destacado */
    border-color: #d64a0a !important;
    color: #ffffff !important;
}

/* Botón "+ Añadir pago" - Border radius y padding */
.btn-success.inline-block {
    border-radius: 5px !important;
    padding: 5px 10px 5px !important;
}

/* Badge "No pagado" - Naranja ÍTERA */
span.badge.bg-warning,
.badge.bg-warning.large,
.badge.bg-warning {
    background-color: #d64a0a !important;  /* Naranja Destacado */
    color: #f2f2f2 !important;
    border-radius: 5px !important;
    border-color: #d64a0a !important;
}

/* Forzar color de fondo y texto con máxima especificidad */
#invoice-top-bar span.badge.bg-warning {
    background-color: #d64a0a !important;  /* Naranja Destacado */
    color: #f2f2f2 !important;
}

/* Título "Información de la factura" - Naranja Destacado */
span.invoice-info-title,
.invoice-info-title,
h5.invoice-info-title {
    color: #d64a0a !important;  /* Naranja Destacado */
    background-color: transparent !important;
}

/* ================================================================
   2D. MODAL CLOSE BUTTON - Botón X cerrar modal (MODO OSCURO)
   ================================================================ */

/* Botón X de cerrar modal - MODO OSCURO (naranja fuerte) */
body[data-theme="1E202D-itera"] .modal .btn-close,
body.theme-1E202D-itera .modal .btn-close {
    filter: brightness(0) saturate(100%) invert(37%) sepia(89%) saturate(2385%) hue-rotate(355deg) brightness(92%) contrast(91%) !important;
    opacity: 1 !important;
}

body[data-theme="1E202D-itera"] .modal .btn-close:hover,
body.theme-1E202D-itera .modal .btn-close:hover {
    filter: brightness(0) saturate(100%) invert(52%) sepia(51%) saturate(1667%) hue-rotate(344deg) brightness(100%) contrast(88%) !important;
    opacity: 1 !important;
}

/* ================================================================
   2E. ESTIMATES VIEW - Botones de acción panel derecho (MODO OSCURO)
   ================================================================ */

/* Botones "Editar presupuesto" y "Clonar Presupuesto" - MODO OSCURO */
body[data-theme="1E202D-itera"] #estimate-actions-section .btn-outline-primary,
body[data-theme="1E202D-itera"] #estimate-actions-section .btn-outline-secondary,
body.theme-1E202D-itera #estimate-actions-section .btn-outline-primary,
body.theme-1E202D-itera #estimate-actions-section .btn-outline-secondary {
    background-color: transparent !important;  /* Transparente */
    border-color: #e67a3d !important;  /* Naranja Base */
    color: #e67a3d !important;
}

body[data-theme="1E202D-itera"] #estimate-actions-section .btn-outline-primary:hover,
body[data-theme="1E202D-itera"] #estimate-actions-section .btn-outline-secondary:hover,
body.theme-1E202D-itera #estimate-actions-section .btn-outline-primary:hover,
body.theme-1E202D-itera #estimate-actions-section .btn-outline-secondary:hover {
    background-color: #f2a36b !important;  /* Naranja Hover Suave */
    border-color: #f2a36b !important;
    color: #ffffff !important;
}

body[data-theme="1E202D-itera"] #estimate-actions-section .btn-outline-primary:focus,
body[data-theme="1E202D-itera"] #estimate-actions-section .btn-outline-primary:active,
body[data-theme="1E202D-itera"] #estimate-actions-section .btn-outline-secondary:focus,
body[data-theme="1E202D-itera"] #estimate-actions-section .btn-outline-secondary:active,
body.theme-1E202D-itera #estimate-actions-section .btn-outline-primary:focus,
body.theme-1E202D-itera #estimate-actions-section .btn-outline-primary:active,
body.theme-1E202D-itera #estimate-actions-section .btn-outline-secondary:focus,
body.theme-1E202D-itera #estimate-actions-section .btn-outline-secondary:active {
    background-color: #d64a0a !important;  /* Naranja Destacado */
    border-color: #d64a0a !important;
    color: #ffffff !important;
    box-shadow: 0 0 0 0.2rem rgba(230, 122, 61, 0.25) !important;
}

/* ================================================================
   3. MÓDULOS CUSTOM ÍTERA - Cards de Abogados
   ================================================================ */

/* Cards - Modo oscuro */
body[data-theme="1E202D-itera"] .lawyer-card,
body.theme-1E202D-itera .lawyer-card {
    background: #1a1a1a !important;
    border: 1px solid #2a2a2a !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3) !important;
}

/* Cards - Modo claro */
body[data-theme="1d2632"] .lawyer-card,
body.theme-1d2632 .lawyer-card,
.color-1d2632 .lawyer-card {
    background: #ffffff !important;
    border: 1px solid #e0e0e0 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05) !important;
}

body[data-theme="1E202D-itera"] .lawyer-card:hover,
body.theme-1E202D-itera .lawyer-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.4) !important;
}

/* Nombre de abogados - MODO OSCURO (naranja base) */
body[data-theme="1E202D-itera"] .lawyer-info h6,
body.theme-1E202D-itera .lawyer-info h6 {
    color: #e67a3d !important;  /* Naranja Base */
}

/* Nombre de abogados - MODO CLARO (oscuro original) */
body[data-theme="1d2632"] .lawyer-info h6,
body.theme-1d2632 .lawyer-info h6,
.color-1d2632 .lawyer-info h6 {
    color: #212529 !important;  /* Texto oscuro Bootstrap */
}

/* Texto en cards de abogados */
body[data-theme="1E202D-itera"] .lawyer-info .info-row,
body.theme-1E202D-itera .lawyer-info .info-row {
    color: #e0e0e0 !important;
    border-bottom: none !important;
}

body[data-theme="1E202D-itera"] .lawyer-info strong,
body.theme-1E202D-itera .lawyer-info strong {
    color: #e0e0e0 !important;
}

/* ================================================================
   3. MÓDULOS CUSTOM ÍTERA - Widgets JUS/IUS
   ================================================================ */

/* Widget containers - Modo oscuro */
body[data-theme="1E202D-itera"] .widget-container-card,
body[data-theme="1E202D-itera"] .jus-card,
body[data-theme="1E202D-itera"] .ius-card,
body.theme-1E202D-itera .widget-container-card,
body.theme-1E202D-itera .jus-card,
body.theme-1E202D-itera .ius-card {
    background: #1a1a1a !important;
    border: 1px solid #2a2a2a !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3) !important;
}

/* Widget containers - Modo claro */
body[data-theme="1d2632"] .widget-container-card,
body[data-theme="1d2632"] .jus-card,
body[data-theme="1d2632"] .ius-card,
body.theme-1d2632 .widget-container-card,
body.theme-1d2632 .jus-card,
body.theme-1d2632 .ius-card,
.color-1d2632 .widget-container-card,
.color-1d2632 .jus-card,
.color-1d2632 .ius-card {
    background: #ffffff !important;
    border: 1px solid #e0e0e0 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05) !important;
}

body[data-theme="1E202D-itera"] .jus-card:hover,
body[data-theme="1E202D-itera"] .ius-card:hover,
body.theme-1E202D-itera .jus-card:hover,
body.theme-1E202D-itera .ius-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.4) !important;
}

/* Títulos de widgets */
body[data-theme="1E202D-itera"] .widget-header h4,
body.theme-1E202D-itera .widget-header h4 {
    color: #ffffff !important;
}

/* Valor del JUS (verde legal argentino) */
body[data-theme="1E202D-itera"] .jus-value,
body.theme-1E202D-itera .jus-value {
    background: #1a472a !important; /* Verde oscuro */
    border-left: 4px solid #83c340 !important;
}

body[data-theme="1E202D-itera"] .jus-value .currency,
body.theme-1E202D-itera .jus-value .currency {
    color: #83c340 !important;
}

body[data-theme="1E202D-itera"] .jus-value .amount,
body.theme-1E202D-itera .jus-value .amount {
    color: #83c340 !important;
}

/* Valor del IUS (naranja ÍTERA destacado) */
body[data-theme="1E202D-itera"] .ius-value,
body.theme-1E202D-itera .ius-value {
    background: #2a1a15 !important; /* Marrón oscuro */
    border-left: 4px solid #d64a0a !important; /* Naranja Destacado */
}

body[data-theme="1E202D-itera"] .ius-value .currency,
body.theme-1E202D-itera .ius-value .currency {
    color: #d64a0a !important;  /* Naranja Destacado */
}

body[data-theme="1E202D-itera"] .ius-value .amount,
body.theme-1E202D-itera .ius-value .amount {
    color: #d64a0a !important;  /* Naranja Destacado */
}

/* Detalles del JUS/IUS */
body[data-theme="1E202D-itera"] .jus-details .detail-row,
body[data-theme="1E202D-itera"] .ius-details .detail-row,
body.theme-1E202D-itera .jus-details .detail-row,
body.theme-1E202D-itera .ius-details .detail-row {
    color: #e0e0e0 !important;
}

body[data-theme="1E202D-itera"] .jus-details strong,
body[data-theme="1E202D-itera"] .ius-details strong,
body.theme-1E202D-itera .jus-details strong,
body.theme-1E202D-itera .ius-details strong {
    color: #e0e0e0 !important;
}

/* Enlaces en widgets JUS/IUS (naranja base) */
body[data-theme="1E202D-itera"] .jus-details a,
body[data-theme="1E202D-itera"] .ius-details a,
body.theme-1E202D-itera .jus-details a,
body.theme-1E202D-itera .ius-details a {
    color: #e67a3d !important; /* Naranja Base */
}

body[data-theme="1E202D-itera"] .jus-details a:hover,
body[data-theme="1E202D-itera"] .ius-details a:hover,
body.theme-1E202D-itera .jus-details a:hover,
body.theme-1E202D-itera .ius-details a:hover {
    color: #f2a36b !important; /* Naranja Hover Suave */
}

/* Botones de clipboard - MODO OSCURO (naranja) */
body[data-theme="1E202D-itera"] .copy-btn,
body.theme-1E202D-itera .copy-btn {
    background-color: #e67a3d !important;  /* Naranja Base */
    border-color: #e67a3d !important;
    color: #ffffff !important;
}

body[data-theme="1E202D-itera"] .copy-btn:hover,
body.theme-1E202D-itera .copy-btn:hover {
    background-color: #f2a36b !important;  /* Naranja Hover Suave */
    border-color: #f2a36b !important;
    color: #ffffff !important;
}

/* Botones de clipboard - MODO CLARO (oscuro original) */
body[data-theme="1d2632"] .copy-btn,
body.theme-1d2632 .copy-btn,
.color-1d2632 .copy-btn {
    background-color: #343a40 !important;  /* Gris oscuro Bootstrap */
    border-color: #343a40 !important;
    color: #ffffff !important;
}

body[data-theme="1d2632"] .copy-btn:hover,
body.theme-1d2632 .copy-btn:hover,
.color-1d2632 .copy-btn:hover {
    background-color: #23272b !important;  /* Gris más oscuro */
    border-color: #1d2124 !important;
    color: #ffffff !important;
}

body[data-theme="1E202D-itera"] .refresh-btn,
body.theme-1E202D-itera .refresh-btn {
    background: #138496 !important;
}

body[data-theme="1E202D-itera"] .refresh-btn:hover,
body.theme-1E202D-itera .refresh-btn:hover {
    background: #0c5460 !important;
}

/* ================================================================
   3B. WIDGETS DASHBOARD - Íconos unificados naranja fuerte
   ================================================================ */

/* Forzar todos los íconos de widgets a naranja destacado ÍTERA */
.widget-icon.bg-primary,
.widget-icon.bg-success,
.widget-icon.bg-info,
.widget-icon.bg-warning,
.widget-icon.bg-danger,
.widget-icon.bg-secondary,
body[data-theme="1E202D-itera"] .widget-icon.bg-primary,
body[data-theme="1E202D-itera"] .widget-icon.bg-success,
body[data-theme="1E202D-itera"] .widget-icon.bg-info,
body.theme-1E202D-itera .widget-icon.bg-primary,
body.theme-1E202D-itera .widget-icon.bg-success,
body.theme-1E202D-itera .widget-icon.bg-info,
body[data-theme="1d2632"] .widget-icon.bg-primary,
body[data-theme="1d2632"] .widget-icon.bg-success,
body[data-theme="1d2632"] .widget-icon.bg-info,
body.theme-1d2632 .widget-icon.bg-primary,
body.theme-1d2632 .widget-icon.bg-success,
body.theme-1d2632 .widget-icon.bg-info,
.color-1d2632 .widget-icon.bg-primary,
.color-1d2632 .widget-icon.bg-success,
.color-1d2632 .widget-icon.bg-info {
    background-color: #d64a0a !important;  /* Naranja Destacado */
    border-color: #d64a0a !important;
}

/* ================================================================
   4. CALENDARIO - Especificidad extrema necesaria
   ================================================================ */

/* Día actual - MODO OSCURO (naranja base ÍTERA) */
body[data-theme="1E202D-itera"] .fc .fc-daygrid-day.fc-day.fc-day-today,
body[data-theme="1E202D-itera"] .fc-day-today,
body.theme-1E202D-itera .fc .fc-daygrid-day.fc-day.fc-day-today,
body.theme-1E202D-itera .fc-day-today,
.color-1E202D-itera .fc .fc-daygrid-day.fc-day.fc-day-today,
.color-1E202D-itera .fc-day-today {
    background-color: #e67a3d !important;  /* Naranja Base */
    background: #e67a3d !important;
}

/* Día actual hover - MODO OSCURO (naranja hover suave ÍTERA) */
body[data-theme="1E202D-itera"] .fc .fc-daygrid-day.fc-day.fc-day-today:hover,
body[data-theme="1E202D-itera"] .fc-day-today:hover,
body.theme-1E202D-itera .fc .fc-daygrid-day.fc-day.fc-day-today:hover,
body.theme-1E202D-itera .fc-day-today:hover,
.color-1E202D-itera .fc .fc-daygrid-day.fc-day.fc-day-today:hover,
.color-1E202D-itera .fc-day-today:hover {
    background-color: #f2a36b !important;  /* Naranja Hover Suave */
    background: #f2a36b !important;
}

/* Día actual - MODO CLARO (amarillo suave) - DEBE IR DESPUÉS para sobrescribir */
body[data-theme="1d2632"] .fc .fc-daygrid-day.fc-day.fc-day-today,
body[data-theme="1d2632"] .fc-day-today,
body.theme-1d2632 .fc .fc-daygrid-day.fc-day.fc-day-today,
body.theme-1d2632 .fc-day-today,
.color-1d2632 .fc .fc-daygrid-day.fc-day.fc-day-today,
.color-1d2632 .fc-day-today {
    background-color: #fff3cd !important;
    background: #fff3cd !important;
}

/* Día actual hover - MODO CLARO - DEBE IR DESPUÉS */
body[data-theme="1d2632"] .fc .fc-daygrid-day.fc-day.fc-day-today:hover,
body[data-theme="1d2632"] .fc-day-today:hover,
body.theme-1d2632 .fc .fc-daygrid-day.fc-day.fc-day-today:hover,
body.theme-1d2632 .fc-day-today:hover,
.color-1d2632 .fc .fc-daygrid-day.fc-day.fc-day-today:hover,
.color-1d2632 .fc-day-today:hover {
    background-color: #ffe69c !important;
    background: #ffe69c !important;
}

/* Bordes visibles en celdas del calendario - MODO OSCURO */
body[data-theme="1E202D-itera"] .fc-theme-standard td,
body.theme-1E202D-itera .fc-theme-standard td,
.color-1E202D-itera .fc-theme-standard td {
    border-color: #6d6d6d8c !important;
}

/* Bordes celdas calendario - MODO CLARO (más suaves) */
body[data-theme="1d2632"] .fc-theme-standard td,
body.theme-1d2632 .fc-theme-standard td,
.color-1d2632 .fc-theme-standard td {
    border-color: #ddd !important;
}

/* ================================================================
   5. WIKI/HELP - Textos y links legibles
   ================================================================ */

/* Títulos de categorías - MODO OSCURO */
body[data-theme="1E202D-itera"] .help-category-box h4,
body.theme-1E202D-itera .help-category-box h4 {
    color: #e0e0e0 !important;  /* Texto principal */
}

/* Títulos de categorías - MODO CLARO */
body[data-theme="1d2632"] .help-category-box h4,
body.theme-1d2632 .help-category-box h4,
.color-1d2632 .help-category-box h4 {
    color: #333333 !important;  /* Texto oscuro */
}

/* Descripciones - MODO OSCURO */
body[data-theme="1E202D-itera"] .help-category-box .text-off,
body[data-theme="1E202D-itera"] .help-category-box p,
body.theme-1E202D-itera .help-category-box .text-off,
body.theme-1E202D-itera .help-category-box p {
    color: #b0b0b0 !important;  /* Texto secundario legible */
}

/* Descripciones - MODO CLARO */
body[data-theme="1d2632"] .help-category-box .text-off,
body[data-theme="1d2632"] .help-category-box p,
body.theme-1d2632 .help-category-box .text-off,
body.theme-1d2632 .help-category-box p,
.color-1d2632 .help-category-box .text-off,
.color-1d2632 .help-category-box p {
    color: #666666 !important;  /* Gris medio */
}

/* Links "X artículos" - MODO OSCURO (naranja base) */
body[data-theme="1E202D-itera"] .help-category-box .anchor,
body[data-theme="1E202D-itera"] .help-category-box a,
body.theme-1E202D-itera .help-category-box .anchor,
body.theme-1E202D-itera .help-category-box a {
    color: #e67a3d !important;  /* Naranja Base */
}

/* Links "X artículos" - MODO CLARO (azul Bootstrap) */
body[data-theme="1d2632"] .help-category-box .anchor,
body[data-theme="1d2632"] .help-category-box a,
body.theme-1d2632 .help-category-box .anchor,
body.theme-1d2632 .help-category-box a,
.color-1d2632 .help-category-box .anchor,
.color-1d2632 .help-category-box a {
    color: #007bff !important;  /* Azul Bootstrap */
}

/* Títulos H2 en vistas de categoría/artículo - MODO OSCURO */
body[data-theme="1E202D-itera"] .help-page h2,
body[data-theme="1E202D-itera"] .help-page-container h2,
body.theme-1E202D-itera .help-page h2,
body.theme-1E202D-itera .help-page-container h2 {
    color: #d64a0a !important;  /* Naranja Destacado */
    border-bottom-color: #2a2a2a !important;  /* Borde sutil */
}

/* Títulos H2 - MODO CLARO */
body[data-theme="1d2632"] .help-page h2,
body.theme-1d2632 .help-page h2,
.color-1d2632 .help-page h2 {
    color: #333333 !important;
    border-bottom-color: #dee2e6 !important;
}

/* Breadcrumb - MODO OSCURO */
body[data-theme="1E202D-itera"] .help-breadcrumb .breadcrumb,
body[data-theme="1E202D-itera"] .breadcrumb,
body.theme-1E202D-itera .help-breadcrumb .breadcrumb,
body.theme-1E202D-itera .breadcrumb {
    background-color: #1a1a1a !important;
    border: 1px solid #2a2a2a !important;
}

body[data-theme="1E202D-itera"] .help-breadcrumb,
body.theme-1E202D-itera .help-breadcrumb {
    background-color: transparent !important;
}

body[data-theme="1E202D-itera"] .help-breadcrumb .breadcrumb-item,
body.theme-1E202D-itera .help-breadcrumb .breadcrumb-item {
    color: #b0b0b0 !important;
}

body[data-theme="1E202D-itera"] .help-breadcrumb .breadcrumb-item a,
body.theme-1E202D-itera .help-breadcrumb .breadcrumb-item a {
    color: #e67a3d !important;  /* Naranja Base */
}

/* Breadcrumb - MODO CLARO */
body[data-theme="1d2632"] .help-breadcrumb .breadcrumb,
body.theme-1d2632 .help-breadcrumb .breadcrumb,
.color-1d2632 .help-breadcrumb .breadcrumb {
    background-color: #f8f9fa !important;
    border: 1px solid #dee2e6 !important;
}

body[data-theme="1d2632"] .help-breadcrumb .breadcrumb-item,
body.theme-1d2632 .help-breadcrumb .breadcrumb-item,
.color-1d2632 .help-breadcrumb .breadcrumb-item {
    color: #6c757d !important;
}

body[data-theme="1d2632"] .help-breadcrumb .breadcrumb-item a,
body.theme-1d2632 .help-breadcrumb .breadcrumb-item a,
.color-1d2632 .help-breadcrumb .breadcrumb-item a {
    color: #007bff !important;  /* Azul Bootstrap */
}

/* Contenido del artículo - MODO OSCURO */
body[data-theme="1E202D-itera"] #help-page-view-content-area,
body[data-theme="1E202D-itera"] #help-page-view-content-area p,
body[data-theme="1E202D-itera"] #help-page-view-content-area div,
body[data-theme="1E202D-itera"] #help-page-view-content-area li,
body.theme-1E202D-itera #help-page-view-content-area,
body.theme-1E202D-itera #help-page-view-content-area p,
body.theme-1E202D-itera #help-page-view-content-area div,
body.theme-1E202D-itera #help-page-view-content-area li {
    color: #b0b0b0 !important;  /* Texto secundario legible */
}

body[data-theme="1E202D-itera"] #help-page-view-content-area a,
body.theme-1E202D-itera #help-page-view-content-area a {
    color: #e67a3d !important;  /* Naranja Base */
}

body[data-theme="1E202D-itera"] #help-page-view-content-area strong,
body[data-theme="1E202D-itera"] #help-page-view-content-area h3,
body[data-theme="1E202D-itera"] #help-page-view-content-area h4,
body.theme-1E202D-itera #help-page-view-content-area strong,
body.theme-1E202D-itera #help-page-view-content-area h3,
body.theme-1E202D-itera #help-page-view-content-area h4 {
    color: #e0e0e0 !important;  /* Texto principal para énfasis */
}

/* Contenido del artículo - MODO CLARO */
body[data-theme="1d2632"] #help-page-view-content-area,
body[data-theme="1d2632"] #help-page-view-content-area p,
body[data-theme="1d2632"] #help-page-view-content-area div,
body[data-theme="1d2632"] #help-page-view-content-area li,
body.theme-1d2632 #help-page-view-content-area,
body.theme-1d2632 #help-page-view-content-area p,
body.theme-1d2632 #help-page-view-content-area div,
body.theme-1d2632 #help-page-view-content-area li,
.color-1d2632 #help-page-view-content-area,
.color-1d2632 #help-page-view-content-area p,
.color-1d2632 #help-page-view-content-area div,
.color-1d2632 #help-page-view-content-area li {
    color: #333333 !important;
}

body[data-theme="1d2632"] #help-page-view-content-area a,
body.theme-1d2632 #help-page-view-content-area a,
.color-1d2632 #help-page-view-content-area a {
    color: #007bff !important;  /* Azul Bootstrap */
}

/* Descripción de categoría (párrafo después de breadcrumb) - MODO OSCURO */
body[data-theme="1E202D-itera"] .help-page-container p.mb20,
body[data-theme="1E202D-itera"] #help-page-content p,
body[data-theme="1E202D-itera"] .help-page > p,
body.theme-1E202D-itera .help-page-container p.mb20,
body.theme-1E202D-itera #help-page-content p,
body.theme-1E202D-itera .help-page > p {
    color: #e67a3d !important;  /* Naranja Base */
}

/* Título "Categorías" en sidebar - MODO OSCURO */
body[data-theme="1E202D-itera"] #help-left-panel h4,
body.theme-1E202D-itera #help-left-panel h4 {
    color: #e67a3d !important;  /* Naranja Base */
}

/* Título "Categorías" en sidebar - MODO CLARO */
body[data-theme="1d2632"] #help-left-panel h4,
body.theme-1d2632 #help-left-panel h4,
.color-1d2632 #help-left-panel h4 {
    color: #333333 !important;
}

/* Descripción de categoría - MODO CLARO */
body[data-theme="1d2632"] .help-page-container p.mb20,
body[data-theme="1d2632"] #help-page-content p,
body[data-theme="1d2632"] .help-page > p,
body.theme-1d2632 .help-page-container p.mb20,
body.theme-1d2632 #help-page-content p,
body.theme-1d2632 .help-page > p,
.color-1d2632 .help-page-container p.mb20,
.color-1d2632 #help-page-content p,
.color-1d2632 .help-page > p {
    color: #666666 !important;
}

/* Links de lista de artículos - MODO OSCURO */
body[data-theme="1E202D-itera"] .list-group-item,
body.theme-1E202D-itera .list-group-item {
    background-color: #1a1a1a !important;
    border-color: #2a2a2a !important;
    color: #e0e0e0 !important;
}

body[data-theme="1E202D-itera"] .list-group-item:hover,
body.theme-1E202D-itera .list-group-item:hover {
    background-color: #252525 !important;
    color: #e67a3d !important;  /* Naranja Base en hover */
}

/* Links de lista de artículos - MODO CLARO */
body[data-theme="1d2632"] .list-group-item,
body.theme-1d2632 .list-group-item,
.color-1d2632 .list-group-item {
    background-color: #ffffff !important;
    border-color: #dee2e6 !important;
    color: #333333 !important;
}

body[data-theme="1d2632"] .list-group-item:hover,
body.theme-1d2632 .list-group-item:hover,
.color-1d2632 .list-group-item:hover {
    background-color: #f8f9fa !important;
    color: #007bff !important;
}

/* ================================================================
   5A. ACORDEONES INFORMATIVOS - Hover naranja ÍTERA
   ================================================================ */

/* Acordeones informativos - Links hover - MODO OSCURO */
body[data-theme="1E202D-itera"] .acordion-informacion,
body[data-theme="1E202D-itera"] .acordion-informacion h4,
body.theme-1E202D-itera .acordion-informacion,
body.theme-1E202D-itera .acordion-informacion h4 {
    color: #e0e0e0 !important;  /* Color normal */
    text-decoration: none !important;
}

body[data-theme="1E202D-itera"] .acordion-informacion:hover,
body[data-theme="1E202D-itera"] .acordion-informacion:hover h4,
body.theme-1E202D-itera .acordion-informacion:hover,
body.theme-1E202D-itera .acordion-informacion:hover h4 {
    color: #e67a3d !important;  /* Naranja Base */
    text-decoration: none !important;
}

/* Acordeones informativos - MODO CLARO */
body[data-theme="1d2632"] .acordion-informacion,
body[data-theme="1d2632"] .acordion-informacion h4,
body.theme-1d2632 .acordion-informacion,
body.theme-1d2632 .acordion-informacion h4,
.color-1d2632 .acordion-informacion,
.color-1d2632 .acordion-informacion h4 {
    color: #333333 !important;  /* Color normal oscuro */
    text-decoration: none !important;
}

body[data-theme="1d2632"] .acordion-informacion:hover,
body[data-theme="1d2632"] .acordion-informacion:hover h4,
body.theme-1d2632 .acordion-informacion:hover,
body.theme-1d2632 .acordion-informacion:hover h4,
.color-1d2632 .acordion-informacion:hover,
.color-1d2632 .acordion-informacion:hover h4 {
    color: #e67a3d !important;  /* Naranja Base */
    text-decoration: none !important;
}

/* ================================================================
   5B. CALENDARIO - Título principal y botón configuración
   ================================================================ */

/* Título "Calendarios de vencimientos de plazos" - MODO OSCURO */
body[data-theme="1E202D-itera"] .calendar-main-title,
body.theme-1E202D-itera .calendar-main-title {
    color: #d64a0a !important;  /* Naranja Destacado */
}

/* Título - MODO CLARO (resetear a color por defecto) */
body[data-theme="1d2632"] .calendar-main-title,
body.theme-1d2632 .calendar-main-title,
.color-1d2632 .calendar-main-title {
    color: inherit !important;  /* Usar color heredado del tema */
}

/* ================================================================
   5C. GOOGLE CALENDAR CONFIG - Botón configuración (AMBOS MODOS)
   ================================================================ */

/* Botón Google Calendar Config - Estado normal */
.google-calendar-config-btn,
.btn.google-calendar-config-btn {
    background-color: #d64a0a !important;  /* Naranja Destacado */
    border-color: #d64a0a !important;
    color: #fff !important;
}

/* Botón Google Calendar Config - Hover */
.google-calendar-config-btn:hover,
.btn.google-calendar-config-btn:hover {
    background-color: #f2a36b !important;  /* Naranja Hover Suave */
    border-color: #f2a36b !important;
    color: #fff !important;
}

/* Botón Google Calendar Config - Focus/Active */
.google-calendar-config-btn:focus,
.google-calendar-config-btn:active,
.btn.google-calendar-config-btn:focus,
.btn.google-calendar-config-btn:active {
    background-color: #e67a3d !important;  /* Naranja Base */
    border-color: #e67a3d !important;
    color: #fff !important;
    box-shadow: 0 0 0 0.2rem rgba(214, 74, 10, 0.25) !important;
}

/* ================================================================
   5D. CALENDARIO - Filtros de Capas (Dropdown "Tipo de evento")
   ================================================================ */

/* Filtro activo - MODO OSCURO (Naranja Intenso con texto blanco) */
body[data-theme="1E202D-itera"] .filter-multi-select .list-group-item.active,
body.theme-1E202D-itera .filter-multi-select .list-group-item.active {
    background-color: #d64a0a !important;  /* Naranja Intenso ÍTERA */
    color: #fff !important;  /* Texto blanco */
    border-color: #d64a0a !important;
    margin: 2px 0 !important;  /* Espacio vertical entre items */
    border-radius: 3px !important;  /* Bordes redondeados para separación visual */
}

/* Filtro activo - MODO CLARO (Naranja Intenso con texto blanco) */
body[data-theme="1d2632"] .filter-multi-select .list-group-item.active,
body.theme-1d2632 .filter-multi-select .list-group-item.active,
.color-1d2632 .filter-multi-select .list-group-item.active {
    background-color: #d64a0a !important;  /* Naranja Intenso ÍTERA */
    color: #fff !important;  /* Texto blanco */
    border-color: #d64a0a !important;
    margin: 2px 0 !important;  /* Espacio vertical entre items */
    border-radius: 3px !important;  /* Bordes redondeados para separación visual */
}

/* Hover en filtro activo - Naranja más claro (AMBOS MODOS) */
.filter-multi-select .list-group-item.active:hover {
    background-color: #ff8c42 !important;  /* Naranja Hover */
    border-color: #ff8c42 !important;
    color: #fff !important;
}

/* Ocultar filtro "Fecha límite de la causa" - No aplica a causas (AMBOS MODOS) */
.filter-multi-select .list-group-item[data-value="project_deadline"] {
    display: none !important;
}

/* ================================================================
   6. MÓDULO PARTIES (Projects) - Override estilos inline
   ================================================================ */

/* Party card general */
body[data-theme="1E202D-itera"] .party-card,
body.theme-1E202D-itera .party-card {
    border: 1px solid #2a2a2a !important;  /* border-principal */
    background-color: #1a1a1a !important;  /* bg-cards */
}

/* Client card (Parte Actora) - Fondo uniforme */
body[data-theme="1E202D-itera"] .client-card,
body.theme-1E202D-itera .client-card {
    border: 1px solid #2a2a2a !important;  /* border-principal */
    background-color: #1a1a1a !important;  /* bg-cards uniforme */
}

/* Party card hover - Naranja ÍTERA */
body[data-theme="1E202D-itera"] .party-card:hover,
body.theme-1E202D-itera .party-card:hover {
    border-color: #d64a0a !important;  /* Naranja Destacado */
    box-shadow: 0 2px 4px rgba(214, 74, 10, 0.3) !important;
}

/* Party info headings */
body[data-theme="1E202D-itera"] .party-info h6,
body.theme-1E202D-itera .party-info h6 {
    color: #e0e0e0 !important;  /* Texto principal */
}

/* Party info text */
body[data-theme="1E202D-itera"] .party-info p,
body.theme-1E202D-itera .party-info p {
    color: #b0b0b0 !important;  /* Texto secundario */
}

/* Empty state */
body[data-theme="1E202D-itera"] .empty-state,
body.theme-1E202D-itera .empty-state {
    background: #1a1a1a !important;  /* bg-cards */
    border: 2px dashed #2a2a2a !important;  /* border-principal */
    color: #b0b0b0 !important;
}

/* Party actions buttons */
body[data-theme="1E202D-itera"] .party-actions .btn-outline-primary,
body.theme-1E202D-itera .party-actions .btn-outline-primary {
    border-color: #d64a0a !important;  /* Naranja Destacado */
    color: #d64a0a !important;
}

body[data-theme="1E202D-itera"] .party-actions .btn-outline-primary:hover,
body.theme-1E202D-itera .party-actions .btn-outline-primary:hover {
    background-color: #d64a0a !important;  /* Naranja Destacado */
    color: #fff !important;
}

body[data-theme="1E202D-itera"] .party-actions .btn-outline-primary:focus,
body[data-theme="1E202D-itera"] .party-actions .btn-outline-primary:active,
body.theme-1E202D-itera .party-actions .btn-outline-primary:focus,
body.theme-1E202D-itera .party-actions .btn-outline-primary:active {
    background-color: #d64a0a !important;  /* Naranja Destacado */
    border-color: #d64a0a !important;
    color: #fff !important;
    box-shadow: 0 0 0 0.2rem rgba(214, 74, 10, 0.25) !important;
}

/* Contact info icons */
body[data-theme="1E202D-itera"] .contact-info i,
body.theme-1E202D-itera .contact-info i {
    color: #b0b0b0 !important;
}

/* Party actions opacity */
body[data-theme="1E202D-itera"] .party-actions,
body.theme-1E202D-itera .party-actions {
    opacity: 0.7;
    transition: opacity 0.2s;
}

body[data-theme="1E202D-itera"] .party-card:hover .party-actions,
body.theme-1E202D-itera .party-card:hover .party-actions {
    opacity: 1;
}

/* ================================================================
   6. MÓDULO PARTIES - MODO CLARO (Tema 1d2632)
   ================================================================ */

/* Party card general - Modo claro */
body[data-theme="1d2632"] .party-card,
body.theme-1d2632 .party-card,
.color-1d2632 .party-card {
    border: 1px solid #e0e0e0 !important;
    background-color: #ffffff !important;
    transition: all 0.2s;
}

/* Client card (Parte Actora) - Verde suave modo claro */
body[data-theme="1d2632"] .client-card,
body.theme-1d2632 .client-card,
.color-1d2632 .client-card {
    border: 2px solid #83c340 !important;  /* Verde JUS */
    background: linear-gradient(135deg, #f0fae6 0%, #ffffff 100%) !important;
    transition: all 0.2s;
}

/* Party card hover - Naranja ÍTERA modo claro */
body[data-theme="1d2632"] .party-card:hover,
body.theme-1d2632 .party-card:hover,
.color-1d2632 .party-card:hover {
    border-color: #d64a0a !important;  /* Naranja Destacado */
    box-shadow: 0 2px 4px rgba(214, 74, 10, 0.15) !important;
}

/* Party info headings - Modo claro */
body[data-theme="1d2632"] .party-info h6,
body.theme-1d2632 .party-info h6,
.color-1d2632 .party-info h6 {
    color: #333333 !important;
    margin-bottom: 8px;
}

/* Party info text - Modo claro */
body[data-theme="1d2632"] .party-info p,
body.theme-1d2632 .party-info p,
.color-1d2632 .party-info p {
    color: #666666 !important;
}

/* Contact info - Modo claro */
body[data-theme="1d2632"] .contact-info,
body.theme-1d2632 .contact-info,
.color-1d2632 .contact-info {
    margin-top: 8px;
}

body[data-theme="1d2632"] .contact-info i,
body.theme-1d2632 .contact-info i,
.color-1d2632 .contact-info i {
    color: #666666 !important;
}

/* Empty state - Modo claro */
body[data-theme="1d2632"] .empty-state,
body.theme-1d2632 .empty-state,
.color-1d2632 .empty-state {
    background: #f8f9fa !important;
    border: 2px dashed #dee2e6 !important;
    border-radius: 8px;
    color: #666666 !important;
}

/* Party actions - Modo claro */
body[data-theme="1d2632"] .party-actions,
body.theme-1d2632 .party-actions,
.color-1d2632 .party-actions {
    opacity: 0.7;
    transition: opacity 0.2s;
}

body[data-theme="1d2632"] .party-card:hover .party-actions,
body.theme-1d2632 .party-card:hover .party-actions,
.color-1d2632 .party-card:hover .party-actions {
    opacity: 1;
}

body[data-theme="1d2632"] .party-actions .btn-outline-primary,
body.theme-1d2632 .party-actions .btn-outline-primary,
.color-1d2632 .party-actions .btn-outline-primary {
    border-color: #d64a0a !important;  /* Naranja Destacado */
    color: #d64a0a !important;
}

body[data-theme="1d2632"] .party-actions .btn-outline-primary:hover,
body.theme-1d2632 .party-actions .btn-outline-primary:hover,
.color-1d2632 .party-actions .btn-outline-primary:hover {
    background-color: #d64a0a !important;  /* Naranja Destacado */
    border-color: #d64a0a !important;
    color: #ffffff !important;
}

body[data-theme="1d2632"] .party-actions .btn-outline-primary:focus,
body[data-theme="1d2632"] .party-actions .btn-outline-primary:active,
body.theme-1d2632 .party-actions .btn-outline-primary:focus,
body.theme-1d2632 .party-actions .btn-outline-primary:active,
.color-1d2632 .party-actions .btn-outline-primary:focus,
.color-1d2632 .party-actions .btn-outline-primary:active {
    background-color: #d64a0a !important;  /* Naranja Destacado */
    border-color: #d64a0a !important;
    color: #ffffff !important;
    box-shadow: 0 0 0 0.2rem rgba(214, 74, 10, 0.25) !important;
}

/* ================================================================
   7. MODAL CONFIRMACIÓN - Botón "Sí" (¿Está seguro?)
   ================================================================ */

/* Botón "Sí" confirmación - Cambiar de rosa a naranja intenso (AMBOS MODOS) */
#confirmationModal .btn-danger,
#confirmDeleteButton.btn-danger {
    background-color: #d64a0a !important;  /* Naranja Intenso ÍTERA */
    border-color: #d64a0a !important;
    color: #fff !important;
}

/* Botón "Sí" confirmación - Hover (AMBOS MODOS) */
#confirmationModal .btn-danger:hover,
#confirmationModal .btn-danger:active,
#confirmationModal .btn-danger:focus,
#confirmDeleteButton.btn-danger:hover,
#confirmDeleteButton.btn-danger:active,
#confirmDeleteButton.btn-danger:focus {
    background-color: #e67a3d !important;  /* Naranja Base - hover más claro */
    border-color: #e67a3d !important;
    color: #fff !important;
}

/* ================================================================
   8. BADGES EN DATATABLES (Leads, Projects, etc.)
   ================================================================ */

/* Badges en DataTables - Mayor padding horizontal y negrita (AMBOS MODOS) */
.dataTable .badge {
    padding: 4px 10px !important;  /* Más espaciado lateral */
    font-weight: 700 !important;   /* Negrita */
}

/* ================================================================
   9. MODAL EVENTOS - Botón "Borrar evento"
   ================================================================ */

/* Botón "Borrar evento" - Naranja intenso ÍTERA (MODO OSCURO) */
body[data-theme="1E202D-itera"] .modal-footer #delete_event.btn-default,
body.theme-1E202D-itera .modal-footer #delete_event.btn-default {
    background-color: #d64a0a !important;  /* Naranja Intenso */
    border-color: #d64a0a !important;
    color: #ffffff !important;
}

/* Botón "Borrar evento" - Hover (MODO OSCURO) */
body[data-theme="1E202D-itera"] .modal-footer #delete_event.btn-default:hover,
body[data-theme="1E202D-itera"] .modal-footer #delete_event.btn-default:focus,
body.theme-1E202D-itera .modal-footer #delete_event.btn-default:hover,
body.theme-1E202D-itera .modal-footer #delete_event.btn-default:focus {
    background-color: #ff8c42 !important;  /* Naranja Hover */
    border-color: #ff8c42 !important;
    color: #ffffff !important;
}

/* Botón "Borrar evento" - Naranja intenso ÍTERA (MODO CLARO) */
body[data-theme="1d2632"] .modal-footer #delete_event.btn-default,
body.theme-1d2632 .modal-footer #delete_event.btn-default,
.color-1d2632 .modal-footer #delete_event.btn-default {
    background-color: #d64a0a !important;  /* Naranja Intenso */
    border-color: #d64a0a !important;
    color: #ffffff !important;
}

/* Botón "Borrar evento" - Hover (MODO CLARO) */
body[data-theme="1d2632"] .modal-footer #delete_event.btn-default:hover,
body[data-theme="1d2632"] .modal-footer #delete_event.btn-default:focus,
body.theme-1d2632 .modal-footer #delete_event.btn-default:hover,
body.theme-1d2632 .modal-footer #delete_event.btn-default:focus,
.color-1d2632 .modal-footer #delete_event.btn-default:hover,
.color-1d2632 .modal-footer #delete_event.btn-default:focus {
    background-color: #ff8c42 !important;  /* Naranja Hover */
    border-color: #ff8c42 !important;
    color: #ffffff !important;
}
