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

.ms-parent {
    display: inline-block;
    position: relative;
    vertical-align: middle;
}

.ms-choice {
    display: block;
    width: 100%;
    height: 26px;
    padding: 0;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid #aaa;
    text-align: left;
    white-space: nowrap;
    line-height: 26px;
    color: #444;
    text-decoration: none;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
    background-color: #fff;
    position: relative;
}

.ms-choice.disabled {
    background-image: none;
    cursor: not-allowed;
}
.ms-parent .disabled { opacity: .6; }
.ms-choice.disabled:hover { background: #fff; }


.ms-choice > span {
    position: absolute;
    top: 0;
    left: 0;
    line-height: 2.4em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
	width: 100%;
	box-sizing: border-box;
	padding: 0 3em 0 1em;
}

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

.ms-choice > div:before { content: "\f107"; font-family: FontAwesome; }
.ms-choice > div {
	text-align: center;
    position: absolute;
    top: 0;
    right: 0;
	font-size: 1.45em;
	line-height: 1.6em;
	width: 1.5em;
	opacity: .4;
}

.ms-choice > div.open:before {}

.ms-choice:hover { background-color: inherit; color: inherit; }

.ms-drop {
    width: 100%;
    overflow: hidden;
    display: none;
    margin-top: -1px;
    padding: 0;
    position: absolute;
    z-index: 0;
    background: RGBA(236, 240, 241, .85);
	outline: 1px solid white;
}

.ms-drop.bottom {
    top: 0;
}

.ms-drop.top {
    bottom: 0;
}

.ms-search {
    display: inline-block;
    margin: 0;
    position: relative;
    white-space: nowrap;
    width: 100%;
    z-index: 10000;
}

.ms-search:after {
	content:"\f002";
	display:block;
	color:#999;
	font-size:1em;
	line-height:2.4em;
	text-align:center;
	width: 2.1em;
	font-family:FontAwesome;
	position:absolute;
	right:0;
	top:0;
	bottom:0;
}

.ms-search input { padding-right: 3em !important; }

.ms-search, .ms-search input { }

.ms-drop {
    margin-bottom: 3em;
    z-index: 2;
}

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


.ms-drop ul li:hover { background: RGBA(52, 152, 219, .3); }
.ms-drop ul li.selected { background: RGBA(52, 152, 219, 1); color: #fff; }

.ms-drop ul li.ms-select-all { background: RGBA(44, 204, 130, 1); text-align: center; }
.ms-drop ul li.ms-select-all:hover { background: RGBA(44, 204, 130, 1); }

.ms-drop ul li.ms-no-results { background: RGBA(231, 76, 60, 1); text-align: center; color: #fff; }
.ms-drop ul li.ms-no-results:hover { background: RGBA(231, 76, 60, 1);  }

.ms-drop ul > li {
    list-style: none;
    display: list-item;
    background-image: none;
    position: static;
    padding: 0;
}

.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, .ms-no-results {
    font-weight: normal;
    display: block;
	line-height: 1.5em;
	padding: .3em .7em !important;
}

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

.ms-drop ul li label input {
	float: right;
	width: 0px;
	visibility: hidden;
}

.ms-drop ul li label:hover { cursor: pointer; }

.ms-drop .ms-no-results {
    display: none;
}
