﻿.report-filter-container {
    background-color: #f0f0f0;
    padding: 10px;
    font-family: Arial, sans-serif;
    font-size: 11px;
}

.filter-row {
    display: flex;
    gap: 5px;
    margin-bottom: 10px;
}

.filter-column {
    background-color: #e8f4fd;
    border: 1px solid #b0d4f1;
    min-width: 120px;
    flex: 1;
}

.filter-header {
    background-color: #4a90e2;
    color: white;
    padding: 4px 8px;
    font-weight: bold;
    text-align: center;
    font-size: 11px;
}

.filter-content {
    padding: 5px;
    max-height: 300px;
    overflow-y: auto;
}

/* NUEVOS ESTILOS PARA LA ESTRUCTURA MEJORADA */

.medios-controles-generos-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    background-color: #d4e6f7;
    border: 2px solid #b0d4f1;
    border-radius: 5px;
    padding: 10px;
}

.medios-column, .generos-column {
    background-color: #e8f4fd;
    border: 1px solid #b0d4f1;
    border-radius: 3px;
    min-width: 200px;
    max-width: 250px;
    flex: 0 0 200px;
}

.medios-content, .generos-content {
    padding: 5px;
    max-height: 600px;
    overflow-y: auto;
}

/* ESTILOS PARA LA SECCIÓN CENTRAL DE CONTROLES */

.chart-controls-center {
    background-color: #f8f9fa;
    border: 1px solid #b0d4f1;
    border-radius: 5px;
    padding: 10px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
    min-height: 400px;
}

/* TODOS LOS CONTROLES EN UNA SOLA LÍNEA */
.controls-single-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 10px;
    background-color: #e8f4fd;
    border-radius: 3px;
    border: 1px solid #b0d4f1;
    flex-wrap: wrap;
}

.control-buttons-inline {
    display: flex;
    gap: 5px;
    flex-shrink: 0;
}

.control-btn {
    background-color: #4a90e2;
    color: white;
    border: none;
    padding: 5px 12px;
    border-radius: 3px;
    font-size: 11px;
    cursor: pointer;
    transition: background-color 0.2s;
    white-space: nowrap;
}

    .control-btn:hover {
        background-color: #357abd;
    }

    .control-btn.active {
        background-color: #2c5aa0;
    }

.checkbox-inline {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.custom-checkbox {
    font-size: 11px !important;
    white-space: nowrap;
}

.top-medios-inline {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.top-label {
    font-size: 11px;
    color: #333;
    white-space: nowrap;
}

.top-number-input {
    width: 60px !important;
    flex-shrink: 0;
}

/* ÁREA DEL GRÁFICO CENTRAL */

.chart-display-area {
    height: 500px; /* Altura fija para el área del gráfico */
    overflow-y: auto; /* Scroll vertical si es necesario */
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 3px;
}


.chart-placeholder {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chart-message {
    text-align: center;
    color: #666;
    font-style: italic;
}

/* RESPONSIVE */

@@media (max-width: 1200px) {
    .filter-row {
        flex-wrap: wrap;
    }

    .filter-column {
        min-width: 150px;
    }

    .medios-controles-generos-row {
        flex-direction: column;
    }

    .medios-column, .generos-column {
        max-width: none;
        flex: none;
    }

    .chart-controls-center {
        min-height: 300px;
    }
}

@@media (max-width: 768px) {
    .filter-column {
        min-width: 100%;
    }

    .medios-controles-generos-row {
        padding: 5px;
    }

    .controls-single-line {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }

    .control-buttons-inline,
    .checkbox-inline,
    .top-medios-inline {
        justify-content: center;
    }
}

/* ESTILOS ADICIONALES PARA DEVEXPRESS COMPONENTS */

.p-2 {
    padding: 8px;
}

.border-bottom {
    border-bottom: 1px solid #dee2e6;
}

/* Asegurar que los ListBox tengan el estilo correcto */
.dx-listbox {
    border: none !important;
    background: transparent !important;
}

.dx-list-item {
    font-size: 11px !important;
}

/* Estructura principal */
.custom-toolbarR {
    background-color: #686961;
    color: white;
    padding: 10px 0;
}

.page-containerR {
    display: flex;
    flex-direction: column;
    height: 85vh;
}

.reporte-body {
    min-width: 0; /* Previene el crecimiento excesivo */
}

.reporte-body1 {
    min-width: 150%; /* Previene el crecimiento excesivo */
}

/* Primera fila: tres columnas */
.top-rowR {
    display: flex;
    flex-direction: row;
    border-bottom: 1px solid #dee2e6;
    margin-bottom: 15px;
    min-width: 0; /* Importante para contener elementos flex */
}

.left-panelR {
    width: 250px;
    min-width: 250px;
    padding: 15px;
    border-right: 1px solid #dee2e6;
}

.middle-panelR {
    width: 250px;
    min-width: 250px;
    padding: 15px;
    border-right: 1px solid #dee2e6;
}

.right-panelR {
    flex-grow: 1;
    padding: 1px;
    overflow-y: auto;
    overflow-x: auto; /* Añade desplazamiento horizontal si es necesario */
    max-width: 100%; /* Limita el ancho máximo */
}

/* Segunda fila: dos columnas */
.bottom-rowR {
    display: flex;
    flex-direction: row;
    flex-grow: 1;
}

.bottom-leftR, .bottom-rightR {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
}

.bottom-leftR {
    border-right: 1px solid #dee2e6;
}

/* Fecha de corte */
.fecha-corte {
    padding: 15px;
    border-top: 1px solid #dee2e6;
}

/* Estilos para el gráfico personalizado */
.chart-container {
    padding: 2px 0;
}

.cssClassTabla {
}

.svg-text {
    fill: rgb(10, 1, 1);
}

.chart-item {
    margin-bottom: 15px;
}

.chart-label {
    font-weight: bold;
    margin-bottom: 5px;
}

.chart-bar-container {
    height: 30px;
    background-color: #f0f0f0;
    border-radius: 4px;
}

.chart-bar {
    height: 100%;
    background-color: #0d6efd;
    border-radius: 4px;
    display: flex;
    align-items: center;
    transition: width 0.5s ease;
    min-width: 50px;
}

.chart-value {
    padding: 0 10px;
    color: white;
    font-weight: bold;
}

/* Asegúrate que el contenedor principal tome toda la altura disponible */
::deep .h-100 {
    height: 100vh;
}

/* Estilo para agregar un filo azul en la parte superior */
.top-border-blue {
    border-top: 5px solid #007bff;
}

/* Estilos para la sección desplegable */
.more-options-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 5px;
    background-color: #f8f9fa;
    border-radius: 4px;
}

    .more-options-header:hover {
        background-color: #e9ecef;
    }

.toggle-icon {
    font-size: 14px;
    transition: transform 0.3s ease;
}

    .toggle-icon.rotate {
        transform: rotate(180deg);
    }

.mas-opciones-content {
    animation: fadeIn 0.3s ease-in-out;
}

@@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.custom-card {
    padding: 2px;
    border: none;
}

.header-containerR {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    border-bottom: 4px solid #000;
}

.logo {
    height: 50px;
}

.title {
    text-align: right;
    font-size: 14px;
    font-weight: bold;
}

.section-title {
    color: #4592DD;
    margin-bottom: 15px;
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
}

/* Media query para dispositivos móviles */
@@media (max-width: 768px) {
    .top-rowR, .bottom-rowR {
        flex-direction: column;
    }

    .left-panelR, .middle-panelR {
        width: 100%;
        min-width: auto;
        border-right: none;
        border-bottom: 1px solid #dee2e6;
    }

    .right-panelR {
        width: 100%;
    }

    .bottom-leftR {
        border-right: none;
        border-bottom: 1px solid #dee2e6;
    }

    .header-containerR {
        flex-direction: column;
        align-items: center;
    }

    .title {
        text-align: center;
        margin-top: 10px;
    }

    .chart-bar {
        min-width: 40px;
    }
}
/* Estilos adicionales para mejorar la visualización de los gráficos */
.chart-item {
    margin-bottom: 20px;
}

/* Asegurar que los gráficos de pie tengan suficiente espacio */
.col-md-6, .col-lg-4 {
    padding: 10px;
}

/* Responsive para diferentes tamaños de pantalla */
@@media (max-width: 768px) {
    .col-md-6 {
        width: 100%;
    }
}
/* DevExpress and Bootstrap Themes */
.alt-item > td:not(.dxbl-grid-empty-cell),
.alt-item > td:not(.dxbl-grid-indent-cell) {
    background-color: color-mix(in srgb, var(--bs-gray-300), transparent 50%);
}
/* Fluent Themes */
.alt-item {
    --dxbl-grid-row-bg: var(--DS-color-surface-neutral-subdued-rest);
}

.chart-container {
    height: 90%;
}

.chart-containerHistograma {
    width: 100%; /* Ocupa todo el ancho */
    height: 90%; /* o lo que quieras en alto */
    padding: 10px 0;
    box-sizing: border-box; /* evita que el padding reste ancho */
}

@@media (max-width: 768px) {
    .chart-container {
        height: 50vh;
        width: 100%; /* Para dispositivos móviles */
    }
}

@@media (min-width: 769px) {
    .chart-container {
        height: 90%;
    }
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.7);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loading-spinner {
    text-align: center;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.loading-message {
    margin-top: 10px;
    font-weight: bold;
}
/* Añade esto a tu CSS */
.page-containerR {
    height: 100vh !important; /* Sobreescribe cualquier otra altura */
}

.bottom-leftR, .bottom-rightR {
    height: 100% !important;
    min-height: 0; /* Permite que los elementos hijos se compriman */
    display: flex;
    flex-direction: column;
}

.dxbl-chart {
    flex-grow: 1;
    min-height: 0; /* Solución mágica para flexbox */
    max-width: 100%;
    width: 100% !important;
}



.station-name {
    font-weight: bold;
}

.qr-section {
    margin-top: 20px;
    padding: 10px;
    border-top: 1px solid #ddd;
}

.qr-container {
    display: flex;
    align-items: center;
    gap: 20px;
}

#qrcode {
    width: 100px;
    height: 100px;
}

.qr-info {
    font-size: 12px;
}






/* Estilos generales */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f8f9fa;
}



/* Cabecera */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
    border-bottom: 4px solid #000;
    margin-bottom: 20px;
}

    .header h1 {
        font-size: 28px;
        text-align: center;
        flex-grow: 1;
        margin: 0;
        font-weight: bold;
    }

.logo {
    max-height: 80px;
}

/* Información del reporte */
.reporte-header {
    width: 100%;
    margin-bottom: 1px;
    border-collapse: collapse;
    font-size: 12px; /* Letra más pequeña */
}

    .reporte-header td {
        padding: 2px 6px; /* Menor espacio interno (alto más compacto) */
        vertical-align: top;
        line-height: 1.2; /* Reduce el alto de línea */
    }

    .reporte-header tr:nth-child(even) {
        background-color: #f5f5f5;
    }

.label {
    font-weight: bold;
    width: 15%;
    font-size: 12px; /* Letra más pequeña para la etiqueta */
}

.value {
    width: 35%;
    font-size: 12px; /* Letra más pequeña para el valor */
}

/* Contenido principal */
.content-area {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.chart-section {
    flex: 1;
    min-width: 300px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    background-color: white;
}

.section-title {
    color: #4592DD;
    margin-bottom: 15px;
    font-size: 1.3rem;
    font-weight: bold;
    text-align: center;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 10px;
}

/* Gráficos personalizados */
.chart-container {
    padding: 10px 0;
}

.chart-item {
    margin-bottom: 15px;
}

.chart-label {
    font-weight: bold;
    margin-bottom: 5px;
    display: flex;
    justify-content: space-between;
}

.chart-bar-container {
    height: 30px;
    background-color: #f0f0f0;
    border-radius: 4px;
}

.chart-bar {
    height: 100%;
    background-color: #0d6efd;
    border-radius: 4px;
    display: flex;
    align-items: center;
    transition: width 0.5s ease;
    min-width: 50px;
}

.chart-value {
    padding: 0 10px;
    color: white;
    font-weight: bold;
}

/* Tabla de datos */
.data-table {
    width: 100%;
    margin-top: 6px;
    border-collapse: collapse;
    font-size: 10px;
    table-layout: fixed; /* 👈 fuerza a respetar los anchos */
}



    .data-table th, .data-table td {
        border: 1px solid #ddd;
        padding: 0px; /* quita espacio interno */
        text-align: center;
        white-space: nowrap;
        font-size: 10px; /* tamaño de letra */
        width: 100px; /* ancho exacto */
        height: 20px; /* alto exacto */
    }

        .data-table th:nth-child(1),
        .data-table td:nth-child(1) {
            width: 90px; /* ancho exacto solo para la primera columna */
            height: 10px; /* alto opcional, si quieres filas más bajas */
            font-size: 9px; /* tamaño de letra */
        }

    .data-table th {
        background-color: #f2f2f2;
        font-weight: bold;
    }

    .data-table tr:nth-child(even) {
        background-color: #f9f9f9;
    }

    .data-table th,
    .data-table td {
        overflow: hidden;
        text-overflow: ellipsis;
    }

/* Contenedor con scroll horizontal para pantallas pequeñas */
.chart-container {
    overflow-x: auto; /* Permite scroll horizontal */
    -webkit-overflow-scrolling: touch; /* Scroll suave en iOS */
}

/* Responsive breakpoints */
@@media screen and (max-width: 768px) {
    .data-table {
        font-size: 8px; /* Reduce el tamaño de fuente en móviles */
        min-width: 500px;
    }

        .data-table th, .data-table td {
            padding: 2px; /* Reduce el padding */
        }
}

@@media screen and (max-width: 480px) {
    .data-table {
        font-size: 7px; /* Aún más pequeño en pantallas muy pequeñas */
        min-width: 400px;
    }

        .data-table th, .data-table td {
            padding: 1px;
        }
    /* Opcional: Ocultar algunas columnas en móviles muy pequeños */
    /* .data-table th:nth-child(n+5),
            .data-table td:nth-child(n+5) {
                display: none;
            } */
}

/* Alternativa: Diseño de tarjetas para móviles */
@@media screen and (max-width: 480px) {
    .data-table-responsive {
        display: none; /* Oculta la tabla normal */
    }

    .data-cards {
        display: block;
    }

    .data-card {
        background: white;
        border: 1px solid #ddd;
        border-radius: 8px;
        margin-bottom: 10px;
        padding: 10px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }

        .data-card h4 {
            margin: 0 0 10px 0;
            font-size: 14px;
            font-weight: bold;
            border-bottom: 1px solid #eee;
            padding-bottom: 5px;
        }

    .data-row {
        display: flex;
        justify-content: space-between;
        padding: 3px 0;
        border-bottom: 1px solid #f5f5f5;
    }

        .data-row:last-child {
            border-bottom: none;
        }

    .data-label {
        font-weight: bold;
        color: #666;
    }

    .data-value {
        color: #333;
    }
}

/* Para pantallas normales, oculta las tarjetas */
@@media screen and (min-width: 481px) {
    .data-cards {
        display: none;
    }
}

.station-name {
    font-weight: bold;
    text-align: left;
}

/* Sección del código QR */
.qr-section {
    margin-top: 30px;
    padding: 15px;
    border-top: 1px solid #ddd;
    display: flex;
    justify-content: flex-end;
}

.qr-container {
    display: flex;
    align-items: center;
    gap: 20px;
}

#qrcode {
    width: 100px;
    height: 100px;
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qr-info {
    font-size: 12px;
}

    .qr-info p {
        margin: 5px 0;
    }

/* Responsive */
@@media (max-width: 768px) {
    .header {
        flex-direction: column;
        align-items: center;
    }

        .header h1 {
            margin: 15px 0;
        }

    .reporte-header td {
        display: block;
        width: 50%;
    }

    .content-area {
        flex-direction: column;
    }

    .qr-container {
        flex-direction: column;
        align-items: flex-start;
    }
}


.my-style {
    color: red;
    text-align: center;
}

.classGridInicio {
    text-align: center;
    --dxbl-grid-font-size: 0.675rem; /* Cambia 0.775rem por el tamaño que necesites */
    --dxbl-grid-min-width: 100%;
}


.grid-mes-3 {
    text-align: center;
    color: blue !important; /* Marzo - Rojo */
}

.grid-mes-4 {
    text-align: center;
}

.grid-mes-5 {
    text-align: center;
    color: #6F553D !important; /* Mayo - Púrpura */
}

.grid-mes-6 {
    text-align: center;
    color: #8D4A4E !important; /* Junio - Naranja */
}

.grid-mes-7 {
    text-align: center;
    color: #B1B1B1 !important; /* Julio - Cian */
}

.grid-mes-8 {
    text-align: center;
    color: #7A1F24 !important; /* Agosto - Rosa */
}

.grid-mes-9 {
    text-align: center;
    color: #3D4634 !important; /* Septiembre - Verde lima */
}

.grid-mes-10 {
    text-align: center;
    color: green !important; /* Octubre - Índigo */
}

.grid-mes-11 {
    text-align: center;
    color: #3E4C5E !important; /* Noviembre - Marrón */
}

.grid-mes-12 {
    text-align: center;
    color: red !important; /* Diciembre - Azul grisáceo */
}

*/
/* Tu código existente se mantiene igual */
.dxbl-grid td[role="columnheader"] {
    background-color: #003366 !important;
    color: white !important;
}

.dxbl-grid th {
    background-color: #003366 !important;
    color: white !important;
}

.dxbl-grid [role="columnheader"] {
    background-color: #003366 !important;
    color: white !important;
}
/* Todas las líneas del grid en negro */
.dxbl-grid {
    --dxbl-grid-border-color: black !important;
}

    .dxbl-grid .dxbl-grid-table td,
    .dxbl-grid .dxbl-grid-table th {
        border-color: black !important;
    }

/* NUEVOS ESTILOS PARA ENCABEZADOS POR SECCIÓN */





/* CSS específico para el grid - usar con la clase gridGeneral */
.gridGeneral.dxbl-grid td[role="columnheader"] {
    background-color: #003366 !important;
    color: white !important;
    text-align: center;
}

.gridGeneral.dxbl-grid th {
    background-color: #003366 !important;
    color: white !important;
    text-align: center;
}

.gridGeneral.dxbl-grid [role="columnheader"] {
    background-color: #003366 !important;
    color: white !important;
    text-align: center;
}











/* ===== ESTILOS BASE PARA TODOS LOS MESES ===== */
.grid-mes-1, .grid-mes-2, .grid-mes-3, .grid-mes-4, .grid-mes-5, .grid-mes-6,
.grid-mes-7, .grid-mes-8, .grid-mes-9, .grid-mes-10, .grid-mes-11, .grid-mes-12 {
    text-align: center;
}

/* ===== COLORES ESPECÍFICOS POR MES ===== */
.grid-mes-1 {
    color: forestgreen;
}

.grid-mes-2 {
    color: coral !important;
}

.grid-mes-3 {
    color: blue !important;
}

.grid-mes-4 { /* Sin color específico definido */
}

.grid-mes-5 {
    color: #6F553D !important;
}

.grid-mes-6 {
    color: #8D4A4E !important;
}

.grid-mes-7 {
    color: #B1B1B1 !important;
}

.grid-mes-8 {
    color: #7A1F24 !important;
}

.grid-mes-9 {
    color: #3D4634 !important;
}

.grid-mes-10 {
    color: green !important;
}

.grid-mes-11 {
    color: #3E4C5E !important;
}

.grid-mes-12 {
    color: red !important;
}

/* ===== FUNCIONALIDAD GRID PARA CADA MES ===== */

/* ENERO */
.grid-mes-1.dxbl-grid td[role="columnheader"],
.grid-mes-1.dxbl-grid th,
.grid-mes-1.dxbl-grid [role="columnheader"] {
    background-color: #003366 !important;
    color: white !important;
}

.grid-mes-1.dxbl-grid {
    --dxbl-grid-border-color: black !important;
}

    .grid-mes-1.dxbl-grid .dxbl-grid-table td,
    .grid-mes-1.dxbl-grid .dxbl-grid-table th {
        border-color: black !important;
    }

/* FEBRERO */
.grid-mes-2.dxbl-grid td[role="columnheader"],
.grid-mes-2.dxbl-grid th,
.grid-mes-2.dxbl-grid [role="columnheader"] {
    background-color: #003366 !important;
    color: white !important;
}

.grid-mes-2.dxbl-grid {
    --dxbl-grid-border-color: black !important;
}

    .grid-mes-2.dxbl-grid .dxbl-grid-table td,
    .grid-mes-2.dxbl-grid .dxbl-grid-table th {
        border-color: black !important;
    }

/* MARZO */
.grid-mes-3.dxbl-grid td[role="columnheader"],
.grid-mes-3.dxbl-grid th,
.grid-mes-3.dxbl-grid [role="columnheader"] {
    background-color: #003366 !important;
    color: white !important;
}

.grid-mes-3.dxbl-grid {
    --dxbl-grid-border-color: black !important;
}

    .grid-mes-3.dxbl-grid .dxbl-grid-table td,
    .grid-mes-3.dxbl-grid .dxbl-grid-table th {
        border-color: black !important;
    }

/* ABRIL */
.grid-mes-4.dxbl-grid td[role="columnheader"],
.grid-mes-4.dxbl-grid th,
.grid-mes-4.dxbl-grid [role="columnheader"] {
    background-color: #003366 !important;
    color: white !important;
}

.grid-mes-4.dxbl-grid {
    --dxbl-grid-border-color: black !important;
}

    .grid-mes-4.dxbl-grid .dxbl-grid-table td,
    .grid-mes-4.dxbl-grid .dxbl-grid-table th {
        border-color: black !important;
    }

/* MAYO */
.grid-mes-5.dxbl-grid td[role="columnheader"],
.grid-mes-5.dxbl-grid th,
.grid-mes-5.dxbl-grid [role="columnheader"] {
    background-color: #003366 !important;
    color: white !important;
}

.grid-mes-5.dxbl-grid {
    --dxbl-grid-border-color: black !important;
}

    .grid-mes-5.dxbl-grid .dxbl-grid-table td,
    .grid-mes-5.dxbl-grid .dxbl-grid-table th {
        border-color: black !important;
    }

/* JUNIO */
.grid-mes-6.dxbl-grid td[role="columnheader"],
.grid-mes-6.dxbl-grid th,
.grid-mes-6.dxbl-grid [role="columnheader"] {
    background-color: #003366 !important;
    color: white !important;
}

.grid-mes-6.dxbl-grid {
    --dxbl-grid-border-color: black !important;
}

    .grid-mes-6.dxbl-grid .dxbl-grid-table td,
    .grid-mes-6.dxbl-grid .dxbl-grid-table th {
        border-color: black !important;
    }

/* JULIO */
.grid-mes-7.dxbl-grid td[role="columnheader"],
.grid-mes-7.dxbl-grid th,
.grid-mes-7.dxbl-grid [role="columnheader"] {
    background-color: #003366 !important;
    color: white !important;
}

.grid-mes-7.dxbl-grid {
    --dxbl-grid-border-color: black !important;
}

    .grid-mes-7.dxbl-grid .dxbl-grid-table td,
    .grid-mes-7.dxbl-grid .dxbl-grid-table th {
        border-color: black !important;
    }

/* AGOSTO */
.grid-mes-8.dxbl-grid td[role="columnheader"],
.grid-mes-8.dxbl-grid th,
.grid-mes-8.dxbl-grid [role="columnheader"] {
    background-color: #003366 !important;
    color: white !important;
}

.grid-mes-8.dxbl-grid {
    --dxbl-grid-border-color: black !important;
}

    .grid-mes-8.dxbl-grid .dxbl-grid-table td,
    .grid-mes-8.dxbl-grid .dxbl-grid-table th {
        border-color: black !important;
    }

/* SEPTIEMBRE */
.grid-mes-9.dxbl-grid td[role="columnheader"],
.grid-mes-9.dxbl-grid th,
.grid-mes-9.dxbl-grid [role="columnheader"] {
    background-color: #003366 !important;
    color: white !important;
}

.grid-mes-9.dxbl-grid {
    --dxbl-grid-border-color: black !important;
}

    .grid-mes-9.dxbl-grid .dxbl-grid-table td,
    .grid-mes-9.dxbl-grid .dxbl-grid-table th {
        border-color: black !important;
    }

/* OCTUBRE */
.grid-mes-10.dxbl-grid td[role="columnheader"],
.grid-mes-10.dxbl-grid th,
.grid-mes-10.dxbl-grid [role="columnheader"] {
    background-color: #003366 !important;
    color: white !important;
}

.grid-mes-10.dxbl-grid {
    --dxbl-grid-border-color: black !important;
}

    .grid-mes-10.dxbl-grid .dxbl-grid-table td,
    .grid-mes-10.dxbl-grid .dxbl-grid-table th {
        border-color: black !important;
    }

/* NOVIEMBRE */
.grid-mes-11.dxbl-grid td[role="columnheader"],
.grid-mes-11.dxbl-grid th,
.grid-mes-11.dxbl-grid [role="columnheader"] {
    background-color: #003366 !important;
    color: white !important;
}

.grid-mes-11.dxbl-grid {
    --dxbl-grid-border-color: black !important;
}

    .grid-mes-11.dxbl-grid .dxbl-grid-table td,
    .grid-mes-11.dxbl-grid .dxbl-grid-table th {
        border-color: black !important;
    }

/* DICIEMBRE */
.grid-mes-12.dxbl-grid td[role="columnheader"],
.grid-mes-12.dxbl-grid th,
.grid-mes-12.dxbl-grid [role="columnheader"] {
    background-color: #003366 !important;
    color: white !important;
}

.grid-mes-12.dxbl-grid {
    --dxbl-grid-border-color: black !important;
}

    .grid-mes-12.dxbl-grid .dxbl-grid-table td,
    .grid-mes-12.dxbl-grid .dxbl-grid-table th {
        border-color: black !important;
    }

        /* ===== ESTILOS PARA ENCABEZADOS POR SECCIÓN (APLICABLE A TODOS LOS MESES) ===== */

        /* SECCIÓN AUDIENCIA - Color rojo carmesí */

        .classGridInicio.dxbl-grid .dxbl-grid-table th:nth-child(7),
        .grid-mes-1.dxbl-grid .dxbl-grid-table th:nth-child(7),
        .grid-mes-2.dxbl-grid .dxbl-grid-table th:nth-child(7),
        .grid-mes-3.dxbl-grid .dxbl-grid-table th:nth-child(7),
        .grid-mes-4.dxbl-grid .dxbl-grid-table th:nth-child(7),
        .grid-mes-5.dxbl-grid .dxbl-grid-table th:nth-child(7),
        .grid-mes-6.dxbl-grid .dxbl-grid-table th:nth-child(7),
        .grid-mes-7.dxbl-grid .dxbl-grid-table th:nth-child(7),
        .grid-mes-8.dxbl-grid .dxbl-grid-table th:nth-child(7),
        .grid-mes-9.dxbl-grid .dxbl-grid-table th:nth-child(7),
        .grid-mes-10.dxbl-grid .dxbl-grid-table th:nth-child(7),
        .grid-mes-11.dxbl-grid .dxbl-grid-table th:nth-child(7),
        .grid-mes-12.dxbl-grid .dxbl-grid-table th:nth-child(7) {
            background-color: #DC143C !important;
            color: white !important;
            text-align: center;
        }

    /* Subencabezados de AUDIENCIA */

    .classGridInicio.dxbl-grid .dxbl-grid-table .dxbl-grid-header-row:nth-child(2) th:nth-child(1),
    .classGridInicio.dxbl-grid .dxbl-grid-table .dxbl-grid-header-row:nth-child(2) th:nth-child(2),
    .classGridInicio.dxbl-grid .dxbl-grid-table .dxbl-grid-header-row:nth-child(2) th:nth-child(3),
    .classGridInicio.dxbl-grid .dxbl-grid-table .dxbl-grid-header-row:nth-child(2) th:nth-child(4),
    .grid-mes-1.dxbl-grid .dxbl-grid-table .dxbl-grid-header-row:nth-child(2) th:nth-child(1),
    .grid-mes-1.dxbl-grid .dxbl-grid-table .dxbl-grid-header-row:nth-child(2) th:nth-child(2),
    .grid-mes-1.dxbl-grid .dxbl-grid-table .dxbl-grid-header-row:nth-child(2) th:nth-child(3),
    .grid-mes-1.dxbl-grid .dxbl-grid-table .dxbl-grid-header-row:nth-child(2) th:nth-child(4),
    .grid-mes-2.dxbl-grid .dxbl-grid-table .dxbl-grid-header-row:nth-child(2) th:nth-child(1),
    .grid-mes-2.dxbl-grid .dxbl-grid-table .dxbl-grid-header-row:nth-child(2) th:nth-child(2),
    .grid-mes-2.dxbl-grid .dxbl-grid-table .dxbl-grid-header-row:nth-child(2) th:nth-child(3),
    .grid-mes-2.dxbl-grid .dxbl-grid-table .dxbl-grid-header-row:nth-child(2) th:nth-child(4),
    .grid-mes-3.dxbl-grid .dxbl-grid-table .dxbl-grid-header-row:nth-child(2) th:nth-child(1),
    .grid-mes-3.dxbl-grid .dxbl-grid-table .dxbl-grid-header-row:nth-child(2) th:nth-child(2),
    .grid-mes-3.dxbl-grid .dxbl-grid-table .dxbl-grid-header-row:nth-child(2) th:nth-child(3),
    .grid-mes-3.dxbl-grid .dxbl-grid-table .dxbl-grid-header-row:nth-child(2) th:nth-child(4),
    .grid-mes-4.dxbl-grid .dxbl-grid-table .dxbl-grid-header-row:nth-child(2) th:nth-child(1),
    .grid-mes-4.dxbl-grid .dxbl-grid-table .dxbl-grid-header-row:nth-child(2) th:nth-child(2),
    .grid-mes-4.dxbl-grid .dxbl-grid-table .dxbl-grid-header-row:nth-child(2) th:nth-child(3),
    .grid-mes-4.dxbl-grid .dxbl-grid-table .dxbl-grid-header-row:nth-child(2) th:nth-child(4),
    .grid-mes-5.dxbl-grid .dxbl-grid-table .dxbl-grid-header-row:nth-child(2) th:nth-child(1),
    .grid-mes-5.dxbl-grid .dxbl-grid-table .dxbl-grid-header-row:nth-child(2) th:nth-child(2),
    .grid-mes-5.dxbl-grid .dxbl-grid-table .dxbl-grid-header-row:nth-child(2) th:nth-child(3),
    .grid-mes-5.dxbl-grid .dxbl-grid-table .dxbl-grid-header-row:nth-child(2) th:nth-child(4),
    .grid-mes-6.dxbl-grid .dxbl-grid-table .dxbl-grid-header-row:nth-child(2) th:nth-child(1),
    .grid-mes-6.dxbl-grid .dxbl-grid-table .dxbl-grid-header-row:nth-child(2) th:nth-child(2),
    .grid-mes-6.dxbl-grid .dxbl-grid-table .dxbl-grid-header-row:nth-child(2) th:nth-child(3),
    .grid-mes-6.dxbl-grid .dxbl-grid-table .dxbl-grid-header-row:nth-child(2) th:nth-child(4),
    .grid-mes-7.dxbl-grid .dxbl-grid-table .dxbl-grid-header-row:nth-child(2) th:nth-child(1),
    .grid-mes-7.dxbl-grid .dxbl-grid-table .dxbl-grid-header-row:nth-child(2) th:nth-child(2),
    .grid-mes-7.dxbl-grid .dxbl-grid-table .dxbl-grid-header-row:nth-child(2) th:nth-child(3),
    .grid-mes-7.dxbl-grid .dxbl-grid-table .dxbl-grid-header-row:nth-child(2) th:nth-child(4),
    .grid-mes-8.dxbl-grid .dxbl-grid-table .dxbl-grid-header-row:nth-child(2) th:nth-child(1),
    .grid-mes-8.dxbl-grid .dxbl-grid-table .dxbl-grid-header-row:nth-child(2) th:nth-child(2),
    .grid-mes-8.dxbl-grid .dxbl-grid-table .dxbl-grid-header-row:nth-child(2) th:nth-child(3),
    .grid-mes-8.dxbl-grid .dxbl-grid-table .dxbl-grid-header-row:nth-child(2) th:nth-child(4),
    .grid-mes-9.dxbl-grid .dxbl-grid-table .dxbl-grid-header-row:nth-child(2) th:nth-child(1),
    .grid-mes-9.dxbl-grid .dxbl-grid-table .dxbl-grid-header-row:nth-child(2) th:nth-child(2),
    .grid-mes-9.dxbl-grid .dxbl-grid-table .dxbl-grid-header-row:nth-child(2) th:nth-child(3),
    .grid-mes-9.dxbl-grid .dxbl-grid-table .dxbl-grid-header-row:nth-child(2) th:nth-child(4),
    .grid-mes-10.dxbl-grid .dxbl-grid-table .dxbl-grid-header-row:nth-child(2) th:nth-child(1),
    .grid-mes-10.dxbl-grid .dxbl-grid-table .dxbl-grid-header-row:nth-child(2) th:nth-child(2),
    .grid-mes-10.dxbl-grid .dxbl-grid-table .dxbl-grid-header-row:nth-child(2) th:nth-child(3),
    .grid-mes-10.dxbl-grid .dxbl-grid-table .dxbl-grid-header-row:nth-child(2) th:nth-child(4),
    .grid-mes-11.dxbl-grid .dxbl-grid-table .dxbl-grid-header-row:nth-child(2) th:nth-child(1),
    .grid-mes-11.dxbl-grid .dxbl-grid-table .dxbl-grid-header-row:nth-child(2) th:nth-child(2),
    .grid-mes-11.dxbl-grid .dxbl-grid-table .dxbl-grid-header-row:nth-child(2) th:nth-child(3),
    .grid-mes-11.dxbl-grid .dxbl-grid-table .dxbl-grid-header-row:nth-child(2) th:nth-child(4),
    .grid-mes-12.dxbl-grid .dxbl-grid-table .dxbl-grid-header-row:nth-child(2) th:nth-child(1),
    .grid-mes-12.dxbl-grid .dxbl-grid-table .dxbl-grid-header-row:nth-child(2) th:nth-child(2),
    .grid-mes-12.dxbl-grid .dxbl-grid-table .dxbl-grid-header-row:nth-child(2) th:nth-child(3),
    .grid-mes-12.dxbl-grid .dxbl-grid-table .dxbl-grid-header-row:nth-child(2) th:nth-child(4) {
        background-color: #DC143C !important;
        color: white !important;
        text-align: center;
    }

    /* SECCIÓN HOGARES - Color naranja */


    .classGridInicio.dxbl-grid .dxbl-grid-table th:nth-child(8),
    .grid-mes-1.dxbl-grid .dxbl-grid-table th:nth-child(8),
    .grid-mes-2.dxbl-grid .dxbl-grid-table th:nth-child(8),
    .grid-mes-3.dxbl-grid .dxbl-grid-table th:nth-child(8),
    .grid-mes-4.dxbl-grid .dxbl-grid-table th:nth-child(8),
    .grid-mes-5.dxbl-grid .dxbl-grid-table th:nth-child(8),
    .grid-mes-6.dxbl-grid .dxbl-grid-table th:nth-child(8),
    .grid-mes-7.dxbl-grid .dxbl-grid-table th:nth-child(8),
    .grid-mes-8.dxbl-grid .dxbl-grid-table th:nth-child(8),
    .grid-mes-9.dxbl-grid .dxbl-grid-table th:nth-child(8),
    .grid-mes-10.dxbl-grid .dxbl-grid-table th:nth-child(8),
    .grid-mes-11.dxbl-grid .dxbl-grid-table th:nth-child(8),
    .grid-mes-12.dxbl-grid .dxbl-grid-table th:nth-child(8) {
        background-color: #FF8C00 !important;
        color: white !important;
        text-align: center;
    }

    /* Subencabezados de HOGARES */


    .classGridInicio.dxbl-grid .dxbl-grid-table .dxbl-grid-header-row:nth-child(2) th:nth-child(5),
    .classGridInicio.dxbl-grid .dxbl-grid-table .dxbl-grid-header-row:nth-child(2) th:nth-child(6),
    .classGridInicio.dxbl-grid .dxbl-grid-table .dxbl-grid-header-row:nth-child(2) th:nth-child(7),
    .grid-mes-1.dxbl-grid .dxbl-grid-table .dxbl-grid-header-row:nth-child(2) th:nth-child(5),
    .grid-mes-1.dxbl-grid .dxbl-grid-table .dxbl-grid-header-row:nth-child(2) th:nth-child(6),
    .grid-mes-1.dxbl-grid .dxbl-grid-table .dxbl-grid-header-row:nth-child(2) th:nth-child(7),
    .grid-mes-2.dxbl-grid .dxbl-grid-table .dxbl-grid-header-row:nth-child(2) th:nth-child(5),
    .grid-mes-2.dxbl-grid .dxbl-grid-table .dxbl-grid-header-row:nth-child(2) th:nth-child(6),
    .grid-mes-2.dxbl-grid .dxbl-grid-table .dxbl-grid-header-row:nth-child(2) th:nth-child(7),
    .grid-mes-3.dxbl-grid .dxbl-grid-table .dxbl-grid-header-row:nth-child(2) th:nth-child(5),
    .grid-mes-3.dxbl-grid .dxbl-grid-table .dxbl-grid-header-row:nth-child(2) th:nth-child(6),
    .grid-mes-3.dxbl-grid .dxbl-grid-table .dxbl-grid-header-row:nth-child(2) th:nth-child(7),
    .grid-mes-4.dxbl-grid .dxbl-grid-table .dxbl-grid-header-row:nth-child(2) th:nth-child(5),
    .grid-mes-4.dxbl-grid .dxbl-grid-table .dxbl-grid-header-row:nth-child(2) th:nth-child(6),
    .grid-mes-4.dxbl-grid .dxbl-grid-table .dxbl-grid-header-row:nth-child(2) th:nth-child(7),
    .grid-mes-5.dxbl-grid .dxbl-grid-table .dxbl-grid-header-row:nth-child(2) th:nth-child(5),
    .grid-mes-5.dxbl-grid .dxbl-grid-table .dxbl-grid-header-row:nth-child(2) th:nth-child(6),
    .grid-mes-5.dxbl-grid .dxbl-grid-table .dxbl-grid-header-row:nth-child(2) th:nth-child(7),
    .grid-mes-6.dxbl-grid .dxbl-grid-table .dxbl-grid-header-row:nth-child(2) th:nth-child(5),
    .grid-mes-6.dxbl-grid .dxbl-grid-table .dxbl-grid-header-row:nth-child(2) th:nth-child(6),
    .grid-mes-6.dxbl-grid .dxbl-grid-table .dxbl-grid-header-row:nth-child(2) th:nth-child(7),
    .grid-mes-7.dxbl-grid .dxbl-grid-table .dxbl-grid-header-row:nth-child(2) th:nth-child(5),
    .grid-mes-7.dxbl-grid .dxbl-grid-table .dxbl-grid-header-row:nth-child(2) th:nth-child(6),
    .grid-mes-7.dxbl-grid .dxbl-grid-table .dxbl-grid-header-row:nth-child(2) th:nth-child(7),
    .grid-mes-8.dxbl-grid .dxbl-grid-table .dxbl-grid-header-row:nth-child(2) th:nth-child(5),
    .grid-mes-8.dxbl-grid .dxbl-grid-table .dxbl-grid-header-row:nth-child(2) th:nth-child(6),
    .grid-mes-8.dxbl-grid .dxbl-grid-table .dxbl-grid-header-row:nth-child(2) th:nth-child(7),
    .grid-mes-9.dxbl-grid .dxbl-grid-table .dxbl-grid-header-row:nth-child(2) th:nth-child(5),
    .grid-mes-9.dxbl-grid .dxbl-grid-table .dxbl-grid-header-row:nth-child(2) th:nth-child(6),
    .grid-mes-9.dxbl-grid .dxbl-grid-table .dxbl-grid-header-row:nth-child(2) th:nth-child(7),
    .grid-mes-10.dxbl-grid .dxbl-grid-table .dxbl-grid-header-row:nth-child(2) th:nth-child(5),
    .grid-mes-10.dxbl-grid .dxbl-grid-table .dxbl-grid-header-row:nth-child(2) th:nth-child(6),
    .grid-mes-10.dxbl-grid .dxbl-grid-table .dxbl-grid-header-row:nth-child(2) th:nth-child(7),
    .grid-mes-11.dxbl-grid .dxbl-grid-table .dxbl-grid-header-row:nth-child(2) th:nth-child(5),
    .grid-mes-11.dxbl-grid .dxbl-grid-table .dxbl-grid-header-row:nth-child(2) th:nth-child(6),
    .grid-mes-11.dxbl-grid .dxbl-grid-table .dxbl-grid-header-row:nth-child(2) th:nth-child(7),
    .grid-mes-12.dxbl-grid .dxbl-grid-table .dxbl-grid-header-row:nth-child(2) th:nth-child(5),
    .grid-mes-12.dxbl-grid .dxbl-grid-table .dxbl-grid-header-row:nth-child(2) th:nth-child(6),
    .grid-mes-12.dxbl-grid .dxbl-grid-table .dxbl-grid-header-row:nth-child(2) th:nth-child(7) {
        background-color: #FF8C00 !important;
        color: white !important;
        text-align: center;
    }

    /* SECCIÓN C X M - Color dorado */



    .classGridInicio.dxbl-grid .dxbl-grid-table th:nth-child(9),
    .grid-mes-1.dxbl-grid .dxbl-grid-table th:nth-child(9),
    .grid-mes-2.dxbl-grid .dxbl-grid-table th:nth-child(9),
    .grid-mes-3.dxbl-grid .dxbl-grid-table th:nth-child(9),
    .grid-mes-4.dxbl-grid .dxbl-grid-table th:nth-child(9),
    .grid-mes-5.dxbl-grid .dxbl-grid-table th:nth-child(9),
    .grid-mes-6.dxbl-grid .dxbl-grid-table th:nth-child(9),
    .grid-mes-7.dxbl-grid .dxbl-grid-table th:nth-child(9),
    .grid-mes-8.dxbl-grid .dxbl-grid-table th:nth-child(9),
    .grid-mes-9.dxbl-grid .dxbl-grid-table th:nth-child(9),
    .grid-mes-10.dxbl-grid .dxbl-grid-table th:nth-child(9),
    .grid-mes-11.dxbl-grid .dxbl-grid-table th:nth-child(9),
    .grid-mes-12.dxbl-grid .dxbl-grid-table th:nth-child(9) {
        background-color: #B8860B !important;
        color: white !important;
        text-align: center;
    }

    /* Subencabezados de C X M */
    .classGridInicio.dxbl-grid .dxbl-grid-table .dxbl-grid-header-row:nth-child(2) th:nth-child(8),
    .classGridInicio.dxbl-grid .dxbl-grid-table .dxbl-grid-header-row:nth-child(2) th:nth-child(9),
    .grid-mes-1.dxbl-grid .dxbl-grid-table .dxbl-grid-header-row:nth-child(2) th:nth-child(8),
    .grid-mes-1.dxbl-grid .dxbl-grid-table .dxbl-grid-header-row:nth-child(2) th:nth-child(9),
    .grid-mes-2.dxbl-grid .dxbl-grid-table .dxbl-grid-header-row:nth-child(2) th:nth-child(8),
    .grid-mes-2.dxbl-grid .dxbl-grid-table .dxbl-grid-header-row:nth-child(2) th:nth-child(9),
    .grid-mes-3.dxbl-grid .dxbl-grid-table .dxbl-grid-header-row:nth-child(2) th:nth-child(8),
    .grid-mes-3.dxbl-grid .dxbl-grid-table .dxbl-grid-header-row:nth-child(2) th:nth-child(9),
    .grid-mes-4.dxbl-grid .dxbl-grid-table .dxbl-grid-header-row:nth-child(2) th:nth-child(8),
    .grid-mes-4.dxbl-grid .dxbl-grid-table .dxbl-grid-header-row:nth-child(2) th:nth-child(9),
    .grid-mes-5.dxbl-grid .dxbl-grid-table .dxbl-grid-header-row:nth-child(2) th:nth-child(8),
    .grid-mes-5.dxbl-grid .dxbl-grid-table .dxbl-grid-header-row:nth-child(2) th:nth-child(9),
    .grid-mes-6.dxbl-grid .dxbl-grid-table .dxbl-grid-header-row:nth-child(2) th:nth-child(8),
    .grid-mes-6.dxbl-grid .dxbl-grid-table .dxbl-grid-header-row:nth-child(2) th:nth-child(9),
    .grid-mes-7.dxbl-grid .dxbl-grid-table .dxbl-grid-header-row:nth-child(2) th:nth-child(8),
    .grid-mes-7.dxbl-grid .dxbl-grid-table .dxbl-grid-header-row:nth-child(2) th:nth-child(9),
    .grid-mes-8.dxbl-grid .dxbl-grid-table .dxbl-grid-header-row:nth-child(2) th:nth-child(8),
    .grid-mes-8.dxbl-grid .dxbl-grid-table .dxbl-grid-header-row:nth-child(2) th:nth-child(9),
    .grid-mes-9.dxbl-grid .dxbl-grid-table .dxbl-grid-header-row:nth-child(2) th:nth-child(8),
    .grid-mes-9.dxbl-grid .dxbl-grid-table .dxbl-grid-header-row:nth-child(2) th:nth-child(9),
    .grid-mes-10.dxbl-grid .dxbl-grid-table .dxbl-grid-header-row:nth-child(2) th:nth-child(8),
    .grid-mes-10.dxbl-grid .dxbl-grid-table .dxbl-grid-header-row:nth-child(2) th:nth-child(9),
    .grid-mes-11.dxbl-grid .dxbl-grid-table .dxbl-grid-header-row:nth-child(2) th:nth-child(8),
    .grid-mes-11.dxbl-grid .dxbl-grid-table .dxbl-grid-header-row:nth-child(2) th:nth-child(9),
    .grid-mes-12.dxbl-grid .dxbl-grid-table .dxbl-grid-header-row:nth-child(2) th:nth-child(8),
    .grid-mes-12.dxbl-grid .dxbl-grid-table .dxbl-grid-header-row:nth-child(2) th:nth-child(9) {
        background-color: #B8860B !important;
        color: white !important;
        text-align: center;
    }
















/* ===== ESTILOS PARA ENCABEZADOS POR SECCIÓN (APLICABLE A TODOS LOS MESES) ===== */

/* SECCIÓN AUDIENCIA - Color rojo carmesí */

.classGridBloques.dxbl-grid .dxbl-grid-table th:nth-child(6),
.classGridSexo.dxbl-grid .dxbl-grid-table th:nth-child(6),
.classGridEdad.dxbl-grid .dxbl-grid-table th:nth-child(6),
.classGridNSE.dxbl-grid .dxbl-grid-table th:nth-child(6) {
    background-color: #DC143C !important;
    color: white !important;
    text-align: center;
}

/* Subencabezados de AUDIENCIA */


.classGridBloques.dxbl-grid .dxbl-grid-table .dxbl-grid-header-row:nth-child(2) th:nth-child(1),
.classGridBloques.dxbl-grid .dxbl-grid-table .dxbl-grid-header-row:nth-child(2) th:nth-child(2),
.classGridBloques.dxbl-grid .dxbl-grid-table .dxbl-grid-header-row:nth-child(2) th:nth-child(3),
.classGridSexo.dxbl-grid .dxbl-grid-table .dxbl-grid-header-row:nth-child(2) th:nth-child(1),
.classGridSexo.dxbl-grid .dxbl-grid-table .dxbl-grid-header-row:nth-child(2) th:nth-child(2),
.classGridSexo.dxbl-grid .dxbl-grid-table .dxbl-grid-header-row:nth-child(2) th:nth-child(3),
.classGridEdad.dxbl-grid .dxbl-grid-table .dxbl-grid-header-row:nth-child(2) th:nth-child(1),
.classGridEdad.dxbl-grid .dxbl-grid-table .dxbl-grid-header-row:nth-child(2) th:nth-child(2),
.classGridEdad.dxbl-grid .dxbl-grid-table .dxbl-grid-header-row:nth-child(2) th:nth-child(3),
.classGridNSE.dxbl-grid .dxbl-grid-table .dxbl-grid-header-row:nth-child(2) th:nth-child(1),
.classGridNSE.dxbl-grid .dxbl-grid-table .dxbl-grid-header-row:nth-child(2) th:nth-child(2),
.classGridNSE.dxbl-grid .dxbl-grid-table .dxbl-grid-header-row:nth-child(2) th:nth-child(3) {
    background-color: #DC143C !important;
    color: white !important;
    text-align: center;
}

/* SECCIÓN HOGARES - Color naranja */

.classGridBloques.dxbl-grid .dxbl-grid-table th:nth-child(7),
.classGridSexo.dxbl-grid .dxbl-grid-table th:nth-child(7),
.classGridEdad.dxbl-grid .dxbl-grid-table th:nth-child(7),
.classGridNSE.dxbl-grid .dxbl-grid-table th:nth-child(7) {
    background-color: #FF8C00 !important;
    color: white !important;
    text-align: center;
}

/* Subencabezados de HOGARES */

.classGridBloques.dxbl-grid .dxbl-grid-table .dxbl-grid-header-row:nth-child(2) th:nth-child(4),
.classGridBloques.dxbl-grid .dxbl-grid-table .dxbl-grid-header-row:nth-child(2) th:nth-child(5),
.classGridBloques.dxbl-grid .dxbl-grid-table .dxbl-grid-header-row:nth-child(2) th:nth-child(6),
.classGridSexo.dxbl-grid .dxbl-grid-table .dxbl-grid-header-row:nth-child(2) th:nth-child(4),
.classGridSexo.dxbl-grid .dxbl-grid-table .dxbl-grid-header-row:nth-child(2) th:nth-child(5),
.classGridSexo.dxbl-grid .dxbl-grid-table .dxbl-grid-header-row:nth-child(2) th:nth-child(6),
.classGridEdad.dxbl-grid .dxbl-grid-table .dxbl-grid-header-row:nth-child(2) th:nth-child(4),
.classGridEdad.dxbl-grid .dxbl-grid-table .dxbl-grid-header-row:nth-child(2) th:nth-child(5),
.classGridEdad.dxbl-grid .dxbl-grid-table .dxbl-grid-header-row:nth-child(2) th:nth-child(6),
.classGridNSE.dxbl-grid .dxbl-grid-table .dxbl-grid-header-row:nth-child(2) th:nth-child(4),
.classGridNSE.dxbl-grid .dxbl-grid-table .dxbl-grid-header-row:nth-child(2) th:nth-child(5),
.classGridNSE.dxbl-grid .dxbl-grid-table .dxbl-grid-header-row:nth-child(2) th:nth-child(6) {
    background-color: #FF8C00 !important;
    color: white !important;
    text-align: center;
}

/* SECCIÓN C X M - Color dorado */

.classGridBloques.dxbl-grid .dxbl-grid-table th:nth-child(8),
.classGridEdad.dxbl-grid .dxbl-grid-table th:nth-child(8),
.classGridNSE.dxbl-grid .dxbl-grid-table th:nth-child(8) {
    background-color: #B8860B !important;
    color: white !important;
    text-align: center;
}

/* Subencabezados de C X M */

.classGridBloques.dxbl-grid .dxbl-grid-table .dxbl-grid-header-row:nth-child(2) th:nth-child(7),
.classGridBloques.dxbl-grid .dxbl-grid-table .dxbl-grid-header-row:nth-child(2) th:nth-child(8),
.classGridBloques.dxbl-grid .dxbl-grid-table .dxbl-grid-header-row:nth-child(2) th:nth-child(9),
.classGridEdad.dxbl-grid .dxbl-grid-table .dxbl-grid-header-row:nth-child(2) th:nth-child(7),
.classGridEdad.dxbl-grid .dxbl-grid-table .dxbl-grid-header-row:nth-child(2) th:nth-child(8),
.classGridEdad.dxbl-grid .dxbl-grid-table .dxbl-grid-header-row:nth-child(2) th:nth-child(9),
.classGridNSE.dxbl-grid .dxbl-grid-table .dxbl-grid-header-row:nth-child(2) th:nth-child(7),
.classGridNSE.dxbl-grid .dxbl-grid-table .dxbl-grid-header-row:nth-child(2) th:nth-child(8),
.classGridNSE.dxbl-grid .dxbl-grid-table .dxbl-grid-header-row:nth-child(2) th:nth-child(9) {
    background-color: #B8860B !important;
    color: white !important;
    text-align: center;
}












/* Todas las líneas del grid en negro */
.gridGeneral.dxbl-grid {
    --dxbl-grid-border-color: black !important;
}

    .gridGeneral.dxbl-grid .dxbl-grid-table td,
    .gridGeneral.dxbl-grid .dxbl-grid-table th {
        border-color: black !important;
    }

        /* NUEVOS ESTILOS PARA ENCABEZADOS POR SECCIÓN */
        /* SECCIÓN AUDIENCIA - Color rojo carmesí */
        /* Encabezado principal AUDIENCIA */
        .gridGeneral.dxbl-grid .dxbl-grid-table th:nth-child(7) {
            background-color: #DC143C !important;
            color: white !important;
        }

    /* Subencabezados de AUDIENCIA (columnas 7-10: TOTAL, PROM, RATING, SHARE) */
    .gridGeneral.dxbl-grid .dxbl-grid-table .dxbl-grid-header-row:nth-child(2) th:nth-child(1),
    .gridGeneral.dxbl-grid .dxbl-grid-table .dxbl-grid-header-row:nth-child(2) th:nth-child(2),
    .gridGeneral.dxbl-grid .dxbl-grid-table .dxbl-grid-header-row:nth-child(2) th:nth-child(3),
    .gridGeneral.dxbl-grid .dxbl-grid-table .dxbl-grid-header-row:nth-child(2) th:nth-child(4) {
        background-color: #DC143C !important;
        color: white !important;
    }

    /* SECCIÓN HOGARES - Color naranja */
    /* Encabezado principal HOGARES */
    .gridGeneral.dxbl-grid .dxbl-grid-table th:nth-child(8) {
        background-color: #FF8C00 !important;
        color: white !important;
    }

    /* Subencabezados de HOGARES (columnas 11-13: PROM, RATING, SHARE) */
    .gridGeneral.dxbl-grid .dxbl-grid-table .dxbl-grid-header-row:nth-child(2) th:nth-child(5),
    .gridGeneral.dxbl-grid .dxbl-grid-table .dxbl-grid-header-row:nth-child(2) th:nth-child(6),
    .gridGeneral.dxbl-grid .dxbl-grid-table .dxbl-grid-header-row:nth-child(2) th:nth-child(7) {
        background-color: #FF8C00 !important;
        color: white !important;
    }

    /* SECCIÓN C X M - Color dorado */
    /* Encabezado principal C X M */
    .gridGeneral.dxbl-grid .dxbl-grid-table th:nth-child(9) {
        background-color: #B8860B !important;
        color: white !important;
    }

    /* Subencabezados de C X M (columnas 14-15: TARIFA, COSTO POR MIL) */
    .gridGeneral.dxbl-grid .dxbl-grid-table .dxbl-grid-header-row:nth-child(2) th:nth-child(8),
    .gridGeneral.dxbl-grid .dxbl-grid-table .dxbl-grid-header-row:nth-child(2) th:nth-child(9) {
        background-color: #B8860B !important;
        color: white !important;
    }







/* Todas las líneas del grid en negro */
.dxbl-grid {
    --dxbl-grid-border-color: black !important;
}

    .dxbl-grid .dxbl-grid-table td,
    .dxbl-grid .dxbl-grid-table th {
        border-color: black !important;
    }

/* Todos los grids se ajustan al tamaño de sus columnas */
.dxbl-grid {
    width: fit-content !important;
    max-width: 100%;
}

    .dxbl-grid .dxbl-grid-table {
        width: auto !important;
        table-layout: fixed !important;
    }

        /* Evita que las celdas se desborden */
        .dxbl-grid .dxbl-grid-table td,
        .dxbl-grid .dxbl-grid-table th {
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            text-align: center;
        }

    /* Oculta la celda vacía de relleno */
    .dxbl-grid .dxbl-grid-empty-cell {
        display: none !important;
    }

    /* O si prefieres ocultarla de otra manera */
    .dxbl-grid th:last-child:empty,
    .dxbl-grid td:last-child:empty {
        display: none !important;
    }

    /* Asegura que el grid no tenga espacio extra */
    .dxbl-grid .dxbl-grid-table {
        width: fit-content !important;
        table-layout: auto !important; /* Cambia de fixed a auto */
    }





.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1px;
    background-color: white;
    box-shadow: 0 0 1px rgba(0, 0, 0, 0.1);
}

.universo-container {
    border-radius: 6px;
    padding: 1px;
    margin: 1px 0;
}

.section-title {
    font-size: 12px;
    font-weight: bold;
    margin: 4px 0 8px 0;
    color: #333;
    text-align: center;
    text-transform: uppercase;
}

/* =================================== */
/* OPCIÓN 1: TABLAS CON BORDES GRUESOS */
/* =================================== */
.option1 {
    margin-bottom: 40px;
}

    .option1 .tables-row {
        display: flex;
        gap: 10px;
        align-items: flex-start;
    }

    .option1 .left-table, .option1 .right-table {
        flex: 1;
    }

    .option1 .table-title {
        font-size: 10px;
        font-weight: bold;
        margin-bottom: 4px;
        text-align: center;
        color: #333;
    }

    .option1 table {
        width: 100%;
        border-collapse: collapse;
        font-size: 9px;
        border: 2px solid #333;
    }

    .option1 th, .option1 td {
        border: 1px solid #333;
        padding: 3px 4px;
        text-align: center;
    }

    .option1 th {
        font-weight: bold;
        border-bottom: 2px solid #333;
    }

    .option1 .horas-section {
        margin-top: 8px;
        text-align: center;
    }

    .option1 .horas-table {
        width: 100%;
        border: 2px solid #333;
    }

/* =================================== */
/* OPCIÓN 2: TABLAS CON BORDES DOBLES */
/* =================================== */
.option2 {
    margin-bottom: 40px;
}

    .option2 .tables-row {
        display: flex;
        gap: 15px;
        align-items: flex-start;
    }

    .option2 .left-table, .option2 .right-table {
        flex: 1;
    }

    .option2 .table-title {
        font-size: 10px;
        font-weight: bold;
        margin-bottom: 4px;
        text-align: center;
        color: #333;
        border: 1px solid #666;
        padding: 2px;
    }

    .option2 table {
        width: 100%;
        border-collapse: collapse;
        font-size: 9px;
        border: 3px double #333;
    }

    .option2 th, .option2 td {
        border: 1px solid #666;
        padding: 3px 4px;
        text-align: center;
    }

    .option2 th {
        font-weight: bold;
        border-bottom: 2px solid #666;
    }

    .option2 .horas-section {
        margin-top: 8px;
        text-align: center;
    }

    .option2 .horas-table {
        width: 100%;
        border: 3px double #333;
    }

/* =================================== */
/* OPCIÓN 3: TABLAS CON BORDES FINOS */
/* =================================== */
.option3 {
    margin-bottom: 40px;
}

    .option3 .tables-row {
        display: flex;
        gap: 8px;
        align-items: flex-start;
    }

    .option3 .left-table, .option3 .right-table {
        flex: 1;
        border: 1px solid #333;
        padding: 4px;
    }

    .option3 .table-title {
        font-size: 10px;
        font-weight: bold;
        margin-bottom: 4px;
        text-align: center;
        color: #333;
        border-bottom: 1px solid #333;
        padding-bottom: 2px;
    }

    .option3 table {
        width: 100%;
        border-collapse: collapse;
        font-size: 9px;
    }

    .option3 th, .option3 td {
        border: 1px solid #999;
        padding: 2px 3px;
        text-align: center;
    }

    .option3 th {
        font-weight: bold;
        border-bottom: 2px solid #333;
    }

    .option3 .horas-section {
        margin-top: 8px;
        text-align: center;
        border: 1px solid #333;
        padding: 4px;
    }

    .option3 .horas-table {
        width: 100%;
    }

/* RESPONSIVE */
@@media (max-width: 768px) {
    .option1 .tables-row, .option2 .tables-row, .option3 .tables-row {
        flex-direction: column;
        gap: 8px;
    }

    .option1 table, .option2 table, .option3 table {
        font-size: 8px;
    }

    .option1 th, .option1 td,
    .option2 th, .option2 td,
    .option3 th, .option3 td {
        padding: 2px 3px;
    }
}

.option-separator {
    height: 2px;
    background-color: #333;
    margin: 30px 0;
}

.option-label {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
    text-align: center;
    border: 2px solid #333;
    padding: 5px;
}

/* Estilos para la sección de gráficos */
.grafico-section {
    display: inline-block;
    border: 1px solid #ccc;
    margin-bottom: 10px;
    margin-right: 10px;
    vertical-align: top;
    border-radius: 3px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.grafico-title {
    background-color: #f8f9fa;
    border-bottom: 1px solid #333;
    padding: 6px 12px;
    font-weight: bold;
    font-size: 11px;
    color: #333;
    text-align: center;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.grafico-buttons {
    display: flex;
    margin: 0;
    padding: 0;
}

    .grafico-buttons .btn-sm {
        border-radius: 0;
        border-right: 1px solid #ccc;
        flex: 1;
        border-top: none;
        border-bottom: none;
        border-left: none;
        margin: 0;
    }

        .grafico-buttons .btn-sm:last-child {
            border-right: none;
        }

/* Responsive para dispositivos móviles */
@@media (max-width: 768px) {
    .grafico-section {
        display: block;
        width: 100%;
        margin-right: 0;
        margin-bottom: 10px;
    }

    .grafico-buttons {
        flex-direction: column;
    }

        .grafico-buttons .btn-sm {
            border-right: none;
            border-bottom: 1px solid #333;
        }

            .grafico-buttons .btn-sm:last-child {
                border-bottom: none;
            }
}

.medioList {
    height: 500px;
}

.generoList {
    height: 500px;
}
