.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;
}

/* 🔥 Reducir tamaño general de inputs */
input,
select,
textarea {
    font-size: 13px !important;
}

/* 🔥 Quitar flechas en Chrome, Edge, Safari */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* 🔥 Quitar flechas en Firefox */
input[type=number] {
    -moz-appearance: textfield;
}

/* 🔥 Reducir texto bootstrap-select */
.bootstrap-select .dropdown-toggle {
    font-size: 13px !important;
}

/* 🔥 Reducir texto opciones */
.bootstrap-select .dropdown-menu li a {
    font-size: 13px !important;
}

/* 🔥 Mostrar texto completo seleccionado */
.bootstrap-select .dropdown-toggle .filter-option {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: unset !important;
}

/* 🔥 Mostrar texto completo en opciones */
.bootstrap-select .dropdown-menu li a span.text {
    white-space: normal !important;
}

.bootstrap-select .dropdown-toggle {
    height: auto !important;
    min-height: 32px;
}

/* 🔥 Tablas normales */
table {
    font-size: 12px !important;
}

table th {
    font-size: 12px !important;
    padding: 6px 8px !important;
}

table td {
    font-size: 12px !important;
    padding: 5px 8px !important;
}

/* 🔥 Reducir tamaño general DataTables */
table.dataTable {
    font-size: 14px !important;
}

/* 🔥 Encabezados */
table.dataTable thead th {
    font-size: 13px !important;
    padding: 8px !important;
}

/* 🔥 Celdas */
table.dataTable tbody td {
    font-size: 13px !important;
    padding: 6px 8px !important;
}

/* 🔥 Buscador y select */
.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
    font-size: 13px !important;
    padding: 3px 6px !important;
}

/* 🔥 Texto de paginación e info */
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate,
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter {
    font-size: 13px !important;
}

.modal-dialog {
    max-width: 70% !important;
}

table.dataTable {
    width: 100% !important;
}

.dataTables_wrapper {
    width: 100% !important;
}

.card-body {
    width: 100%;
    overflow: hidden;
}

.modal-small {
    max-width: 30% !important;
}