﻿/* Location (Choices.js) styled to match Bootstrap 5.1 .form-select.
   Bootstrap 5.1.3 uses hardcoded values (#ced4da, 0.25rem, etc.),
   so we do the same here -- var(--bs-border-color) /
   var(--bs-border-radius) do not exist in 5.1 and render as no border. */

/* Outer wrapper carries no border of its own -- the single Bootstrap
   border lives on .choices__inner to avoid a double-border look. */
#serviceCol .choices {
    margin-bottom: 0;
    width: 100%;
    border: 0;
    background: transparent;
    font-size: 1rem;
    line-height: 1.5;
    color: #212529;
}

#serviceCol .choices__inner {
    min-height: calc(1.5em + 0.75rem + 2px);
    padding: 0.375rem 2.25rem 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    background-color: #fff;
    /* Same chevron as .form-select */
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    display: block;
    overflow: hidden;
}

/* Hide the default Choices triangle arrow -- the Bootstrap chevron above replaces it. */
#serviceCol .choices[data-type*="select-one"]::after {
    content: none;
}

#serviceCol .choices[data-type*="select-one"] .choices__inner {
    padding-bottom: 0.375rem;
}

#serviceCol .choices__list--single {
    padding: 0;
    margin-bottom: 0;
    width: 100%;
}

#serviceCol .choices__list--single .choices__item {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Placeholder ("-- Select One --") renders at 50% opacity by default;
   show it in full color to match the native .form-select fields. */
#serviceCol .choices__list--single .choices__placeholder {
    opacity: 1;
    color: #212529;
}

/* Search input shown at the top of the open dropdown */
#serviceCol .choices[data-type*="select-one"] .choices__input {
    background-color: #fff;
    border: 0;
    border-bottom: 1px solid #ced4da;
    border-radius: 0;
    padding: 0.375rem 0.75rem;
    margin: 0;
    font-size: 1rem;
    color: #212529;
}

#serviceCol .choices.is-focused .choices__inner,
#serviceCol .choices.is-open .choices__inner {
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Open state: square off the adjoining corners so box + list read as one control. */
#serviceCol .choices.is-open .choices__inner {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

#serviceCol .choices__list--dropdown {
    width: 100%;
    background-color: #fff;
    border: 1px solid #ced4da;
    border-top: 0;
    border-radius: 0 0 0.25rem 0.25rem;
    margin-top: -1px;
    z-index: 1050;
    overflow: hidden;
}

/* Flipped (opens upward) variant: square off the top corners instead. */
#serviceCol .choices.is-flipped.is-open .choices__inner {
    border-radius: 0.25rem;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

#serviceCol .choices.is-flipped .choices__list--dropdown {
    border-top: 1px solid #ced4da;
    border-bottom: 0;
    border-radius: 0.25rem 0.25rem 0 0;
    margin-top: 0;
    margin-bottom: -1px;
}

#serviceCol .choices__list--dropdown .choices__item {
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    color: #212529;
}

#serviceCol .choices__list--dropdown .choices__item--selectable.is-highlighted {
    background-color: #e9ecef;
}

#serviceCol .choices__list--dropdown .choices__item--selectable.is-selected {
    background-color: #e9ecef;
}
