/* Fix para mostrar dropdowns de búsqueda sobre modales */

/* Select2 dropdown z-index fix */
.select2-container--open .select2-dropdown {
    z-index: 9999 !important;
}

.select2-container {
    z-index: 9998 !important;
}

/* Bootstrap select dropdown fix */
.bootstrap-select .dropdown-menu {
    z-index: 9999 !important;
}

/* Modal backdrop default z-index is 1040, modal is 1050 */
/* Asegurar que los dropdowns aparezcan sobre el modal */
.modal .select2-container--open .select2-dropdown,
.modal .bootstrap-select .dropdown-menu {
    z-index: 10000 !important;
}

/* Fix para datalist/autocomplete nativo */
input[list]::-webkit-calendar-picker-indicator {
    z-index: 10000 !important;
}

/* Fix general para cualquier dropdown dentro del modal */
.modal .dropdown-menu {
    z-index: 10000 !important;
}

/* Asegurar que el input de búsqueda sea clickeable */
.modal input[type="text"],
.modal input[type="search"] {
    position: relative;
    z-index: auto;
}