/*
    vue-multiselect, dark-themed to the TrendsLive tokens — shared.

    Extracted from organiser-bookings.css when the ADMIN mail-out builder grew
    the same pickers (the Event block, the button's event target). The Filament
    panel loads none of the organiser sheets, so without this the dropdown
    opened as the library ships it: a white panel with a green highlighted row
    on a black page.

    It depends only on the --tl-* tokens, so it can be linked anywhere. It
    styles the LIBRARY's classes, so `vue-multiselect/dist/vue-multiselect.css`
    still has to be loaded by the bundle that uses it — this re-colours, it does
    not replace.
*/
/* Event filter — vue-multiselect, dark-themed to the TL prototype */
.tl-ms { min-width: 210px; max-width: 300px; font-family: var(--tl-font-app); }
.tl-ms.sm { min-width: 160px; max-width: 220px; }
.tl-ms .multiselect { min-height: 40px; color: var(--tl-fg); font-size: 13px; }
.tl-ms .multiselect__tags { min-height: 40px; padding: 7px 40px 3px 8px; background: var(--tl-surface-2); border: 1px solid var(--tl-border); border-radius: var(--tl-r-md); font-size: 13px; }
.tl-ms .multiselect--active .multiselect__tags { border-color: var(--tl-border-yellow); }
.tl-ms .multiselect__input, .tl-ms .multiselect__single { background: transparent; color: var(--tl-fg); font-size: 13px; padding: 2px 0 0 4px; margin-bottom: 4px; }
.tl-ms .multiselect__placeholder { color: var(--tl-fg-4); font-size: 13px; padding: 4px 0 0 4px; margin-bottom: 4px; }
.tl-ms .multiselect__tag { background: var(--tl-yellow); color: #161920; border-radius: var(--tl-r-pill); font-weight: 600; font-size: 12px; padding: 4px 22px 4px 10px; margin: 2px 4px 2px 0; }
.tl-ms .multiselect__tag-icon { border-radius: var(--tl-r-pill); }
.tl-ms .multiselect__tag-icon::after { color: #161920; }
.tl-ms .multiselect__tag-icon:hover { background: rgba(0,0,0,0.15); }
.tl-ms .multiselect__tag-icon:hover::after { color: #161920; }
.tl-ms .multiselect__content-wrapper { background: var(--tl-surface-1); border: 1px solid var(--tl-border-strong); border-radius: var(--tl-r-md); margin-top: 5px; box-shadow: 0 14px 38px rgba(0,0,0,0.5); z-index: 60; }
.tl-ms .multiselect__option { color: var(--tl-fg-2); font-size: 13px; min-height: 38px; padding: 10px 12px; }
.tl-ms .multiselect__option::after { display: none; }
.tl-ms .multiselect__option--highlight { background: var(--tl-surface-2); color: var(--tl-fg); }
.tl-ms .multiselect__option--selected { background: color-mix(in srgb, var(--tl-yellow) 14%, var(--tl-surface-1)); color: var(--tl-yellow-ink); font-weight: 600; }
.tl-ms .multiselect__option--selected.multiselect__option--highlight { background: var(--tl-surface-2); color: var(--tl-fg); }
.tl-ms .multiselect__select::before { border-color: var(--tl-fg-3) transparent transparent; }
.tl-ms .multiselect__spinner { background: var(--tl-surface-2); }
.tl-ms .multiselect__spinner::before, .tl-ms .multiselect__spinner::after { border-top-color: var(--tl-yellow); }

/*
    Long labels.

    The library sets `white-space: nowrap` on an option and `overflow: auto` on
    the panel, so anything longer than the control was simply cut off at the
    panel's edge — an event called "Wild Wild Step Sat 12th December Manchester"
    read as "…Manches" in the admin mail-out builder's Event block, where the
    inspector is only 300px wide and event titles routinely carry a date and a
    city. A picker that hides the end of the thing being picked cannot be used
    to tell two dates of the same event apart, so an option WRAPS.

    The closed control is the other half: there is only one line there, so a
    chosen long title is truncated with an ellipsis rather than pushing the
    caret arrow off the box.
*/
.tl-ms .multiselect__option { white-space: normal; line-height: 1.35; overflow-wrap: anywhere; }
.tl-ms .multiselect__content-wrapper { overflow-x: hidden; }
.tl-ms .multiselect__single,
.tl-ms .multiselect__placeholder { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* The contact importer's country picker: full width, with its flag and code.
   Without the .tl-ms wrapper it opened as the library ships it — a white box on
   the dark console. */
.tl-ms.cl-country { max-width: none; width: 100%; }
.tl-ms.cl-country .reg-country-opt { display: inline-flex; align-items: center; gap: 8px; }
.tl-ms.cl-country .reg-country-name { color: inherit; }
.tl-ms.cl-country .reg-country-dial { color: var(--tl-fg-3); }
