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

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

.ms-parent.form-control {
    padding: 0;
}

.ms-choice {
    display: block;
    width: 100%;
    height: 26px;
    padding: 0;
    overflow: hidden;
    cursor: pointer;
    border: 0;
    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;
}

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

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

.ms-choice > span.placeholder {
    color: #999;
}
.ms-choice > div::before {
    content: "\f107";
}
.ms-choice > div {
    position: absolute;
    right: 6px;
    top: 4px;
    color: #999;

    display: inline-block;
    font-family: FontAwesome;
    font-feature-settings: normal;
    font-kerning: auto;
    font-language-override: normal;
    font-size: 20px;
    font-size-adjust: none;
    font-stretch: normal;
    font-style: normal;
    font-synthesis: weight style;
    font-variant: normal;
    font-weight: normal;
    line-height: 1;
    text-rendering: auto;
    transform: rotate(0deg);
    transition: transform 0.5s ease-in-out 0s, top 0.5s ease-in-out 0s;
}

.ms-choice > div.open {
    top: 6px;
    transform: rotate(180deg);
    transition: transform 0.5s ease-in-out, top 0.5s ease-in-out 0s;
}

.ms-choice > div.arrowup {
    transform: rotate(180deg);
    transition: all 1s ease-in 0s;
}
.ms-choice > div.arrowdown {
    transform: rotate(180deg);
    transition: all 1s ease-in 0s;
}

.ms-drop {
    background-clip: padding-box;
    background-color: #fff;
    border: 1px solid rgba(0, 0, 0, 0.15);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.176);
    box-sizing: content-box;
    color: #000;
    display: none;
    font-family: "Roboto Regular";
    list-style: outside none none;
    margin-top: -1px;
    margin-left: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 100%;
    z-index: 1000;
}

.ms-drop.bottom {
    top: 102%;
}

.ms-drop.top {
    bottom: 100%;
    -webkit-box-shadow: 0 -4px 5px rgba(0, 0, 0, .15);
    -moz-box-shadow: 0 -4px 5px rgba(0, 0, 0, .15);
    box-shadow: 0 -4px 5px rgba(0, 0, 0, .15);
}

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

.ms-search input {
    width: 100%;
    height: auto !important;
    min-height: 30px;
    padding: 0 20px 0 5px;
    margin: 0;
    outline: 0;
    font-family: sans-serif;
    font-size: 1em;
    border: 1px solid #aaa;
    -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('../images/icons/multiple-select.png') no-repeat 100% -20px;
    background: url('../images/icons/multiple-select.png') no-repeat 100% -22px, -webkit-gradient(linear, left bottom, left top, color-stop(0.85, white), color-stop(0.99, #eeeeee));
    background: url('../images/icons/multiple-select.png') no-repeat 100% -22px, -webkit-linear-gradient(center bottom, white 85%, #eeeeee 99%);
    background: url('../images/icons/multiple-select.png') no-repeat 100% -22px, -moz-linear-gradient(center bottom, white 85%, #eeeeee 99%);
    background: url('../images/icons/multiple-select.png') no-repeat 100% -22px, -o-linear-gradient(bottom, white 85%, #eeeeee 99%);
    background: url('../images/icons/multiple-select.png') no-repeat 100% -22px, -ms-linear-gradient(top, #ffffff 85%, #eeeeee 99%);
    background: url('../images/icons/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 {
    margin: 0 !important;
    overflow: auto;
    padding: 0;
}

.ms-drop ul > li {
    background-image: none;
    display: list-item;
    list-style: outside none none;
    position: static;
}
/*.ms-drop li:first-child {
    display: none;
}*/

.ms-drop ul > li:last-child {
    border-bottom: none;
}

.ms-drop ul > li:hover {
    background-color: #F5F5F5;
}

.ms-drop ul > li.selected {
    background: none repeat scroll 0 0 #428bca;
    color: #fff;
    outline: none;
}

.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: normal;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ms-drop ul > li label {
    border-bottom: 1px solid #f3f3f3;
    padding: 8px;
    color: #555;
    font-weight: normal;
    display: block;
    white-space: normal;
    margin: 0;
}
.ms-drop ul > li:nth-last-child(2) label {
    border: none !important;
}

.ms-drop ul > li.selected label{
    color: #fff;
}

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

.ms-drop input[type="checkbox"], .ms-drop input[type="radio"] {
    vertical-align: sub;
    margin-right: 8px;
    margin-bottom: 8px;
    float: left;
}

.ms-drop input[type="checkbox"]:active, .ms-drop input[type="checkbox"]:focus {
    outline: none;
}

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