/* Estilos personalizados para Tom Select */

/* Asegurar que el campo de búsqueda sea visible y utilizable */
.ts-control > input {
  opacity: 1 !important;
  position: relative !important;
  visibility: visible !important;
  min-width: 100px !important;
  z-index: 2 !important;
}

/* Ajustes para el contenedor de Tom Select */
.tom-select-container {
  position: relative;
  z-index: 1;
  width: 100%;
}

/* Mejorar la altura y alineación del control */
.ts-control {
  min-height: 2.5rem !important;
  height: auto !important;
  padding: 0.375rem 0.75rem !important;
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
}

/* Estilos para opciones seleccionadas */
.ts-control .item {
  background-color: #E5EDFF !important;
  color: #3b82f6 !important;
  border-radius: 0.25rem !important;
  padding: 0.25rem 0.5rem !important;
  margin: 0.125rem !important;
}

/* Mejorar estilos del menú desplegable */
.ts-dropdown {
  border-radius: 0.375rem !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
  margin-top: 0.25rem !important;
  /* Asegurar que los dropdowns siempre estén por encima de otros elementos */
  z-index: 9999 !important;
  position: absolute !important;
}

/* Cuando el dropdown está adjunto al body (opción dropdownParent) */
body > .ts-dropdown {
  z-index: 9999 !important;
}

/* Asegurar que el contenido del dropdown esté por encima y sea visible */
.ts-dropdown-content {
  z-index: 9999 !important;
}

/* Estilos para opciones del menú */
.ts-dropdown .option {
  padding: 0.5rem 0.75rem !important;
}

.ts-dropdown .active {
  background-color: #E5EDFF !important;
  color: #3b82f6 !important;
}

/* Mejorar el enfoque del control */
.ts-control.focus {
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3) !important;
  border-color: #3b82f6 !important;
} 