/**
 * ===================================================
 * © 2025 YUYAY Ltda. - yuyay.fin.ec
 * Sistema: Pagína Web
 * Versión: 2.5
 * Desarrollador: [Leonardo Verdugo Crespo - Sistemas]
 * Última modificación: 24/06/2024
 * ===================================================
 */
/* CONTENEDOR GENERAL (AMORTIZACIÓN Y DETALLE ADICIONAL) */
.contenedor-amortizacion {
    display: flex;
    flex-wrap: wrap; /* Para que sea responsive */
    gap: 20px;
    margin-top: 20px;
}

/* CUADROS PRINCIPALES */
.amortizacion-container {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    border: 1px solid #e0e0e0;
    flex: 1;
    min-width: 300px; /* Evita que colapsen en pantallas pequeñas */
}


/* TITULOS */
.amortizacion-container h3 {
    background-color: #0066cc; /* Azul corporativo */
    color: white;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    font-weight: bold;
    margin-bottom: 20px;
}

/* TABLAS UNIFICADAS */
.tabla-amortizacion {
    width: 100%;
    border-collapse: collapse;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.tabla-amortizacion th {
    background-color: #0066cc;
    color: white;
    padding: 8px 3px;
    border: 1px solid #ddd;
    text-align: center;
    font-size: 14px;
}

.tabla-amortizacion td {
    border: 1px solid #ddd;
    padding: 8px 3px;
    text-align: center;
    font-size: 14px;
 
}

/*TABLA DETALLE*/
.detalle-adicional{
    background-color: #ffffff;
    padding: 10px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    border: 1px solid #e0e0e0;   

}


.detalle-adicional h4{
    background-color: #0066cc; /* Azul corporativo */
    color: white;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    font-weight: bold;
    margin-bottom: 20px;
    margin-top: 87px;


}
.tabla-detalle{
    width: 100%;
    border-collapse: collapse;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); 
 
}
.tabla-detalle th{
    background-color: #0066cc;
    color: white;
    padding: 8px 3px;
    border: 1px solid #ddd;
    text-align: center;
    font-size: 14px;


} 
.tabla-detalle td {
    border: 1px solid #ddd;
    padding: 8px 3px;
    text-align: center;
    font-size: 14px;  
  
}

.boton-descarga {
    background-color: #16a085;
    color: white;
    border: none;
    padding: 10px 15px;
    margin: 10px 5px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.boton-descarga:hover {
    background-color: #1abc9c;
}

/* Para el contenedor de botones */
.botones-descarga {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    gap: 15px;
}




/* 
.boton-descarga {
    padding: 0.7rem 1.5rem;
    margin: 0.5rem;
    border: none;
    background-color: #007BFF;
    color: white;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.boton-descarga:hover {
    background-color: #0056b3;
}

/* RESPONSIVE para pantallas pequeñas 
@media screen and (max-width: 768px) {
    .contenedor-amortizacion {
        flex-direction: column;
    }
}

/* NUEVO: contenedor para evitar desbordamiento de la tabla */
.tabla-wrapper {
    overflow-x: auto;
    max-width: 100%;
}

/* Opcionalmente puedes limitar el ancho total de la tabla */
.tabla-amortizacion {
    min-width: 1400px; /* Ajustable según la cantidad de columnas */
}
.tabla-detalle{
    max-width: 500px;
}
.total-row {
  background-color: #f5f5f5;
  font-weight: bold;
}
