/* Tom Select CSS */
.ts-wrapper {
    position: relative;
}

.ts-control {
    background-color: #fff;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    padding: 0.75rem 1rem;
    width: 100%;
    color: #111827;
    font-size: 1rem;
    line-height: 1.5;
    transition-property: border-color, box-shadow;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 200ms;

    /* Structural additions */
    display: flex;
    align-items: center;
    position: relative;
    cursor: text;
}

.ts-control.focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5);
    outline: none;
    z-index: 2;
}

.ts-control .items {
    display: flex;
    flex-wrap: wrap;
}

.ts-control .item {
    margin: 0 3px 0 0;
}

.ts-control input {
    flex: 1 1 auto;
    display: inline-block !important;
    padding: 0 !important;
    min-width: 7rem;
    max-width: 100% !important;
    max-height: none !important;
    min-height: 0 !important;
    line-height: inherit !important;
    text-indent: 0 !important;
    border: 0 none !important;
    background: none !important;
    box-shadow: none !important;
    -webkit-appearance: none;
    appearance: none;
}

.ts-control input:focus {
    outline: none !important;
}

/* Dropdown */
.ts-dropdown {
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    background-color: #fff;
    margin-top: 0.25rem;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    z-index: 50;
    max-height: 15rem;
    overflow-y: auto;
    display: none;
    /* hidden by default */
}

.ts-wrapper.dropdown-active .ts-dropdown {
    display: block;
}

.ts-dropdown .option {
    padding: 0.5rem 1rem;
    cursor: pointer;
    color: #111827;
}

.ts-dropdown .option:hover,
.ts-dropdown .option.active {
    background-color: #f3f4f6;
    color: #111827;
}

.ts-dropdown .option.selected {
    background-color: #e5e7eb;
    font-weight: 500;
}

/* Hide the original select */
.ts-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;
}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */

select:not([multiple]) {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  padding-left: 1rem;
}

select:not([multiple]):not(.appearance-none) {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%239ca3af' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1rem 1rem;
  padding-right: 2.75rem;
}

select:not([multiple])::-ms-expand {
  display: none;
}

.iti {
  width: 100%;
}

.iti input {
  width: 100%;
}

button[data-submit-loading="true"] {
  cursor: progress;
}

button[data-submit-loading="true"]::after {
  content: "";
  display: inline-block;
  width: 0.9rem;
  height: 0.9rem;
  margin-left: 0.5rem;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 9999px;
  animation: submit-spin 0.7s linear infinite;
}

input[data-submit-loading="true"] {
  cursor: progress;
}

@keyframes submit-spin {
  to {
    transform: rotate(360deg);
  }
}

.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
