:root {
    --s-icon-font: 'FontAwesome';
    --s-icon-solid: 400;
    --s-placeholder: #777;
    --s-disabled: #606570;
    --s-inactive: #999;
    --s-input-bg: #fff;
    --s-input-border: rgba(0, 0, 0, 0.1);
    --s-input-border-error: #e83d3d;
    --s-input-text: #000;
    --s-input-clear: #b33f32;
    --s-input-outline: rgba(38, 113, 203, 0.25);
    --s-input-outline-error: rgba(203, 48, 48, 0.25);
    --s-input-readonly-bg: #f3f3f3;
    --s-select2-check: #09589d;
}

.select2-offscreen,
.select2-offscreen:focus {
    clip: rect(0 0 0 0) !important;
    width: 1px !important;
    height: 1px !important;
    border: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
    outline: 0 !important;
    left: 0px !important;
    top: 0px !important;
}

.select2-display-none {
    display: none;
}

.select2-measure-scrollbar {
    position: absolute;
    top: -10000px;
    left: -10000px;
    width: 100px;
    height: 100px;
    overflow: scroll;
}

.select2-container {
    position: relative;
    display: inline-block;
    vertical-align: middle;
    border-radius: 4px;
}

.select2-default {
    color: var(--s-placeholder) !important;
}

.select2-choice {
    display: block;
    height: calc(2.25rem + 2px);
    padding: 0 0 0 8px;
    overflow: hidden;
    position: relative;
    white-space: nowrap;
    line-height: 2.25rem;
    color: var(--s-input-text);
    text-decoration: none;
    border: 1px solid var(--s-input-border);
    border-radius: 4px;
    background-color: var(--s-input-bg);
    background-clip: padding-box;
    user-select: none;
}

.select2-choice:focus-visible {
    outline: none;
}

.select2-choice:hover {
    color: var(--s-input-text);
}

.select2-dropdown-open .select2-choice,
.select2-dropdown-open .select2-choices {
    border-radius: 4px 4px 0 0;
}

.select2-drop-above .select2-choice,
.select2-drop-above .select2-choices {
    border-radius: 0 0 4px 4px;
}

.select2-container-disabled .select2-choice {
    background-color: rgba(var(--s-bright-rgb), 0.02);
    color: var(--s-disabled);
    cursor: default;
}

.select2-container-disabled .select2-arrow {
    opacity: 0.3;
}

.select2-chosen {
    margin-right: 1.5rem;
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    float: none;
    width: auto;
}

.select2-allowclear .select2-chosen {
    margin-right: 3rem;
}

.select2-search-choice-close {
    color: var(--s-input-clear);
    display: none;
    position: absolute;
    right: 1.5em;
    top: 0;
    width: 1em;
    text-decoration: none;
    border: 0;
    cursor: pointer;
    outline: 0;
    background: transparent;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.select2-search-choice-close:hover {
    color: var(--s-input-clear);
}

.select2-allowclear .select2-search-choice-close,
.select2-choices .select2-search-choice-close {
    display: flex;
    cursor: pointer;
    color: var(--s-input-clear);
}

.select2-choices .select2-search-choice-close {
    color: var(--s-input-clear);
    right: 3px;
}

.select2-search-choice-close::after {
    font-family: var(--s-icon-font);
    content: "\f00d";
    line-height: 1;
}

.select2-container-disabled .select2-search-choice-close {
    display: none;
}

.select2-drop-mask {
    border: 0;
    margin: 0;
    padding: 0;
    position: fixed;
    left: 0;
    top: 0;
    min-height: 100%;
    min-width: 100%;
    height: auto;
    width: auto;
    opacity: 0;
    z-index: 9998;
}

.select2-drop {
    width: 100%;
    margin-top: -1px;
    position: absolute;
    z-index: 9999;
    top: 100%;
    background: var(--s-input-bg);
    color: var(--s-input-text);
    border: 1px solid var(--s-input-border);
    border-top: 0;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 4px 5px rgba(0, 0, 0, .15);
}

.select2-drop.select2-drop-above {
    margin-top: 1px;
    border-bottom: 0;
    border-radius: 4px 4px 0 0;
    box-shadow: 0 -4px 5px rgba(0, 0, 0, .15);
}

.select2-drop-active {
    border: 1px solid var(--s-input-border);
    border-top: none;
}

.select2-drop.select2-drop-above.select2-drop-active {
    border-top: 1px solid var(--s-input-border);
}

.select2-drop-auto-width {
    border-top: 1px solid var(--s-input-border);
    width: auto;
}

.select2-drop-auto-width .select2-search {
    padding-top: 4px;
}

.select2-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.5em;
    height: 100%;
    position: absolute;
    right: 0;
    top: 0;
    color: var(--bs-body-color);
}

.select2-arrow > b {
    display: none;
}

.select2-arrow::after {
    font-family: var(--s-icon-font);
    content: "\f107";
}

.select2-dropdown-open .select2-arrow::after {
    content: "\f106";
}

.select2-search {
    display: inline-block;
    width: 100%;
    min-height: 26px;
    margin: 0;
    padding-left: 4px;
    padding-right: 4px;
    position: relative;
    z-index: 10000;
    white-space: nowrap;
}

.select2-search input {
    width: 100%;
    height: auto !important;
    min-height: 26px;
    padding: 4px 1.5em 4px 5px;
    margin: 0;
    outline: 0;
    border: 1px solid var(--s-input-border);
    border-radius: 0;
    box-shadow: none;
}

.select2-search::after {
    content: "\f002";
}

.select2-search::after,
.select2-search-field.select2-active::after,
.select2-more-results.select2-active::after {
    font-family: var(--s-icon-font);
    font-style: normal;
    color: var(--s-input-text);
    position: absolute;
    right: 8px;
    top: 5px;
}

.select2-search.select2-active::after,
.select2-search-field.select2-active::after,
.select2-more-results.select2-active::after {
    content: "\f110";
    animation: spinner-border .75s linear infinite;
}

.select2-drop.select2-drop-above .select2-search input {
    margin-top: 4px;
}

.select2-dropdown-open.select2-drop-above .select2-choice,
.select2-dropdown-open.select2-drop-above .select2-choices {
}

.select2-hidden-accessible {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

.select2-results {
    max-height: 200px;
    padding: 0 0 0 4px;
    margin: 4px 4px 4px 0;
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

.select2-results ul.select2-result-sub {
    margin: 0;
    padding-left: 0;
}

.select2-results li {
    list-style: none;
    display: list-item;
    background-image: none;
}

.select2-results li.select2-result-with-children > .select2-result-label {
    font-weight: bold;
}

.select2-results .select2-result-label {
    padding: 3px 7px 4px;
    margin: 0;
    cursor: pointer;
    min-height: 1em;
    user-select: none;
}

.select2-results-dept-1 .select2-result-label {
    padding-left: 20px
}

.select2-results-dept-2 .select2-result-label {
    padding-left: 40px
}

.select2-results-dept-3 .select2-result-label {
    padding-left: 60px
}

.select2-results-dept-4 .select2-result-label {
    padding-left: 80px
}

.select2-results-dept-5 .select2-result-label {
    padding-left: 100px
}

.select2-results-dept-6 .select2-result-label {
    padding-left: 110px
}

.select2-results-dept-7 .select2-result-label {
    padding-left: 120px
}

.select2-results .select2-highlighted {
    background:#9dcdfc;
}

.select2-results li em {
    background: #feffde;
    font-style: normal;
}

.select2-results .select2-highlighted em {
    background: transparent;
}

.select2-results .select2-highlighted ul {
    background: #fff;
    color: #000;
}

.select2-results .select2-no-results,
.select2-results .select2-searching,
.select2-results .select2-ajax-error,
.select2-results .select2-selection-limit {
    display: list-item;
    padding-left: 5px;
    color: var(--s-no-results);
}

.select2-results .select2-disabled.select2-highlighted {
    color: #777;
    background: #f4f4f4;
    display: list-item;
    cursor: default;
}

.select2-results .select2-disabled {
    background: #f4f4f4;
    display: list-item;
    cursor: default;
}

.select2-results .select2-selected {
    display: none;
}

.select2-results .select2-ajax-error {
    background: rgba(255, 50, 50, .2);
}

.select2-more-results {
    display: list-item;
}

.select2-choices {
    height: auto !important;
    height: 1%;
    margin: 0;
    padding: 0 5px 0 0;
    position: relative;
    background-color: var(--s-input-bg);
    background-clip: padding-box;
    min-height: calc(2.25rem + 2px);
    border: 1px solid var(--s-input-border);
    border-radius: 4px;
    cursor: text;
    overflow: hidden;
}

.select2-locked {
    padding: 3px 5px 3px 5px !important;
}

.select2-choices li {
    float: left;
    list-style: none;
}

.select2-search-field {
    margin: 0;
    padding: 0;
    white-space: nowrap;
}

.select2-choices .select2-input {
    padding: calc(0.375rem - 2px) 0.75rem;
    margin: 2px 0;
    color: var(--s-input-text);
    outline: 0;
    border: 0;
    box-shadow: none;
    background: transparent !important;
}

.select2-search-choice {
    padding: calc(0.375rem - 3px) 18px calc(0.375rem - 3px) 5px;
    margin: 2px 0 2px 5px;
    position: relative;
    cursor: default;
    border: 1px solid var(--s-input-border);
    border-radius: 4px;
    background-clip: padding-box;
    background-color: rgba(var(--s-bright-rgb), 0.02);
    user-select: none;
}

.select2-container-disabled .select2-choices {
    background-color: rgba(var(--s-bright-rgb), 0.02);
    cursor: default;
}

.select2-container-disabled .select2-search-choice {
    padding-left: 5px;
    padding-right: 5px;
    background-color: transparent;
    color: var(--s-disabled);
}

.select2-choices .select2-chosen {
    cursor: default;
}

.select2-check {
    width: 1.2em;
    display: inline-block;
    margin-right: 0.2em;
}

.select2-check::before {
    font-family: var(--s-icon-font);
    content: "\f096";
    font-style: normal;
    color: #666;
    font-size: 18px;
    vertical-align: -2px;
    line-height: 14px;
}

.select2-selected .select2-check::before {
    content: "\f046";
    color: var(--s-select2-check);
}

.select2-parent-selected .select2-check::before {
    content: "\f046";
    opacity: 0.4;
    color: var(--s-select2-check);
}

.select2-partial .select2-check::before {
    font-family: var(--s-icon-font);
    content: "\f146";
    color: var(--s-select2-check);
}

.select2-search-choice-focus {
    background-color: rgba(var(--s-bright-rgb), 0.1);
}

.select2-result-selectable .select2-match,
.select2-result-unselectable .select2-match {
    text-decoration: underline;
}


/* AutoMKVSearcher */
.level-2 {
    padding-left: 25px;
}

.level-3 {
    padding-left: 50px;
}

.select2-drop-multi-check .select2-results {
    max-height: 300px;
}

.select2-drop-multi-check .select2-results .select2-selected {
    display: list-item;
}

.select2-drop-multi-check .select2-results .select2-result-hidden {
    display: none !important;
}

.select2-drop-multi-check .select2-results .select2-result-label {
    padding-right: 0;
}

.select2-drop-multi-check .select2-result-label {
    position: relative;
    padding: 5px 0 5px 8px;
}

.select2-result-info {
    position: absolute;
    top: -5px;
    bottom: -5px;
    right: 3em;
    max-width: 30%;
    color: #294d6c;
    display: none;
    align-items: center;
}

.select2-result:hover .select2-result-info {
    display: flex;
}

.select2-tree-toggle {
    position: absolute;
    top: -5px;
    bottom: -5px;
    right: 0;
    width: 3em;
    display: flex;
    align-items: center;
    justify-content: center;
}

.select2-tree-toggle::before {
    font-family: var(--s-icon-font);
    content: "\f078";
    color: #777;
}

.select2-result-expand .select2-tree-toggle::before {
    content: "\f077";
}

.s-AutoMKVSearcher .select2-choices {
    padding: 6px 4px;
}

.s-AutoMKVSearcher .select2-choices .select2-search-choice-close {
    right: 7px;
    color: #ac76c3;
}

.s-AutoMKVSearcher .select2-choices .select2-input {
    padding: calc(0.5rem - 2px) 0.75rem;
    margin: 4px 0;
}

.s-AutoMKVSearcher .select2-search-choice {
    padding: calc(0.5rem - 3px) 24px calc(0.5rem - 3px) 10px;
    border-radius: 14px;
    margin: 4px 0 4px 5px;
    font-weight: 500;
    background-color: rgba(70, 198, 255, 0.15);
}
