/* Tom Select — alinhado ao design system */

.ts-wrapper.single .ts-control,
.ts-wrapper.multi .ts-control {
  border: 1px solid #cbd5e1;
  border-radius: 0.5rem;
  padding: 0.375rem 0.5rem;
  font-size: 0.875rem;
  color: #0f172a;
  background-color: #fff;
  box-shadow: none;
  min-height: 2.5rem;
  cursor: text;
  font-family: inherit;
  line-height: 1.5;
  gap: 0.25rem;
}

.ts-control > * { vertical-align: middle; }

.ts-wrapper.multi .ts-control > input,
.ts-control > input {
  font-size: 0.875rem;
  color: #0f172a;
  font-family: inherit;
}

.ts-wrapper.multi .ts-control > input::placeholder {
  color: #94a3b8;
}

.ts-wrapper.focus .ts-control {
  border-color: var(--color-primary-500, #6366f1);
  outline: none;
  box-shadow: 0 0 0 1px var(--color-primary-500, #6366f1);
}

.ts-wrapper.multi .ts-control > .item {
  background: #fff;
  color: #334155;
  border: 1px solid #cbd5e1;
  border-radius: 0.375rem;
  padding: 0.125rem 0.375rem;
  font-size: 0.8125rem;
  font-weight: 400;
  margin: 2px;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.ts-wrapper.plugin-remove_button:not(.rtl) .item { padding-right: 0 !important; }

.ts-wrapper.plugin-remove_button .item .remove {
  color: #64748b;
  border-left: none;
  padding: 0 4px 0 2px;
  margin-left: 2px;
  font-size: 1rem;
  line-height: 1;
}

.ts-wrapper.plugin-remove_button .item .remove:hover {
  color: #0f172a;
  background: transparent;
}

.ts-dropdown {
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  font-size: 0.875rem;
  color: #0f172a;
  font-family: inherit;
  margin-top: 0.25rem;
}

.ts-dropdown .option { padding: 0.5rem 0.75rem; }

.ts-dropdown .option.active {
  background-color: var(--color-primary-50, #eef2ff);
  color: var(--color-primary-700, #4338ca);
}

.ts-dropdown .create {
  color: var(--color-primary-600, #4f46e5);
  font-weight: 500;
  padding: 0.5rem 0.75rem;
}
