.ts-wrapper.plugin-drag_drop.multi > .ts-control > div.ui-sortable-placeholder {
  @apply visible border-none;
}
 
.ts-wrapper.plugin-drag_drop .ui-sortable-placeholder::after {
  content: "!";
  visibility: hidden;
}
 
.plugin-checkbox_options .option input {
  margin-right: 0.5rem;
}
 
.plugin-clear_button .clear-button {
  @apply opacity-0 absolute top-1/2 transform -translate-y-1/2 right-0 cursor-pointer;
}
 
.plugin-clear_button.single .clear-button {
  @apply right-2;
}
 
.plugin-clear_button.focus.has-items .clear-button, .plugin-clear_button:hover.has-items .clear-button {
  @apply opacity-100;
}
 
.ts-wrapper .dropdown-header {
  @apply relative p-2.5 rounded-t;
  border-bottom: 20px solid #d0d0d0;
  background: #f8f8f8;
}
 
.ts-wrapper .dropdown-header-close {
  @apply absolute right-2 top-1/2 opacity-40 -m-3 leading-5 text-xl;
}
 
.ts-wrapper .dropdown-header-close:hover {
  @apply text-black;
}
 
.plugin-dropdown_input .dropdown-input {
  @apply block p-2 shadow-none w-full bg-transparent;
}
 
.ts-wrapper.plugin-input_autogrow.has-items .ts-control > input {
  @apply min-w-0;
}
 
.ts-wrapper.plugin-input_autogrow.has-items.focus .ts-control > input {
  @apply flex;
  min-width: 4px;
}
.ts-wrapper.plugin-input_autogrow.has-items.focus .ts-control > input::-webkit-input-placeholder {
  @apply text-transparent;
}
.ts-wrapper.plugin-input_autogrow.has-items.focus .ts-control > input::-ms-input-placeholder {
  @apply text-transparent;
}
.ts-wrapper.plugin-input_autogrow.has-items.focus .ts-control > input::placeholder {
  @apply text-transparent;
}
 
.ts-dropdown.plugin-optgroup_columns .ts-dropdown-content {
  @apply flex;
}
 
.ts-dropdown.plugin-optgroup_columns .optgroup {
  @apply flex-grow border-t-0 border-r border-gray-100 basis-0 min-w-0;
}
 
.ts-dropdown.plugin-optgroup_columns .optgroup:last-child {
  @apply border-r-0;
}
 
.ts-dropdown.plugin-optgroup_columns .optgroup:before {
  @apply hidden;
}
 
.ts-dropdown.plugin-optgroup_columns .optgroup-header {
  @apply border-t-0;
}
 
/* Quando o select ganha foco (está digitando), escondemos o item selecionado */
.ts-wrapper.focus.has-items .item {
  display: none !important;
}

/* Garante que o input de busca ocupe o espaço todo quando o item some */
.ts-wrapper.focus.has-items .ts-control input {
  display: inline-block !important;
  width: 100% !important;
  opacity: 1 !important;
  position: relative !important;
}

/* Estilo do input para alinhar com o Flowbite enquanto digita */
.ts-control input {
  @apply text-gray-900 dark:text-white text-sm;
  outline: none !important;
}

/* Ajuste do plugin remove_button para não "quebrar" o layout quando o item some */
.ts-wrapper.plugin-remove_button.focus.has-items .item {
  display: none !important;
}
 
.ts-wrapper.plugin-remove_button .item.active .remove {
  border-left-color: #cacaca;
}
 
.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 {
  position: relative;
}
 
.ts-dropdown,
.ts-control,
.ts-control input {
  color: #303030;
  font-family: inherit;
  font-size: 13px;
  line-height: 18px;
}
 
/* Color for input */
.ts-control,
.ts-wrapper.single.input-active .ts-control {
  @apply bg-gray-100 dark:bg-gray-900;
  cursor: text;
}
 
.ts-control {
  @apply border border-gray-300 dark:border-gray-600 p-2.5 w-full overflow-hidden relative z-10 box-border shadow-none rounded-md flex flex-wrap;
}
 
.ts-wrapper.multi.has-items .ts-control {
  padding: 6px 8px 3px;
}
 
.full .ts-control {
  @apply bg-gray-100 dark:bg-gray-900 dark:text-gray-100;
}
 
.disabled .ts-control, .disabled .ts-control * {
  @apply cursor-pointer;
}
 
.focus .ts-control {
  @apply shadow-none;
}
 
.ts-control > * {
  @apply align-baseline inline-block;
}
 
.ts-wrapper.multi .ts-control > div {
  @apply cursor-pointer m-0 mx-1 my-1 p-1 px-1.5 bg-gray-200 text-gray-800 border-0;
}
 
.ts-wrapper.multi .ts-control > div.active {
  @apply bg-gray-300 text-gray-800 border-0;
}
 
.ts-wrapper.multi.disabled .ts-control > div, .ts-wrapper.multi.disabled .ts-control > div.active {
  @apply text-gray-400 bg-white border-0;
}
 
.ts-control > input {
  @apply inline-block p-0 min-h-0 max-w-full m-0 indent-0 border-0 bg-transparent flex-grow select-auto  placeholder-gray-300 dark:placeholder-gray-600;
  min-width: 7rem;
  max-height: none !important;
  box-shadow: none !important;
}
 
.ts-control > input::-ms-clear {
  @apply hidden;
}
 
.ts-control > input:focus {
  @apply outline-0;
}
 
.has-items .ts-control > input {
  @apply m-0 mx-1;
  margin: 0 4px !important;
}
 
.ts-control.rtl {
  @apply text-right;
}
 
.ts-control.rtl.single .ts-control:after {
  @apply absolute right-auto;
  content: '';
  left: 15px;
}
 
.ts-control.rtl .ts-control > input {
  @apply m-0 mx-1;
  margin: 0 4px 0 -2px !important;
}
 
.disabled .ts-control {
  @apply opacity-50 bg-gray-100;
}
 
.input-hidden .ts-control > input {
  @apply opacity-0 absolute;
  left: -10000px;
}
 
.ts-dropdown {
  @apply absolute top-full left-0 w-full z-10 border border-gray-300 dark:border-gray-600 bg-white mt-1 box-border rounded-lg overflow-hidden bg-gray-100 dark:bg-gray-900;
}
 
.ts-dropdown [data-selectable] {
  @apply cursor-pointer overflow-hidden;
}
 
.ts-dropdown [data-selectable] .highlight {
  background: rgba(125, 168, 208, 0.2);
  border-radius: 1px;
}
 
.ts-dropdown .option,
.ts-dropdown .optgroup-header,
.ts-dropdown .no-results,
.ts-dropdown .create {
  padding: 5px 8px;
}
 
.ts-dropdown .option, .ts-dropdown [data-disabled], .ts-dropdown [data-disabled] [data-selectable].option {
  cursor: inherit;
  opacity: 0.5;
}
 
.ts-dropdown [data-selectable].option {
  @apply opacity-100 cursor-pointer dark:text-gray-100 p-2.5;
}
 
.ts-dropdown .optgroup:first-child .optgroup-header {
  @apply border-t-0;
}
 
.ts-dropdown .optgroup-header {
  @apply cursor-default bg-white;
  color: #303030;
}
 
/* Color for item list hover */
.ts-dropdown .create:hover,
.ts-dropdown .option:hover,
.ts-dropdown .active {
  @apply bg-gray-300 dark:bg-gray-800 dark:text-gray-100;
}
 
.ts-dropdown .create:hover.create,
.ts-dropdown .option:hover.create,
.ts-dropdown .active.create {
  color: #495c68;
}
 
.ts-dropdown .create {
  color: rgba(48, 48, 48, 0.5);
}
 
.ts-dropdown .spinner {
  @apply inline-block w-7 h-7 m-1 mx-2;
}
 
.ts-dropdown .spinner:after {
  @apply block w-6 h-6 m-1 rounded-full border-4 border-gray-300;
  content: " ";
  border-color: #FF7828 transparent #FF7828 transparent;
  animation: lds-dual-ring 1.2s linear infinite;
}
 
@keyframes lds-dual-ring {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
 
.ts-dropdown-content {
  @apply overflow-y-auto overflow-x-hidden max-h-[200px];
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}
 
.ts-hidden-accessible {
  @apply border-0 h-0.5 overflow-hidden p-0 absolute w-0.5 whitespace-nowrap;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
}