/* Dashboard UCI Adultos - Estilos */
/* Hospital Infantil Universitario de San José */
/* auto-deploy probe */

@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;600;700&display=swap');

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif !important;
    background: radial-gradient(1200px 900px at 12% 8%, rgba(37, 99, 235, 0.18) 0%, rgba(15, 23, 42, 0) 55%),
                linear-gradient(135deg, #0b1222 0%, #101c33 55%, #0f172a 100%);
    color: #f1f5f9;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    /* Evita saltos de scroll cuando se refresca contenido dinámico */
    overflow-anchor: none;
}

/* Header - Diseño Premium */
.header-main {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.98) 0%, rgba(30, 58, 95, 0.95) 100%);
    border-bottom: 1px solid rgba(99, 102, 241, 0.2);
    backdrop-filter: blur(15px);
    padding: 16px 24px;
    z-index: 100;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

/* KPI Cards - Mismo fondo que el aplicativo */
.kpi-card {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
    border: 1px solid rgba(148, 163, 184, 0.2) !important;
    border-radius: 8px !important;
    position: relative;
    overflow: hidden;
}

.kpi-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #1e3a5f, #3b82f6);
    opacity: 0.9;
}

.kpi-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3) !important;
    border-color: rgba(148, 163, 184, 0.35) !important;
}

.kpi-card:hover::before {
    opacity: 1;
}

/* Tabs - Estilo IDE */
.nav-tabs {
    border-bottom: 1px solid #323232 !important;
    background: #1e1f22;
    padding: 0 10px;
    gap: 0;
}

.nav-tabs .nav-link {
    color: #94a3b8;
    border: none !important;
    border-bottom: 2px solid transparent !important;
    border-radius: 0 !important;
    background: transparent !important;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    padding: 10px 16px;
}

.nav-tabs .nav-link:hover {
    color: #bcbec4;
    background: #2b2d30 !important;
}

.nav-tabs .nav-link.active {
    color: #ffffff !important;
    background: #2b2d30 !important;
    border-bottom: 2px solid #3574f0 !important; /* Azul selección JetBrains */
}

/* Tab content - Diseño mejorado */
.tab-content {
    background: transparent;
    padding: 20px 28px;
    border: none;
}

/* Cards/Sections - Diseño Premium */
.section-card {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.85) 0%, rgba(15, 23, 42, 0.75) 100%);
    border: 1px solid rgba(55, 118, 171, 0.15);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    /* transition: all 0.3s ease; */
}

.section-card:hover {
    border-color: rgba(55, 118, 171, 0.25);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

/* Filtros section */
.filtros-section {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.9) 0%, rgba(15, 23, 42, 0.85) 100%) !important;
    border: 1px solid rgba(55, 118, 171, 0.2) !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25) !important;
    position: relative;
    overflow: visible;
}

.filtros-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #3776ab, #ffd43b, #4b8bbe);
}

/* Dropdown styles - Diseño Premium */
.Select-control { 
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 0.9) 100%) !important; 
    border: 1px solid rgba(55, 118, 171, 0.2) !important; 
    border-radius: 8px !important;
    min-height: 42px !important;
    /* transition: all 0.25s ease !important; */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
}
.Select-control:hover {
    border-color: rgba(55, 118, 171, 0.4) !important;
    box-shadow: 0 4px 15px rgba(55, 118, 171, 0.15) !important;
}
.Select-value-label, .Select-placeholder { color: #f1f5f9 !important; }
.Select-value { color: #f1f5f9 !important; }
.Select-menu-outer { 
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%) !important; 
    border: 1px solid rgba(55, 118, 171, 0.2) !important;
    border-radius: 8px !important;
    margin-top: 4px !important;
    box-shadow: 0 8px 30px rgba(0,0,0,0.4) !important;
    z-index: 1000 !important;
}

/* Fallback fuerte: algunos temas/Bootstrap fuerzan fondo blanco en el input */
#filtro-anio .Select,
#filtro-mes-inicio .Select,
#filtro-anio .Select-control,
#filtro-mes-inicio .Select-control,
#filtro-anio .Select__control,
#filtro-mes-inicio .Select__control {
    background-color: rgba(15, 23, 42, 0.95) !important;
}

#filtro-anio .Select-input input,
#filtro-mes-inicio .Select-input input,
#filtro-anio .Select__input-container,
#filtro-mes-inicio .Select__input-container,
#filtro-anio .Select__input-container input,
#filtro-mes-inicio .Select__input-container input {
    color: #f1f5f9 !important;
}

#filtro-anio .Select-placeholder,
#filtro-mes-inicio .Select-placeholder,
#filtro-anio .Select__placeholder,
#filtro-mes-inicio .Select__placeholder {
    color: #94a3b8 !important;
}

#filtro-mes-inicio .Select-value-label,
#filtro-mes-inicio .Select-value-label span,
#filtro-mes-inicio .Select__multi-value__label {
    color: #f1f5f9 !important;
}

/* Prioridad de capas para evitar que el selector de meses tape el selector de año */
#filtro-anio {
    position: relative;
    z-index: 30;
}

#filtro-mes-inicio {
    position: relative;
    z-index: 20;
    min-width: 0;
}
/* Selector de meses - altura estable en desktop */
#filtro-mes-inicio .Select-control {
    min-height: 42px !important;
    width: 100% !important;
}
#filtro-mes-inicio .Select-multi-value-wrapper {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    white-space: nowrap !important;
    scrollbar-width: thin;
}
#filtro-mes-inicio .Select-multi-value-wrapper::-webkit-scrollbar {
    height: 6px;
}

/* Acciones (Aplicar, Todos, checkbox) - ocupan toda la fila */
.filtros-acciones {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 4px;
}

/* Evita que el selector de meses invada el bloque de botones */
.filtros-actions {
    white-space: nowrap;
    flex-shrink: 0;
    z-index: 40;
    position: relative;
}
.Select-option { 
    background: transparent !important; 
    color: #f1f5f9 !important;
    padding: 12px 16px !important;
    /* transition: all 0.2s ease !important; */
}
.Select-option:hover, .Select-option.is-focused { 
    background: linear-gradient(90deg, rgba(55, 118, 171, 0.2) 0%, rgba(255, 212, 59, 0.1) 100%) !important; 
}
.Select-option.is-selected { 
    background: linear-gradient(90deg, rgba(55, 118, 171, 0.35) 0%, rgba(255, 212, 59, 0.2) 100%) !important;
    color: #ffd43b !important;
}
.Select-multi-value-wrapper .Select-value {
    background: linear-gradient(135deg, rgba(55, 118, 171, 0.3) 0%, rgba(255, 212, 59, 0.15) 100%) !important;
    border: 1px solid rgba(55, 118, 171, 0.3) !important;
    border-radius: 6px !important;
    color: #ffd43b !important;
}
.Select-value-icon {
    border-right: none !important;
}
.Select-arrow-zone {
    color: #94a3b8 !important;
}

/* React-Select v3+ (Dash reciente) - asegurar legibilidad de selección */
#filtro-anio .Select__control,
#filtro-mes-inicio .Select__control {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 0.9) 100%) !important;
    border: 1px solid rgba(55, 118, 171, 0.2) !important;
    border-radius: 8px !important;
    min-height: 42px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
}
#filtro-anio .Select__control:hover,
#filtro-mes-inicio .Select__control:hover {
    border-color: rgba(55, 118, 171, 0.4) !important;
    box-shadow: 0 4px 15px rgba(55, 118, 171, 0.15) !important;
}

#filtro-anio .Select__single-value,
#filtro-mes-inicio .Select__single-value,
#filtro-mes-inicio .Select__value-container,
#filtro-mes-inicio .Select__input-container,
#filtro-mes-inicio .Select__input-container input {
    color: #f1f5f9 !important;
}

#filtro-anio .Select__placeholder,
#filtro-mes-inicio .Select__placeholder {
    color: #94a3b8 !important;
}

#filtro-anio .Select__menu,
#filtro-mes-inicio .Select__menu {
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%) !important;
    border: 1px solid rgba(55, 118, 171, 0.2) !important;
    border-radius: 8px !important;
    box-shadow: 0 8px 30px rgba(0,0,0,0.4) !important;
    z-index: 1000 !important;
}

#filtro-anio .Select__option,
#filtro-mes-inicio .Select__option {
    color: #f1f5f9 !important;
}
#filtro-anio .Select__option--is-focused,
#filtro-mes-inicio .Select__option--is-focused {
    background: linear-gradient(90deg, rgba(55, 118, 171, 0.2) 0%, rgba(255, 212, 59, 0.1) 100%) !important;
}
#filtro-anio .Select__option--is-selected,
#filtro-mes-inicio .Select__option--is-selected {
    background: linear-gradient(90deg, rgba(55, 118, 171, 0.35) 0%, rgba(255, 212, 59, 0.2) 100%) !important;
    color: #ffd43b !important;
}

#filtro-mes-inicio .Select__multi-value {
    background: linear-gradient(135deg, rgba(55, 118, 171, 0.3) 0%, rgba(255, 212, 59, 0.15) 100%) !important;
    border: 1px solid rgba(55, 118, 171, 0.3) !important;
    border-radius: 6px !important;
}
#filtro-mes-inicio .Select__multi-value__label {
    color: #f1f5f9 !important;
    font-weight: 600 !important;
}
#filtro-mes-inicio .Select__multi-value__remove {
    color: #ffd43b !important;
}
#filtro-mes-inicio .Select__multi-value__remove:hover {
    background: rgba(239, 68, 68, 0.18) !important;
    color: #fecaca !important;
}

/* Button styles - Diseño Premium */
.btn {
    border-radius: 8px !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    padding: 10px 18px !important;
    /* transition: all 0.25s ease !important; */
    border: none !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: #ffffff !important;
}

.btn-success:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4) !important;
    /* transform: translateY(-2px); */
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
    color: #ffffff !important;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4) !important;
    /* transform: translateY(-2px); */
}

.btn-secondary {
    background: linear-gradient(135deg, #475569 0%, #334155 100%) !important;
    color: #f1f5f9 !important;
    border: 1px solid rgba(148, 163, 184, 0.2) !important;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%) !important;
    box-shadow: 0 4px 15px rgba(71, 85, 105, 0.4) !important;
    /* transform: translateY(-2px); */
}

/* Footer - Diseño mejorado */
.dashboard-footer {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 1) 100%);
    border-top: 1px solid rgba(55, 118, 171, 0.2);
    padding: 20px 24px;
    margin-top: 32px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

/* Scrollbar - Definido en sección de efectos */

/* Graph containers */
.js-plotly-plot {
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid rgba(148, 163, 184, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Evita que contenedores de Dash impongan alturas no deseadas */
.dash-graph {
    height: auto;
    min-height: 0 !important;
    max-height: none;
}

.js-plotly-plot:hover {
    border-color: rgba(55, 118, 171, 0.3);
    box-shadow: 0 8px 30px rgba(55, 118, 171, 0.15);
}

/* Section titles */
.section-title {
    color: #f1f5f9;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(55, 118, 171, 0.2);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #3776ab, #ffd43b);
    border-radius: 2px;
}

/* Graph wrapper */
.graph-card {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.7) 0%, rgba(15, 23, 42, 0.6) 100%);
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    /* transition: all 0.3s ease; */
}

.graph-card:hover {
    border-color: rgba(55, 118, 171, 0.25);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* ========== BASE MOBILE-FRIENDLY ========== */
#app-container {
    padding-left: env(safe-area-inset-left, 0);
    padding-right: env(safe-area-inset-right, 0);
    max-width: 100vw;
    overflow-x: hidden;
}

/* ========== RESPONSIVE TABLET ========== */
@media (max-width: 992px) {
    .tab-content {
        padding: 16px 12px !important;
    }
    .filtros-section > div {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }
}

/* ========== RESPONSIVE MOBILE ========== */
@media (max-width: 768px) {
    .header-main {
        padding: 14px 16px;
    }
    
    .header-main > div {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 14px !important;
        padding: 8px 0 !important;
    }
    
    .header-main > div > div:first-child {
        flex-direction: column !important;
        justify-content: center;
        text-align: center;
        gap: 10px !important;
    }
    
    .logo-img {
        height: 52px !important;
        max-height: 52px !important;
        margin-right: 0 !important;
    }
    
    .header-main > div > div:last-child {
        position: static !important;
        justify-content: center;
        width: 100%;
    }
    
    h1 {
        font-size: 24px !important;
        font-weight: 700 !important;
    }
    
    /* KPI Cards - una por fila, bien espaciadas */
    .kpi-card {
        margin-bottom: 10px !important;
        padding: 16px 14px !important;
        min-height: 90px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    
    .kpi-card h2 {
        font-size: 26px !important;
        font-weight: 700 !important;
        color: #f1f5f9 !important;
    }
    
    .kpi-card h6 {
        font-size: 11px !important;
        margin-bottom: 4px !important;
        min-height: auto !important;
        font-weight: 600 !important;
        color: #94a3b8 !important;
    }
    
    .kpi-card p {
        font-size: 11px !important;
        min-height: auto !important;
        color: #94a3b8 !important;
    }
    
    /* Tabs - scroll horizontal suave */
    .nav-tabs {
        padding: 0 4px;
        display: flex;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        -ms-overflow-style: none;
        scrollbar-width: none;
        gap: 2px;
    }
    
    .nav-tabs::-webkit-scrollbar {
        display: none;
    }
    
    .nav-tabs .nav-link {
        padding: 12px 14px !important;
        font-size: 12px !important;
        font-weight: 500 !important;
        flex-shrink: 0;
        white-space: nowrap;
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    .tab-content {
        padding: 16px 12px !important;
    }
    
    .graph-card {
        padding: 12px;
        margin-bottom: 12px;
    }
    
    /* Gráficas - mejor visualización en móvil */
    .dash-graph {
        min-height: 260px !important;
        width: 100% !important;
        overflow: hidden;
    }
    
    .js-plotly-plot {
        min-height: 240px;
        width: 100% !important;
    }
    
    /* Reducir padding de las cards de gráficos en móvil */
    .graph-card {
        padding: 12px !important;
    }
    
    /* Asegurar que títulos y leyendas de Plotly no se corten */
    .plotly .main-svg {
        overflow: visible;
    }
    
    .dashboard-footer {
        padding: 16px;
    }
    
    /* Filtros - layout vertical limpio */
    .filtros-section {
        padding: 16px !important;
        margin-bottom: 16px !important;
    }
    
    .filtros-section > div > span {
        font-size: 14px !important;
        font-weight: 600 !important;
        margin-bottom: 12px !important;
        display: block;
    }
    
    .filtros-inner {
        grid-template-columns: 1fr !important;
        row-gap: 12px !important;
        column-gap: 0 !important;
    }
    
    .filtros-section .Select {
        width: 100% !important;
        min-width: 0 !important;
    }
    
    /* Meses: chips en varias filas en móvil */
    #filtro-mes-inicio .Select-control {
        min-height: 44px !important;
        height: auto !important;
        overflow: visible !important;
    }
    #filtro-mes-inicio .Select-multi-value-wrapper {
        flex-wrap: wrap !important;
        overflow: visible !important;
        gap: 6px;
        padding: 4px 0;
    }
    
    .filtros-inner > div:last-child {
        margin-left: 0 !important;
        width: 100%;
        display: flex;
        gap: 10px;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .filtros-section .btn {
        min-width: 44px;
        min-height: 44px;
    }
    
    .container-fluid {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
    
    .row {
        margin-left: -6px !important;
        margin-right: -6px !important;
    }
    
    .col, [class*="col-"] {
        padding-left: 6px !important;
        padding-right: 6px !important;
    }
    
    .mb-3 { margin-bottom: 12px !important; }
    .mb-4 { margin-bottom: 16px !important; }
    .mb-5 { margin-bottom: 20px !important; }
    
    .g-3, .g-4 {
        --bs-gutter-x: 12px !important;
        --bs-gutter-y: 12px !important;
    }
    
    h5 {
        font-size: 15px !important;
        font-weight: 600 !important;
        text-align: center;
        margin-bottom: 12px !important;
        padding-bottom: 8px !important;
        color: #f1f5f9 !important;
    }
    
    h6 {
        font-size: 14px !important;
        font-weight: 600 !important;
        margin-top: 16px !important;
        margin-bottom: 10px !important;
        color: #f1f5f9 !important;
    }
    
    .dashboard-footer > div {
        flex-direction: column !important;
        text-align: center !important;
        gap: 8px !important;
    }
    
    .dashboard-footer p {
        font-size: 11px !important;
    }
    
    /* Tablas comparativas - scroll horizontal */
    .table-responsive, table {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        display: block;
    }
    
    table {
        min-width: 600px;
    }
}

/* ========== MÓVIL PEQUEÑO ========== */
@media (max-width: 480px) {
    .header-main {
        padding: 12px 14px !important;
    }
    
    .logo-img {
        height: 46px !important;
        max-height: 46px !important;
    }
    
    h1 {
        font-size: 20px !important;
    }
    
    .header-subtitle {
        font-size: 11px !important;
    }
    
    .tab-content {
        padding: 14px 10px !important;
    }
    
    .kpi-card {
        padding: 14px 12px !important;
    }
    
    .kpi-card h2 {
        font-size: 24px !important;
    }
    
    .kpi-card h6 {
        font-size: 10px !important;
    }
    
    .kpi-card p {
        font-size: 11px !important;
    }
    
    .nav-tabs .nav-link {
        padding: 10px 12px !important;
        font-size: 11px !important;
    }
    
    .btn {
        font-size: 12px !important;
        padding: 10px 14px !important;
    }
    
    h5 {
        font-size: 14px !important;
    }
    
    h6 {
        font-size: 13px !important;
    }
}

/* ========== META VIEWPORT FALLBACK ========== */
@supports (padding: max(0px)) {
    body {
        padding-left: env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
    }
}


/* ========== EFECTOS Y ANIMACIONES ========== */

/* Animación suave para elementos */
/* Animación desactivada por solicitud de usuario */
/*
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
*/

/*
@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(55, 118, 171, 0.4);
    }
    50% {
        box-shadow: 0 4px 25px rgba(55, 118, 171, 0.6);
    }
}
*/

/* Títulos de sección con estilo */
h5[style*="color: #f1f5f9"] {
    position: relative;
    display: inline-block;
    padding-bottom: 8px;
}

h5[style*="color: #f1f5f9"]::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #3776ab, #ffd43b);
    border-radius: 3px;
}

/* Mejora visual para filas de gráficos */
.row.mb-4, .row.mb-5 {
    position: relative;
}

/* Efecto de brillo en hover para KPIs */
.kpi-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.03) 50%,
        transparent 70%
    );
    transform: rotate(45deg);
    /* transition: all 0.5s ease; */
    opacity: 0;
}

.kpi-card:hover::after {
    opacity: 0; /* Desactivado */
    /* animation: shine 0.8s ease-out; */
}

/*
@keyframes shine {
    from {
        transform: rotate(45deg) translateX(-100%);
    }
    to {
        transform: rotate(45deg) translateX(100%);
    }
}
*/

/* Scrollbar mejorado */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #0f172a;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #475569 0%, #334155 100%);
    border-radius: 5px;
    border: 2px solid #0f172a;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #64748b 0%, #475569 100%);
}

/* Mejora para el logo */
.logo-img {
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
    /* transition: all 0.3s ease; */
}

.logo-img:hover {
    filter: drop-shadow(0 4px 15px rgba(55, 118, 171, 0.3));
    /* transform: scale(1.02); */
}

/* Efecto para botones de exportar */
.btn-success, .btn-primary {
    position: relative;
    overflow: hidden;
}

.btn-success::before, .btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    /* transition: left 0.5s ease; */
}

.btn-success:hover::before, .btn-primary:hover::before {
    left: 100%;
}

/* -------------------------------------------------------------------------- */
/* Filtros Resumen: React-Select v5 (clases css-*) + Bootstrap — contraste fijo */
/* -------------------------------------------------------------------------- */
.filtros-section .uci-dd-dark,
.filtros-section .uci-dd-dark > div {
    background-color: transparent !important;
}

/* Control principal (v4 Select__control y v5 css-*-control) */
.filtros-section .uci-dd-dark .Select-control,
.filtros-section .uci-dd-dark .Select__control,
.filtros-section .uci-dd-dark div[class*="control"] {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.98) 0%, rgba(15, 23, 42, 0.95) 100%) !important;
    background-color: #1e293b !important;
    border: 1px solid rgba(55, 118, 171, 0.35) !important;
    border-radius: 8px !important;
    min-height: 42px !important;
    box-shadow: none !important;
}

.filtros-section .uci-dd-dark .VirtualizedSelect,
.filtros-section .uci-dd-dark .VirtualizedSelect * {
    color: #f1f5f9 !important;
}

.filtros-section .uci-dd-dark .Select-value-label,
.filtros-section .uci-dd-dark .Select__single-value,
.filtros-section .uci-dd-dark [class*="singleValue"],
.filtros-section .uci-dd-dark [class*="SingleValue"] {
    color: #f1f5f9 !important;
}

.filtros-section .uci-dd-dark .Select-placeholder,
.filtros-section .uci-dd-dark .Select__placeholder,
.filtros-section .uci-dd-dark [class*="placeholder"] {
    color: #94a3b8 !important;
}

.filtros-section .uci-dd-dark .Select-input > input,
.filtros-section .uci-dd-dark .Select__input-container input,
.filtros-section .uci-dd-dark [class*="Input"] input {
    color: #f1f5f9 !important;
}

.filtros-section .uci-dd-dark .Select-multi-value-wrapper .Select-value,
.filtros-section .uci-dd-dark .Select__multi-value,
.filtros-section .uci-dd-dark [class*="multiValue"] {
    background: rgba(55, 118, 171, 0.35) !important;
    border: 1px solid rgba(55, 118, 171, 0.45) !important;
    border-radius: 6px !important;
}

.filtros-section .uci-dd-dark .Select__multi-value__label,
.filtros-section .uci-dd-dark [class*="multiValue"] [class*="label"],
.filtros-section .uci-dd-dark .Select-value-label {
    color: #f1f5f9 !important;
    font-weight: 600 !important;
}

.filtros-section .uci-dd-dark .Select__menu,
.filtros-section .uci-dd-dark .Select-menu-outer,
.filtros-section .uci-dd-dark [class*="menu"] {
    background: #1e293b !important;
    border: 1px solid rgba(55, 118, 171, 0.35) !important;
    z-index: 2000 !important;
}

.filtros-section .uci-dd-dark .VirtualizedSelectOption {
    background: #1e293b !important;
    color: #f1f5f9 !important;
}

.filtros-section .uci-dd-dark .VirtualizedSelectFocusedOption {
    background: rgba(55, 118, 171, 0.25) !important;
    color: #f1f5f9 !important;
}

.filtros-section .uci-dd-dark .VirtualizedSelectSelectedOption {
    background: rgba(55, 118, 171, 0.45) !important;
    color: #ffd43b !important;
}

.filtros-section .uci-dd-dark .Select__option,
.filtros-section .uci-dd-dark [class*="option"] {
    color: #f1f5f9 !important;
}

.filtros-section .uci-dd-dark .Select__option--is-focused,
.filtros-section .uci-dd-dark [class*="option"]:hover {
    background: rgba(55, 118, 171, 0.25) !important;
}

.filtros-section .uci-dd-dark .Select__option--is-selected,
.filtros-section .uci-dd-dark [class*="option"][aria-selected="true"] {
    background: rgba(55, 118, 171, 0.45) !important;
    color: #ffd43b !important;
}

