/**
 * @author zhixin wen <wenzhixin2010@gmail.com>
 */

.ms-parent {
    display: inline-block;
    position: relative;
    vertical-align: middle;
}

.ms-choice {
    display: none;
    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;
}

.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: 20px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    padding-left: 8px;
}

.ms-choice > span.placeholder {
    color: #999;
}

.ms-choice > div {
    position: absolute;
    top: 0;
    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: -1px; */
    padding: 0;
    /* position: absolute; */
    /* z-index: 1000; */
    /* background: #fff; */
    color: #000;
    /* border: 1px solid #aaa; */
    /* -webkit-border-radius: 4px; */
    /* -moz-border-radius: 4px; */
    /* border-radius: 4px; */
}

.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: 4px 0 8px;
    position: relative;
    white-space: nowrap;
    width: 100%;
    /* z-index: 10000; */
}

.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 #cfcfcf;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
    -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-gradient(linear, left bottom, left top, color-stop(0.85, white), color-stop(0.99, #eeeeee));
    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: 0;
}

.ms-drop ul > li {
    list-style: none;
    display: list-item;
    background-image: none;
    position: static;
}

.ms-drop ul > li .disabled {
    color: #fff;
    background-color: #cfcfcf;
    cursor: default;
}

.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;
    overflow:hidden;white-space:nowrap; text-overflow:ellipsis;
}
.ms-drop ul > li label:hover [title] {
    
}

.ms-drop ul > li label:hover:not([disabled]) {
    background: rgba(112, 147, 216, 0.9);
}

.ms-drop ul > li label.optgroup {
    font-weight: bold;
}

.ms-drop input[type="checkbox"] {
    vertical-align: middle;
}

.ms-drop .ms-no-results {
    display: none;
}


.ms-drop ul > li label input {
    overflow:hidden;
    /* display:block; */
    width:1px;
    padding:0;
    margin:0;
    margin-left:-1px;
    height:0;
    /* display:none; */
}

.ms-drop ul > li label {
    display:inline-block;
    margin: 0px;
    margin-bottom: 5px;
    padding: 5px;
    width:100%;
    border:1px solid #cfcfcf;
    border-radius:4px;
    text-align:center;
    cursor: pointer;
    background:#fff;
}
.ms-drop ul > li.selected label {
    display:inline-block;
    border-color:#00A9E0;
    background-color: #00A9E0;
    color: #fff;
}


@media(min-width:1221px){
    .line_2 .ms-drop ul {

        }
        .line_2 .ms-drop ul {
            margin-left:-5px;
        }
        .line_2 .ms-drop ul > li {
            width:calc(50% - 5px);
            margin-left:5px;
            float: left;
        }
    .line_3 .lbjs {

        }
        .line_3 .ms-drop ul {
            margin-left:-5px;
        }
        .line_3 .ms-drop ul > li {
            width:calc(33.333% - 5px);
            margin-left:5px;
            float: left;
        }
    .line_4 .lbjs {

        }
        .line_4 .ms-drop ul {
            margin-left:-5px;
        }
        .line_4 .ms-drop ul > li {
            width:calc(25% - 5px);
            margin-left:5px;
            float: left;
        }
    .line_5 .lbjs {

        }
        .line_5 .ms-drop ul {
            margin-left:-5px;
        }
        .line_5 .ms-drop ul > li {
            width:calc(20% - 5px);
            margin-left:5px;
            float: left;
        }
}