/* Estilo general de contenedores */
.atmprod-table-container {
    width: 95%;
    margin: auto;
    overflow-x: auto;
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    background-color: #ffffff;
    padding: 25px;
    margin-bottom: 20px;
}

/* Tabla */
.atmprod-table {
    width: 100%;
    border-collapse: collapse;
}

/* Cabecera de la tabla */
.atmprod-table thead th {
    background-color: #1a8cff;
    color: #ffffff;
    text-transform: uppercase;
    font-weight: bold;
    text-align: center;
    padding: 10px;
    border: 1px solid #e0e0e0;
}

/* Celdas del cuerpo */
.atmprod-table tbody td {
    padding: 12px;
    text-align: right;
    border: 1px solid #e0e0e0;
    position: relative;
}

/* Excluir primera columna (meses) del signo $ */
.atmprod-table tbody td:not(:first-child)::before {
    content: "$ ";
    color: #1a8cff;
    font-weight: bold;
    position: absolute;
    left: 5px;
    top: 50%;
    transform: translateY(-50%);
}

/* Ajustar márgenes para números grandes */
.atmprod-table tbody td:not(:first-child) {
    padding-left: 25px; /* Dejar espacio suficiente para el signo $ */
}

/* Primera columna (meses) */
.atmprod-table td:first-child,
.atmprod-table th:first-child {
    text-align: left;
    padding-left: 20px;
    position: relative;
}

/* Filas pares */
.atmprod-table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* Efecto hover */
.atmprod-table tbody tr:hover {
    background-color: #e8f4ff;
    transition: background-color 0.3s ease;
}

/* Filas destacadas */
.atmprod-highlight-row {
    background-color: #fff6f6;
    font-weight: bold;
    color: #333;
}

.atmprod-percentage-row {
    background-color: #f4f9ff;
    font-weight: bold;
    color: #333;
}

/* Título de la tabla */
.atmprod-header {
    text-align: center;
    color: #1a8cff;
    margin-top: 40px;
    font-size: 2rem;
    font-weight: bold;
}

/* Contenedor del selector */
.atmprod-select-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

/* Etiqueta del selector */
.atmprod-select-label {
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

/* Selector */
.atmprod-select {
    width: 50%;
    max-width: 400px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    color: #333;
    background-color: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

/* Enfoque del selector */
.atmprod-select:focus {
    outline: none;
    border-color: #1a8cff;
    box-shadow: 0 0 8px rgba(26, 140, 255, 0.6);
}

/* Título dinámico */
.atmprod-dynamic-title {
    text-align: center;
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

/* Imagen */
.atmprod-image {
    display: block;
    margin: 20px auto;
    max-width: 100%;
    height: auto;
}

/* Estilo para la fila "Acumulado" */
.atmprod-acumulado-row {
    background-color: #e8f4ff; /* Color de fondo suave */
    font-weight: bold;
    color: #333;
}

/* Estilo para la fila "% Porcentaje" */
.atmprod-porcentaje-row {
    background-color: #ffebd2 !important; /* Color de fondo suave */
    font-weight: bold;
    color: #333;
}

/* Ajustar tamaño de las celdas para evitar saltos */
.atmprod-table td,
.atmprod-table th {
    white-space: nowrap; /* Evitar saltos de línea */
    text-align: center;
}

/* Exclusión del signo $ para celdas de porcentaje */
.atmprod-porcentaje-row td::before {
    content: ""; /* Elimina el signo $ */
}

/* Título de las filas específicas */
.atmprod-acumulado-row td:first-child,
.atmprod-porcentaje-row td:first-child {
    background-color: #ffebd2 !important; /* Color de fondo suave */
    text-align: left;
    padding-left: 20px;
    font-weight: bold;
    color: #1a8cff;
}

/* Nueva Sección Fondo Energético */
.atmprod-fondo-energetico-section {
    margin-top: 40px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.atmprod-fondo-energetico-section .atmprod-section-title {
    text-align: center;
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 10px;
    font-weight: bold;
}

.atmprod-fondo-energetico-section .atmprod-section-subtitle {
    text-align: center;
    font-size: 1.4rem;
    color: #1a8cff;
    margin-bottom: 20px;
    font-weight: bold;
}

.atmprod-fondo-energetico-table th {
    background-color: #1a8cff;
    color: #fff;
    text-align: center;
}

.atmprod-fondo-energetico-table td {
    text-align: center;
    white-space: nowrap;
}

.atmprod-fondo-energetico-table tbody tr:hover {
    background-color: #e6f7ff;
}



/* Ocultar todas las tablas por defecto */
.atmprod-table-wrapper {
    display: none;
}

/* Mostrar solo la tabla inicial */
#table-2024 {
    display: block;
}


.export-button-container-global {
    text-align: center;
    margin: 20px 0;
}

.export-button {
    background-color: #1a8cff;
    color: #fff;
    border: none;
    padding: 10px 20px;
    font-size: 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.export-button:hover {
    background-color: #0056b3;
}
