/*      Select2     */
.select2-container {
  box-sizing: border-box;
  display: inline-block;
  margin: 0;
  position: relative;
  vertical-align: middle;
  .select2-selection--single {
    box-sizing: border-box;
    cursor: pointer;
    display: block;
    height: 28px;
    user-select: none;
    -webkit-user-select: none;
    .select2-selection__rendered {
      display: block;
      padding-left: 8px;
      padding-right: 20px;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .select2-selection__clear {
      position: relative;
    }
  }
  &[dir="rtl"] .select2-selection--single .select2-selection__rendered {
    padding-right: 8px;
    padding-left: 20px;
  }
  .select2-selection--multiple {
    box-sizing: border-box;
    cursor: pointer;
    display: block;
    min-height: 32px;
    user-select: none;
    -webkit-user-select: none;
    .select2-selection__rendered {
      display: inline-block;
      overflow: hidden;
      padding-left: 8px;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
  }
  .select2-search--inline {
    float: left;
    .select2-search__field {
      box-sizing: border-box;
      border: none;
      font-size: 100%;
      margin-top: 5px;
      padding: 0;
      &::-webkit-search-cancel-button {
        -webkit-appearance: none;
      }
    }
  }
}

.select2-dropdown {
  background-color: white;
  border: 1px solid #aaa;
  border-radius: 4px;
  box-sizing: border-box;
  display: block;
  position: absolute;
  left: -100000px;
  width: 100%;
  z-index: 1051;
}

.select2-results {
  display: block;
}

.select2-results__options {
  list-style: none;
  margin: 0;
  padding: 0;
}

.select2-results__option {
  padding: 6px;
  user-select: none;
  -webkit-user-select: none;
  &[aria-selected] {
    cursor: pointer;
  }
}

.select2-container--open {
  .select2-dropdown {
    left: 0;
  }
  .select2-dropdown--above {
    border-bottom: none;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
  }
  .select2-dropdown--below {
    border-top: none;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
  }
}

.select2-search--dropdown {
  display: block;
  padding: 5px 10px;
  .select2-search__field {
    padding: 4px;
    width: 100%;
    box-sizing: border-box;
    &::-webkit-search-cancel-button {
      -webkit-appearance: none;
    }
  }
  &.select2-search--hide {
    display: none;
  }
}

.select2-close-mask {
  border: 0;
  margin: 0;
  padding: 0;
  display: block;
  position: fixed;
  left: 0;
  top: 0;
  min-height: 100%;
  min-width: 100%;
  height: auto;
  width: auto;
  opacity: 0;
  z-index: 99;
  background-color: $white-color;
  filter: alpha(opacity = 0);
}

.select2-hidden-accessible {
  border: 0 !important;
  clip: rect(0 0 0 0) !important;
  -webkit-clip-path: inset(50%) !important;
  clip-path: inset(50%) !important;
  height: 1px !important;
  overflow: hidden !important;
  padding: 0 !important;
  position: absolute !important;
  width: 1px !important;
  white-space: nowrap !important;
}

.select2-container--default {
  .select2-selection--single {
    background-color: $white-color;
    border: 1px solid #aaa;
    border-radius: 4px;
    .select2-selection__rendered {
      color: #444;
      line-height: 28px;
    }
    .select2-selection__clear {
      cursor: pointer;
      float: right;
      font-weight: bold;
    }
    .select2-selection__placeholder {
      color: #999;
    }
    .select2-selection__arrow {
      height: 26px;
      position: absolute;
      top: 1px;
      right: 1px;
      width: 20px;
      b {
        border-color: #888 $transparent-bg $transparent-bg $transparent-bg;
        border-style: solid;
        border-width: 5px 4px 0 4px;
        height: 0;
        left: 50%;
        margin-left: -4px;
        margin-top: -2px;
        position: absolute;
        top: 50%;
        width: 0;
      }
    }
  }
  &[dir="rtl"] .select2-selection--single {
    .select2-selection__clear {
      float: left;
    }
    .select2-selection__arrow {
      left: 1px;
      right: auto;
    }
  }
  &.select2-container--disabled .select2-selection--single {
    background-color: #eee;
    cursor: default;
    .select2-selection__clear {
      display: none;
    }
  }
  &.select2-container--open .select2-selection--single .select2-selection__arrow b {
    border-color: $transparent-bg $transparent-bg #888 $transparent-bg;
    border-width: 0 4px 5px 4px;
  }
  .select2-selection--multiple {
    background-color: white;
    border: 1px solid #aaa;
    border-radius: 4px;
    cursor: text;
    .select2-selection__rendered {
      box-sizing: border-box;
      list-style: none;
      margin: 0;
      padding: 0 5px;
      width: 100%;
      li {
        list-style: none;
      }
    }
    .select2-selection__placeholder {
      color: #999;
      margin-top: 5px;
      float: left;
    }
    .select2-selection__clear {
      cursor: pointer;
      float: right;
      font-weight: bold;
      margin-top: 5px;
      margin-right: 10px;
    }
    .select2-selection__choice {
      background-color: #e4e4e4;
      border: 1px solid #aaa;
      border-radius: 4px;
      cursor: default;
      float: left;
      margin-right: 5px;
      margin-top: 5px;
      padding: 0 5px;
    }
    .select2-selection__choice__remove {
      color: #999;
      cursor: pointer;
      display: inline-block;
      font-weight: bold;
      margin-right: 2px;
      &:hover {
        color: #333;
      }
    }
  }
  &[dir="rtl"] .select2-selection--multiple {
    .select2-selection__choice, .select2-selection__placeholder, .select2-search--inline {
      float: right;
    }
    .select2-selection__choice {
      margin-left: 5px;
      margin-right: auto;
    }
    .select2-selection__choice__remove {
      margin-left: 2px;
      margin-right: auto;
    }
  }
  &.select2-container--focus .select2-selection--multiple {
    border: solid black 1px;
    outline: 0;
  }
  &.select2-container--disabled {
    .select2-selection--multiple {
      background-color: #eee;
      cursor: default;
    }
    .select2-selection__choice__remove {
      display: none;
    }
  }
  &.select2-container--open {
    &.select2-container--above {
      .select2-selection--single, .select2-selection--multiple {
        border-top-left-radius: 0;
        border-top-right-radius: 0;
      }
    }
    &.select2-container--below {
      .select2-selection--single, .select2-selection--multiple {
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
      }
    }
  }
  .select2-search--dropdown .select2-search__field {
    border: 1px solid #aaa;
  }
  .select2-search--inline .select2-search__field {
    background: $transparent-bg;
    border: none;
    outline: 0;
    box-shadow: none;
    -webkit-appearance: textfield;
  }
  .select2-results > .select2-results__options {
    max-height: 200px;
    overflow-y: auto;
  }
  .select2-results__option {
    &[role=group] {
      padding: 0;
    }
    &[aria-disabled=true] {
      color: #999;
    }
    &[aria-selected=true] {
      background-color: #ddd;
    }
    .select2-results__option {
      padding-left: 1em;
      .select2-results__group {
        padding-left: 0;
      }
      .select2-results__option {
        margin-left: -1em;
        padding-left: 2em;
        .select2-results__option {
          margin-left: -2em;
          padding-left: 3em;
          .select2-results__option {
            margin-left: -3em;
            padding-left: 4em;
            .select2-results__option {
              margin-left: -4em;
              padding-left: 5em;
              .select2-results__option {
                margin-left: -5em;
                padding-left: 6em;
              }
            }
          }
        }
      }
    }
  }
  .select2-results__option--highlighted[aria-selected] {
    background-color: #5897fb;
    color: white;
  }
  .select2-results__group {
    cursor: default;
    display: block;
    padding: 6px;
  }
}

.select2-container--classic {
  .select2-selection--single {
    background-color: #f7f7f7;
    border: 1px solid #aaa;
    border-radius: 4px;
    outline: 0;
    background-image: -webkit-linear-gradient(top, white 50%, #eeeeee 100%);
    background-image: -o-linear-gradient(top, white 50%, #eeeeee 100%);
    background-image: linear-gradient(to bottom, white 50%, #eeeeee 100%);
    background-repeat: repeat-x;
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='$white-colorFFFFF', endColorstr='#FFEEEEEE', GradientType=0);
    &:focus {
      border: 1px solid #5897fb;
    }
    .select2-selection__rendered {
      color: #444;
      line-height: 28px;
    }
    .select2-selection__clear {
      cursor: pointer;
      float: right;
      font-weight: bold;
      margin-right: 10px;
    }
    .select2-selection__placeholder {
      color: #999;
    }
    .select2-selection__arrow {
      background-color: #ddd;
      border: none;
      border-left: 1px solid #aaa;
      border-top-right-radius: 4px;
      border-bottom-right-radius: 4px;
      height: 26px;
      position: absolute;
      top: 1px;
      right: 1px;
      width: 20px;
      background-image: -webkit-linear-gradient(top, #eeeeee 50%, #cccccc 100%);
      background-image: -o-linear-gradient(top, #eeeeee 50%, #cccccc 100%);
      background-image: linear-gradient(to bottom, #eeeeee 50%, #cccccc 100%);
      background-repeat: repeat-x;
      filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFEEEEEE', endColorstr='#FFCCCCCC', GradientType=0);
      b {
        border-color: #888 $transparent-bg $transparent-bg $transparent-bg;
        border-style: solid;
        border-width: 5px 4px 0 4px;
        height: 0;
        left: 50%;
        margin-left: -4px;
        margin-top: -2px;
        position: absolute;
        top: 50%;
        width: 0;
      }
    }
  }
  &[dir="rtl"] .select2-selection--single {
    .select2-selection__clear {
      float: left;
    }
    .select2-selection__arrow {
      border: none;
      border-right: 1px solid #aaa;
      border-radius: 0;
      border-top-left-radius: 4px;
      border-bottom-left-radius: 4px;
      left: 1px;
      right: auto;
    }
  }
  &.select2-container--open {
    .select2-selection--single {
      border: 1px solid #5897fb;
      .select2-selection__arrow {
        background: $transparent-bg;
        border: none;
        b {
          border-color: $transparent-bg $transparent-bg #888 $transparent-bg;
          border-width: 0 4px 5px 4px;
        }
      }
    }
    &.select2-container--above .select2-selection--single {
      border-top: none;
      border-top-left-radius: 0;
      border-top-right-radius: 0;
      background-image: -webkit-linear-gradient(top, white 0%, #eeeeee 50%);
      background-image: -o-linear-gradient(top, white 0%, #eeeeee 50%);
      background-image: linear-gradient(to bottom, white 0%, #eeeeee 50%);
      background-repeat: repeat-x;
      filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='$white-colorFFFFF', endColorstr='#FFEEEEEE', GradientType=0);
    }
    &.select2-container--below .select2-selection--single {
      border-bottom: none;
      border-bottom-left-radius: 0;
      border-bottom-right-radius: 0;
      background-image: -webkit-linear-gradient(top, #eeeeee 50%, white 100%);
      background-image: -o-linear-gradient(top, #eeeeee 50%, white 100%);
      background-image: linear-gradient(to bottom, #eeeeee 50%, white 100%);
      background-repeat: repeat-x;
      filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFEEEEEE', endColorstr='$white-colorFFFFF', GradientType=0);
    }
  }
  .select2-selection--multiple {
    background-color: white;
    border: 1px solid #aaa;
    border-radius: 4px;
    cursor: text;
    outline: 0;
    &:focus {
      border: 1px solid #5897fb;
    }
    .select2-selection__rendered {
      list-style: none;
      margin: 0;
      padding: 0 5px;
    }
    .select2-selection__clear {
      display: none;
    }
    .select2-selection__choice {
      background-color: #e4e4e4;
      border: 1px solid #aaa;
      border-radius: 4px;
      cursor: default;
      float: left;
      margin-right: 5px;
      margin-top: 5px;
      padding: 0 5px;
    }
    .select2-selection__choice__remove {
      color: #888;
      cursor: pointer;
      display: inline-block;
      font-weight: bold;
      margin-right: 2px;
      &:hover {
        color: #555;
      }
    }
  }
  &[dir="rtl"] .select2-selection--multiple {
    .select2-selection__choice {
      float: right;
      margin-left: 5px;
      margin-right: auto;
    }
    .select2-selection__choice__remove {
      margin-left: 2px;
      margin-right: auto;
    }
  }
  &.select2-container--open {
    .select2-selection--multiple {
      border: 1px solid #5897fb;
    }
    &.select2-container--above .select2-selection--multiple {
      border-top: none;
      border-top-left-radius: 0;
      border-top-right-radius: 0;
    }
    &.select2-container--below .select2-selection--multiple {
      border-bottom: none;
      border-bottom-left-radius: 0;
      border-bottom-right-radius: 0;
    }
  }
  .select2-search--dropdown .select2-search__field {
    border: 1px solid #aaa;
    outline: 0;
  }
  .select2-search--inline .select2-search__field {
    outline: 0;
    box-shadow: none;
  }
  .select2-dropdown {
    background-color: white;
    border: 1px solid $transparent-bg;
  }
  .select2-dropdown--above {
    border-bottom: none;
  }
  .select2-dropdown--below {
    border-top: none;
  }
  .select2-results > .select2-results__options {
    max-height: 200px;
    overflow-y: auto;
  }
  .select2-results__option {
    &[role=group] {
      padding: 0;
    }
    &[aria-disabled=true] {
      color: grey;
    }
  }
  .select2-results__option--highlighted[aria-selected] {
    background-color: #3875d7;
    color: white;
  }
  .select2-results__group {
    cursor: default;
    display: block;
    padding: 6px;
  }
  &.select2-container--open .select2-dropdown {
    border-color: #5897fb;
  }
}

/*!
 * Select2 Bootstrap Theme v0.1.0-beta.10 (https://select2.github.io/select2-bootstrap-theme)
 * Copyright 2015-2017 Florian Kissling and contributors (https://github.com/select2/select2-bootstrap-theme/graphs/contributors)
 * Licensed under MIT (https://github.com/select2/select2-bootstrap-theme/blob/master/LICENSE)
 */

 .select2-container--bootstrap {
  display: block;
  .select2-selection {
    background-color: $white-color;
    border: 1px solid #ebedf2;
    border-radius: 4px;
    color: inherit;
    font-size: 13px;
    outline: 0;
    line-height: 1.5 !important;
    &.form-control {
      border-radius: 4px;
    }
  }
  .select2-search--dropdown .select2-search__field {
    background-color: $white-color;
    border: 1px solid #ebedf2;
    border-radius: 4px;
    color: #555;
    font-size: 13px;
    padding: 4px 10px;
  }
  .select2-search__field {
    outline: 0;
    &::-webkit-input-placeholder, &:-moz-placeholder {
      color: #999;
    }
    &::-moz-placeholder {
      color: #999;
      opacity: 1;
    }
    &:-ms-input-placeholder {
      color: #999;
    }
  }
  .select2-results__option {
    padding: 6px 12px;
    &[role=group] {
      padding: 0;
    }
    &[aria-disabled=true] {
      color: #777;
      cursor: not-allowed;
    }
    &[aria-selected=true] {
      background-color: #f5f5f5;
      color: #262626;
    }
  }
  .select2-results__option--highlighted[aria-selected] {
    background-color: $primary-color;
    color: $white-color;
  }
  .select2-results__option .select2-results__option {
    padding: 6px 12px;
    .select2-results__group {
      padding-left: 0;
    }
    .select2-results__option {
      margin-left: -12px;
      padding-left: 24px;
      .select2-results__option {
        margin-left: -24px;
        padding-left: 36px;
        .select2-results__option {
          margin-left: -36px;
          padding-left: 48px;
          .select2-results__option {
            margin-left: -48px;
            padding-left: 60px;
            .select2-results__option {
              margin-left: -60px;
              padding-left: 72px;
            }
          }
        }
      }
    }
  }
  .select2-results__group {
    color: #9E9E9E;
    font-weight: $font-weight-normal;
    display: block;
    padding: 7px 12px;
    line-height: 1.42857143;
    white-space: nowrap;
    margin-top: 6px;
  }
  &.select2-container--focus .select2-selection {
    border-color: #66afe9;
  }
  &.select2-container--open {
    .select2-selection {
      -webkit-box-shadow: 0px 0px 15px 1px rgba(69, 65, 78, 0.2) !important;
      -moz-box-shadow: 0px 0px 15px 1px rgba(69, 65, 78, 0.2) !important;
      box-shadow: 0px 0px 15px 1px rgba(69, 65, 78, 0.2) !important;
      -o-transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s;
      -webkit-transition: border-color ease-in-out .15s,-webkit-box-shadow ease-in-out .15s;
      transition: border-color ease-in-out .15s,-webkit-box-shadow ease-in-out .15s;
      transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s;
      transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s,-webkit-box-shadow ease-in-out .15s;
      .select2-selection__arrow b {
        border-color: $transparent-bg $transparent-bg #999;
        border-width: 0 4px 4px;
      }
    }
    &.select2-container--below .select2-selection {
      border-bottom-right-radius: 0;
      border-bottom-left-radius: 0;
      border-bottom-color: $transparent-bg;
    }
    &.select2-container--above .select2-selection {
      border-top-right-radius: 0;
      border-top-left-radius: 0;
      border-top-color: $transparent-bg;
    }
  }
  .select2-selection__clear {
    color: #999;
    cursor: pointer;
    float: right;
    font-weight: 700;
    margin-right: 10px;
    &:hover {
      color: #333;
    }
  }
  &.select2-container--disabled {
    .select2-selection {
      border-color: #ccc;
      -webkit-box-shadow: none;
      box-shadow: none;
    }
    .select2-search__field {
      cursor: not-allowed;
    }
    .select2-selection {
      cursor: not-allowed;
      background-color: #eee;
    }
    .select2-selection--multiple {
      .select2-selection__choice {
        background-color: #eee;
      }
      .select2-selection__choice__remove {
        display: none;
      }
    }
    .select2-selection__clear {
      display: none;
    }
  }
  .select2-dropdown {
    -webkit-box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
    border-color: #ebedf2;
    overflow-x: hidden;
    margin-top: -1px;
  }
  .select2-dropdown--above {
    -webkit-box-shadow: 0 -6px 12px rgba(0, 0, 0, 0.175);
    box-shadow: 0 -6px 12px rgba(0, 0, 0, 0.175);
    margin-top: 1px;
  }
  .select2-results > .select2-results__options {
    max-height: 200px;
    overflow-y: auto;
  }
  .select2-selection--single {
    height: 40px;
    line-height: 1.42857143;
    padding: .6rem 1rem;
    .select2-selection__arrow {
      position: absolute;
      bottom: 0;
      right: 12px;
      top: 0;
      width: 4px;
      b {
        border-color: #999 $transparent-bg $transparent-bg;
        border-style: solid;
        border-width: 4px 4px 0;
        height: 0;
        left: 0;
        margin-left: -4px;
        margin-top: -2px;
        position: absolute;
        top: 50%;
        width: 0;
      }
    }
    .select2-selection__rendered {
      color: #555;
      padding: 0;
    }
    .select2-selection__placeholder {
      color: #999;
    }
  }
  .select2-selection--multiple {
    padding: 3.25px 0px;
    height: auto;
    .select2-selection__rendered {
      -webkit-box-sizing: border-box;
      -moz-box-sizing: border-box;
      box-sizing: border-box;
      display: block;
      line-height: 1.42857143;
      list-style: none;
      margin: 0;
      overflow: hidden;
      padding: 0;
      width: 100%;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .select2-selection__placeholder {
      color: #999;
      float: left;
      margin-top: 5px;
    }
    .select2-selection__choice {
      color: #555;
      background: $white-color;
      border: 1px solid #ccc;
      border-radius: 30px;
      cursor: default;
      float: left;
      margin: 5px 0 0 6px;
      font-size: 11px;
      padding: 3px 23px 3px 10px;
      position: relative;
    }
    .select2-search--inline .select2-search__field {
      background: 0 0;
      padding: 0 12px;
      height: 32px;
      line-height: 1.42857143;
      margin-top: 0;
      min-width: 5em;
    }
    .select2-selection__choice__remove {
      color: #666 !important;
      cursor: pointer;
      display: inline-block;
      margin-right: 3px;
      position: absolute;
      right: 5px;
      font-weight: $font-weight-mediumbold;
      &:hover {
        color: #666 !important;
      }
    }
    .select2-selection__clear {
      margin-top: 6px;
    }
  }
}

.form-group-sm .select2-container--bootstrap .select2-selection--single, .input-group-sm .select2-container--bootstrap .select2-selection--single, .select2-container--bootstrap .select2-selection--single.input-sm {
  border-radius: 3px;
  font-size: 12px;
  height: 30px;
  line-height: 1.5;
  padding: 5px 22px 5px 10px;
}

.form-group-sm .select2-container--bootstrap .select2-selection--single .select2-selection__arrow b, .input-group-sm .select2-container--bootstrap .select2-selection--single .select2-selection__arrow b, .select2-container--bootstrap .select2-selection--single.input-sm .select2-selection__arrow b {
  margin-left: -5px;
}

.form-group-sm .select2-container--bootstrap .select2-selection--multiple, .input-group-sm .select2-container--bootstrap .select2-selection--multiple, .select2-container--bootstrap .select2-selection--multiple.input-sm {
  min-height: 30px;
  border-radius: 3px;
}

.form-group-sm .select2-container--bootstrap .select2-selection--multiple .select2-selection__choice, .input-group-sm .select2-container--bootstrap .select2-selection--multiple .select2-selection__choice, .select2-container--bootstrap .select2-selection--multiple.input-sm .select2-selection__choice {
  font-size: 12px;
  line-height: 1.5;
  margin: 4px 0 0 5px;
  padding: 0 5px;
}

.form-group-sm .select2-container--bootstrap .select2-selection--multiple .select2-search--inline .select2-search__field, .input-group-sm .select2-container--bootstrap .select2-selection--multiple .select2-search--inline .select2-search__field, .select2-container--bootstrap .select2-selection--multiple.input-sm .select2-search--inline .select2-search__field {
  padding: 0 10px;
  font-size: 12px;
  height: 28px;
  line-height: 1.5;
}

.form-group-sm .select2-container--bootstrap .select2-selection--multiple .select2-selection__clear, .input-group-sm .select2-container--bootstrap .select2-selection--multiple .select2-selection__clear, .select2-container--bootstrap .select2-selection--multiple.input-sm .select2-selection__clear {
  margin-top: 5px;
}

.form-group-lg .select2-container--bootstrap .select2-selection--single, .input-group-lg .select2-container--bootstrap .select2-selection--single, .select2-container--bootstrap .select2-selection--single.input-lg {
  border-radius: 6px;
  font-size: 18px;
  height: 46px;
  line-height: 1.3333333;
  padding: 10px 31px 10px 16px;
}

.form-group-lg .select2-container--bootstrap .select2-selection--single .select2-selection__arrow, .input-group-lg .select2-container--bootstrap .select2-selection--single .select2-selection__arrow, .select2-container--bootstrap .select2-selection--single.input-lg .select2-selection__arrow {
  width: 5px;
}

.form-group-lg .select2-container--bootstrap .select2-selection--single .select2-selection__arrow b, .input-group-lg .select2-container--bootstrap .select2-selection--single .select2-selection__arrow b, .select2-container--bootstrap .select2-selection--single.input-lg .select2-selection__arrow b {
  border-width: 5px 5px 0;
  margin-left: -10px;
  margin-top: -2.5px;
}

.form-group-lg .select2-container--bootstrap .select2-selection--multiple, .input-group-lg .select2-container--bootstrap .select2-selection--multiple, .select2-container--bootstrap .select2-selection--multiple.input-lg {
  min-height: 46px;
  border-radius: 6px;
}

.form-group-lg .select2-container--bootstrap .select2-selection--multiple .select2-selection__choice, .input-group-lg .select2-container--bootstrap .select2-selection--multiple .select2-selection__choice, .select2-container--bootstrap .select2-selection--multiple.input-lg .select2-selection__choice {
  font-size: 18px;
  line-height: 1.3333333;
  border-radius: 4px;
  margin: 9px 0 0 8px;
  padding: 0 10px;
}

.form-group-lg .select2-container--bootstrap .select2-selection--multiple .select2-search--inline .select2-search__field, .input-group-lg .select2-container--bootstrap .select2-selection--multiple .select2-search--inline .select2-search__field, .select2-container--bootstrap .select2-selection--multiple.input-lg .select2-search--inline .select2-search__field {
  padding: 0 16px;
  font-size: 18px;
  height: 44px;
  line-height: 1.3333333;
}

.form-group-lg .select2-container--bootstrap .select2-selection--multiple .select2-selection__clear, .input-group-lg .select2-container--bootstrap .select2-selection--multiple .select2-selection__clear, .select2-container--bootstrap .select2-selection--multiple.input-lg .select2-selection__clear {
  margin-top: 10px;
}

.input-group-lg .select2-container--bootstrap .select2-selection.select2-container--open .select2-selection--single .select2-selection__arrow b {
  border-color: $transparent-bg $transparent-bg #999;
  border-width: 0 5px 5px;
}

.select2-container--bootstrap {
  .select2-selection.input-lg.select2-container--open .select2-selection--single .select2-selection__arrow b {
    border-color: $transparent-bg $transparent-bg #999;
    border-width: 0 5px 5px;
  }
  &[dir=rtl] {
    .select2-selection--single {
      padding-left: 24px;
      padding-right: 12px;
      .select2-selection__rendered {
        padding-right: 0;
        padding-left: 0;
        text-align: right;
      }
      .select2-selection__clear {
        float: left;
      }
      .select2-selection__arrow {
        left: 12px;
        right: auto;
        b {
          margin-left: 0;
        }
      }
    }
    .select2-selection--multiple {
      .select2-search--inline, .select2-selection__choice, .select2-selection__placeholder {
        float: right;
      }
      .select2-selection__choice {
        margin-left: 0;
        margin-right: 6px;
      }
      .select2-selection__choice__remove {
        margin-left: 2px;
        margin-right: auto;
      }
    }
  }
}

.has-warning {
  .select2-dropdown, .select2-selection {
    border-color: #8a6d3b;
  }
  .select2-container--focus .select2-selection, .select2-container--open .select2-selection {
    -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #c0a16b;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #c0a16b;
    border-color: #66512c;
  }
  &.select2-drop-active {
    border-color: #66512c;
    &.select2-drop.select2-drop-above {
      border-top-color: #66512c;
    }
  }
}

.has-error {
  .select2-dropdown, .select2-selection {
    border-color: $danger-color;
    .select2-selection__rendered {
      color: $danger-color;
    }
  }
  .select2-container--focus .select2-selection, .select2-container--open .select2-selection {
    border-color: $danger-color;
  }
  &.select2-drop-active {
    border-color: $danger-color;
    &.select2-drop.select2-drop-above {
      border-top-color: $danger-color;
    }
  }
}

.has-success {
  .select2-dropdown, .select2-selection {
    border-color: $success-color;
    .select2-selection__rendered {
      color: $success-color;
    }
  }
  .select2-container--focus .select2-selection, .select2-container--open .select2-selection {
    border-color: $success-color;
  }
  &.select2-drop-active {
   border-color: $success-color;
   &.select2-drop.select2-drop-above {
    border-top-color: $success-color;
  }
}
}

.input-group > {
  .select2-hidden-accessible {
    &:first-child + .select2-container--bootstrap > .selection > .select2-selection {
      border-bottom-right-radius: 0;
      border-top-right-radius: 0;
      &.form-control {
        border-bottom-right-radius: 0;
        border-top-right-radius: 0;
      }
    }
    &:not(:first-child) {
      + .select2-container--bootstrap:not(:last-child) > .selection > .select2-selection {
        border-radius: 0;
        &.form-control {
          border-radius: 0;
        }
      }
      &:not(:last-child) + .select2-container--bootstrap:last-child > .selection > .select2-selection {
        border-bottom-left-radius: 0;
        border-top-left-radius: 0;
        &.form-control {
          border-bottom-left-radius: 0;
          border-top-left-radius: 0;
        }
      }
    }
  }
  .select2-container--bootstrap {
    display: table;
    table-layout: fixed;
    position: relative;
    z-index: 2;
    width: 100%;
    margin-bottom: 0;
    > .selection > .select2-selection.form-control {
      float: none;
    }
    &.select2-container--focus, &.select2-container--open {
      z-index: 3;
    }
    vertical-align: top;
    .input-group-btn {
      vertical-align: top;
      .btn {
        vertical-align: top;
      }
    }
  }
}

.form-control.select2-hidden-accessible {
  position: absolute !important;
  width: 1px !important;
}

.select2-default, .select2-primary, .select2-info, .select2-danger, .select2-warning, .select2-success{
  .select2-selection__choice{
    .select2-selection__choice__remove{
      color: $white-color !important;
      &:hover {
        color: $white-color !important;
      }
    }
  }
}

@mixin select2-selection-style($color) {
    background: $color !important;
    border-color: $color !important;
    color: $white-color !important; 
}

.select2-default {
  .select2-selection__choice{
    @include select2-selection-style($default-color);
  }
}

.select2-primary {
  .select2-selection__choice{
    @include select2-selection-style($primary-color);
  }
}

.select2-secondary {
  .select2-selection__choice{
    @include select2-selection-style($secondary-color);
  }
}

.select2-info {
  .select2-selection__choice{
    @include select2-selection-style($info-color);
  }
}

.select2-success {
  .select2-selection__choice{
    @include select2-selection-style($success-color);
  }
}

.select2-danger {
  .select2-selection__choice{
    @include select2-selection-style($danger-color);
  }
}

.select2-warning {
  .select2-selection__choice{
    @include select2-selection-style($warning-color);
  }
}


@media (min-width: 768px) {
  .form-inline .select2-container--bootstrap {
    display: inline-block;
  }
}