$topHeight: 124px;

.micro-create-pc {
  width: 100vw;
  height: 100%;
  margin-top: 50px;
  .micro-box-content {
    height: calc(100vh - 50px);
  }
  .component-items.draggerStyles {
    background:#fff;
    box-sizing: border-box;
    border: 1px solid #155bd4;
    z-index: 99;
    left: 0!important;
    .component-close-x {
      display: none;
    }
  }
  .design-page-content {
    width: 100vw;
    display: flex;
    height: calc(100vh - 50px);

    .all-use-components {
      width: 220px;
      height: calc(100% - 50px);
      background: #fff;
      overflow-y: hidden;
      overflow-x: hidden;
      position: fixed;

      &:hover {
        overflow-y: auto;
      }
    }

    .design-container {
      width: auto;
      // margin: 20px 70px 0 260px;
      background: #fff;
      .slickList-scroll {
        height: calc(100vh - 50px);
        scrollbar-width: none;
        overflow: auto;
        width: 100%;
        padding: 0;
        top: 0;
      }
      .slickList-scroll::-webkit-scrollbar {
        display: none;
      }
      .design-editor {
        width: 100%;
        height: fit-content;
        min-height: 100%;
        margin: 0 auto;
        z-index: 9999;

        .title-name {
          width: 100%;
          height: 50px;
          background: #e43130;
          color: #fff;
          text-align: center;
          line-height: 50px;
          font-size: 18px;
          font-weight: bold;
        }

        .components-management {
          background: #fff;
          height: 44px;
          display: flex;
          align-items: center;
          justify-content: center;
          width: 100%;
          color: #155bd4;
          border: 1px dashed #155bd4;
          cursor: pointer;
        }

        .component-items {
          position: relative;
          box-sizing: border-box;
          width: 100%;
          // height: 100%;

          &.isborderActive {
            border: 1px solid #155bd4;
          }

          .preiview-item {
            .component-hover-style {
              display: none;
              position: absolute;
              top: 0;
              left: 0;
              width: 100%;
              height: 100%;
              border-style: dashed;
              box-sizing: border-box;
              z-index: 2;
              border-width: 1px;
              border-color: #155bd4;

              .drag-box {
                z-index: 2;
                position: absolute;
                width: 100%;
                height: 100%;
                cursor: all-scroll;
              }

              .component-close-x {
                position: absolute;
                width: 20px;
                height: 20px;
                border-radius: 50%;
                background: #155bd4;
                color: #fff;
                display: flex;
                align-items: center;
                justify-content: center;
                font-size: 12px;
                top: -4px;
                right: -4px;
                z-index: 99;
                cursor: pointer;
                opacity: 0;
              }
            }
          }
        }

        .header-PopRef {
          position: absolute;
          top: -3px;
          right: -3px;
          width: 20px;
          height: 20px;
          border-radius: 50%;
          background: #155bd4;
          text-align: center;
          line-height: 20px;
          display: none;

          .component-close-x {
            color: #fff;
          }
        }

        .header-component {
          box-sizing: border-box;
          // border: 1px solid #fff;

          &:hover {
            border: 1px dashed #155bd4;

            .header-PopRef {
              display: block;
            }
          }
        }

        .isHeader {
          border: 1px solid #155bd4;
        }

        .component-items:hover {
          .preiview-item .component-hover-style {
            display: block;
          }

          .preiview-item .component-close-x {
            opacity: 1;
          }
        }
      }
    }

    .component-management-container {
      position: relative;
      background: #fff;
      .component-list-edit {
        width: auto;
        height: 32px;
        background: #fff;
        box-shadow: 0 2px 8px 0 rgb(0 0 0 / 10%);
        border-radius: 2px;
        padding: 0 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        position: fixed;
        right: 420px;
        top: 100px;
        cursor: pointer;

        &.active {
          color: #fff;
          background: #155bd4;
        }

        span {
          font-size: 12px;
          margin-left: 5px;
        }
      }
    }


    .right-toolbars {
      width: 450px;
      height: 100%;
      z-index: 99;
      background: #fff;
    }
  }

  .save-btns {
    width: calc(100% - 800px);
    height: 50px;
    bottom: 0;
    left: 360px;
    background: #fff;
    position: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99;
    box-shadow: 0px -3px 6px rgba(0, 0, 0, 0.0300);

    .btns1 {
      display: flex;
      height: 30px;
      border-radius: 0;
      color: #fff;
      padding: 0 15px;
      background: #155bd4;
      justify-content: center;
      align-items: center;
      border: none;
      cursor: pointer;
    }

    .returnBtn {
      width: 60px;
      height: 30px;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 0 15px;
      border: 1px solid #dcdfe6;
      margin-left: 10px;
      cursor: pointer;
    }
  }
}

.design-container::-webkit-scrollbar {
  width: 0;
  height: 7px;
}

/* 滚动槽 */
.design-container::-webkit-scrollbar-track {
  width: 2px;
  background: #f1f1f1;
  // border-radius:10px;
}

/* 滚动条滑块 */
.design-container::-webkit-scrollbar-thumb {
  width: 0;
  height: 10px;
  // border-radius:10px;
  background: #c1c1c1;
}

.design-container::-webkit-scrollbar-thumb:window-inactive {
  background: #c1c1c1;
}

@-webkit-keyframes rtl-drawer-in{0%{transform:translate(100%,0)}100%{transform:translate(0,0)}}
.fade-open {-webkit-animation:rtl-drawer-in .3s 1ms;animation:rtl-drawer-in .3s 1ms}
