/*
 * JurCase-wide bootstrap-select presentation.
 * Bootstrap Select remains the sole widget. No extra JS or fake options.
 * Colors and type follow the canonical JurCase Bootstrap theme.
 */
.bootstrap-select{
 --jc-select-primary:var(--bs-primary,#337e96);
 --jc-select-muted:var(--bs-secondary,#6e7596);
 --jc-select-dark:var(--bs-dark,#201e22);
 --jc-select-line:var(--bs-border-color,#dee2e6);
 --jc-select-surface:var(--bs-white,#fff);
 max-width:100%;
 min-width:0;
}
.bootstrap-select:not(.input-group-btn)>.dropdown-toggle{
 min-height:2.55rem;
 padding:.5rem .8rem;
 background:var(--jc-select-surface);
 border:1px solid var(--jc-select-line);
 border-radius:.5rem;
 box-shadow:none;
 color:var(--jc-select-dark);
 font:400 .82rem/1.4 'Open Sans',sans-serif;
 text-transform:none;
 transition:border-color .15s ease,box-shadow .15s ease,background .15s ease;
}
.bootstrap-select:not(.input-group-btn)>.dropdown-toggle:hover,
.bootstrap-select.show:not(.input-group-btn)>.dropdown-toggle{
 border-color:var(--jc-select-primary);
 background:var(--jc-select-surface);
 color:var(--jc-select-dark);
}
.bootstrap-select:not(.input-group-btn)>.dropdown-toggle:focus,
.bootstrap-select:not(.input-group-btn)>.dropdown-toggle:focus-visible{
 outline:0;
 border-color:var(--jc-select-primary);
 box-shadow:0 0 0 .18rem rgba(51,126,150,.13);
}
.bootstrap-select>.dropdown-toggle .filter-option-inner-inner{
 overflow:hidden;
 text-overflow:ellipsis;
 white-space:nowrap;
}
.bootstrap-select>.dropdown-toggle::after{color:var(--jc-select-primary)}
/* Width is anchored to the control, not to its longest option. The scroll
 * limit also applies when Bootstrap Select flips to a dropup. */
.bootstrap-select>.dropdown-menu{
 box-sizing:border-box;
 width:100%!important;
 min-width:0!important;
 max-width:min(100%,calc(100vw - 1.5rem))!important;
 max-height:min(21rem,calc(100dvh - 6rem))!important;
 padding:.25rem;
 border:1px solid var(--jc-select-line);
 border-radius:.6rem;
 background:var(--jc-select-surface);
 box-shadow:0 .5rem 1.4rem rgba(32,30,34,.12);
 overflow:hidden;
 z-index:1105;
}
.bootstrap-select>.dropdown-menu>.inner{
 max-height:min(14.5rem,calc(100dvh - 11rem))!important;
 overflow-y:auto!important;
 overscroll-behavior:contain;
 scrollbar-width:thin;
}
.bootstrap-select>.dropdown-menu .dropdown-menu.inner{max-width:100%;padding:0}
.bootstrap-select>.dropdown-menu .bs-searchbox{
 padding:.45rem .45rem .35rem;
}
.bootstrap-select>.dropdown-menu .bs-searchbox .form-control{
 display:block;
 height:2.25rem;
 min-height:2.25rem;
 width:100%;
 padding:.35rem .65rem;
 font:400 .78rem/1.4 'Open Sans',sans-serif;
 color:var(--jc-select-dark);
 background:var(--jc-select-surface);
 border:1px solid var(--jc-select-line);
 border-radius:.4rem;
 box-shadow:none;
}
.bootstrap-select>.dropdown-menu .bs-searchbox .form-control:focus{
 border-color:var(--jc-select-primary);
 outline:0;
 box-shadow:0 0 0 .13rem rgba(51,126,150,.12);
}
.bootstrap-select>.dropdown-menu .bs-searchbox .form-control::placeholder{color:var(--jc-select-muted)}
.bootstrap-select>.dropdown-menu .bs-actionsbox{
 padding:.35rem .45rem .45rem;
}
.bootstrap-select>.dropdown-menu .bs-actionsbox .btn-group{
 display:grid;
 grid-template-columns:repeat(2,minmax(0,1fr));
 width:100%;
 gap:.35rem;
}
.bootstrap-select>.dropdown-menu .bs-actionsbox .btn{
 display:flex;
 align-items:center;
 justify-content:center;
 min-width:0;
 min-height:2.1rem;
 padding:.32rem .3rem;
 border:1px solid var(--jc-select-line);
 border-radius:.35rem!important;
 background:var(--bs-light,#f8f8f8);
 color:var(--jc-select-primary);
 font:600 .69rem/1.25 'Open Sans',sans-serif;
 letter-spacing:0;
 text-transform:none!important;
 white-space:normal;
 overflow-wrap:anywhere;
 box-shadow:none;
}
.bootstrap-select>.dropdown-menu .bs-actionsbox .btn:hover,
.bootstrap-select>.dropdown-menu .bs-actionsbox .btn:focus-visible{
 background:rgba(51,126,150,.075);
 border-color:var(--jc-select-primary);
 outline:0;
}
.bootstrap-select>.dropdown-menu .dropdown-item{
 display:flex;
 align-items:center;
 min-height:2.15rem;
 padding:.42rem 1.65rem .42rem .65rem!important;
 border-radius:.34rem;
 color:var(--jc-select-dark);
 background:transparent;
 font:400 .78rem/1.4 'Open Sans',sans-serif;
 white-space:normal;
 overflow-wrap:anywhere;
 text-transform:none;
}
.bootstrap-select>.dropdown-menu .dropdown-item:hover,
.bootstrap-select>.dropdown-menu .dropdown-item:focus{
 color:var(--jc-select-primary);
 background:rgba(51,126,150,.075);
 outline:0;
}
.bootstrap-select>.dropdown-menu .dropdown-item.active,
.bootstrap-select>.dropdown-menu .selected>.dropdown-item,
.bootstrap-select>.dropdown-menu .dropdown-item[aria-selected="true"]{
 background:rgba(51,126,150,.10);
 color:var(--jc-select-primary);
 font-weight:600;
}
.bootstrap-select>.dropdown-menu .dropdown-item .check-mark{
 color:var(--jc-select-primary);
}
.bootstrap-select>.dropdown-menu .no-results,
.bootstrap-select>.dropdown-menu .dropdown-header{
 padding:.5rem .7rem;
 color:var(--jc-select-muted);
 font:400 .74rem/1.45 'Open Sans',sans-serif;
}
@media(max-width:575.98px){
 .bootstrap-select>.dropdown-menu{
  max-width:calc(100vw - 1.25rem)!important;
  max-height:min(18rem,calc(100dvh - 5rem))!important;
 }
 .bootstrap-select>.dropdown-menu>.inner{
  max-height:min(11rem,calc(100dvh - 10rem))!important;
 }
}
@media(prefers-reduced-motion:reduce){
 .bootstrap-select:not(.input-group-btn)>.dropdown-toggle{transition:none}
}
