/* Select2 styles compiled from Tailwind utility choices. */

.select2-container {
  position: relative;
  box-sizing: border-box;
  vertical-align: middle;
  display: inline-block;
  margin: 0 0 0.5rem 0;
}

.select2-container .select2-selection--single {
  padding: 0.625rem;
  height: auto !important;
  box-sizing: border-box;
  cursor: pointer;
  display: block;
  user-select: none;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
  border: 1px solid #d1d5db;
  border-radius: 0.25rem;
  background-color: #ffffff;
}

.dark .select2-container .select2-selection--single {
  background-color: #1f2937;
  border-color: #374151;
  color: #f3f4f6;
}

.select2-container .select2-selection--single .select2-selection__rendered {
  display: block;
  height: 1.5rem;
  padding-left: 0.25rem;
  padding-right: 1.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #374151;
}

.dark .select2-container .select2-selection--single .select2-selection__rendered {
  color: #e5e7eb;
}

.select2-container .select2-selection--single .select2-selection__clear {
  position: relative;
  margin: -0.25rem;
  cursor: pointer;
}

.select2-container .select2-selection--multiple {
  box-sizing: border-box;
  overflow: hidden;
  cursor: pointer;
  display: block;
  user-select: none;
  min-height: 2.5rem;
  border: 1px solid #d1d5db;
  border-radius: 0.25rem;
  background-color: #ffffff;
  padding: 0.5rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

.dark .select2-container .select2-selection--multiple {
  background-color: #1f2937;
  border-color: #374151;
  color: #f3f4f6;
}

.select2-container .select2-selection--multiple .select2-selection__rendered {
  box-sizing: border-box;
  list-style: none;
  margin: 0;
  padding: 0 0.25rem;
  min-width: 100%;
  white-space: nowrap;
}

.select2-container .select2-selection--multiple .select2-selection__rendered li {
  list-style: none;
}

.select2-container .select2-search--inline {
  float: left;
}

.select2-container .select2-search--inline .select2-search__field {
  box-sizing: border-box;
  border: 1px solid #d1d5db;
  padding-left: 0.25rem;
  margin: 0.25rem 0;
  width: 100%;
  font-size: 1rem;
  background-color: #ffffff;
}

.dark .select2-container .select2-search--inline .select2-search__field {
  border-color: #4b5563;
  background-color: #374151;
  color: #e5e7eb;
}

.select2-container .select2-search--inline .select2-search__field::-webkit-search-cancel-button,
.select2-search--dropdown .select2-search__field::-webkit-search-cancel-button {
  appearance: none;
}

.select2-dropdown {
  position: absolute;
  display: block;
  width: auto;
  box-sizing: border-box;
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  z-index: 50;
  float: left;
}

.dark .select2-dropdown {
  background-color: #1f2937;
  border-color: #374151;
  color: #e5e7eb;
}

.select2-results {
  display: block;
  color: #111827;
}

.dark .select2-results {
  color: #e5e7eb;
}

.select2-results__options {
  list-style: none;
  margin: 0;
  padding: 0;
}

.select2-results__option {
  padding: 0.25rem;
  user-select: none;
}

.select2-results__option[aria-selected] {
  cursor: pointer;
}

.select2-container--open .select2-dropdown {
  margin-top: 0.75rem;
  left: 0;
  border-radius: 0.25rem;
  border-color: #9ca3af;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

.dark .select2-container--open .select2-dropdown {
  border-color: #4b5563;
}

.select2-search--dropdown {
  display: block;
  padding: 0.5rem;
}

.select2-search--dropdown .select2-search__field {
  height: 2.5rem;
  padding: 0.25rem;
  box-sizing: border-box;
  border-radius: 0.25rem;
  border: 2px solid #93c5fd;
  outline: none;
  width: 100%;
  background-color: #ffffff;
  color: #111827;
}

.dark .select2-search--dropdown .select2-search__field {
  background-color: #374151;
  border-color: #4b5563;
  color: #e5e7eb;
}

.select2-search--dropdown.select2-search--hide {
  display: none;
}

.select2-close-mask {
  display: block;
  width: 12px;
  min-width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  position: fixed;
  left: 0;
  top: 0;
  min-height: 100%;
  height: auto;
  width: auto;
  opacity: 0;
  z-index: 99;
  background-color: #ffffff;
}

.select2-hidden-accessible {
  border: 0 !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  height: 1px !important;
  overflow: hidden !important;
  padding: 0 !important;
  position: absolute !important;
  width: 1px !important;
  white-space: nowrap !important;
}

.select2-container--default .select2-selection--single .select2-selection__placeholder {
  color: #4b5563;
}

.dark .select2-container--default .select2-selection--single .select2-selection__placeholder {
  color: #9ca3af;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
  position: absolute;
  right: 0;
  top: 0;
  height: 100% !important;
  width: 2rem;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
  position: absolute;
  border-style: solid;
  border-width: 4px 4px 0 4px;
  border-color: #000 transparent transparent transparent;
  height: 0;
  width: 0;
  left: 50%;
  top: 50%;
  margin-left: -4px;
  margin-top: -2px;
}

.select2-container--default[dir="rtl"] .select2-selection--single .select2-selection__arrow {
  left: 0;
  right: auto;
}

.select2-container--default[dir="rtl"] .select2-selection--single .select2-selection__clear {
  float: left;
  margin-left: 1rem;
}

.select2-container--default.select2-container--disabled .select2-selection--single {
  cursor: default;
  background-color: #d1d5db;
}

.select2-container--default.select2-container--disabled .select2-selection--single .select2-selection__clear {
  display: none;
}

.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
  border-color: transparent transparent #6b7280 transparent;
  border-width: 0 4px 5px 4px;
}

.select2-results__option--highlighted[aria-selected] {
  background-color: #1d4ed8 !important;
  color: #ffffff !important;
}

.dark .select2-results__option--highlighted[aria-selected] {
  background-color: #2563eb !important;
}
