$dropdown-bg-color: lighten(black, 85%);

.dropdown {
  position: absolute !important;
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
  z-index: 1000;
  border: 1px solid $border-color;

  &.expanded {
    display: block !important;
    @include single-box-shadow($blur: 3px, $color: rgba(0,0,0,0.3), $voff: 5px, $hoff: 5px);
    @include border-radius(4px);
  }

  & > li {
    background-color: white;
    color: black;

    float: none !important;
    text-align: left;
    vertical-align: middle;
    font-style: bold;
    padding: 0;
    list-style: none;
    overflow: hidden;

    &:hover {
      color: white;
      background-color: $important-button-bg-color;
      a, input, button { color: white; }
    }

    & > a, & > input[type=submit], & > button {
      @include inline-block;
      width: 100%;

      // rather expand then break
      white-space: nowrap;

      background: transparent;
      color: black;
      text-shadow: none;
      text-align: left;
      font-style: bold;
//      font-size: 14px;
      margin: 0;
      padding: 7px;
      @include border-radius(0);
      border: none;
      cursor: pointer;
    }
  }
}

.dropdown-buttons {
  position: static !important;
  margin: 0 !important;
  padding: 0 !important;
}


.button-group {
  & > a, & > button, & > input[type='submit'] {
    position: relative;
    margin-right: 0;
    @include border-radius(0);

    &:last-child { @include border-right-radius; }

    &:first-child {
      margin-right: 0;
      @include border-left-radius;
    }

    &.dropdown-toggle {
      @include border-left-radius(0);
      border-left: none;
      margin-left: 0;
    }
  }

  & > input[type=submit], & > button {
    margin-right: 6px;
    margin-top: 1px;
  }
}

// select 2
.select2-container {
  text-align: left;
  min-width: 250px;
}
