:root {
  --ts-pr-clear-button:	0rem;
  --ts-pr-caret:	0rem;
  --ts-pr-min:	.75rem;
}

.ts-wrapper.single .ts-control, .ts-wrapper.single .ts-control input {
  cursor: pointer;
}

.ts-control {
  padding-right: max(.75rem, 0rem + 0rem) !important;
}

.ts-wrapper.plugin-drag_drop.multi > .ts-control > div.ui-sortable-placeholder {
  visibility: visible !important;
  background: #f2f2f2 !important;
  background: rgba(0, 0, 0, 0.06) !important;
  border: 0 none !important;
  box-shadow: inset 0 0 12px 4px #fff;
}
.ts-wrapper.plugin-drag_drop .ui-sortable-placeholder::after {
  content: "!";
  visibility: hidden;
}
.ts-wrapper.plugin-drag_drop .ui-sortable-helper {
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.plugin-checkbox_options .option input {
  margin-right: 0.5rem;
}

.plugin-clear_button {
  --ts-pr-clear-button: 1em;
}
.plugin-clear_button .clear-button {
  opacity: 0;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: calc(0.75rem - 5px);
  margin-right: 0 !important;
  background: transparent !important;
  transition: opacity 0.5s;
  cursor: pointer;
}
.plugin-clear_button.form-select .clear-button, .plugin-clear_button.single .clear-button {
  right: max(0rem, 0.75rem);
}
.plugin-clear_button.focus.has-items .clear-button, .plugin-clear_button:not(.disabled):hover.has-items .clear-button {
  opacity: 1;
}

.ts-wrapper .dropdown-header {
  position: relative;
  padding: 6px 0.75rem;
  border-bottom: 1px solid #d0d0d0;
  background: #f8f8f8;
  border-radius: 0.375rem 0.375rem 0 0;
}
.ts-wrapper .dropdown-header-close {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  color: #343a40;
  opacity: 0.4;
  margin-top: -12px;
  line-height: 20px;
  font-size: 20px !important;
}
.ts-wrapper .dropdown-header-close:hover {
  color: black;
}

.plugin-dropdown_input.focus.dropdown-active .ts-control {
  border: 1px solid #ced4da;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.075);
}
.plugin-dropdown_input .dropdown-input {
  border: 1px solid #d0d0d0;
  border-width: 0 0 1px 0;
  display: block;
  padding: 0.375rem 0.75rem;
  box-shadow: none;
  width: 100%;
  background: transparent;
}
.plugin-dropdown_input.focus .ts-dropdown .dropdown-input {
  border-color: #86b7fe;
  outline: 0;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}
.plugin-dropdown_input .items-placeholder {
  border: 0 none !important;
  box-shadow: none !important;
  width: 100%;
}
.plugin-dropdown_input.has-items .items-placeholder, .plugin-dropdown_input.dropdown-active .items-placeholder {
  display: none !important;
}

.ts-wrapper.plugin-input_autogrow.has-items .ts-control > input {
  min-width: 0;
}
.ts-wrapper.plugin-input_autogrow.has-items.focus .ts-control > input {
  flex: none;
  min-width: 4px;
}
.ts-wrapper.plugin-input_autogrow.has-items.focus .ts-control > input::placeholder {
  color: transparent;
}

.ts-dropdown.plugin-optgroup_columns .ts-dropdown-content {
  display: flex;
}
.ts-dropdown.plugin-optgroup_columns .optgroup {
  border-right: 1px solid #f2f2f2;
  border-top: 0 none;
  flex-grow: 1;
  flex-basis: 0;
  min-width: 0;
}
.ts-dropdown.plugin-optgroup_columns .optgroup:last-child {
  border-right: 0 none;
}
.ts-dropdown.plugin-optgroup_columns .optgroup:before {
  display: none;
}
.ts-dropdown.plugin-optgroup_columns .optgroup-header {
  border-top: 0 none;
}

.ts-wrapper.plugin-remove_button .item {
  display: inline-flex;
  align-items: center;
  padding-right: 0 !important;
}
.ts-wrapper.plugin-remove_button .item .remove {
  color: inherit;
  text-decoration: none;
  vertical-align: middle;
  display: inline-block;
  padding: 0 7px 0 0;
}
/*.ts-wrapper.plugin-remove_button .item .remove:hover {*/
/*  background: rgba(0, 0, 0, 0.05);*/
/*}*/
/*.ts-wrapper.plugin-remove_button.disabled .item .remove:hover {*/
/*  background: none;*/
/*}*/
.ts-wrapper.plugin-remove_button .remove-single {
  position: absolute;
  right: 0;
  top: 0;
  font-size: 23px;
}

/*.ts-wrapper.plugin-remove_button:not(.rtl) .item .remove {*/
/*  border-left: 1px solid #dee2e6;*/
/*  margin-left: 5px;*/
/*}*/
/*.ts-wrapper.plugin-remove_button:not(.rtl) .item.active .remove {*/
/*  border-left-color: rgba(0, 0, 0, 0);*/
/*}*/
/*.ts-wrapper.plugin-remove_button:not(.rtl).disabled .item .remove {*/
/*  border-left-color: white;*/
/*}*/

/*.ts-wrapper.plugin-remove_button.rtl .item .remove {*/
/*  border-right: 1px solid #dee2e6;*/
/*  margin-right: 5px;*/
/*}*/
/*.ts-wrapper.plugin-remove_button.rtl .item.active .remove {*/
/*  border-right-color: rgba(0, 0, 0, 0);*/
/*}*/
/*.ts-wrapper.plugin-remove_button.rtl.disabled .item .remove {*/
/*  border-right-color: white;*/
/*}*/

.ts-wrapper {
  position: relative;
}

.ts-dropdown,
.ts-control,
.ts-control input {
  color: #343a40;
  font-family: inherit;
  font-size: inherit;
  line-height: 1.5;
  font-smoothing: inherit;
}

.ts-control,
.ts-wrapper.single.input-active .ts-control {
  background: #fff;
  cursor: text;
}

.ts-control {
  background: #FFFFFF;
  border: 1px solid #E1E4E7;
  border-radius: 4px;
  box-sizing: border-box;
  box-shadow: none;
  color: #000000;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  overflow: hidden;
  padding: 9px 13px;
  position: relative;
  vertical-align: baseline;
  width: 100%;
  z-index: 1;
}

.ts-control > [data-ts-item] {
  font-size: inherit;
  line-height: inherit;
  max-width: max-content;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
}

.ts-control:hover {
  border-color: var(--color-role-300);
}

.disabled .ts-control:hover {
  border-color: #E1E4E7;
}

@media (prefers-reduced-motion: reduce) {
  .ts-control {
    transition: none;
  }
}

/*===============================================*/
/* This is used in the time_zone_component */
/*===============================================*/
.time-zone-icon > .ts-control::before {
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none'%3E%3Cg clip-path='url(%23clip0_389_45029)'%3E%3Cpath d='M9.99935 4.99984V9.99984L13.3327 11.6665M18.3327 9.99984C18.3327 14.6022 14.6017 18.3332 9.99935 18.3332C5.39698 18.3332 1.66602 14.6022 1.66602 9.99984C1.66602 5.39746 5.39698 1.6665 9.99935 1.6665C14.6017 1.6665 18.3327 5.39746 18.3327 9.99984Z' stroke='%23667085' stroke-width='1.66667' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/g%3E%3Cdefs%3E%3CclipPath id='clip0_389_45029'%3E%3Crect width='20' height='20' fill='white'/%3E%3C/clipPath%3E%3C/defs%3E%3C/svg%3E");
  content: '';
  width: 20px;
  background-repeat: no-repeat;
  height: 20px;
}
/*===============================================*/

/*.ts-wrapper.multi.has-items .ts-control {*/
/*  padding: calc( 0.375rem - 1px - 0px) 0.75rem calc( 0.375rem - 1px - 3px - 0px);*/
/*}*/
.full .ts-control {
  background-color: #fff;
}
.disabled .ts-control, .disabled .ts-control * {
  cursor: not-allowed !important;
}
.focus .ts-control {
  box-shadow: none;
}
.ts-control > * {
  vertical-align: baseline;
  display: inline-block;
}
.ts-wrapper.multi .ts-control > div {
  cursor: pointer;
  /*margin: 0 3px 3px 0;*/
  /*padding: 1px 5px;*/
  background: var(--color-role-150);
  color: var(--color-role-500);
  border: 0px solid #dee2e6;
}
.ts-wrapper.multi .ts-control > div.active {
  background: var(--color-role-150);
  color: var(--color-role-500);
  border: 0px solid rgba(0, 0, 0, 0);
}
.ts-wrapper.multi.disabled .ts-control > div, .ts-wrapper.multi.disabled .ts-control > div.active {
  color: #878787;
  background: white;
  border: 0px solid white;
}

.ts-control > input {
  background: none !important;
  border: 0 none !important;
  box-shadow: none !important;
  color: inherit;
  display: inline-block !important;
  flex: 1 1 auto;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit !important;
  margin: 0 !important;
  min-width: 9rem;
  max-height: none !important;
  max-width: 100% !important;
  min-height: 0 !important;
  outline: transparent;
  padding: 0 !important;
  text-indent: 0 !important;
  user-select: auto !important;
}

.ts-control > input::-ms-clear {
  display: none;
}
.ts-control > input:focus {
  outline: none !important;
}

/*.has-items .ts-control > input {*/
/*  margin: 0px 4px !important;*/
/*}*/

.ts-control.rtl {
  text-align: right;
}
.ts-control.rtl.single .ts-control:after {
  left: calc(0.75rem + 5px);
  right: auto;
}
.ts-control.rtl .ts-control > input {
  margin: 0px 4px 0px -2px !important;
}
.disabled .ts-control {
  opacity: 0.5;
  background-color: #e9ecef;
}
.input-hidden .ts-control > input {
  opacity: 0;
  position: absolute;
  left: -10000px;
}

.ts-dropdown {
  --first-bs-color: rgba(16, 24, 40, .02);
  --last-bs-color: rgba(16, 24, 40, .04);

  background: #FFFFFF;
  border: 1px solid #F3F3F3;
  border-radius: 4px;
  box-shadow: 0 4px 6px -2px var(--first-bs-color), 0 12px 16px -4px var(--last-bs-color);
  box-sizing: border-box;
  left: 0;
  margin-top: 6px;
  padding: 8px 4px 8px 8px;
  position: absolute;
  top: 100%;
  width: 100%;
  z-index: 10;
}
.ts-dropdown [data-selectable] {
  cursor: pointer;
  overflow: hidden;
}
.ts-dropdown [data-selectable] .highlight {
  background: rgba(255, 237, 40, 0.4);
  border-radius: 1px;
}
.ts-dropdown .option,
.ts-dropdown .optgroup-header,
.ts-dropdown .no-results,
.ts-dropdown .create {
  padding: 3px 0.75rem;
}
.ts-dropdown .option, .ts-dropdown [data-disabled], .ts-dropdown [data-disabled] [data-selectable].option {
  cursor: inherit;
  opacity: 0.5;
}

.ts-dropdown [data-selectable].option {
  opacity: 1;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ts-dropdown [data-selectable].selected::after {
  display: inline-block;
  content: '';
  background: var(--color-role-500);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M16.6673 5L7.50065 14.1667L3.33398 10' stroke='currentColor' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  width: 20px;
  height: 20px;
}

.ts-dropdown .optgroup:first-child .optgroup-header {
  border-top: 0 none;
}
.ts-dropdown .optgroup-header {
  color: #6c757d;
  background: #fff;
  cursor: default;
}
.ts-dropdown .active {
  background-color: #e9ecef;
  color: #1e2125;
}
.ts-dropdown .active.create {
  color: #1e2125;
}
.ts-dropdown .create {
  color: rgba(52, 58, 64, 0.5);
}
.ts-dropdown .spinner {
  display: inline-block;
  width: 30px;
  height: 30px;
  margin: 3px 0.75rem;
}
.ts-dropdown .spinner:after {
  content: " ";
  display: block;
  width: 24px;
  height: 24px;
  margin: 3px;
  border-radius: 50%;
  border: 5px solid #d0d0d0;
  border-color: #d0d0d0 transparent #d0d0d0 transparent;
  animation: lds-dual-ring 1.2s linear infinite;
}
@keyframes lds-dual-ring {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.ts-dropdown-content {
  max-height: 256px;
  min-height: 64px;
  overflow-scrolling: touch;
  overflow-x: hidden;
  overflow-y: auto;
  scroll-behavior: smooth;

  &::-webkit-scrollbar {
    width: 4px;
  }

  &::-webkit-scrollbar-thumb {
    background: #E1E4E7;
    border-radius: 4px;
  }

  .option,
  .create {
    cursor: pointer;
    padding: 10px 14px;

    &:hover,
    &.active {
      background: var(--color-role-50);
    }
  }

  .no-results {
    display: none;
  }

  .ts-title,
  .create,
  .create strong {
    font-size: 16px;
    line-height: 24px;
    font-weight: 400;
    color: #000000;
  }

  .create {
    color: transparent;

    /*strong {*/
    /*  margin-left: -33.5px;*/
    /*}*/
  }

  .ts-subtitle {
    text-transform: capitalize;
  }

  .ts-subtitle,
  .create::after {
    color: #667085;
    font-size: 14px;
    line-height: 20px;
  }
}

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

.ts-wrapper.form-control,
.ts-wrapper.form-select {
  padding: 0 !important;
  height: auto;
  box-shadow: none;
  display: flex;
}

.ts-dropdown,
.ts-dropdown.form-control,
.ts-dropdown.form-select {
  height: auto;
  padding: 0;
  z-index: 1000;
  background: #fff;
  border: 1px solid #F2F4F7;
  border-radius: 4px;
  box-shadow: 0 4px 6px -2px rgba(16, 24, 40, 0.02), 0 12px 16px -4px rgba(16, 24, 40, 0.04);;
}

.ts-dropdown .optgroup-header {
  font-size: 0.875rem;
  line-height: 1.5;
}
.ts-dropdown .optgroup:first-child:before {
  display: none;
}
.ts-dropdown .optgroup:before {
  content: " ";
  display: block;
  height: 0;
  margin: 0.5rem 0;
  overflow: hidden;
  border-top: 1px solid var(--neutral-200);
  margin-left: -0.75rem;
  margin-right: -0.75rem;
}
.ts-dropdown .create {
  padding-left: 0.75rem;
}

.ts-dropdown-content {
  padding: 8px 0;
}

.ts-control.dropdown -active {
  border-radius: 0.375rem;
}
.focus .ts-control {
  border-color: var(--color-role-300);
  box-shadow: 0 0 0 4px var(--color-role-150);
  outline: transparent;
}
.ts-control .item {
  background: var(--color-role-150);
  border-radius: 50px;
  color: var(--color-role-500);
  cursor: pointer;
  display: inline-flex;
  font-size: 12px;
  font-weight: 500;
  gap: 6px;
  line-height: 20px;
  padding: 2px 8px;

  &:hover, &:active {
    background: var(--color-role-200) !important;
  }

  .remove {
    font-size: 14px;
    font-weight: 700;
  }
}

.is-danger {
  + .ts-wrapper .ts-control {
    border-color: #E2425C;
  }

  + .ts-wrapper.focus .ts-control {
    box-shadow: 0 0 0 4px #FCECEF;
  }
}

.ts-wrapper.is-invalid:not(.single),
.was-validated .invalid:not(.single),
.was-validated :invalid + .ts-wrapper:not(.single) {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
  background-position: right calc(0.375em + 0.1875rem) center;
  background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
  background-repeat: no-repeat;
}
.ts-wrapper.is-invalid.single,
.was-validated .invalid.single,
.was-validated :invalid + .ts-wrapper.single {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e"), url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
  background-position: right 0.75rem center, center right 2.25rem;
  background-size: 16px 12px, calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
  background-repeat: no-repeat;
}

.ts-wrapper.is-valid:not(.single),
.was-validated .valid:not(.single),
.was-validated :valid + .ts-wrapper:not(.single) {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23198754' d='M2.3 6.73.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
  background-position: right calc(0.375em + 0.1875rem) center;
  background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
  background-repeat: no-repeat;
}
.ts-wrapper.is-valid.single,
.was-validated .valid.single,
.was-validated :valid + .ts-wrapper.single {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e"), url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23198754' d='M2.3 6.73.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
  background-position: right 0.75rem center, center right 2.25rem;
  background-size: 16px 12px, calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
  background-repeat: no-repeat;
}

.ts-wrapper {
  min-height: calc(1.5em + 0.75rem + 2px);
  display: flex;
}

/*.ts-wrapper.multi.has-items .ts-control {*/
/*  padding-left: calc(0.75rem - 5px);*/
/*  --ts-pr-min: calc(0.75rem - 5px);*/
/*}*/
/*.ts-wrapper.multi .ts-control > div {*/
/*  border-radius: calc(0.375rem - 1px);*/
/*}*/

.ts-wrapper:not(.form-control):not(.form-select) {
  padding: 0;
  border: none;
  height: auto;
  box-shadow: none;
  background: none;
}

.ts-wrapper .ts-control::after {
  content: '';
  flex-grow: 1;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5 7.5L10 12.5L15 7.5' stroke='%23A3ABBC' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: right;
  width: 20px;
  background-repeat: no-repeat;
  height: 20px;
}

.ts-wrapper.dropdown-active .ts-control::after {
  content: '';
  flex-grow: 1;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M15 12.5L10 7.5L5 12.5' stroke='%23A3ABBC' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: right;
  width: 20px;
  background-repeat: no-repeat;
  height: 20px;
}

.input-group > .ts-wrapper {
  flex-grow: 1;
}

.input-group > .ts-wrapper:not(:nth-child(2)) > .ts-control {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.input-group > .ts-wrapper:not(:last-child) > .ts-control {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}
