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

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



.ms-choice {
    display: block;
    width: 100%;
    height: 38px;
    padding: 0;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid #E2E3E5;
    text-align: left;
    white-space: nowrap;
    line-height: 26px;
    text-decoration: none;
    background-color: #fff;
    /*  ADDED  */
    /*   a.btn2  */
    font: 1.25em "Roboto Condensed",sans-serif;
    font-weight: 300;
    text-transform: uppercase;
    color: #58595B;
    outline:none;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
}

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

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

.ms-choice > div {
/*    position: absolute;
    top: 0;
    right: 0;*/
    float:right;
    margin-right:8px;
    background: url('/static/images/sprites/sprite.png') no-repeat -88px -65px;
    width: 18px;
    height: 9px;
}

.ms-choice > div.open {
    background: url('/static/images/sprites/sprite.png') no-repeat -108px -65px;
    width: 17px;
    height: 9px;
}

.ms-drop {
    /*width: 100%;*/
    overflow: hidden;
    display: none;
    padding:0;
    margin-top: -2px;
    z-index: 1000;
    /*background: #fff;*/
    background:#F8F8F8;
    color: #000;
    border: 2px solid #E2E3E5;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
}

.right .ms-drop {
   padding: 10px 10px 20px 10px;
}

           /*   ADDED  (width of drop down windows and conversion to "acordion") */
          @media only screen and (min-width : 992px) {
            .ms-drop {
                position: absolute;
                width:540px;
              }

              .right .ms-drop {
                position: absolute;
                width:610px;
              }
                .seriesBox .ms-drop {
                    position: absolute;
                    width:520px;
                  }

          }

          @media only screen and (max-width : 992px) {
             .ms-drop {
                width: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-drop ul {
    overflow: auto;
    margin: 0;
    padding: 5px 8px;
}

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



.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 {
    display: block;
    text-overflow: ellipsis;


}

.ms-drop ul > li label {
    font-weight: normal;
    display: block;
    padding:5px 15px;
    width:90%;
    font: 1.125em "Roboto Condensed",sans-serif;
    font-weight: 300;
    text-transform: uppercase;
    color: #58595B;
    outline:none;
    background: #F8F8F8;
}



/*.ms-drop ul > li label:active, #partnerList > li label:active, #seriesList > li label:active {
    color: #58595B;
    background: #F8F8F8;
}*/

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

.ms-drop input[type="checkbox"] {
    vertical-align: middle;
    /* ADDED */
    display:none;

}

.ms-drop input[type="radio"] {
    /* ADDED */
    display:none;

}



  /*   ADDED - breaks functionality of "select all" when "select all" is active */

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

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