 $selectedColor: #EDF2FF;
 $lighterBlue: #409EFF;

.container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.components-list {
  padding: 10px;
  box-sizing: border-box;
  height: 100%;
  .components-item {
    display: inline-block;
    width: 46%;
    margin: 2%;
    transition: transform 0ms !important;
  }
}
.components-draggable{
  padding-bottom: 6px;
}
.components-title{
  font-size: 14px;
  font-weight: bold;
  color: #333333;
  margin: 6px 6px;
  .svg-icon{
    color: #666;
    font-size: 18px;
  }
}

.components-body {
  display: flex;
  padding: 5.5px 10px;
  // background: $selectedColor;
  font-size: 14px;
  cursor: move;
  // border: 1px dashed $selectedColor;
  border: 1px solid #EEEEEE;
  border-radius: 3px;
  .svg-icon{
    color: #777;
    font-size: 15px;
  }
  &:hover {
    // border: 1px dashed #787be8;
    border: 1px solid #4D7CFE;
    color: #4D7CFE;
    .svg-icon {
      color: #4D7CFE;
    }
  }
}

.left-board {
  width: 307px;
  position: absolute;
  left: 0;
  top: 0;
  height: 100vh;
}
.left-scrollbar{
  height: calc(100vh - 56px);
  overflow: hidden;
}
.center-scrollbar {
  height: 100%;
  overflow: hidden;
  border-left: 1px solid #f1e8e8;
  border-right: 1px solid #f1e8e8;
  box-sizing: border-box;
}
.preview{
  margin: 0!important;
  padding: 16px!important;
  height: 100%;
}
.center-board {
  height: 100vh;
  width: auto;
  margin: 0 350px 0 307px;
  box-sizing: border-box;
}
.empty-info{
  position: absolute;
  top: 46%;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 18px;
  color: #ccb1ea;
  letter-spacing: 4px;
}
.action-bar{
  // position: relative;
  height: 56px;
  right: 0;
  // width: calc(100% - 120px);
  text-align: right;
  padding: 0 15px;
  box-sizing: border-box;;
  border: 1px solid #f1e8e8;
  border-top: none;
  border-left: none;
  line-height: 56px;
  .delete-btn{
    color: #F56C6C;
  }
}
.logo-wrapper{
  position: relative;
  height: 56px;
  background: #fff;
  border-bottom: 1px solid #f1e8e8;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  padding-left: 24px;
}
.logo{
  width: auto;
  // position: absolute;
  // left: 12px;
  // top: 6px;
  // line-height: 30px;
  // color: #00afff;
  // font-weight: 600;
  // font-size: 17px;
  // white-space: nowrap;
  // > img{
  //   width: 30px;
  //   height: 30px;
  //   vertical-align: top;
  // }
  // .github{
  //   display: inline-block;
  //   vertical-align: sub;
  //   margin-left: 15px;
  //   > img{
  //     height: 22px;
  //   }
  // }
  display: flex;
  // justify-content: space-between;
  div{
    margin-left: 16px;
  }
}

.center-scrollbar .center-board-row {
  padding: 12px 12px 15px 12px;
  box-sizing: border-box;
  & > .el-form {
    // 69 = 12+15+42
    height: calc(100vh - 83px);
  }
}
.preview .center-board-row {
  padding: 0px;
  box-sizing: border-box;
  & > .el-form {
    // 69 = 12+15+42
    height: calc(100vh - 0px);
  }
}
.drawing-board {
  height: 100%;
  position: relative;
  padding: 0 7.5px;
  .components-body {
    padding: 0;
    margin: 0;
    font-size: 0;
  }
  .sortable-ghost {
    position: relative;
    display: block;
    overflow: hidden;
    &::before {
      content: " ";
      position: absolute;
      left: 0;
      right: 0;
      top: 0;
      height: 3px;
      background: rgb(89, 89, 223);
      z-index: 2;
    }
  }
  .components-item.sortable-ghost {
    width: 100%;
    height: 60px;
    background-color: $selectedColor;
  }
  .active-from-item {
    & > .el-form-item{
      background: $selectedColor;
      border-radius: 6px;
    }
    & > .drawing-item-copy, & > .drawing-item-delete{
      display: initial;
    }
    & > .component-name{
      color: $lighterBlue;
    }
  }
  .el-form-item{
    margin-bottom: 15px;
  }
}

.drawing_board>:last-child{
  // .assembly{
    padding-bottom: 20px;

}

.drawing-item{
  position: relative;
  cursor: move;
  &.unfocus-bordered:not(.active-from-item) > div:first-child {
    border: 1px dashed #ccc;
  }
  .el-form-item{
    padding: 12px 10px;
  }
}
.drawing-row-item{
  position: relative;
  cursor: move;
  box-sizing: border-box;
  border: 1px dashed #ccc;
  border-radius: 3px;
  padding: 0 2px;
  margin-bottom: 15px;
  .drawing-row-item {
    margin-bottom: 2px;
  }
  .el-col{
    margin-top: 22px;
  }
  .el-form-item{
    margin-bottom: 0;
  }
  .drag_wrapper{
    min-height: 80px;
  }
  &.active-from-item{
    border: 1px dashed $lighterBlue;
  }
  .component-name{
    position: absolute;
    top: 0;
    left: 0;
    font-size: 12px;
    color: #bbb;
    display: inline-block;
    padding: 0 6px;
  }
}
//  组件复制删除 start
.iconPosition{
  &:hover {
    & > .el-form-item{
      // background: $selectedColor;
      border-radius: 6px;
    }
    & > .drawing-item-copy, & > .drawing-item-delete{
      display: initial;
    }
  }
  & > .drawing-item-copy, & > .drawing-item-delete{
    // display: none;
    position: absolute;
    top: -7px;
    width: 22px;
    height: 22px;
    line-height: 22px;
    text-align: center;
    // border-radius: 50%;
    font-size: 16px;
    // border: 1px solid;
    cursor: pointer;
    z-index: 1;
  }
  & > .drawing-item-copy{
    right: 25px;
    // border-color: $lighterBlue;
    color: #999;
    // background: #fff;
    &:hover{
      // background: $lighterBlue;
      color:  #4D7CFE;
    }
  }
  & > .drawing-item-delete{
    right: 0px;
    // border-color: #F56C6C;
    color: #999;
    // background: #fff;
    &:hover{
      // background: #F56C6C;
      color: #F56C6C;
    }
  }
}
// end
// 组件选中颜色
.activeColor{
  background-color: #f6f7ff;
  border-radius: 6px;
}
// 组件复制删除icon位置
.iconPosition{
  position: absolute;
  top: 8px;
  right: 8px;
}
.assembly{
  position: relative;
}
// 设计页面右侧css
.right-board {
  width: 350px;
  position: absolute;
  right: 0;
  top: 56px;
  padding-top: 3px;
  .field-box {
    position: relative;
    height: calc(100vh - 104px);
    box-sizing: border-box;
    overflow: hidden;
  }
  .el-scrollbar {
    height: 100%;
  }
}
.headerFelx{
  display: flex;
  margin: 8px -18px 16px -15px;
  height: 32px;
  padding: 0 18px 0 15px;
  align-items: center;
  font-size: 14px;
  font-weight: bold;
  color: #333333;
  background: #F2F2F2;
  justify-content: space-between;
}

.drag_wrapper{
  min-height: 80px;
  border: 1px dashed #ccc;
  // padding: 10px;
}
.drag_wrapper_only{
  min-height: 80px;
  // padding: 10px;
}
.addColum{
  cursor:pointer;
  height: 32px;
  background: #FBFBFB;
  border-radius: 4px 4px 4px 4px;
  border: 1px solid #DCDCDC;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #999;
  img{
    width: 14px;
    height: 14px;
    margin-right: 8px;
  }
}

.radioComponents {
  .el-form-item__label {
    font-weight: 400;
    color: #666;
  }
}


.handleHoverImgs{
  display: block;
  line-height: 33px;
  display: flex;
  align-items: center;
  img{
    margin-left: 12px;
    width:16px;
  }
}

