/* Listexo NiceSelect — Ported from original BBB.Main.Web niceselect.css (Bootstrap Icons + Vanilla JS) */
select.lns-native-hidden {
    display: none !important;
}

.nice-select {
    -webkit-tap-highlight-color: transparent;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    box-sizing: border-box;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    height: 41px;
    line-height: 39px;
    background: #f7f9fb;
    color: #475569;
    outline: 0;
    padding-left: 38px;
    padding-right: 32px;
    position: relative;
    text-align: left !important;
    transition: all .2s ease-in-out;
    user-select: none;
    white-space: nowrap;
    width: 100%;
    z-index: 10;
}

.nice-select.nice-select-sm {
    height: 34px;
    line-height: 32px;
    font-size: 12.5px;
    padding-left: 34px;
    padding-right: 28px;
}

.nice-select.nice-select-auto {
    width: auto;
    min-width: 82px;
}

.nice-select .lns-icon-left {
    color: #F9B90F;
    font-size: 14px;
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    line-height: 1;
}

.nice-select.nice-select-sm .lns-icon-left {
    left: 10px;
    font-size: 13px;
}

.nice-select .lns-icon-right {
    color: #3AACED;
    font-size: 13px;
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    transition: transform .18s ease-in-out;
    pointer-events: none;
    line-height: 1;
}

.nice-select.open .lns-icon-right {
    transform: translateY(-50%) rotate(180deg);
}

.nice-select .current {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%;
}

.nice-select:hover {
    border-color: #cbd5e1;
    background: #ffffff;
}

.nice-select:focus,
.nice-select.open {
    border-color: #3AACED;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(58, 172, 237, .14);
}

.nice-select.open {
    z-index: 1055;
}

.nice-select.disabled {
    background: #eef2f6;
    border-color: #e2e8f0;
    color: #94a3b8;
    pointer-events: none;
    opacity: .75;
}

.nice-select .lns-dropdown {
    background-color: #fff;
    border: 1px solid rgba(24, 69, 139, .14);
    border-radius: 8px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .14);
    box-sizing: border-box;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    min-width: 100%;
    left: 0;
    top: calc(100% + 5px);
    transform-origin: 50% 0;
    transform: scale(.96) translateY(-8px);
    transition: all .18s cubic-bezier(.5, 0, 0, 1.25), opacity .14s ease-out;
    z-index: 1060;
    overflow: hidden;
}

.nice-select.open .lns-dropdown {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1) translateY(0);
}

.nice-select .nice-select-search-box {
    position: relative;
    padding: 8px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.nice-select .nice-select-search-box .lns-search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 12px;
    pointer-events: none;
}

.nice-select .nice-select-search {
    width: 100%;
    height: 32px;
    line-height: 30px;
    padding: 0 10px 0 30px;
    border: 1px solid #dbe3ef;
    border-radius: 6px;
    font-size: 12.5px;
    outline: none;
    background: #fff;
    color: #334155;
}

.nice-select .nice-select-search:focus {
    border-color: #3AACED;
}

.nice-select .list {
    margin: 0;
    padding: 4px 0;
    list-style: none;
    max-height: 230px;
    overflow-y: auto;
}

.nice-select .list::-webkit-scrollbar {
    width: 6px;
}

.nice-select .list::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.nice-select .option {
    cursor: pointer;
    font-weight: 400;
    line-height: 1.35;
    padding: 9px 14px;
    text-align: left;
    color: #334155;
    white-space: normal;
    transition: background .12s ease;
}

.nice-select.nice-select-sm .option {
    padding: 7px 12px;
    font-size: 12.5px;
}

.nice-select .option:hover,
.nice-select .option.focus {
    background-color: #f1f5f9;
    color: #18458B;
}

.nice-select .option.selected {
    background-color: rgba(24, 69, 139, .08);
    color: #18458B;
    font-weight: 700;
}

.nice-select .option.disabled {
    color: #94a3b8;
    cursor: default;
    background: transparent;
}

.nice-select .lns-empty {
    padding: 12px 14px;
    font-size: 12px;
    color: #94a3b8;
    text-align: center;
}

/* Ensure any card containing an open NiceSelect never clips or traps its dropdown under sibling cards */
.bbb-card:has(.nice-select.open),
.admin-card:has(.nice-select.open),
.card:has(.nice-select.open) {
    overflow: visible !important;
    position: relative;
    z-index: 1050 !important;
    transform: none !important;
}
