/* Shared dropdown contract, matching the subject selector used as the visual reference. */
:is(body.inside-aside, body.inside-header) {
    --tt-select-height: 40px;
    --tt-select-border: #dce3df;
    --tt-select-green: #168268;
    --tt-select-soft: #eaf5ef;
}
:is(body.inside-aside, body.inside-header) .bootstrap-select.tt-select {
    max-width: 100%;
    min-width: 0;
    height: var(--tt-select-height);
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}
:is(body.inside-aside, body.inside-header) .tt-select > .dropdown-toggle,
:is(body.inside-aside, body.inside-header) .tt-selectpage > input.sp_input,
:is(body.inside-aside, body.inside-header) .tt-selectpage.sp_container_combo {
    box-sizing: border-box;
    height: var(--tt-select-height);
    min-height: var(--tt-select-height);
    padding: 8px 34px 8px 12px;
    color: var(--tt-text, #303a36);
    font-family: inherit;
    font-size: 14px;
    font-weight: 400;
    line-height: 22px;
    background: #fff;
    border: 1px solid var(--tt-select-border);
    border-radius: 6px;
    box-shadow: none;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}
:is(body.inside-aside, body.inside-header) .tt-select > .dropdown-toggle .filter-option { line-height: 22px; }
:is(body.inside-aside, body.inside-header) .tt-select:not(.bs3-has-addon) > .dropdown-toggle .filter-option { padding-right: 0; }
:is(body.inside-aside, body.inside-header) .tt-select > .dropdown-toggle:hover,
:is(body.inside-aside, body.inside-header) .tt-selectpage:not(.sp_disabled):hover { border-color: #a6c9b8; }
:is(body.inside-aside, body.inside-header) .tt-select.open > .dropdown-toggle,
:is(body.inside-aside, body.inside-header) .tt-select > .dropdown-toggle:focus,
:is(body.inside-aside, body.inside-header) .tt-selectpage.sp_container_open > input.sp_input,
:is(body.inside-aside, body.inside-header) .tt-selectpage.sp_container_open.sp_container_combo {
    color: var(--tt-text, #303a36);
    background: #fff;
    border-color: var(--tt-select-green);
    outline: 0 !important;
    box-shadow: 0 0 0 3px #16826812;
}
:is(body.inside-aside, body.inside-header) .tt-select > .dropdown-toggle .caret {
    right: 14px;
    width: 6px;
    height: 6px;
    margin-top: -4px;
    color: #819087;
    border: 0;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
}
:is(body.inside-aside, body.inside-header) .tt-select.open > .dropdown-toggle .caret { margin-top: -1px; transform: rotate(225deg); }
:is(body.inside-aside, body.inside-header) .bootstrap-select > .dropdown-menu.tt-select-menu,
:is(body.inside-aside, body.inside-header) .tt-selectpage-menu.sp_result_area {
    box-sizing: border-box;
    min-width: 0;
    max-width: calc(100vw - 24px);
    padding: 8px !important;
    color: var(--tt-text, #303a36);
    font-family: inherit;
    font-size: 14px;
    background: #fff;
    border: 1px solid var(--tt-select-border);
    border-radius: 8px;
    box-shadow: 0 10px 28px #123b3314, 0 2px 6px #123b3307;
}
:is(body.inside-aside, body.inside-header) .bootstrap-select > .dropdown-menu.tt-select-menu { margin-top: 8px !important; }
:is(body.inside-aside, body.inside-header) .bootstrap-select.tt-page-size > .dropdown-menu.tt-select-menu { min-width: 180px; }
:is(body.inside-aside, body.inside-header) .tenant-platform :is(.tenant-panel, .form-surface):has(.tt-select.open) { overflow: visible; }
:is(body.inside-aside, body.inside-header) .tt-select-menu .bs-searchbox,
:is(body.inside-aside, body.inside-header) .tt-selectpage-search { padding: 2px 2px 10px; }
:is(body.inside-aside, body.inside-header) .tt-select-menu .bs-searchbox .form-control,
:is(body.inside-aside, body.inside-header) .tt-selectpage-search-input {
    box-sizing: border-box;
    display: block;
    width: 100%;
    height: var(--tt-select-height);
    min-height: var(--tt-select-height);
    margin: 0;
    padding: 8px 10px;
    color: var(--tt-text, #303a36);
    font-family: inherit;
    font-size: 14px;
    line-height: 22px;
    background: #fff;
    border: 1px solid var(--tt-select-border);
    border-radius: 6px;
    outline: 0;
    box-shadow: none;
}
:is(body.inside-aside, body.inside-header) .tt-select-menu .bs-searchbox .form-control:focus,
:is(body.inside-aside, body.inside-header) .tt-selectpage-search-input:focus {
    border-color: var(--tt-select-green);
    box-shadow: 0 0 0 3px #16826812;
}
:is(body.inside-aside, body.inside-header) .tt-select-menu input::placeholder,
:is(body.inside-aside, body.inside-header) .tt-selectpage-search-input::placeholder { color: #9aa9a1; }
:is(body.inside-aside, body.inside-header) .tt-select-menu .dropdown-menu.inner,
:is(body.inside-aside, body.inside-header) .tt-selectpage-menu .sp_results {
    margin: 0 !important;
    padding: 0 !important;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}
:is(body.inside-aside, body.inside-header) .tt-select-menu .dropdown-menu.inner > li > a,
:is(body.inside-aside, body.inside-header) .tt-selectpage-menu .sp_results > li {
    position: relative;
    box-sizing: border-box;
    min-height: 38px;
    margin: 2px 0;
    padding: 8px 12px;
    color: var(--tt-text, #303a36);
    font-size: 14px;
    font-weight: 400;
    line-height: 22px;
    border-radius: 5px;
}
:is(body.inside-aside, body.inside-header) .tt-select-menu .dropdown-menu.inner > li:not(.disabled) > a:is(:hover, :focus),
:is(body.inside-aside, body.inside-header) .tt-select-menu .dropdown-menu.inner > li.selected:not(.disabled) > a,
:is(body.inside-aside, body.inside-header) .tt-selectpage-menu .sp_results > li:is(.sp_over, .sp_selected):not(.sp_message_box) {
    color: #126d57 !important;
    background: var(--tt-select-soft) !important;
    font-weight: 400;
}
:is(body.inside-aside, body.inside-header) .tt-select-menu .dropdown-menu.inner > li.disabled > a,
:is(body.inside-aside, body.inside-header) .tt-selectpage-menu .sp_results > li.sp_message_box {
    color: #98a49d;
    background: #fff;
}
:is(body.inside-aside, body.inside-header) .tt-select-menu .dropdown-menu.inner > li.selected > a .text-muted { color: #567c6b !important; }
:is(body.inside-aside, body.inside-header) .tt-select-menu .no-results { margin: 0; padding: 8px 12px; color: #8a9b92; background: #fff; }
:is(body.inside-aside, body.inside-header) .tt-select-menu .dropdown-header { padding: 8px 12px 4px; color: #8a9b92; font-size: 12px; }
:is(body.inside-aside, body.inside-header) .tt-select-menu .divider { margin: 6px 0; background: #edf1ef; }
:is(body.inside-aside, body.inside-header) .tt-selectpage.sp_container_combo { height: auto; padding: 4px 34px 4px 8px; }
:is(body.inside-aside, body.inside-header) .tt-selectpage.sp_container_combo > .sp_element_box { min-height: 30px; }
:is(body.inside-aside, body.inside-header) .tt-selectpage-menu .sp_control_box { height: auto; min-height: 36px; margin: 0 0 6px; padding: 2px 0 6px; background: #fff; border-bottom: 1px solid #edf1ef; }
:is(body.inside-aside, body.inside-header) .tt-selectpage-menu .sp_pagination { height: 36px; margin-top: 6px; padding: 4px 0 0; border-top: 1px solid #edf1ef; }
:is(body.inside-aside, body.inside-header) .tt-select.disabled > .dropdown-toggle,
:is(body.inside-aside, body.inside-header) .tt-select > .dropdown-toggle:disabled,
:is(body.inside-aside, body.inside-header) .tt-selectpage.sp_disabled,
:is(body.inside-aside, body.inside-header) .tt-selectpage > input.sp_input:disabled {
    color: #98a49d;
    background: #f5f7f6;
    border-color: #e2e7e4;
    box-shadow: none;
    opacity: 1;
    cursor: not-allowed;
}
:is(body.inside-aside, body.inside-header) .has-error .tt-select > .dropdown-toggle,
:is(body.inside-aside, body.inside-header) .has-error .tt-selectpage > input.sp_input,
:is(body.inside-aside, body.inside-header) .has-error .tt-selectpage.sp_container_combo { border-color: var(--tt-danger, #c44848); }
@media (prefers-reduced-motion: reduce) {
    :is(body.inside-aside, body.inside-header) .tt-select > .dropdown-toggle { transition: none; }
}
