@import "~antd/lib/style/themes/default.less";

.goodsListBox {
  .goodsNumUnit {
    position: absolute;
    right: 0;
    top: 0;
  }
  .fontRed {
    color: #e14c46;
  }
  .goodsOpt {
    display: inline-block;
    width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: pointer;
  }
  .valBox {
    display: inline-block;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .delBtn {
    display: none;
    color: #e14c46;
    cursor: pointer;
    position: absolute;
    right: 5px;
    top: 35%;
  }
  .goodsListGrid table tbody tr {
    &:hover {
      .delBtn {
        display: block;
      }
      td:first-child {
        border-left: 3px solid #e14c46;
      }
    }
  }
  .em {
    padding-left: 5px;
    font-size: 12px;
    color: #999;
  }
  :global {
    .ant-select-selection__rendered {
      margin-right: 0;
    }
    thead > tr {
      .thAlignCenter {
        text-align: center !important;
      }
      .thPaddingRight20 {
        padding-right: 20px !important;
      }
    }
    .alignRight {
      text-align: right;
    }
    .positionRelative {
      position: relative;
    }
  }
  .expandedTop {
    font-size: 12px;
    margin-top: 5px;
    .giftTip {
      padding: 1px 6px;
      border: 1px solid #e75a55;
      border-radius: 2px;
      color: #e75a55;
      margin: 0 10px;
    }
  }
}

// 列表
.imgBox {
  float: left;
  width: 60px;
  height: 60px;
  & img {
    height: 60px;
    width: 60px;
  }
}
.goodsInfo {
  float: left;
  height: 60px;
  padding-top: 1px;
  padding-left: 10px;
}
.goodsTitleName {
  color: #333;
  width: 145px;
  font-size: 14px;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  margin: 0;
}
.goodsCode {
  font-size: 12px;
  color: #999;
  margin: 0;
}
.goodsStatus {
  display: block;
  width: 16px;
  height: 16px;
  background: #59c152;
  border-radius: 2px;
  color: #fff;
  text-align: center;
  line-height: 16px;
}
.goodsStatusTxt {
  font-size: 10px;
  transform: scale(0.8);
  margin: 0;
}
// 操作列
.bodyUploadBox {
  .bodyUploadContent {
    width: 120px;
    display: inline-block;
    position: relative;
    .uploadIcon {
      width: 20px;
      height: 20px;
      line-height: 30px;
      cursor: pointer;
    }
    .uploadTip {
      font-size: 10px;
      color: #999;
      clear: both;
      position: relative;
    }
    :global {
      .ant-upload.ant-upload-select {
        position: absolute;
        bottom: 0;
      }
      .ant-upload-list-item {
        height: 20px;
        margin: 0;
        .ant-upload-list-item-info {
          .anticon-paper-clip,
          .ant-upload-list-item-name {
            color: #999;
            font-size: 10px;
          }
        }
      }
    }
  }
}
