select {
  @apply pl-3 pr-10 py-2 text-base border-gray-300 focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm rounded-md;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
}

.form-error {
  @apply before:border-solid before:border-transparent before:h-0 before:left-2.5 before:pointer-events-none before:w-0 before:absolute before:border-[6px] before:ml-[-1px] after:border-solid after:border-transparent after:h-0 after:left-2.5 after:pointer-events-none after:w-0 after:absolute before:border-b-red-200;
}

.input.with_label.toggle .label_input {
  @apply flex text-sm items-center;
}

// Adapted from [multiselect-react-dropdown](https://github.com/srigar/multiselect-react-dropdown), licensed under MIT License.
.multiselect-container {
  position: relative;
  text-align: left;
  width: 100%;

  &--disabled {
    pointer-events: none;
    opacity: 0.5;
  }

  input {
    border: none;
    margin-top: 3px;
    background: transparent;

    &:focus {
      outline: none;
    }
  }

  ul {
    display: block;
    padding: 0;
    margin: 0;
    border: 1px solid #ccc;
    border-radius: 4px;
    max-height: 250px;
    overflow-y: auto;
  }

  li {
    padding: 10px;

    &:hover {
      background: #0096fb;
      color: #fff;
      cursor: pointer;
    }
  }

  .searchWrapper {
    border: 1px solid;
    position: relative;
    @apply rounded-md border-gray-300 bg-white min-h-[38px] max-w-[400px] py-0 pl-3 pr-10 text-base focus:border-primary-500 focus:outline-none focus:ring-primary-500 disabled:opacity-50 dark:border-gray-800 dark:bg-gray-900 dark:text-gray-100 dark:ring-1 dark:ring-gray-800 dark:focus:border-primary-500 dark:focus:ring-primary-500 sm:text-sm w-auto;

    > input {
      @apply first:pl-0 p-1.5 m-0 focus:ring-0 text-base sm:text-sm;
    }
  }

  .chip {
    padding: 4px 10px;
    margin-right: 5px;
    border-radius: 11px;
    display: inline-flex;
    align-items: center;
    font-size: 13px;
    line-height: 19px;
    color: #fff;
    white-space: nowrap;
    @apply bg-primary-600 my-1;
  }

  .optionListContainer {
    position: absolute;
    width: 100%;
    background: #fff;
    border-radius: 4px;
    margin-top: 1px;
    z-index: 2;
  }

  .highlightOption {
    @apply bg-primary-600;
    color: #fff;
  }

  .displayBlock {
    display: block;
  }

  .displayNone {
    display: none;
  }

  .notFound {
    padding: 10px;
    display: block;
  }

  .optionContainer {
    @apply border-gray-300 dark:border-gray-800 dark:bg-gray-900;
  }

  .option {
    @apply hover:bg-primary-600;
  }
}
