/*!
 * multi-select-dropdown.js (0.0.2)
 *
 * Copyright (c) 2016 Brandon Sara (http://bsara.github.io)
 * Licensed under the CPOL-1.02 (https://github.com/bsara/multi-select-dropdown.js/blob/master/LICENSE.md)
 */
select.msd {
  cursor: pointer;
}
select.msd option[selected] {
  background: #fff;
}
select.msd option .msd-select-all {
  display: none;
}
select.msd[multiple] {
  z-index: 100;
  height: 1em;
  width: auto;
  display: inline-table;
  border: none;
}
select.msd[multiple] option {
  position: relative;
  display: block;
  padding-left: 0.25em;
  background: #fff;
  border-left: solid 1px #aaa;
  border-right: solid 1px #aaa;
  vertical-align: middle;
}
select.msd[multiple] option.msd-placeholder {
  cursor: default;
  border-top: solid 1px #aaa;
  border-bottom: solid 1px #aaa;
}
select.msd[multiple] option.msd-placeholder::after {
  content: "\25BE";
  position: relative;
  display: inline-block;
  width: 1em;
  height: 1em;
  top: -0.115em;
  padding-left: 0.31em;
  padding-right: 0.01em;
  font-size: 0.75em;
  font-family: sans-serif;
  text-align: center;
}
select.msd[multiple] option.msd-select-all {
  display: block;
}
select.msd[multiple] option:last-child {
  border-bottom: solid 1px #aaa;
}
select.msd[multiple] option:not(.msd-placeholder) {
  padding-top: 0.20em;
}
select.msd[multiple] option:not(.msd-placeholder)::before {
  content: " ";
  font-family: sans-serif;
  width: 1em;
  height: 1em;
  margin-left: 0.50em;
  margin-right: 0.25em;
  vertical-align: text-bottom;
  -webkit-appearance: checkbox;
     -moz-appearance: checkbox;
          appearance: checkbox;
}
select.msd[multiple] option:not(.msd-placeholder).msd-select-all::before {
  margin-left: initial;
}
select.msd[multiple] option:not(.msd-placeholder)[checked] {
  background: #fff;
}
select.msd[multiple] option:not(.msd-placeholder)[checked]::before {
  content: "\2714";
  color: #666;
  text-align: center;
  line-height: 1em;
}
select.msd[multiple] option:not(.msd-placeholder):hover {
  color: #fff;
  background: #08f;
}
