@import "~webComponents/utils/base-mixins";
@import "~webComponents/utils/general-mixins";

.comp-predictive-search
  //height rxr-rem( 30 )
  em
    &.hightLight//高亮
      color #fb7a7a
  .comp-predictive-search-title
    position relative
    font 12px/20px "Microsoft YaHei"
    color #99999d
    border 1px solid #e7eaec
    border-radius 2px
    height rxr-rem( 30 )
    line-height rxr-rem( 30 )
    //width: w = rxr-rem( 118 )
    width auto

    .ui_select_title
      display block
      text-align left
      text-indent rxr-rem( 4 )

      span
        display inline-block
        width rxr-rem( 80 )
        rxr-text-overflow(ellipsis)

      .triangle
        float right

        &.top
          margin rxr-rem( 15 ) rxr-rem( 10 ) 0 rxr-rem( 10 )
          rxr-border-triangle(5px, #c3c3c3, bottom )
        &.bottom
          margin rxr-rem( 8 ) rxr-rem( 10 ) 0 rxr-rem( 10 )
          rxr-border-triangle(5px, #c3c3c3, top )


  .comp-predictive-search-content
    position absolute
    min-width rxr-rem( 100 )
    max-height rxr-rem( 200 )
    text-align left
    font-size 12px
    padding rxr-rem( 5 ) rxr-rem( 5 ) rxr-rem( 5 ) rxr-rem( 5 )//上边留白
    border 1px solid rxr-get-color( fengexian )
    border-radius rxr-rem( 5 )
    background-color #ffffff
    margin-top rxr-rem( 2 )
    overflow hidden

    .comp-predictive-search-body
      background-color rxr-get-color( fengexian )
      border 1px solid rxr-get-color( fengexian )
      div
        display inline-block
        vertical-align middle
      .search-input
        border: 0px;
        color: rgb(153, 153, 153);
        width: 108px;
        height: 100%;
        line-height: 25px;
        //text-indent: 9px;
        padding 0 rxr-rem( 10 )
        outline none
        background-color rxr-get-color( fengexian )
        box-sizing border-box
        &.error
          border 1px solid red
      .search-loading
        height: 15px;
        width: 15px;
        > div
          top -10px
          left -10px

      .search-close
        height: 12px;
        width: 12px;
        cursor: pointer;
        background: url("~webComponents/../images/icons_search.png") 0px -46px;
      .search-button
        height: 15px;
        width: 15px;
        cursor: pointer;
        background-image: url("~webComponents/../images/icons_search.png");
        background-attachment: initial;
        background-color: initial;
        background-size: inherit;
        background-origin: initial;
        background-clip: initial;
        background-position: 0px 0px;
        background-repeat: initial;







  .comp-predictive-search-content.checkImg
    position absolute
    width auto !important
    padding 0
    border-radius 0
    border 0
    .comp-predictive-search-body
      width auto !important
      border 0
      background-color rgba(0,0,0,0)
      .search-input
        width rxr-rem( 195 ) !important
        background-color rxr-get-color( fengexian )
      .search-loading
        > div
          top -10px
          left -40px
      .search-close
        display none
      .search-button
        display none
    .search-think
      display none
      margin-top 0
      border-top 1px solid #d9d9d9
      border-left 1px solid #d9d9d9
      border-right 1px solid #d9d9d9
      //box-sizing border-box !important
      //margin-top rxr-rem( 2 )
    .search-submit
      text-align left
      height rxr-rem( 50 )
      line-height: rxr-rem( 50 )
      padding 0 rxr-rem( 20 )
      background-color rxr-get-color( fengexian )
      //border-radius 0 0 rxr-rem( 2 ) rxr-rem( 2 )
      border-bottom 1px solid #d9d9d9
      border-left 1px solid #d9d9d9
      border-right 1px solid #d9d9d9
      box-sizing border-box
      border-radius 0 0 5px 5px

      div
        &:first-of-type
          display inline-block
          margin-right rxr-rem( 15 )
        padding rxr-rem( 5 )


  .comp-predictive-search-content.checkBox
    position absolute
    width auto !important
    padding 0
    border-radius 0
    border 0
    .comp-predictive-search-body
      border 0
      background-color rgba(0,0,0,0)
      width auto !important
      .search-input
        width rxr-rem( 195 ) !important
        background-color rxr-get-color( fengexian )
      .search-loading
        > div
          top -10px
          left -40px
      .search-close
        display none
      .search-button
        display none
    .search-think
      display none
      margin-top 0
      border-top 1px solid #d9d9d9
      border-left 1px solid #d9d9d9
      border-right 1px solid #d9d9d9
      box-sizing border-box
      //margin-top rxr-rem( 2 )
    .search-submit
      text-align left
      height rxr-rem( 50 )
      line-height: rxr-rem( 50 )
      padding 0 rxr-rem( 10 )
      background-color rxr-get-color( fengexian )
      //border-radius 0 0 rxr-rem( 2 ) rxr-rem( 2 )
      border-bottom 1px solid #d9d9d9
      border-left 1px solid #d9d9d9
      border-right 1px solid #d9d9d9
      box-sizing border-box
      border-radius 0 0 5px 5px

      div
        &:first-of-type
          display inline-block
          margin-right rxr-rem( 15 )
        padding rxr-rem( 5 )


  .comp-predictive-search-content
    .search-submit
      display block
      box-sizing border-box !important
      width 100%
    .search-think
      display block
      position relative
      width 100%
      height 100%
      z-index 1
      color rxr-get-color( zhengwen )
      background-color #ffffff
      margin-top rxr-rem( 10 )//下边留白
      overflow auto
      box-sizing border-box !important
      ul
        .search-li-checkBox
          overflow: hidden;
          height rxr-rem( 35 )
          line-height 50px;
          padding: 5px 8px 5px 10px;
          div
            line-height normal
          .itemIpt
            float: left;
            width: 10%;
            line-height rxr-rem( 35 )
          .itemInfo
            float: left
            width: 90%
            height rxr-rem( 35 )
            line-height rxr-rem( 35 )
            p
              display inline-block
              overflow: hidden;
              width 100px
              height rxr-rem( 35 )
              line-height rxr-rem( 35 )
              text-overflow: ellipsis;
              white-space: nowrap;
            .userName
              float left
              line-height rxr-rem( 35 )
            .userInfo
              float right
              width rxr-rem( 90 )
              text-align right
              color #9e9e9e

        .search-li-txt
          height rxr-rem( 32 )
          line-height rxr-rem( 32 )
          padding 0 rxr-rem( 10 )
          rxr-text-overflow(ellipsis)
          .itemInfo
            float: left
            width: 100%
            height rxr-rem( 35 )
            line-height rxr-rem( 35 )
            p
              display inline-block
              overflow: hidden;
              width rxr-rem( 90 )
              height rxr-rem( 35 )
              line-height rxr-rem( 35 )
              text-overflow: ellipsis;
              white-space: nowrap;
            .userName
              float left
              line-height rxr-rem( 35 )
            .userInfo
              float right
              width auto
              text-align right
              color #9e9e9e
              text-overflow clip

        .search-li-checkImg
          overflow: hidden;
          height: 50px;
          line-height 50px;
          padding: 5px 8px 5px 10px;
          div
            line-height normal
          .itemIpt
            float: left;
            width: 22px;
            line-height: 50px;
          .itemIcon
            float: left;
            width: 50px;
          .itemInfo
            float: left;
            width: auto;
            height: 50px;
            line-height: 50px;
            margin-left: 10px;
            p
              overflow: hidden;
              width: 100%;
              height: 25px;
              line-height: 25px;
              text-overflow: ellipsis;
              white-space: nowrap;
            .userInfo
              color: #9e9e9e;
            .userName
              line-height: 40px;
              a
                display: inline-block;
                overflow: hidden;
                max-width rxr-rem( 150 )
                color: rxr-get-color( wenzilian )
                white-space: nowrap;
                text-overflow: ellipsis;

                .icon_approve
                  background-position: 0 -50px;
                  width: 14px;
                  height: 14px;
                  margin-left: 3px;
                  vertical-align: text-top;

                .W_icon_0
                  //rxr-load-Img( 'icon-old.png' )
                  display: inline-block;
                .W_icon_1
                  rxr-load-Img( 'icon-old.png' )
                  background-position 0 -50px
                .W_icon_2
                  rxr-load-Img( 'icon-old.png' )
                  background-position 0 -75px
                i
                  width 14px !important
                  height 14px !important
                  background-size 625px 325px
                  display: inline-block;

