/* Ajustes de Tom Select para que combine con los campos del formulario (Tailwind) y el modo oscuro.
   Tom Select copia las clases del <select> al contenedor; el borde y el padding los pone .ts-control. */
.ts-wrapper.single {
  padding: 0 !important;
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
}

.ts-wrapper.single .ts-control {
  flex-wrap: nowrap;
}

.ts-wrapper.single .ts-control .item {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ts-wrapper .ts-control {
  min-height: 38px;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}

.ts-wrapper.focus .ts-control {
  border-color: #f9b513;
  box-shadow: 0 0 0 1px #f9b513;
}

.ts-dropdown {
  font-size: 0.875rem;
  border-radius: 0.375rem;
  z-index: 50;
}

.ts-dropdown .active {
  background-color: #fef3c7;
  color: #111827;
}

.dark .ts-wrapper .ts-control,
.dark .ts-wrapper .ts-control input,
.dark .ts-dropdown {
  background-color: #374151;
  border-color: #4b5563;
  color: #ffffff;
}

.dark .ts-dropdown .active {
  background-color: #4b5563;
  color: #ffffff;
}
