/**
 * @author zhixin wen <wenzhixin2010@gmail.com>
 */

.ms-drop ul > li label {
    color: black !important;
}
.ms-drop .ms-list-container label {
    font-family: 'Trebuchet MS' !important;
    font-size: 12px;
    line-height: 20px !important;
    color: #333 !important;
    font-weight: normal;
    margin: 0 !important;
    display: inline-block !important;
    cursor: default !important;
}
.ms-parent {
    display: inline-block;
    position: relative;
    vertical-align: middle;
}

.ms-choice {
    font-family: 'Trebuchet MS';
    display: block;
    width: 100%;
    height: 30px;
    padding: 5px 42px 4px 11px;
    overflow: hidden;
    cursor: pointer;
    border: 0px solid #aaa;
    text-align: left;
    white-space: nowrap;
    line-height: 20px;
    color: #444;
    text-decoration: none;
    border-radius: 3px;
    -moz-border-radius: 3px;
    -webkit-border-radius: 3px;
    -o-border-radius: 3px;
    background: #fff url('/Resources/images/formIcon_customDrop_plus.png') right 0 no-repeat;
}

    .ms-choice.open {
        background-position: right -50px;
    }

    .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.minCount {
            color: #333;
            display: block;
            font-size: 14px;
            line-height: 20px;
            font-style: normal;
            padding: 5px 42px 4px 11px;
        }

        .ms-choice > span.placeholder {
            color: #bbb;
            font-size: 14px;
            line-height: 20px;
            font-style: normal;
            padding: 5px 42px 4px 11px;
        }

    .ms-choice > div {
        position: absolute;
        top: 0;
        right: 0;
        width: 20px;
        height: 25px;
    }

        .ms-choice > div.open {
        }

.ms-drop {
    overflow: hidden;
    border: 1px solid #ccc;
    border-top: none;
    width: 100%;
    max-width: 287px;
    padding: 10px !important;
    display: none;
    margin-top: 0px;
    padding: 0;
    position: absolute;
    z-index: 1000;
    background: #fff;
    color: #000;
    -webkit-border-bottom-right-radius: 4px;
    -webkit-border-bottom-left-radius: 4px;
    -moz-border-radius-bottomright: 4px;
    -moz-border-radius-bottomleft: 4px;
    border-bottom-right-radius: 4px;
    border-bottom-left-radius: 4px;
}

    .ms-drop.bottom {
        top: 100%;
    }

    .ms-drop.top {
        bottom: 100%;
    }

.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: 24px;
        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('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-list-container {
    margin: 0px !important;
    overflow-y: auto !important;
}

.ms-select-all label {
    font-size: 14px !important;
    font-weight: bold !important;
}

.ms-drop ul {
    overflow: auto;
    margin: 0;
}

    .ms-drop ul > li {
        list-style: none;
        display: list-item;
        background-image: none;
        position: static;
        line-height: 25px !important;
    }

        .ms-drop ul > li.group {
        }

            .ms-drop ul > li.group label {
                font-size: 14px;
            }

        .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!important;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            font-size: 13px !important;
            font-weight: normal !important;
            margin: 0px !important;
        }

        .ms-drop ul > li label {
            font-weight: normal;
            display: block;
            white-space: nowrap;
        }

            .ms-drop ul > li label.optgroup {
                font-weight: bold;
                font-size: 14px !important;
            }

.ms-drop input[type="checkbox"] {
    vertical-align: middle;
    margin-right: 5px;
}

.ms-drop .ms-no-results {
    display: none;
}

.ms-list-container li.multiple {
    width: 50% !important;
}
