/**
 * @author zhixin wen <wenzhixin2010@gmail.com>
 */

.ms-parent {
    display: inline-block;
    position: relative;
    vertical-align: middle;
	width: 100% !important;
}

.ms-choice {
    display: block;
    width: 100%;
    height: calc(2.25rem + 2px);
    padding: .375rem 0.75rem;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #e6ebf1;
    border-radius: .25rem;
    transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;
    font-size: 14px;
    line-height: 13px;
}

.ms-choice.disabled {
    background-color: #f3f4f7;
    background-image: none;
    border: 1px solid #e6ebf1;
    cursor: default;
}

.ms-choice > span {
    position: absolute;
    top: 13px;
    left: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    padding-left: 18px;
}

.ms-choice > span.placeholder {
    color: #999;
    opacity: 0;
}

.ms-choice > div {
    position: absolute;
    top: 7px;
    right: 0;
    width: 20px;
    height: 25px;
    background: url('multiple-select.png') left top no-repeat;
}

.ms-choice > div.open {
    background: url('multiple-select.png') right top no-repeat;
}

.ms-drop {
    width: 100%;
    overflow: hidden;
    display: none;
    margin-top: -3px;
    padding: 0;
    position: absolute;
    z-index: 10;
    background: #fff;
    color: #000;
    border: 1px solid #e6ebf1;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 0 0 4px 4px;
}

.ms-drop.bottom {
    top: 100%;
    box-shadow: 0px 16px 18px rgba(4, 4, 7, 0.1);
}

.ms-drop.top {
    bottom: 100%;
    box-shadow:0px 16px 18px rgba(4, 4, 7, 0.1);
}

.ms-search {
    display: inline-block;
    margin: 0;
    min-height: 26px;
    padding: 4px;
    position: relative;
    white-space: nowrap;
    width: 100%;
    z-index: 10000;
}
.ms-parent .placeholder{
	height:0;
	width:0;
	border:0;
}
.ms-parent.form-control{
	width:100% !important;
}
.ms-search input {
    width: 100%;
    height: auto !important;
    min-height: 24px;
    padding: 0 20px 0 5px;
    margin: 0;
    outline: 0;
    font-family: sans-serif;
    font-size: 1em;
    border: 1px solid #e6ebf1;
    -webkit-border-radius: 0;
    -moz-border-radius: 0;
    border-radius: 0;
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    box-shadow: none;
    background: #fff url('multiple-select.png') no-repeat 100% -22px;
    background: url('multiple-select.png') no-repeat 100% -22px, -webkit-linear-gradient(center bottom, white 85%, #eeeeee 99%);
    background: url('multiple-select.png') no-repeat 100% -22px, -moz-linear-gradient(center bottom, white 85%, #eeeeee 99%);
    background: url('multiple-select.png') no-repeat 100% -22px, -o-linear-gradient(bottom, white 85%, #eeeeee 99%);
    background: url('multiple-select.png') no-repeat 100% -22px, -ms-linear-gradient(top, #ffffff 85%, #eeeeee 99%);
    background: url('multiple-select.png') no-repeat 100% -22px, linear-gradient(top, #ffffff 85%, #eeeeee 99%);
}

.ms-search, .ms-search input {
    -webkit-box-sizing: border-box;
    -khtml-box-sizing: border-box;
    -moz-box-sizing: border-box;
    -ms-box-sizing: border-box;
    box-sizing: border-box;
}

.ms-drop ul {
    overflow: auto;
    margin: 0;
    padding: 5px 8px;
}

.ms-drop ul > li {
    list-style: none;
    display: block;
    background-image: none;
    position: static;
    height: 30px;
    line-height: 30px;
    padding: 0 6px;
    border-radius: 4px;
}

.ms-drop ul > li .disabled {
    opacity: .35;
    filter: Alpha(Opacity=35);
}

.ms-drop ul > li.multiple {
    display: block;
    float: left;
}

.ms-drop ul > li.group {
    clear: both;
}

.ms-drop ul > li.multiple label {
    width: 100%;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ms-drop ul > li label {
    font-weight: normal;
    display: block;
    white-space: nowrap;
}

.ms-drop ul > li label.optgroup {
    font-weight: bold;
}

.ms-drop input[type="checkbox"] {
    vertical-align: middle;
    vertical-align: middle;
    margin-right: 6px;
    margin-bottom: 1px;
    margin-left: 6px;
    width: 20px;
    height: 20px;
    background: #fff;
    border: #fff;
    box-shadow: none;
}
.ms-drop input[type="radio"]{
	margin-right: 6px;
    margin-bottom: 1px;
	margin-left: 6px;
	margin-top:1px;
}

.ms-drop .ms-no-results {
    display: none;
}
.ms-drop .multiple{
	width:90px !important;	
}
.ms-drop  .custom-checkbox:before{
	background:transparent;
}
.ms-drop  .custom-control-label {
	margin-bottom: 0;
	display: block;
	margin-top: 2px;
	line-height: 28px;
}
.ms-drop .custom-control-label::before {
	position: absolute;
	top: 0.4rem;
	display: block;
	width: 1rem;
	height: 1rem;
	pointer-events: none;
	content: "";
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
	background-color: #fff;
}
.ms-drop .custom-control-label::after {
	position: absolute;
	top: 0.4rem;
	display: block;
	width: 1rem;
	height: 1rem;
	content: "";
	background-repeat: no-repeat;
	background-position: center center;
	background-size: 50% 50%;
}
.ms-drop .custom-control-input {
    position: absolute;
    z-index: -1;
    opacity: 0;
}
.ms-drop  .custom-checkbox .custom-control-input:indeterminate~.custom-control-label::before {
    background-color: transparent;
}
