select#taxon-select,
select#realm-select {
  display: none;
}

.ts-wrapper {
  width: 100%;
}

.ts-wrapper.single .ts-control {
  width: 100%;
  padding: 0.75rem 0.75rem;
  display: flex;
  align-items: center;
  min-height: auto;
  box-shadow: none;
  border: 1px solid #B8E2B8;
  border-radius: 0.5rem;
  background-color: white;
  color: #2C3E50;
}

.ts-wrapper.single .ts-control:focus-within {
  border-color: #2D5A27;
  outline: none;
  box-shadow: 0 0 0 1px #2D5A27;
}

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

.ts-wrapper.single .ts-control .items {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
}

.ts-wrapper.single .ts-control .item {
  display: inline-block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-shrink: 0;
}

.ts-wrapper.single .ts-control input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0;
  margin: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  color: #2C3E50;
}

.ts-wrapper.single .ts-control input::placeholder {
  color: #9CAF88;
}

.ts-wrapper.single.has-items .ts-control input {
  position: absolute;
  width: 0;
  opacity: 0;
  pointer-events: none;
}

.ts-wrapper.single.has-items.focus .ts-control input,
.ts-wrapper.single.has-items.input-active .ts-control input {
  position: static;
  width: auto;
  opacity: 1;
  pointer-events: auto;
}
.ts-dropdown {
  border: 1px solid #B8E2B8;
  border-radius: 0.5rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  background-color: white;
  margin-top: 0.25rem;
  overflow: hidden;
  max-height: 15rem;
}

.ts-dropdown-content {
  max-height: 15rem;
  overflow-y: auto;
}

.ts-dropdown .option {
  padding: 0.75rem 1rem;
  color: #2C3E50;
  cursor: pointer;
  border-bottom: 1px solid #f3f4f6;
  transition: background-color 0.15s ease;
}

.ts-dropdown .option:last-child {
  border-bottom: none;
}

.ts-dropdown .option:hover,
.ts-dropdown .option.active {
  background-color: #E8F3E8;
  color: #2D5A27;
}

.ts-dropdown .option[data-selectable].selected {
  background-color: #B8E2B8;
  color: #2D5A27;
  font-weight: 500;
}

.ts-dropdown .option[data-disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

.ts-dropdown .option-create {
  border-top: 1px solid #e5e7eb;
  padding: 0.75rem 1rem;
  color: #6b7280;
}

.ts-dropdown .option-loading,
.ts-dropdown .option-loading-results {
  padding: 0.75rem 1rem;
  color: #6b7280;
  text-align: center;
}

.ts-dropdown .no-results {
  padding: 0.75rem 1rem;
  color: #6b7280;
  text-align: center;
}

.ts-wrapper.single .ts-control::after {
  border-color: #2D5A27 transparent transparent;
}

.ts-wrapper.single.focus .ts-control::after {
  border-color: transparent transparent #2D5A27;
}
