.fondo-login {
    background-color: #fafafa;
}

.error-message {
    color: red;
    font-size: 0.9rem;
    margin-top: 4px;
}
.is-invalid {
    border-color: red !important;
}

a.small {
    text-decoration: none;
    font-weight: bold;
    color: #0d47a1; /* azul oscuro */
    font-size: 102%;
}

a.small:hover {
    color: #08306b; /* un azul más fuerte al pasar el mouse */
}

/********* LOADER *********/
#loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white; /* Fondo sólido */
    display: none; /* 🔹 Oculto por defecto */
    justify-content: center;
    align-items: center;
    z-index: 9999; /* Siempre encima */
}

.spinner {
    width: 50px;
    height: 50px;
    border: 6px solid #ccc;
    border-top: 6px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


.color_menu {
    background-color: #00348a !important;
    color: #FFFFFF !important;
}

/********* FIN LOADER *********/

.modal-xl-custom {
    max-width: 50% !important; /* ocupa el 90% del ancho */
}

.is-invalid + label {
    color: #dc3545;
}

/* Distribución en porcentajes (total = 100%) */
.col-producto { width: 22%; }
.col-unidad { width: 10%; }
.col-numero { width: 6%; text-align: center; }
.col-descripcion { width: 24%; }
.col-valor-unit { width: 12%; }
.col-iva { width: 6%; }
.col-valor-iva { width: 10%; }
.col-total { width: 10%; }

/* Asegurar que no rompa el layout */
#productosSolicitud {
    table-layout: fixed; /* Para que respete los porcentajes */
}

#productosSolicitud th,
#productosSolicitud td {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Para que el menú salga por encima de la tabla */
.bootstrap-select {
    width: 100% !important;
    position: relative;
}

.bootstrap-select .dropdown-menu {
    max-width: 100% !important;
    z-index: 99999 !important;
}

/* Evita que la celda recorte el dropdown */
#productosSolicitud td {
    overflow: visible !important;
}