.ts-wrapper.form-select {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
}

.ts-control {
    display: flex;
    align-items: center;
    padding: 0.5rem 0.75rem !important;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: white;
}

.tom-select_custom_ui .ts-control .item,
.tom-select_custom_ui .item.selected {
    background-color: var(--blue-600);
    border-radius: 10px;
    color: var(--light-primary);
    padding: 0.2rem 0.75rem;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    font-weight: 600;
    margin-right: 0.25rem;
}

.ts-control #vehicle_vendor-ts-control {
    margin: 0;
    padding: 0;
    background: transparent;
    font: inherit;
    line-height: 1.5;
    height: auto;
    max-width: 150px !important;
    min-width: 0;
    transition: all 500ms ease-in-out;
}


.ts-control input:focus {
    color: #000;
}

.ts-control:has(input:focus) .item {
    margin-right: 5px;
}

.item .custom-clear {
    font-size: 1.4rem;
    width: 1.5rem;
    height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: transparent;
    color: #ffffff;
    margin-left: 0.5rem;
    line-height: 1;
    padding: 0;
    transition: background 0.2s, color 0.2s;
}

.item .custom-clear:hover {
    background-color: #fff;
    color: var(--blue-600);
    cursor: pointer;
}

.ts-control .clear-button {
    display: none !important;
}

/* ----------------------------

Tom Select - Multiple Select

 ---------------------------- */

.multiple-select .ts-control{
    height: auto !important;
    padding-top: 9px;
    padding-bottom: 9px;

    & input{
        padding-top: 3.5px !important;
        padding-bottom: 5px !important;
    }

    & input::placeholder {
        color: var(--gray-600);
        opacity: 1;
    }

    &:hover{
        background: var(--gray-200);
    }
}

.multiple-select.ts-wrapper.multi .ts-control {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    border-color: var(--gray-400);
}

.multiple-select.ts-wrapper.multi .ts-control > input {
    flex: 1 1 100%;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    margin-top: .5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tom-select_custom_ui > #user_organizationRole,
.tom-select_custom_ui > #registration_organizationRole {
    height: 2.9rem !important;
    color: var(--gray-600);
}

.tom-select_custom_ui select{
    border: 1px solid var(--gray-600);
}


.tom-select_custom_ui .ts-wrapper.single:not(.has-items) .ts-control {
    min-height: 2.75rem;
    transition: min-height .15s ease, padding .15s ease;
}

.tom-select_custom_ui .ts-wrapper.single:has(input:focus) .ts-control,
.tom-select_custom_ui .ts-wrapper.single.has-items .ts-control {
    padding: .8rem .75rem;
}

.tom-select_custom_ui .ts-control > input {
    height: 1.5rem;
    line-height: 1.25rem;
}

.tom-select_custom_ui .ts-wrapper.single.has-items .ts-control {
    flex-wrap: wrap;
    align-items: flex-start;
    row-gap: .35rem;
}
