/*
 * 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.
 */

/* TomSelect styling to match transfer dropdown */
.ts-wrapper {
  border: none !important;
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
  margin-top: 0 !important;
  width: auto !important;
  min-width: 0 !important;
  min-height: unset !important;
  height: auto !important;
  font-size: inherit !important;
  font-weight: inherit !important;
  color: inherit !important;
}

.ts-control {
  border: none !important;
  background: transparent !important;
  padding: 0 !important;
  box-shadow: none !important;
  min-height: auto !important;
  height: auto !important;
  margin-top: 0.125rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  cursor: pointer !important;
}

.ts-control .item {
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  background: transparent !important;
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  line-height: 1.25 !important;
  color: inherit !important;
}

@media (min-width: 768px) {
  .ts-control .item {
    font-size: 0.875rem !important;
  }
}

.ts-control .item span {
  display: block;
}

.ts-control .caret {
  display: none !important;
}

.ts-control input {
  display: none !important;
}

.ts-control::after {
  content: '';
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  margin-left: 0.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='currentColor'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: 0.5;
}

.ts-dropdown {
  width: 100% !important;
  background: white !important;
  border-radius: 0.5rem !important;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05) !important;
  border: 1px solid hsl(var(--bc) / 0.2) !important;
  margin-top: 0.25rem !important;
  padding: 0.75rem !important;
  z-index: 1000 !important;
}

@media (min-width: 768px) {
  .ts-dropdown {
    width: 20rem !important;
  }
}

.ts-dropdown-content {
  padding: 0 !important;
  margin: 0 !important;
  background: white !important;
}

.ts-dropdown .option {
  padding: 0.5rem 1rem !important;
  margin: 0 !important;
  border: none !important;
  background: white !important;
  cursor: pointer !important;
  font-size: 0.75rem !important;
  color: hsl(var(--bc)) !important;
  border-radius: 0.25rem !important;
  width: 100% !important;
  text-align: left !important;
  transition: background-color 0.15s ease !important;
}

.ts-dropdown .option:hover,
.ts-dropdown .option.active {
  background: #f3f4f6 !important;
}

.ts-dropdown .option.active {
  background: #f3f4f6 !important;
}

.ts-dropdown .option[data-selected] {
  background: #e5e7eb !important;
}

.ts-dropdown .create {
  padding: 0.5rem 1rem !important;
  font-size: 0.75rem !important;
}

.ts-dropdown .no-results,
.ts-dropdown .no-results:hover {
  padding: 0.5rem 1rem !important;
  font-size: 0.75rem !important;
  color: hsl(var(--bc) / 0.7) !important;
  background: transparent !important;
}

.ts-dropdown input {
  padding: 0.5rem 1rem !important;
  margin-bottom: 0.5rem !important;
  font-size: 0.75rem !important;
  border: 1px solid hsl(var(--bc) / 0.2) !important;
  border-radius: 0.25rem !important;
  background: hsl(var(--b1)) !important;
  color: hsl(var(--bc)) !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

