.SumoSelect {
    min-width: fit-content;
    width: fit-content;
    text-align: left;
}

.SumoSelect label {
    text-align: left;
    font-weight: normal;
    font-variant: normal;
    margin: 0;
    padding: 0;
}

.full-width .SumoSelect {
    width: 100%;
}

.SumoSelect > .optWrapper > .options li span { display: inline; }

.SumoSelect > p.specificValue span.match {
    color: inherit !important;
    font-weight: inherit !important;
}


.SumoSelect > .optWrapper.multiple.okCancelInMulti > .MultiControls > p {
    padding: 6px;
    background: #3d98d6;
    margin: 4px;
    border-radius: 6px;
    font-size: 9.5pt;
}

.SumoSelect > .optWrapper.multiple.okCancelInMulti > .MultiControls {
    display: flex;
}

.SumoSelect > .optWrapper.multiple.okCancelInMulti > .MultiControls > p {
    background: #3d98d6;
}

.SumoSelect > .CaptionCont {
    text-align: left;
    font-weight: normal;
    border: 1px solid #00000020;
    min-height: 1.8rem;
}

.SumoSelect > .CaptionCont > label > i {
    background-image: none;
}

.SumoSelect p {
    text-align: left;
    font-size: 0.96rem;
    white-space: normal;
}

.SumoSelect .search-txt {
    padding: 0 5px;
    font-size: 10pt;
    min-height: unset;
}

.SumoSelect > .optWrapper > .options li.opt { 
    padding: 3px 6px;
    border-bottom: none;
    line-height: normal;
}

.SumoSelect.open .search-txt {
    box-shadow: none;
    background: #f0fff030 !important;
    width: calc(100% - 24px);
    margin: auto 0;
    position: relative;
    padding: 1px 5px;
    font-size: 10pt;
    min-height: unset;
    grid-row: 1;
    grid-column: 1;
}

.SumoSelect .select-all {
    height: 25px;
    padding: 3px 0 2px 35px;
    background: #f5f5f5;
}

.report-heading select,
.report-heading .SumoSelect > .CaptionCont {
    background: #ffffff70;
    color: #f06000;
}


.report-heading .SumoSelect {
    width: unset;
    flex-grow: 1;
}

.SumoSelect > .optWrapper {
    min-width: unset;
}

.SumoSelect > .optWrapper.multiple > .MultiControls > p:hover {
    background-color: #618bc8;
}

.SumoSelect .sel > label {
    color: white;
}


.SumoSelect .opt:hover {
    background-color: #a1c0e4;
    color: white;
}

.SumoSelect > .optWrapper > .options {
    max-height: 450px;
    padding: 3pt 0;
}

.SumoSelect > .optWrapper.multiple > .options li.opt span i,
.SumoSelect .select-all > span i
{
    box-shadow: none;
    background: none;
    border: none;
    position: relative;
}

.SumoSelect > .optWrapper.multiple > .options li.opt span i:after,
.SumoSelect .select-all > span i:after,
.SumoSelect .select-all.selected.partial > span i:after
{
    position: absolute;

    font-family: 'Font Awesome 6 Duotone';
    content: '\10f0c8';
    font-weight: 900;
    color: #90909060;
    font-size: 14pt;
    left: 7px;
    top: 3px;
}

.SumoSelect > .optWrapper.multiple > .options li.opt.selected span i,
.SumoSelect .select-all.selected > span i,
.SumoSelect .select-all.partial > span i
{
    box-shadow: none;
    background: none;
    border: none;
    position: relative;
}


.SumoSelect > .optWrapper.multiple > .options li.opt.selected span i:before,
.SumoSelect .select-all.selected > span i:before
{
    font-family: 'Font Awesome 6 Duotone';
    position: absolute;
    content: '\f14a';
    font-weight: 900;
    color: white;
    font-size: 14pt;
    left: 7px;
    top: 3px;
}

.SumoSelect .select-all.partial > span i:before {
    content: none;
}


.SumoSelect > .optWrapper.multiple > .options li.opt.selected span i:after,
.SumoSelect .select-all.selected > span i:after
{
    font-family: 'Font Awesome 6 Duotone';
    position: absolute;
    content: '\10f14a';
    font-weight: 900;
    color: #0080ff;
    font-size: 14pt;
    left: 7px;
    top: 3px;
}

.SumoSelect .select-all.partial > span i:after {

}

/* Hide the add-on so it doesn't interfere with the X-button of the search element */

.SumoSelect div.optWrapper {
    border-top:none;
    min-width: fit-content;
}

.SumoSelect.open > .optWrapper {
    top: 100%;
    border-radius: 0 0 3px 3px;
    margin-top: -1px;
}

.SumoSelect .CaptionCont {
    display: grid;
    align-items: center;
}

.SumoSelect .CaptionCont:has(.search-txt) {
    min-height: 1.8rem;
    padding: 2px 5px;
}

.SumoSelect > .CaptionCont > span {
    width: 100%;
    grid-row: 1;
    grid-column: 1;
}

.SumoSelect.open + .input-addon {
    transform: rotate(-180deg);
}

.darkTheme .SumoSelect > .CaptionCont {
    background-color: #484646;
}

.SumoSelect .searchContainer {
    width: 100%;
}

.SumoSelect .max-reached {
    display: none;
    color: #fe7500;
    font-size: 9pt;
    margin: 5pt;
    text-align: center;
}

.SumoSelect em {
    font-weight: bold;
}

.CaptionCont .match {
    color: inherit !important;
    font-weight: inherit !important;
}
