﻿/* Make wrapper behave like w-full */
.ts-wrapper {
    width: 100%;
}

.ts-control {
    width: 100%;
    padding: 0.625rem 3rem 0.625rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    background-color: white;
    box-shadow: none;
    font-size: 1rem;
    line-height: 1.5rem;
}

    /* Remove Tom Select default inner padding */
    .ts-control > input {
        margin: 0;
        padding: 0;
    }

    /* Placeholder */
    .ts-control input::placeholder {
        color: #9ca3af;
    }

    /* Focus ring equivalent to focus:ring-2 focus:ring-emerald-500 */
    .ts-wrapper.focus .ts-control,
    .ts-control:focus-within {
        box-shadow: 0 0 0 2px #10b981;
    }

/* Remove default Tom Select focus */
.ts-wrapper.focus .ts-control {
    box-shadow: 0 0 0 2px #10b981;
}

/* Dropdown */
.ts-dropdown {
    margin-top: 0.25rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    box-shadow: none;
}

/* Dropdown options */
.ts-dropdown .option {
    padding: 0.625rem 1rem;
}

/* Hover option */
.ts-dropdown .active {
    background-color: #ecfdf5;
}

.ts-control {
    flex-wrap: nowrap !important;    
}