/*!
 * Select2-to-Tree CSS 1.1.1
 * https://github.com/clivezhg/select2-to-tree
 */
.select2-container * {
  box-sizing: border-box;
}

.select2-results__option.select2-results__message {
  font-size: 12px;
}

.dark .select2-dropdown {
    background-color: #1e293b;
    border: 1px solid #364153;
}

.select2-container--default
  .select2-selection--single
  .select2-selection__rendered,
.select2-container--default
  .select2-selection--single
  .select2-selection__placeholder {
  color: #666;
  font-weight: 700;
}
.dark .select2-container--default .select2-selection--single .select2-selection__rendered,
.dark .select2-container--default .select2-selection--single .select2-selection__placeholder {
  color: #e2e8f0;
}

.select2-results__options::-webkit-scrollbar {
  width: 0.25rem;
}

.select2-results__options::-webkit-scrollbar-track {
  background-color: #f3f4f6;
}

.select2-results__options::-webkit-scrollbar-thumb {
  background-color: #247cec;
  border-radius: 9999px;
}

.select2-container .select2-results > .select2-results__options {
  max-height: 17rem;
}

.select2-container .select2-results__option.l3 {
  margin-left: 2.2em;
  font-size: 0.9rem;
}

.select2-container .select2-results__option.l4 {
  margin-left: 3em;
  font-size: 0.9rem;
}

.select2-container .select2-results__option.l5 {
  margin-left: 3.8em;
  font-size: 0.9rem;
}

.select2-container .select2-results__option.l6 {
  margin-left: 4.5em;
  font-size: 0.9rem;
}

.select2-container .select2-results__option.l7 {
  margin-left: 5.3em;
  font-size: 0.9rem;
}

.select2-container .select2-results__option.l8 {
  margin-left: 6em;
  font-size: 0.9rem;
}

.select2-container .select2-dropdown[dir*="rtl"] .select2-results__option.l1 {
  margin-left: 0;
  margin-right: 0em;
}

.select2-results__option.select2-results__option--selectable.l2 {
  margin-left: 1.4em !important;
  font-size: 0.9rem !important;
}

.select2-container
  .select2-dropdown[dir*="rtl"]
  .select2-results__option.select2-results__option--selectable.l2 {
  margin-left: 0;
  margin-right: 1.4em;
}

.select2-container .select2-dropdown[dir*="rtl"] .select2-results__option.l3 {
  margin-left: 0;
  margin-right: 2.2em;
}

.select2-container .select2-dropdown[dir*="rtl"] .select2-results__option.l4 {
  margin-left: 0;
  margin-right: 3em;
}

.select2-container .select2-dropdown[dir*="rtl"] .select2-results__option.l5 {
  margin-left: 0;
  margin-right: 3.8em;
}

.select2-container .select2-dropdown[dir*="rtl"] .select2-results__option.l6 {
  margin-left: 0;
  margin-right: 4.5em;
}

.select2-container .select2-dropdown[dir*="rtl"] .select2-results__option.l7 {
  margin-left: 0;
  margin-right: 5.3em;
}

.select2-container .select2-dropdown[dir*="rtl"] .select2-results__option.l8 {
  margin-left: 0;
  margin-right: 6em;
}

.select2-container li.select2-results__option.non-leaf .expand-collapse:hover {
  color: #5897fb;
  cursor: pointer;
}

.select2-container li.select2-results__option.non-leaf .expand-collapse:before {
  content: "";
  position: absolute;
  right: 12px;
  top: 9px;
  display: inline-block;
  width: 20px;
  height: 20px;
  --svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath fill='%23000' d='M11.116 26.634a1.25 1.25 0 0 1 0-1.768L19.982 16l-8.866-8.866a1.25 1.25 0 0 1 1.768-1.768l9.75 9.75a1.25 1.25 0 0 1 0 1.768l-9.75 9.75a1.25 1.25 0 0 1-1.768 0'/%3E%3C/svg%3E");
  background-color: #1e293b;
  -webkit-mask-image: var(--svg);
  mask-image: var(--svg);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  transition: 0.1s;
  z-index: 1;
}

.select2-container
  li.select2-results__option.non-leaf
  .expand-collapse:hover::before {
  background-color: #fff;
}

.select2-container
  li.select2-results__option.non-leaf.opened
  .expand-collapse:before {
  transform: rotate(90deg);
}

.select2-container
  .select2-dropdown[dir*="rtl"]
  li.select2-results__option.non-leaf
  .expand-collapse:before {
  transform: rotate(-180deg);
  right: auto;
  left: 12px;
}

.select2-container
  .select2-dropdown[dir*="rtl"]
  li.select2-results__option.non-leaf.opened
  .expand-collapse:before {
  transform: rotate(-270deg);
}

.select2-container li.select2-results__option.non-leaf .expand-collapse::after {
  content: "";
  position: absolute;
  right: 11px;
  top: 8px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
}

.select2-container
  .select2-dropdown[dir*="rtl"]
  li.select2-results__option.non-leaf
  .expand-collapse::after {
  right: auto;
  left: 11px;
}

.select2-container
  li.select2-results__option.non-leaf
  .expand-collapse:hover::after {
  background-color: #1e293b;
  color: #fff;
}

.select2-container
  .select2-results__option[aria-disabled="true"]
  .expand-collapse {
  color: black;
}

.select2-container li.select2-results__option {
  position: relative;
  padding: 3px 5px;
  height: auto;
  overflow-y: hidden;
  font-weight: 500;
  transition: all 0.2s ease-in-out;
  font-size: 15px;
}
.dark .select2-container li.select2-results__option {
  color: #fff;
}
.select2-container li.select2-results__option:hover,
.select2-container
  li.select2-results__option.select2-results__option--selectable.select2-results__option--selected.select2-results__option--highlighted {
  background-color: #1574b3;
  color: #fff;
}

.select2-container li.select2-results__option[data-pup] {
  display: none;
}

.select2-container li.select2-results__option[data-pup].showme {
  display: block;
  overflow-y: visible;
}

.select2-container li.select2-results__option.l1 {
  display: block;
  overflow-y: visible;
}

.select2-container.searching-result li.select2-results__option {
  height: auto;
  display: block;
}

/* ********************************************************************************************* */
.select2-container {
  width: 100% !important;
}

.select2-container .select2-selection {
  display: block;
  font-size: 0.875rem;
  line-height: 1.25rem;
  width: 100%;
  height: auto;
  border-radius: 0.375rem;
  --tw-border-opacity: 1;
  border-color: #e5e7eb;
  --tw-bg-opacity: 1;
  background-color: #ffffff;
  /* padding: 0.5rem; */
  padding-top: 0.625rem;
  padding-bottom: 0.625rem;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}
.dark .select2-container .select2-selection {
  background-color: #1e293b;
  border-color: #364153;
  color: #fff;
}

.select2-container .select2-selection--single .select2-selection__rendered {
  line-height: inherit;
}

.select2-container .select2-selection .select2-selection__arrow {
  height: 100%;
  width: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.select2-container .select2-selection .select2-selection__arrow b {
  border: 0;
  height: 24px;
  width: 24px;
  margin: 0;
  position: static;
  display: inline-block;
  --svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m17 10l-5 5l-5-5'/%3E%3C/svg%3E");
  background-color: #6b7280;
  -webkit-mask-image: var(--svg);
  mask-image: var(--svg);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  transition: 0.3s;
}

.select2-container .select2-search--dropdown .select2-search__field {
  font-family: inherit;
  font-feature-settings: inherit;
  appearance: none;
  outline-color: transparent;
  box-shadow: 0 0 #0000, 0 0 #0000, 0 1px 2px 0 rgba(18, 18, 23, 0.05);
  transition: 0.2s;
  display: block;
  width: 100%;
  border-radius: 0.375rem;
  border-color: #ddd;
  background-color: #fff;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: #374151;
}
.dark .select2-container .select2-search--dropdown .select2-search__field {
  border-color: #364153;
  background-color: #1e293b;
  color: #fff;
}

.select2-container .select2-search--dropdown .select2-search__field:focus {
  border-color: #5897fb;
  box-shadow: none;
  outline: none;
  outline-offset: 0;
}

.select2-results__option:focus > span.item-label,
.select2-results__option:hover > span.item-label {
  background: #f1f5f9;
  color: #1e293b;
}
.dark .select2-results__option:focus > span.item-label,
.dark .select2-results__option:hover > span.item-label {
  background: #1e293b;
  color: #fff;
}

.select2-container .item-label {
  border-radius: 6px;
  padding: 0.5rem 0.5rem;
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  outline-color: transparent;
  color: #000;
  gap: 0.25rem;
  transition: 0.2s;
}
.dark .select2-container .item-label {
  color: #fff;
}

.select2-container--default
  .select2-results__option--highlighted.select2-results__option--selectable {
  background-color: inherit;
  color: inherit;
}

.select2-results__option.select2-results__option--selectable.select2-results__option--selected
  .item-label,
.select2-results__option.select2-results__option--selectable.select2-results__option--selected.select2-results__option--highlighted
  .item-label {
  background-color: #1574b3;
  color: #ffffff;
}


.select2-container
  .select2-results__option--selected:hover
  .expand-collapse::before {
  background-color: #fff;
}

.select2-container .select2-selection--multiple .select2-selection__rendered {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: start;
  gap: 5px;
}

.select2-container--default
  .select2-selection--multiple
  .select2-selection__choice {
  background: #f1f5f9;
  color: #1e293b;
  border-radius: 4px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding-block-start: calc(0.5rem / 2);
  padding-block-end: calc(0.5rem / 2);
  padding-inline: 0.75rem;
  position: relative;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: bottom;
  white-space: nowrap;
  border: 0;
  margin: 0;
}

.select2-container--default[dir="rtl"]
  .select2-selection--multiple
  .select2-selection__choice {
  margin: 0;
}

.select2-container--default[dir="rtl"]
  .select2-selection--multiple
  .select2-selection__choice__remove {
  font-size: 1em;
  height: 100%;
  border: 0;
  top: auto !important;
}

.select2-container .select2-search--inline .select2-search__field {
  height: auto;
}

.select2-container--default
  .select2-selection--multiple
  .select2-selection__choice__remove {
  left: unset !important;
  inset-inline-start: 0 !important;
  border-right: 0 !important;
  border-inline-start: 0 !important;
  color: tomato;
}
.select2-container--default
  .select2-selection--multiple
  .select2-selection__choice__display {
  cursor: default;
  padding-left: 0;
  padding-right: 0;
  padding-inline-end: 2px !important;
  padding-inline-start: 8px !important;
}



/* .dark .select2-container li.select2-results__option:hover,
.dark .select2-container--default .select2-results__option--selected {
    background-color: unset !important;
} */
.dark .select2-results__option:focus > span.item-label,
.dark .select2-results__option:hover > span.item-label,
.dark
  .select2-container
  li.select2-results__option.select2-results__option--selectable.select2-results__option--selected.select2-results__option--highlighted {
  background-color: #1574b3;
  color: #fff;
}