;@font-color: #333;
@font-color-active: #3688FF;
@page-background-color: #F0F0F5;


@font-size-content-title: 17px;
@font-size-content-detail: 15px;
@font-size-content-input: 10px;

@font-size-total-title: 14px;
@font-size-total-detail: 12px;
@import '../../styles/theme/theme.less';

.inventory-list, .inventory-list-Max {
  background: @page-background-color;
  position: fixed;
  top: 45px;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;

  .yindao{
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    z-index: 1000;
    background: url(../../images/yindao.png) bottom -10px left -10px rgba(0, 0, 0, 0) no-repeat;
    background-size: cover;
  }

  .searchbar {
    border-bottom: none!important;
  }
  .search-bar{
    padding-right: 26px;
    .shanchu1-icon{
      margin: 0 8px;
    }
  }
  .searchBar{
    .saoyisao-icon{
     position: absolute;
     right: 15px;
    }
  }
  .am-list-body {
    background: inherit;
    border-bottom: none!important;
  }
  .am-list-footer {
    div {
      display: none;
    }
  }
  .inventory-list-filter+div {
    flex: 1;
    overflow: hidden;
    height: calc(~'100% - 89px');
    >div.body {
      height: 100%;
      >div {
        height: 100%;
      }
    }
    .loading, .empty {
      height: 100%;
    }
  }
  .am-list-footer {
    padding: 40px!important;
  }

  .inventory-list-detail {
    flex: 1;
    display: flex;
    position: relative;

    .leftBox {
      // flex:0 0 100px;
      overflow-y: scroll;
      background-color: #f7f8f9;

      .inventory-classifyList {
        padding-bottom: 100px;
        width: 79px;
        background-color: #f7f8f9;
        box-shadow: 8px 0px 0px #F0F0F5;
        min-height: 100%;
        margin-right: 1px;
        .inventory-classifyItem {
          min-height: 35px;
          line-height: 1.6;
          font-size: 13px;
          padding: 4px 10px;
          border-bottom: 1px solid #f3f3f3;
          display: flex;
          align-items: center;
          justify-content: flex-start;
          position: relative;
  
          .classText {
            max-width: 62px;
            word-break: break-all;
            text-overflow: ellipsis;
            overflow: hidden;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
          }
  
          img {
            width: 13px;
            height: 12px;
            position: absolute;
            right: 6px;
          }
        }
    
        .choosed {
          background-color: #C3DCFF;
        }
      }
    }

    .leftBox::-webkit-scrollbar {
      display: none;
    }

    .nextLeaf {
      position: absolute;
      z-index: 2;
      left: 80px;
      top: 0;
      height: 100%;
      overflow-y: scroll;

      .inventory-classifyList-leaf {
        width: 126px;
        overflow-y: scroll;
        background-color: #f7f8f9;
        height: 100%;

        .inventory-classifyItem {
          min-height: 35px;
          line-height: 1.6;
          font-size: 13px;
          padding: 4px 10px;
          border-bottom: 1px solid #f3f3f3;
          display: flex;
          align-items: center;
          justify-content: flex-start;
          position: relative;
  
          .secondNameText {
            word-break: break-all;
            text-overflow: ellipsis;
            overflow: hidden;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
          }
  
          img {
            width: 13px;
            height: 12px;
            position: absolute;
            right: 6px;
          }
        }
    
        .choosed {
          background-color: #C3DCFF;
        }
      }

      .inventory-classifyList-leaf::-webkit-scrollbar {
        display: none;
      }
    }

    .nextLeaf::-webkit-scrollbar {
      display: none;
    }

    >div:nth-child(2) {
      width: 100%;
      flex: 1;
    }
    .body {
      height: 100%;
      width: 100%;
      >div {
        height: 100%;
      }
    }
    .loading, .empty {
      height: 100%;
    }
  }

  .inventory-list-filter {
    border-bottom: 1PX solid #DDD;
    height: 44px;
    display: flex;
    justify-content: space-around;
    background: #FFF;
    .inventory-list-filter-item {
      width: 100px;
      height: 100%;
      display: inline-flex;
      flex-direction: column;
      justify-content: center;
      text-align: center;
      font-size: 15px;
      color: @font-color;
    }
    .inventory-list-filter-item-active {
      color:#5471FF;
      position: relative;
      &::before {
        content: '';
        position: absolute;
        bottom: -1px;
        left: 50%;
        transform: translateX(-50%);
        height: 3px;
        width: 20px;
        background: #5471FF;
      }
    }
  }

  .old-inventory-list-detail {

    flex: 1;
    overflow: hidden;
    height: calc(100% - 0.89rem);

    >div:first-child {
      flex: 1;
      overflow: hidden;
      height: 100%;
      >div.body {
        height: 100%;
        >div {
          height: 100%;
        }
      }
      .loading, .empty {
        height: 100%;
      }
    }
    .row{
      padding: 0.12rem 0.08rem 0.1rem 0.12rem !important;
    }
  }
  .am-list-view-scrollview .am-list-body .list-view-section-body > div:nth-child(2n) {
    height: 0PX!important;
  }
  .am-list-view-scrollview .am-list-body .list-view-section-body > div:nth-last-child(2) {
    margin-bottom: 0!important;
  }
  // .am-list-view-scrollview::-webkit-scrollbar{
  //   display:none;
  // }
  .rowTitle {
    display: flex;
    justify-content: space-between;
    padding: 0.07rem 0.1rem;
    font-size: 12px;
    color: #000000;
    font-weight: 400;
    background: #E2E9FA;
    box-sizing: border-box;
    .leftDiv {
      white-space: nowrap;
      text-overflow: ellipsis;
      overflow: hidden;
      max-width: 70%;
    }
    >:last-child {
      color: #FF2726;
      margin-left: 5px;
    }
  }
  .rowExchangeGoods {
    margin-bottom: 0px !important;
  }

  .row {
    width: 100%;
    position: relative;
    padding: 12px 8px 10px 10px;
    box-sizing: border-box;
    margin-bottom: 8px;
    background: #FFF;
    // padding-bottom: 30px !important;
    .row-tags{
      line-height: 20px;
      margin-bottom: 10px;
      .biaoqian-icon{
        color: #49BCD1;
        font-size: 24px;
        margin-right: 6px;
      }
      .row-tag{
        color: #fff;
        border-radius: 4px;
        padding: 2px 8px;
        font-size: 12px;
        margin-right: 8px;
        border-radius: 3px;
        &.new{
          // border: 1px solid #F3A012;
          // color: #F3A012;
          font-family: PingFangSC-Medium;
          font-size: 12px;
          color: #F3A012;
          letter-spacing: 0;
          font-weight: 500;
          background: #FFF5D9;
          border-radius: 3px;
        }
        // &.tuihuo{
        //   border: 1px solid #93BCF8;
        //   color: #93BCF8;
        // }
        &.tuihuo{
          // border: 1px solid #3788ff;
          // color: #3788ff;
          font-family: PingFangSC-Medium;
          font-size: 12px;
          color: #3D8AFB;
          letter-spacing: 0;
          font-weight: 500;
          background: #E8F2FF;
          border-radius: 3px;
        }
        &.gaomaoli{
          // border: 1px solid #FF7C7C;
          // color: #FF7C7C;
          font-family: PingFangSC-Medium;
          font-size: 12px;
          color: #1FC677;
          letter-spacing: 0;
          font-weight: 500;
          background: #E6FAF1;
          border-radius: 3px;
        }
        &.baopin{
          // border: 1px solid #A394DC;
          // color: #A394DC;
          font-family: PingFangSC-Medium;
          font-size: 12px;
          color: #FC6060;
          letter-spacing: 0;
          font-weight: 500;
          background: #FFEDEB;
          border-radius: 3px;
        }
      }
    }
    .row-title {
      font-size: @font-size-content-title;
      color: #333;
      margin-bottom: 10px;
      word-break: break-all;
      font-weight: 500;
    }
    .row-content {
      display: flex;
      position: relative;
      
      .invDetail {
        width: 40px;
        height: 40px;
        position: absolute;
        right: -5px;
        top: 0;
        margin-top: -10px;
        .invDetail-in {
          margin: 6px;
          width: 28px;
          height: 28px;
          text-align: center;
          line-height: 28px;
          display: flex;
          .gengduo-icon {
            color: #666;
            margin: auto;
            font-size: 13px;
            width: 13px;
            height: 13px;
          }
        }
      }
      .row-title {
        font-size: 16px;
        line-height: 21px;
        padding-right: 30px;
        color: #000;
        margin-bottom: 10px;
        word-break: break-all;
        text-overflow: ellipsis;
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        flex: 1;
      }
      .img,.imgDefault {
        width: 64px;
        height: 64px;
        background: #999;
        border-radius: 6px;
        display: inline-block;
        vertical-align: top;
        margin-right: 11px;
        margin-bottom: 10px;
      }
      .imgDefault{
        background-image: url('../../images/default.png') !important;
      }
      
      .content {
        flex: 1;
        display: inline-block;
        box-sizing: border-box;
        .priceArea{
          min-height: 20px;
          position: relative;
          .add-in {
            margin: 6px;
            width: 38px;
            height: 38px;
            background: #F4F4F4;
            border-radius: 50%;
            text-align: center;
            line-height: 28px;
            display: flex;
            position: absolute;
            right: 0;
            bottom: 0;
            margin-right: -5px;
            margin-bottom: -15px;
            z-index: 1;
            top: inherit;
            .gouwuche-icon {
              color: #5471FF;
              margin: auto;
              font-size: 13px;
              width: 13px;
              height: 13px;
            }
          }
        }
        .row-item {
          width: 50%;
          display: inline-block;
          // font-size: @font-size-content-detail;
          font-size: 15px;
          margin-bottom: 8px;
          .row-label {
            display: inline-block;
            color: #777;
          }
          .row-text {
            display: inline-block;
            color: #333;
          }
        }
        .row-footer {
          padding-right: 24px;
          // font-size: @font-size-content-detail;
          font-size: 14px;
          display: flex;
          .checkBox {
            flex: 1;
          }
          .rowBlock {
            flex: 1;
            .inputArea {
              margin-bottom: 15px;
              margin-left: 10px;
            }
          }
          .rowInline {
            display: inline-flex;
            .inputArea {
              span {
                color: #666;
              }
              &:first-child{
                margin-right: 25px;
              }
            }
          }
          .checkBox {
            color: #333;
            display: inherit;
            margin-right: 5px;
            .checkbox-icon {
              width: @font-size-content-detail;
              height: @font-size-content-detail;
              margin-right: 2px;
            }
          }
          .am-list-item.am-input-item {
            padding-left: 0;
            .am-list-line {
              padding-right: 0;
              border: none!important;
              border-bottom: 1PX solid white!important;
            }
          }
          .add {
            width: 50px;
            height: 50px;
            display: inline-block;
            position: absolute;
            right: 0;
            bottom: 4px;
            
          }
          
          .inputArea{
            display: flex;
            font-size: 14px;
            flex: 1;
            .detail-control-text{
              flex:1;
              display: inline-block;
              height: 20px;
              vertical-align: baseline;
              .detail-control-input{
                padding-top: 0;
              }
            }
            .inputItem {
              flex:1;
              display: inline-block;
              height: 20px;
              vertical-align: baseline;
              margin-left: 3px;
              margin-top: -2px;
              // border: none!important;
              // outline: none!important;
              // .am-list-line {
              //   border: none!important;
              //   outline: none!important;
              //   .am-input-control {
              //     border: none!important;
              //     outline: none!important;
                  input {
                    // border: none;
                    color: #000 !important;
                    font-size: 14px !important;
                    border-bottom: 1PX solid #C8C8CD;
                    // border-bottom: 1PX solid red;
                    border-radius: 0;
                    outline: none!important;
                  }
                  input:not(:disabled):hover {
                    border-bottom: 1PX solid #3688FF;
                  }
                  input::-webkit-input-placeholder {
                      /* placeholder颜色  */
                      color: #C8C8CD;
                  }
              //   }
              // }
            }
          }
          

          .input1 {
            margin-left: 4px;
            margin-right: 12px;
          }

          .input2 {}
        }
        
        .wrapInputArea {
          display: block;
          .row-content {
            flex: 1;
          }
         
          .row_quantity {
            display: flex;
            position: relative;
            .inputArea {
              display: flex;
              span {
                color: #666;
              }

              .detail-control-text{
                height: 0.2rem;
                vertical-align: baseline;
                .detail-control-input {
                  padding-top: 0;
                  width: 100px;
                }
              }
            }

            .dropdown {
              width: 100px;
              line-height: 0.21rem;
              height: 0.21rem;
              border-bottom: solid 1PX #C8C8CD;
              margin-left: 3px;
              position: relative;

              .title {
                top: -1px;
                max-width: 80% !important;
              }
              .dropBtn {
                font-size: 20px !important;
                right: 0;
              }
            }
          }

          .rowInline {
            .inputArea2 {
              display: flex;
              margin-bottom: 10px;
              span{
                color: #666;
              }
              .detail-control-text{
                vertical-align: baseline;
                .detail-control-input {
                  padding-top: 0;
                  width: 100px;
                }
              }
            }
          }
          
        }

        .editRow {
          .btnRow {
            display: flex;
            margin-bottom: 10px;
            .btn, .activedBtn {
              // background: #EFEFEF;
              // border: 0.5px solid rgba(151,151,151,1);
              // border-radius: 2.42px;
              // font-family: PingFangSC-Regular;
              font-size: 14px;
              // color: #000000;
              font-weight: 400;
              // padding: 6px 14px;
              margin-right: 5px;

              padding: 0 0.08rem;
              background: #F5F5F5;
              border-radius: 0.04rem;
              color: #2D2D2D;
              border: 0.01rem solid #F5F5F5;
              line-height: 0.25rem;
            }
            .activedBtn {
              // color: #3688FF;
              // border: 0.5px solid #3688FF;
              background: rgba(54, 136, 255, 0.06);
              border: 0.01rem solid #3688FF;
              border-radius: 0.04rem;
              color: #3688FF;
            }
          }

          .top {
            display: flex;
            .icon-n-tianjian, .icon-n-shanchu {
              font-size: 13px;
              color: #5471FF;
              margin-left: 15px;
              position: relative;
              top: -1px;
            }
            .row_quantity {
              padding-bottom: 10px;
            }
          }
        }
      }
    }

    .row-content-edit {
      position: absolute;
      .row-content {

      }
    }
    .special {
      .img,.imgDefault {
        width: 50px;
        height: 50px;
        background: #999;
        border-radius: 6px;
        display: inline-block;
        vertical-align: top;
        margin-right: 11px;
        margin-bottom: 10px;
      }
    }
    .selectedInfo{
      font-size: 13px;
      color:#999;
      padding-top: 10px;
      .quantity{
        color: red;
      }
    }

    .unitListone {
      display: flex;
      align-items: center;
      .unitItem {
        justify-content: flex-end;
        padding-bottom: 8px;
      }
      .row-content {
        flex: 1;
        .row-footer {
          padding-right: 0 !important;
        }
      }
    }

    .unitList{
      padding: 0rem 0.1rem 0 0.1rem;
      padding-left: 0;
      padding-right: 0;
      display: flex;
      flex-wrap: wrap;
      position: relative;
  
      .row-content{
        width: 100%;
      }
      .unitItem {
        margin-right: 5px;
        display: flex;
        align-items: baseline;
        margin: 4px 5px 4px 0;
        max-width: 48%;
        .inconCss {
          font-size: 20px;
          display: flex;
          justify-content: space-between;
          border: 1px solid #ddd;
          border-radius: 0.04rem;
          min-width: 75%;
          .add {
            border-right: 1px solid #ddd;
            padding: 0 0.05rem;
            color: #777;
            font-size: 20px;
            line-height: 27px;
          }
          .sub {
            border-left: 1px solid #ddd;
            padding: 0 0.05rem;
            color: #777;
            font-size: 20px;
            line-height: 27px;
          }

          .detail-control-input{
            text-align: center;
            font-size: 15px;
            color: black;
            padding-top: 5px;
            border-bottom: none;
          }
        }
        .unitCss {
          font-size: 14px;
          padding-left:5px;
        }
        .lineCss {
          width: 0.01rem;
          height: 0.15rem;
          background-color: #999;
          margin-left: 0.1rem;
          position: relative;
          top: 3px;
        }
      }
    }
    
  }

  .loadFooter{
    width: 100%;
    text-align: center;
    line-height: 40px;
    // background: white;
    margin-top: -4px;
    border-radius: 0 0 10px 10px;
  }

  .topAddInv{
    position: absolute;
    
    left: 10px;
    background-color: #3688FF;
    border-radius: 10px;
    color: white;
    line-height: 48px;
    text-align: center;
    font-size: 16px;
    height: 48px;
    z-index: 100;
    padding: 0 10px;
  }

  .bottomBar,.bottomBarPrint{
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 48px;
    background: white;  
    border-top: 1px solid #eee;
    z-index: 2;
    .totalInfo{
      font-family: PingFangSC-Regular;
      font-size: 13px;
      color: #333333;
      letter-spacing: 0;
      font-weight: 400;
      padding-left: 70px;
      padding-top: 15px;
    }
    .addInv,.selectAll,.labelPrint{
      color: white;
      background-color: #5471FF;
      position: absolute;
      right: 0;
      top: 0;
      bottom: 0;
      line-height: 48px;
      text-align: center;
      font-size: 16px;
      font-family: PingFangSC-Regular, sans-serif;
      padding: 0 20px;
      border-top: 1PX solid #DDD;

    }
    .selectAll,.labelPrint{
      position:relative;
      flex: 1;
    }
    .selectAll{
      color: #5471FF;
      background-color: white;
    }
    .car {
      width: 48px;
      height: 48px;
      border-radius: 50%;
      position: absolute;
      bottom: 24px;
      left: 12px;
      background: #FFF;
      display: flex;
      box-shadow: 0px 1px 4px #CCC;
      background-color: #5471FF;

    .gouwuche-icon {
      color: #fff;
      margin: auto;
      width: 26px;
      height: 26px;
    }

    .car-number {
      position: absolute;
      top: -9px;
      right: -2px;
      // border: 1PX solid #E60012;
      border-radius: 9px;
      padding: 0px 5px;
      height: 18px;
      line-height: 18px;
      font-size: 12px;
      // color: #E60012;
      // background: #FFF;
      color: #fff;
      background: #FF5E5E;
      min-width: 7px;
      min-height: 7px;
      text-align: center;
      }
    }
  }

  .bottomBarPrint{
    display: flex;
  }
  

  .addIcon,.addIcon1 {
    // width: 100%;
    min-height: 40px;
    display: flex;
    justify-content: flex-end;

    .unitListBox{
      padding: 10px;
      padding-left: 0;
      position: absolute;
      left: 5px;

      .unitInfo{
        font-size: 14px;
        color: #666666;
        margin-top: 10px;
      }
    }

    .priceStrategy{
      padding-top: 15px;
      .strategy,.getPrice,.priceRef{
        font-size: 14px;
        color: #5670FE;
        line-height: 20px;
        border: 1px solid #5670FE;
        border-radius: 4px;
        text-align: center;
        padding: 0 3px;
        padding-left: 5px;
      }
      .getPrice{
        color: #5670FE;
        border: 1px solid #5670FE;
        margin-right: 10px;
        padding-right: 5px;
      }
      .priceRef{
        color: #333;
        border: 1px solid #333;
      }
      .noStrategy{
        display: flex;
      }
    }
  }
  .addIcon1{
    min-height: 65px;
  }
}

.line-overflow-1 {
  display: block;
  overflow: hidden;
  word-break: keep-all;
  white-space: nowrap;
  // text-overflow: ellipsis;
}

.invFilter{
  text-align: left;
  width: 150px;
  margin: auto;
  div{
    padding-top:5px;
  }
  color: #000;
  .checkicon,.uncheckicon {
    margin-right: 5px !important;
    color: #3688FF;
    font-size: 15px;
    margin-left: 10px;
  }

  .uncheckicon{
    color: #999999;
  }
}

#inventoryAnimate {}

.inventory-list-Max {
  .inventory-classifyItem{
    font-size: @fontSizeLeve7 !important;
  }
  .row-title {
    font-size: @fontSizeLeve9 !important;
    color: #000;
    margin-bottom: 15px;
  }
  .row-item {
    width: 100% !important;
    font-size: @fontSizeLeve8 !important;
  }
  .row-text {
    font-size: @fontSizeLeve8 !important;
  }
  .row-footer {
    display: block !important;

    .inputArea,.checkBox {
      height: 0.33rem;
      font-size: @fontSizeLeve8 !important;
    }
    .checkbox-icon {
      width: @fontSizeLeve8 !important;
      height: @fontSizeLeve8 !important;
    }
    .inputArea {
      display: inline-table !important;
      margin-bottom: 10px;
      input{
        margin-top: 5px;
      }
    }
    .rowBlock {
      flex: 1;
      .inputArea {
        margin-left: 0px !important;
      }
    }
  }
  .row-tags{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    margin-bottom: 5px !important;
  }
  .row-tag{
    font-size: @fontSizeLeve7 !important;
    margin-bottom: 0.05rem;
  }
  .comboBox {
    div {
      font-size: @fontSizeLeve7 !important;
    }
  }
  .gouwuche-icon {
    width: @fontSizeLeve8 !important;
    height: @fontSizeLeve8 !important;
  }
  .add-in {
    width: 40px !important;
    height: 40px !important;
  }
  .addIcon {
    right: 0.08rem !important;
    bottom: 0.1rem !important;
  }
  .unitCss {
    font-size: @fontSizeLeve7 !important;
  }
  .gengduo-icon {
    width: @fontSizeLeve6 !important;
    height: @fontSizeLeve6 !important;
  }
  .img, .imgDefault{
    width: 70px !important;
    height: 70px !important;
  }
  .list-view-section-body{
    .row, .row-content, .content {
      >*{
       font-size: @fontSizeLeve6 !important;
      }
      .row-title {
        font-size: @fontSizeLeve9 !important;
        color: #000;
      }
    }
  }

  .am-list-view-scrollview-content{
    left: 0 !important;
    right: 0 !important;
  }
}