
@import "@core/scss/theme/config.scss";

.cd-ui-checkbox{
  position: relative;
  display: inline-block;
  width: 13px;
  height: 13px;
  margin-right: 5px;
  border: 1px solid #bbb;
  cursor: pointer;
  vertical-align: top;
  background-color: #fff;

  &:hover{
    opacity: 0.8;
  }
  &.checked{
    border-color: #29f;
    background-color: #29f;

    &:before{
      border-color : #fff;
    }
    &.disabled{
      border-color: #c8c8c8 !important;
      background-color: #dcdcdc !important;
      cursor: no-drop;
      &:before{
        border-color: #c8c8c8 !important;
      }
    }
  }
  &:before {
    content: "";
    border-bottom: 2px solid transparent;
    border-right: 2px solid transparent;
    height: 6px;
    left: 4px;
    position: absolute;
    top: 2px;
    transform: rotate(45deg);
    width: 3px;
  }
  &.disabled{
    border-color: #c8c8c8 !important;
    background-color: #dcdcdc !important;
    cursor: no-drop;
    &:before{
      border-color: transparent !important;
    }
  }

}
.cd-sku{
  padding: 20px;
  font-size: 12px;
  position: relative;
  min-width: 1100px;
  box-sizing: border-box;
  
  .cd-sku-head{
    button{
      margin: 0;
    }
  }
  
  .local-save{
    position: absolute;
    width: 35px;
    height: 50px;
    right: 331px;
    top: 240px;
    background: #FFFFFF;
    
    i{
      position: absolute;
      width: 12px;
      height: 12px;
      border-top: 1px solid #999;
      border-right: 1px solid #999;
      transform: rotate(45deg);
      top: 18px;
      left: 7px;

    }
    
  }
  .sku-select-type-con{
    height: 35px;
    text-align: center;
    font-size: 14px;
    color: #333;
    line-height: 21.99px;
    font-weight: bold;
    span{
      cursor: pointer;
      margin: 0 20px;
      padding: 3px 0;
      border-bottom: 2px solid transparent;
      &.sku-tab-active{
        border-bottom-color: #E2231A;
        color: #E2231A;
      }
    }
  }
  .sku-tab-con-item{
    display: none;
    textarea{
      height: 220px;
      background: #FFFFFF;
      border: 1px solid #E1E1E1;
      border-radius: 2px;
      box-sizing: border-box;
      width: 100%;
      padding: 8px;
      &.sku-error{
        color: #E2231A;
      }
    }
    .sku-textarea-bottom{
      text-align: right;
      padding-top: 10px;
      margin-right: -5px;
      .sku-nums,
      .sku-error-msg{
        float: left;
        display: none;
        i{
          font-style: normal;
        }
      }
      .sku-error-msg{
        color: #F44336;
      }
      .sku-nums{
        color:#999;
        i{
          color:#2299FF;
          margin: 0 3px;
        }
      }
      span{
        margin-right: 10px;
        cursor: pointer;
        vertical-align: middle;
      }
    }
    .sku-port-tip{
      a{
        font-size: 12px;
        color: #29f;
      }
    }
  }
  .sku-con-left{
    width: 705px;
    height: 525px;
    float: left;
    border: 1px solid #E1E1E1;
    padding: 20px;
    box-sizing: border-box;
  }

  .sku-con-right{
    position: relative;
    width: 300px;
    height: 525px;
    float: right;
    border: 1px solid #E1E1E1;
    padding: 20px 10px;
    box-sizing: border-box;
    .skus-delete-overlay{
      display: none;
      position: absolute;
      left: 0;
      right: 0;
      bottom: 0;
      top: 0;
      background: #fff;
      text-align: center;
      p{
        margin-top: 220px;
        margin-bottom: 10px;
        font-size: 14px;
        color: #333;
      }
    }
    ul{
      height: 465px;
      margin-top: 5px;
      overflow-y: auto;
      .empty-msg{
        background: transparent;
        margin-top: 180px;
        text-align: center;
        font-size: 14px;
        line-height: 25px;
        color: #999;
      }
    }
  }
  .cd-sku-head{
    >div{
      margin-bottom: 10px;
      >span{
        display: inline-block;
      }
      >span.select{
        width: 130px;
        margin-right: 15px;
        select{
          width: 100%;
          height: 33px;
          line-height: 33px;
          background: transparent;
        }
      }
      .search-input{
        width: 140px;
        padding: 0 5px;
        margin-right: 15px;
      }
      .search-btn{
          @extend .cd-middle-black-border-btn;
          height: 30px!important;
          line-height: 30px!important;
      }
    }
  }
  .cd-sku-content{
    height: 370px;
    overflow-y: auto;
  }
  .pagination{
    padding-top: 15px;
    text-align: center;
    height: 30px;
    overflow: hidden;
  }
  .cd-sku-bottom{
    text-align: right;
    padding-top: 20px;
    clear: both;
    button{
      margin-left: 15px;
    }
  }
  table{
    td{
      text-align: center;
    }
  }
  img{
    width: 60px;
    height: 60px;
    border: 1px solid #EFEFEF;
  }
  .select-skus-con{
    h3{
      font-size: 14px;
      span{
        margin-left: 5px;
        font-weight: normal;
        font-size: 12px;
        color: #3F3F3F;
        i{
          color: #2299FF;
          font-style: normal;
        }
      }
    }
    .select-sku-head{
      margin: 10px;
      .delete-skus{
        margin-left: 5px;
        cursor: pointer;
      }
    }
    li{
      position: relative;
      background: #F5F5F5;
      border-radius: 2px;
      margin-bottom: 2px;
      padding: 5px 10px;
    }
    img{
      display: inline-block;
      vertical-align: middle;
    }
    .name{
      display: inline-block;
      width: 160px;
      height: 60px;
      overflow: hidden;
      vertical-align: middle;
      p{
        line-height: 24px;
        padding: 8px 2px;
        overflow: hidden;
         text-overflow: ellipsis;
         display: -webkit-box;
         -webkit-line-clamp: 2;
         -webkit-box-orient: vertical;
      }
    }
    .delete-sku-item{
      position: absolute;
      right: 5px;
      top: 25px;
      cursor:pointer;
      color: #666;
      padding: 5px 4px;
      font-size: 14px;
      cursor: pointer;
      &:hover{
        color: #333;
      }
    }
    .cd-ui-checkbox{
      vertical-align: middle;
    }
  }
}

