/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

@import url("https://cdn.jsdelivr.net/npm/tom-select@2.3.1/dist/css/tom-select.default.min.css");

.ts-wrapper.single .ts-control {
  border-radius: 0.5rem;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--background));
  min-height: 42px;
  padding: 0.45rem 0.625rem;
  box-shadow: none;
}

.ts-wrapper.single.focus .ts-control {
  border-color: hsl(var(--ring));
  box-shadow: 0 0 0 2px hsl(var(--ring) / 0.35);
}

.ts-wrapper .ts-dropdown {
  border-radius: 0.5rem;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--background));
}

.ts-wrapper .ts-dropdown .option,
.ts-wrapper .ts-dropdown .active {
  font-size: 0.875rem;
}

/* Loaded after CDN tom-select.css — reinforce selected-row styling (theme vars from Tailwind :root) */
.ts-wrapper .ts-dropdown .option.active:not(.selected) {
  background-color: hsl(var(--muted));
  color: hsl(var(--foreground));
}

.ts-wrapper .ts-dropdown .option.selected {
  background-color: hsl(var(--primary) / 0.16);
  color: hsl(var(--foreground));
  font-weight: 600;
  box-shadow: inset 3px 0 0 hsl(var(--ring));
}

.ts-wrapper .ts-dropdown .option.selected.active {
  background-color: hsl(var(--primary) / 0.26);
}
