@import url('../../css/variables.css');
*{
    box-sizing: border-box;
}
.green{
    background-color: green;
    color: white
}
.red{
    background-color: red;
    color: white
}
.yellow{
    background-color: yellow;
    color: white
}

.resultado-final  > div{
    flex: 1;
}
.resultado-final h3{
    font-size: 32px;
}

h1{
    text-align: center;
    color: var(--secondary-color);
    font-size: 32px;
    font-weight: 800;
    letter-spacing: 0.5px;
}
.title{
    padding: 15px 0;
    position: relative;
}
.title-cont{
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-right: 120px; /* leave room for the CTA without shifting the title */
}
.add{
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    height: 40px;
    border: none;
    padding: 5px;
    font-size: 18px;

}
/* keep headings centered even with absolute CTA */
.title-cont h1{
    margin: 0;
    width: 100%;
}
.cheques-add{
    display: flex;
    gap: 8px;
    flex-wrap: wrap;    
}
.cheque{
    width: calc(33% - 8px);
}
.subtotal, .total{
    padding-top: 5px;
}
.eliminar-cheque{
    margin-top: 5px;
    font-size: 12px;
    padding: 7.5px;
    border: none;
}
.resultado-final h3{
    font-size: 18px;
    color: var(--secondary-color);
}
.importe-cheque{
    font-size: 22px;
    font-weight: 1000;
}
h2{
    color: var(--secondary-color);
    text-align: center;
    margin: 0;
}
.container-d{
    padding: 25px;
}
.container-input{
    display: flex;
    padding: 13px 0;
    gap: 8px;
    flex: 1;
    justify-content: center;
}


.cheques-cont label{
    font-weight: 700;
    color: var(--secondary-color);
    letter-spacing: 0.5px;
}
.cheques-cont{
    box-sizing: border-box;
    display: flex;
    gap: 5px;
}

.cheques-cont {
    box-sizing: border-box;
    display: flex;
    flex-wrap: wrap; /* Permite que los elementos se ajusten automáticamente */
    gap: 10px; /* Espaciado entre elementos */
    justify-content: space-between; /* Distribuye los elementos equitativamente */
    max-width: 100%; /* Evita que se salga del contenedor */
}

.inp {
    flex: 1 1 calc(15% - 10px); /* Ocupa un tercio del ancho del contenedor */
    min-width: 150px; /* Asegura que no se hagan demasiado pequeños */
}

main .input-d {
    width: 100%; /* Hace que los inputs ocupen todo el ancho del contenedor */
    padding: 5px;
    box-sizing: border-box;
    padding: 10px 10px;
    color: gray;
}
.cheques-container{
    display: flex;
    width: 100%;
    justify-content: space-around;
    gap: 8px;
}

.container-d{
    margin-top: 10px;
    padding: 25px;
}
.total-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.credito{
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 5px;
}

@media (max-width: 768px) {
    .cheques-container{
        display: flex;
        flex-direction: column;
        width: 100%;
        justify-content: space-around;
        gap: 8px;
    }

}
@media (min-width: 769px) {

}
