.fufi-ms-wrap {
    position: relative;
}
.fufi-ms-wrap,
.fufi-ms-wrap * {
    box-sizing: border-box;
}
.fufi-ms-wrap > button:focus,
.fufi-ms-wrap > button {
    position: relative;
    width: 100%;
    text-align: left;
    background-color: #fff;
    padding: 5px 20px 5px 5px;
    margin: 0;
    font-size: 13px;
    outline-offset: -2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    transition: border-color .1s, box-shadow .1s;
    height: 30px;
	max-width: 100%;
	display: flex;
    align-items: center;
	font-weight: 400;
}
.fufi-ms-wrap > button[disabled] {
    background-color: #e5e9ed;
    color: #808080;
    opacity: 0.6;
}
.fufi-ms-wrap > button::before {
	content: "";
    position: absolute;
    right: 5px;
    font-family: "Font Awesome 6 Free","Font Awesome 5 Free","FontAwesome";
    color: #6d6d6d;
    font-size: 14px;
}
.fufi-ms-wrap.ms-has-selections > button {
    color: #333;
}
.fufi-ms-wrap > .fufi-ms-popup {
    position: absolute;
    left: 0;
    width: 100%;
    /*margin-top: 2px;*/
    margin-bottom: 20px;
    background: white;
    z-index: 2000;
    border: 1px solid #cbd5e1;
	/*border-top: 0;*/
    overflow: auto;
    visibility: hidden;
	border-radius: 0;
	overflow-x: hidden;
}
.fufi-ms-wrap.ms-active > button {
	border-radius: 6px 6px 0 0;
}
.fufi-ms-wrap.ms-active > .fufi-ms-popup {
    visibility: visible
}

.fufi-ms-wrap > .fufi-ms-popup > .ms-search input {
    width: 100%;
    padding: 4px 5px;
    border: none;
    border-bottom: 1px groove;
    outline: none;
}

.fufi-ms-wrap > .fufi-ms-popup > .no-result-message {
    padding: 4px 5px;
    display: none;
}

.fufi-ms-wrap > .fufi-ms-popup .ms-selectall {
    display: inline-block;
    font-size: .9em;
    text-transform: lowercase;
    text-decoration: none;
}
.fufi-ms-wrap > .fufi-ms-popup .ms-selectall:hover {
    text-decoration: underline;
}

.fufi-ms-wrap > .fufi-ms-popup > .ms-selectall.global {
    margin: 4px 5px;
}

.fufi-ms-wrap > .fufi-ms-popup > ul,
.fufi-ms-wrap > .fufi-ms-popup > ul > li.optgroup ul {
    list-style-type: none;
    padding: 5px 0;
    margin: 0;
	display: flex;
    flex-direction: column;
    gap: 5px;
}

.fufi-ms-wrap > .fufi-ms-popup > ul li.ms-hidden {
    display: none;
}

.fufi-ms-wrap > .fufi-ms-popup > ul > li.optgroup {
    padding: 5px;
}
.fufi-ms-wrap > .fufi-ms-popup > ul > li.optgroup + li.optgroup {
    border-top: 1px solid #aaa;
}

.fufi-ms-wrap > .fufi-ms-popup > ul > li.optgroup .label {
    display: block;
    padding: 5px 0 0 0;
    font-weight: bold;
}
.fufi-ms-wrap > .fufi-ms-popup > ul > li {
    margin: 0;
    padding: 5px 10px;
	text-wrap-mode: nowrap;
	line-height: normal;
}

.fufi-ms-wrap > .fufi-ms-popup > ul label {
	display: flex;
    gap: 10px;
	align-items: center;
    /*position: relative;
    display: inline-block;
    width: 100%;
    padding: 4px 4px 4px 20px;
    margin: 1px 0;
    border: 1px dotted transparent;*/
}
.fufi-ms-wrap > .fufi-ms-popup.checkbox-autofit > ul label,
.fufi-ms-wrap > .fufi-ms-popup.hide-checkbox > ul label {
    padding: 4px;
}

.fufi-ms-wrap > .fufi-ms-popup > ul li.focused,
.fufi-ms-wrap > .fufi-ms-popup > ul li:hover {
    background-color: #efefef;
    border-color: #999;
}

.fufi-ms-wrap > .fufi-ms-popup > ul li.selected {
    background-color: #efefef;
    border-color: transparent;
}

.fufi-ms-wrap > .fufi-ms-popup > ul input[type="checkbox"] {
	margin: 0;
	outline: none;
	position: relative;
    /*margin: 0 5px 0 0;
    position: absolute;
    left: 4px;
    top: 7px;*/
}

.fufi-ms-wrap > .fufi-ms-popup.hide-checkbox > ul input[type="checkbox"] {
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    clip: rect(1px 1px 1px 1px);
    clip: rect(1px, 1px, 1px, 1px);
}
