div.dataTables_processing{
    position: absolute;
    top: 87%;
    left: 50%;
    height: auto;
    width: 100%;
    padding: 2px;
}

.preloader {
    width: 100%;
    height: 100%;
    left: 0;
    top: 13%;
    position: fixed;
    z-index: 99999;
    background: rgba(255, 255, 255, 0.8);
}

.error-box{
    position: fixed;
    background: url(/public/assets/images/background/error-carga.jpg) no-repeat bottom 100px  center #fff;
}

.card{
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2), 0 6px 10px rgba(0, 0, 0, 0.15);
}

#change_language {
    position: absolute;
    top: 5%;
    right:5%;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: url(/public/dist/css/icons/flag-icon-css/flags/us.svg) no-repeat center center;
    background-size: cover;
    cursor: pointer;
}


.header-actions{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1% 2% 0 1.25%;
}

/*Search bar*/
.search-wrapper{
    width: 100%;
    max-width: 400px;
    display: flex;
    justify-content: end; 
    gap: 2%;   
}

.search-form{
    display: flex;
    align-items: center;
    height: 40px;
    width: 70px;
    background-color: #f4f4f4;
    border: 1px solid #ccc;
    border-radius: 6px;
    transition: width 0.4s ease, box-shadow 0.3s ease;
    overflow: hidden;
    padding: 0;
}

.search-form:focus-within,
.search-form:has(input:valid){
    width: 100%;
    box-shadow: 0 0 0 3px #0069d930;
}

.search-form:focus-within input[type="search"],
.search-form:has(input:valid) input[type="search"]{
    opacity: 1;
    pointer-events: auto;
}

.search-form input[type="search"]{
    flex: 1;
    padding: 0 12px;
    height: 100%;
    border: none;
    background: transparent;
    font-size: 14px;
    outline:none;
    min-width: 0;
    transition: opacity 0.2s ease;
}

.search-form button{
    background: none;
    border:none;
    cursor:pointer;
    padding: 0 12px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    transition: background 0.2s;
}

.search-form button:hover{
    background-color: #e0e0e0;
}

.search-form button i{
    font-size: 16px;
} 

/*Filters*/
.filter-btn{
    display: flex;
    align-items: center;
    background-color: #f4f4f4;
    border: 1px solid #ccc;
    border-radius: 6px;
}

.filter-btn:hover{
    background-color: #e0e0e0;
}




/* --- INPUTS, SELECTS, TEXTAREAS --- */
.is-invalid {
  border-color: #dc3545 !important;
  padding-right: calc(1.5em + .75rem) !important;
  background-repeat: no-repeat;
  background-position: right calc(.375em + .1875rem) center;
  background-size: calc(.75em + .375rem) calc(.75em + .375rem);
  box-shadow: 0 0 0 0.2rem rgba(220,53,69,.25);
}

/* Ícono de error (el círculo rojo típico) para campos de texto, selects y textareas */
.is-invalid:not([multiple]):not([size]) {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23dc3545' viewBox='0 0 24 24'%3e%3ccircle cx='12' cy='12' r='10'/%3e%3cpath d='M8 8l8 8M16 8l-8 8'/%3e%3c/svg%3e");
}

/* --- MENSAJE DE ERROR --- */
.invalid-feedback {
  display: none;
  width: 100%;
  margin-top: 0.25rem;
  font-size: 80%;
  color: #dc3545;
  font-weight: 500;
}

.is-invalid ~ .invalid-feedback,
.is-invalid + .invalid-feedback,
.select2-selection.is-invalid ~ .invalid-feedback {
  display: block;
}

/* --- SELECT2 PERSONALIZADO --- */
/* Borde rojo en select2 */
.select2-container--default .select2-selection.is-invalid {
  border-color: #dc3545 !important;
  box-shadow: 0 0 0 0.2rem rgba(220,53,69,.25);
}

/* Icono error en select2 (igual a Bootstrap4) */
.select2-container--default .select2-selection.is-invalid {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23dc3545' viewBox='0 0 24 24'%3e%3ccircle cx='12' cy='12' r='10'/%3e%3cpath d='M8 8l8 8M16 8l-8 8'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1.25em 1.25em;
}

/* Para que el mensaje de error no se solape */
.select2-container--default .select2-selection.is-invalid {
  margin-bottom: 0.25rem;
}

/* Añade borde rojo y sombra como Bootstrap4 */
.select2-container--default .select2-selection.is-invalid {
  border-color: #dc3545 !important;
  box-shadow: 0 0 0 0.2rem rgba(220,53,69,.25) !important;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23dc3545' viewBox='0 0 24 24'%3e%3ccircle cx='12' cy='12' r='10'/%3e%3cpath d='M8 8l8 8M16 8l-8 8'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1.25em 1.25em;
}

/* Checkbox: solo colorea la etiqueta si el input tiene .is-invalid */
input[type="checkbox"].is-invalid ~ label,
input[type="radio"].is-invalid ~ label {
  color: #dc3545;
}

/* Para checkboxes/radios tipo custom (usando Bootstrap custom-controls) */
.custom-control-input.is-invalid ~ .custom-control-label {
  color: #dc3545;
}

/* Mensaje debajo del checkbox */
input[type="checkbox"].is-invalid ~ .invalid-feedback,
input[type="radio"].is-invalid ~ .invalid-feedback {
  display: block;
  margin-left: 1.2em; /* desplaza el mensaje respecto al checkbox */
}

/* .select2-container--default .select2-selection--multiple {
  min-height: 38px;
  max-height: 38px;
  overflow-y: auto;
  overflow-x: hidden;
  border: 1px solid #ced4da;
  box-sizing: border-box;
} */