/**
 * @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%;
    padding: 28px 0;
    overflow: hidden;
    cursor: pointer;
    text-align: left;
    white-space: nowrap;
    line-height: 26px;
    color: #444;
    text-decoration: none;
    background-color: #fff;
    border: none;
}

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

.ms-choice > span { 
    position: absolute;
    top: 0;
    left: 0;
    right: 35px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    padding-left: 20px;
    font-size: 16px;
    color: #9e9e9e;
    font-weight: bold;
    line-height: 60px;
}

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

.ms-choice > div { 
    position: absolute;
    top: 20px;
    right: 20px;
    width: 23px;
    height: 15px;
    background: url('../templates/img/down.png') left top no-repeat;
}

.ms-choice > div.open { 
    background: url('../templates/img/up.png') right top no-repeat;
}

.ms-drop { 
    width: 100%;
    overflow: hidden;
    display: none;
    margin-top: -1px;
    padding: 0;
    position: absolute;
    z-index: 1000;
    background: #fff;
    color: #000;

}

.ms-drop.bottom { 
    top: 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-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: 10px;
    position: relative;
    white-space: nowrap;
    width: 100%;
    z-index: 10000;
}

.ms-search input { 
    width: 100%;
    height: auto !important;
    min-height: 24px;
    padding: 10px;
    margin: 0;
    outline: 0;
    font-family: sans-serif;
    font-size: 1em;
    font-weight: bold;
    color: #000;
    border: none;
    -webkit-border-radius: 0;
    -moz-border-radius: 0;
    border-radius: 0;
    -webkit-box-shadow: 0px 1px 3px -1px rgba(0,0,0,0.27);
    -moz-box-shadow: 0px 1px 3px -1px rgba(0,0,0,0.27);
    box-shadow: 0px 1px 3px -1px rgba(0,0,0,0.27);
}

.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: 10px 8px;
}

.ms-drop ul > li { 
    list-style: none;
    display: list-item;
    background-image: none;
    position: static;
    margin-bottom: 10px;
}

.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: bold;
    display: block;
    white-space: nowrap;
}
.ms-drop ul > li label:hover,.ms-drop ul > li.selected label{ 
    color: #014b94;
    cursor: pointer;
}

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

.ms-drop input[type="checkbox"] { 
    vertical-align: middle;
}

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