/*
 * Minimal re-skin of Tom Select's default theme so it blends with the
 * form fields the rest of the app uses (rounded-md border-slate-300
 * white background, teal focus). Tom Select wraps the native <select>
 * with a .ts-wrapper div and renders its own .ts-control input — we
 * only override the surfaces that would otherwise clash.
 */

.ts-wrapper {
    display: block;
}

.ts-wrapper .ts-control {
    border: 1px solid rgb(203 213 225);         /* slate-300 */
    border-radius: 0.375rem;                    /* rounded-md */
    padding: 0.5rem 0.75rem;                    /* py-2 px-3 */
    min-height: 2.5rem;                         /* ~ h-10 so it matches our input height */
    font-size: 0.875rem;                        /* text-sm */
    line-height: 1.25rem;
    background-color: #ffffff;
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 5%);    /* shadow-sm */
    color: rgb(15 23 42);                       /* slate-900 */
}

.ts-wrapper.focus .ts-control {
    border-color: rgb(20 184 166);              /* brand-500 */
    outline: 2px solid rgb(20 184 166 / 50%);
    outline-offset: 0;
    box-shadow: none;
}

.ts-wrapper .ts-control > input {
    color: rgb(15 23 42);
}

.ts-wrapper .ts-dropdown {
    border: 1px solid rgb(203 213 225);
    border-top: 0;
    border-radius: 0 0 0.375rem 0.375rem;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    margin-top: -1px;
    font-size: 0.875rem;
}

.ts-wrapper .ts-dropdown .active {
    background-color: rgb(240 253 250);         /* brand-50 */
    color: rgb(15 118 110);                     /* brand-700 */
}

.ts-wrapper .ts-dropdown .option.selected {
    background-color: rgb(240 253 250);
    color: rgb(15 118 110);
    font-weight: 500;
}

.ts-wrapper .ts-dropdown .create {
    color: rgb(71 85 105);                      /* slate-600 */
}

.ts-wrapper .ts-dropdown .create strong {
    color: rgb(15 118 110);
}
