
/** vue-treeselect rules **/

.vue-treeselect{
  max-height: 40px;
  box-sizing: border-box;
  @include normal-font-family;

  &.vue-treeselect--focused, &.vue-treeselect--open-below{
    border: none;
    box-shadow: unset;
  }
  .vue-treeselect__control{
    height: 40px;
    border-radius: 4px;
    padding-right: 4px;
    padding-left: 4px;

    .vue-treeselect__value-container {
      display: block;
      cursor: pointer;
      color: $black;
      height: 38px;
      background-color: $white;
      width: 100%;
      max-width: 100%;
      @include normal-font;
      line-height: normal;
      &::-ms-expand {
        display: none;
      }
      .vue-treeselect__multi-value{
        display: inline-flex;
        align-items: center;
        height: 40px;
        .chosen-service{
          font-size: 16px;
          margin-left: 10px;
        }
      }
    }
    .vue-treeselect__placeholder{
      line-height: 40px;
      color:$black;
    }
    .vue-treeselect__control-arrow-container{
      -webkit-appearance: none;
      background: #fff url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M5%206l5%205%205-5%202%201-7%207-7-7%202-1z%22%20fill%3D%22%23555%22%2F%3E%3C%2Fsvg%3E') no-repeat right 5px top 55%;
      background-size: 16px 16px;
      cursor: pointer;
      vertical-align: middle;
    }

    .vue-treeselect__control-arrow{
      display: none;
    }
    .vue-treeselect__input{
      border:none;
      max-height: 38px;
      background-color: unset;
      width: 100%;
      box-sizing: border-box;
      &:focus{
        border: none;
        box-shadow: none;
        outline: none;
      }
    }

    /** clear all button **/
    .vue-treeselect__x-container{
      color: $black;
      opacity: 0.7;
      width: 10px;
      height: 10px;
      position: absolute;
      top: 16px;
      right: 40px;
    }
    .vue-treeselect__multi-value-item-container{
      display: none;
    }

  }

  /** options block **/
  .vue-treeselect__menu-container{
    top: 40px;

    .vue-treeselect__menu{
      width: 99.9%;
      border-top: none;
      padding-top: 20px;
      margin-top: -3px;
      border-radius: 0px 0px 4px 4px;
      -webkit-box-sizing: border-box;
      -moz-box-sizing: border-box;
      -box-sizing: border-box;
      .vue-treeselect__list{
        .vue-treeselect__option{
          position: relative;
          width: 95%;
          padding: 0;
          margin:0;
          .vue-treeselect__option-arrow-container{
            display: none;
          }
        }

        .vue-treeselect__list-item{

          .vue-treeselect__option{
            margin-left: 10px;
            @include normal-font-family;
            .vue-treeselect__label-container{
              margin: 5px 0;
              display: inline-flex;
              justify-content: flex-start;
              align-items: center;
              .vue-treeselect__label{
                padding-left: 10px;
                line-height: 16px;
              }

              /** checkbox **/
              .vue-treeselect__checkbox-container{
                .vue-treeselect__checkbox--indeterminate{
                  background-color: $base-color;
                  &:hover{
                    background-color: $base-color;
                  }
                  .vue-treeselect__check-mark{
                    display: inline-flex;
                    justify-content: center;
                    align-items: center;
                    background-image: url("../icons/checkbox_correct.svg");
                    background-size: 14px 14px;
                    width: 100%;
                    height: 100%;
                  }
                  .vue-treeselect__minus-mark{
                    display: inline-flex;
                    justify-content: center;
                    align-items: center;
                    background-size: 10px 10px;
                    background-position: 25% 30%;
                    width: 100%;
                    height: 100%;
                  }
                }
                .vue-treeselect__checkbox{
                  width: 20px;
                  height: 20px;
                  border-radius: 4px;
                  border: 2px solid $base-color;
                  &.vue-treeselect__checkbox--checked{
                    background-color: $base-color;
                    &:hover{
                      background-color: $base-color;
                    }
                    .vue-treeselect__check-mark{
                      display: inline-flex;
                      justify-content: center;
                      align-items: center;
                      background-image: url("../icons/checkbox_correct.svg");
                      background-size: 14px 14px;
                      width: 100%;
                      height: 100%;
                    }
                  }
                }
              }
              /** checkbox end **/

              /** category **/
              .vue-treeselect__label{
                font-size: 14px;
                text-transform: capitalize;
                margin-bottom: 0;
              }
            }
          }
          /** services **/
          .vue-treeselect__list{
            .vue-treeselect__list-item{
              .vue-treeselect__option{
                margin-left: 0px;
                padding-left: 15px;
                .vue-treeselect__label-container{
                  label.vue-treeselect__label{
                    font-size: 14px;
                    font-weight: normal;
                    text-transform: capitalize;
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}
