@import './constant.scss';

.lookupv2__drop-item {
  list-style: none;
  padding: 3px 0;
  cursor: pointer;
  padding-left: 15px;
  padding-right: 15px;
  min-height: 26px;
  &:hover {
    background: #F5F8FA;
  }
  &_has-avatar {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    align-items:center;
    -ms-flex-align:center;
    -moz-box-align:center;
    -webkit-box-align:center;
    .avatar {
      margin-right: 10px;
      min-width: 30px;
    }
  }
  .lookupv2__content-wrapper {
    & > p {
      margin-top: 0;
      margin-bottom: 0;
    }
    .lookupv2__content-top {
      color: #0A131A;
      @include font-h5();
    }
    .lookupv2__content-bottom {
      color: #8F9CA6;
      @include rem(font-size, 12);
      @include rem(line-height, 20);
      font-family: $font-family-h;
    }
    em {
      font-family: inherit;
      font-style: inherit;
      background: rgba(228, 166, 0, .2);
      border-radius: 2px;
      height: inherit;
      display: inline-block;
    }
  }
}

.lookupv2__is-multiple{
  max-height: 135px;
  overflow-y: auto;
  overflow-x: hidden;
}

.lookupv2__select-list {
  .lookupv2-show-tip{
    width: calc(100% - 45px);
    font-size: .875rem;
  }
  flex: 1;
  max-height: 300px;
  overflow-x: hidden;
  overflow-y: auto;
  .u-input {
    // width: 30px; //ie10下只有30px了。。。什么鬼，注掉
    padding-left: 0;
    border: transparent;
    max-width: calc(100% - 15px);
  }
}

.lookupv2__findAll {
  margin-top: 0;
  margin-bottom: 0;
  display: inline-block;
  color: #005999;
  @include font-a2();
  cursor: pointer;
}

.lookupv2__footer {
  position: relative;
  padding: 6px 15px;
  text-align: right;
}

.lookupv2__empty-data {
  background: url(./empty-img.png) no-repeat;
  height: 138px;
  width: 114px;
  position: absolute;
  margin: auto;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  display: inline-block;
  background-size: 70px;
  background-position: 50% 16%;
}
.lookupv2__empty-data::after{
    color: #bbbfee;
    content: attr(data-bg-text);
    display: block;
    font-size: 14px;
    line-height: 1.2;
    position: absolute;
    bottom: 35px;
    width: 100%;
    text-align: center;
}

.BS_lookupV2__mountContainer {
  box-sizing: border-box;
  background: #fff;
  box-shadow: 0 3px 10px 0 rgba(0, 0, 0, 0.15);
  border-radius: 5px;
  .BS_lookupV2__not-allow-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
  }
  .BS_lookupV2__not-install{
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url(./not-install.png) no-repeat 50% 18%;
    transform: scale(0.7);
    -webkit-transform: scale(0.7);
    -moz-transform: scale(0.7);
    -ms-transform: scale(0.7);
    -o-transform: scale(0.7);
    background-size: 200px;
}
  .BS_lookupV2__not-install::after {
    color: #8bd3f7;
    content: attr(data-bg-text);
    display: block;
    font-size: 30px;
    line-height: 1.2;
    position: absolute;
    bottom: 85px;
    width: 100%;
    text-align: center;
  }
  .BS_lookupV2__not-allow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url(./not-allow.svg) no-repeat center center;
    background-position: 50% 38%;
  }
  .BS_lookupV2__not-allow::after {
    color: #a6d2ff;
    content: attr(data-bg-text);
    display: block;
    font-size: 14px;
    line-height: 1.2;
    position: absolute;
    bottom: 85px;
    width: 100%;
    text-align: center;
  }
  .u-input {
    border: transparent;
  }
  &_is-search {
    width: 340px;
    padding: 15px 15px 10px;
    min-height: 100px;
    .lookupv2__select-list {
      flex: 1;
      max-height: 300px;
      overflow-x: hidden;
      overflow-y: auto;
    }
    .u-input {
      padding-right: 15px;
    }
    .form-item__right-icon {
      bottom: 5px;
    }
    .lookupv2__drop-item {
      padding-left: 0;
      padding-right: 0;
    }
    .BS_lookupV2__mountContainer {
      position: relative;
      display: flex;
      flex-flow: column;
      padding-left: 0;
      padding-right: 0;
      box-shadow: none;
      .lookupv2__footer {
        padding-bottom: 0;
        margin-left: -15px;
        margin-right: -15px;
      }
    }
    .BS_lookupV2__mountContainer_no-data {
      .lookupv2__footer {
        height: 328px;
      }
    }
    .BS_lookupV2__mountContainer_data-null {
      .lookupv2__footer {
        padding-top: 306px;
      }
    }
  }
  &_no-data {
    .lookupv2__footer {
      height: 300px;

    }
    .lookupv2__findAll {
      position: absolute;
      top: 50%;
      left: 0;
      right: 0;
      display: inline-block;
      margin-top: 54px;
      text-align: center;
    }
    .lookupv2__empty-data {
      margin-top: -55px;
      top: 50%;
    }
  }
}
